adyen-ruby-api-library 4.0.2 → 5.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (90) hide show
  1. checksums.yaml +4 -4
  2. data/.github/CODEOWNERS +1 -1
  3. data/.github/ISSUE_TEMPLATE/bug_report.md +27 -0
  4. data/.github/ISSUE_TEMPLATE/feature_request.md +23 -0
  5. data/.github/PULL_REQUEST_TEMPLATE.md +7 -0
  6. data/.github/dependabot.yml +8 -0
  7. data/.gitignore +2 -0
  8. data/README.md +72 -110
  9. data/lib/adyen-ruby-api-library.rb +4 -12
  10. data/lib/adyen/client.rb +57 -24
  11. data/lib/adyen/services/bin_lookup.rb +18 -0
  12. data/lib/adyen/services/checkout.rb +88 -8
  13. data/lib/adyen/services/{checkout_utility.rb → data_protection.rb} +4 -3
  14. data/lib/adyen/services/dispute.rb +20 -0
  15. data/lib/adyen/services/marketpay.rb +26 -6
  16. data/lib/adyen/services/payments.rb +15 -5
  17. data/lib/adyen/services/payouts.rb +3 -2
  18. data/lib/adyen/services/postfmapi.rb +19 -0
  19. data/lib/adyen/services/recurring.rb +3 -2
  20. data/lib/adyen/services/service.rb +2 -2
  21. data/lib/adyen/version.rb +1 -1
  22. data/spec/account_spec.rb +3 -1
  23. data/spec/bin_lookup_spec.rb +15 -0
  24. data/spec/checkout_spec.rb +247 -5
  25. data/spec/data_protection_spec.rb +14 -0
  26. data/spec/dispute_spec.rb +17 -0
  27. data/spec/fund_spec.rb +2 -1
  28. data/spec/hop_spec.rb +14 -0
  29. data/spec/mocks/requests/Account/check_account_holder.json +5 -0
  30. data/spec/mocks/requests/Account/delete_payout_methods.json +6 -0
  31. data/spec/mocks/requests/BinLookup/get_3ds_availability.json +4 -0
  32. data/spec/mocks/requests/BinLookup/get_cost_estimate.json +8 -0
  33. data/spec/mocks/requests/Checkout/orders.json +6 -0
  34. data/spec/mocks/requests/Checkout/orders_cancel.json +7 -0
  35. data/spec/mocks/requests/Checkout/origin_keys.json +3 -0
  36. data/spec/mocks/requests/Checkout/payment_methods_balance.json +9 -0
  37. data/spec/mocks/requests/DataProtectionService/request_subject_erasure.json +5 -0
  38. data/spec/mocks/requests/DisputeService/defend_dispute.json +5 -0
  39. data/spec/mocks/requests/DisputeService/delete_dispute_defense_document.json +5 -0
  40. data/spec/mocks/requests/DisputeService/retrieve_applicable_defense_reasons.json +4 -0
  41. data/spec/mocks/requests/DisputeService/supply_defense_document.json +11 -0
  42. data/spec/mocks/requests/Fund/refund_funds_transfer.json +7 -0
  43. data/spec/mocks/requests/Hop/get_onboarding_url.json +4 -0
  44. data/spec/mocks/requests/Payment/donate.json +10 -0
  45. data/spec/mocks/requests/Payment/get_authentication_result.json +4 -0
  46. data/spec/mocks/requests/Payment/retrieve_3ds2_result.json +4 -0
  47. data/spec/mocks/requests/Payment/technical_cancel.json +4 -0
  48. data/spec/mocks/requests/Payment/void_pending_refund.json +4 -0
  49. data/spec/mocks/requests/Payout/payout.json +8 -0
  50. data/spec/mocks/requests/Recurring/schedule_account_updater.json +12 -0
  51. data/spec/mocks/requests/Terminal/assign_terminals.json +6 -0
  52. data/spec/mocks/requests/Terminal/find_terminal.json +3 -0
  53. data/spec/mocks/requests/Terminal/get_terminals_under_account.json +4 -0
  54. data/spec/mocks/responses/Account/check_account_holder.json +3 -0
  55. data/spec/mocks/responses/Account/delete_payout_methods.json +3 -0
  56. data/spec/mocks/responses/BinLookup/get_3ds_availability.json +8 -0
  57. data/spec/mocks/responses/BinLookup/get_cost_estimate.json +8 -0
  58. data/spec/mocks/responses/Checkout/get-payment-link.json +11 -0
  59. data/spec/mocks/responses/Checkout/orders.json +8 -0
  60. data/spec/mocks/responses/Checkout/orders_cancel.json +4 -0
  61. data/spec/mocks/responses/Checkout/origin_keys.json +5 -0
  62. data/spec/mocks/responses/Checkout/payment_methods_balance.json +3 -0
  63. data/spec/mocks/responses/Checkout/update-payment-link.json +11 -0
  64. data/spec/mocks/responses/DataProtectionService/request_subject_erasure.json +3 -0
  65. data/spec/mocks/responses/DisputeService/defend_dispute.json +5 -0
  66. data/spec/mocks/responses/DisputeService/delete_dispute_defense_document.json +5 -0
  67. data/spec/mocks/responses/DisputeService/retrieve_applicable_defense_reasons.json +28 -0
  68. data/spec/mocks/responses/DisputeService/supply_defense_document.json +5 -0
  69. data/spec/mocks/responses/Fund/refund_funds_transfer.json +5 -0
  70. data/spec/mocks/responses/Hop/get_onboarding_url.json +7 -0
  71. data/spec/mocks/responses/Payment/donate.json +4 -0
  72. data/spec/mocks/responses/Payment/get_authentication_result.json +5 -0
  73. data/spec/mocks/responses/Payment/retrieve_3ds2_result.json +5 -0
  74. data/spec/mocks/responses/Payment/technical_cancel.json +3 -0
  75. data/spec/mocks/responses/Payment/void_pending_refund.json +3 -0
  76. data/spec/mocks/responses/Payout/payout.json +3 -0
  77. data/spec/mocks/responses/Recurring/schedule_account_updater.json +4 -0
  78. data/spec/mocks/responses/Terminal/assign_terminals.json +5 -0
  79. data/spec/mocks/responses/Terminal/find_terminal.json +6 -0
  80. data/spec/mocks/responses/Terminal/get_terminals_under_account.json +11 -0
  81. data/spec/payments_spec.rb +6 -1
  82. data/spec/payouts_spec.rb +2 -1
  83. data/spec/postfmapi_spec.rb +16 -0
  84. data/spec/recurring_spec.rb +2 -1
  85. data/spec/service_spec.rb +2 -0
  86. data/spec/spec_helper.rb +18 -12
  87. metadata +69 -7
  88. data/spec/checkout_utility_spec.rb +0 -29
  89. data/spec/mocks/requests/CheckoutUtility/origin_keys.json +0 -7
  90. data/spec/mocks/responses/CheckoutUtility/origin_keys.json +0 -7
