gocardless_pro 2.56.0 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. checksums.yaml +4 -4
  2. data/lib/gocardless_pro/client.rb +8 -3
  3. data/lib/gocardless_pro/error.rb +3 -3
  4. data/lib/gocardless_pro/middlewares/raise_gocardless_errors.rb +3 -3
  5. data/lib/gocardless_pro/resources/bank_authorisation.rb +2 -9
  6. data/lib/gocardless_pro/resources/bank_details_lookup.rb +1 -3
  7. data/lib/gocardless_pro/resources/billing_request.rb +7 -10
  8. data/lib/gocardless_pro/resources/billing_request_flow.rb +2 -17
  9. data/lib/gocardless_pro/resources/billing_request_template.rb +2 -17
  10. data/lib/gocardless_pro/resources/block.rb +2 -8
  11. data/lib/gocardless_pro/resources/creditor.rb +2 -20
  12. data/lib/gocardless_pro/resources/creditor_bank_account.rb +2 -11
  13. data/lib/gocardless_pro/resources/currency_exchange_rate.rb +1 -4
  14. data/lib/gocardless_pro/resources/customer.rb +2 -18
  15. data/lib/gocardless_pro/resources/customer_bank_account.rb +3 -10
  16. data/lib/gocardless_pro/resources/customer_notification.rb +1 -5
  17. data/lib/gocardless_pro/resources/event.rb +2 -8
  18. data/lib/gocardless_pro/resources/export.rb +40 -0
  19. data/lib/gocardless_pro/resources/instalment_schedule.rb +1 -8
  20. data/lib/gocardless_pro/resources/institution.rb +1 -6
  21. data/lib/gocardless_pro/resources/mandate.rb +3 -13
  22. data/lib/gocardless_pro/resources/mandate_import.rb +1 -4
  23. data/lib/gocardless_pro/resources/mandate_import_entry.rb +1 -2
  24. data/lib/gocardless_pro/resources/mandate_pdf.rb +1 -2
  25. data/lib/gocardless_pro/resources/negative_balance_limit.rb +1 -4
  26. data/lib/gocardless_pro/resources/payer_authorisation.rb +1 -7
  27. data/lib/gocardless_pro/resources/payment.rb +2 -13
  28. data/lib/gocardless_pro/resources/payout.rb +2 -12
  29. data/lib/gocardless_pro/resources/payout_item.rb +1 -3
  30. data/lib/gocardless_pro/resources/redirect_flow.rb +2 -10
  31. data/lib/gocardless_pro/resources/refund.rb +1 -8
  32. data/lib/gocardless_pro/resources/scheme_identifier.rb +2 -18
  33. data/lib/gocardless_pro/resources/subscription.rb +3 -19
  34. data/lib/gocardless_pro/resources/tax_rate.rb +1 -6
  35. data/lib/gocardless_pro/resources/transferred_mandate.rb +1 -3
  36. data/lib/gocardless_pro/resources/verification_detail.rb +2 -9
  37. data/lib/gocardless_pro/resources/webhook.rb +2 -13
  38. data/lib/gocardless_pro/services/bank_authorisations_service.rb +1 -1
  39. data/lib/gocardless_pro/services/billing_request_flows_service.rb +1 -1
  40. data/lib/gocardless_pro/services/billing_request_templates_service.rb +2 -2
  41. data/lib/gocardless_pro/services/billing_requests_service.rb +10 -10
  42. data/lib/gocardless_pro/services/blocks_service.rb +3 -3
  43. data/lib/gocardless_pro/services/creditor_bank_accounts_service.rb +2 -2
  44. data/lib/gocardless_pro/services/creditors_service.rb +2 -2
  45. data/lib/gocardless_pro/services/customer_bank_accounts_service.rb +3 -3
  46. data/lib/gocardless_pro/services/customer_notifications_service.rb +1 -1
  47. data/lib/gocardless_pro/services/customers_service.rb +3 -3
  48. data/lib/gocardless_pro/services/events_service.rb +1 -1
  49. data/lib/gocardless_pro/services/exports_service.rb +75 -0
  50. data/lib/gocardless_pro/services/instalment_schedules_service.rb +3 -3
  51. data/lib/gocardless_pro/services/institutions_service.rb +1 -1
  52. data/lib/gocardless_pro/services/logos_service.rb +5 -0
  53. data/lib/gocardless_pro/services/mandate_imports_service.rb +3 -3
  54. data/lib/gocardless_pro/services/mandates_service.rb +4 -4
  55. data/lib/gocardless_pro/services/payer_authorisations_service.rb +4 -4
  56. data/lib/gocardless_pro/services/payments_service.rb +4 -4
  57. data/lib/gocardless_pro/services/payouts_service.rb +2 -2
  58. data/lib/gocardless_pro/services/redirect_flows_service.rb +2 -2
  59. data/lib/gocardless_pro/services/refunds_service.rb +2 -2
  60. data/lib/gocardless_pro/services/scenario_simulators_service.rb +1 -1
  61. data/lib/gocardless_pro/services/scheme_identifiers_service.rb +1 -1
  62. data/lib/gocardless_pro/services/subscriptions_service.rb +5 -5
  63. data/lib/gocardless_pro/services/tax_rates_service.rb +1 -1
  64. data/lib/gocardless_pro/services/transferred_mandates_service.rb +1 -1
  65. data/lib/gocardless_pro/services/webhooks_service.rb +2 -2
  66. data/lib/gocardless_pro/version.rb +1 -1
  67. data/lib/gocardless_pro.rb +3 -0
  68. metadata +4 -2
