gocardless_pro 2.4.0 → 2.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gocardless_pro/client.rb +1 -1
- data/lib/gocardless_pro/resources/creditor.rb +2 -0
- data/lib/gocardless_pro/resources/payout_item.rb +1 -1
- data/lib/gocardless_pro/services/subscriptions_service.rb +2 -2
- data/lib/gocardless_pro/version.rb +1 -1
- data/spec/resources/creditor_spec.rb +13 -0
- data/spec/services/creditors_service_spec.rb +17 -0
- metadata +20 -20
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7aa95af21475c7dee21f9c792ea013ca06d54262
|
4
|
+
data.tar.gz: 5be885bec0fb838bfd2963c4a61635c72da2e22d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1d0085b632e2a3b3221ac5d6db81b6ee889111dc3a4473e3c0ac180b63f574994f40c411dc6b72a60bc4653906f3759bdc5334d32373cc8a8f7d5ff0fb29deba
|
7
|
+
data.tar.gz: c5bbdeb264f607b19d1c2db5473ac7237e5650c04a81b96e9b8f952ea7d37bb4c84677e2edf5d59bfbf3d041cbb05787b121357caed66c48522f522c6b1e3fdc
|
@@ -123,7 +123,7 @@ module GoCardlessPro
|
|
123
123
|
'User-Agent' => user_agent.to_s,
|
124
124
|
'Content-Type' => 'application/json',
|
125
125
|
'GoCardless-Client-Library' => 'gocardless-pro-ruby',
|
126
|
-
'GoCardless-Client-Version' => '2.
|
126
|
+
'GoCardless-Client-Version' => '2.5.0',
|
127
127
|
},
|
128
128
|
}
|
129
129
|
end
|
@@ -24,6 +24,7 @@ module GoCardlessPro
|
|
24
24
|
attr_reader :address_line1
|
25
25
|
attr_reader :address_line2
|
26
26
|
attr_reader :address_line3
|
27
|
+
attr_reader :can_create_refunds
|
27
28
|
attr_reader :city
|
28
29
|
attr_reader :country_code
|
29
30
|
attr_reader :created_at
|
@@ -43,6 +44,7 @@ module GoCardlessPro
|
|
43
44
|
@address_line1 = object['address_line1']
|
44
45
|
@address_line2 = object['address_line2']
|
45
46
|
@address_line3 = object['address_line3']
|
47
|
+
@can_create_refunds = object['can_create_refunds']
|
46
48
|
@city = object['city']
|
47
49
|
@country_code = object['country_code']
|
48
50
|
@created_at = object['created_at']
|
@@ -34,7 +34,7 @@ module GoCardlessPro
|
|
34
34
|
# beta, and is
|
35
35
|
# subject to <a href="#overview-backwards-compatibility">backwards
|
36
36
|
# incompatible changes</a>
|
37
|
-
# with 30 days notice. Before making any breaking changes, we will contact
|
37
|
+
# with 30 days' notice. Before making any breaking changes, we will contact
|
38
38
|
# all integrators
|
39
39
|
# who have used the API.</p>
|
40
40
|
#
|
@@ -99,8 +99,8 @@ module GoCardlessPro
|
|
99
99
|
# - `mandate_payments_require_approval` if the amount is being changed and the
|
100
100
|
# mandate requires approval.
|
101
101
|
#
|
102
|
-
# - `
|
103
|
-
#
|
102
|
+
# - `number_of_subscription_amendments_exceeded` error if the subscription
|
103
|
+
# amount has already been changed 10 times.
|
104
104
|
#
|
105
105
|
# Example URL: /subscriptions/:identity
|
106
106
|
#
|
@@ -18,6 +18,7 @@ describe GoCardlessPro::Resources::Creditor do
|
|
18
18
|
'address_line1' => 'address_line1-input',
|
19
19
|
'address_line2' => 'address_line2-input',
|
20
20
|
'address_line3' => 'address_line3-input',
|
21
|
+
'can_create_refunds' => 'can_create_refunds-input',
|
21
22
|
'city' => 'city-input',
|
22
23
|
'country_code' => 'country_code-input',
|
23
24
|
'created_at' => 'created_at-input',
|
@@ -41,6 +42,7 @@ describe GoCardlessPro::Resources::Creditor do
|
|
41
42
|
'address_line1' => 'address_line1-input',
|
42
43
|
'address_line2' => 'address_line2-input',
|
43
44
|
'address_line3' => 'address_line3-input',
|
45
|
+
'can_create_refunds' => 'can_create_refunds-input',
|
44
46
|
'city' => 'city-input',
|
45
47
|
'country_code' => 'country_code-input',
|
46
48
|
'created_at' => 'created_at-input',
|
@@ -64,6 +66,7 @@ describe GoCardlessPro::Resources::Creditor do
|
|
64
66
|
'address_line1' => 'address_line1-input',
|
65
67
|
'address_line2' => 'address_line2-input',
|
66
68
|
'address_line3' => 'address_line3-input',
|
69
|
+
'can_create_refunds' => 'can_create_refunds-input',
|
67
70
|
'city' => 'city-input',
|
68
71
|
'country_code' => 'country_code-input',
|
69
72
|
'created_at' => 'created_at-input',
|
@@ -120,6 +123,7 @@ describe GoCardlessPro::Resources::Creditor do
|
|
120
123
|
'address_line1' => 'address_line1-input',
|
121
124
|
'address_line2' => 'address_line2-input',
|
122
125
|
'address_line3' => 'address_line3-input',
|
126
|
+
'can_create_refunds' => 'can_create_refunds-input',
|
123
127
|
'city' => 'city-input',
|
124
128
|
'country_code' => 'country_code-input',
|
125
129
|
'created_at' => 'created_at-input',
|
@@ -166,6 +170,7 @@ describe GoCardlessPro::Resources::Creditor do
|
|
166
170
|
'address_line1' => 'address_line1-input',
|
167
171
|
'address_line2' => 'address_line2-input',
|
168
172
|
'address_line3' => 'address_line3-input',
|
173
|
+
'can_create_refunds' => 'can_create_refunds-input',
|
169
174
|
'city' => 'city-input',
|
170
175
|
'country_code' => 'country_code-input',
|
171
176
|
'created_at' => 'created_at-input',
|
@@ -203,6 +208,7 @@ describe GoCardlessPro::Resources::Creditor do
|
|
203
208
|
'address_line1' => 'address_line1-input',
|
204
209
|
'address_line2' => 'address_line2-input',
|
205
210
|
'address_line3' => 'address_line3-input',
|
211
|
+
'can_create_refunds' => 'can_create_refunds-input',
|
206
212
|
'city' => 'city-input',
|
207
213
|
'country_code' => 'country_code-input',
|
208
214
|
'created_at' => 'created_at-input',
|
@@ -235,6 +241,8 @@ describe GoCardlessPro::Resources::Creditor do
|
|
235
241
|
|
236
242
|
expect(get_list_response.records.first.address_line3).to eq('address_line3-input')
|
237
243
|
|
244
|
+
expect(get_list_response.records.first.can_create_refunds).to eq('can_create_refunds-input')
|
245
|
+
|
238
246
|
expect(get_list_response.records.first.city).to eq('city-input')
|
239
247
|
|
240
248
|
expect(get_list_response.records.first.country_code).to eq('country_code-input')
|
@@ -274,6 +282,7 @@ describe GoCardlessPro::Resources::Creditor do
|
|
274
282
|
'address_line1' => 'address_line1-input',
|
275
283
|
'address_line2' => 'address_line2-input',
|
276
284
|
'address_line3' => 'address_line3-input',
|
285
|
+
'can_create_refunds' => 'can_create_refunds-input',
|
277
286
|
'city' => 'city-input',
|
278
287
|
'country_code' => 'country_code-input',
|
279
288
|
'created_at' => 'created_at-input',
|
@@ -303,6 +312,7 @@ describe GoCardlessPro::Resources::Creditor do
|
|
303
312
|
'address_line1' => 'address_line1-input',
|
304
313
|
'address_line2' => 'address_line2-input',
|
305
314
|
'address_line3' => 'address_line3-input',
|
315
|
+
'can_create_refunds' => 'can_create_refunds-input',
|
306
316
|
'city' => 'city-input',
|
307
317
|
'country_code' => 'country_code-input',
|
308
318
|
'created_at' => 'created_at-input',
|
@@ -348,6 +358,7 @@ describe GoCardlessPro::Resources::Creditor do
|
|
348
358
|
'address_line1' => 'address_line1-input',
|
349
359
|
'address_line2' => 'address_line2-input',
|
350
360
|
'address_line3' => 'address_line3-input',
|
361
|
+
'can_create_refunds' => 'can_create_refunds-input',
|
351
362
|
'city' => 'city-input',
|
352
363
|
'country_code' => 'country_code-input',
|
353
364
|
'created_at' => 'created_at-input',
|
@@ -387,6 +398,7 @@ describe GoCardlessPro::Resources::Creditor do
|
|
387
398
|
'address_line1' => 'address_line1-input',
|
388
399
|
'address_line2' => 'address_line2-input',
|
389
400
|
'address_line3' => 'address_line3-input',
|
401
|
+
'can_create_refunds' => 'can_create_refunds-input',
|
390
402
|
'city' => 'city-input',
|
391
403
|
'country_code' => 'country_code-input',
|
392
404
|
'created_at' => 'created_at-input',
|
@@ -448,6 +460,7 @@ describe GoCardlessPro::Resources::Creditor do
|
|
448
460
|
'address_line1' => 'address_line1-input',
|
449
461
|
'address_line2' => 'address_line2-input',
|
450
462
|
'address_line3' => 'address_line3-input',
|
463
|
+
'can_create_refunds' => 'can_create_refunds-input',
|
451
464
|
'city' => 'city-input',
|
452
465
|
'country_code' => 'country_code-input',
|
453
466
|
'created_at' => 'created_at-input',
|
@@ -18,6 +18,7 @@ describe GoCardlessPro::Services::CreditorsService do
|
|
18
18
|
'address_line1' => 'address_line1-input',
|
19
19
|
'address_line2' => 'address_line2-input',
|
20
20
|
'address_line3' => 'address_line3-input',
|
21
|
+
'can_create_refunds' => 'can_create_refunds-input',
|
21
22
|
'city' => 'city-input',
|
22
23
|
'country_code' => 'country_code-input',
|
23
24
|
'created_at' => 'created_at-input',
|
@@ -41,6 +42,7 @@ describe GoCardlessPro::Services::CreditorsService do
|
|
41
42
|
'address_line1' => 'address_line1-input',
|
42
43
|
'address_line2' => 'address_line2-input',
|
43
44
|
'address_line3' => 'address_line3-input',
|
45
|
+
'can_create_refunds' => 'can_create_refunds-input',
|
44
46
|
'city' => 'city-input',
|
45
47
|
'country_code' => 'country_code-input',
|
46
48
|
'created_at' => 'created_at-input',
|
@@ -64,6 +66,7 @@ describe GoCardlessPro::Services::CreditorsService do
|
|
64
66
|
'address_line1' => 'address_line1-input',
|
65
67
|
'address_line2' => 'address_line2-input',
|
66
68
|
'address_line3' => 'address_line3-input',
|
69
|
+
'can_create_refunds' => 'can_create_refunds-input',
|
67
70
|
'city' => 'city-input',
|
68
71
|
'country_code' => 'country_code-input',
|
69
72
|
'created_at' => 'created_at-input',
|
@@ -143,6 +146,7 @@ describe GoCardlessPro::Services::CreditorsService do
|
|
143
146
|
'address_line1' => 'address_line1-input',
|
144
147
|
'address_line2' => 'address_line2-input',
|
145
148
|
'address_line3' => 'address_line3-input',
|
149
|
+
'can_create_refunds' => 'can_create_refunds-input',
|
146
150
|
'city' => 'city-input',
|
147
151
|
'country_code' => 'country_code-input',
|
148
152
|
'created_at' => 'created_at-input',
|
@@ -189,6 +193,7 @@ describe GoCardlessPro::Services::CreditorsService do
|
|
189
193
|
'address_line1' => 'address_line1-input',
|
190
194
|
'address_line2' => 'address_line2-input',
|
191
195
|
'address_line3' => 'address_line3-input',
|
196
|
+
'can_create_refunds' => 'can_create_refunds-input',
|
192
197
|
'city' => 'city-input',
|
193
198
|
'country_code' => 'country_code-input',
|
194
199
|
'created_at' => 'created_at-input',
|
@@ -225,6 +230,7 @@ describe GoCardlessPro::Services::CreditorsService do
|
|
225
230
|
'address_line1' => 'address_line1-input',
|
226
231
|
'address_line2' => 'address_line2-input',
|
227
232
|
'address_line3' => 'address_line3-input',
|
233
|
+
'can_create_refunds' => 'can_create_refunds-input',
|
228
234
|
'city' => 'city-input',
|
229
235
|
'country_code' => 'country_code-input',
|
230
236
|
'created_at' => 'created_at-input',
|
@@ -262,6 +268,8 @@ describe GoCardlessPro::Services::CreditorsService do
|
|
262
268
|
|
263
269
|
expect(get_list_response.records.first.address_line3).to eq('address_line3-input')
|
264
270
|
|
271
|
+
expect(get_list_response.records.first.can_create_refunds).to eq('can_create_refunds-input')
|
272
|
+
|
265
273
|
expect(get_list_response.records.first.city).to eq('city-input')
|
266
274
|
|
267
275
|
expect(get_list_response.records.first.country_code).to eq('country_code-input')
|
@@ -324,6 +332,7 @@ describe GoCardlessPro::Services::CreditorsService do
|
|
324
332
|
'address_line1' => 'address_line1-input',
|
325
333
|
'address_line2' => 'address_line2-input',
|
326
334
|
'address_line3' => 'address_line3-input',
|
335
|
+
'can_create_refunds' => 'can_create_refunds-input',
|
327
336
|
'city' => 'city-input',
|
328
337
|
'country_code' => 'country_code-input',
|
329
338
|
'created_at' => 'created_at-input',
|
@@ -353,6 +362,7 @@ describe GoCardlessPro::Services::CreditorsService do
|
|
353
362
|
'address_line1' => 'address_line1-input',
|
354
363
|
'address_line2' => 'address_line2-input',
|
355
364
|
'address_line3' => 'address_line3-input',
|
365
|
+
'can_create_refunds' => 'can_create_refunds-input',
|
356
366
|
'city' => 'city-input',
|
357
367
|
'country_code' => 'country_code-input',
|
358
368
|
'created_at' => 'created_at-input',
|
@@ -391,6 +401,7 @@ describe GoCardlessPro::Services::CreditorsService do
|
|
391
401
|
'address_line1' => 'address_line1-input',
|
392
402
|
'address_line2' => 'address_line2-input',
|
393
403
|
'address_line3' => 'address_line3-input',
|
404
|
+
'can_create_refunds' => 'can_create_refunds-input',
|
394
405
|
'city' => 'city-input',
|
395
406
|
'country_code' => 'country_code-input',
|
396
407
|
'created_at' => 'created_at-input',
|
@@ -420,6 +431,7 @@ describe GoCardlessPro::Services::CreditorsService do
|
|
420
431
|
'address_line1' => 'address_line1-input',
|
421
432
|
'address_line2' => 'address_line2-input',
|
422
433
|
'address_line3' => 'address_line3-input',
|
434
|
+
'can_create_refunds' => 'can_create_refunds-input',
|
423
435
|
'city' => 'city-input',
|
424
436
|
'country_code' => 'country_code-input',
|
425
437
|
'created_at' => 'created_at-input',
|
@@ -454,6 +466,7 @@ describe GoCardlessPro::Services::CreditorsService do
|
|
454
466
|
'address_line1' => 'address_line1-input',
|
455
467
|
'address_line2' => 'address_line2-input',
|
456
468
|
'address_line3' => 'address_line3-input',
|
469
|
+
'can_create_refunds' => 'can_create_refunds-input',
|
457
470
|
'city' => 'city-input',
|
458
471
|
'country_code' => 'country_code-input',
|
459
472
|
'created_at' => 'created_at-input',
|
@@ -486,6 +499,7 @@ describe GoCardlessPro::Services::CreditorsService do
|
|
486
499
|
'address_line1' => 'address_line1-input',
|
487
500
|
'address_line2' => 'address_line2-input',
|
488
501
|
'address_line3' => 'address_line3-input',
|
502
|
+
'can_create_refunds' => 'can_create_refunds-input',
|
489
503
|
'city' => 'city-input',
|
490
504
|
'country_code' => 'country_code-input',
|
491
505
|
'created_at' => 'created_at-input',
|
@@ -531,6 +545,7 @@ describe GoCardlessPro::Services::CreditorsService do
|
|
531
545
|
'address_line1' => 'address_line1-input',
|
532
546
|
'address_line2' => 'address_line2-input',
|
533
547
|
'address_line3' => 'address_line3-input',
|
548
|
+
'can_create_refunds' => 'can_create_refunds-input',
|
534
549
|
'city' => 'city-input',
|
535
550
|
'country_code' => 'country_code-input',
|
536
551
|
'created_at' => 'created_at-input',
|
@@ -570,6 +585,7 @@ describe GoCardlessPro::Services::CreditorsService do
|
|
570
585
|
'address_line1' => 'address_line1-input',
|
571
586
|
'address_line2' => 'address_line2-input',
|
572
587
|
'address_line3' => 'address_line3-input',
|
588
|
+
'can_create_refunds' => 'can_create_refunds-input',
|
573
589
|
'city' => 'city-input',
|
574
590
|
'country_code' => 'country_code-input',
|
575
591
|
'created_at' => 'created_at-input',
|
@@ -658,6 +674,7 @@ describe GoCardlessPro::Services::CreditorsService do
|
|
658
674
|
'address_line1' => 'address_line1-input',
|
659
675
|
'address_line2' => 'address_line2-input',
|
660
676
|
'address_line3' => 'address_line3-input',
|
677
|
+
'can_create_refunds' => 'can_create_refunds-input',
|
661
678
|
'city' => 'city-input',
|
662
679
|
'country_code' => 'country_code-input',
|
663
680
|
'created_at' => 'created_at-input',
|
metadata
CHANGED
@@ -1,89 +1,89 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gocardless_pro
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GoCardless
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-12-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ~>
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '3.1'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ~>
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '3.1'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: webmock
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ~>
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '1.18'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ~>
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '1.18'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rubocop
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ~>
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: 0.49.1
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ~>
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: 0.49.1
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: yard
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ~>
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: 0.8.7.6
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - ~>
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: 0.8.7.6
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: faraday
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - '>='
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: 0.9.2
|
76
|
-
- -
|
76
|
+
- - <
|
77
77
|
- !ruby/object:Gem::Version
|
78
78
|
version: '1.0'
|
79
79
|
type: :runtime
|
80
80
|
prerelease: false
|
81
81
|
version_requirements: !ruby/object:Gem::Requirement
|
82
82
|
requirements:
|
83
|
-
- -
|
83
|
+
- - '>='
|
84
84
|
- !ruby/object:Gem::Version
|
85
85
|
version: 0.9.2
|
86
|
-
- -
|
86
|
+
- - <
|
87
87
|
- !ruby/object:Gem::Version
|
88
88
|
version: '1.0'
|
89
89
|
description:
|
@@ -93,9 +93,9 @@ executables: []
|
|
93
93
|
extensions: []
|
94
94
|
extra_rdoc_files: []
|
95
95
|
files:
|
96
|
-
-
|
97
|
-
-
|
98
|
-
-
|
96
|
+
- .rspec
|
97
|
+
- .rubocop.yml
|
98
|
+
- .travis.yml
|
99
99
|
- Gemfile
|
100
100
|
- LICENSE.txt
|
101
101
|
- README.md
|
@@ -192,17 +192,17 @@ require_paths:
|
|
192
192
|
- lib
|
193
193
|
required_ruby_version: !ruby/object:Gem::Requirement
|
194
194
|
requirements:
|
195
|
-
- -
|
195
|
+
- - '>='
|
196
196
|
- !ruby/object:Gem::Version
|
197
197
|
version: '0'
|
198
198
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
199
199
|
requirements:
|
200
|
-
- -
|
200
|
+
- - '>='
|
201
201
|
- !ruby/object:Gem::Version
|
202
202
|
version: '0'
|
203
203
|
requirements: []
|
204
204
|
rubyforge_project:
|
205
|
-
rubygems_version: 2.
|
205
|
+
rubygems_version: 2.0.14.1
|
206
206
|
signing_key:
|
207
207
|
specification_version: 4
|
208
208
|
summary: A gem for calling the GoCardless Pro API
|