@@ -0,0 +1,3 @@
1
+ {
2
+ "originalReference": "9914694372990637"
3
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "pspReference": "9914694372990637"
3
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "resultCode": "Success"
3
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "pspReference": "8815260599791117",
3
+ "result": "Success"
4
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "results": {
3
+ "e285-123456789": "Done"
4
+ }
5
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "companyAccount": "TestCompany",
3
+ "merchantAccount": "TestMerchant",
4
+ "merchantInventory": false,
5
+ "terminal": "e285-123456789"
6
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "companyAccount": "TestCompany",
3
+ "merchantAccounts": [
4
+ {
5
+ "merchantAccount": "TestMerchant",
6
+ "inStoreTerminals": [
7
+ "P400Plus-123456789"
8
+ ]
9
+ }
10
+ ]
11
+ }
@@ -14,7 +14,12 @@ RSpec.describe Adyen::Payments, service: "payments service" do
14
14
  ["cancel", "response", "[cancel-received]"],
15
15
  ["cancel_or_refund", "response", "[cancelOrRefund-received]"],
16
16
  ["capture", "response", "[capture-received]"],
17
- ["refund", "response", "[refund-received]"]
17
+ ["refund", "response", "[refund-received]"],
18
+ ["donate", "response", "[donation-received]"],
19
+ ["get_authentication_result", "threeDS2Result", {"transStatus" => "Y"}],
20
+ ["retrieve_3ds2_result", "threeDS2Result", {"transStatus" => "Y"}],
21
+ ["technical_cancel", "originalReference", "9914694372990637"],
22
+ ["void_pending_refund", "pspReference", "9914694372990637"]
18
23
  ]
