adyen-ruby-api-library 6.2.0 → 7.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (140) hide show
  1. checksums.yaml +4 -4
  2. data/.github/CODEOWNERS +1 -1
  3. data/.github/workflows/codeql.yml +41 -0
  4. data/.github/workflows/ruby.yml +1 -1
  5. data/.github/workflows/rubygems_release.yml +1 -1
  6. data/.gitignore +3 -0
  7. data/Makefile +72 -0
  8. data/README.md +20 -18
  9. data/lib/adyen/client.rb +82 -42
  10. data/lib/adyen/errors.rb +2 -2
  11. data/lib/adyen/services/balanceControlService.rb +28 -0
  12. data/lib/adyen/services/balancePlatform/account_holders_api.rb +63 -0
  13. data/lib/adyen/services/balancePlatform/balance_accounts_api.rb +123 -0
  14. data/lib/adyen/services/balancePlatform/bank_account_validation_api.rb +27 -0
  15. data/lib/adyen/services/balancePlatform/grant_accounts_api.rb +27 -0
  16. data/lib/adyen/services/balancePlatform/grant_offers_api.rb +39 -0
  17. data/lib/adyen/services/balancePlatform/payment_instrument_groups_api.rb +51 -0
  18. data/lib/adyen/services/balancePlatform/payment_instruments_api.rb +75 -0
  19. data/lib/adyen/services/balancePlatform/platform_api.rb +39 -0
  20. data/lib/adyen/services/balancePlatform/transaction_rules_api.rb +63 -0
  21. data/lib/adyen/services/balancePlatform.rb +61 -0
  22. data/lib/adyen/services/binLookup.rb +40 -0
  23. data/lib/adyen/services/checkout/classic_checkout_sdk_api.rb +39 -0
  24. data/lib/adyen/services/checkout/modifications_api.rb +87 -0
  25. data/lib/adyen/services/checkout/orders_api.rb +51 -0
  26. data/lib/adyen/services/checkout/payment_links_api.rb +51 -0
  27. data/lib/adyen/services/checkout/payments_api.rb +87 -0
  28. data/lib/adyen/services/checkout/recurring_api.rb +39 -0
  29. data/lib/adyen/services/checkout/utility_api.rb +39 -0
  30. data/lib/adyen/services/checkout.rb +39 -180
  31. data/lib/adyen/services/dataProtection.rb +28 -0
  32. data/lib/adyen/services/legalEntityManagement/business_lines_api.rb +63 -0
  33. data/lib/adyen/services/legalEntityManagement/documents_api.rb +63 -0
  34. data/lib/adyen/services/legalEntityManagement/hosted_onboarding_api.rb +51 -0
  35. data/lib/adyen/services/legalEntityManagement/legal_entities_api.rb +75 -0
  36. data/lib/adyen/services/legalEntityManagement/pci_questionnaires_api.rb +63 -0
  37. data/lib/adyen/services/legalEntityManagement/terms_of_service_api.rb +51 -0
  38. data/lib/adyen/services/legalEntityManagement/transfer_instruments_api.rb +63 -0
  39. data/lib/adyen/services/legalEntityManagement.rb +51 -0
  40. data/lib/adyen/services/management/account_company_level_api.rb +51 -0
  41. data/lib/adyen/services/management/account_merchant_level_api.rb +63 -0
  42. data/lib/adyen/services/management/account_store_level_api.rb +111 -0
  43. data/lib/adyen/services/management/allowed_origins_company_level_api.rb +63 -0
  44. data/lib/adyen/services/management/allowed_origins_merchant_level_api.rb +63 -0
  45. data/lib/adyen/services/management/api_credentials_company_level_api.rb +63 -0
  46. data/lib/adyen/services/management/api_credentials_merchant_level_api.rb +63 -0
  47. data/lib/adyen/services/management/api_key_company_level_api.rb +27 -0
  48. data/lib/adyen/services/management/api_key_merchant_level_api.rb +27 -0
  49. data/lib/adyen/services/management/client_key_company_level_api.rb +27 -0
  50. data/lib/adyen/services/management/client_key_merchant_level_api.rb +27 -0
  51. data/lib/adyen/services/management/my_api_credential_api.rb +75 -0
  52. data/lib/adyen/services/management/payment_methods_merchant_level_api.rb +87 -0
  53. data/lib/adyen/services/management/payout_settings_merchant_level_api.rb +75 -0
  54. data/lib/adyen/services/management/terminal_actions_company_level_api.rb +63 -0
  55. data/lib/adyen/services/management/terminal_actions_terminal_level_api.rb +27 -0
  56. data/lib/adyen/services/management/terminal_orders_company_level_api.rb +135 -0
  57. data/lib/adyen/services/management/terminal_orders_merchant_level_api.rb +135 -0
  58. data/lib/adyen/services/management/terminal_settings_company_level_api.rb +63 -0
  59. data/lib/adyen/services/management/terminal_settings_merchant_level_api.rb +63 -0
  60. data/lib/adyen/services/management/terminal_settings_store_level_api.rb +111 -0
  61. data/lib/adyen/services/management/terminal_settings_terminal_level_api.rb +63 -0
  62. data/lib/adyen/services/management/terminals_terminal_level_api.rb +27 -0
  63. data/lib/adyen/services/management/users_company_level_api.rb +63 -0
  64. data/lib/adyen/services/management/users_merchant_level_api.rb +63 -0
  65. data/lib/adyen/services/management/webhooks_company_level_api.rb +99 -0
  66. data/lib/adyen/services/management/webhooks_merchant_level_api.rb +99 -0
  67. data/lib/adyen/services/management.rb +151 -0
  68. data/lib/adyen/services/payment.rb +172 -0
  69. data/lib/adyen/services/payout/initialization_api.rb +51 -0
  70. data/lib/adyen/services/payout/instant_payouts_api.rb +27 -0
  71. data/lib/adyen/services/payout/reviewing_api.rb +39 -0
  72. data/lib/adyen/services/payout.rb +31 -0
  73. data/lib/adyen/services/posTerminalManagement.rb +76 -0
  74. data/lib/adyen/services/recurring.rb +81 -13
  75. data/lib/adyen/services/service.rb +6 -1
  76. data/lib/adyen/services/storedValue.rb +88 -0
  77. data/lib/adyen/services/transfers/transactions_api.rb +39 -0
  78. data/lib/adyen/services/transfers/transfers_api.rb +27 -0
  79. data/lib/adyen/services/transfers.rb +26 -0
  80. data/lib/adyen/utils/hmac_validator.rb +2 -3
  81. data/lib/adyen/version.rb +2 -2
  82. data/lib/adyen-ruby-api-library.rb +11 -5
  83. data/spec/account_spec.rb +1 -1
  84. data/spec/balance_control_spec.rb +44 -0
  85. data/spec/balance_platform_spec.rb +123 -0
  86. data/spec/bin_lookup_spec.rb +68 -10
  87. data/spec/checkout_spec.rb +85 -62
  88. data/spec/client_spec.rb +89 -10
  89. data/spec/errors_spec.rb +1 -1
  90. data/spec/fund_spec.rb +1 -1
  91. data/spec/hop_spec.rb +1 -1
  92. data/spec/lem_spec.rb +68 -0
  93. data/spec/management_spec.rb +68 -0
  94. data/spec/mocks/requests/BalanceControl/balance_transfer.json +10 -0
  95. data/spec/mocks/requests/BalancePlatform/create_account_holder.json +5 -0
  96. data/spec/mocks/requests/BalancePlatform/update_account_holder.json +10 -0
  97. data/spec/mocks/requests/LegalEntityManagement/create_business_line.json +15 -0
  98. data/spec/mocks/requests/Management/create_store.json +15 -0
  99. data/spec/mocks/requests/Recurring/create_permit.json +6 -0
  100. data/spec/mocks/requests/StoredValue/issue_giftcard.json +12 -0
  101. data/spec/mocks/requests/Transfers/get_transactions.json +82 -0
  102. data/spec/mocks/requests/Transfers/make_transfer.json +32 -0
  103. data/spec/mocks/responses/BalanceControl/balance_transfer.json +14 -0
  104. data/spec/mocks/responses/BalancePlatform/create_account_holder.json +41 -0
  105. data/spec/mocks/responses/BalancePlatform/get_balance_account.json +15 -0
  106. data/spec/mocks/responses/BalancePlatform/update_account_holder.json +16 -0
  107. data/spec/mocks/responses/Checkout/stored_payment_methods.json +1 -0
  108. data/spec/mocks/responses/LegalEntityManagement/create_business_line.json +17 -0
  109. data/spec/mocks/responses/Management/create_store.json +23 -0
  110. data/spec/mocks/responses/Management/get_companies.json +42 -0
  111. data/spec/mocks/responses/Recurring/create_permit.json +4 -0
  112. data/spec/mocks/responses/StoredValue/issue_giftcard.json +13 -0
  113. data/spec/mocks/responses/Transfers/get_transactions.json +82 -0
  114. data/spec/mocks/responses/Transfers/make_transfer.json +36 -0
  115. data/spec/mocks/responses/Webhooks/backslash_notification.json +41 -0
  116. data/spec/mocks/responses/Webhooks/colon_notification.json +41 -0
  117. data/spec/mocks/responses/Webhooks/forwardslash_notification.json +41 -0
  118. data/spec/mocks/responses/Webhooks/mixed_notification.json +41 -0
  119. data/spec/notification_spec.rb +1 -1
  120. data/spec/payments_spec.rb +41 -23
  121. data/spec/payouts_spec.rb +43 -16
  122. data/spec/pos_terminal_management_spec.rb +46 -0
  123. data/spec/recurring_spec.rb +2 -2
  124. data/spec/spec_helper.rb +0 -10
  125. data/spec/stored_value_spec.rb +43 -0
  126. data/spec/transfers_spec.rb +63 -0
  127. data/spec/utils/hmac_validator_spec.rb +20 -6
  128. data/templates/api-single.mustache +29 -0
  129. data/templates/api-small.mustache +37 -0
  130. data/templates/api.mustache +36 -0
  131. data/templates/config.yaml +10 -0
  132. metadata +107 -11
  133. data/lib/adyen/services/bin_lookup.rb +0 -18
  134. data/lib/adyen/services/data_protection.rb +0 -17
  135. data/lib/adyen/services/payments.rb +0 -34
  136. data/lib/adyen/services/payouts.rb +0 -22
  137. data/lib/adyen/services/postfmapi.rb +0 -19
  138. data/spec/mocks/requests/Recurring/store_token.json +0 -15
  139. data/spec/mocks/responses/Recurring/store_token.json +0 -7
  140. data/spec/postfmapi_spec.rb +0 -16
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: 6.2.0
4
+ version: 7.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: 2022-11-17 00:00:00.000000000 Z
11
+ date: 2023-05-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -81,6 +81,7 @@ files:
81
81
  - ".github/ISSUE_TEMPLATE/feature_request.md"
