File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,8 @@ def live_url_prefix=(value)
5353
5454 # base URL for API given service and @env
5555 def service_url_base ( service )
56+ # maps 'Disputes' to expected service name 'DisputesService' for URL matching
57+ service = 'DisputesService' if service == 'Disputes'
5658 if @env == :mock
5759 @mock_service_url_base
5860 else
Original file line number Diff line number Diff line change 278278 expect ( client . service_url ( 'PosMobile' , 'sessions' , nil ) )
279279 . to eq ( 'https://checkout-test.adyen.com/checkout/possdk/sessions' )
280280 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
281287end
You can’t perform that action at this time.
0 commit comments