Fix return type declaration for refund method#76
Conversation
This method return a value
|
Hi @vendra95 , thanks for your contribution. Could you please elaborate what the issue is with the current type annotation for the method? The SDK code is generated from OpenAPI specs, so if the |
|
Thanks for the clarification. The issue is with the method's return type declaration. The method currently declares return ResponseDecoder::decodeOrThrow(...);So there is an inconsistency between the declared return type and the implementation. |
Hello @matoous, As per the core issue: it's an issue with the interaction between the API and the generated code. |
|
Thanks for the report. I have found an issue in the upstream. The refund is handled by proxying to 2 different systems based on which one processed the transaction and those 2 systems are not aligned on the format of the success response. I am preparing a fix upstream and then will update the OpenAPI specs used to generate the SDK accordingly. |
This method return a value