82
82
  - ".github/PULL_REQUEST_TEMPLATE.md"
83
83
  - ".github/dependabot.yml"
84
+ - ".github/workflows/codeql.yml"
84
85
  - ".github/workflows/ruby.yml"
85
86
  - ".github/workflows/rubygems_release.yml"
86
87
  - ".gitignore"
@@ -88,6 +89,7 @@ files:
88
89
  - CONTRIBUTING.md
89
90
  - Gemfile
90
91
  - LICENSE
92
+ - Makefile
91
93
  - README.md
92
94
  - Rakefile
93
95
  - adyen-ruby-api-library.gemspec
@@ -112,20 +114,83 @@ files:
112
114
  - lib/adyen/errors.rb
113
115
  - lib/adyen/hash_with_accessors.rb
114
116
  - lib/adyen/result.rb
115
- - lib/adyen/services/bin_lookup.rb
117
+ - lib/adyen/services/balanceControlService.rb
118
+ - lib/adyen/services/balancePlatform.rb
119
+ - lib/adyen/services/balancePlatform/account_holders_api.rb
120
+ - lib/adyen/services/balancePlatform/balance_accounts_api.rb
121
+ - lib/adyen/services/balancePlatform/bank_account_validation_api.rb
122
+ - lib/adyen/services/balancePlatform/grant_accounts_api.rb
123
+ - lib/adyen/services/balancePlatform/grant_offers_api.rb
124
+ - lib/adyen/services/balancePlatform/payment_instrument_groups_api.rb
125
+ - lib/adyen/services/balancePlatform/payment_instruments_api.rb
126
+ - lib/adyen/services/balancePlatform/platform_api.rb
127
+ - lib/adyen/services/balancePlatform/transaction_rules_api.rb
128
+ - lib/adyen/services/binLookup.rb
116
129
  - lib/adyen/services/checkout.rb