19
24
 
20
25
  generate_tests(client, "Payment", test_sets, client.payments)
data/spec/payouts_spec.rb CHANGED
@@ -11,7 +11,8 @@ RSpec.describe Adyen::Payments, service: "payouts service" do
11
11
  ["store_detail_and_submit_third_party", "resultCode", "[payout-submit-received]"],
12
12
  ["submit_third_party", "resultCode", "[payout-submit-received]"],
13
13
  ["confirm_third_party", "response", "[payout-confirm-received]"],
14
- ["decline_third_party", "response", "[payout-decline-received]"]
14
+ ["decline_third_party", "response", "[payout-decline-received]"],
15
+ ["payout", "resultCode", "Success"]
15
16
  ]
16
17
 
17
18
  generate_tests(client, "Payout", test_sets, client.payouts)
@@ -0,0 +1,16 @@
1
+ require "spec_helper"
2
+
3
+ RSpec.describe Adyen::PosTerminalManagement, service: "POS Terminal Management service" do
4
+ # client instance to be used in dynamically generated tests
5
+ client = create_client(:basic)
6
+
7
+ # methods / values to test for
8
+ # format is defined in spec_helper
9
+ test_sets = [
10
+ ["find_terminal", "merchantAccount", "TestMerchant"],
11
+ ["get_terminals_under_account", "merchantAccounts", [{ "merchantAccount" => "TestMerchant", "inStoreTerminals" => ["P400Plus-123456789"] }]],
12
+ ["assign_terminals", "results", { "e285-123456789" => "Done" }]
13
+ ]
14
+
15
+ generate_tests(client, "Terminal", test_sets, client.postfmapi)
16
+ end
@@ -10,7 +10,8 @@ RSpec.describe Adyen::Payments, service: "recurring service" do
10
10
  test_sets = [
11
11
  ["list_recurring_details", "creationDate", "2017-03-01T11:53:11+01:00"],
12
12
  ["disable", "response", "[detail-successfully-disabled]"],
13
- ["store_token", "result", "Success"]
13
+ ["store_token", "result", "Success"],
14
+ ["schedule_account_updater", "result", "Success"]
14
15
  ]
15
16
 
16
17
  generate_tests(client, "Recurring", test_sets, client.recurring)
data/spec/service_spec.rb CHANGED
@@ -19,6 +19,7 @@ RSpec.describe Adyen::Service do
19
19
  expect(described_class.action_for_method_name(:delete_bank_accounts)).to eq 'deleteBankAccounts'
20
20
  expect(described_class.action_for_method_name(:delete_shareholders)).to eq 'deleteShareholders'
21
21
  expect(described_class.action_for_method_name(:disable)).to eq 'disable'
22
+ expect(described_class.action_for_method_name(:donate)).to eq 'donate'
22
23
  expect(described_class.action_for_method_name(:get_account_holder)).to eq 'getAccountHolder'
23
24
  expect(described_class.action_for_method_name(:get_tier_configuration)).to eq 'getTierConfiguration'
24
25
  expect(described_class.action_for_method_name(:get_uploaded_documents)).to eq 'getUploadedDocuments'
@@ -38,6 +39,7 @@ RSpec.describe Adyen::Service do
38
39
  expect(described_class.action_for_method_name(:update_account_holder)).to eq 'updateAccountHolder'
39
40
  expect(described_class.action_for_method_name(:update_account_holder_state)).to eq 'updateAccountHolderState'
40
41
  expect(described_class.action_for_method_name(:upload_document)).to eq 'uploadDocument'
42
+ expect(described_class.action_for_method_name(:get_onboarding_url)).to eq 'getOnboardingUrl'
41
43
  end
42
44
  end
43
45
  end
data/spec/spec_helper.rb CHANGED
@@ -18,20 +18,26 @@ def create_test(client, service, method_name, parent_object)
18
18
  request_body = JSON.parse(json_from_file("mocks/requests/#{service}/#{method_name}.json"))
19
19
  response_body = json_from_file("mocks/responses/#{service}/#{method_name}.json")
20
20
 
21
-
22
- if service == 'Checkout' || service == 'CheckoutUtility'
21
+ with_application_info = [
22
+ "authorise",
23
+ "authorise3d",
24
+ "authorise3ds2",
25
+ "payments",
26
+ "payment_session",
27
+ ]
28
+ if with_application_info.include?(method_name)
23
29
  client.add_application_info(request_body)
