gocardless_pro 2.25.0 → 2.27.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +3 -3
  3. data/lib/gocardless_pro.rb +18 -0
  4. data/lib/gocardless_pro/client.rb +31 -1
  5. data/lib/gocardless_pro/resources/bank_authorisation.rb +87 -0
  6. data/lib/gocardless_pro/resources/billing_request.rb +86 -0
  7. data/lib/gocardless_pro/resources/billing_request_flow.rb +62 -0
  8. data/lib/gocardless_pro/resources/creditor.rb +2 -3
  9. data/lib/gocardless_pro/resources/institution.rb +45 -0
  10. data/lib/gocardless_pro/resources/payer_authorisation.rb +3 -0
  11. data/lib/gocardless_pro/resources/scenario_simulator.rb +42 -0
  12. data/lib/gocardless_pro/resources/webhook.rb +62 -0
  13. data/lib/gocardless_pro/services/bank_authorisations_service.rb +82 -0
  14. data/lib/gocardless_pro/services/billing_request_flows_service.rb +47 -0
  15. data/lib/gocardless_pro/services/billing_requests_service.rb +325 -0
  16. data/lib/gocardless_pro/services/institutions_service.rb +56 -0
  17. data/lib/gocardless_pro/services/payer_authorisations_service.rb +5 -5
  18. data/lib/gocardless_pro/services/scenario_simulators_service.rb +148 -0
  19. data/lib/gocardless_pro/services/subscriptions_service.rb +8 -3
  20. data/lib/gocardless_pro/services/webhooks_service.rb +113 -0
  21. data/lib/gocardless_pro/version.rb +1 -1
  22. data/spec/resources/bank_authorisation_spec.rb +259 -0
  23. data/spec/resources/billing_request_flow_spec.rb +129 -0
  24. data/spec/resources/billing_request_spec.rb +736 -0
  25. data/spec/resources/institution_spec.rb +103 -0
  26. data/spec/resources/scenario_simulator_spec.rb +63 -0
  27. data/spec/resources/webhook_spec.rb +323 -0
  28. data/spec/services/bank_authorisations_service_spec.rb +366 -0
  29. data/spec/services/billing_request_flows_service_spec.rb +152 -0
  30. data/spec/services/billing_requests_service_spec.rb +1042 -0
  31. data/spec/services/institutions_service_spec.rb +223 -0
  32. data/spec/services/scenario_simulators_service_spec.rb +74 -0
  33. data/spec/services/webhooks_service_spec.rb +545 -0
  34. metadata +39 -3
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gocardless_pro
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.25.0
4
+ version: 2.27.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - GoCardless
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-11-03 00:00:00.000000000 Z
11
+ date: 2021-07-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -159,7 +159,10 @@ files:
159
159
  - lib/gocardless_pro/middlewares/raise_gocardless_errors.rb
160
160
  - lib/gocardless_pro/paginator.rb
161
161
  - lib/gocardless_pro/request.rb
162
+ - lib/gocardless_pro/resources/bank_authorisation.rb
162
163
  - lib/gocardless_pro/resources/bank_details_lookup.rb
164
+ - lib/gocardless_pro/resources/billing_request.rb
165
+ - lib/gocardless_pro/resources/billing_request_flow.rb
163
166
  - lib/gocardless_pro/resources/creditor.rb
164
167
  - lib/gocardless_pro/resources/creditor_bank_account.rb
165
168
  - lib/gocardless_pro/resources/currency_exchange_rate.rb
@@ -168,6 +171,7 @@ files:
168
171
  - lib/gocardless_pro/resources/customer_notification.rb
169
172
  - lib/gocardless_pro/resources/event.rb
170
173
  - lib/gocardless_pro/resources/instalment_schedule.rb
174
+ - lib/gocardless_pro/resources/institution.rb
171
175
  - lib/gocardless_pro/resources/mandate.rb
172
176
  - lib/gocardless_pro/resources/mandate_import.rb
173
177
  - lib/gocardless_pro/resources/mandate_import_entry.rb
@@ -178,11 +182,16 @@ files:
178
182
  - lib/gocardless_pro/resources/payout_item.rb
179
183
  - lib/gocardless_pro/resources/redirect_flow.rb
180
184
  - lib/gocardless_pro/resources/refund.rb
185
+ - lib/gocardless_pro/resources/scenario_simulator.rb
181
186
  - lib/gocardless_pro/resources/subscription.rb
