adyen-ruby-api-library 11.1.0 → 11.3.0
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/workflows/codeql.yml +4 -4
- data/.github/workflows/label_new_issues.yml +1 -1
- data/.github/workflows/release.yml +2 -2
- data/.github/workflows/ruby.yml +11 -3
- data/.github/workflows/rubygems_release.yml +2 -2
- data/.github/workflows/stale.yml +1 -1
- data/AGENTS.md +73 -0
- data/README.md +3 -0
- data/VERSION +1 -1
- data/lib/adyen/client.rb +18 -8
- data/lib/adyen/services/balanceControl/balance_control_api.rb +1 -3
- data/lib/adyen/services/balancePlatform/account_holders_api.rb +14 -18
- data/lib/adyen/services/balancePlatform/authorized_card_users_api.rb +4 -12
- data/lib/adyen/services/balancePlatform/balance_accounts_api.rb +10 -30
- data/lib/adyen/services/balancePlatform/balances_api.rb +5 -15
- data/lib/adyen/services/balancePlatform/bank_account_validation_api.rb +1 -3
- data/lib/adyen/services/balancePlatform/card_orders_api.rb +2 -6
- data/lib/adyen/services/balancePlatform/direct_debit_mandates_api.rb +48 -0
- data/lib/adyen/services/balancePlatform/grant_accounts_api.rb +1 -3
- data/lib/adyen/services/balancePlatform/grant_offers_api.rb +2 -6
- data/lib/adyen/services/balancePlatform/manage_card_pin_api.rb +3 -9
- data/lib/adyen/services/balancePlatform/manage_sca_devices_api.rb +6 -18
- data/lib/adyen/services/balancePlatform/network_tokens_api.rb +2 -6
- data/lib/adyen/services/balancePlatform/payment_instrument_groups_api.rb +3 -9
- data/lib/adyen/services/balancePlatform/payment_instruments_api.rb +9 -27
- data/lib/adyen/services/balancePlatform/platform_api.rb +3 -9
- data/lib/adyen/services/balancePlatform/sca_association_management_api.rb +40 -0
- data/lib/adyen/services/balancePlatform/sca_device_management_api.rb +40 -0
- data/lib/adyen/services/balancePlatform/transaction_rules_api.rb +4 -12
- data/lib/adyen/services/balancePlatform/transfer_limits_balance_account_level_api.rb +6 -18
- data/lib/adyen/services/balancePlatform/transfer_limits_balance_platform_level_api.rb +4 -12
- data/lib/adyen/services/balancePlatform/transfer_routes_api.rb +1 -3
- data/lib/adyen/services/balancePlatform.rb +15 -0
- data/lib/adyen/services/binLookup/bin_lookup_api.rb +2 -6
- data/lib/adyen/services/capital/dynamic_offers_api.rb +40 -0
- data/lib/adyen/services/capital/grant_accounts_api.rb +24 -0
- data/lib/adyen/services/capital/grant_offers_api.rb +32 -0
- data/lib/adyen/services/capital/grants_api.rb +64 -0
- data/lib/adyen/services/capital.rb +39 -0
- data/lib/adyen/services/checkout/donations_api.rb +2 -6
- data/lib/adyen/services/checkout/modifications_api.rb +6 -18
- data/lib/adyen/services/checkout/orders_api.rb +3 -9
- data/lib/adyen/services/checkout/payment_links_api.rb +3 -9
- data/lib/adyen/services/checkout/payments_api.rb +6 -18
- data/lib/adyen/services/checkout/recurring_api.rb +11 -9
- data/lib/adyen/services/checkout/utility_api.rb +4 -12
- data/lib/adyen/services/dataProtection/data_protection_api.rb +1 -3
- data/lib/adyen/services/disputes/disputes_api.rb +5 -15
- data/lib/adyen/services/legalEntityManagement/business_lines_api.rb +4 -12
- data/lib/adyen/services/legalEntityManagement/documents_api.rb +4 -12
- data/lib/adyen/services/legalEntityManagement/hosted_onboarding_api.rb +3 -9
- data/lib/adyen/services/legalEntityManagement/legal_entities_api.rb +7 -21
- data/lib/adyen/services/legalEntityManagement/pci_questionnaires_api.rb +5 -15
- data/lib/adyen/services/legalEntityManagement/tax_e_delivery_consent_api.rb +2 -6
- data/lib/adyen/services/legalEntityManagement/terms_of_service_api.rb +5 -15
- data/lib/adyen/services/legalEntityManagement/transfer_instruments_api.rb +4 -12
- data/lib/adyen/services/management/account_company_level_api.rb +3 -9
- data/lib/adyen/services/management/account_merchant_level_api.rb +4 -12
- data/lib/adyen/services/management/account_store_level_api.rb +8 -24
- data/lib/adyen/services/management/allowed_origins_company_level_api.rb +4 -12
- data/lib/adyen/services/management/allowed_origins_merchant_level_api.rb +4 -12
- data/lib/adyen/services/management/android_files_company_level_api.rb +6 -18
- data/lib/adyen/services/management/api_credentials_company_level_api.rb +4 -12
- data/lib/adyen/services/management/api_credentials_merchant_level_api.rb +4 -12
- data/lib/adyen/services/management/api_key_company_level_api.rb +1 -3
- data/lib/adyen/services/management/api_key_merchant_level_api.rb +1 -3
- data/lib/adyen/services/management/client_key_company_level_api.rb +1 -3
- data/lib/adyen/services/management/client_key_merchant_level_api.rb +1 -3
- data/lib/adyen/services/management/my_api_credential_api.rb +6 -18
- data/lib/adyen/services/management/payment_methods_merchant_level_api.rb +6 -18
- data/lib/adyen/services/management/payout_settings_merchant_level_api.rb +5 -15
- data/lib/adyen/services/management/split_configuration_merchant_level_api.rb +9 -27
- data/lib/adyen/services/management/terminal_actions_company_level_api.rb +2 -6
- data/lib/adyen/services/management/terminal_actions_terminal_level_api.rb +1 -3
- data/lib/adyen/services/management/terminal_orders_company_level_api.rb +10 -30
- data/lib/adyen/services/management/terminal_orders_merchant_level_api.rb +10 -30
- data/lib/adyen/services/management/terminal_settings_company_level_api.rb +4 -12
- data/lib/adyen/services/management/terminal_settings_merchant_level_api.rb +4 -12
- data/lib/adyen/services/management/terminal_settings_store_level_api.rb +8 -24
- data/lib/adyen/services/management/terminal_settings_terminal_level_api.rb +4 -12
- data/lib/adyen/services/management/terminals_terminal_level_api.rb +2 -6
- data/lib/adyen/services/management/users_company_level_api.rb +4 -12
- data/lib/adyen/services/management/users_merchant_level_api.rb +4 -12
- data/lib/adyen/services/management/webhooks_company_level_api.rb +7 -21
- data/lib/adyen/services/management/webhooks_merchant_level_api.rb +7 -21
- data/lib/adyen/services/payment/modifications_api.rb +8 -24
- data/lib/adyen/services/payment/payments_api.rb +5 -15
- data/lib/adyen/services/paymentsApp/payments_app_api.rb +5 -15
- data/lib/adyen/services/payout/initialization_api.rb +3 -9
- data/lib/adyen/services/payout/instant_payouts_api.rb +1 -3
- data/lib/adyen/services/payout/reviewing_api.rb +2 -6
- data/lib/adyen/services/posMobile/pos_mobile_api.rb +1 -3
- data/lib/adyen/services/recurring/recurring_api.rb +7 -19
- data/lib/adyen/services/recurring.rb +1 -1
- data/lib/adyen/services/service.rb +10 -2
- data/lib/adyen/services/sessionAuthentication/session_authentication_api.rb +1 -3
- data/lib/adyen/services/storedValue/stored_value_api.rb +6 -18
- data/lib/adyen/services/transfers/capital_api.rb +3 -9
- data/lib/adyen/services/transfers/transactions_api.rb +2 -6
- data/lib/adyen/services/transfers/transfers_api.rb +6 -18
- data/lib/adyen/utils/hmac_validator.rb +0 -1
- data/lib/adyen/version.rb +1 -1
- data/lib/adyen-ruby-api-library.rb +1 -0
- data/sdk-generation-log/balancecontrol.json +8 -0
- data/sdk-generation-log/balanceplatform.json +8 -0
- data/sdk-generation-log/binlookup.json +8 -0
- data/sdk-generation-log/capital.json +8 -0
- data/sdk-generation-log/checkout.json +8 -0
- data/sdk-generation-log/dataprotection.json +8 -0
- data/sdk-generation-log/disputes.json +8 -0
- data/sdk-generation-log/legalentitymanagement.json +8 -0
- data/sdk-generation-log/management.json +8 -0
- data/sdk-generation-log/payment.json +8 -0
- data/sdk-generation-log/paymentsapp.json +8 -0
- data/sdk-generation-log/payout.json +8 -0
- data/sdk-generation-log/posmobile.json +8 -0
- data/sdk-generation-log/recurring.json +8 -0
- data/sdk-generation-log/sessionauthentication.json +8 -0
- data/sdk-generation-log/storedvalue.json +8 -0
- data/sdk-generation-log/transfers.json +8 -0
- data/spec/balance_platform_spec.rb +111 -0
- data/spec/capital_spec.rb +268 -0
- data/spec/client_spec.rb +206 -68
- data/spec/mocks/requests/BalancePlatform/update_mandate.json +14 -0
- data/spec/mocks/responses/BalancePlatform/get_list_of_mandates.json +19 -0
- data/spec/mocks/responses/BalancePlatform/get_mandate_by_id.json +14 -0
- data/spec/mocks/responses/BalancePlatform/get_tax_form_summary.json +17 -0
- data/spec/mocks/responses/Capital/calculate-preliminary-offer-from-dynamic-offer.json +16 -0
- data/spec/mocks/responses/Capital/create-static-offer-from-dynamic-offer.json +9 -0
- data/spec/mocks/responses/Capital/get-all-dynamic-offers.json +18 -0
- data/spec/mocks/responses/Capital/get-grant-account-success.json +20 -0
- data/spec/mocks/responses/Capital/get-grant-disbursement-success.json +26 -0
- data/spec/mocks/responses/Capital/get-grant-disbursements-success.json +30 -0
- data/spec/mocks/responses/Capital/get-grant-offer-success.json +31 -0
- data/spec/mocks/responses/Capital/get-grant-success.json +22 -0
- data/spec/mocks/responses/Capital/grant-offers-success.json +19 -0
- data/spec/mocks/responses/Capital/grants-success.json +26 -0
- data/spec/mocks/responses/Capital/request-grant.json +31 -0
- data/spec/mocks/responses/Capital/update-grant-disbursement-success.json +26 -0
- data/spec/service_spec.rb +40 -0
- data/templates/api-small.mustache +1 -3
- data/templates/api.mustache +1 -3
- metadata +44 -1
|
@@ -0,0 +1,48 @@
|
|
|
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 DirectDebitMandatesApi < Service
|
|
9
|
+
attr_accessor :service, :version
|
|
10
|
+
|
|
11
|
+
def initialize(client, version = DEFAULT_VERSION)
|
|
12
|
+
super(client, version, 'BalancePlatform')
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
# Cancel a mandate
|
|
16
|
+
def cancel_mandate(mandate_id, headers: {})
|
|
17
|
+
endpoint = build_endpoint('/mandates/{mandateId}/cancel', mandate_id)
|
|
18
|
+
|
|
19
|
+
action = { method: 'post', url: endpoint }
|
|
20
|
+
@client.call_adyen_api(@service, action, {}, headers, @version)
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
# Get a list of mandates
|
|
24
|
+
def get_list_of_mandates(headers: {}, query_params: {})
|
|
25
|
+
endpoint = build_endpoint('/mandates')
|
|
26
|
+
endpoint += create_query_string(query_params)
|
|
27
|
+
action = { method: 'get', url: endpoint }
|
|
28
|
+
@client.call_adyen_api(@service, action, {}, headers, @version)
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
# Get a specific mandate
|
|
32
|
+
def get_mandate_by_id(mandate_id, headers: {})
|
|
33
|
+
endpoint = build_endpoint('/mandates/{mandateId}', mandate_id)
|
|
34
|
+
|
|
35
|
+
action = { method: 'get', url: endpoint }
|
|
36
|
+
@client.call_adyen_api(@service, action, {}, headers, @version)
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
# Amend a mandate
|
|
40
|
+
def update_mandate(request, mandate_id, headers: {})
|
|
41
|
+
endpoint = build_endpoint('/mandates/{mandateId}', mandate_id)
|
|
42
|
+
|
|
43
|
+
action = { method: 'patch', url: endpoint }
|
|
44
|
+
@client.call_adyen_api(@service, action, request, headers, @version)
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
end
|
|
48
|
+
end
|
|
@@ -17,9 +17,7 @@ module Adyen
|
|
|
17
17
|
# Deprecated since Configuration API v2
|
|
18
18
|
# Use the `/grantAccounts/{id}` endpoint from the [Capital API](https://docs.adyen.com/api-explorer/capital/latest/get/grantAccounts/(id)) instead.
|
|
19
19
|
def get_grant_account(id, headers: {})
|
|
20
|
-
endpoint = '/grantAccounts/{id}'
|
|
21
|
-
endpoint = endpoint.gsub(%r{^/}, '')
|
|
22
|
-
endpoint = format(endpoint, id)
|
|
20
|
+
endpoint = build_endpoint('/grantAccounts/{id}', id)
|
|
23
21
|
|
|
24
22
|
action = { method: 'get', url: endpoint }
|
|
25
23
|
@client.call_adyen_api(@service, action, {}, headers, @version)
|
|
@@ -17,9 +17,7 @@ module Adyen
|
|
|
17
17
|
# Deprecated since Configuration API v2
|
|
18
18
|
# Use the `/grantOffers` endpoint from the [Capital API](https://docs.adyen.com/api-explorer/capital/latest/get/grantOffers) instead.
|
|
19
19
|
def get_all_available_grant_offers(headers: {}, query_params: {})
|
|
20
|
-
endpoint = '/grantOffers'
|
|
21
|
-
endpoint = endpoint.gsub(%r{^/}, '')
|
|
22
|
-
endpoint = format(endpoint)
|
|
20
|
+
endpoint = build_endpoint('/grantOffers')
|
|
23
21
|
endpoint += create_query_string(query_params)
|
|
24
22
|
action = { method: 'get', url: endpoint }
|
|
25
23
|
@client.call_adyen_api(@service, action, {}, headers, @version)
|
|
@@ -30,9 +28,7 @@ module Adyen
|
|
|
30
28
|
# Deprecated since Configuration API v2
|
|
31
29
|
# Use the `/grantOffers/{id}` endpoint from the [Capital API](https://docs.adyen.com/api-explorer/capital/latest/get/grantOffers/(id)) instead.
|
|
32
30
|
def get_grant_offer(grant_offer_id, headers: {})
|
|
33
|
-
endpoint = '/grantOffers/{grantOfferId}'
|
|
34
|
-
endpoint = endpoint.gsub(%r{^/}, '')
|
|
35
|
-
endpoint = format(endpoint, grant_offer_id)
|
|
31
|
+
endpoint = build_endpoint('/grantOffers/{grantOfferId}', grant_offer_id)
|
|
36
32
|
|
|
37
33
|
action = { method: 'get', url: endpoint }
|
|
38
34
|
@client.call_adyen_api(@service, action, {}, headers, @version)
|
|
@@ -14,9 +14,7 @@ module Adyen
|
|
|
14
14
|
|
|
15
15
|
# Change a card PIN
|
|
16
16
|
def change_card_pin(request, headers: {})
|
|
17
|
-
endpoint = '/pins/change'
|
|
18
|
-
endpoint = endpoint.gsub(%r{^/}, '')
|
|
19
|
-
endpoint = format(endpoint)
|
|
17
|
+
endpoint = build_endpoint('/pins/change')
|
|
20
18
|
|
|
21
19
|
action = { method: 'post', url: endpoint }
|
|
22
20
|
@client.call_adyen_api(@service, action, request, headers, @version)
|
|
@@ -24,9 +22,7 @@ module Adyen
|
|
|
24
22
|
|
|
25
23
|
# Get an RSA public key
|
|
26
24
|
def public_key(headers: {}, query_params: {})
|
|
27
|
-
endpoint = '/publicKey'
|
|
28
|
-
endpoint = endpoint.gsub(%r{^/}, '')
|
|
29
|
-
endpoint = format(endpoint)
|
|
25
|
+
endpoint = build_endpoint('/publicKey')
|
|
30
26
|
endpoint += create_query_string(query_params)
|
|
31
27
|
action = { method: 'get', url: endpoint }
|
|
32
28
|
@client.call_adyen_api(@service, action, {}, headers, @version)
|
|
@@ -34,9 +30,7 @@ module Adyen
|
|
|
34
30
|
|
|
35
31
|
# Reveal a card PIN
|
|
36
32
|
def reveal_card_pin(request, headers: {})
|
|
37
|
-
endpoint = '/pins/reveal'
|
|
38
|
-
endpoint = endpoint.gsub(%r{^/}, '')
|
|
39
|
-
endpoint = format(endpoint)
|
|
33
|
+
endpoint = build_endpoint('/pins/reveal')
|
|
40
34
|
|
|
41
35
|
action = { method: 'post', url: endpoint }
|
|
42
36
|
@client.call_adyen_api(@service, action, request, headers, @version)
|
|
@@ -14,9 +14,7 @@ module Adyen
|
|
|
14
14
|
|
|
15
15
|
# Complete an association between an SCA device and a resource
|
|
16
16
|
def complete_association_between_sca_device_and_resource(request, device_id, headers: {})
|
|
17
|
-
endpoint = '/registeredDevices/{deviceId}/associations'
|
|
18
|
-
endpoint = endpoint.gsub(%r{^/}, '')
|
|
19
|
-
endpoint = format(endpoint, device_id)
|
|
17
|
+
endpoint = build_endpoint('/registeredDevices/{deviceId}/associations', device_id)
|
|
20
18
|
|
|
21
19
|
action = { method: 'patch', url: endpoint }
|
|
22
20
|
@client.call_adyen_api(@service, action, request, headers, @version)
|
|
@@ -24,9 +22,7 @@ module Adyen
|
|
|
24
22
|
|
|
25
23
|
# Complete the registration of an SCA device
|
|
26
24
|
def complete_registration_of_sca_device(request, id, headers: {})
|
|
27
|
-
endpoint = '/registeredDevices/{id}'
|
|
28
|
-
endpoint = endpoint.gsub(%r{^/}, '')
|
|
29
|
-
endpoint = format(endpoint, id)
|
|
25
|
+
endpoint = build_endpoint('/registeredDevices/{id}', id)
|
|
30
26
|
|
|
31
27
|
action = { method: 'patch', url: endpoint }
|
|
32
28
|
@client.call_adyen_api(@service, action, request, headers, @version)
|
|
@@ -34,9 +30,7 @@ module Adyen
|
|
|
34
30
|
|
|
35
31
|
# Delete a registration of an SCA device
|
|
36
32
|
def delete_registration_of_sca_device(id, headers: {}, query_params: {})
|
|
37
|
-
endpoint = '/registeredDevices/{id}'
|
|
38
|
-
endpoint = endpoint.gsub(%r{^/}, '')
|
|
39
|
-
endpoint = format(endpoint, id)
|
|
33
|
+
endpoint = build_endpoint('/registeredDevices/{id}', id)
|
|
40
34
|
endpoint += create_query_string(query_params)
|
|
41
35
|
action = { method: 'delete', url: endpoint }
|
|
42
36
|
@client.call_adyen_api(@service, action, {}, headers, @version)
|
|
@@ -44,9 +38,7 @@ module Adyen
|
|
|
44
38
|
|
|
45
39
|
# Initiate an association between an SCA device and a resource
|
|
46
40
|
def initiate_association_between_sca_device_and_resource(request, device_id, headers: {})
|
|
47
|
-
endpoint = '/registeredDevices/{deviceId}/associations'
|
|
48
|
-
endpoint = endpoint.gsub(%r{^/}, '')
|
|
49
|
-
endpoint = format(endpoint, device_id)
|
|
41
|
+
endpoint = build_endpoint('/registeredDevices/{deviceId}/associations', device_id)
|
|
50
42
|
|
|
51
43
|
action = { method: 'post', url: endpoint }
|
|
52
44
|
@client.call_adyen_api(@service, action, request, headers, @version)
|
|
@@ -54,9 +46,7 @@ module Adyen
|
|
|
54
46
|
|
|
55
47
|
# Initiate the registration of an SCA device
|
|
56
48
|
def initiate_registration_of_sca_device(request, headers: {})
|
|
57
|
-
endpoint = '/registeredDevices'
|
|
58
|
-
endpoint = endpoint.gsub(%r{^/}, '')
|
|
59
|
-
endpoint = format(endpoint)
|
|
49
|
+
endpoint = build_endpoint('/registeredDevices')
|
|
60
50
|
|
|
61
51
|
action = { method: 'post', url: endpoint }
|
|
62
52
|
@client.call_adyen_api(@service, action, request, headers, @version)
|
|
@@ -64,9 +54,7 @@ module Adyen
|
|
|
64
54
|
|
|
65
55
|
# Get a list of registered SCA devices
|
|
66
56
|
def list_registered_sca_devices(headers: {}, query_params: {})
|
|
67
|
-
endpoint = '/registeredDevices'
|
|
68
|
-
endpoint = endpoint.gsub(%r{^/}, '')
|
|
69
|
-
endpoint = format(endpoint)
|
|
57
|
+
endpoint = build_endpoint('/registeredDevices')
|
|
70
58
|
endpoint += create_query_string(query_params)
|
|
71
59
|
action = { method: 'get', url: endpoint }
|
|
72
60
|
@client.call_adyen_api(@service, action, {}, headers, @version)
|
|
@@ -14,9 +14,7 @@ module Adyen
|
|
|
14
14
|
|
|
15
15
|
# Get a network token
|
|
16
16
|
def get_network_token(network_token_id, headers: {})
|
|
17
|
-
endpoint = '/networkTokens/{networkTokenId}'
|
|
18
|
-
endpoint = endpoint.gsub(%r{^/}, '')
|
|
19
|
-
endpoint = format(endpoint, network_token_id)
|
|
17
|
+
endpoint = build_endpoint('/networkTokens/{networkTokenId}', network_token_id)
|
|
20
18
|
|
|
21
19
|
action = { method: 'get', url: endpoint }
|
|
22
20
|
@client.call_adyen_api(@service, action, {}, headers, @version)
|
|
@@ -24,9 +22,7 @@ module Adyen
|
|
|
24
22
|
|
|
25
23
|
# Update a network token
|
|
26
24
|
def update_network_token(request, network_token_id, headers: {})
|
|
27
|
-
endpoint = '/networkTokens/{networkTokenId}'
|
|
28
|
-
endpoint = endpoint.gsub(%r{^/}, '')
|
|
29
|
-
endpoint = format(endpoint, network_token_id)
|
|
25
|
+
endpoint = build_endpoint('/networkTokens/{networkTokenId}', network_token_id)
|
|
30
26
|
|
|
31
27
|
action = { method: 'patch', url: endpoint }
|
|
32
28
|
@client.call_adyen_api(@service, action, request, headers, @version)
|
|
@@ -14,9 +14,7 @@ module Adyen
|
|
|
14
14
|
|
|
15
15
|
# Create a payment instrument group
|
|
16
16
|
def create_payment_instrument_group(request, headers: {})
|
|
17
|
-
endpoint = '/paymentInstrumentGroups'
|
|
18
|
-
endpoint = endpoint.gsub(%r{^/}, '')
|
|
19
|
-
endpoint = format(endpoint)
|
|
17
|
+
endpoint = build_endpoint('/paymentInstrumentGroups')
|
|
20
18
|
|
|
21
19
|
action = { method: 'post', url: endpoint }
|
|
22
20
|
@client.call_adyen_api(@service, action, request, headers, @version)
|
|
@@ -24,9 +22,7 @@ module Adyen
|
|
|
24
22
|
|
|
25
23
|
# Get all transaction rules for a payment instrument group
|
|
26
24
|
def get_all_transaction_rules_for_payment_instrument_group(id, headers: {})
|
|
27
|
-
endpoint = '/paymentInstrumentGroups/{id}/transactionRules'
|
|
28
|
-
endpoint = endpoint.gsub(%r{^/}, '')
|
|
29
|
-
endpoint = format(endpoint, id)
|
|
25
|
+
endpoint = build_endpoint('/paymentInstrumentGroups/{id}/transactionRules', id)
|
|
30
26
|
|
|
31
27
|
action = { method: 'get', url: endpoint }
|
|
32
28
|
@client.call_adyen_api(@service, action, {}, headers, @version)
|
|
@@ -34,9 +30,7 @@ module Adyen
|
|
|
34
30
|
|
|
35
31
|
# Get a payment instrument group
|
|
36
32
|
def get_payment_instrument_group(id, headers: {})
|
|
37
|
-
endpoint = '/paymentInstrumentGroups/{id}'
|
|
38
|
-
endpoint = endpoint.gsub(%r{^/}, '')
|
|
39
|
-
endpoint = format(endpoint, id)
|
|
33
|
+
endpoint = build_endpoint('/paymentInstrumentGroups/{id}', id)
|
|
40
34
|
|
|
41
35
|
action = { method: 'get', url: endpoint }
|
|
42
36
|
@client.call_adyen_api(@service, action, {}, headers, @version)
|
|
@@ -14,9 +14,7 @@ module Adyen
|
|
|
14
14
|
|
|
15
15
|
# Create network token provisioning data
|
|
16
16
|
def create_network_token_provisioning_data(request, id, headers: {})
|
|
17
|
-
endpoint = '/paymentInstruments/{id}/networkTokenActivationData'
|
|
18
|
-
endpoint = endpoint.gsub(%r{^/}, '')
|
|
19
|
-
endpoint = format(endpoint, id)
|
|
17
|
+
endpoint = build_endpoint('/paymentInstruments/{id}/networkTokenActivationData', id)
|
|
20
18
|
|
|
21
19
|
action = { method: 'post', url: endpoint }
|
|
22
20
|
@client.call_adyen_api(@service, action, request, headers, @version)
|
|
@@ -24,9 +22,7 @@ module Adyen
|
|
|
24
22
|
|
|
25
23
|
# Create a payment instrument
|
|
26
24
|
def create_payment_instrument(request, headers: {})
|
|
27
|
-
endpoint = '/paymentInstruments'
|
|
28
|
-
endpoint = endpoint.gsub(%r{^/}, '')
|
|
29
|
-
endpoint = format(endpoint)
|
|
25
|
+
endpoint = build_endpoint('/paymentInstruments')
|
|
30
26
|
|
|
31
27
|
action = { method: 'post', url: endpoint }
|
|
32
28
|
@client.call_adyen_api(@service, action, request, headers, @version)
|
|
@@ -34,9 +30,7 @@ module Adyen
|
|
|
34
30
|
|
|
35
31
|
# Get all transaction rules for a payment instrument
|
|
36
32
|
def get_all_transaction_rules_for_payment_instrument(id, headers: {})
|
|
37
|
-
endpoint = '/paymentInstruments/{id}/transactionRules'
|
|
38
|
-
endpoint = endpoint.gsub(%r{^/}, '')
|
|
39
|
-
endpoint = format(endpoint, id)
|
|
33
|
+
endpoint = build_endpoint('/paymentInstruments/{id}/transactionRules', id)
|
|
40
34
|
|
|
41
35
|
action = { method: 'get', url: endpoint }
|
|
42
36
|
@client.call_adyen_api(@service, action, {}, headers, @version)
|
|
@@ -44,9 +38,7 @@ module Adyen
|
|
|
44
38
|
|
|
45
39
|
# Get network token activation data
|
|
46
40
|
def get_network_token_activation_data(id, headers: {})
|
|
47
|
-
endpoint = '/paymentInstruments/{id}/networkTokenActivationData'
|
|
48
|
-
endpoint = endpoint.gsub(%r{^/}, '')
|
|
49
|
-
endpoint = format(endpoint, id)
|
|
41
|
+
endpoint = build_endpoint('/paymentInstruments/{id}/networkTokenActivationData', id)
|
|
50
42
|
|
|
51
43
|
action = { method: 'get', url: endpoint }
|
|
52
44
|
@client.call_adyen_api(@service, action, {}, headers, @version)
|
|
@@ -54,9 +46,7 @@ module Adyen
|
|
|
54
46
|
|
|
55
47
|
# Get the PAN of a payment instrument
|
|
56
48
|
def get_pan_of_payment_instrument(id, headers: {})
|
|
57
|
-
endpoint = '/paymentInstruments/{id}/reveal'
|
|
58
|
-
endpoint = endpoint.gsub(%r{^/}, '')
|
|
59
|
-
endpoint = format(endpoint, id)
|
|
49
|
+
endpoint = build_endpoint('/paymentInstruments/{id}/reveal', id)
|
|
60
50
|
|
|
61
51
|
action = { method: 'get', url: endpoint }
|
|
62
52
|
@client.call_adyen_api(@service, action, {}, headers, @version)
|
|
@@ -64,9 +54,7 @@ module Adyen
|
|
|
64
54
|
|
|
65
55
|
# Get a payment instrument
|
|
66
56
|
def get_payment_instrument(id, headers: {})
|
|
67
|
-
endpoint = '/paymentInstruments/{id}'
|
|
68
|
-
endpoint = endpoint.gsub(%r{^/}, '')
|
|
69
|
-
endpoint = format(endpoint, id)
|
|
57
|
+
endpoint = build_endpoint('/paymentInstruments/{id}', id)
|
|
70
58
|
|
|
71
59
|
action = { method: 'get', url: endpoint }
|
|
72
60
|
@client.call_adyen_api(@service, action, {}, headers, @version)
|
|
@@ -74,9 +62,7 @@ module Adyen
|
|
|
74
62
|
|
|
75
63
|
# List network tokens
|
|
76
64
|
def list_network_tokens(id, headers: {})
|
|
77
|
-
endpoint = '/paymentInstruments/{id}/networkTokens'
|
|
78
|
-
endpoint = endpoint.gsub(%r{^/}, '')
|
|
79
|
-
endpoint = format(endpoint, id)
|
|
65
|
+
endpoint = build_endpoint('/paymentInstruments/{id}/networkTokens', id)
|
|
80
66
|
|
|
81
67
|
action = { method: 'get', url: endpoint }
|
|
82
68
|
@client.call_adyen_api(@service, action, {}, headers, @version)
|
|
@@ -84,9 +70,7 @@ module Adyen
|
|
|
84
70
|
|
|
85
71
|
# Reveal the data of a payment instrument
|
|
86
72
|
def reveal_data_of_payment_instrument(request, headers: {})
|
|
87
|
-
endpoint = '/paymentInstruments/reveal'
|
|
88
|
-
endpoint = endpoint.gsub(%r{^/}, '')
|
|
89
|
-
endpoint = format(endpoint)
|
|
73
|
+
endpoint = build_endpoint('/paymentInstruments/reveal')
|
|
90
74
|
|
|
91
75
|
action = { method: 'post', url: endpoint }
|
|
92
76
|
@client.call_adyen_api(@service, action, request, headers, @version)
|
|
@@ -94,9 +78,7 @@ module Adyen
|
|
|
94
78
|
|
|
95
79
|
# Update a payment instrument
|
|
96
80
|
def update_payment_instrument(request, id, headers: {})
|
|
97
|
-
endpoint = '/paymentInstruments/{id}'
|
|
98
|
-
endpoint = endpoint.gsub(%r{^/}, '')
|
|
99
|
-
endpoint = format(endpoint, id)
|
|
81
|
+
endpoint = build_endpoint('/paymentInstruments/{id}', id)
|
|
100
82
|
|
|
101
83
|
action = { method: 'patch', url: endpoint }
|
|
102
84
|
@client.call_adyen_api(@service, action, request, headers, @version)
|
|
@@ -14,9 +14,7 @@ module Adyen
|
|
|
14
14
|
|
|
15
15
|
# Get all account holders under a balance platform
|
|
16
16
|
def get_all_account_holders_under_balance_platform(id, headers: {}, query_params: {})
|
|
17
|
-
endpoint = '/balancePlatforms/{id}/accountHolders'
|
|
18
|
-
endpoint = endpoint.gsub(%r{^/}, '')
|
|
19
|
-
endpoint = format(endpoint, id)
|
|
17
|
+
endpoint = build_endpoint('/balancePlatforms/{id}/accountHolders', id)
|
|
20
18
|
endpoint += create_query_string(query_params)
|
|
21
19
|
action = { method: 'get', url: endpoint }
|
|
22
20
|
@client.call_adyen_api(@service, action, {}, headers, @version)
|
|
@@ -24,9 +22,7 @@ module Adyen
|
|
|
24
22
|
|
|
25
23
|
# Get all transaction rules for a balance platform
|
|
26
24
|
def get_all_transaction_rules_for_balance_platform(id, headers: {})
|
|
27
|
-
endpoint = '/balancePlatforms/{id}/transactionRules'
|
|
28
|
-
endpoint = endpoint.gsub(%r{^/}, '')
|
|
29
|
-
endpoint = format(endpoint, id)
|
|
25
|
+
endpoint = build_endpoint('/balancePlatforms/{id}/transactionRules', id)
|
|
30
26
|
|
|
31
27
|
action = { method: 'get', url: endpoint }
|
|
32
28
|
@client.call_adyen_api(@service, action, {}, headers, @version)
|
|
@@ -34,9 +30,7 @@ module Adyen
|
|
|
34
30
|
|
|
35
31
|
# Get a balance platform
|
|
36
32
|
def get_balance_platform(id, headers: {})
|
|
37
|
-
endpoint = '/balancePlatforms/{id}'
|
|
38
|
-
endpoint = endpoint.gsub(%r{^/}, '')
|
|
39
|
-
endpoint = format(endpoint, id)
|
|
33
|
+
endpoint = build_endpoint('/balancePlatforms/{id}', id)
|
|
40
34
|
|
|
41
35
|
action = { method: 'get', url: endpoint }
|
|
42
36
|
@client.call_adyen_api(@service, action, {}, headers, @version)
|
|
@@ -0,0 +1,40 @@
|
|
|
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 SCAAssociationManagementApi < Service
|
|
9
|
+
attr_accessor :service, :version
|
|
10
|
+
|
|
11
|
+
def initialize(client, version = DEFAULT_VERSION)
|
|
12
|
+
super(client, version, 'BalancePlatform')
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
# Approve a pending approval association
|
|
16
|
+
def approve_association(request, headers: {})
|
|
17
|
+
endpoint = build_endpoint('/scaAssociations')
|
|
18
|
+
|
|
19
|
+
action = { method: 'patch', url: endpoint }
|
|
20
|
+
@client.call_adyen_api(@service, action, request, headers, @version)
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
# Get a list of devices associated with an entity
|
|
24
|
+
def list_associations(headers: {}, query_params: {})
|
|
25
|
+
endpoint = build_endpoint('/scaAssociations')
|
|
26
|
+
endpoint += create_query_string(query_params)
|
|
27
|
+
action = { method: 'get', url: endpoint }
|
|
28
|
+
@client.call_adyen_api(@service, action, {}, headers, @version)
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
# Delete association to devices
|
|
32
|
+
def remove_association(request, headers: {})
|
|
33
|
+
endpoint = build_endpoint('/scaAssociations')
|
|
34
|
+
|
|
35
|
+
action = { method: 'delete', url: endpoint }
|
|
36
|
+
@client.call_adyen_api(@service, action, request, headers, @version)
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
end
|
|
40
|
+
end
|
|
@@ -0,0 +1,40 @@
|
|
|
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 SCADeviceManagementApi < Service
|
|
9
|
+
attr_accessor :service, :version
|
|
10
|
+
|
|
11
|
+
def initialize(client, version = DEFAULT_VERSION)
|
|
12
|
+
super(client, version, 'BalancePlatform')
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
# Begin SCA device registration
|
|
16
|
+
def begin_sca_device_registration(request, headers: {})
|
|
17
|
+
endpoint = build_endpoint('/scaDevices')
|
|
18
|
+
|
|
19
|
+
action = { method: 'post', url: endpoint }
|
|
20
|
+
@client.call_adyen_api(@service, action, request, headers, @version)
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
# Finish registration process for a SCA device
|
|
24
|
+
def finish_sca_device_registration(request, device_id, headers: {})
|
|
25
|
+
endpoint = build_endpoint('/scaDevices/{deviceId}', device_id)
|
|
26
|
+
|
|
27
|
+
action = { method: 'patch', url: endpoint }
|
|
28
|
+
@client.call_adyen_api(@service, action, request, headers, @version)
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
# Create a new SCA association for a device
|
|
32
|
+
def submit_sca_association(request, device_id, headers: {})
|
|
33
|
+
endpoint = build_endpoint('/scaDevices/{deviceId}/scaAssociations', device_id)
|
|
34
|
+
|
|
35
|
+
action = { method: 'post', url: endpoint }
|
|
36
|
+
@client.call_adyen_api(@service, action, request, headers, @version)
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
end
|
|
40
|
+
end
|
|
@@ -14,9 +14,7 @@ module Adyen
|
|
|
14
14
|
|
|
15
15
|
# Create a transaction rule
|
|
16
16
|
def create_transaction_rule(request, headers: {})
|
|
17
|
-
endpoint = '/transactionRules'
|
|
18
|
-
endpoint = endpoint.gsub(%r{^/}, '')
|
|
19
|
-
endpoint = format(endpoint)
|
|
17
|
+
endpoint = build_endpoint('/transactionRules')
|
|
20
18
|
|
|
21
19
|
action = { method: 'post', url: endpoint }
|
|
22
20
|
@client.call_adyen_api(@service, action, request, headers, @version)
|
|
@@ -24,9 +22,7 @@ module Adyen
|
|
|
24
22
|
|
|
25
23
|
# Delete a transaction rule
|
|
26
24
|
def delete_transaction_rule(transaction_rule_id, headers: {})
|
|
27
|
-
endpoint = '/transactionRules/{transactionRuleId}'
|
|
28
|
-
endpoint = endpoint.gsub(%r{^/}, '')
|
|
29
|
-
endpoint = format(endpoint, transaction_rule_id)
|
|
25
|
+
endpoint = build_endpoint('/transactionRules/{transactionRuleId}', transaction_rule_id)
|
|
30
26
|
|
|
31
27
|
action = { method: 'delete', url: endpoint }
|
|
32
28
|
@client.call_adyen_api(@service, action, {}, headers, @version)
|
|
@@ -34,9 +30,7 @@ module Adyen
|
|
|
34
30
|
|
|
35
31
|
# Get a transaction rule
|
|
36
32
|
def get_transaction_rule(transaction_rule_id, headers: {})
|
|
37
|
-
endpoint = '/transactionRules/{transactionRuleId}'
|
|
38
|
-
endpoint = endpoint.gsub(%r{^/}, '')
|
|
39
|
-
endpoint = format(endpoint, transaction_rule_id)
|
|
33
|
+
endpoint = build_endpoint('/transactionRules/{transactionRuleId}', transaction_rule_id)
|
|
40
34
|
|
|
41
35
|
action = { method: 'get', url: endpoint }
|
|
42
36
|
@client.call_adyen_api(@service, action, {}, headers, @version)
|
|
@@ -44,9 +38,7 @@ module Adyen
|
|
|
44
38
|
|
|
45
39
|
# Update a transaction rule
|
|
46
40
|
def update_transaction_rule(request, transaction_rule_id, headers: {})
|
|
47
|
-
endpoint = '/transactionRules/{transactionRuleId}'
|
|
48
|
-
endpoint = endpoint.gsub(%r{^/}, '')
|
|
49
|
-
endpoint = format(endpoint, transaction_rule_id)
|
|
41
|
+
endpoint = build_endpoint('/transactionRules/{transactionRuleId}', transaction_rule_id)
|
|
50
42
|
|
|
51
43
|
action = { method: 'patch', url: endpoint }
|
|
52
44
|
@client.call_adyen_api(@service, action, request, headers, @version)
|
|
@@ -14,9 +14,7 @@ module Adyen
|
|
|
14
14
|
|
|
15
15
|
# Approve pending transfer limits
|
|
16
16
|
def approve_pending_transfer_limits(request, id, headers: {})
|
|
17
|
-
endpoint = '/balanceAccounts/{id}/transferLimits/approve'
|
|
18
|
-
endpoint = endpoint.gsub(%r{^/}, '')
|
|
19
|
-
endpoint = format(endpoint, id)
|
|
17
|
+
endpoint = build_endpoint('/balanceAccounts/{id}/transferLimits/approve', id)
|
|
20
18
|
|
|
21
19
|
action = { method: 'post', url: endpoint }
|
|
22
20
|
@client.call_adyen_api(@service, action, request, headers, @version)
|
|
@@ -24,9 +22,7 @@ module Adyen
|
|
|
24
22
|
|
|
25
23
|
# Create a transfer limit
|
|
26
24
|
def create_transfer_limit(request, id, headers: {})
|
|
27
|
-
endpoint = '/balanceAccounts/{id}/transferLimits'
|
|
28
|
-
endpoint = endpoint.gsub(%r{^/}, '')
|
|
29
|
-
endpoint = format(endpoint, id)
|
|
25
|
+
endpoint = build_endpoint('/balanceAccounts/{id}/transferLimits', id)
|
|
30
26
|
|
|
31
27
|
action = { method: 'post', url: endpoint }
|
|
32
28
|
@client.call_adyen_api(@service, action, request, headers, @version)
|
|
@@ -34,9 +30,7 @@ module Adyen
|
|
|
34
30
|
|
|
35
31
|
# Delete a scheduled or pending transfer limit
|
|
36
32
|
def delete_pending_transfer_limit(id, transfer_limit_id, headers: {})
|
|
37
|
-
endpoint = '/balanceAccounts/{id}/transferLimits/{transferLimitId}'
|
|
38
|
-
endpoint = endpoint.gsub(%r{^/}, '')
|
|
39
|
-
endpoint = format(endpoint, id, transfer_limit_id)
|
|
33
|
+
endpoint = build_endpoint('/balanceAccounts/{id}/transferLimits/{transferLimitId}', id, transfer_limit_id)
|
|
40
34
|
|
|
41
35
|
action = { method: 'delete', url: endpoint }
|
|
42
36
|
@client.call_adyen_api(@service, action, {}, headers, @version)
|
|
@@ -44,9 +38,7 @@ module Adyen
|
|
|
44
38
|
|
|
45
39
|
# Get all current transfer limits
|
|
46
40
|
def get_current_transfer_limits(id, headers: {}, query_params: {})
|
|
47
|
-
endpoint = '/balanceAccounts/{id}/transferLimits/current'
|
|
48
|
-
endpoint = endpoint.gsub(%r{^/}, '')
|
|
49
|
-
endpoint = format(endpoint, id)
|
|
41
|
+
endpoint = build_endpoint('/balanceAccounts/{id}/transferLimits/current', id)
|
|
50
42
|
endpoint += create_query_string(query_params)
|
|
51
43
|
action = { method: 'get', url: endpoint }
|
|
52
44
|
@client.call_adyen_api(@service, action, {}, headers, @version)
|
|
@@ -54,9 +46,7 @@ module Adyen
|
|
|
54
46
|
|
|
55
47
|
# Get the details of a transfer limit
|
|
56
48
|
def get_specific_transfer_limit(id, transfer_limit_id, headers: {})
|
|
57
|
-
endpoint = '/balanceAccounts/{id}/transferLimits/{transferLimitId}'
|
|
58
|
-
endpoint = endpoint.gsub(%r{^/}, '')
|
|
59
|
-
endpoint = format(endpoint, id, transfer_limit_id)
|
|
49
|
+
endpoint = build_endpoint('/balanceAccounts/{id}/transferLimits/{transferLimitId}', id, transfer_limit_id)
|
|
60
50
|
|
|
61
51
|
action = { method: 'get', url: endpoint }
|
|
62
52
|
@client.call_adyen_api(@service, action, {}, headers, @version)
|
|
@@ -64,9 +54,7 @@ module Adyen
|
|
|
64
54
|
|
|
65
55
|
# Filter and view the transfer limits
|
|
66
56
|
def get_transfer_limits(id, headers: {}, query_params: {})
|
|
67
|
-
endpoint = '/balanceAccounts/{id}/transferLimits'
|
|
68
|
-
endpoint = endpoint.gsub(%r{^/}, '')
|
|
69
|
-
endpoint = format(endpoint, id)
|
|
57
|
+
endpoint = build_endpoint('/balanceAccounts/{id}/transferLimits', id)
|
|
70
58
|
endpoint += create_query_string(query_params)
|
|
71
59
|
action = { method: 'get', url: endpoint }
|
|
72
60
|
@client.call_adyen_api(@service, action, {}, headers, @version)
|
|
@@ -14,9 +14,7 @@ module Adyen
|
|
|
14
14
|
|
|
15
15
|
# Create a transfer limit
|
|
16
16
|
def create_transfer_limit(request, id, headers: {})
|
|
17
|
-
endpoint = '/balancePlatforms/{id}/transferLimits'
|
|
18
|
-
endpoint = endpoint.gsub(%r{^/}, '')
|
|
19
|
-
endpoint = format(endpoint, id)
|
|
17
|
+
endpoint = build_endpoint('/balancePlatforms/{id}/transferLimits', id)
|
|
20
18
|
|
|
21
19
|
action = { method: 'post', url: endpoint }
|
|
22
20
|
@client.call_adyen_api(@service, action, request, headers, @version)
|
|
@@ -24,9 +22,7 @@ module Adyen
|
|
|
24
22
|
|
|
25
23
|
# Delete a scheduled or pending transfer limit
|
|
26
24
|
def delete_pending_transfer_limit(id, transfer_limit_id, headers: {})
|
|
27
|
-
endpoint = '/balancePlatforms/{id}/transferLimits/{transferLimitId}'
|
|
28
|
-
endpoint = endpoint.gsub(%r{^/}, '')
|
|
29
|
-
endpoint = format(endpoint, id, transfer_limit_id)
|
|
25
|
+
endpoint = build_endpoint('/balancePlatforms/{id}/transferLimits/{transferLimitId}', id, transfer_limit_id)
|
|
30
26
|
|
|
31
27
|
action = { method: 'delete', url: endpoint }
|
|
32
28
|
@client.call_adyen_api(@service, action, {}, headers, @version)
|
|
@@ -34,9 +30,7 @@ module Adyen
|
|
|
34
30
|
|
|
35
31
|
# Get the details of a transfer limit
|
|
36
32
|
def get_specific_transfer_limit(id, transfer_limit_id, headers: {})
|
|
37
|
-
endpoint = '/balancePlatforms/{id}/transferLimits/{transferLimitId}'
|
|
38
|
-
endpoint = endpoint.gsub(%r{^/}, '')
|
|
39
|
-
endpoint = format(endpoint, id, transfer_limit_id)
|
|
33
|
+
endpoint = build_endpoint('/balancePlatforms/{id}/transferLimits/{transferLimitId}', id, transfer_limit_id)
|
|
40
34
|
|
|
41
35
|
action = { method: 'get', url: endpoint }
|
|
42
36
|
@client.call_adyen_api(@service, action, {}, headers, @version)
|
|
@@ -44,9 +38,7 @@ module Adyen
|
|
|
44
38
|
|
|
45
39
|
# Filter and view the transfer limits
|
|
46
40
|
def get_transfer_limits(id, headers: {}, query_params: {})
|
|
47
|
-
endpoint = '/balancePlatforms/{id}/transferLimits'
|
|
48
|
-
endpoint = endpoint.gsub(%r{^/}, '')
|
|
49
|
-
endpoint = format(endpoint, id)
|
|
41
|
+
endpoint = build_endpoint('/balancePlatforms/{id}/transferLimits', id)
|
|
50
42
|
endpoint += create_query_string(query_params)
|
|
51
43
|
action = { method: 'get', url: endpoint }
|
|
52
44
|
@client.call_adyen_api(@service, action, {}, headers, @version)
|
|
@@ -14,9 +14,7 @@ module Adyen
|
|
|
14
14
|
|
|
15
15
|
# Calculate transfer routes
|
|
16
16
|
def calculate_transfer_routes(request, headers: {})
|
|
17
|
-
endpoint = '/transferRoutes/calculate'
|
|
18
|
-
endpoint = endpoint.gsub(%r{^/}, '')
|
|
19
|
-
endpoint = format(endpoint)
|
|
17
|
+
endpoint = build_endpoint('/transferRoutes/calculate')
|
|
20
18
|
|
|
21
19
|
action = { method: 'post', url: endpoint }
|
|
22
20
|
@client.call_adyen_api(@service, action, request, headers, @version)
|
|
@@ -4,6 +4,7 @@ require_relative 'balancePlatform/balance_accounts_api'
|
|
|
4
4
|
require_relative 'balancePlatform/balances_api'
|
|
5
5
|
require_relative 'balancePlatform/bank_account_validation_api'
|
|
6
6
|
require_relative 'balancePlatform/card_orders_api'
|
|
7
|
+
require_relative 'balancePlatform/direct_debit_mandates_api'
|
|
7
8
|
require_relative 'balancePlatform/grant_accounts_api'
|
|
8
9
|
require_relative 'balancePlatform/grant_offers_api'
|
|
9
10
|
require_relative 'balancePlatform/manage_card_pin_api'
|
|
@@ -12,6 +13,8 @@ require_relative 'balancePlatform/network_tokens_api'
|
|
|
12
13
|
require_relative 'balancePlatform/payment_instrument_groups_api'
|
|
13
14
|
require_relative 'balancePlatform/payment_instruments_api'
|
|
14
15
|
require_relative 'balancePlatform/platform_api'
|
|
16
|
+
require_relative 'balancePlatform/sca_association_management_api'
|
|
17
|
+
require_relative 'balancePlatform/sca_device_management_api'
|
|
15
18
|
require_relative 'balancePlatform/transaction_rules_api'
|
|
16
19
|
require_relative 'balancePlatform/transfer_limits_balance_account_level_api'
|
|
17
20
|
require_relative 'balancePlatform/transfer_limits_balance_platform_level_api'
|
|
@@ -57,6 +60,10 @@ module Adyen
|
|
|
57
60
|
@card_orders_api ||= Adyen::CardOrdersApi.new(@client, @version)
|
|
58
61
|
end
|
|
59
62
|
|
|
63
|
+
def direct_debit_mandates_api
|
|
64
|
+
@direct_debit_mandates_api ||= Adyen::DirectDebitMandatesApi.new(@client, @version)
|
|
65
|
+
end
|
|
66
|
+
|
|
60
67
|
def grant_accounts_api
|
|
61
68
|
@grant_accounts_api ||= Adyen::GrantAccountsApi.new(@client, @version)
|
|
62
69
|
end
|
|
@@ -89,6 +96,14 @@ module Adyen
|
|
|
89
96
|
@platform_api ||= Adyen::PlatformApi.new(@client, @version)
|
|
90
97
|
end
|
|
91
98
|
|
|
99
|
+
def sca_association_management_api
|
|
100
|
+
@sca_association_management_api ||= Adyen::SCAAssociationManagementApi.new(@client, @version)
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
def sca_device_management_api
|
|
104
|
+
@sca_device_management_api ||= Adyen::SCADeviceManagementApi.new(@client, @version)
|
|
105
|
+
end
|
|
106
|
+
|
|
92
107
|
def transaction_rules_api
|
|
93
108
|
@transaction_rules_api ||= Adyen::TransactionRulesApi.new(@client, @version)
|
|
94
109
|
end
|