adyen-ruby-api-library 8.0.0 → 8.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/codeql.yml +2 -2
  3. data/.github/workflows/rubygems_release.yml +1 -4
  4. data/CONTRIBUTING.md +1 -1
  5. data/README.md +1 -1
  6. data/VERSION +1 -1
  7. data/lib/adyen/services/balancePlatform/account_holders_api.rb +9 -9
  8. data/lib/adyen/services/balancePlatform/balance_accounts_api.rb +32 -32
  9. data/lib/adyen/services/balancePlatform/payment_instrument_groups_api.rb +10 -10
  10. data/lib/adyen/services/balancePlatform/payment_instruments_api.rb +17 -17
  11. data/lib/adyen/services/balancePlatform/platform_api.rb +6 -6
  12. data/lib/adyen/services/balancePlatform/transaction_rules_api.rb +9 -9
  13. data/lib/adyen/services/checkout/modifications_api.rb +9 -9
  14. data/lib/adyen/services/checkout/orders_api.rb +6 -6
  15. data/lib/adyen/services/checkout/payment_links_api.rb +8 -8
  16. data/lib/adyen/services/checkout/payments_api.rb +9 -9
  17. data/lib/adyen/services/dataProtection.rb +1 -1
  18. data/lib/adyen/services/legalEntityManagement/business_lines_api.rb +9 -9
  19. data/lib/adyen/services/legalEntityManagement/hosted_onboarding_api.rb +10 -10
  20. data/lib/adyen/services/legalEntityManagement/legal_entities_api.rb +27 -18
  21. data/lib/adyen/services/legalEntityManagement/pci_questionnaires_api.rb +8 -8
  22. data/lib/adyen/services/legalEntityManagement/terms_of_service_api.rb +18 -18
  23. data/lib/adyen/services/legalEntityManagement/transfer_instruments_api.rb +9 -9
  24. data/lib/adyen/services/management/account_company_level_api.rb +8 -8
  25. data/lib/adyen/services/management/account_merchant_level_api.rb +8 -8
  26. data/lib/adyen/services/management/account_store_level_api.rb +26 -26
  27. data/lib/adyen/services/management/allowed_origins_company_level_api.rb +12 -12
  28. data/lib/adyen/services/management/allowed_origins_merchant_level_api.rb +12 -12
  29. data/lib/adyen/services/management/android_files_company_level_api.rb +8 -8
  30. data/lib/adyen/services/management/api_credentials_company_level_api.rb +13 -13
  31. data/lib/adyen/services/management/api_credentials_merchant_level_api.rb +13 -13
  32. data/lib/adyen/services/management/my_api_credential_api.rb +22 -22
  33. data/lib/adyen/services/management/payment_methods_merchant_level_api.rb +15 -15
  34. data/lib/adyen/services/management/payout_settings_merchant_level_api.rb +15 -15
  35. data/lib/adyen/services/management/split_configuration_merchant_level_api.rb +30 -30
  36. data/lib/adyen/services/management/terminal_actions_company_level_api.rb +8 -8
  37. data/lib/adyen/services/management/terminal_orders_company_level_api.rb +40 -40
  38. data/lib/adyen/services/management/terminal_orders_merchant_level_api.rb +40 -40
  39. data/lib/adyen/services/management/terminal_settings_store_level_api.rb +16 -16
  40. data/lib/adyen/services/management/users_company_level_api.rb +13 -13
  41. data/lib/adyen/services/management/users_merchant_level_api.rb +13 -13
  42. data/lib/adyen/services/management/webhooks_company_level_api.rb +19 -19
  43. data/lib/adyen/services/management/webhooks_merchant_level_api.rb +19 -19
  44. data/lib/adyen/services/transfers/transfers_api.rb +6 -6
  45. data/lib/adyen/version.rb +1 -1
  46. metadata +2 -2
@@ -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 list_payout_settings(merchant_id, headers: {})
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 get_payout_setting(merchant_id, payout_settings_id, headers: {})
29
- endpoint = '/merchants/{merchantId}/payoutSettings/{payoutSettingsId}'.gsub(/{.+?}/, '%s')
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, payout_settings_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 update_split_configuration_description(request, merchant_id, split_configuration_id, headers: {})
47
- endpoint = '/merchants/{merchantId}/splitConfigurations/{splitConfigurationId}'.gsub(/{.+?}/, '%s')
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, split_configuration_id)
58
+ endpoint = format(endpoint, merchant_id)
50
59
 