117
- - lib/adyen/services/data_protection.rb
130
+ - lib/adyen/services/checkout/classic_checkout_sdk_api.rb
131
+ - lib/adyen/services/checkout/modifications_api.rb
132
+ - lib/adyen/services/checkout/orders_api.rb
133
+ - lib/adyen/services/checkout/payment_links_api.rb
134
+ - lib/adyen/services/checkout/payments_api.rb
135
+ - lib/adyen/services/checkout/recurring_api.rb
136
+ - lib/adyen/services/checkout/utility_api.rb
137
+ - lib/adyen/services/dataProtection.rb
118
138
  - lib/adyen/services/dispute.rb
139
+ - lib/adyen/services/legalEntityManagement.rb
140
+ - lib/adyen/services/legalEntityManagement/business_lines_api.rb
141
+ - lib/adyen/services/legalEntityManagement/documents_api.rb
142
+ - lib/adyen/services/legalEntityManagement/hosted_onboarding_api.rb
143
+ - lib/adyen/services/legalEntityManagement/legal_entities_api.rb
144
+ - lib/adyen/services/legalEntityManagement/pci_questionnaires_api.rb
145
+ - lib/adyen/services/legalEntityManagement/terms_of_service_api.rb
146
+ - lib/adyen/services/legalEntityManagement/transfer_instruments_api.rb
147
+ - lib/adyen/services/management.rb
148
+ - lib/adyen/services/management/account_company_level_api.rb
149
+ - lib/adyen/services/management/account_merchant_level_api.rb
150
+ - lib/adyen/services/management/account_store_level_api.rb
151
+ - lib/adyen/services/management/allowed_origins_company_level_api.rb
152
+ - lib/adyen/services/management/allowed_origins_merchant_level_api.rb
153
+ - lib/adyen/services/management/api_credentials_company_level_api.rb
154
+ - lib/adyen/services/management/api_credentials_merchant_level_api.rb
155
+ - lib/adyen/services/management/api_key_company_level_api.rb
156
+ - lib/adyen/services/management/api_key_merchant_level_api.rb
157
+ - lib/adyen/services/management/client_key_company_level_api.rb
158
+ - lib/adyen/services/management/client_key_merchant_level_api.rb
159
+ - lib/adyen/services/management/my_api_credential_api.rb
160
+ - lib/adyen/services/management/payment_methods_merchant_level_api.rb
161
+ - lib/adyen/services/management/payout_settings_merchant_level_api.rb
162
+ - lib/adyen/services/management/terminal_actions_company_level_api.rb
163
+ - lib/adyen/services/management/terminal_actions_terminal_level_api.rb
164
+ - lib/adyen/services/management/terminal_orders_company_level_api.rb
165
+ - lib/adyen/services/management/terminal_orders_merchant_level_api.rb
166
+ - lib/adyen/services/management/terminal_settings_company_level_api.rb
167
+ - lib/adyen/services/management/terminal_settings_merchant_level_api.rb
168
+ - lib/adyen/services/management/terminal_settings_store_level_api.rb
169
+ - lib/adyen/services/management/terminal_settings_terminal_level_api.rb
170
+ - lib/adyen/services/management/terminals_terminal_level_api.rb
171
+ - lib/adyen/services/management/users_company_level_api.rb
172
+ - lib/adyen/services/management/users_merchant_level_api.rb
173
+ - lib/adyen/services/management/webhooks_company_level_api.rb
174
+ - lib/adyen/services/management/webhooks_merchant_level_api.rb
119
175
  - lib/adyen/services/marketpay.rb