24
30
  end
25
31
 
26
32
  # client-generated headers
27
33
  headers = {
28
- 'Content-Type'.to_sym => 'application/json'
34
+ "Content-Type".to_sym => "application/json",
29
35
  }
30
36
 
31
37
  # authentication headers
32
- if not client.api_key.nil? then
38
+ if not client.api_key.nil?
33
39
  headers["x-api-key"] = client.api_key
34
- elsif not client.ws_user.nil? and not client.ws_password.nil? then
40
+ elsif not client.ws_user.nil? and not client.ws_password.nil?
35
41
  auth_header = "Basic " + Base64::encode64("#{client.ws_user}:#{client.ws_password}")
36
42
  headers["Authorization"] = auth_header.strip
37
43
  else
@@ -43,12 +49,12 @@ def create_test(client, service, method_name, parent_object)
43
49
  url = client.service_url(service, action, parent_object.version)
44
50
  WebMock.stub_request(:post, url).
45
51
  with(
46
- body: request_body,
47
- headers: headers
48
- ).
52
+ body: request_body,
53
+ headers: headers,
54
+ ).
49
55
  to_return(
50
- body: response_body
51
- )
56
+ body: response_body,
57
+ )
52
58
  result = parent_object.public_send(method_name, request_body)
53
59
 
54
60
  # result.response is already a Ruby object (Adyen::HashWithAccessors) (rather than an unparsed JSON string)
@@ -86,10 +92,10 @@ def create_client(auth_type)
86
92
  client = Adyen::Client.new
87
93
  client.env = :mock
88
94
 
89
- if auth_type == :basic then
95
+ if auth_type == :basic
90
96
  client.ws_user = "user"
91
97
  client.ws_password = "password"
92
- elsif auth_type == :api_key then
98
+ elsif auth_type == :api_key
93
99
  client.api_key = "api_key"
94
100
  else
95
101
  raise ArgumentError "Invalid auth type for test client"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: adyen-ruby-api-library
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.2
4
+ version: 5.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adyen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-02-11 00:00:00.000000000 Z
11
+ date: 2021-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -77,6 +77,10 @@ extensions: []
77
77
  extra_rdoc_files: []
78
78
  files:
79
79
  - ".github/CODEOWNERS"
80
+ - ".github/ISSUE_TEMPLATE/bug_report.md"
81
+ - ".github/ISSUE_TEMPLATE/feature_request.md"
82
+ - ".github/PULL_REQUEST_TEMPLATE.md"
83
+ - ".github/dependabot.yml"
80
84
  - ".gitignore"
81
85
  - ".travis.yml"
82
86
  - CODE_OF_CONDUCT.md
@@ -107,28 +111,36 @@ files:
107
111
  - lib/adyen/errors.rb
108
112
  - lib/adyen/hash_with_accessors.rb
109
113
  - lib/adyen/result.rb
114
+ - lib/adyen/services/bin_lookup.rb
110
115
  - lib/adyen/services/checkout.rb
111
- - lib/adyen/services/checkout_utility.rb
116
+ - lib/adyen/services/data_protection.rb
117
+ - lib/adyen/services/dispute.rb
112
118
  - lib/adyen/services/marketpay.rb
113
119
  - lib/adyen/services/payments.rb
114
120
  - lib/adyen/services/payouts.rb
121
+ - lib/adyen/services/postfmapi.rb
115
122
  - lib/adyen/services/recurring.rb
116
123
  - lib/adyen/services/service.rb
117
124
  - lib/adyen/utils/hmac_validator.rb
118
125
  - lib/adyen/version.rb
119
126
  - renovate.json
120
127
  - spec/account_spec.rb
128
+ - spec/bin_lookup_spec.rb
121
129
  - spec/checkout_spec.rb
122
- - spec/checkout_utility_spec.rb
123
130
  - spec/client_spec.rb
131
+ - spec/data_protection_spec.rb
132
+ - spec/dispute_spec.rb
124
133
  - spec/errors_spec.rb
125
134
  - spec/fund_spec.rb
126
135
  - spec/hash_with_accessors_spec.rb
