gocardless_pro 2.21.0 → 2.25.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +25 -43
  3. data/Gemfile +7 -0
  4. data/gocardless_pro.gemspec +2 -2
  5. data/lib/gocardless_pro.rb +6 -0
  6. data/lib/gocardless_pro/api_service.rb +1 -1
  7. data/lib/gocardless_pro/client.rb +11 -1
  8. data/lib/gocardless_pro/resources/event.rb +12 -0
  9. data/lib/gocardless_pro/resources/payer_authorisation.rb +119 -0
  10. data/lib/gocardless_pro/resources/payout.rb +2 -0
  11. data/lib/gocardless_pro/resources/payout_item.rb +6 -0
  12. data/lib/gocardless_pro/resources/tax_rate.rb +51 -0
  13. data/lib/gocardless_pro/services/bank_details_lookups_service.rb +0 -10
  14. data/lib/gocardless_pro/services/base_service.rb +11 -0
  15. data/lib/gocardless_pro/services/creditor_bank_accounts_service.rb +0 -10
  16. data/lib/gocardless_pro/services/creditors_service.rb +0 -10
  17. data/lib/gocardless_pro/services/currency_exchange_rates_service.rb +0 -10
  18. data/lib/gocardless_pro/services/customer_bank_accounts_service.rb +0 -10
  19. data/lib/gocardless_pro/services/customer_notifications_service.rb +0 -10
  20. data/lib/gocardless_pro/services/customers_service.rb +0 -10
  21. data/lib/gocardless_pro/services/events_service.rb +0 -10
  22. data/lib/gocardless_pro/services/instalment_schedules_service.rb +0 -10
  23. data/lib/gocardless_pro/services/mandate_import_entries_service.rb +0 -10
  24. data/lib/gocardless_pro/services/mandate_imports_service.rb +0 -10
  25. data/lib/gocardless_pro/services/mandate_pdfs_service.rb +0 -10
  26. data/lib/gocardless_pro/services/mandates_service.rb +0 -10
  27. data/lib/gocardless_pro/services/payer_authorisations_service.rb +208 -0
  28. data/lib/gocardless_pro/services/payments_service.rb +0 -10
  29. data/lib/gocardless_pro/services/payout_items_service.rb +0 -10
  30. data/lib/gocardless_pro/services/payouts_service.rb +0 -10
  31. data/lib/gocardless_pro/services/redirect_flows_service.rb +0 -10
  32. data/lib/gocardless_pro/services/refunds_service.rb +6 -11
  33. data/lib/gocardless_pro/services/subscriptions_service.rb +1 -11
  34. data/lib/gocardless_pro/services/tax_rates_service.rb +74 -0
  35. data/lib/gocardless_pro/version.rb +1 -1
  36. data/spec/resources/payer_authorisation_spec.rb +418 -0
  37. data/spec/resources/payout_item_spec.rb +5 -0
  38. data/spec/resources/payout_spec.rb +8 -0
  39. data/spec/resources/tax_rate_spec.rb +198 -0
  40. data/spec/services/creditor_bank_accounts_service_spec.rb +1 -1
  41. data/spec/services/customer_bank_accounts_service_spec.rb +1 -1
  42. data/spec/services/customer_notifications_service_spec.rb +1 -1
  43. data/spec/services/customers_service_spec.rb +1 -1
  44. data/spec/services/instalment_schedules_service_spec.rb +1 -1
  45. data/spec/services/mandate_imports_service_spec.rb +2 -2
  46. data/spec/services/mandates_service_spec.rb +2 -2
  47. data/spec/services/payer_authorisations_service_spec.rb +572 -0
  48. data/spec/services/payments_service_spec.rb +2 -2
  49. data/spec/services/payout_items_service_spec.rb +9 -0
  50. data/spec/services/payouts_service_spec.rb +12 -0
  51. data/spec/services/redirect_flows_service_spec.rb +1 -1
  52. data/spec/services/subscriptions_service_spec.rb +3 -3
  53. data/spec/services/tax_rates_service_spec.rb +381 -0
  54. metadata +19 -7
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.21.0
4
+ version: 2.25.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-06-01 00:00:00.000000000 Z
11
+ date: 2020-11-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: 0.9.2
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '1.0'
22
+ version: '2'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: 0.9.2
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '1.0'
32
+ version: '2'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: rspec
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -50,14 +50,14 @@ dependencies:
50
50
  requirements:
51
51
  - - "~>"
52
52
  - !ruby/object:Gem::Version
53
- version: '1.18'
53
+ version: 3.8.3
54
54
  type: :development
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
58
  - - "~>"
59
59
  - !ruby/object:Gem::Version
60
- version: '1.18'
60
+ version: 3.8.3
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: rubocop
63
63
  requirement: !ruby/object:Gem::Requirement
@@ -172,12 +172,14 @@ files:
172
172
  - lib/gocardless_pro/resources/mandate_import.rb
173
173
  - lib/gocardless_pro/resources/mandate_import_entry.rb
174
174
  - lib/gocardless_pro/resources/mandate_pdf.rb
175
+ - lib/gocardless_pro/resources/payer_authorisation.rb
175
176
  - lib/gocardless_pro/resources/payment.rb
176
177
  - lib/gocardless_pro/resources/payout.rb
177
178
  - lib/gocardless_pro/resources/payout_item.rb