120
- - lib/adyen/services/payments.rb
121
- - lib/adyen/services/payouts.rb
122
- - lib/adyen/services/postfmapi.rb
176
+ - lib/adyen/services/payment.rb
177
+ - lib/adyen/services/payout.rb
178
+ - lib/adyen/services/payout/initialization_api.rb
179
+ - lib/adyen/services/payout/instant_payouts_api.rb
180
+ - lib/adyen/services/payout/reviewing_api.rb
181
+ - lib/adyen/services/posTerminalManagement.rb
123
182
  - lib/adyen/services/recurring.rb
124
183
  - lib/adyen/services/service.rb
184
+ - lib/adyen/services/storedValue.rb
185
+ - lib/adyen/services/transfers.rb
186
+ - lib/adyen/services/transfers/transactions_api.rb
187
+ - lib/adyen/services/transfers/transfers_api.rb
125
188
  - lib/adyen/utils/hmac_validator.rb
126
189
  - lib/adyen/version.rb
127
190
  - renovate.json
128
191
  - spec/account_spec.rb
192
+ - spec/balance_control_spec.rb
193
+ - spec/balance_platform_spec.rb
129
194
  - spec/bin_lookup_spec.rb
130
195
  - spec/checkout_spec.rb
131
196
  - spec/client_spec.rb
