We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f0ecd0 commit 9ec3eeeCopy full SHA for 9ec3eee
lib/adyen/client.rb
@@ -53,6 +53,7 @@ def live_url_prefix=(value)
53
54
# base URL for API given service and @env
55
def service_url_base(service)
56
+ service = 'DisputesService' if service == 'Disputes'
57
if @env == :mock
58
@mock_service_url_base
59
else
spec/client_spec.rb
@@ -278,4 +278,10 @@
278
expect(client.service_url('PosMobile', 'sessions', nil))
279
.to eq('https://checkout-test.adyen.com/checkout/possdk/sessions')
280
end
281
+
282
+ it 'correctly maps Disputes to DisputesService and generates valid URL' do
283
+ client = Adyen::Client.new(env: :test)
284
+ expect(client.service_url_base('Disputes'))
285
+ .to eq('https://ca-test.adyen.com/ca/services/DisputesService')
286
+ end
287
0 commit comments