51
- action = { method: 'patch', url: endpoint }
52
- @client.call_adyen_api(@service, action, request, headers, @version)
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 update_split_logic(request, merchant_id, split_configuration_id, rule_id, split_logic_id, headers: {})
65
- endpoint = '/merchants/{merchantId}/splitConfigurations/{splitConfigurationId}/rules/{ruleId}/splitLogic/{splitLogicId}'.gsub(/{.+?}/, '%s')
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, rule_id, split_logic_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 create_split_configuration(request, merchant_id, headers: {})
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: 'post', url: endpoint }
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 list_terminal_actions(company_id, headers: {}, query_params: {})
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
- endpoint += create_query_string(query_params)
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 get_terminal_action(company_id, action_id, headers: {})
20
- endpoint = '/companies/{companyId}/terminalActions/{actionId}'.gsub(/{.+?}/, '%s')
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, action_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 list_billing_entities(company_id, headers: {}, query_params: {})
11
- endpoint = '/companies/{companyId}/billingEntities'.gsub(/{.+?}/, '%s')
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
- endpoint += create_query_string(query_params)
15
- action = { method: 'get', url: endpoint }
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 list_shipping_locations(company_id, headers: {}, query_params: {})
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
- endpoint += create_query_string(query_params)
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 list_terminal_models(company_id, headers: {})
29
- endpoint = '/companies/{companyId}/terminalModels'.gsub(/{.+?}/, '%s')
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 get_order(company_id, order_id, headers: {})
47
- endpoint = '/companies/{companyId}/terminalOrders/{orderId}'.gsub(/{.+?}/, '%s')
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, order_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 list_billing_entities(merchant_id, headers: {}, query_params: {})
11
- endpoint = '/merchants/{merchantId}/billingEntities'.gsub(/{.+?}/, '%s')
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
- endpoint += create_query_string(query_params)
15
- action = { method: 'get', url: endpoint }
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 list_shipping_locations(merchant_id, headers: {}, query_params: {})
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
- endpoint += create_query_string(query_params)
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 list_terminal_models(merchant_id, headers: {})
29
- endpoint = '/merchants/{merchantId}/terminalModels'.gsub(/{.+?}/, '%s')
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 get_order(merchant_id, order_id, headers: {})
47
- endpoint = '/merchants/{merchantId}/terminalOrders/{orderId}'.gsub(/{.+?}/, '%s')
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, order_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 get_terminal_settings(merchant_id, reference, headers: {})
20
- endpoint = '/merchants/{merchantId}/stores/{reference}/terminalSettings'.gsub(/{.+?}/, '%s')
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, merchant_id, reference)
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 get_terminal_logo_by_store_id(store_id, headers: {}, query_params: {})
29
- endpoint = '/stores/{storeId}/terminalLogos'.gsub(/{.+?}/, '%s')
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, store_id)
32
- endpoint += create_query_string(query_params)
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 update_terminal_settings(request, merchant_id, reference, headers: {})
56
- endpoint = '/merchants/{merchantId}/stores/{reference}/terminalSettings'.gsub(/{.+?}/, '%s')
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, merchant_id, reference)
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 update_terminal_logo_by_store_id(request, store_id, headers: {}, query_params: {})
65
- endpoint = '/stores/{storeId}/terminalLogos'.gsub(/{.+?}/, '%s')
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, store_id)
68
- endpoint += create_query_string(query_params)
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 list_users(company_id, headers: {}, query_params: {})
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
- endpoint += create_query_string(query_params)
15
- action = { method: 'get', url: endpoint }
16
- @client.call_adyen_api(@service, action, {}, headers, @version)
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 list_users(merchant_id, headers: {}, query_params: {})
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
- endpoint += create_query_string(query_params)
15
- action = { method: 'get', url: endpoint }
16
- @client.call_adyen_api(@service, action, {}, headers, @version)
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
@@ -7,12 +7,21 @@ module Adyen
7
7
  super(client, version, 'Management')
8
8
  end
9
9
 