@@ -135,6 +200,8 @@ files:
135
200
  - spec/fund_spec.rb
136
201
  - spec/hash_with_accessors_spec.rb
137
202
  - spec/hop_spec.rb
203
+ - spec/lem_spec.rb
204
+ - spec/management_spec.rb
138
205
  - spec/mocks/requests/Account/check_account_holder.json
139
206
  - spec/mocks/requests/Account/close_account.json
140
207
  - spec/mocks/requests/Account/close_account_holder.json
@@ -152,6 +219,9 @@ files:
152
219
  - spec/mocks/requests/Account/update_account_holder.json
153
220
  - spec/mocks/requests/Account/update_account_holder_state.json
154
221
  - spec/mocks/requests/Account/upload_document.json
222
+ - spec/mocks/requests/BalanceControl/balance_transfer.json
223
+ - spec/mocks/requests/BalancePlatform/create_account_holder.json
224
+ - spec/mocks/requests/BalancePlatform/update_account_holder.json
155
225
  - spec/mocks/requests/BinLookup/get_3ds_availability.json
156
226
  - spec/mocks/requests/BinLookup/get_cost_estimate.json
157
227
  - spec/mocks/requests/Checkout/amount_updates.json
@@ -186,6 +256,8 @@ files:
186
256
  - spec/mocks/requests/Fund/setup_beneficiary.json
187
257
  - spec/mocks/requests/Fund/transfer_funds.json
188
258
  - spec/mocks/requests/Hop/get_onboarding_url.json
259
+ - spec/mocks/requests/LegalEntityManagement/create_business_line.json
260
+ - spec/mocks/requests/Management/create_store.json
189
261
  - spec/mocks/requests/Notification/create_notification_configuration.json
190
262
  - spec/mocks/requests/Notification/delete_notification_configurations.json
191
263
  - spec/mocks/requests/Notification/get_notification_configuration.json
@@ -211,13 +283,16 @@ files:
211
283
  - spec/mocks/requests/Payout/store_detail.json
212
284
  - spec/mocks/requests/Payout/store_detail_and_submit_third_party.json
213
285
  - spec/mocks/requests/Payout/submit_third_party.json
286
+ - spec/mocks/requests/Recurring/create_permit.json
214
287
  - spec/mocks/requests/Recurring/disable.json
215
288
  - spec/mocks/requests/Recurring/list_recurring_details.json
216
289
  - spec/mocks/requests/Recurring/schedule_account_updater.json
217
- - spec/mocks/requests/Recurring/store_token.json
290
+ - spec/mocks/requests/StoredValue/issue_giftcard.json
218
291
  - spec/mocks/requests/Terminal/assign_terminals.json
219
292
  - spec/mocks/requests/Terminal/find_terminal.json
220
293
  - spec/mocks/requests/Terminal/get_terminals_under_account.json
294
+ - spec/mocks/requests/Transfers/get_transactions.json
295
+ - spec/mocks/requests/Transfers/make_transfer.json
221
296
  - spec/mocks/responses/Account/check_account_holder.json
222
297
  - spec/mocks/responses/Account/close_account.json
223
298
  - spec/mocks/responses/Account/close_account_holder.json
@@ -235,6 +310,10 @@ files:
235
310
  - spec/mocks/responses/Account/update_account_holder.json
