gocardless_pro 2.38.0 → 2.39.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 990240f75515ea3d045a8f6c2441b9a059f77c394523b65345e346c0d904f9eb
|
4
|
+
data.tar.gz: 2a4ec854432020da88f778b578596cec978d4c41d8df5aa2983c029ccd4becc6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f99764d38cc0c1f4119098d20c834b66fb77af86d2adf26218d2319e1d9ff6852a64054d3936714599783bf97e8f05381065f23de7c90383e2b8e5e2ac5bb364
|
7
|
+
data.tar.gz: d2b6954f67518e0c26bf8ed2a219992400d58bf4959bddcf52517c3b31ccd5cbf4bd883a79f8e7b0524a3806f80b1b136300c02dd7ff99bcd9e0af14eed19571
|
@@ -198,7 +198,7 @@ module GoCardlessPro
|
|
198
198
|
'User-Agent' => user_agent.to_s,
|
199
199
|
'Content-Type' => 'application/json',
|
200
200
|
'GoCardless-Client-Library' => 'gocardless-pro-ruby',
|
201
|
-
'GoCardless-Client-Version' => '2.
|
201
|
+
'GoCardless-Client-Version' => '2.39.0',
|
202
202
|
},
|
203
203
|
}
|
204
204
|
end
|
@@ -18,6 +18,7 @@ module GoCardlessPro
|
|
18
18
|
# GoCardless will notify you via a [webhook](#appendix-webhooks) whenever
|
19
19
|
# the status of a mandate changes.
|
20
20
|
class Mandate
|
21
|
+
attr_reader :authorisation_source
|
21
22
|
attr_reader :consent_parameters
|
22
23
|
attr_reader :created_at
|
23
24
|
attr_reader :id
|
@@ -33,6 +34,7 @@ module GoCardlessPro
|
|
33
34
|
def initialize(object, response = nil)
|
34
35
|
@object = object
|
35
36
|
|
37
|
+
@authorisation_source = object['authorisation_source']
|
36
38
|
@consent_parameters = object['consent_parameters']
|
37
39
|
@created_at = object['created_at']
|
38
40
|
@id = object['id']
|
@@ -15,6 +15,7 @@ describe GoCardlessPro::Resources::Mandate do
|
|
15
15
|
let(:new_resource) do
|
16
16
|
{
|
17
17
|
|
18
|
+
'authorisation_source' => 'authorisation_source-input',
|
18
19
|
'consent_parameters' => 'consent_parameters-input',
|
19
20
|
'created_at' => 'created_at-input',
|
20
21
|
'id' => 'id-input',
|
@@ -34,6 +35,7 @@ describe GoCardlessPro::Resources::Mandate do
|
|
34
35
|
body: {
|
35
36
|
'mandates' => {
|
36
37
|
|
38
|
+
'authorisation_source' => 'authorisation_source-input',
|
37
39
|
'consent_parameters' => 'consent_parameters-input',
|
38
40
|
'created_at' => 'created_at-input',
|
39
41
|
'id' => 'id-input',
|
@@ -53,6 +55,7 @@ describe GoCardlessPro::Resources::Mandate do
|
|
53
55
|
|
54
56
|
{
|
55
57
|
|
58
|
+
'authorisation_source' => 'authorisation_source-input',
|
56
59
|
'consent_parameters' => 'consent_parameters-input',
|
57
60
|
'created_at' => 'created_at-input',
|
58
61
|
'id' => 'id-input',
|
@@ -105,6 +108,7 @@ describe GoCardlessPro::Resources::Mandate do
|
|
105
108
|
let(:new_resource) do
|
106
109
|
{
|
107
110
|
|
111
|
+
'authorisation_source' => 'authorisation_source-input',
|
108
112
|
'consent_parameters' => 'consent_parameters-input',
|
109
113
|
'created_at' => 'created_at-input',
|
110
114
|
'id' => 'id-input',
|
@@ -147,6 +151,7 @@ describe GoCardlessPro::Resources::Mandate do
|
|
147
151
|
body: {
|
148
152
|
'mandates' => {
|
149
153
|
|
154
|
+
'authorisation_source' => 'authorisation_source-input',
|
150
155
|
'consent_parameters' => 'consent_parameters-input',
|
151
156
|
'created_at' => 'created_at-input',
|
152
157
|
'id' => 'id-input',
|
@@ -180,6 +185,7 @@ describe GoCardlessPro::Resources::Mandate do
|
|
180
185
|
body: {
|
181
186
|
'mandates' => [{
|
182
187
|
|
188
|
+
'authorisation_source' => 'authorisation_source-input',
|
183
189
|
'consent_parameters' => 'consent_parameters-input',
|
184
190
|
'created_at' => 'created_at-input',
|
185
191
|
'id' => 'id-input',
|
@@ -205,6 +211,8 @@ describe GoCardlessPro::Resources::Mandate do
|
|
205
211
|
it 'wraps each item in the resource class' do
|
206
212
|
expect(get_list_response.records.map(&:class).uniq.first).to eq(GoCardlessPro::Resources::Mandate)
|
207
213
|
|
214
|
+
expect(get_list_response.records.first.authorisation_source).to eq('authorisation_source-input')
|
215
|
+
|
208
216
|
expect(get_list_response.records.first.consent_parameters).to eq('consent_parameters-input')
|
209
217
|
|
210
218
|
expect(get_list_response.records.first.created_at).to eq('created_at-input')
|
@@ -239,6 +247,7 @@ describe GoCardlessPro::Resources::Mandate do
|
|
239
247
|
body: {
|
240
248
|
'mandates' => [{
|
241
249
|
|
250
|
+
'authorisation_source' => 'authorisation_source-input',
|
242
251
|
'consent_parameters' => 'consent_parameters-input',
|
243
252
|
'created_at' => 'created_at-input',
|
244
253
|
'id' => 'id-input',
|
@@ -264,6 +273,7 @@ describe GoCardlessPro::Resources::Mandate do
|
|
264
273
|
body: {
|
265
274
|
'mandates' => [{
|
266
275
|
|
276
|
+
'authorisation_source' => 'authorisation_source-input',
|
267
277
|
'consent_parameters' => 'consent_parameters-input',
|
268
278
|
'created_at' => 'created_at-input',
|
269
279
|
'id' => 'id-input',
|
@@ -305,6 +315,7 @@ describe GoCardlessPro::Resources::Mandate do
|
|
305
315
|
body: {
|
306
316
|
'mandates' => {
|
307
317
|
|
318
|
+
'authorisation_source' => 'authorisation_source-input',
|
308
319
|
'consent_parameters' => 'consent_parameters-input',
|
309
320
|
'created_at' => 'created_at-input',
|
310
321
|
'id' => 'id-input',
|
@@ -340,6 +351,7 @@ describe GoCardlessPro::Resources::Mandate do
|
|
340
351
|
body: {
|
341
352
|
'mandates' => {
|
342
353
|
|
354
|
+
'authorisation_source' => 'authorisation_source-input',
|
343
355
|
'consent_parameters' => 'consent_parameters-input',
|
344
356
|
'created_at' => 'created_at-input',
|
345
357
|
'id' => 'id-input',
|
@@ -397,6 +409,7 @@ describe GoCardlessPro::Resources::Mandate do
|
|
397
409
|
body: {
|
398
410
|
'mandates' => {
|
399
411
|
|
412
|
+
'authorisation_source' => 'authorisation_source-input',
|
400
413
|
'consent_parameters' => 'consent_parameters-input',
|
401
414
|
'created_at' => 'created_at-input',
|
402
415
|
'id' => 'id-input',
|
@@ -433,6 +446,7 @@ describe GoCardlessPro::Resources::Mandate do
|
|
433
446
|
body: {
|
434
447
|
'mandates' => {
|
435
448
|
|
449
|
+
'authorisation_source' => 'authorisation_source-input',
|
436
450
|
'consent_parameters' => 'consent_parameters-input',
|
437
451
|
'created_at' => 'created_at-input',
|
438
452
|
'id' => 'id-input',
|
@@ -474,6 +488,7 @@ describe GoCardlessPro::Resources::Mandate do
|
|
474
488
|
body: {
|
475
489
|
'mandates' => {
|
476
490
|
|
491
|
+
'authorisation_source' => 'authorisation_source-input',
|
477
492
|
'consent_parameters' => 'consent_parameters-input',
|
478
493
|
'created_at' => 'created_at-input',
|
479
494
|
'id' => 'id-input',
|
@@ -505,6 +520,7 @@ describe GoCardlessPro::Resources::Mandate do
|
|
505
520
|
body: {
|
506
521
|
'mandates' => {
|
507
522
|
|
523
|
+
'authorisation_source' => 'authorisation_source-input',
|
508
524
|
'consent_parameters' => 'consent_parameters-input',
|
509
525
|
'created_at' => 'created_at-input',
|
510
526
|
'id' => 'id-input',
|
@@ -546,6 +562,7 @@ describe GoCardlessPro::Resources::Mandate do
|
|
546
562
|
body: {
|
547
563
|
'mandates' => {
|
548
564
|
|
565
|
+
'authorisation_source' => 'authorisation_source-input',
|
549
566
|
'consent_parameters' => 'consent_parameters-input',
|
550
567
|
'created_at' => 'created_at-input',
|
551
568
|
'id' => 'id-input',
|
@@ -15,6 +15,7 @@ describe GoCardlessPro::Services::MandatesService do
|
|
15
15
|
let(:new_resource) do
|
16
16
|
{
|
17
17
|
|
18
|
+
'authorisation_source' => 'authorisation_source-input',
|
18
19
|
'consent_parameters' => 'consent_parameters-input',
|
19
20
|
'created_at' => 'created_at-input',
|
20
21
|
'id' => 'id-input',
|
@@ -34,6 +35,7 @@ describe GoCardlessPro::Services::MandatesService do
|
|
34
35
|
body: {
|
35
36
|
'mandates' => {
|
36
37
|
|
38
|
+
'authorisation_source' => 'authorisation_source-input',
|
37
39
|
'consent_parameters' => 'consent_parameters-input',
|
38
40
|
'created_at' => 'created_at-input',
|
39
41
|
'id' => 'id-input',
|
@@ -53,6 +55,7 @@ describe GoCardlessPro::Services::MandatesService do
|
|
53
55
|
|
54
56
|
{
|
55
57
|
|
58
|
+
'authorisation_source' => 'authorisation_source-input',
|
56
59
|
'consent_parameters' => 'consent_parameters-input',
|
57
60
|
'created_at' => 'created_at-input',
|
58
61
|
'id' => 'id-input',
|
@@ -128,6 +131,7 @@ describe GoCardlessPro::Services::MandatesService do
|
|
128
131
|
let(:new_resource) do
|
129
132
|
{
|
130
133
|
|
134
|
+
'authorisation_source' => 'authorisation_source-input',
|
131
135
|
'consent_parameters' => 'consent_parameters-input',
|
132
136
|
'created_at' => 'created_at-input',
|
133
137
|
'id' => 'id-input',
|
@@ -170,6 +174,7 @@ describe GoCardlessPro::Services::MandatesService do
|
|
170
174
|
body: {
|
171
175
|
'mandates' => {
|
172
176
|
|
177
|
+
'authorisation_source' => 'authorisation_source-input',
|
173
178
|
'consent_parameters' => 'consent_parameters-input',
|
174
179
|
'created_at' => 'created_at-input',
|
175
180
|
'id' => 'id-input',
|
@@ -218,6 +223,7 @@ describe GoCardlessPro::Services::MandatesService do
|
|
218
223
|
{
|
219
224
|
'mandates' => [{
|
220
225
|
|
226
|
+
'authorisation_source' => 'authorisation_source-input',
|
221
227
|
'consent_parameters' => 'consent_parameters-input',
|
222
228
|
'created_at' => 'created_at-input',
|
223
229
|
'id' => 'id-input',
|
@@ -248,6 +254,8 @@ describe GoCardlessPro::Services::MandatesService do
|
|
248
254
|
it 'wraps each item in the resource class' do
|
249
255
|
expect(get_list_response.records.map(&:class).uniq.first).to eq(GoCardlessPro::Resources::Mandate)
|
250
256
|
|
257
|
+
expect(get_list_response.records.first.authorisation_source).to eq('authorisation_source-input')
|
258
|
+
|
251
259
|
expect(get_list_response.records.first.consent_parameters).to eq('consent_parameters-input')
|
252
260
|
|
253
261
|
expect(get_list_response.records.first.created_at).to eq('created_at-input')
|
@@ -305,6 +313,7 @@ describe GoCardlessPro::Services::MandatesService do
|
|
305
313
|
body: {
|
306
314
|
'mandates' => [{
|
307
315
|
|
316
|
+
'authorisation_source' => 'authorisation_source-input',
|
308
317
|
'consent_parameters' => 'consent_parameters-input',
|
309
318
|
'created_at' => 'created_at-input',
|
310
319
|
'id' => 'id-input',
|
@@ -330,6 +339,7 @@ describe GoCardlessPro::Services::MandatesService do
|
|
330
339
|
body: {
|
331
340
|
'mandates' => [{
|
332
341
|
|
342
|
+
'authorisation_source' => 'authorisation_source-input',
|
333
343
|
'consent_parameters' => 'consent_parameters-input',
|
334
344
|
'created_at' => 'created_at-input',
|
335
345
|
'id' => 'id-input',
|
@@ -364,6 +374,7 @@ describe GoCardlessPro::Services::MandatesService do
|
|
364
374
|
body: {
|
365
375
|
'mandates' => [{
|
366
376
|
|
377
|
+
'authorisation_source' => 'authorisation_source-input',
|
367
378
|
'consent_parameters' => 'consent_parameters-input',
|
368
379
|
'created_at' => 'created_at-input',
|
369
380
|
'id' => 'id-input',
|
@@ -389,6 +400,7 @@ describe GoCardlessPro::Services::MandatesService do
|
|
389
400
|
body: {
|
390
401
|
'mandates' => [{
|
391
402
|
|
403
|
+
'authorisation_source' => 'authorisation_source-input',
|
392
404
|
'consent_parameters' => 'consent_parameters-input',
|
393
405
|
'created_at' => 'created_at-input',
|
394
406
|
'id' => 'id-input',
|
@@ -419,6 +431,7 @@ describe GoCardlessPro::Services::MandatesService do
|
|
419
431
|
body: {
|
420
432
|
'mandates' => [{
|
421
433
|
|
434
|
+
'authorisation_source' => 'authorisation_source-input',
|
422
435
|
'consent_parameters' => 'consent_parameters-input',
|
423
436
|
'created_at' => 'created_at-input',
|
424
437
|
'id' => 'id-input',
|
@@ -447,6 +460,7 @@ describe GoCardlessPro::Services::MandatesService do
|
|
447
460
|
body: {
|
448
461
|
'mandates' => [{
|
449
462
|
|
463
|
+
'authorisation_source' => 'authorisation_source-input',
|
450
464
|
'consent_parameters' => 'consent_parameters-input',
|
451
465
|
'created_at' => 'created_at-input',
|
452
466
|
'id' => 'id-input',
|
@@ -488,6 +502,7 @@ describe GoCardlessPro::Services::MandatesService do
|
|
488
502
|
body: {
|
489
503
|
'mandates' => {
|
490
504
|
|
505
|
+
'authorisation_source' => 'authorisation_source-input',
|
491
506
|
'consent_parameters' => 'consent_parameters-input',
|
492
507
|
'created_at' => 'created_at-input',
|
493
508
|
'id' => 'id-input',
|
@@ -523,6 +538,7 @@ describe GoCardlessPro::Services::MandatesService do
|
|
523
538
|
body: {
|
524
539
|
'mandates' => {
|
525
540
|
|
541
|
+
'authorisation_source' => 'authorisation_source-input',
|
526
542
|
'consent_parameters' => 'consent_parameters-input',
|
527
543
|
'created_at' => 'created_at-input',
|
528
544
|
'id' => 'id-input',
|
@@ -635,6 +651,7 @@ describe GoCardlessPro::Services::MandatesService do
|
|
635
651
|
body: {
|
636
652
|
'mandates' => {
|
637
653
|
|
654
|
+
'authorisation_source' => 'authorisation_source-input',
|
638
655
|
'consent_parameters' => 'consent_parameters-input',
|
639
656
|
'created_at' => 'created_at-input',
|
640
657
|
'id' => 'id-input',
|
@@ -696,6 +713,7 @@ describe GoCardlessPro::Services::MandatesService do
|
|
696
713
|
body: {
|
697
714
|
'mandates' => {
|
698
715
|
|
716
|
+
'authorisation_source' => 'authorisation_source-input',
|
699
717
|
'consent_parameters' => 'consent_parameters-input',
|
700
718
|
'created_at' => 'created_at-input',
|
701
719
|
'id' => 'id-input',
|
@@ -748,6 +766,7 @@ describe GoCardlessPro::Services::MandatesService do
|
|
748
766
|
body: {
|
749
767
|
'mandates' => {
|
750
768
|
|
769
|
+
'authorisation_source' => 'authorisation_source-input',
|
751
770
|
'consent_parameters' => 'consent_parameters-input',
|
752
771
|
'created_at' => 'created_at-input',
|
753
772
|
'id' => 'id-input',
|
@@ -779,6 +798,7 @@ describe GoCardlessPro::Services::MandatesService do
|
|
779
798
|
body: {
|
780
799
|
'mandates' => {
|
781
800
|
|
801
|
+
'authorisation_source' => 'authorisation_source-input',
|
782
802
|
'consent_parameters' => 'consent_parameters-input',
|
783
803
|
'created_at' => 'created_at-input',
|
784
804
|
'id' => 'id-input',
|
@@ -831,6 +851,7 @@ describe GoCardlessPro::Services::MandatesService do
|
|
831
851
|
body: {
|
832
852
|
'mandates' => {
|
833
853
|
|
854
|
+
'authorisation_source' => 'authorisation_source-input',
|
834
855
|
'consent_parameters' => 'consent_parameters-input',
|
835
856
|
'created_at' => 'created_at-input',
|
836
857
|
'id' => 'id-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.39.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GoCardless
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-12-
|
11
|
+
date: 2022-12-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|