mangopay2-python-sdk
mangopay2-python-sdk copied to clipboard
`TransferRefund` model does not perform GET requests to the proper URL
Context
TransferRefund model it's using the same URL for both creating and getting info for a given transfer refund. But the endpoints are different:
- https://docs.mangopay.com/api-reference/refunds/create-refund-payin
- https://docs.mangopay.com/api-reference/refunds/view-refund
When trying to get the details of an existing transfer refund, with the current implementation, the API returns a 500 response. If I monkeypatch it, by setting temporarily the correct URL, I'm able to get the details as expected.
Proposal
Make sure all actions to be performed over this resource, work as expected. By using the expected URLs that are included in the docs.