236
311
  - spec/mocks/responses/Account/update_account_holder_state.json
237
312
  - spec/mocks/responses/Account/upload_document.json
313
+ - spec/mocks/responses/BalanceControl/balance_transfer.json
314
+ - spec/mocks/responses/BalancePlatform/create_account_holder.json
315
+ - spec/mocks/responses/BalancePlatform/get_balance_account.json
316
+ - spec/mocks/responses/BalancePlatform/update_account_holder.json
238
317
  - spec/mocks/responses/BinLookup/get_3ds_availability.json
239
318
  - spec/mocks/responses/BinLookup/get_cost_estimate.json
240
319
  - spec/mocks/responses/Checkout/amount_updates.json
@@ -256,6 +335,7 @@ files:
256
335
  - spec/mocks/responses/Checkout/psp_cancel.json
257
336
  - spec/mocks/responses/Checkout/refund.json
258
337
  - spec/mocks/responses/Checkout/sessions-success.json
338
+ - spec/mocks/responses/Checkout/stored_payment_methods.json
259
339
  - spec/mocks/responses/Checkout/update-payment-link.json
260
340
  - spec/mocks/responses/Checkout/verify.json
261
341
  - spec/mocks/responses/DataProtectionService/request_subject_erasure.json
@@ -271,6 +351,9 @@ files:
271
351
  - spec/mocks/responses/Fund/setup_beneficiary.json
272
352
  - spec/mocks/responses/Fund/transfer_funds.json
273
353
  - spec/mocks/responses/Hop/get_onboarding_url.json
354
+ - spec/mocks/responses/LegalEntityManagement/create_business_line.json
355
+ - spec/mocks/responses/Management/create_store.json
356
+ - spec/mocks/responses/Management/get_companies.json
274
357
  - spec/mocks/responses/Notification/create_notification_configuration.json
275
358
  - spec/mocks/responses/Notification/delete_notification_configurations.json
276
359
  - spec/mocks/responses/Notification/get_notification_configuration.json
@@ -296,21 +379,34 @@ files:
296
379
  - spec/mocks/responses/Payout/store_detail.json
297
380
  - spec/mocks/responses/Payout/store_detail_and_submit_third_party.json
298
381
  - spec/mocks/responses/Payout/submit_third_party.json
382
+ - spec/mocks/responses/Recurring/create_permit.json
299
383
  - spec/mocks/responses/Recurring/disable.json
300
384
  - spec/mocks/responses/Recurring/list_recurring_details.json
301
385
  - spec/mocks/responses/Recurring/schedule_account_updater.json
302
- - spec/mocks/responses/Recurring/store_token.json
386
+ - spec/mocks/responses/StoredValue/issue_giftcard.json
303
387
  - spec/mocks/responses/Terminal/assign_terminals.json
304
388
  - spec/mocks/responses/Terminal/find_terminal.json
305
389
  - spec/mocks/responses/Terminal/get_terminals_under_account.json
390
+ - spec/mocks/responses/Transfers/get_transactions.json
391
+ - spec/mocks/responses/Transfers/make_transfer.json
392
+ - spec/mocks/responses/Webhooks/backslash_notification.json
393
+ - spec/mocks/responses/Webhooks/colon_notification.json
394
+ - spec/mocks/responses/Webhooks/forwardslash_notification.json
395
+ - spec/mocks/responses/Webhooks/mixed_notification.json
306
396
  - spec/notification_spec.rb
307
397
  - spec/payments_spec.rb
308
398
  - spec/payouts_spec.rb
309
- - spec/postfmapi_spec.rb
399
+ - spec/pos_terminal_management_spec.rb
310
400
  - spec/recurring_spec.rb
311
401
  - spec/service_spec.rb
312
402
  - spec/spec_helper.rb
403
+ - spec/stored_value_spec.rb
404
+ - spec/transfers_spec.rb
313
405
  - spec/utils/hmac_validator_spec.rb
406
+ - templates/api-single.mustache
407
+ - templates/api-small.mustache
408
+ - templates/api.mustache
409
+ - templates/config.yaml
314
410
  homepage: https://www.adyen.com
315
411
  licenses:
316
412
  - MIT