136
+ - spec/hop_spec.rb
137
+ - spec/mocks/requests/Account/check_account_holder.json
127
138
  - spec/mocks/requests/Account/close_account.json
128
139
  - spec/mocks/requests/Account/close_account_holder.json
129
140
  - spec/mocks/requests/Account/create_account.json
130
141
  - spec/mocks/requests/Account/create_account_holder.json
131
142
  - spec/mocks/requests/Account/delete_bank_accounts.json
143
+ - spec/mocks/requests/Account/delete_payout_methods.json
132
144
  - spec/mocks/requests/Account/delete_shareholders.json
133
145
  - spec/mocks/requests/Account/get_account_holder.json
134
146
  - spec/mocks/requests/Account/get_uploaded_documents.json
@@ -138,20 +150,32 @@ files:
138
150
  - spec/mocks/requests/Account/update_account_holder.json
139
151
  - spec/mocks/requests/Account/update_account_holder_state.json
140
152
  - spec/mocks/requests/Account/upload_document.json
153
+ - spec/mocks/requests/BinLookup/get_3ds_availability.json
154
+ - spec/mocks/requests/BinLookup/get_cost_estimate.json
155
+ - spec/mocks/requests/Checkout/orders.json
156
+ - spec/mocks/requests/Checkout/orders_cancel.json
157
+ - spec/mocks/requests/Checkout/origin_keys.json
141
158
  - spec/mocks/requests/Checkout/payment-details.json
142
159
  - spec/mocks/requests/Checkout/payment-result.json
143
160
  - spec/mocks/requests/Checkout/payment_links.json
144
161
  - spec/mocks/requests/Checkout/payment_methods.json
162
+ - spec/mocks/requests/Checkout/payment_methods_balance.json
145
163
  - spec/mocks/requests/Checkout/payment_session.json
146
164
  - spec/mocks/requests/Checkout/payments.json
147
165
  - spec/mocks/requests/Checkout/verify.json
148
- - spec/mocks/requests/CheckoutUtility/origin_keys.json
166
+ - spec/mocks/requests/DataProtectionService/request_subject_erasure.json
167
+ - spec/mocks/requests/DisputeService/defend_dispute.json
168
+ - spec/mocks/requests/DisputeService/delete_dispute_defense_document.json
169
+ - spec/mocks/requests/DisputeService/retrieve_applicable_defense_reasons.json
170
+ - spec/mocks/requests/DisputeService/supply_defense_document.json
149
171
  - spec/mocks/requests/Fund/account_holder_balance.json
150
172
  - spec/mocks/requests/Fund/account_holder_transaction_list.json
151
173
  - spec/mocks/requests/Fund/payout_account_holder.json
174
+ - spec/mocks/requests/Fund/refund_funds_transfer.json
152
175
  - spec/mocks/requests/Fund/refund_not_paid_out_transfers.json
153
176
  - spec/mocks/requests/Fund/setup_beneficiary.json
154
177
  - spec/mocks/requests/Fund/transfer_funds.json
178
+ - spec/mocks/requests/Hop/get_onboarding_url.json
155
179
  - spec/mocks/requests/Notification/create_notification_configuration.json
156
180
  - spec/mocks/requests/Notification/delete_notification_configurations.json
157
181
  - spec/mocks/requests/Notification/get_notification_configuration.json
@@ -165,20 +189,32 @@ files:
165
189
  - spec/mocks/requests/Payment/cancel.json
166
190
  - spec/mocks/requests/Payment/cancel_or_refund.json
167
191
  - spec/mocks/requests/Payment/capture.json
192
+ - spec/mocks/requests/Payment/donate.json
193
+ - spec/mocks/requests/Payment/get_authentication_result.json
168
194
  - spec/mocks/requests/Payment/refund.json
195
+ - spec/mocks/requests/Payment/retrieve_3ds2_result.json
196
+ - spec/mocks/requests/Payment/technical_cancel.json
197
+ - spec/mocks/requests/Payment/void_pending_refund.json
169
198
  - spec/mocks/requests/Payout/confirm_third_party.json
170
199
  - spec/mocks/requests/Payout/decline_third_party.json
200
+ - spec/mocks/requests/Payout/payout.json
171
201
  - spec/mocks/requests/Payout/store_detail.json
172
202
  - spec/mocks/requests/Payout/store_detail_and_submit_third_party.json
173
203
  - spec/mocks/requests/Payout/submit_third_party.json
