adyen-ruby-api-library 6.0.0 → 10.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/CODEOWNERS +1 -1
- data/.github/release.yml +18 -0
- data/.github/workflows/codeql.yml +37 -0
- data/.github/workflows/label_new_issues.yml +15 -0
- data/.github/workflows/release.yml +40 -0
- data/.github/workflows/ruby.yml +2 -2
- data/.github/workflows/rubygems_release.yml +18 -0
- data/.github/workflows/stale.yml +26 -0
- data/.gitignore +3 -0
- data/.rubocop.yml +8 -0
- data/CONTRIBUTING.md +1 -1
- data/Gemfile +7 -7
- data/Makefile +79 -0
- data/README.md +158 -20
- data/Rakefile +3 -3
- data/VERSION +2 -0
- data/adyen-ruby-api-library.gemspec +6 -3
- data/bin/console +2 -2
- data/lib/adyen/client.rb +213 -99
- data/lib/adyen/errors.rb +30 -22
- data/lib/adyen/hash_with_accessors.rb +12 -7
- data/lib/adyen/services/balanceControlService.rb +27 -0
- data/lib/adyen/services/balancePlatform/account_holders_api.rb +76 -0
- data/lib/adyen/services/balancePlatform/balance_accounts_api.rb +116 -0
- data/lib/adyen/services/balancePlatform/bank_account_validation_api.rb +26 -0
- data/lib/adyen/services/balancePlatform/card_orders_api.rb +36 -0
- data/lib/adyen/services/balancePlatform/grant_accounts_api.rb +26 -0
- data/lib/adyen/services/balancePlatform/grant_offers_api.rb +36 -0
- data/lib/adyen/services/balancePlatform/manage_card_pin_api.rb +46 -0
- data/lib/adyen/services/balancePlatform/manage_sca_devices_api.rb +56 -0
- data/lib/adyen/services/balancePlatform/network_tokens_api.rb +36 -0
- data/lib/adyen/services/balancePlatform/payment_instrument_groups_api.rb +46 -0
- data/lib/adyen/services/balancePlatform/payment_instruments_api.rb +86 -0
- data/lib/adyen/services/balancePlatform/platform_api.rb +46 -0
- data/lib/adyen/services/balancePlatform/transaction_rules_api.rb +56 -0
- data/lib/adyen/services/balancePlatform/transfer_routes_api.rb +26 -0
- data/lib/adyen/services/balancePlatform.rb +89 -0
- data/lib/adyen/services/binLookup.rb +37 -0
- data/lib/adyen/services/checkout/donations_api.rb +36 -0
- data/lib/adyen/services/checkout/modifications_api.rb +76 -0
- data/lib/adyen/services/checkout/orders_api.rb +46 -0
- data/lib/adyen/services/checkout/payment_links_api.rb +46 -0
- data/lib/adyen/services/checkout/payments_api.rb +76 -0
- data/lib/adyen/services/checkout/recurring_api.rb +46 -0
- data/lib/adyen/services/checkout/utility_api.rb +48 -0
- data/lib/adyen/services/checkout.rb +29 -108
- data/lib/adyen/services/dataProtection.rb +27 -0
- data/lib/adyen/services/disputes.rb +67 -0
- data/lib/adyen/services/legalEntityManagement/business_lines_api.rb +56 -0
- data/lib/adyen/services/legalEntityManagement/documents_api.rb +56 -0
- data/lib/adyen/services/legalEntityManagement/hosted_onboarding_api.rb +46 -0
- data/lib/adyen/services/legalEntityManagement/legal_entities_api.rb +76 -0
- data/lib/adyen/services/legalEntityManagement/pci_questionnaires_api.rb +66 -0
- data/lib/adyen/services/legalEntityManagement/tax_e_delivery_consent_api.rb +36 -0
- data/lib/adyen/services/legalEntityManagement/terms_of_service_api.rb +66 -0
- data/lib/adyen/services/legalEntityManagement/transfer_instruments_api.rb +56 -0
- data/lib/adyen/services/legalEntityManagement.rb +59 -0
- data/lib/adyen/services/management/account_company_level_api.rb +46 -0
- data/lib/adyen/services/management/account_merchant_level_api.rb +56 -0
- data/lib/adyen/services/management/account_store_level_api.rb +96 -0
- data/lib/adyen/services/management/allowed_origins_company_level_api.rb +56 -0
- data/lib/adyen/services/management/allowed_origins_merchant_level_api.rb +56 -0
- data/lib/adyen/services/management/android_files_company_level_api.rb +76 -0
- data/lib/adyen/services/management/api_credentials_company_level_api.rb +56 -0
- data/lib/adyen/services/management/api_credentials_merchant_level_api.rb +56 -0
- data/lib/adyen/services/management/api_key_company_level_api.rb +26 -0
- data/lib/adyen/services/management/api_key_merchant_level_api.rb +26 -0
- data/lib/adyen/services/management/client_key_company_level_api.rb +26 -0
- data/lib/adyen/services/management/client_key_merchant_level_api.rb +26 -0
- data/lib/adyen/services/management/my_api_credential_api.rb +76 -0
- data/lib/adyen/services/management/payment_methods_merchant_level_api.rb +76 -0
- data/lib/adyen/services/management/payout_settings_merchant_level_api.rb +66 -0
- data/lib/adyen/services/management/split_configuration_merchant_level_api.rb +106 -0
- data/lib/adyen/services/management/terminal_actions_company_level_api.rb +36 -0
- data/lib/adyen/services/management/terminal_actions_terminal_level_api.rb +26 -0
- data/lib/adyen/services/management/terminal_orders_company_level_api.rb +116 -0
- data/lib/adyen/services/management/terminal_orders_merchant_level_api.rb +116 -0
- data/lib/adyen/services/management/terminal_settings_company_level_api.rb +56 -0
- data/lib/adyen/services/management/terminal_settings_merchant_level_api.rb +56 -0
- data/lib/adyen/services/management/terminal_settings_store_level_api.rb +96 -0
- data/lib/adyen/services/management/terminal_settings_terminal_level_api.rb +56 -0
- data/lib/adyen/services/management/terminals_terminal_level_api.rb +36 -0
- data/lib/adyen/services/management/users_company_level_api.rb +56 -0
- data/lib/adyen/services/management/users_merchant_level_api.rb +56 -0
- data/lib/adyen/services/management/webhooks_company_level_api.rb +86 -0
- data/lib/adyen/services/management/webhooks_merchant_level_api.rb +86 -0
- data/lib/adyen/services/management.rb +164 -0
- data/lib/adyen/services/marketpay.rb +42 -36
- data/lib/adyen/services/payment.rb +149 -0
- data/lib/adyen/services/paymentsApp.rb +67 -0
- data/lib/adyen/services/payout/initialization_api.rb +46 -0
- data/lib/adyen/services/payout/instant_payouts_api.rb +26 -0
- data/lib/adyen/services/payout/reviewing_api.rb +36 -0
- data/lib/adyen/services/payout.rb +34 -0
- data/lib/adyen/services/posMobile.rb +27 -0
- data/lib/adyen/services/posTerminalManagement.rb +82 -0
- data/lib/adyen/services/recurring.rb +70 -13
- data/lib/adyen/services/service.rb +8 -2
- data/lib/adyen/services/storedValue.rb +77 -0
- data/lib/adyen/services/terminalCloudAPI.rb +38 -0
- data/lib/adyen/services/transfers/capital_api.rb +55 -0
- data/lib/adyen/services/transfers/transactions_api.rb +36 -0
- data/lib/adyen/services/transfers/transfers_api.rb +76 -0
- data/lib/adyen/services/transfers.rb +34 -0
- data/lib/adyen/utils/hmac_validator.rb +52 -22
- data/lib/adyen/version.rb +2 -2
- data/lib/adyen-ruby-api-library.rb +23 -15
- data/renovate.json +3 -3
- data/spec/account_spec.rb +20 -20
- data/spec/balance_control_spec.rb +43 -0
- data/spec/balance_platform_spec.rb +129 -0
- data/spec/bin_lookup_spec.rb +69 -11
- data/spec/checkout-oauth_spec.rb +588 -0
- data/spec/checkout_spec.rb +591 -314
- data/spec/client_spec.rb +240 -45
- data/spec/data_protection_spec.rb +4 -4
- data/spec/disputes_spec.rb +45 -0
- data/spec/errors_spec.rb +44 -15
- data/spec/fund_spec.rb +10 -10
- data/spec/hash_with_accessors_spec.rb +18 -8
- data/spec/hop_spec.rb +4 -4
- data/spec/lem_spec.rb +63 -0
- data/spec/management-oauth_spec.rb +62 -0
- data/spec/management_spec.rb +66 -0
- data/spec/mocks/requests/BalanceControl/balance_transfer.json +10 -0
- data/spec/mocks/requests/BalancePlatform/create_account_holder.json +5 -0
- data/spec/mocks/requests/BalancePlatform/update_account_holder.json +10 -0
- data/spec/mocks/requests/Checkout/amount_updates.json +22 -0
- data/spec/mocks/requests/Checkout/apple_pay_sessions.json +5 -0
- data/spec/mocks/requests/Checkout/capture.json +34 -0
- data/spec/mocks/requests/Checkout/generic_cancel.json +5 -0
- data/spec/mocks/requests/Checkout/modifications_request.json +0 -0
- data/spec/mocks/requests/Checkout/psp_cancel.json +4 -0
- data/spec/mocks/requests/Checkout/refund.json +34 -0
- data/spec/mocks/requests/DisputesService/retrieve_applicable_defense_reasons.json +4 -0
- data/spec/mocks/requests/LegalEntityManagement/create_business_line.json +15 -0
- data/spec/mocks/requests/Management/create_store.json +15 -0
- data/spec/mocks/requests/Recurring/create_permit.json +6 -0
- data/spec/mocks/requests/StoredValue/issue_giftcard.json +12 -0
- data/spec/mocks/requests/TerminalCloudAPI/connected_terminals.json +3 -0
- data/spec/mocks/requests/TerminalCloudAPI/sync_payment.json +29 -0
- data/spec/mocks/requests/Transfers/get_transactions.json +82 -0
- data/spec/mocks/requests/Transfers/make_transfer.json +32 -0
- data/spec/mocks/responses/BalanceControl/balance_transfer.json +14 -0
- data/spec/mocks/responses/BalancePlatform/create_account_holder.json +41 -0
- data/spec/mocks/responses/BalancePlatform/get_balance_account.json +15 -0
- data/spec/mocks/responses/BalancePlatform/update_account_holder.json +16 -0
- data/spec/mocks/responses/Checkout/amount_updates.json +24 -0
- data/spec/mocks/responses/Checkout/apple_pay_sessions.json +3 -0
- data/spec/mocks/responses/Checkout/capture.json +37 -0
- data/spec/mocks/responses/Checkout/generic_cancel.json +7 -0
- data/spec/mocks/responses/Checkout/modifications.json +0 -0
- data/spec/mocks/responses/Checkout/psp_cancel.json +7 -0
- data/spec/mocks/responses/Checkout/refund.json +37 -0
- data/spec/mocks/responses/Checkout/stored_payment_methods.json +1 -0
- data/spec/mocks/responses/DisputesService/retrieve_applicable_defense_reasons.json +71 -0
- data/spec/mocks/responses/LegalEntityManagement/create_business_line.json +17 -0
- data/spec/mocks/responses/Management/create_store.json +23 -0
- data/spec/mocks/responses/Management/get_companies.json +42 -0
- data/spec/mocks/responses/Recurring/create_permit.json +4 -0
- data/spec/mocks/responses/StoredValue/issue_giftcard.json +13 -0
- data/spec/mocks/responses/TerminalCloudAPI/connected_terminals.json +5 -0
- data/spec/mocks/responses/TerminalCloudAPI/sync_payment.json +18 -0
- data/spec/mocks/responses/Transfers/get_transactions.json +82 -0
- data/spec/mocks/responses/Transfers/make_transfer.json +36 -0
- data/spec/mocks/responses/Webhooks/backslash_webhook.json +41 -0
- data/spec/mocks/responses/Webhooks/colon_webhook.json +41 -0
- data/spec/mocks/responses/Webhooks/forwardslash_webhook.json +41 -0
- data/spec/mocks/responses/Webhooks/mixed_webhook.json +41 -0
- data/spec/notification_spec.rb +9 -9
- data/spec/payments_spec.rb +39 -22
- data/spec/payouts_spec.rb +39 -15
- data/spec/pos_terminal_management_spec.rb +44 -0
- data/spec/recurring_spec.rb +8 -8
- data/spec/service_spec.rb +4 -0
- data/spec/spec_helper.rb +42 -46
- data/spec/stored_value_spec.rb +44 -0
- data/spec/terminal_cloud_api_spec.rb +91 -0
- data/spec/transfers_spec.rb +64 -0
- data/spec/utils/hmac_validator_spec.rb +53 -23
- data/templates/api-single.mustache +32 -0
- data/templates/api-small.mustache +39 -0
- data/templates/api.mustache +38 -0
- data/templates/config.yaml +10 -0
- metadata +160 -47
- data/.github/dependabot.yml +0 -8
- data/docs/checkout.html +0 -128
- data/docs/index.html +0 -50
- data/docs/install-library.html +0 -61
- data/docs/javascripts/prism.js +0 -5
- data/docs/javascripts/scale.fix.js +0 -17
- data/docs/marketpay.html +0 -171
- data/docs/params.json +0 -1
- data/docs/payment.html +0 -106
- data/docs/payout.html +0 -135
- data/docs/recurring.html +0 -113
- data/docs/stylesheets/github-light.css +0 -115
- data/docs/stylesheets/prism.css +0 -140
- data/docs/stylesheets/styles.css +0 -324
- data/docs/using-library.html +0 -67
- data/lib/adyen/services/bin_lookup.rb +0 -18
- data/lib/adyen/services/data_protection.rb +0 -17
- data/lib/adyen/services/dispute.rb +0 -20
- data/lib/adyen/services/payments.rb +0 -34
- data/lib/adyen/services/payouts.rb +0 -22
- data/lib/adyen/services/postfmapi.rb +0 -19
- data/spec/dispute_spec.rb +0 -17
- data/spec/mocks/requests/DisputeService/defend_dispute.json +0 -5
- data/spec/mocks/requests/DisputeService/delete_dispute_defense_document.json +0 -5
- data/spec/mocks/requests/DisputeService/retrieve_applicable_defense_reasons.json +0 -4
- data/spec/mocks/requests/DisputeService/supply_defense_document.json +0 -11
- data/spec/mocks/requests/Recurring/store_token.json +0 -15
- data/spec/mocks/responses/DisputeService/defend_dispute.json +0 -5
- data/spec/mocks/responses/DisputeService/delete_dispute_defense_document.json +0 -5
- data/spec/mocks/responses/DisputeService/retrieve_applicable_defense_reasons.json +0 -28
- data/spec/mocks/responses/DisputeService/supply_defense_document.json +0 -5
- data/spec/mocks/responses/Recurring/store_token.json +0 -7
- data/spec/postfmapi_spec.rb +0 -16
@@ -0,0 +1,96 @@
|
|
1
|
+
require_relative '../service'
|
2
|
+
module Adyen
|
3
|
+
|
4
|
+
# NOTE: This class is auto generated by OpenAPI Generator
|
5
|
+
# Ref: https://openapi-generator.tech
|
6
|
+
#
|
7
|
+
# Do not edit the class manually.
|
8
|
+
class TerminalSettingsStoreLevelApi < Service
|
9
|
+
attr_accessor :service, :version
|
10
|
+
|
11
|
+
def initialize(client, version = DEFAULT_VERSION)
|
12
|
+
super(client, version, 'Management')
|
13
|
+
end
|
14
|
+
|
15
|
+
# Get the terminal logo
|
16
|
+
def get_terminal_logo(merchant_id, reference, headers: {}, query_params: {})
|
17
|
+
endpoint = '/merchants/{merchantId}/stores/{reference}/terminalLogos'.gsub(/{.+?}/, '%s')
|
18
|
+
endpoint = endpoint.gsub(%r{^/}, '')
|
19
|
+
endpoint = format(endpoint, merchant_id, reference)
|
20
|
+
endpoint += create_query_string(query_params)
|
21
|
+
action = { method: 'get', url: endpoint }
|
22
|
+
@client.call_adyen_api(@service, action, {}, headers, @version)
|
23
|
+
end
|
24
|
+
|
25
|
+
# Get the terminal logo
|
26
|
+
def get_terminal_logo_by_store_id(store_id, headers: {}, query_params: {})
|
27
|
+
endpoint = '/stores/{storeId}/terminalLogos'.gsub(/{.+?}/, '%s')
|
28
|
+
endpoint = endpoint.gsub(%r{^/}, '')
|
29
|
+
endpoint = format(endpoint, store_id)
|
30
|
+
endpoint += create_query_string(query_params)
|
31
|
+
action = { method: 'get', url: endpoint }
|
32
|
+
@client.call_adyen_api(@service, action, {}, headers, @version)
|
33
|
+
end
|
34
|
+
|
35
|
+
# Get terminal settings
|
36
|
+
def get_terminal_settings(merchant_id, reference, headers: {})
|
37
|
+
endpoint = '/merchants/{merchantId}/stores/{reference}/terminalSettings'.gsub(/{.+?}/, '%s')
|
38
|
+
endpoint = endpoint.gsub(%r{^/}, '')
|
39
|
+
endpoint = format(endpoint, merchant_id, reference)
|
40
|
+
|
41
|
+
action = { method: 'get', url: endpoint }
|
42
|
+
@client.call_adyen_api(@service, action, {}, headers, @version)
|
43
|
+
end
|
44
|
+
|
45
|
+
# Get terminal settings
|
46
|
+
def get_terminal_settings_by_store_id(store_id, headers: {})
|
47
|
+
endpoint = '/stores/{storeId}/terminalSettings'.gsub(/{.+?}/, '%s')
|
48
|
+
endpoint = endpoint.gsub(%r{^/}, '')
|
49
|
+
endpoint = format(endpoint, store_id)
|
50
|
+
|
51
|
+
action = { method: 'get', url: endpoint }
|
52
|
+
@client.call_adyen_api(@service, action, {}, headers, @version)
|
53
|
+
end
|
54
|
+
|
55
|
+
# Update the terminal logo
|
56
|
+
def update_terminal_logo(request, merchant_id, reference, headers: {}, query_params: {})
|
57
|
+
endpoint = '/merchants/{merchantId}/stores/{reference}/terminalLogos'.gsub(/{.+?}/, '%s')
|
58
|
+
endpoint = endpoint.gsub(%r{^/}, '')
|
59
|
+
endpoint = format(endpoint, merchant_id, reference)
|
60
|
+
endpoint += create_query_string(query_params)
|
61
|
+
action = { method: 'patch', url: endpoint }
|
62
|
+
@client.call_adyen_api(@service, action, request, headers, @version)
|
63
|
+
end
|
64
|
+
|
65
|
+
# Update the terminal logo
|
66
|
+
def update_terminal_logo_by_store_id(request, store_id, headers: {}, query_params: {})
|
67
|
+
endpoint = '/stores/{storeId}/terminalLogos'.gsub(/{.+?}/, '%s')
|
68
|
+
endpoint = endpoint.gsub(%r{^/}, '')
|
69
|
+
endpoint = format(endpoint, store_id)
|
70
|
+
endpoint += create_query_string(query_params)
|
71
|
+
action = { method: 'patch', url: endpoint }
|
72
|
+
@client.call_adyen_api(@service, action, request, headers, @version)
|
73
|
+
end
|
74
|
+
|
75
|
+
# Update terminal settings
|
76
|
+
def update_terminal_settings(request, merchant_id, reference, headers: {})
|
77
|
+
endpoint = '/merchants/{merchantId}/stores/{reference}/terminalSettings'.gsub(/{.+?}/, '%s')
|
78
|
+
endpoint = endpoint.gsub(%r{^/}, '')
|
79
|
+
endpoint = format(endpoint, merchant_id, reference)
|
80
|
+
|
81
|
+
action = { method: 'patch', url: endpoint }
|
82
|
+
@client.call_adyen_api(@service, action, request, headers, @version)
|
83
|
+
end
|
84
|
+
|
85
|
+
# Update terminal settings
|
86
|
+
def update_terminal_settings_by_store_id(request, store_id, headers: {})
|
87
|
+
endpoint = '/stores/{storeId}/terminalSettings'.gsub(/{.+?}/, '%s')
|
88
|
+
endpoint = endpoint.gsub(%r{^/}, '')
|
89
|
+
endpoint = format(endpoint, store_id)
|
90
|
+
|
91
|
+
action = { method: 'patch', url: endpoint }
|
92
|
+
@client.call_adyen_api(@service, action, request, headers, @version)
|
93
|
+
end
|
94
|
+
|
95
|
+
end
|
96
|
+
end
|
@@ -0,0 +1,56 @@
|
|
1
|
+
require_relative '../service'
|
2
|
+
module Adyen
|
3
|
+
|
4
|
+
# NOTE: This class is auto generated by OpenAPI Generator
|
5
|
+
# Ref: https://openapi-generator.tech
|
6
|
+
#
|
7
|
+
# Do not edit the class manually.
|
8
|
+
class TerminalSettingsTerminalLevelApi < Service
|
9
|
+
attr_accessor :service, :version
|
10
|
+
|
11
|
+
def initialize(client, version = DEFAULT_VERSION)
|
12
|
+
super(client, version, 'Management')
|
13
|
+
end
|
14
|
+
|
15
|
+
# Get the terminal logo
|
16
|
+
def get_terminal_logo(terminal_id, headers: {})
|
17
|
+
endpoint = '/terminals/{terminalId}/terminalLogos'.gsub(/{.+?}/, '%s')
|
18
|
+
endpoint = endpoint.gsub(%r{^/}, '')
|
19
|
+
endpoint = format(endpoint, terminal_id)
|
20
|
+
|
21
|
+
action = { method: 'get', url: endpoint }
|
22
|
+
@client.call_adyen_api(@service, action, {}, headers, @version)
|
23
|
+
end
|
24
|
+
|
25
|
+
# Get terminal settings
|
26
|
+
def get_terminal_settings(terminal_id, headers: {})
|
27
|
+
endpoint = '/terminals/{terminalId}/terminalSettings'.gsub(/{.+?}/, '%s')
|
28
|
+
endpoint = endpoint.gsub(%r{^/}, '')
|
29
|
+
endpoint = format(endpoint, terminal_id)
|
30
|
+
|
31
|
+
action = { method: 'get', url: endpoint }
|
32
|
+
@client.call_adyen_api(@service, action, {}, headers, @version)
|
33
|
+
end
|
34
|
+
|
35
|
+
# Update the logo
|
36
|
+
def update_logo(request, terminal_id, headers: {})
|
37
|
+
endpoint = '/terminals/{terminalId}/terminalLogos'.gsub(/{.+?}/, '%s')
|
38
|
+
endpoint = endpoint.gsub(%r{^/}, '')
|
39
|
+
endpoint = format(endpoint, terminal_id)
|
40
|
+
|
41
|
+
action = { method: 'patch', url: endpoint }
|
42
|
+
@client.call_adyen_api(@service, action, request, headers, @version)
|
43
|
+
end
|
44
|
+
|
45
|
+
# Update terminal settings
|
46
|
+
def update_terminal_settings(request, terminal_id, headers: {})
|
47
|
+
endpoint = '/terminals/{terminalId}/terminalSettings'.gsub(/{.+?}/, '%s')
|
48
|
+
endpoint = endpoint.gsub(%r{^/}, '')
|
49
|
+
endpoint = format(endpoint, terminal_id)
|
50
|
+
|
51
|
+
action = { method: 'patch', url: endpoint }
|
52
|
+
@client.call_adyen_api(@service, action, request, headers, @version)
|
53
|
+
end
|
54
|
+
|
55
|
+
end
|
56
|
+
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
require_relative '../service'
|
2
|
+
module Adyen
|
3
|
+
|
4
|
+
# NOTE: This class is auto generated by OpenAPI Generator
|
5
|
+
# Ref: https://openapi-generator.tech
|
6
|
+
#
|
7
|
+
# Do not edit the class manually.
|
8
|
+
class TerminalsTerminalLevelApi < Service
|
9
|
+
attr_accessor :service, :version
|
10
|
+
|
11
|
+
def initialize(client, version = DEFAULT_VERSION)
|
12
|
+
super(client, version, 'Management')
|
13
|
+
end
|
14
|
+
|
15
|
+
# Get a list of terminals
|
16
|
+
def list_terminals(headers: {}, query_params: {})
|
17
|
+
endpoint = '/terminals'.gsub(/{.+?}/, '%s')
|
18
|
+
endpoint = endpoint.gsub(%r{^/}, '')
|
19
|
+
endpoint = format(endpoint)
|
20
|
+
endpoint += create_query_string(query_params)
|
21
|
+
action = { method: 'get', url: endpoint }
|
22
|
+
@client.call_adyen_api(@service, action, {}, headers, @version)
|
23
|
+
end
|
24
|
+
|
25
|
+
# Reassign a terminal
|
26
|
+
def reassign_terminal(request, terminal_id, headers: {})
|
27
|
+
endpoint = '/terminals/{terminalId}/reassign'.gsub(/{.+?}/, '%s')
|
28
|
+
endpoint = endpoint.gsub(%r{^/}, '')
|
29
|
+
endpoint = format(endpoint, terminal_id)
|
30
|
+
|
31
|
+
action = { method: 'post', url: endpoint }
|
32
|
+
@client.call_adyen_api(@service, action, request, headers, @version)
|
33
|
+
end
|
34
|
+
|
35
|
+
end
|
36
|
+
end
|
@@ -0,0 +1,56 @@
|
|
1
|
+
require_relative '../service'
|
2
|
+
module Adyen
|
3
|
+
|
4
|
+
# NOTE: This class is auto generated by OpenAPI Generator
|
5
|
+
# Ref: https://openapi-generator.tech
|
6
|
+
#
|
7
|
+
# Do not edit the class manually.
|
8
|
+
class UsersCompanyLevelApi < Service
|
9
|
+
attr_accessor :service, :version
|
10
|
+
|
11
|
+
def initialize(client, version = DEFAULT_VERSION)
|
12
|
+
super(client, version, 'Management')
|
13
|
+
end
|
14
|
+
|
15
|
+
# Create a new user
|
16
|
+
def create_new_user(request, company_id, headers: {})
|
17
|
+
endpoint = '/companies/{companyId}/users'.gsub(/{.+?}/, '%s')
|
18
|
+
endpoint = endpoint.gsub(%r{^/}, '')
|
19
|
+
endpoint = format(endpoint, company_id)
|
20
|
+
|
21
|
+
action = { method: 'post', url: endpoint }
|
22
|
+
@client.call_adyen_api(@service, action, request, headers, @version)
|
23
|
+
end
|
24
|
+
|
25
|
+
# Get user details
|
26
|
+
def get_user_details(company_id, user_id, headers: {})
|
27
|
+
endpoint = '/companies/{companyId}/users/{userId}'.gsub(/{.+?}/, '%s')
|
28
|
+
endpoint = endpoint.gsub(%r{^/}, '')
|
29
|
+
endpoint = format(endpoint, company_id, user_id)
|
30
|
+
|
31
|
+
action = { method: 'get', url: endpoint }
|
32
|
+
@client.call_adyen_api(@service, action, {}, headers, @version)
|
33
|
+
end
|
34
|
+
|
35
|
+
# Get a list of users
|
36
|
+
def list_users(company_id, headers: {}, query_params: {})
|
37
|
+
endpoint = '/companies/{companyId}/users'.gsub(/{.+?}/, '%s')
|
38
|
+
endpoint = endpoint.gsub(%r{^/}, '')
|
39
|
+
endpoint = format(endpoint, company_id)
|
40
|
+
endpoint += create_query_string(query_params)
|
41
|
+
action = { method: 'get', url: endpoint }
|
42
|
+
@client.call_adyen_api(@service, action, {}, headers, @version)
|
43
|
+
end
|
44
|
+
|
45
|
+
# Update user details
|
46
|
+
def update_user_details(request, company_id, user_id, headers: {})
|
47
|
+
endpoint = '/companies/{companyId}/users/{userId}'.gsub(/{.+?}/, '%s')
|
48
|
+
endpoint = endpoint.gsub(%r{^/}, '')
|
49
|
+
endpoint = format(endpoint, company_id, user_id)
|
50
|
+
|
51
|
+
action = { method: 'patch', url: endpoint }
|
52
|
+
@client.call_adyen_api(@service, action, request, headers, @version)
|
53
|
+
end
|
54
|
+
|
55
|
+
end
|
56
|
+
end
|
@@ -0,0 +1,56 @@
|
|
1
|
+
require_relative '../service'
|
2
|
+
module Adyen
|
3
|
+
|
4
|
+
# NOTE: This class is auto generated by OpenAPI Generator
|
5
|
+
# Ref: https://openapi-generator.tech
|
6
|
+
#
|
7
|
+
# Do not edit the class manually.
|
8
|
+
class UsersMerchantLevelApi < Service
|
9
|
+
attr_accessor :service, :version
|
10
|
+
|
11
|
+
def initialize(client, version = DEFAULT_VERSION)
|
12
|
+
super(client, version, 'Management')
|
13
|
+
end
|
14
|
+
|
15
|
+
# Create a new user
|
16
|
+
def create_new_user(request, merchant_id, headers: {})
|
17
|
+
endpoint = '/merchants/{merchantId}/users'.gsub(/{.+?}/, '%s')
|
18
|
+
endpoint = endpoint.gsub(%r{^/}, '')
|
19
|
+
endpoint = format(endpoint, merchant_id)
|
20
|
+
|
21
|
+
action = { method: 'post', url: endpoint }
|
22
|
+
@client.call_adyen_api(@service, action, request, headers, @version)
|
23
|
+
end
|
24
|
+
|
25
|
+
# Get user details
|
26
|
+
def get_user_details(merchant_id, user_id, headers: {})
|
27
|
+
endpoint = '/merchants/{merchantId}/users/{userId}'.gsub(/{.+?}/, '%s')
|
28
|
+
endpoint = endpoint.gsub(%r{^/}, '')
|
29
|
+
endpoint = format(endpoint, merchant_id, user_id)
|
30
|
+
|
31
|
+
action = { method: 'get', url: endpoint }
|
32
|
+
@client.call_adyen_api(@service, action, {}, headers, @version)
|
33
|
+
end
|
34
|
+
|
35
|
+
# Get a list of users
|
36
|
+
def list_users(merchant_id, headers: {}, query_params: {})
|
37
|
+
endpoint = '/merchants/{merchantId}/users'.gsub(/{.+?}/, '%s')
|
38
|
+
endpoint = endpoint.gsub(%r{^/}, '')
|
39
|
+
endpoint = format(endpoint, merchant_id)
|
40
|
+
endpoint += create_query_string(query_params)
|
41
|
+
action = { method: 'get', url: endpoint }
|
42
|
+
@client.call_adyen_api(@service, action, {}, headers, @version)
|
43
|
+
end
|
44
|
+
|
45
|
+
# Update a user
|
46
|
+
def update_user(request, merchant_id, user_id, headers: {})
|
47
|
+
endpoint = '/merchants/{merchantId}/users/{userId}'.gsub(/{.+?}/, '%s')
|
48
|
+
endpoint = endpoint.gsub(%r{^/}, '')
|
49
|
+
endpoint = format(endpoint, merchant_id, user_id)
|
50
|
+
|
51
|
+
action = { method: 'patch', url: endpoint }
|
52
|
+
@client.call_adyen_api(@service, action, request, headers, @version)
|
53
|
+
end
|
54
|
+
|
55
|
+
end
|
56
|
+
end
|
@@ -0,0 +1,86 @@
|
|
1
|
+
require_relative '../service'
|
2
|
+
module Adyen
|
3
|
+
|
4
|
+
# NOTE: This class is auto generated by OpenAPI Generator
|
5
|
+
# Ref: https://openapi-generator.tech
|
6
|
+
#
|
7
|
+
# Do not edit the class manually.
|
8
|
+
class WebhooksCompanyLevelApi < Service
|
9
|
+
attr_accessor :service, :version
|
10
|
+
|
11
|
+
def initialize(client, version = DEFAULT_VERSION)
|
12
|
+
super(client, version, 'Management')
|
13
|
+
end
|
14
|
+
|
15
|
+
# Generate an HMAC key
|
16
|
+
def generate_hmac_key(company_id, webhook_id, headers: {})
|
17
|
+
endpoint = '/companies/{companyId}/webhooks/{webhookId}/generateHmac'.gsub(/{.+?}/, '%s')
|
18
|
+
endpoint = endpoint.gsub(%r{^/}, '')
|
19
|
+
endpoint = format(endpoint, company_id, webhook_id)
|
20
|
+
|
21
|
+
action = { method: 'post', url: endpoint }
|
22
|
+
@client.call_adyen_api(@service, action, {}, headers, @version)
|
23
|
+
end
|
24
|
+
|
25
|
+
# Get a webhook
|
26
|
+
def get_webhook(company_id, webhook_id, headers: {})
|
27
|
+
endpoint = '/companies/{companyId}/webhooks/{webhookId}'.gsub(/{.+?}/, '%s')
|
28
|
+
endpoint = endpoint.gsub(%r{^/}, '')
|
29
|
+
endpoint = format(endpoint, company_id, webhook_id)
|
30
|
+
|
31
|
+
action = { method: 'get', url: endpoint }
|
32
|
+
@client.call_adyen_api(@service, action, {}, headers, @version)
|
33
|
+
end
|
34
|
+
|
35
|
+
# List all webhooks
|
36
|
+
def list_all_webhooks(company_id, headers: {}, query_params: {})
|
37
|
+
endpoint = '/companies/{companyId}/webhooks'.gsub(/{.+?}/, '%s')
|
38
|
+
endpoint = endpoint.gsub(%r{^/}, '')
|
39
|
+
endpoint = format(endpoint, company_id)
|
40
|
+
endpoint += create_query_string(query_params)
|
41
|
+
action = { method: 'get', url: endpoint }
|
42
|
+
@client.call_adyen_api(@service, action, {}, headers, @version)
|
43
|
+
end
|
44
|
+
|
45
|
+
# Remove a webhook
|
46
|
+
def remove_webhook(company_id, webhook_id, headers: {})
|
47
|
+
endpoint = '/companies/{companyId}/webhooks/{webhookId}'.gsub(/{.+?}/, '%s')
|
48
|
+
endpoint = endpoint.gsub(%r{^/}, '')
|
49
|
+
endpoint = format(endpoint, company_id, webhook_id)
|
50
|
+
|
51
|
+
action = { method: 'delete', url: endpoint }
|
52
|
+
@client.call_adyen_api(@service, action, {}, headers, @version)
|
53
|
+
end
|
54
|
+
|
55
|
+
# Set up a webhook
|
56
|
+
def set_up_webhook(request, company_id, headers: {})
|
57
|
+
endpoint = '/companies/{companyId}/webhooks'.gsub(/{.+?}/, '%s')
|
58
|
+
endpoint = endpoint.gsub(%r{^/}, '')
|
59
|
+
endpoint = format(endpoint, company_id)
|
60
|
+
|
61
|
+
action = { method: 'post', url: endpoint }
|
62
|
+
@client.call_adyen_api(@service, action, request, headers, @version)
|
63
|
+
end
|
64
|
+
|
65
|
+
# Test a webhook
|
66
|
+
def test_webhook(request, company_id, webhook_id, headers: {})
|
67
|
+
endpoint = '/companies/{companyId}/webhooks/{webhookId}/test'.gsub(/{.+?}/, '%s')
|
68
|
+
endpoint = endpoint.gsub(%r{^/}, '')
|
69
|
+
endpoint = format(endpoint, company_id, webhook_id)
|
70
|
+
|
71
|
+
action = { method: 'post', url: endpoint }
|
72
|
+
@client.call_adyen_api(@service, action, request, headers, @version)
|
73
|
+
end
|
74
|
+
|
75
|
+
# Update a webhook
|
76
|
+
def update_webhook(request, company_id, webhook_id, headers: {})
|
77
|
+
endpoint = '/companies/{companyId}/webhooks/{webhookId}'.gsub(/{.+?}/, '%s')
|
78
|
+
endpoint = endpoint.gsub(%r{^/}, '')
|
79
|
+
endpoint = format(endpoint, company_id, webhook_id)
|
80
|
+
|
81
|
+
action = { method: 'patch', url: endpoint }
|
82
|
+
@client.call_adyen_api(@service, action, request, headers, @version)
|
83
|
+
end
|
84
|
+
|
85
|
+
end
|
86
|
+
end
|
@@ -0,0 +1,86 @@
|
|
1
|
+
require_relative '../service'
|
2
|
+
module Adyen
|
3
|
+
|
4
|
+
# NOTE: This class is auto generated by OpenAPI Generator
|
5
|
+
# Ref: https://openapi-generator.tech
|
6
|
+
#
|
7
|
+
# Do not edit the class manually.
|
8
|
+
class WebhooksMerchantLevelApi < Service
|
9
|
+
attr_accessor :service, :version
|
10
|
+
|
11
|
+
def initialize(client, version = DEFAULT_VERSION)
|
12
|
+
super(client, version, 'Management')
|
13
|
+
end
|
14
|
+
|
15
|
+
# Generate an HMAC key
|
16
|
+
def generate_hmac_key(merchant_id, webhook_id, headers: {})
|
17
|
+
endpoint = '/merchants/{merchantId}/webhooks/{webhookId}/generateHmac'.gsub(/{.+?}/, '%s')
|
18
|
+
endpoint = endpoint.gsub(%r{^/}, '')
|
19
|
+
endpoint = format(endpoint, merchant_id, webhook_id)
|
20
|
+
|
21
|
+
action = { method: 'post', url: endpoint }
|
22
|
+
@client.call_adyen_api(@service, action, {}, headers, @version)
|
23
|
+
end
|
24
|
+
|
25
|
+
# Get a webhook
|
26
|
+
def get_webhook(merchant_id, webhook_id, headers: {})
|
27
|
+
endpoint = '/merchants/{merchantId}/webhooks/{webhookId}'.gsub(/{.+?}/, '%s')
|
28
|
+
endpoint = endpoint.gsub(%r{^/}, '')
|
29
|
+
endpoint = format(endpoint, merchant_id, webhook_id)
|
30
|
+
|
31
|
+
action = { method: 'get', url: endpoint }
|
32
|
+
@client.call_adyen_api(@service, action, {}, headers, @version)
|
33
|
+
end
|
34
|
+
|
35
|
+
# List all webhooks
|
36
|
+
def list_all_webhooks(merchant_id, headers: {}, query_params: {})
|
37
|
+
endpoint = '/merchants/{merchantId}/webhooks'.gsub(/{.+?}/, '%s')
|
38
|
+
endpoint = endpoint.gsub(%r{^/}, '')
|
39
|
+
endpoint = format(endpoint, merchant_id)
|
40
|
+
endpoint += create_query_string(query_params)
|
41
|
+
action = { method: 'get', url: endpoint }
|
42
|
+
@client.call_adyen_api(@service, action, {}, headers, @version)
|
43
|
+
end
|
44
|
+
|
45
|
+
# Remove a webhook
|
46
|
+
def remove_webhook(merchant_id, webhook_id, headers: {})
|
47
|
+
endpoint = '/merchants/{merchantId}/webhooks/{webhookId}'.gsub(/{.+?}/, '%s')
|
48
|
+
endpoint = endpoint.gsub(%r{^/}, '')
|
49
|
+
endpoint = format(endpoint, merchant_id, webhook_id)
|
50
|
+
|
51
|
+
action = { method: 'delete', url: endpoint }
|
52
|
+
@client.call_adyen_api(@service, action, {}, headers, @version)
|
53
|
+
end
|
54
|
+
|
55
|
+
# Set up a webhook
|
56
|
+
def set_up_webhook(request, merchant_id, headers: {})
|
57
|
+
endpoint = '/merchants/{merchantId}/webhooks'.gsub(/{.+?}/, '%s')
|
58
|
+
endpoint = endpoint.gsub(%r{^/}, '')
|
59
|
+
endpoint = format(endpoint, merchant_id)
|
60
|
+
|
61
|
+
action = { method: 'post', url: endpoint }
|
62
|
+
@client.call_adyen_api(@service, action, request, headers, @version)
|
63
|
+
end
|
64
|
+
|
65
|
+
# Test a webhook
|
66
|
+
def test_webhook(request, merchant_id, webhook_id, headers: {})
|
67
|
+
endpoint = '/merchants/{merchantId}/webhooks/{webhookId}/test'.gsub(/{.+?}/, '%s')
|
68
|
+
endpoint = endpoint.gsub(%r{^/}, '')
|
69
|
+
endpoint = format(endpoint, merchant_id, webhook_id)
|
70
|
+
|
71
|
+
action = { method: 'post', url: endpoint }
|
72
|
+
@client.call_adyen_api(@service, action, request, headers, @version)
|
73
|
+
end
|
74
|
+
|
75
|
+
# Update a webhook
|
76
|
+
def update_webhook(request, merchant_id, webhook_id, headers: {})
|
77
|
+
endpoint = '/merchants/{merchantId}/webhooks/{webhookId}'.gsub(/{.+?}/, '%s')
|
78
|
+
endpoint = endpoint.gsub(%r{^/}, '')
|
79
|
+
endpoint = format(endpoint, merchant_id, webhook_id)
|
80
|
+
|
81
|
+
action = { method: 'patch', url: endpoint }
|
82
|
+
@client.call_adyen_api(@service, action, request, headers, @version)
|
83
|
+
end
|
84
|
+
|
85
|
+
end
|
86
|
+
end
|
@@ -0,0 +1,164 @@
|
|
1
|
+
require_relative 'management/api_credentials_company_level_api'
|
2
|
+
require_relative 'management/api_credentials_merchant_level_api'
|
3
|
+
require_relative 'management/api_key_company_level_api'
|
4
|
+
require_relative 'management/api_key_merchant_level_api'
|
5
|
+
require_relative 'management/account_company_level_api'
|
6
|
+
require_relative 'management/account_merchant_level_api'
|
7
|
+
require_relative 'management/account_store_level_api'
|
8
|
+
require_relative 'management/allowed_origins_company_level_api'
|
9
|
+
require_relative 'management/allowed_origins_merchant_level_api'
|
10
|
+
require_relative 'management/android_files_company_level_api'
|
11
|
+
require_relative 'management/client_key_company_level_api'
|
12
|
+
require_relative 'management/client_key_merchant_level_api'
|
13
|
+
require_relative 'management/my_api_credential_api'
|
14
|
+
require_relative 'management/payment_methods_merchant_level_api'
|
15
|
+
require_relative 'management/payout_settings_merchant_level_api'
|
16
|
+
require_relative 'management/split_configuration_merchant_level_api'
|
17
|
+
require_relative 'management/terminal_actions_company_level_api'
|
18
|
+
require_relative 'management/terminal_actions_terminal_level_api'
|
19
|
+
require_relative 'management/terminal_orders_company_level_api'
|
20
|
+
require_relative 'management/terminal_orders_merchant_level_api'
|
21
|
+
require_relative 'management/terminal_settings_company_level_api'
|
22
|
+
require_relative 'management/terminal_settings_merchant_level_api'
|
23
|
+
require_relative 'management/terminal_settings_store_level_api'
|
24
|
+
require_relative 'management/terminal_settings_terminal_level_api'
|
25
|
+
require_relative 'management/terminals_terminal_level_api'
|
26
|
+
require_relative 'management/users_company_level_api'
|
27
|
+
require_relative 'management/users_merchant_level_api'
|
28
|
+
require_relative 'management/webhooks_company_level_api'
|
29
|
+
require_relative 'management/webhooks_merchant_level_api'
|
30
|
+
|
31
|
+
module Adyen
|
32
|
+
|
33
|
+
# NOTE: This class is auto generated by OpenAPI Generator
|
34
|
+
# Ref: https://openapi-generator.tech
|
35
|
+
#
|
36
|
+
# Do not edit the class manually.
|
37
|
+
class Management
|
38
|
+
attr_accessor :service, :version
|
39
|
+
|
40
|
+
DEFAULT_VERSION = 3
|
41
|
+
def initialize(client, version = DEFAULT_VERSION)
|
42
|
+
@service = 'Management'
|
43
|
+
@client = client
|
44
|
+
@version = version
|
45
|
+
end
|
46
|
+
|
47
|
+
def api_credentials_company_level_api
|
48
|
+
@api_credentials_company_level_api ||= Adyen::APICredentialsCompanyLevelApi.new(@client, @version)
|
49
|
+
end
|
50
|
+
|
51
|
+
def api_credentials_merchant_level_api
|
52
|
+
@api_credentials_merchant_level_api ||= Adyen::APICredentialsMerchantLevelApi.new(@client, @version)
|
53
|
+
end
|
54
|
+
|
55
|
+
def api_key_company_level_api
|
56
|
+
@api_key_company_level_api ||= Adyen::APIKeyCompanyLevelApi.new(@client, @version)
|
57
|
+
end
|
58
|
+
|
59
|
+
def api_key_merchant_level_api
|
60
|
+
@api_key_merchant_level_api ||= Adyen::APIKeyMerchantLevelApi.new(@client, @version)
|
61
|
+
end
|
62
|
+
|
63
|
+
def account_company_level_api
|
64
|
+
@account_company_level_api ||= Adyen::AccountCompanyLevelApi.new(@client, @version)
|
65
|
+
end
|
66
|
+
|
67
|
+
def account_merchant_level_api
|
68
|
+
@account_merchant_level_api ||= Adyen::AccountMerchantLevelApi.new(@client, @version)
|
69
|
+
end
|
70
|
+
|
71
|
+
def account_store_level_api
|
72
|
+
@account_store_level_api ||= Adyen::AccountStoreLevelApi.new(@client, @version)
|
73
|
+
end
|
74
|
+
|
75
|
+
def allowed_origins_company_level_api
|
76
|
+
@allowed_origins_company_level_api ||= Adyen::AllowedOriginsCompanyLevelApi.new(@client, @version)
|
77
|
+
end
|
78
|
+
|
79
|
+
def allowed_origins_merchant_level_api
|
80
|
+
@allowed_origins_merchant_level_api ||= Adyen::AllowedOriginsMerchantLevelApi.new(@client, @version)
|
81
|
+
end
|
82
|
+
|
83
|
+
def android_files_company_level_api
|
84
|
+
@android_files_company_level_api ||= Adyen::AndroidFilesCompanyLevelApi.new(@client, @version)
|
85
|
+
end
|
86
|
+
|
87
|
+
def client_key_company_level_api
|
88
|
+
@client_key_company_level_api ||= Adyen::ClientKeyCompanyLevelApi.new(@client, @version)
|
89
|
+
end
|
90
|
+
|
91
|
+
def client_key_merchant_level_api
|
92
|
+
@client_key_merchant_level_api ||= Adyen::ClientKeyMerchantLevelApi.new(@client, @version)
|
93
|
+
end
|
94
|
+
|
95
|
+
def my_api_credential_api
|
96
|
+
@my_api_credential_api ||= Adyen::MyAPICredentialApi.new(@client, @version)
|
97
|
+
end
|
98
|
+
|
99
|
+
def payment_methods_merchant_level_api
|
100
|
+
@payment_methods_merchant_level_api ||= Adyen::PaymentMethodsMerchantLevelApi.new(@client, @version)
|
101
|
+
end
|
102
|
+
|
103
|
+
def payout_settings_merchant_level_api
|
104
|
+
@payout_settings_merchant_level_api ||= Adyen::PayoutSettingsMerchantLevelApi.new(@client, @version)
|
105
|
+
end
|
106
|
+
|
107
|
+
def split_configuration_merchant_level_api
|
108
|
+
@split_configuration_merchant_level_api ||= Adyen::SplitConfigurationMerchantLevelApi.new(@client, @version)
|
109
|
+
end
|
110
|
+
|
111
|
+
def terminal_actions_company_level_api
|
112
|
+
@terminal_actions_company_level_api ||= Adyen::TerminalActionsCompanyLevelApi.new(@client, @version)
|
113
|
+
end
|
114
|
+
|
115
|
+
def terminal_actions_terminal_level_api
|
116
|
+
@terminal_actions_terminal_level_api ||= Adyen::TerminalActionsTerminalLevelApi.new(@client, @version)
|
117
|
+
end
|
118
|
+
|
119
|
+
def terminal_orders_company_level_api
|
120
|
+
@terminal_orders_company_level_api ||= Adyen::TerminalOrdersCompanyLevelApi.new(@client, @version)
|
121
|
+
end
|
122
|
+
|
123
|
+
def terminal_orders_merchant_level_api
|
124
|
+
@terminal_orders_merchant_level_api ||= Adyen::TerminalOrdersMerchantLevelApi.new(@client, @version)
|
125
|
+
end
|
126
|
+
|
127
|
+
def terminal_settings_company_level_api
|
128
|
+
@terminal_settings_company_level_api ||= Adyen::TerminalSettingsCompanyLevelApi.new(@client, @version)
|
129
|
+
end
|
130
|
+
|
131
|
+
def terminal_settings_merchant_level_api
|
132
|
+
@terminal_settings_merchant_level_api ||= Adyen::TerminalSettingsMerchantLevelApi.new(@client, @version)
|
133
|
+
end
|
134
|
+
|
135
|
+
def terminal_settings_store_level_api
|
136
|
+
@terminal_settings_store_level_api ||= Adyen::TerminalSettingsStoreLevelApi.new(@client, @version)
|
137
|
+
end
|
138
|
+
|
139
|
+
def terminal_settings_terminal_level_api
|
140
|
+
@terminal_settings_terminal_level_api ||= Adyen::TerminalSettingsTerminalLevelApi.new(@client, @version)
|
141
|
+
end
|
142
|
+
|
143
|
+
def terminals_terminal_level_api
|
144
|
+
@terminals_terminal_level_api ||= Adyen::TerminalsTerminalLevelApi.new(@client, @version)
|
145
|
+
end
|
146
|
+
|
147
|
+
def users_company_level_api
|
148
|
+
@users_company_level_api ||= Adyen::UsersCompanyLevelApi.new(@client, @version)
|
149
|
+
end
|
150
|
+
|
151
|
+
def users_merchant_level_api
|
152
|
+
@users_merchant_level_api ||= Adyen::UsersMerchantLevelApi.new(@client, @version)
|
153
|
+
end
|
154
|
+
|
155
|
+
def webhooks_company_level_api
|
156
|
+
@webhooks_company_level_api ||= Adyen::WebhooksCompanyLevelApi.new(@client, @version)
|
157
|
+
end
|
158
|
+
|
159
|
+
def webhooks_merchant_level_api
|
160
|
+
@webhooks_merchant_level_api ||= Adyen::WebhooksMerchantLevelApi.new(@client, @version)
|
161
|
+
end
|
162
|
+
|
163
|
+
end
|
164
|
+
end
|