178
179
  - lib/gocardless_pro/resources/redirect_flow.rb
179
180
  - lib/gocardless_pro/resources/refund.rb
180
181
  - lib/gocardless_pro/resources/subscription.rb
182
+ - lib/gocardless_pro/resources/tax_rate.rb
181
183
  - lib/gocardless_pro/response.rb
182
184
  - lib/gocardless_pro/services/bank_details_lookups_service.rb
183
185
  - lib/gocardless_pro/services/base_service.rb
@@ -193,12 +195,14 @@ files:
193
195
  - lib/gocardless_pro/services/mandate_imports_service.rb
194
196
  - lib/gocardless_pro/services/mandate_pdfs_service.rb
195
197
  - lib/gocardless_pro/services/mandates_service.rb
198
+ - lib/gocardless_pro/services/payer_authorisations_service.rb
196
199
  - lib/gocardless_pro/services/payments_service.rb
197
200
  - lib/gocardless_pro/services/payout_items_service.rb
198
201
  - lib/gocardless_pro/services/payouts_service.rb
199
202
  - lib/gocardless_pro/services/redirect_flows_service.rb
200
203
  - lib/gocardless_pro/services/refunds_service.rb
201
204
  - lib/gocardless_pro/services/subscriptions_service.rb
205
+ - lib/gocardless_pro/services/tax_rates_service.rb
202
206
  - lib/gocardless_pro/version.rb
203
207
  - lib/gocardless_pro/webhook.rb
204
208
  - spec/api_response_spec.rb
@@ -219,12 +223,14 @@ files:
219
223
  - spec/resources/mandate_import_spec.rb
220
224
  - spec/resources/mandate_pdf_spec.rb
221
225
  - spec/resources/mandate_spec.rb
226
+ - spec/resources/payer_authorisation_spec.rb
222
227
  - spec/resources/payment_spec.rb
223
228
  - spec/resources/payout_item_spec.rb
224
229
  - spec/resources/payout_spec.rb
225
230
  - spec/resources/redirect_flow_spec.rb
226
231
  - spec/resources/refund_spec.rb
227
232
  - spec/resources/subscription_spec.rb
233
+ - spec/resources/tax_rate_spec.rb
228
234
  - spec/response_spec.rb
229
235
  - spec/services/bank_details_lookups_service_spec.rb
230
236
  - spec/services/creditor_bank_accounts_service_spec.rb
@@ -239,12 +245,14 @@ files:
239
245
  - spec/services/mandate_imports_service_spec.rb
240
246
  - spec/services/mandate_pdfs_service_spec.rb
241
247
  - spec/services/mandates_service_spec.rb
248
+ - spec/services/payer_authorisations_service_spec.rb
242
249
  - spec/services/payments_service_spec.rb
243
250
  - spec/services/payout_items_service_spec.rb
244
251
  - spec/services/payouts_service_spec.rb
245
252
  - spec/services/redirect_flows_service_spec.rb
246
253
  - spec/services/refunds_service_spec.rb
247
254
  - spec/services/subscriptions_service_spec.rb
255
+ - spec/services/tax_rates_service_spec.rb
248
256
  - spec/spec_helper.rb
249
257
  - spec/webhook_spec.rb
250
258
  homepage: https://github.com/gocardless/gocardless-pro-ruby
@@ -266,7 +274,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
266
274
  - !ruby/object:Gem::Version
267
275
  version: '0'
268
276
  requirements: []
269
- rubygems_version: 3.0.3
277
+ rubygems_version: 3.1.4
270
278
  signing_key:
271
279
  specification_version: 4
272
280
  summary: A gem for calling the GoCardless Pro API
@@ -289,12 +297,14 @@ test_files:
289
297
  - spec/resources/mandate_import_spec.rb
290
298
  - spec/resources/mandate_pdf_spec.rb
291
299
  - spec/resources/mandate_spec.rb
300
+ - spec/resources/payer_authorisation_spec.rb
292
301
  - spec/resources/payment_spec.rb
293
302
  - spec/resources/payout_item_spec.rb
294
303
  - spec/resources/payout_spec.rb
295
304
  - spec/resources/redirect_flow_spec.rb
296
305
  - spec/resources/refund_spec.rb
297
306
  - spec/resources/subscription_spec.rb
307
+ - spec/resources/tax_rate_spec.rb
298
308
  - spec/response_spec.rb
299
309
  - spec/services/bank_details_lookups_service_spec.rb
300
310
  - spec/services/creditor_bank_accounts_service_spec.rb
@@ -309,11 +319,13 @@ test_files:
309
319
  - spec/services/mandate_imports_service_spec.rb
310
320
  - spec/services/mandate_pdfs_service_spec.rb
311
321
  - spec/services/mandates_service_spec.rb
322
+ - spec/services/payer_authorisations_service_spec.rb
312
323
  - spec/services/payments_service_spec.rb
313
324
  - spec/services/payout_items_service_spec.rb
314
325
  - spec/services/payouts_service_spec.rb
315
326
  - spec/services/redirect_flows_service_spec.rb
316
327
  - spec/services/refunds_service_spec.rb
317
328
  - spec/services/subscriptions_service_spec.rb
329
+ - spec/services/tax_rates_service_spec.rb
318
330
  - spec/spec_helper.rb
319
331
  - spec/webhook_spec.rb