@@ -333,7 +429,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
333
429
  - !ruby/object:Gem::Version
334
430
  version: '0'
335
431
  requirements: []
336
- rubygems_version: 3.3.7
432
+ rubygems_version: 3.4.10
337
433
  signing_key:
338
434
  specification_version: 4
339
435
  summary: Official Adyen Ruby API Library
@@ -1,18 +0,0 @@
1
- require_relative 'service'
2
-
3
- module Adyen
4
- class BinLookup < Service
5
- attr_accessor :version
6
- DEFAULT_VERSION = 50
7
-
8
- def initialize(client, version = DEFAULT_VERSION)
9
- service = 'BinLookup'
10
- method_names = [
11
- :get_3ds_availability,
12
- :get_cost_estimate
13
- ]
14
-
15
- super(client, version, service, method_names)
16
- end
17
- end
18
- end
@@ -1,17 +0,0 @@
1
- require_relative 'service'
2
-
3
- module Adyen
4
- class DataProtection < Service
5
- attr_accessor :version
6
- DEFAULT_VERSION = 1
7
-
8
- def initialize(client, version = DEFAULT_VERSION)
9
- service = 'DataProtectionService'
10
- method_names = [
11
- :request_subject_erasure
12
- ]
13
-
14
- super(client, version, service, method_names)
15
- end
16
- end
17
- end
@@ -1,34 +0,0 @@
1
- require_relative "service"
2
-
3
- module Adyen
4
- class Payments < Service
5
- attr_accessor :version
6
- DEFAULT_VERSION = 64
7
-
8
- def initialize(client, version = DEFAULT_VERSION)
9
- service = "Payment"
10
- method_names = [
11
- :authorise,
12
- :authorise3d,
13
- :authorise3ds2,
14
- :capture,
15
- :cancel,
16
- :refund,
17
- :cancel_or_refund,
18
- :adjust_authorisation,
19
- :donate,
20
- :get_authentication_result,
21
- :technical_cancel,
22
- :void_pending_refund,
23
- :retrieve_3ds2_result
24
- ]
25
- with_application_info = [
26
- :authorise,
27
- :authorise3d,
28
- :authorise3ds2
29
- ]
30
-
31
- super(client, version, service, method_names, with_application_info)
32
- end
33
- end
34
- end
@@ -1,22 +0,0 @@
1
- require_relative 'service'
2
-
3
- module Adyen
4
- class Payouts < Service
5
- attr_accessor :version
6
- DEFAULT_VERSION = 64
7
-
8
- def initialize(client, version = DEFAULT_VERSION)
9
- service = 'Payout'
10
- method_names = [
11
- :store_detail,
12
- :store_detail_and_submit_third_party,
13
- :submit_third_party,
14
- :confirm_third_party,
15
- :decline_third_party,
16
- :payout
17
- ]
18
-
19
- super(client, version, service, method_names)
20
- end
21
- end
22
- end
@@ -1,19 +0,0 @@
1
- require_relative 'service'
2
-
3
- module Adyen
4
- class PosTerminalManagement < Service
5
- attr_accessor :version
6
- DEFAULT_VERSION = 1
7
-
8
- def initialize(client, version = DEFAULT_VERSION)
9
- service = 'Terminal'
10
- method_names = [
11
- :assign_terminals,
12
- :find_terminal,
13
- :get_terminals_under_account
14
- ]
15
-
16
- super(client, version, service, method_names)
17
- end
18
- end
19
- end
@@ -1,15 +0,0 @@
1
- {
2
- "card": {
3
- "number": "4111111111111111",
4
- "expiryMonth": "8",
5
- "expiryYear": "2018",
6
- "cvc": "737",
7
- "holderName": "John Smith"
8
- },
9
- "reference": "Merchant Reference",
10
- "merchantAccount": "TestMerchant",
11
- "shopperReference": "shopperReference",
12
- "recurring": {
13
- "contract": "RECURRING"
14
- }
15
- }
@@ -1,7 +0,0 @@
1
- {
2
- "alias": "H167852639363479",
3
- "aliasType": "Default",
4
- "pspReference": "8815260599791117",
5
- "recurringDetailReference": "8315186272777609",
6
- "result": "Success"
7
- }
@@ -1,16 +0,0 @@
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