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 12016c9 commit a906f17Copy full SHA for a906f17
spec/client_spec.rb
@@ -260,4 +260,16 @@
260
.to eq('https://terminal-api-test.adyen.com/connectedTerminals')
261
262
end
263
+
264
+ it 'checks the initialization of the terminal region' do
265
+ client = Adyen::Client.new(api_key: 'api_key', env: :test, terminal_region: 'eu')
266
+ expect(client.service_url('TerminalCloudAPI', 'connectedTerminals', nil))
267
+ .to eq('https://terminal-api-test-eu.adyen.com/connectedTerminals')
268
+ end
269
270
+ it 'checks the initialization of the terminal region set to nil per default' do
271
+ client = Adyen::Client.new(api_key: 'api_key', env: :test)
272
273
+ .to eq('https://terminal-api-test.adyen.com/connectedTerminals')
274
275
0 commit comments