@@ -86,7 +86,7 @@ module GoCardlessPro
86
86
  # @param options [Hash] parameters as a hash, under a params key.
87
87
  def get(identity, options = {})
88
88
  path = sub_url('/payments/:identity', {
89
- 'identity' => identity,
89
+ 'identity' => identity
90
90
  })
91
91
 
92
92
  options[:retry_failures] = true
@@ -105,7 +105,7 @@ module GoCardlessPro
105
105
  # @param options [Hash] parameters as a hash, under a params key.
106
106
  def update(identity, options = {})
107
107
  path = sub_url('/payments/:identity', {
108
- 'identity' => identity,
108
+ 'identity' => identity
109
109
  })
110
110
 
111
111
  params = options.delete(:params) || {}
@@ -133,7 +133,7 @@ module GoCardlessPro
133
133
  # @param options [Hash] parameters as a hash, under a params key.
134
134
  def cancel(identity, options = {})
135
135
  path = sub_url('/payments/:identity/actions/cancel', {
136
- 'identity' => identity,
136
+ 'identity' => identity
137
137
  })
138
138
 
139
139
  params = options.delete(:params) || {}
@@ -181,7 +181,7 @@ module GoCardlessPro
181
181
  # @param options [Hash] parameters as a hash, under a params key.
182
182
  def retry(identity, options = {})
183
183
  path = sub_url('/payments/:identity/actions/retry', {
184
- 'identity' => identity,
184
+ 'identity' => identity
185
185
  })
186
186
 
187
187
  params = options.delete(:params) || {}
@@ -48,7 +48,7 @@ module GoCardlessPro
48
48
  # @param options [Hash] parameters as a hash, under a params key.
49
49
  def get(identity, options = {})
50
50
  path = sub_url('/payouts/:identity', {
51
- 'identity' => identity,
51
+ 'identity' => identity
52
52
  })
53
53
 
54
54
  options[:retry_failures] = true
@@ -67,7 +67,7 @@ module GoCardlessPro
67
67
  # @param options [Hash] parameters as a hash, under a params key.
68
68
  def update(identity, options = {})
69
69
  path = sub_url('/payouts/:identity', {
70
- 'identity' => identity,
70
+ 'identity' => identity
71
71
  })
72
72
 
73
73
  params = options.delete(:params) || {}