174
204
  - spec/mocks/requests/Recurring/disable.json
175
205
  - spec/mocks/requests/Recurring/list_recurring_details.json
206
+ - spec/mocks/requests/Recurring/schedule_account_updater.json
176
207
  - spec/mocks/requests/Recurring/store_token.json
208
+ - spec/mocks/requests/Terminal/assign_terminals.json
209
+ - spec/mocks/requests/Terminal/find_terminal.json
210
+ - spec/mocks/requests/Terminal/get_terminals_under_account.json
211
+ - spec/mocks/responses/Account/check_account_holder.json
177
212
  - spec/mocks/responses/Account/close_account.json
178
213
  - spec/mocks/responses/Account/close_account_holder.json
179
214
  - spec/mocks/responses/Account/create_account.json
180
215
  - spec/mocks/responses/Account/create_account_holder.json
181
216
  - spec/mocks/responses/Account/delete_bank_accounts.json
217
+ - spec/mocks/responses/Account/delete_payout_methods.json
182
218
  - spec/mocks/responses/Account/delete_shareholders.json
183
219
  - spec/mocks/responses/Account/get_account_holder.json
184
220
  - spec/mocks/responses/Account/get_uploaded_documents.json
@@ -188,20 +224,34 @@ files:
188
224
  - spec/mocks/responses/Account/update_account_holder.json
189
225
  - spec/mocks/responses/Account/update_account_holder_state.json
190
226
  - spec/mocks/responses/Account/upload_document.json
227
+ - spec/mocks/responses/BinLookup/get_3ds_availability.json
228
+ - spec/mocks/responses/BinLookup/get_cost_estimate.json
229
+ - spec/mocks/responses/Checkout/get-payment-link.json
230
+ - spec/mocks/responses/Checkout/orders.json
231
+ - spec/mocks/responses/Checkout/orders_cancel.json
232
+ - spec/mocks/responses/Checkout/origin_keys.json
191
233
  - spec/mocks/responses/Checkout/payment-details.json
192
234
  - spec/mocks/responses/Checkout/payment-result.json
193
235
  - spec/mocks/responses/Checkout/payment_links.json
194
236
  - spec/mocks/responses/Checkout/payment_methods.json
237
+ - spec/mocks/responses/Checkout/payment_methods_balance.json
195
238
  - spec/mocks/responses/Checkout/payment_session.json
196
239
  - spec/mocks/responses/Checkout/payments.json
240
+ - spec/mocks/responses/Checkout/update-payment-link.json
197
241
  - spec/mocks/responses/Checkout/verify.json
198
- - spec/mocks/responses/CheckoutUtility/origin_keys.json
242
+ - spec/mocks/responses/DataProtectionService/request_subject_erasure.json
243
+ - spec/mocks/responses/DisputeService/defend_dispute.json
244
+ - spec/mocks/responses/DisputeService/delete_dispute_defense_document.json
245
+ - spec/mocks/responses/DisputeService/retrieve_applicable_defense_reasons.json
246
+ - spec/mocks/responses/DisputeService/supply_defense_document.json
199
247
  - spec/mocks/responses/Fund/account_holder_balance.json
200
248
  - spec/mocks/responses/Fund/account_holder_transaction_list.json
201
249
  - spec/mocks/responses/Fund/payout_account_holder.json
250
+ - spec/mocks/responses/Fund/refund_funds_transfer.json
202
251
  - spec/mocks/responses/Fund/refund_not_paid_out_transfers.json
203
252
  - spec/mocks/responses/Fund/setup_beneficiary.json
204
253
  - spec/mocks/responses/Fund/transfer_funds.json
254
+ - spec/mocks/responses/Hop/get_onboarding_url.json
205
255
  - spec/mocks/responses/Notification/create_notification_configuration.json
206
256
  - spec/mocks/responses/Notification/delete_notification_configurations.json
207
257
  - spec/mocks/responses/Notification/get_notification_configuration.json
@@ -215,18 +265,29 @@ files:
215
265
  - spec/mocks/responses/Payment/cancel.json
216
266
  - spec/mocks/responses/Payment/cancel_or_refund.json
217
267
  - spec/mocks/responses/Payment/capture.json
268
+ - spec/mocks/responses/Payment/donate.json
269
+ - spec/mocks/responses/Payment/get_authentication_result.json
218
270
  - spec/mocks/responses/Payment/refund.json