182
187
  - lib/gocardless_pro/resources/tax_rate.rb
188
+ - lib/gocardless_pro/resources/webhook.rb
183
189
  - lib/gocardless_pro/response.rb
190
+ - lib/gocardless_pro/services/bank_authorisations_service.rb
184
191
  - lib/gocardless_pro/services/bank_details_lookups_service.rb
185
192
  - lib/gocardless_pro/services/base_service.rb
193
+ - lib/gocardless_pro/services/billing_request_flows_service.rb
194
+ - lib/gocardless_pro/services/billing_requests_service.rb
186
195
  - lib/gocardless_pro/services/creditor_bank_accounts_service.rb
187
196
  - lib/gocardless_pro/services/creditors_service.rb
188
197
  - lib/gocardless_pro/services/currency_exchange_rates_service.rb
@@ -191,6 +200,7 @@ files:
191
200
  - lib/gocardless_pro/services/customers_service.rb
192
201
  - lib/gocardless_pro/services/events_service.rb
193
202
  - lib/gocardless_pro/services/instalment_schedules_service.rb
203
+ - lib/gocardless_pro/services/institutions_service.rb
194
204
  - lib/gocardless_pro/services/mandate_import_entries_service.rb
195
205
  - lib/gocardless_pro/services/mandate_imports_service.rb
196
206
  - lib/gocardless_pro/services/mandate_pdfs_service.rb
@@ -201,8 +211,10 @@ files:
201
211
  - lib/gocardless_pro/services/payouts_service.rb
202
212
  - lib/gocardless_pro/services/redirect_flows_service.rb
203
213
  - lib/gocardless_pro/services/refunds_service.rb
214
+ - lib/gocardless_pro/services/scenario_simulators_service.rb
204
215
  - lib/gocardless_pro/services/subscriptions_service.rb
205
216
  - lib/gocardless_pro/services/tax_rates_service.rb
217
+ - lib/gocardless_pro/services/webhooks_service.rb
206
218
  - lib/gocardless_pro/version.rb
207
219
  - lib/gocardless_pro/webhook.rb
208
220
  - spec/api_response_spec.rb
@@ -210,7 +222,10 @@ files:
210
222
  - spec/client_spec.rb
211
223
  - spec/error_spec.rb
212
224
  - spec/middlewares/raise_gocardless_errors_spec.rb
225
+ - spec/resources/bank_authorisation_spec.rb
213
226
  - spec/resources/bank_details_lookup_spec.rb
227
+ - spec/resources/billing_request_flow_spec.rb
228
+ - spec/resources/billing_request_spec.rb
214
229
  - spec/resources/creditor_bank_account_spec.rb
215
230
  - spec/resources/creditor_spec.rb
216
231
  - spec/resources/currency_exchange_rate_spec.rb
@@ -219,6 +234,7 @@ files:
219
234
  - spec/resources/customer_spec.rb
220
235
  - spec/resources/event_spec.rb
221
236
  - spec/resources/instalment_schedule_spec.rb
237
+ - spec/resources/institution_spec.rb
222
238
  - spec/resources/mandate_import_entry_spec.rb
223
239
  - spec/resources/mandate_import_spec.rb
224
240
  - spec/resources/mandate_pdf_spec.rb
@@ -229,10 +245,15 @@ files:
229
245
  - spec/resources/payout_spec.rb
230
246
  - spec/resources/redirect_flow_spec.rb
231
247
  - spec/resources/refund_spec.rb
248
+ - spec/resources/scenario_simulator_spec.rb
232
249
  - spec/resources/subscription_spec.rb
233
250
  - spec/resources/tax_rate_spec.rb
251
+ - spec/resources/webhook_spec.rb
234
252
  - spec/response_spec.rb
253
+ - spec/services/bank_authorisations_service_spec.rb
235
254
  - spec/services/bank_details_lookups_service_spec.rb
255
+ - spec/services/billing_request_flows_service_spec.rb
256
+ - spec/services/billing_requests_service_spec.rb
236
257
  - spec/services/creditor_bank_accounts_service_spec.rb
237
258
  - spec/services/creditors_service_spec.rb
238
259
  - spec/services/currency_exchange_rates_service_spec.rb
@@ -241,6 +262,7 @@ files:
241
262
  - spec/services/customers_service_spec.rb
242
263
  - spec/services/events_service_spec.rb
243
264
  - spec/services/instalment_schedules_service_spec.rb