@@ -53,7 +53,7 @@ module GoCardlessPro
53
53
  # @param options [Hash] parameters as a hash, under a params key.
54
54
  def get(identity, options = {})
55
55
  path = sub_url('/redirect_flows/:identity', {
56
- 'identity' => identity,
56
+ 'identity' => identity
57
57
  })
58
58
 
59
59
  options[:retry_failures] = true
@@ -81,7 +81,7 @@ module GoCardlessPro
81
81
  # @param options [Hash] parameters as a hash, under a params key.
82
82
  def complete(identity, options = {})
83
83
  path = sub_url('/redirect_flows/:identity/actions/complete', {
84
- 'identity' => identity,
84
+ 'identity' => identity
85
85
  })
86
86
 
87
87
  params = options.delete(:params) || {}
@@ -97,7 +97,7 @@ module GoCardlessPro
97
97
  # @param options [Hash] parameters as a hash, under a params key.
98
98
  def get(identity, options = {})
99
99
  path = sub_url('/refunds/:identity', {
100
- 'identity' => identity,
100
+ 'identity' => identity
101
101
  })
102
102
 
103
103
  options[:retry_failures] = true
@@ -116,7 +116,7 @@ module GoCardlessPro
116
116
  # @param options [Hash] parameters as a hash, under a params key.
117
117
  def update(identity, options = {})
118
118
  path = sub_url('/refunds/:identity', {
119
- 'identity' => identity,
119
+ 'identity' => identity
120
120
  })
121
121
 
122
122
  params = options.delete(:params) || {}
@@ -140,7 +140,7 @@ module GoCardlessPro
140
140
  # @param options [Hash] parameters as a hash, under a params key.
141
141
  def run(identity, options = {})
142
142
  path = sub_url('/scenario_simulators/:identity/actions/run', {
143
- 'identity' => identity,
143
+ 'identity' => identity
144
144
  })
145
145
 
146
146
  params = options.delete(:params) || {}
@@ -120,7 +120,7 @@ module GoCardlessPro
120
120
  # @param options [Hash] parameters as a hash, under a params key.
121
121
  def get(identity, options = {})
122
122
  path = sub_url('/scheme_identifiers/:identity', {
123
- 'identity' => identity,
123
+ 'identity' => identity
124
124
  })
125
125
 
126
126
  options[:retry_failures] = true
@@ -82,7 +82,7 @@ module GoCardlessPro
82
82
  # @param options [Hash] parameters as a hash, under a params key.
83
83
  def get(identity, options = {})
84
84
  path = sub_url('/subscriptions/:identity', {
85
- 'identity' => identity,
85
+ 'identity' => identity
86
86
  })
87
87
 
88
88
  options[:retry_failures] = true
@@ -124,7 +124,7 @@ module GoCardlessPro
124
124
  # @param options [Hash] parameters as a hash, under a params key.
125
125
  def update(identity, options = {})
126
126
  path = sub_url('/subscriptions/:identity', {
127
- 'identity' => identity,
127
+ 'identity' => identity
128
128
  })
129
129
 
130
130
  params = options.delete(:params) || {}
@@ -186,7 +186,7 @@ module GoCardlessPro
186
186
  # @param options [Hash] parameters as a hash, under a params key.
187
187
  def pause(identity, options = {})
188
188
  path = sub_url('/subscriptions/:identity/actions/pause', {
189
- 'identity' => identity,
189
+ 'identity' => identity
190
190
  })
191
191
 
192
192
  params = options.delete(:params) || {}
@@ -241,7 +241,7 @@ module GoCardlessPro
241
241
  # @param options [Hash] parameters as a hash, under a params key.
242
242
  def resume(identity, options = {})
243
243
  path = sub_url('/subscriptions/:identity/actions/resume', {
244
- 'identity' => identity,
244
+ 'identity' => identity
245
245
  })
246
246
 
247
247
  params = options.delete(:params) || {}
