mangopay2-python-sdk icon indicating copy to clipboard operation
mangopay2-python-sdk copied to clipboard

`TransferRefund` model does not perform GET requests to the proper URL

Open obarahona10 opened this issue 10 months ago • 0 comments

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.

obarahona10 avatar Jan 07 '25 13:01 obarahona10