265
+ - spec/services/institutions_service_spec.rb
244
266
  - spec/services/mandate_import_entries_service_spec.rb
245
267
  - spec/services/mandate_imports_service_spec.rb
246
268
  - spec/services/mandate_pdfs_service_spec.rb
@@ -251,8 +273,10 @@ files:
251
273
  - spec/services/payouts_service_spec.rb
252
274
  - spec/services/redirect_flows_service_spec.rb
253
275
  - spec/services/refunds_service_spec.rb
276
+ - spec/services/scenario_simulators_service_spec.rb
254
277
  - spec/services/subscriptions_service_spec.rb
255
278
  - spec/services/tax_rates_service_spec.rb
279
+ - spec/services/webhooks_service_spec.rb
256
280
  - spec/spec_helper.rb
257
281
  - spec/webhook_spec.rb
258
282
  homepage: https://github.com/gocardless/gocardless-pro-ruby
@@ -274,7 +298,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
274
298
  - !ruby/object:Gem::Version
275
299
  version: '0'
276
300
  requirements: []
277
- rubygems_version: 3.1.4
301
+ rubygems_version: 3.0.3
278
302
  signing_key:
279
303
  specification_version: 4
280
304
  summary: A gem for calling the GoCardless Pro API
@@ -284,7 +308,10 @@ test_files:
284
308
  - spec/client_spec.rb
285
309
  - spec/error_spec.rb
286
310
  - spec/middlewares/raise_gocardless_errors_spec.rb
311
+ - spec/resources/bank_authorisation_spec.rb
287
312
  - spec/resources/bank_details_lookup_spec.rb
313
+ - spec/resources/billing_request_flow_spec.rb
314
+ - spec/resources/billing_request_spec.rb
288
315
  - spec/resources/creditor_bank_account_spec.rb
289
316
  - spec/resources/creditor_spec.rb
290
317
  - spec/resources/currency_exchange_rate_spec.rb
@@ -293,6 +320,7 @@ test_files:
293
320
  - spec/resources/customer_spec.rb
294
321
  - spec/resources/event_spec.rb
295
322
  - spec/resources/instalment_schedule_spec.rb
323
+ - spec/resources/institution_spec.rb
296
324
  - spec/resources/mandate_import_entry_spec.rb
297
325
  - spec/resources/mandate_import_spec.rb
298
326
  - spec/resources/mandate_pdf_spec.rb
@@ -303,10 +331,15 @@ test_files:
303
331
  - spec/resources/payout_spec.rb
304
332
  - spec/resources/redirect_flow_spec.rb
305
333
  - spec/resources/refund_spec.rb
334
+ - spec/resources/scenario_simulator_spec.rb
306
335
  - spec/resources/subscription_spec.rb
307
336
  - spec/resources/tax_rate_spec.rb
337
+ - spec/resources/webhook_spec.rb
308
338
  - spec/response_spec.rb
339
+ - spec/services/bank_authorisations_service_spec.rb
309
340
  - spec/services/bank_details_lookups_service_spec.rb
341
+ - spec/services/billing_request_flows_service_spec.rb
342
+ - spec/services/billing_requests_service_spec.rb
310
343
  - spec/services/creditor_bank_accounts_service_spec.rb
311
344
  - spec/services/creditors_service_spec.rb
312
345
  - spec/services/currency_exchange_rates_service_spec.rb
@@ -315,6 +348,7 @@ test_files:
315
348
  - spec/services/customers_service_spec.rb
316
349
  - spec/services/events_service_spec.rb
317
350
  - spec/services/instalment_schedules_service_spec.rb
351
+ - spec/services/institutions_service_spec.rb
318
352
  - spec/services/mandate_import_entries_service_spec.rb
319
353
  - spec/services/mandate_imports_service_spec.rb
320
354
  - spec/services/mandate_pdfs_service_spec.rb
@@ -325,7 +359,9 @@ test_files:
325
359
  - spec/services/payouts_service_spec.rb
326
360
  - spec/services/redirect_flows_service_spec.rb
327
361
  - spec/services/refunds_service_spec.rb
362
+ - spec/services/scenario_simulators_service_spec.rb
328
363
  - spec/services/subscriptions_service_spec.rb
329
364
  - spec/services/tax_rates_service_spec.rb
365
+ - spec/services/webhooks_service_spec.rb
330
366
  - spec/spec_helper.rb
331
367
  - spec/webhook_spec.rb