10
- def remove_webhook(company_id, webhook_id, headers: {})
10
+ def generate_hmac_key(company_id, webhook_id, headers: {})
11
+ endpoint = '/companies/{companyId}/webhooks/{webhookId}/generateHmac'.gsub(/{.+?}/, '%s')
12
+ endpoint = endpoint.gsub(%r{^/}, '')
13
+ endpoint = format(endpoint, company_id, webhook_id)
14
+
15
+ action = { method: 'post', url: endpoint }
16
+ @client.call_adyen_api(@service, action, {}, headers, @version)
17
+ end
18
+
19
+ def get_webhook(company_id, webhook_id, headers: {})
11
20
  endpoint = '/companies/{companyId}/webhooks/{webhookId}'.gsub(/{.+?}/, '%s')
12
21
  endpoint = endpoint.gsub(%r{^/}, '')
13
22
  endpoint = format(endpoint, company_id, webhook_id)
14
23
 
15
- action = { method: 'delete', url: endpoint }
24
+ action = { method: 'get', url: endpoint }
16
25
  @client.call_adyen_api(@service, action, {}, headers, @version)
17
26
  end
18
27
 
@@ -25,24 +34,15 @@ module Adyen
25
34
  @client.call_adyen_api(@service, action, {}, headers, @version)
26
35
  end
27
36
 
28
- def get_webhook(company_id, webhook_id, headers: {})
37
+ def remove_webhook(company_id, webhook_id, headers: {})
29
38
  endpoint = '/companies/{companyId}/webhooks/{webhookId}'.gsub(/{.+?}/, '%s')
30
39
  endpoint = endpoint.gsub(%r{^/}, '')
31
40
  endpoint = format(endpoint, company_id, webhook_id)
32
41
 
33
- action = { method: 'get', url: endpoint }
42
+ action = { method: 'delete', url: endpoint }
34
43
  @client.call_adyen_api(@service, action, {}, headers, @version)
35
44
  end
36
45
 
37
- def update_webhook(request, company_id, webhook_id, headers: {})
38
- endpoint = '/companies/{companyId}/webhooks/{webhookId}'.gsub(/{.+?}/, '%s')
39
- endpoint = endpoint.gsub(%r{^/}, '')
40
- endpoint = format(endpoint, company_id, webhook_id)
41
-
42
- action = { method: 'patch', url: endpoint }
43
- @client.call_adyen_api(@service, action, request, headers, @version)
44
- end
45
-
46
46
  def set_up_webhook(request, company_id, headers: {})
47
47
  endpoint = '/companies/{companyId}/webhooks'.gsub(/{.+?}/, '%s')
48
48
  endpoint = endpoint.gsub(%r{^/}, '')
@@ -52,21 +52,21 @@ module Adyen
52
52
  @client.call_adyen_api(@service, action, request, headers, @version)
53
53
  end
54
54
 
55
- def generate_hmac_key(company_id, webhook_id, headers: {})
56
- endpoint = '/companies/{companyId}/webhooks/{webhookId}/generateHmac'.gsub(/{.+?}/, '%s')
55
+ def test_webhook(request, company_id, webhook_id, headers: {})
56
+ endpoint = '/companies/{companyId}/webhooks/{webhookId}/test'.gsub(/{.+?}/, '%s')
57
57
  endpoint = endpoint.gsub(%r{^/}, '')
58
58
  endpoint = format(endpoint, company_id, webhook_id)
59
59
 
60
60
  action = { method: 'post', url: endpoint }
61
- @client.call_adyen_api(@service, action, {}, headers, @version)
61
+ @client.call_adyen_api(@service, action, request, headers, @version)
62
62
  end
63
63
 
64
- def test_webhook(request, company_id, webhook_id, headers: {})
65
- endpoint = '/companies/{companyId}/webhooks/{webhookId}/test'.gsub(/{.+?}/, '%s')
64
+ def update_webhook(request, company_id, webhook_id, headers: {})
65
+ endpoint = '/companies/{companyId}/webhooks/{webhookId}'.gsub(/{.+?}/, '%s')
66
66
  endpoint = endpoint.gsub(%r{^/}, '')
67
67
  endpoint = format(endpoint, company_id, webhook_id)
68
68
 
69
- action = { method: 'post', url: endpoint }
69
+ action = { method: 'patch', url: endpoint }
70
70
  @client.call_adyen_api(@service, action, request, headers, @version)
71
71
  end
72
72