gocardless_pro 2.28.0 → 2.29.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.
- checksums.yaml +4 -4
- data/lib/gocardless_pro/client.rb +6 -1
- data/lib/gocardless_pro/resources/bank_authorisation.rb +0 -4
- data/lib/gocardless_pro/resources/block.rb +66 -0
- data/lib/gocardless_pro/resources/event.rb +20 -0
- data/lib/gocardless_pro/resources/institution.rb +2 -0
- data/lib/gocardless_pro/resources/redirect_flow.rb +2 -0
- data/lib/gocardless_pro/services/billing_request_templates_service.rb +3 -3
- data/lib/gocardless_pro/services/billing_requests_service.rb +1 -1
- data/lib/gocardless_pro/services/blocks_service.rb +223 -0
- data/lib/gocardless_pro/services/creditor_bank_accounts_service.rb +1 -1
- data/lib/gocardless_pro/services/creditors_service.rb +1 -1
- data/lib/gocardless_pro/services/currency_exchange_rates_service.rb +1 -1
- data/lib/gocardless_pro/services/customer_bank_accounts_service.rb +1 -1
- data/lib/gocardless_pro/services/customers_service.rb +1 -1
- data/lib/gocardless_pro/services/events_service.rb +1 -1
- data/lib/gocardless_pro/services/instalment_schedules_service.rb +1 -1
- data/lib/gocardless_pro/services/institutions_service.rb +1 -1
- data/lib/gocardless_pro/services/mandate_import_entries_service.rb +1 -1
- data/lib/gocardless_pro/services/mandates_service.rb +1 -1
- data/lib/gocardless_pro/services/payments_service.rb +1 -1
- data/lib/gocardless_pro/services/payout_items_service.rb +1 -1
- data/lib/gocardless_pro/services/payouts_service.rb +1 -1
- data/lib/gocardless_pro/services/refunds_service.rb +1 -1
- data/lib/gocardless_pro/services/subscriptions_service.rb +1 -1
- data/lib/gocardless_pro/services/tax_rates_service.rb +1 -1
- data/lib/gocardless_pro/services/webhooks_service.rb +1 -1
- data/lib/gocardless_pro/version.rb +1 -1
- data/lib/gocardless_pro.rb +3 -0
- data/spec/resources/billing_request_template_spec.rb +1 -1
- data/spec/resources/block_spec.rb +560 -0
- data/spec/resources/institution_spec.rb +5 -0
- data/spec/resources/redirect_flow_spec.rb +9 -0
- data/spec/services/billing_request_templates_service_spec.rb +3 -3
- data/spec/services/blocks_service_spec.rb +823 -0
- data/spec/services/institutions_service_spec.rb +9 -0
- data/spec/services/redirect_flows_service_spec.rb +9 -0
- metadata +9 -3
@@ -17,6 +17,7 @@ describe GoCardlessPro::Services::InstitutionsService do
|
|
17
17
|
{
|
18
18
|
'institutions' => [{
|
19
19
|
|
20
|
+
'country_code' => 'country_code-input',
|
20
21
|
'icon_url' => 'icon_url-input',
|
21
22
|
'id' => 'id-input',
|
22
23
|
'logo_url' => 'logo_url-input',
|
@@ -41,6 +42,8 @@ describe GoCardlessPro::Services::InstitutionsService do
|
|
41
42
|
it 'wraps each item in the resource class' do
|
42
43
|
expect(get_list_response.records.map(&:class).uniq.first).to eq(GoCardlessPro::Resources::Institution)
|
43
44
|
|
45
|
+
expect(get_list_response.records.first.country_code).to eq('country_code-input')
|
46
|
+
|
44
47
|
expect(get_list_response.records.first.icon_url).to eq('icon_url-input')
|
45
48
|
|
46
49
|
expect(get_list_response.records.first.id).to eq('id-input')
|
@@ -88,6 +91,7 @@ describe GoCardlessPro::Services::InstitutionsService do
|
|
88
91
|
body: {
|
89
92
|
'institutions' => [{
|
90
93
|
|
94
|
+
'country_code' => 'country_code-input',
|
91
95
|
'icon_url' => 'icon_url-input',
|
92
96
|
'id' => 'id-input',
|
93
97
|
'logo_url' => 'logo_url-input',
|
@@ -107,6 +111,7 @@ describe GoCardlessPro::Services::InstitutionsService do
|
|
107
111
|
body: {
|
108
112
|
'institutions' => [{
|
109
113
|
|
114
|
+
'country_code' => 'country_code-input',
|
110
115
|
'icon_url' => 'icon_url-input',
|
111
116
|
'id' => 'id-input',
|
112
117
|
'logo_url' => 'logo_url-input',
|
@@ -135,6 +140,7 @@ describe GoCardlessPro::Services::InstitutionsService do
|
|
135
140
|
body: {
|
136
141
|
'institutions' => [{
|
137
142
|
|
143
|
+
'country_code' => 'country_code-input',
|
138
144
|
'icon_url' => 'icon_url-input',
|
139
145
|
'id' => 'id-input',
|
140
146
|
'logo_url' => 'logo_url-input',
|
@@ -154,6 +160,7 @@ describe GoCardlessPro::Services::InstitutionsService do
|
|
154
160
|
body: {
|
155
161
|
'institutions' => [{
|
156
162
|
|
163
|
+
'country_code' => 'country_code-input',
|
157
164
|
'icon_url' => 'icon_url-input',
|
158
165
|
'id' => 'id-input',
|
159
166
|
'logo_url' => 'logo_url-input',
|
@@ -178,6 +185,7 @@ describe GoCardlessPro::Services::InstitutionsService do
|
|
178
185
|
body: {
|
179
186
|
'institutions' => [{
|
180
187
|
|
188
|
+
'country_code' => 'country_code-input',
|
181
189
|
'icon_url' => 'icon_url-input',
|
182
190
|
'id' => 'id-input',
|
183
191
|
'logo_url' => 'logo_url-input',
|
@@ -200,6 +208,7 @@ describe GoCardlessPro::Services::InstitutionsService do
|
|
200
208
|
body: {
|
201
209
|
'institutions' => [{
|
202
210
|
|
211
|
+
'country_code' => 'country_code-input',
|
203
212
|
'icon_url' => 'icon_url-input',
|
204
213
|
'id' => 'id-input',
|
205
214
|
'logo_url' => 'logo_url-input',
|
@@ -20,6 +20,7 @@ describe GoCardlessPro::Services::RedirectFlowsService do
|
|
20
20
|
'description' => 'description-input',
|
21
21
|
'id' => 'id-input',
|
22
22
|
'links' => 'links-input',
|
23
|
+
'mandate_reference' => 'mandate_reference-input',
|
23
24
|
'metadata' => 'metadata-input',
|
24
25
|
'redirect_url' => 'redirect_url-input',
|
25
26
|
'scheme' => 'scheme-input',
|
@@ -39,6 +40,7 @@ describe GoCardlessPro::Services::RedirectFlowsService do
|
|
39
40
|
'description' => 'description-input',
|
40
41
|
'id' => 'id-input',
|
41
42
|
'links' => 'links-input',
|
43
|
+
'mandate_reference' => 'mandate_reference-input',
|
42
44
|
'metadata' => 'metadata-input',
|
43
45
|
'redirect_url' => 'redirect_url-input',
|
44
46
|
'scheme' => 'scheme-input',
|
@@ -58,6 +60,7 @@ describe GoCardlessPro::Services::RedirectFlowsService do
|
|
58
60
|
'description' => 'description-input',
|
59
61
|
'id' => 'id-input',
|
60
62
|
'links' => 'links-input',
|
63
|
+
'mandate_reference' => 'mandate_reference-input',
|
61
64
|
'metadata' => 'metadata-input',
|
62
65
|
'redirect_url' => 'redirect_url-input',
|
63
66
|
'scheme' => 'scheme-input',
|
@@ -133,6 +136,7 @@ describe GoCardlessPro::Services::RedirectFlowsService do
|
|
133
136
|
'description' => 'description-input',
|
134
137
|
'id' => 'id-input',
|
135
138
|
'links' => 'links-input',
|
139
|
+
'mandate_reference' => 'mandate_reference-input',
|
136
140
|
'metadata' => 'metadata-input',
|
137
141
|
'redirect_url' => 'redirect_url-input',
|
138
142
|
'scheme' => 'scheme-input',
|
@@ -175,6 +179,7 @@ describe GoCardlessPro::Services::RedirectFlowsService do
|
|
175
179
|
'description' => 'description-input',
|
176
180
|
'id' => 'id-input',
|
177
181
|
'links' => 'links-input',
|
182
|
+
'mandate_reference' => 'mandate_reference-input',
|
178
183
|
'metadata' => 'metadata-input',
|
179
184
|
'redirect_url' => 'redirect_url-input',
|
180
185
|
'scheme' => 'scheme-input',
|
@@ -229,6 +234,7 @@ describe GoCardlessPro::Services::RedirectFlowsService do
|
|
229
234
|
'description' => 'description-input',
|
230
235
|
'id' => 'id-input',
|
231
236
|
'links' => 'links-input',
|
237
|
+
'mandate_reference' => 'mandate_reference-input',
|
232
238
|
'metadata' => 'metadata-input',
|
233
239
|
'redirect_url' => 'redirect_url-input',
|
234
240
|
'scheme' => 'scheme-input',
|
@@ -264,6 +270,7 @@ describe GoCardlessPro::Services::RedirectFlowsService do
|
|
264
270
|
'description' => 'description-input',
|
265
271
|
'id' => 'id-input',
|
266
272
|
'links' => 'links-input',
|
273
|
+
'mandate_reference' => 'mandate_reference-input',
|
267
274
|
'metadata' => 'metadata-input',
|
268
275
|
'redirect_url' => 'redirect_url-input',
|
269
276
|
'scheme' => 'scheme-input',
|
@@ -375,6 +382,7 @@ describe GoCardlessPro::Services::RedirectFlowsService do
|
|
375
382
|
'description' => 'description-input',
|
376
383
|
'id' => 'id-input',
|
377
384
|
'links' => 'links-input',
|
385
|
+
'mandate_reference' => 'mandate_reference-input',
|
378
386
|
'metadata' => 'metadata-input',
|
379
387
|
'redirect_url' => 'redirect_url-input',
|
380
388
|
'scheme' => 'scheme-input',
|
@@ -426,6 +434,7 @@ describe GoCardlessPro::Services::RedirectFlowsService do
|
|
426
434
|
'description' => 'description-input',
|
427
435
|
'id' => 'id-input',
|
428
436
|
'links' => 'links-input',
|
437
|
+
'mandate_reference' => 'mandate_reference-input',
|
429
438
|
'metadata' => 'metadata-input',
|
430
439
|
'redirect_url' => 'redirect_url-input',
|
431
440
|
'scheme' => 'scheme-input',
|
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.
|
4
|
+
version: 2.29.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GoCardless
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-11-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -167,6 +167,7 @@ files:
|
|
167
167
|
- lib/gocardless_pro/resources/billing_request.rb
|
168
168
|
- lib/gocardless_pro/resources/billing_request_flow.rb
|
169
169
|
- lib/gocardless_pro/resources/billing_request_template.rb
|
170
|
+
- lib/gocardless_pro/resources/block.rb
|
170
171
|
- lib/gocardless_pro/resources/creditor.rb
|
171
172
|
- lib/gocardless_pro/resources/creditor_bank_account.rb
|
172
173
|
- lib/gocardless_pro/resources/currency_exchange_rate.rb
|
@@ -197,6 +198,7 @@ files:
|
|
197
198
|
- lib/gocardless_pro/services/billing_request_flows_service.rb
|
198
199
|
- lib/gocardless_pro/services/billing_request_templates_service.rb
|
199
200
|
- lib/gocardless_pro/services/billing_requests_service.rb
|
201
|
+
- lib/gocardless_pro/services/blocks_service.rb
|
200
202
|
- lib/gocardless_pro/services/creditor_bank_accounts_service.rb
|
201
203
|
- lib/gocardless_pro/services/creditors_service.rb
|
202
204
|
- lib/gocardless_pro/services/currency_exchange_rates_service.rb
|
@@ -232,6 +234,7 @@ files:
|
|
232
234
|
- spec/resources/billing_request_flow_spec.rb
|
233
235
|
- spec/resources/billing_request_spec.rb
|
234
236
|
- spec/resources/billing_request_template_spec.rb
|
237
|
+
- spec/resources/block_spec.rb
|
235
238
|
- spec/resources/creditor_bank_account_spec.rb
|
236
239
|
- spec/resources/creditor_spec.rb
|
237
240
|
- spec/resources/currency_exchange_rate_spec.rb
|
@@ -261,6 +264,7 @@ files:
|
|
261
264
|
- spec/services/billing_request_flows_service_spec.rb
|
262
265
|
- spec/services/billing_request_templates_service_spec.rb
|
263
266
|
- spec/services/billing_requests_service_spec.rb
|
267
|
+
- spec/services/blocks_service_spec.rb
|
264
268
|
- spec/services/creditor_bank_accounts_service_spec.rb
|
265
269
|
- spec/services/creditors_service_spec.rb
|
266
270
|
- spec/services/currency_exchange_rates_service_spec.rb
|
@@ -305,7 +309,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
305
309
|
- !ruby/object:Gem::Version
|
306
310
|
version: '0'
|
307
311
|
requirements: []
|
308
|
-
rubygems_version: 3.2.
|
312
|
+
rubygems_version: 3.2.22
|
309
313
|
signing_key:
|
310
314
|
specification_version: 4
|
311
315
|
summary: A gem for calling the GoCardless Pro API
|
@@ -320,6 +324,7 @@ test_files:
|
|
320
324
|
- spec/resources/billing_request_flow_spec.rb
|
321
325
|
- spec/resources/billing_request_spec.rb
|
322
326
|
- spec/resources/billing_request_template_spec.rb
|
327
|
+
- spec/resources/block_spec.rb
|
323
328
|
- spec/resources/creditor_bank_account_spec.rb
|
324
329
|
- spec/resources/creditor_spec.rb
|
325
330
|
- spec/resources/currency_exchange_rate_spec.rb
|
@@ -349,6 +354,7 @@ test_files:
|
|
349
354
|
- spec/services/billing_request_flows_service_spec.rb
|
350
355
|
- spec/services/billing_request_templates_service_spec.rb
|
351
356
|
- spec/services/billing_requests_service_spec.rb
|
357
|
+
- spec/services/blocks_service_spec.rb
|
352
358
|
- spec/services/creditor_bank_accounts_service_spec.rb
|
353
359
|
- spec/services/creditors_service_spec.rb
|
354
360
|
- spec/services/currency_exchange_rates_service_spec.rb
|