271
+ - spec/mocks/responses/Payment/retrieve_3ds2_result.json
272
+ - spec/mocks/responses/Payment/technical_cancel.json
273
+ - spec/mocks/responses/Payment/void_pending_refund.json
219
274
  - spec/mocks/responses/Payout/confirm_third_party.json
220
275
  - spec/mocks/responses/Payout/decline_third_party.json
276
+ - spec/mocks/responses/Payout/payout.json
221
277
  - spec/mocks/responses/Payout/store_detail.json
222
278
  - spec/mocks/responses/Payout/store_detail_and_submit_third_party.json
223
279
  - spec/mocks/responses/Payout/submit_third_party.json
224
280
  - spec/mocks/responses/Recurring/disable.json
225
281
  - spec/mocks/responses/Recurring/list_recurring_details.json
282
+ - spec/mocks/responses/Recurring/schedule_account_updater.json
226
283
  - spec/mocks/responses/Recurring/store_token.json
284
+ - spec/mocks/responses/Terminal/assign_terminals.json
285
+ - spec/mocks/responses/Terminal/find_terminal.json
286
+ - spec/mocks/responses/Terminal/get_terminals_under_account.json
227
287
  - spec/notification_spec.rb
228
288
  - spec/payments_spec.rb
229
289
  - spec/payouts_spec.rb
290
+ - spec/postfmapi_spec.rb
230
291
  - spec/recurring_spec.rb
231
292
  - spec/service_spec.rb
232
293
  - spec/spec_helper.rb
@@ -253,7 +314,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
253
314
  - !ruby/object:Gem::Version
254
315
  version: '0'
255
316
  requirements: []
256
- rubygems_version: 3.1.2
317
+ rubyforge_project:
318
+ rubygems_version: 2.7.8
257
319
  signing_key:
258
320
  specification_version: 4
259
321
  summary: Official Adyen Ruby API Library
@@ -1,29 +0,0 @@
1
- require "spec_helper"
2
- require "json"
3
-
4
- # rubocop:disable Metrics/BlockLength
5
-
6
- RSpec.describe Adyen::CheckoutUtility, service: "checkout utility" do
7
- before(:all) do
8
- @shared_values = {
9
- client: create_client(:api_key),
10
- service: "CheckoutUtility",
11
- }
12
- end
13
-
14
- it "sets the correct service URL base" do
15
- client = Adyen::Client.new(env: :test)
16
- expect(client.service_url_base(@shared_values[:service])).to eq("https://checkout-test.adyen.com/checkout")
17
- end
18
-
19
- # must be created manually because every field in the response is an array
20
- it "makes an origin_keys call" do
21
- parsed_body = create_test(@shared_values[:client], @shared_values[:service], "origin_keys", @shared_values[:client].checkout_utility)
22
- expect(parsed_body["originKeys"]).
23
- to be_a Adyen::HashWithAccessors
24
- expect(parsed_body["originKeys"]).
25
- to be_a_kind_of Hash
26
- end
27
- end
28
-
29
- # rubocop:enable Metrics/BlockLength
@@ -1,7 +0,0 @@
1
- {
2
- "originDomains": [
3
- "https://www.your-domain1.com",
4
- "https://www.your-domain2.com",
5
- "https://www.your-domain3.com"
6
- ]
7
- }
@@ -1,7 +0,0 @@
1
- {
2
- "originKeys": {
3
- "https://www.your-domain1.com": "pub.v2.7814286629520534.aHR0cHM6Ly93d3cueW91ci1kb21haW4xLmNvbQ.UEwIBmW9-c_uXo5wSEr2w8Hz8hVIpujXPHjpcEse3xI",
4
- "https://www.your-domain3.com": "pub.v2.7814286629520534.aHR0cHM6Ly93d3cueW91ci1kb21haW4zLmNvbQ.fUvflu-YIdZSsLEH8Qqmr7ksE4ag_NYiiMXK0s6aq_4",
5
- "https://www.your-domain2.com": "pub.v2.7814286629520534.aHR0cHM6Ly93d3cueW91ci1kb21haW4yLmNvbQ.EP6eXBJKk0t7-QIUl6e_b1qMuMHGepxG_SlUqxAYrfY"
6
- }
7
- }