@@ -285,7 +285,7 @@ module GoCardlessPro
285
285
  # @param options [Hash] parameters as a hash, under a params key.
286
286
  def cancel(identity, options = {})
287
287
  path = sub_url('/subscriptions/:identity/actions/cancel', {
288
- 'identity' => identity,
288
+ 'identity' => identity
289
289
  })
290
290
 
291
291
  params = options.delete(:params) || {}
@@ -46,7 +46,7 @@ module GoCardlessPro
46
46
  # @param options [Hash] parameters as a hash, under a params key.
47
47
  def get(identity, options = {})
48
48
  path = sub_url('/tax_rates/:identity', {
49
- 'identity' => identity,
49
+ 'identity' => identity
50
50
  })
51
51
 
52
52
  options[:retry_failures] = true
@@ -19,7 +19,7 @@ module GoCardlessPro
19
19
  # @param options [Hash] parameters as a hash, under a params key.
20
20
  def transferred_mandates(identity, options = {})
21
21
  path = sub_url('/transferred_mandates/:identity', {
22
- 'identity' => identity,
22
+ 'identity' => identity
23
23
  })
24
24
 
25
25
  options[:retry_failures] = false
@@ -46,7 +46,7 @@ module GoCardlessPro
46
46
  # @param options [Hash] parameters as a hash, under a params key.
47
47
  def get(identity, options = {})
48
48
  path = sub_url('/webhooks/:identity', {
49
- 'identity' => identity,
49
+ 'identity' => identity
50
50
  })
51
51
 
52
52
  options[:retry_failures] = true
@@ -65,7 +65,7 @@ module GoCardlessPro
65
65
  # @param options [Hash] parameters as a hash, under a params key.
66
66
  def retry(identity, options = {})
67
67
  path = sub_url('/webhooks/:identity/actions/retry', {
68
- 'identity' => identity,
68
+ 'identity' => identity
69
69
  })
70
70
 
71
71
  params = options.delete(:params) || {}
@@ -3,5 +3,5 @@ end
3
3
 
4
4
  module GoCardlessPro
5
5
  # Current version of the GC gem
6
- VERSION = '2.56.0'
6
+ VERSION = '3.0.0'
7
7
  end
@@ -78,6 +78,9 @@ require_relative 'gocardless_pro/services/customer_notifications_service'
78
78
  require_relative 'gocardless_pro/resources/event'
79
79
  require_relative 'gocardless_pro/services/events_service'
80
80
 
81
+ require_relative 'gocardless_pro/resources/export'
82
+ require_relative 'gocardless_pro/services/exports_service'
83
+
81
84
  require_relative 'gocardless_pro/resources/instalment_schedule'
82
85
  require_relative 'gocardless_pro/services/instalment_schedules_service'
83
86
 
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.56.0
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - GoCardless
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-05-28 00:00:00.000000000 Z
11
+ date: 2024-09-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -125,6 +125,7 @@ files:
125
125
  - lib/gocardless_pro/resources/customer_bank_account.rb
126
126
  - lib/gocardless_pro/resources/customer_notification.rb
127
127
  - lib/gocardless_pro/resources/event.rb
128
+ - lib/gocardless_pro/resources/export.rb
128
129
  - lib/gocardless_pro/resources/instalment_schedule.rb
129
130
  - lib/gocardless_pro/resources/institution.rb
130
131
  - lib/gocardless_pro/resources/logo.rb
@@ -162,6 +163,7 @@ files:
162
163
  - lib/gocardless_pro/services/customer_notifications_service.rb
163
164
  - lib/gocardless_pro/services/customers_service.rb
164
165
  - lib/gocardless_pro/services/events_service.rb
166
+ - lib/gocardless_pro/services/exports_service.rb
165
167
  - lib/gocardless_pro/services/instalment_schedules_service.rb
166
168
  - lib/gocardless_pro/services/institutions_service.rb
167
169
  - lib/gocardless_pro/services/logos_service.rb