adyen-ruby-api-library
adyen-ruby-api-library copied to clipboard
[Bug]: Broken URL for Disputes service
Description
The Disputes service (lib/adyen/services/disputes.rb) is naming the service Disputes (plural) when it should be Dispute (singular). Currently, it's generating the wrong URL and it returns a 404 error when trying to, for example, accept a dispute.
The documentation specifies that the endpoint is singular.
Steps to reproduce
Call the accept_dispute method in the API, passing any PSP reference.
Actual behavior
Returns a 404 error since it's calling https://ca-test.adyen.com/ca/services/DisputesService/v30/acceptDispute (plural) instead of https://ca-test.adyen.com/ca/services/DisputeService/v30/acceptDispute (singular)
Expected behavior
Should call https://ca-test.adyen.com/ca/services/DisputeService/v30/acceptDispute instead
Code snippet or screenshots (if applicable)
Adyen Ruby API Library version
17abb0185dd5bbe23906cb7c7ef1300ad152a160
Ruby language version
3.4.5
Operating System
macOS
Additional context
No response