adyen-ruby-api-library 8.0.0 → 9.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/codeql.yml +5 -5
- data/.github/workflows/rubygems_release.yml +1 -4
- data/CONTRIBUTING.md +1 -1
- data/README.md +1 -1
- data/VERSION +1 -1
- data/lib/adyen/services/balancePlatform/account_holders_api.rb +9 -9
- data/lib/adyen/services/balancePlatform/balance_accounts_api.rb +32 -32
- data/lib/adyen/services/balancePlatform/payment_instrument_groups_api.rb +10 -10
- data/lib/adyen/services/balancePlatform/payment_instruments_api.rb +17 -17
- data/lib/adyen/services/balancePlatform/platform_api.rb +6 -6
- data/lib/adyen/services/balancePlatform/transaction_rules_api.rb +9 -9
- data/lib/adyen/services/checkout/donations_api.rb +20 -0
- data/lib/adyen/services/checkout/modifications_api.rb +9 -9
- data/lib/adyen/services/checkout/orders_api.rb +6 -6
- data/lib/adyen/services/checkout/payment_links_api.rb +8 -8
- data/lib/adyen/services/checkout/payments_api.rb +6 -15
- data/lib/adyen/services/checkout.rb +5 -0
- data/lib/adyen/services/dataProtection.rb +1 -1
- data/lib/adyen/services/legalEntityManagement/business_lines_api.rb +9 -9
- data/lib/adyen/services/legalEntityManagement/hosted_onboarding_api.rb +10 -10
- data/lib/adyen/services/legalEntityManagement/legal_entities_api.rb +27 -18
- data/lib/adyen/services/legalEntityManagement/pci_questionnaires_api.rb +8 -8
- data/lib/adyen/services/legalEntityManagement/terms_of_service_api.rb +18 -18
- data/lib/adyen/services/legalEntityManagement/transfer_instruments_api.rb +9 -9
- data/lib/adyen/services/management/account_company_level_api.rb +8 -8
- data/lib/adyen/services/management/account_merchant_level_api.rb +8 -8
- data/lib/adyen/services/management/account_store_level_api.rb +26 -26
- data/lib/adyen/services/management/allowed_origins_company_level_api.rb +12 -12
- data/lib/adyen/services/management/allowed_origins_merchant_level_api.rb +12 -12
- data/lib/adyen/services/management/android_files_company_level_api.rb +8 -8
- data/lib/adyen/services/management/api_credentials_company_level_api.rb +13 -13
- data/lib/adyen/services/management/api_credentials_merchant_level_api.rb +13 -13
- data/lib/adyen/services/management/my_api_credential_api.rb +22 -22
- data/lib/adyen/services/management/payment_methods_merchant_level_api.rb +15 -15
- data/lib/adyen/services/management/payout_settings_merchant_level_api.rb +15 -15
- data/lib/adyen/services/management/split_configuration_merchant_level_api.rb +30 -30
- data/lib/adyen/services/management/terminal_actions_company_level_api.rb +8 -8
- data/lib/adyen/services/management/terminal_orders_company_level_api.rb +40 -40
- data/lib/adyen/services/management/terminal_orders_merchant_level_api.rb +40 -40
- data/lib/adyen/services/management/terminal_settings_store_level_api.rb +16 -16
- data/lib/adyen/services/management/users_company_level_api.rb +13 -13
- data/lib/adyen/services/management/users_merchant_level_api.rb +13 -13
- data/lib/adyen/services/management/webhooks_company_level_api.rb +19 -19
- data/lib/adyen/services/management/webhooks_merchant_level_api.rb +19 -19
- data/lib/adyen/services/transfers/transfers_api.rb +6 -6
- data/lib/adyen/utils/hmac_validator.rb +12 -20
- data/lib/adyen/version.rb +1 -1
- data/spec/utils/hmac_validator_spec.rb +15 -15
- metadata +4 -3
@@ -7,6 +7,15 @@ module Adyen
|
|
7
7
|
super(client, version, 'Management')
|
8
8
|
end
|
9
9
|
|
10
|
+
def add_apple_pay_domain(request, merchant_id, payment_method_id, headers: {})
|
11
|
+
endpoint = '/merchants/{merchantId}/paymentMethodSettings/{paymentMethodId}/addApplePayDomains'.gsub(/{.+?}/, '%s')
|
12
|
+
endpoint = endpoint.gsub(%r{^/}, '')
|
13
|
+
endpoint = format(endpoint, merchant_id, payment_method_id)
|
14
|
+
|
15
|
+
action = { method: 'post', url: endpoint }
|
16
|
+
@client.call_adyen_api(@service, action, request, headers, @version)
|
17
|
+
end
|
18
|
+
|
10
19
|
def get_all_payment_methods(merchant_id, headers: {}, query_params: {})
|
11
20
|
endpoint = '/merchants/{merchantId}/paymentMethodSettings'.gsub(/{.+?}/, '%s')
|
12
21
|
endpoint = endpoint.gsub(%r{^/}, '')
|
@@ -16,15 +25,6 @@ module Adyen
|
|
16
25
|
@client.call_adyen_api(@service, action, {}, headers, @version)
|
17
26
|
end
|
18
27
|
|
19
|
-
def get_payment_method_details(merchant_id, payment_method_id, headers: {})
|
20
|
-
endpoint = '/merchants/{merchantId}/paymentMethodSettings/{paymentMethodId}'.gsub(/{.+?}/, '%s')
|
21
|
-
endpoint = endpoint.gsub(%r{^/}, '')
|
22
|
-
endpoint = format(endpoint, merchant_id, payment_method_id)
|
23
|
-
|
24
|
-
action = { method: 'get', url: endpoint }
|
25
|
-
@client.call_adyen_api(@service, action, {}, headers, @version)
|
26
|
-
end
|
27
|
-
|
28
28
|
def get_apple_pay_domains(merchant_id, payment_method_id, headers: {})
|
29
29
|
endpoint = '/merchants/{merchantId}/paymentMethodSettings/{paymentMethodId}/getApplePayDomains'.gsub(/{.+?}/, '%s')
|
30
30
|
endpoint = endpoint.gsub(%r{^/}, '')
|
@@ -34,13 +34,13 @@ module Adyen
|
|
34
34
|
@client.call_adyen_api(@service, action, {}, headers, @version)
|
35
35
|
end
|
36
36
|
|
37
|
-
def
|
37
|
+
def get_payment_method_details(merchant_id, payment_method_id, headers: {})
|
38
38
|
endpoint = '/merchants/{merchantId}/paymentMethodSettings/{paymentMethodId}'.gsub(/{.+?}/, '%s')
|
39
39
|
endpoint = endpoint.gsub(%r{^/}, '')
|
40
40
|
endpoint = format(endpoint, merchant_id, payment_method_id)
|
41
41
|
|
42
|
-
action = { method: '
|
43
|
-
@client.call_adyen_api(@service, action,
|
42
|
+
action = { method: 'get', url: endpoint }
|
43
|
+
@client.call_adyen_api(@service, action, {}, headers, @version)
|
44
44
|
end
|
45
45
|
|
46
46
|
def request_payment_method(request, merchant_id, headers: {})
|
@@ -52,12 +52,12 @@ module Adyen
|
|
52
52
|
@client.call_adyen_api(@service, action, request, headers, @version)
|
53
53
|
end
|
54
54
|
|
55
|
-
def
|
56
|
-
endpoint = '/merchants/{merchantId}/paymentMethodSettings/{paymentMethodId}
|
55
|
+
def update_payment_method(request, merchant_id, payment_method_id, headers: {})
|
56
|
+
endpoint = '/merchants/{merchantId}/paymentMethodSettings/{paymentMethodId}'.gsub(/{.+?}/, '%s')
|
57
57
|
endpoint = endpoint.gsub(%r{^/}, '')
|
58
58
|
endpoint = format(endpoint, merchant_id, payment_method_id)
|
59
59
|
|
60
|
-
action = { method: '
|
60
|
+
action = { method: 'patch', url: endpoint }
|
61
61
|
@client.call_adyen_api(@service, action, request, headers, @version)
|
62
62
|
end
|
63
63
|
|
@@ -7,6 +7,15 @@ module Adyen
|
|
7
7
|
super(client, version, 'Management')
|
8
8
|
end
|
9
9
|
|
10
|
+
def add_payout_setting(request, merchant_id, headers: {})
|
11
|
+
endpoint = '/merchants/{merchantId}/payoutSettings'.gsub(/{.+?}/, '%s')
|
12
|
+
endpoint = endpoint.gsub(%r{^/}, '')
|
13
|
+
endpoint = format(endpoint, merchant_id)
|
14
|
+
|
15
|
+
action = { method: 'post', url: endpoint }
|
16
|
+
@client.call_adyen_api(@service, action, request, headers, @version)
|
17
|
+
end
|
18
|
+
|
10
19
|
def delete_payout_setting(merchant_id, payout_settings_id, headers: {})
|
11
20
|
endpoint = '/merchants/{merchantId}/payoutSettings/{payoutSettingsId}'.gsub(/{.+?}/, '%s')
|
12
21
|
endpoint = endpoint.gsub(%r{^/}, '')
|
@@ -16,19 +25,19 @@ module Adyen
|
|
16
25
|
@client.call_adyen_api(@service, action, {}, headers, @version)
|
17
26
|
end
|
18
27
|
|
19
|
-
def
|
20
|
-
endpoint = '/merchants/{merchantId}/payoutSettings'.gsub(/{.+?}/, '%s')
|
28
|
+
def get_payout_setting(merchant_id, payout_settings_id, headers: {})
|
29
|
+
endpoint = '/merchants/{merchantId}/payoutSettings/{payoutSettingsId}'.gsub(/{.+?}/, '%s')
|
21
30
|
endpoint = endpoint.gsub(%r{^/}, '')
|
22
|
-
endpoint = format(endpoint, merchant_id)
|
31
|
+
endpoint = format(endpoint, merchant_id, payout_settings_id)
|
23
32
|
|
24
33
|
action = { method: 'get', url: endpoint }
|
25
34
|
@client.call_adyen_api(@service, action, {}, headers, @version)
|
26
35
|
end
|
27
36
|
|
28
|
-
def
|
29
|
-
endpoint = '/merchants/{merchantId}/payoutSettings
|
37
|
+
def list_payout_settings(merchant_id, headers: {})
|
38
|
+
endpoint = '/merchants/{merchantId}/payoutSettings'.gsub(/{.+?}/, '%s')
|
30
39
|
endpoint = endpoint.gsub(%r{^/}, '')
|
31
|
-
endpoint = format(endpoint, merchant_id
|
40
|
+
endpoint = format(endpoint, merchant_id)
|
32
41
|
|
33
42
|
action = { method: 'get', url: endpoint }
|
34
43
|
@client.call_adyen_api(@service, action, {}, headers, @version)
|
@@ -43,14 +52,5 @@ module Adyen
|
|
43
52
|
@client.call_adyen_api(@service, action, request, headers, @version)
|
44
53
|
end
|
45
54
|
|
46
|
-
def add_payout_setting(request, merchant_id, headers: {})
|
47
|
-
endpoint = '/merchants/{merchantId}/payoutSettings'.gsub(/{.+?}/, '%s')
|
48
|
-
endpoint = endpoint.gsub(%r{^/}, '')
|
49
|
-
endpoint = format(endpoint, merchant_id)
|
50
|
-
|
51
|
-
action = { method: 'post', url: endpoint }
|
52
|
-
@client.call_adyen_api(@service, action, request, headers, @version)
|
53
|
-
end
|
54
|
-
|
55
55
|
end
|
56
56
|
end
|
@@ -7,6 +7,24 @@ module Adyen
|
|
7
7
|
super(client, version, 'Management')
|
8
8
|
end
|
9
9
|
|
10
|
+
def create_rule(request, merchant_id, split_configuration_id, headers: {})
|
11
|
+
endpoint = '/merchants/{merchantId}/splitConfigurations/{splitConfigurationId}'.gsub(/{.+?}/, '%s')
|
12
|
+
endpoint = endpoint.gsub(%r{^/}, '')
|
13
|
+
endpoint = format(endpoint, merchant_id, split_configuration_id)
|
14
|
+
|
15
|
+
action = { method: 'post', url: endpoint }
|
16
|
+
@client.call_adyen_api(@service, action, request, headers, @version)
|
17
|
+
end
|
18
|
+
|
19
|
+
def create_split_configuration(request, merchant_id, headers: {})
|
20
|
+
endpoint = '/merchants/{merchantId}/splitConfigurations'.gsub(/{.+?}/, '%s')
|
21
|
+
endpoint = endpoint.gsub(%r{^/}, '')
|
22
|
+
endpoint = format(endpoint, merchant_id)
|
23
|
+
|
24
|
+
action = { method: 'post', url: endpoint }
|
25
|
+
@client.call_adyen_api(@service, action, request, headers, @version)
|
26
|
+
end
|
27
|
+
|
10
28
|
def delete_split_configuration(merchant_id, split_configuration_id, headers: {})
|
11
29
|
endpoint = '/merchants/{merchantId}/splitConfigurations/{splitConfigurationId}'.gsub(/{.+?}/, '%s')
|
12
30
|
endpoint = endpoint.gsub(%r{^/}, '')
|
@@ -25,15 +43,6 @@ module Adyen
|
|
25
43
|
@client.call_adyen_api(@service, action, {}, headers, @version)
|
26
44
|
end
|
27
45
|
|
28
|
-
def list_split_configurations(merchant_id, headers: {})
|
29
|
-
endpoint = '/merchants/{merchantId}/splitConfigurations'.gsub(/{.+?}/, '%s')
|
30
|
-
endpoint = endpoint.gsub(%r{^/}, '')
|
31
|
-
endpoint = format(endpoint, merchant_id)
|
32
|
-
|
33
|
-
action = { method: 'get', url: endpoint }
|
34
|
-
@client.call_adyen_api(@service, action, {}, headers, @version)
|
35
|
-
end
|
36
|
-
|
37
46
|
def get_split_configuration(merchant_id, split_configuration_id, headers: {})
|
38
47
|
endpoint = '/merchants/{merchantId}/splitConfigurations/{splitConfigurationId}'.gsub(/{.+?}/, '%s')
|
39
48
|
endpoint = endpoint.gsub(%r{^/}, '')
|
@@ -43,13 +52,13 @@ module Adyen
|
|
43
52
|
@client.call_adyen_api(@service, action, {}, headers, @version)
|
44
53
|
end
|
45
54
|
|
46
|
-
def
|
47
|
-
endpoint = '/merchants/{merchantId}/splitConfigurations
|
55
|
+
def list_split_configurations(merchant_id, headers: {})
|
56
|
+
endpoint = '/merchants/{merchantId}/splitConfigurations'.gsub(/{.+?}/, '%s')
|
48
57
|
endpoint = endpoint.gsub(%r{^/}, '')
|
49
|
-
endpoint = format(endpoint, merchant_id
|
58
|
+
endpoint = format(endpoint, merchant_id)
|
50
59
|
|
51
|
-
action = { method: '
|
52
|
-
@client.call_adyen_api(@service, action,
|
60
|
+
action = { method: 'get', url: endpoint }
|
61
|
+
@client.call_adyen_api(@service, action, {}, headers, @version)
|
53
62
|
end
|
54
63
|
|
55
64
|
def update_split_conditions(request, merchant_id, split_configuration_id, rule_id, headers: {})
|
@@ -61,30 +70,21 @@ module Adyen
|
|
61
70
|
@client.call_adyen_api(@service, action, request, headers, @version)
|
62
71
|
end
|
63
72
|
|
64
|
-
def
|
65
|
-
endpoint = '/merchants/{merchantId}/splitConfigurations/{splitConfigurationId}
|
73
|
+
def update_split_configuration_description(request, merchant_id, split_configuration_id, headers: {})
|
74
|
+
endpoint = '/merchants/{merchantId}/splitConfigurations/{splitConfigurationId}'.gsub(/{.+?}/, '%s')
|
66
75
|
endpoint = endpoint.gsub(%r{^/}, '')
|
67
|
-
endpoint = format(endpoint, merchant_id, split_configuration_id
|
76
|
+
endpoint = format(endpoint, merchant_id, split_configuration_id)
|
68
77
|
|
69
78
|
action = { method: 'patch', url: endpoint }
|
70
79
|
@client.call_adyen_api(@service, action, request, headers, @version)
|
71
80
|
end
|
72
81
|
|
73
|
-
def
|
74
|
-
endpoint = '/merchants/{merchantId}/splitConfigurations'.gsub(/{.+?}/, '%s')
|
75
|
-
endpoint = endpoint.gsub(%r{^/}, '')
|
76
|
-
endpoint = format(endpoint, merchant_id)
|
77
|
-
|
78
|
-
action = { method: 'post', url: endpoint }
|
79
|
-
@client.call_adyen_api(@service, action, request, headers, @version)
|
80
|
-
end
|
81
|
-
|
82
|
-
def create_rule(request, merchant_id, split_configuration_id, headers: {})
|
83
|
-
endpoint = '/merchants/{merchantId}/splitConfigurations/{splitConfigurationId}'.gsub(/{.+?}/, '%s')
|
82
|
+
def update_split_logic(request, merchant_id, split_configuration_id, rule_id, split_logic_id, headers: {})
|
83
|
+
endpoint = '/merchants/{merchantId}/splitConfigurations/{splitConfigurationId}/rules/{ruleId}/splitLogic/{splitLogicId}'.gsub(/{.+?}/, '%s')
|
84
84
|
endpoint = endpoint.gsub(%r{^/}, '')
|
85
|
-
endpoint = format(endpoint, merchant_id, split_configuration_id)
|
85
|
+
endpoint = format(endpoint, merchant_id, split_configuration_id, rule_id, split_logic_id)
|
86
86
|
|
87
|
-
action = { method: '
|
87
|
+
action = { method: 'patch', url: endpoint }
|
88
88
|
@client.call_adyen_api(@service, action, request, headers, @version)
|
89
89
|
end
|
90
90
|
|
@@ -7,20 +7,20 @@ module Adyen
|
|
7
7
|
super(client, version, 'Management')
|
8
8
|
end
|
9
9
|
|
10
|
-
def
|
11
|
-
endpoint = '/companies/{companyId}/terminalActions'.gsub(/{.+?}/, '%s')
|
10
|
+
def get_terminal_action(company_id, action_id, headers: {})
|
11
|
+
endpoint = '/companies/{companyId}/terminalActions/{actionId}'.gsub(/{.+?}/, '%s')
|
12
12
|
endpoint = endpoint.gsub(%r{^/}, '')
|
13
|
-
endpoint = format(endpoint, company_id)
|
14
|
-
|
13
|
+
endpoint = format(endpoint, company_id, action_id)
|
14
|
+
|
15
15
|
action = { method: 'get', url: endpoint }
|
16
16
|
@client.call_adyen_api(@service, action, {}, headers, @version)
|
17
17
|
end
|
18
18
|
|
19
|
-
def
|
20
|
-
endpoint = '/companies/{companyId}/terminalActions
|
19
|
+
def list_terminal_actions(company_id, headers: {}, query_params: {})
|
20
|
+
endpoint = '/companies/{companyId}/terminalActions'.gsub(/{.+?}/, '%s')
|
21
21
|
endpoint = endpoint.gsub(%r{^/}, '')
|
22
|
-
endpoint = format(endpoint, company_id
|
23
|
-
|
22
|
+
endpoint = format(endpoint, company_id)
|
23
|
+
endpoint += create_query_string(query_params)
|
24
24
|
action = { method: 'get', url: endpoint }
|
25
25
|
@client.call_adyen_api(@service, action, {}, headers, @version)
|
26
26
|
end
|
@@ -7,29 +7,47 @@ module Adyen
|
|
7
7
|
super(client, version, 'Management')
|
8
8
|
end
|
9
9
|
|
10
|
-
def
|
11
|
-
endpoint = '/companies/{companyId}/
|
10
|
+
def cancel_order(company_id, order_id, headers: {})
|
11
|
+
endpoint = '/companies/{companyId}/terminalOrders/{orderId}/cancel'.gsub(/{.+?}/, '%s')
|
12
12
|
endpoint = endpoint.gsub(%r{^/}, '')
|
13
|
-
endpoint = format(endpoint, company_id)
|
14
|
-
|
15
|
-
action = { method: '
|
13
|
+
endpoint = format(endpoint, company_id, order_id)
|
14
|
+
|
15
|
+
action = { method: 'post', url: endpoint }
|
16
16
|
@client.call_adyen_api(@service, action, {}, headers, @version)
|
17
17
|
end
|
18
18
|
|
19
|
-
def
|
19
|
+
def create_order(request, company_id, headers: {})
|
20
|
+
endpoint = '/companies/{companyId}/terminalOrders'.gsub(/{.+?}/, '%s')
|
21
|
+
endpoint = endpoint.gsub(%r{^/}, '')
|
22
|
+
endpoint = format(endpoint, company_id)
|
23
|
+
|
24
|
+
action = { method: 'post', url: endpoint }
|
25
|
+
@client.call_adyen_api(@service, action, request, headers, @version)
|
26
|
+
end
|
27
|
+
|
28
|
+
def create_shipping_location(request, company_id, headers: {})
|
20
29
|
endpoint = '/companies/{companyId}/shippingLocations'.gsub(/{.+?}/, '%s')
|
21
30
|
endpoint = endpoint.gsub(%r{^/}, '')
|
22
31
|
endpoint = format(endpoint, company_id)
|
23
|
-
|
32
|
+
|
33
|
+
action = { method: 'post', url: endpoint }
|
34
|
+
@client.call_adyen_api(@service, action, request, headers, @version)
|
35
|
+
end
|
36
|
+
|
37
|
+
def get_order(company_id, order_id, headers: {})
|
38
|
+
endpoint = '/companies/{companyId}/terminalOrders/{orderId}'.gsub(/{.+?}/, '%s')
|
39
|
+
endpoint = endpoint.gsub(%r{^/}, '')
|
40
|
+
endpoint = format(endpoint, company_id, order_id)
|
41
|
+
|
24
42
|
action = { method: 'get', url: endpoint }
|
25
43
|
@client.call_adyen_api(@service, action, {}, headers, @version)
|
26
44
|
end
|
27
45
|
|
28
|
-
def
|
29
|
-
endpoint = '/companies/{companyId}/
|
46
|
+
def list_billing_entities(company_id, headers: {}, query_params: {})
|
47
|
+
endpoint = '/companies/{companyId}/billingEntities'.gsub(/{.+?}/, '%s')
|
30
48
|
endpoint = endpoint.gsub(%r{^/}, '')
|
31
49
|
endpoint = format(endpoint, company_id)
|
32
|
-
|
50
|
+
endpoint += create_query_string(query_params)
|
33
51
|
action = { method: 'get', url: endpoint }
|
34
52
|
@client.call_adyen_api(@service, action, {}, headers, @version)
|
35
53
|
end
|
@@ -43,10 +61,19 @@ module Adyen
|
|
43
61
|
@client.call_adyen_api(@service, action, {}, headers, @version)
|
44
62
|
end
|
45
63
|
|
46
|
-
def
|
47
|
-
endpoint = '/companies/{companyId}/
|
64
|
+
def list_shipping_locations(company_id, headers: {}, query_params: {})
|
65
|
+
endpoint = '/companies/{companyId}/shippingLocations'.gsub(/{.+?}/, '%s')
|
48
66
|
endpoint = endpoint.gsub(%r{^/}, '')
|
49
|
-
endpoint = format(endpoint, company_id
|
67
|
+
endpoint = format(endpoint, company_id)
|
68
|
+
endpoint += create_query_string(query_params)
|
69
|
+
action = { method: 'get', url: endpoint }
|
70
|
+
@client.call_adyen_api(@service, action, {}, headers, @version)
|
71
|
+
end
|
72
|
+
|
73
|
+
def list_terminal_models(company_id, headers: {})
|
74
|
+
endpoint = '/companies/{companyId}/terminalModels'.gsub(/{.+?}/, '%s')
|
75
|
+
endpoint = endpoint.gsub(%r{^/}, '')
|
76
|
+
endpoint = format(endpoint, company_id)
|
50
77
|
|
51
78
|
action = { method: 'get', url: endpoint }
|
52
79
|
@client.call_adyen_api(@service, action, {}, headers, @version)
|
@@ -70,32 +97,5 @@ module Adyen
|
|
70
97
|
@client.call_adyen_api(@service, action, request, headers, @version)
|
71
98
|
end
|
72
99
|
|
73
|
-
def create_shipping_location(request, company_id, headers: {})
|
74
|
-
endpoint = '/companies/{companyId}/shippingLocations'.gsub(/{.+?}/, '%s')
|
75
|
-
endpoint = endpoint.gsub(%r{^/}, '')
|
76
|
-
endpoint = format(endpoint, company_id)
|
77
|
-
|
78
|
-
action = { method: 'post', url: endpoint }
|
79
|
-
@client.call_adyen_api(@service, action, request, headers, @version)
|
80
|
-
end
|
81
|
-
|
82
|
-
def create_order(request, company_id, headers: {})
|
83
|
-
endpoint = '/companies/{companyId}/terminalOrders'.gsub(/{.+?}/, '%s')
|
84
|
-
endpoint = endpoint.gsub(%r{^/}, '')
|
85
|
-
endpoint = format(endpoint, company_id)
|
86
|
-
|
87
|
-
action = { method: 'post', url: endpoint }
|
88
|
-
@client.call_adyen_api(@service, action, request, headers, @version)
|
89
|
-
end
|
90
|
-
|
91
|
-
def cancel_order(company_id, order_id, headers: {})
|
92
|
-
endpoint = '/companies/{companyId}/terminalOrders/{orderId}/cancel'.gsub(/{.+?}/, '%s')
|
93
|
-
endpoint = endpoint.gsub(%r{^/}, '')
|
94
|
-
endpoint = format(endpoint, company_id, order_id)
|
95
|
-
|
96
|
-
action = { method: 'post', url: endpoint }
|
97
|
-
@client.call_adyen_api(@service, action, {}, headers, @version)
|
98
|
-
end
|
99
|
-
|
100
100
|
end
|
101
101
|
end
|
@@ -7,29 +7,47 @@ module Adyen
|
|
7
7
|
super(client, version, 'Management')
|
8
8
|
end
|
9
9
|
|
10
|
-
def
|
11
|
-
endpoint = '/merchants/{merchantId}/
|
10
|
+
def cancel_order(merchant_id, order_id, headers: {})
|
11
|
+
endpoint = '/merchants/{merchantId}/terminalOrders/{orderId}/cancel'.gsub(/{.+?}/, '%s')
|
12
12
|
endpoint = endpoint.gsub(%r{^/}, '')
|
13
|
-
endpoint = format(endpoint, merchant_id)
|
14
|
-
|
15
|
-
action = { method: '
|
13
|
+
endpoint = format(endpoint, merchant_id, order_id)
|
14
|
+
|
15
|
+
action = { method: 'post', url: endpoint }
|
16
16
|
@client.call_adyen_api(@service, action, {}, headers, @version)
|
17
17
|
end
|
18
18
|
|
19
|
-
def
|
19
|
+
def create_order(request, merchant_id, headers: {})
|
20
|
+
endpoint = '/merchants/{merchantId}/terminalOrders'.gsub(/{.+?}/, '%s')
|
21
|
+
endpoint = endpoint.gsub(%r{^/}, '')
|
22
|
+
endpoint = format(endpoint, merchant_id)
|
23
|
+
|
24
|
+
action = { method: 'post', url: endpoint }
|
25
|
+
@client.call_adyen_api(@service, action, request, headers, @version)
|
26
|
+
end
|
27
|
+
|
28
|
+
def create_shipping_location(request, merchant_id, headers: {})
|
20
29
|
endpoint = '/merchants/{merchantId}/shippingLocations'.gsub(/{.+?}/, '%s')
|
21
30
|
endpoint = endpoint.gsub(%r{^/}, '')
|
22
31
|
endpoint = format(endpoint, merchant_id)
|
23
|
-
|
32
|
+
|
33
|
+
action = { method: 'post', url: endpoint }
|
34
|
+
@client.call_adyen_api(@service, action, request, headers, @version)
|
35
|
+
end
|
36
|
+
|
37
|
+
def get_order(merchant_id, order_id, headers: {})
|
38
|
+
endpoint = '/merchants/{merchantId}/terminalOrders/{orderId}'.gsub(/{.+?}/, '%s')
|
39
|
+
endpoint = endpoint.gsub(%r{^/}, '')
|
40
|
+
endpoint = format(endpoint, merchant_id, order_id)
|
41
|
+
|
24
42
|
action = { method: 'get', url: endpoint }
|
25
43
|
@client.call_adyen_api(@service, action, {}, headers, @version)
|
26
44
|
end
|
27
45
|
|
28
|
-
def
|
29
|
-
endpoint = '/merchants/{merchantId}/
|
46
|
+
def list_billing_entities(merchant_id, headers: {}, query_params: {})
|
47
|
+
endpoint = '/merchants/{merchantId}/billingEntities'.gsub(/{.+?}/, '%s')
|
30
48
|
endpoint = endpoint.gsub(%r{^/}, '')
|
31
49
|
endpoint = format(endpoint, merchant_id)
|
32
|
-
|
50
|
+
endpoint += create_query_string(query_params)
|
33
51
|
action = { method: 'get', url: endpoint }
|
34
52
|
@client.call_adyen_api(@service, action, {}, headers, @version)
|
35
53
|
end
|
@@ -43,10 +61,19 @@ module Adyen
|
|
43
61
|
@client.call_adyen_api(@service, action, {}, headers, @version)
|
44
62
|
end
|
45
63
|
|
46
|
-
def
|
47
|
-
endpoint = '/merchants/{merchantId}/
|
64
|
+
def list_shipping_locations(merchant_id, headers: {}, query_params: {})
|
65
|
+
endpoint = '/merchants/{merchantId}/shippingLocations'.gsub(/{.+?}/, '%s')
|
48
66
|
endpoint = endpoint.gsub(%r{^/}, '')
|
49
|
-
endpoint = format(endpoint, merchant_id
|
67
|
+
endpoint = format(endpoint, merchant_id)
|
68
|
+
endpoint += create_query_string(query_params)
|
69
|
+
action = { method: 'get', url: endpoint }
|
70
|
+
@client.call_adyen_api(@service, action, {}, headers, @version)
|
71
|
+
end
|
72
|
+
|
73
|
+
def list_terminal_models(merchant_id, headers: {})
|
74
|
+
endpoint = '/merchants/{merchantId}/terminalModels'.gsub(/{.+?}/, '%s')
|
75
|
+
endpoint = endpoint.gsub(%r{^/}, '')
|
76
|
+
endpoint = format(endpoint, merchant_id)
|
50
77
|
|
51
78
|
action = { method: 'get', url: endpoint }
|
52
79
|
@client.call_adyen_api(@service, action, {}, headers, @version)
|
@@ -70,32 +97,5 @@ module Adyen
|
|
70
97
|
@client.call_adyen_api(@service, action, request, headers, @version)
|
71
98
|
end
|
72
99
|
|
73
|
-
def create_shipping_location(request, merchant_id, headers: {})
|
74
|
-
endpoint = '/merchants/{merchantId}/shippingLocations'.gsub(/{.+?}/, '%s')
|
75
|
-
endpoint = endpoint.gsub(%r{^/}, '')
|
76
|
-
endpoint = format(endpoint, merchant_id)
|
77
|
-
|
78
|
-
action = { method: 'post', url: endpoint }
|
79
|
-
@client.call_adyen_api(@service, action, request, headers, @version)
|
80
|
-
end
|
81
|
-
|
82
|
-
def create_order(request, merchant_id, headers: {})
|
83
|
-
endpoint = '/merchants/{merchantId}/terminalOrders'.gsub(/{.+?}/, '%s')
|
84
|
-
endpoint = endpoint.gsub(%r{^/}, '')
|
85
|
-
endpoint = format(endpoint, merchant_id)
|
86
|
-
|
87
|
-
action = { method: 'post', url: endpoint }
|
88
|
-
@client.call_adyen_api(@service, action, request, headers, @version)
|
89
|
-
end
|
90
|
-
|
91
|
-
def cancel_order(merchant_id, order_id, headers: {})
|
92
|
-
endpoint = '/merchants/{merchantId}/terminalOrders/{orderId}/cancel'.gsub(/{.+?}/, '%s')
|
93
|
-
endpoint = endpoint.gsub(%r{^/}, '')
|
94
|
-
endpoint = format(endpoint, merchant_id, order_id)
|
95
|
-
|
96
|
-
action = { method: 'post', url: endpoint }
|
97
|
-
@client.call_adyen_api(@service, action, {}, headers, @version)
|
98
|
-
end
|
99
|
-
|
100
100
|
end
|
101
101
|
end
|
@@ -16,20 +16,20 @@ module Adyen
|
|
16
16
|
@client.call_adyen_api(@service, action, {}, headers, @version)
|
17
17
|
end
|
18
18
|
|
19
|
-
def
|
20
|
-
endpoint = '/
|
19
|
+
def get_terminal_logo_by_store_id(store_id, headers: {}, query_params: {})
|
20
|
+
endpoint = '/stores/{storeId}/terminalLogos'.gsub(/{.+?}/, '%s')
|
21
21
|
endpoint = endpoint.gsub(%r{^/}, '')
|
22
|
-
endpoint = format(endpoint,
|
23
|
-
|
22
|
+
endpoint = format(endpoint, store_id)
|
23
|
+
endpoint += create_query_string(query_params)
|
24
24
|
action = { method: 'get', url: endpoint }
|
25
25
|
@client.call_adyen_api(@service, action, {}, headers, @version)
|
26
26
|
end
|
27
27
|
|
28
|
-
def
|
29
|
-
endpoint = '/stores/{
|
28
|
+
def get_terminal_settings(merchant_id, reference, headers: {})
|
29
|
+
endpoint = '/merchants/{merchantId}/stores/{reference}/terminalSettings'.gsub(/{.+?}/, '%s')
|
30
30
|
endpoint = endpoint.gsub(%r{^/}, '')
|
31
|
-
endpoint = format(endpoint,
|
32
|
-
|
31
|
+
endpoint = format(endpoint, merchant_id, reference)
|
32
|
+
|
33
33
|
action = { method: 'get', url: endpoint }
|
34
34
|
@client.call_adyen_api(@service, action, {}, headers, @version)
|
35
35
|
end
|
@@ -52,20 +52,20 @@ module Adyen
|
|
52
52
|
@client.call_adyen_api(@service, action, request, headers, @version)
|
53
53
|
end
|
54
54
|
|
55
|
-
def
|
56
|
-
endpoint = '/
|
55
|
+
def update_terminal_logo_by_store_id(request, store_id, headers: {}, query_params: {})
|
56
|
+
endpoint = '/stores/{storeId}/terminalLogos'.gsub(/{.+?}/, '%s')
|
57
57
|
endpoint = endpoint.gsub(%r{^/}, '')
|
58
|
-
endpoint = format(endpoint,
|
59
|
-
|
58
|
+
endpoint = format(endpoint, store_id)
|
59
|
+
endpoint += create_query_string(query_params)
|
60
60
|
action = { method: 'patch', url: endpoint }
|
61
61
|
@client.call_adyen_api(@service, action, request, headers, @version)
|
62
62
|
end
|
63
63
|
|
64
|
-
def
|
65
|
-
endpoint = '/stores/{
|
64
|
+
def update_terminal_settings(request, merchant_id, reference, headers: {})
|
65
|
+
endpoint = '/merchants/{merchantId}/stores/{reference}/terminalSettings'.gsub(/{.+?}/, '%s')
|
66
66
|
endpoint = endpoint.gsub(%r{^/}, '')
|
67
|
-
endpoint = format(endpoint,
|
68
|
-
|
67
|
+
endpoint = format(endpoint, merchant_id, reference)
|
68
|
+
|
69
69
|
action = { method: 'patch', url: endpoint }
|
70
70
|
@client.call_adyen_api(@service, action, request, headers, @version)
|
71
71
|
end
|
@@ -7,13 +7,13 @@ module Adyen
|
|
7
7
|
super(client, version, 'Management')
|
8
8
|
end
|
9
9
|
|
10
|
-
def
|
10
|
+
def create_new_user(request, company_id, headers: {})
|
11
11
|
endpoint = '/companies/{companyId}/users'.gsub(/{.+?}/, '%s')
|
12
12
|
endpoint = endpoint.gsub(%r{^/}, '')
|
13
13
|
endpoint = format(endpoint, company_id)
|
14
|
-
|
15
|
-
action = { method: '
|
16
|
-
@client.call_adyen_api(@service, action,
|
14
|
+
|
15
|
+
action = { method: 'post', url: endpoint }
|
16
|
+
@client.call_adyen_api(@service, action, request, headers, @version)
|
17
17
|
end
|
18
18
|
|
19
19
|
def get_user_details(company_id, user_id, headers: {})
|
@@ -25,6 +25,15 @@ module Adyen
|
|
25
25
|
@client.call_adyen_api(@service, action, {}, headers, @version)
|
26
26
|
end
|
27
27
|
|
28
|
+
def list_users(company_id, headers: {}, query_params: {})
|
29
|
+
endpoint = '/companies/{companyId}/users'.gsub(/{.+?}/, '%s')
|
30
|
+
endpoint = endpoint.gsub(%r{^/}, '')
|
31
|
+
endpoint = format(endpoint, company_id)
|
32
|
+
endpoint += create_query_string(query_params)
|
33
|
+
action = { method: 'get', url: endpoint }
|
34
|
+
@client.call_adyen_api(@service, action, {}, headers, @version)
|
35
|
+
end
|
36
|
+
|
28
37
|
def update_user_details(request, company_id, user_id, headers: {})
|
29
38
|
endpoint = '/companies/{companyId}/users/{userId}'.gsub(/{.+?}/, '%s')
|
30
39
|
endpoint = endpoint.gsub(%r{^/}, '')
|
@@ -34,14 +43,5 @@ module Adyen
|
|
34
43
|
@client.call_adyen_api(@service, action, request, headers, @version)
|
35
44
|
end
|
36
45
|
|
37
|
-
def create_new_user(request, company_id, headers: {})
|
38
|
-
endpoint = '/companies/{companyId}/users'.gsub(/{.+?}/, '%s')
|
39
|
-
endpoint = endpoint.gsub(%r{^/}, '')
|
40
|
-
endpoint = format(endpoint, company_id)
|
41
|
-
|
42
|
-
action = { method: 'post', url: endpoint }
|
43
|
-
@client.call_adyen_api(@service, action, request, headers, @version)
|
44
|
-
end
|
45
|
-
|
46
46
|
end
|
47
47
|
end
|
@@ -7,13 +7,13 @@ module Adyen
|
|
7
7
|
super(client, version, 'Management')
|
8
8
|
end
|
9
9
|
|
10
|
-
def
|
10
|
+
def create_new_user(request, merchant_id, headers: {})
|
11
11
|
endpoint = '/merchants/{merchantId}/users'.gsub(/{.+?}/, '%s')
|
12
12
|
endpoint = endpoint.gsub(%r{^/}, '')
|
13
13
|
endpoint = format(endpoint, merchant_id)
|
14
|
-
|
15
|
-
action = { method: '
|
16
|
-
@client.call_adyen_api(@service, action,
|
14
|
+
|
15
|
+
action = { method: 'post', url: endpoint }
|
16
|
+
@client.call_adyen_api(@service, action, request, headers, @version)
|
17
17
|
end
|
18
18
|
|
19
19
|
def get_user_details(merchant_id, user_id, headers: {})
|
@@ -25,6 +25,15 @@ module Adyen
|
|
25
25
|
@client.call_adyen_api(@service, action, {}, headers, @version)
|
26
26
|
end
|
27
27
|
|
28
|
+
def list_users(merchant_id, headers: {}, query_params: {})
|
29
|
+
endpoint = '/merchants/{merchantId}/users'.gsub(/{.+?}/, '%s')
|
30
|
+
endpoint = endpoint.gsub(%r{^/}, '')
|
31
|
+
endpoint = format(endpoint, merchant_id)
|
32
|
+
endpoint += create_query_string(query_params)
|
33
|
+
action = { method: 'get', url: endpoint }
|
34
|
+
@client.call_adyen_api(@service, action, {}, headers, @version)
|
35
|
+
end
|
36
|
+
|
28
37
|
def update_user(request, merchant_id, user_id, headers: {})
|
29
38
|
endpoint = '/merchants/{merchantId}/users/{userId}'.gsub(/{.+?}/, '%s')
|
30
39
|
endpoint = endpoint.gsub(%r{^/}, '')
|
@@ -34,14 +43,5 @@ module Adyen
|
|
34
43
|
@client.call_adyen_api(@service, action, request, headers, @version)
|
35
44
|
end
|
36
45
|
|
37
|
-
def create_new_user(request, merchant_id, headers: {})
|
38
|
-
endpoint = '/merchants/{merchantId}/users'.gsub(/{.+?}/, '%s')
|
39
|
-
endpoint = endpoint.gsub(%r{^/}, '')
|
40
|
-
endpoint = format(endpoint, merchant_id)
|
41
|
-
|
42
|
-
action = { method: 'post', url: endpoint }
|
43
|
-
@client.call_adyen_api(@service, action, request, headers, @version)
|
44
|
-
end
|
45
|
-
|
46
46
|
end
|
47
47
|
end
|