gocardless_pro 2.0.0 → 2.1.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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a8c9ec530e509727543e6ab0142302f928749b00
|
4
|
+
data.tar.gz: 9d034d961ac65edaff460c30812fafeae80f8568
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5758970f6680e461020c00ecf0a4df121da2bffec487d203ba4a2338def6856bd8fda4ce376ec320f1b4decb0cbac751826d054d5da9b42295deed02cc8e60ed
|
7
|
+
data.tar.gz: 0ea10725022cef83ba659d5df6d2db1ac7b9ecbad6671846114185205da20baf987a96da26fcb0c6539624b246a8d12d245713c66dc26e622ab23bcf3ab6a290
|
@@ -118,7 +118,7 @@ module GoCardlessPro
|
|
118
118
|
'User-Agent' => "#{user_agent}",
|
119
119
|
'Content-Type' => 'application/json',
|
120
120
|
'GoCardless-Client-Library' => 'gocardless-pro-ruby',
|
121
|
-
'GoCardless-Client-Version' => '2.
|
121
|
+
'GoCardless-Client-Version' => '2.1.0'
|
122
122
|
}
|
123
123
|
}
|
124
124
|
end
|
@@ -33,6 +33,7 @@ module GoCardlessPro
|
|
33
33
|
attr_reader :postal_code
|
34
34
|
attr_reader :region
|
35
35
|
attr_reader :scheme_identifiers
|
36
|
+
attr_reader :verification_status
|
36
37
|
|
37
38
|
# Initialize a creditor resource instance
|
38
39
|
# @param object [Hash] an object returned from the API
|
@@ -52,6 +53,7 @@ module GoCardlessPro
|
|
52
53
|
@postal_code = object['postal_code']
|
53
54
|
@region = object['region']
|
54
55
|
@scheme_identifiers = object['scheme_identifiers']
|
56
|
+
@verification_status = object['verification_status']
|
55
57
|
@response = response
|
56
58
|
end
|
57
59
|
|
@@ -27,7 +27,8 @@ describe GoCardlessPro::Resources::Creditor do
|
|
27
27
|
'name' => 'name-input',
|
28
28
|
'postal_code' => 'postal_code-input',
|
29
29
|
'region' => 'region-input',
|
30
|
-
'scheme_identifiers' => 'scheme_identifiers-input'
|
30
|
+
'scheme_identifiers' => 'scheme_identifiers-input',
|
31
|
+
'verification_status' => 'verification_status-input'
|
31
32
|
}
|
32
33
|
end
|
33
34
|
|
@@ -49,7 +50,8 @@ describe GoCardlessPro::Resources::Creditor do
|
|
49
50
|
'name' => 'name-input',
|
50
51
|
'postal_code' => 'postal_code-input',
|
51
52
|
'region' => 'region-input',
|
52
|
-
'scheme_identifiers' => 'scheme_identifiers-input'
|
53
|
+
'scheme_identifiers' => 'scheme_identifiers-input',
|
54
|
+
'verification_status' => 'verification_status-input'
|
53
55
|
}
|
54
56
|
}
|
55
57
|
)
|
@@ -71,7 +73,8 @@ describe GoCardlessPro::Resources::Creditor do
|
|
71
73
|
'name' => 'name-input',
|
72
74
|
'postal_code' => 'postal_code-input',
|
73
75
|
'region' => 'region-input',
|
74
|
-
'scheme_identifiers' => 'scheme_identifiers-input'
|
76
|
+
'scheme_identifiers' => 'scheme_identifiers-input',
|
77
|
+
'verification_status' => 'verification_status-input'
|
75
78
|
}
|
76
79
|
|
77
80
|
}.to_json,
|
@@ -126,7 +129,8 @@ describe GoCardlessPro::Resources::Creditor do
|
|
126
129
|
'name' => 'name-input',
|
127
130
|
'postal_code' => 'postal_code-input',
|
128
131
|
'region' => 'region-input',
|
129
|
-
'scheme_identifiers' => 'scheme_identifiers-input'
|
132
|
+
'scheme_identifiers' => 'scheme_identifiers-input',
|
133
|
+
'verification_status' => 'verification_status-input'
|
130
134
|
}
|
131
135
|
end
|
132
136
|
|
@@ -171,7 +175,8 @@ describe GoCardlessPro::Resources::Creditor do
|
|
171
175
|
'name' => 'name-input',
|
172
176
|
'postal_code' => 'postal_code-input',
|
173
177
|
'region' => 'region-input',
|
174
|
-
'scheme_identifiers' => 'scheme_identifiers-input'
|
178
|
+
'scheme_identifiers' => 'scheme_identifiers-input',
|
179
|
+
'verification_status' => 'verification_status-input'
|
175
180
|
}
|
176
181
|
}.to_json,
|
177
182
|
headers: response_headers
|
@@ -207,7 +212,8 @@ describe GoCardlessPro::Resources::Creditor do
|
|
207
212
|
'name' => 'name-input',
|
208
213
|
'postal_code' => 'postal_code-input',
|
209
214
|
'region' => 'region-input',
|
210
|
-
'scheme_identifiers' => 'scheme_identifiers-input'
|
215
|
+
'scheme_identifiers' => 'scheme_identifiers-input',
|
216
|
+
'verification_status' => 'verification_status-input'
|
211
217
|
}],
|
212
218
|
meta: {
|
213
219
|
cursors: {
|
@@ -246,6 +252,8 @@ describe GoCardlessPro::Resources::Creditor do
|
|
246
252
|
expect(get_list_response.records.first.region).to eq('region-input')
|
247
253
|
|
248
254
|
expect(get_list_response.records.first.scheme_identifiers).to eq('scheme_identifiers-input')
|
255
|
+
|
256
|
+
expect(get_list_response.records.first.verification_status).to eq('verification_status-input')
|
249
257
|
end
|
250
258
|
|
251
259
|
it 'exposes the cursors for before and after' do
|
@@ -275,7 +283,8 @@ describe GoCardlessPro::Resources::Creditor do
|
|
275
283
|
'name' => 'name-input',
|
276
284
|
'postal_code' => 'postal_code-input',
|
277
285
|
'region' => 'region-input',
|
278
|
-
'scheme_identifiers' => 'scheme_identifiers-input'
|
286
|
+
'scheme_identifiers' => 'scheme_identifiers-input',
|
287
|
+
'verification_status' => 'verification_status-input'
|
279
288
|
}],
|
280
289
|
meta: {
|
281
290
|
cursors: { after: 'AB345' },
|
@@ -303,7 +312,8 @@ describe GoCardlessPro::Resources::Creditor do
|
|
303
312
|
'name' => 'name-input',
|
304
313
|
'postal_code' => 'postal_code-input',
|
305
314
|
'region' => 'region-input',
|
306
|
-
'scheme_identifiers' => 'scheme_identifiers-input'
|
315
|
+
'scheme_identifiers' => 'scheme_identifiers-input',
|
316
|
+
'verification_status' => 'verification_status-input'
|
307
317
|
}],
|
308
318
|
meta: {
|
309
319
|
limit: 2,
|
@@ -347,7 +357,8 @@ describe GoCardlessPro::Resources::Creditor do
|
|
347
357
|
'name' => 'name-input',
|
348
358
|
'postal_code' => 'postal_code-input',
|
349
359
|
'region' => 'region-input',
|
350
|
-
'scheme_identifiers' => 'scheme_identifiers-input'
|
360
|
+
'scheme_identifiers' => 'scheme_identifiers-input',
|
361
|
+
'verification_status' => 'verification_status-input'
|
351
362
|
}
|
352
363
|
}.to_json,
|
353
364
|
headers: response_headers
|
@@ -385,7 +396,8 @@ describe GoCardlessPro::Resources::Creditor do
|
|
385
396
|
'name' => 'name-input',
|
386
397
|
'postal_code' => 'postal_code-input',
|
387
398
|
'region' => 'region-input',
|
388
|
-
'scheme_identifiers' => 'scheme_identifiers-input'
|
399
|
+
'scheme_identifiers' => 'scheme_identifiers-input',
|
400
|
+
'verification_status' => 'verification_status-input'
|
389
401
|
}
|
390
402
|
}.to_json,
|
391
403
|
headers: response_headers
|
@@ -445,7 +457,8 @@ describe GoCardlessPro::Resources::Creditor do
|
|
445
457
|
'name' => 'name-input',
|
446
458
|
'postal_code' => 'postal_code-input',
|
447
459
|
'region' => 'region-input',
|
448
|
-
'scheme_identifiers' => 'scheme_identifiers-input'
|
460
|
+
'scheme_identifiers' => 'scheme_identifiers-input',
|
461
|
+
'verification_status' => 'verification_status-input'
|
449
462
|
}
|
450
463
|
}.to_json,
|
451
464
|
headers: response_headers
|
@@ -27,7 +27,8 @@ describe GoCardlessPro::Services::CreditorsService do
|
|
27
27
|
'name' => 'name-input',
|
28
28
|
'postal_code' => 'postal_code-input',
|
29
29
|
'region' => 'region-input',
|
30
|
-
'scheme_identifiers' => 'scheme_identifiers-input'
|
30
|
+
'scheme_identifiers' => 'scheme_identifiers-input',
|
31
|
+
'verification_status' => 'verification_status-input'
|
31
32
|
}
|
32
33
|
end
|
33
34
|
|
@@ -49,7 +50,8 @@ describe GoCardlessPro::Services::CreditorsService do
|
|
49
50
|
'name' => 'name-input',
|
50
51
|
'postal_code' => 'postal_code-input',
|
51
52
|
'region' => 'region-input',
|
52
|
-
'scheme_identifiers' => 'scheme_identifiers-input'
|
53
|
+
'scheme_identifiers' => 'scheme_identifiers-input',
|
54
|
+
'verification_status' => 'verification_status-input'
|
53
55
|
}
|
54
56
|
}
|
55
57
|
)
|
@@ -71,7 +73,8 @@ describe GoCardlessPro::Services::CreditorsService do
|
|
71
73
|
'name' => 'name-input',
|
72
74
|
'postal_code' => 'postal_code-input',
|
73
75
|
'region' => 'region-input',
|
74
|
-
'scheme_identifiers' => 'scheme_identifiers-input'
|
76
|
+
'scheme_identifiers' => 'scheme_identifiers-input',
|
77
|
+
'verification_status' => 'verification_status-input'
|
75
78
|
}
|
76
79
|
|
77
80
|
}.to_json,
|
@@ -149,7 +152,8 @@ describe GoCardlessPro::Services::CreditorsService do
|
|
149
152
|
'name' => 'name-input',
|
150
153
|
'postal_code' => 'postal_code-input',
|
151
154
|
'region' => 'region-input',
|
152
|
-
'scheme_identifiers' => 'scheme_identifiers-input'
|
155
|
+
'scheme_identifiers' => 'scheme_identifiers-input',
|
156
|
+
'verification_status' => 'verification_status-input'
|
153
157
|
}
|
154
158
|
end
|
155
159
|
|
@@ -194,7 +198,8 @@ describe GoCardlessPro::Services::CreditorsService do
|
|
194
198
|
'name' => 'name-input',
|
195
199
|
'postal_code' => 'postal_code-input',
|
196
200
|
'region' => 'region-input',
|
197
|
-
'scheme_identifiers' => 'scheme_identifiers-input'
|
201
|
+
'scheme_identifiers' => 'scheme_identifiers-input',
|
202
|
+
'verification_status' => 'verification_status-input'
|
198
203
|
}
|
199
204
|
}.to_json,
|
200
205
|
headers: response_headers
|
@@ -229,7 +234,8 @@ describe GoCardlessPro::Services::CreditorsService do
|
|
229
234
|
'name' => 'name-input',
|
230
235
|
'postal_code' => 'postal_code-input',
|
231
236
|
'region' => 'region-input',
|
232
|
-
'scheme_identifiers' => 'scheme_identifiers-input'
|
237
|
+
'scheme_identifiers' => 'scheme_identifiers-input',
|
238
|
+
'verification_status' => 'verification_status-input'
|
233
239
|
}],
|
234
240
|
meta: {
|
235
241
|
cursors: {
|
@@ -273,6 +279,8 @@ describe GoCardlessPro::Services::CreditorsService do
|
|
273
279
|
expect(get_list_response.records.first.region).to eq('region-input')
|
274
280
|
|
275
281
|
expect(get_list_response.records.first.scheme_identifiers).to eq('scheme_identifiers-input')
|
282
|
+
|
283
|
+
expect(get_list_response.records.first.verification_status).to eq('verification_status-input')
|
276
284
|
end
|
277
285
|
|
278
286
|
it 'exposes the cursors for before and after' do
|
@@ -325,7 +333,8 @@ describe GoCardlessPro::Services::CreditorsService do
|
|
325
333
|
'name' => 'name-input',
|
326
334
|
'postal_code' => 'postal_code-input',
|
327
335
|
'region' => 'region-input',
|
328
|
-
'scheme_identifiers' => 'scheme_identifiers-input'
|
336
|
+
'scheme_identifiers' => 'scheme_identifiers-input',
|
337
|
+
'verification_status' => 'verification_status-input'
|
329
338
|
}],
|
330
339
|
meta: {
|
331
340
|
cursors: { after: 'AB345' },
|
@@ -353,7 +362,8 @@ describe GoCardlessPro::Services::CreditorsService do
|
|
353
362
|
'name' => 'name-input',
|
354
363
|
'postal_code' => 'postal_code-input',
|
355
364
|
'region' => 'region-input',
|
356
|
-
'scheme_identifiers' => 'scheme_identifiers-input'
|
365
|
+
'scheme_identifiers' => 'scheme_identifiers-input',
|
366
|
+
'verification_status' => 'verification_status-input'
|
357
367
|
}],
|
358
368
|
meta: {
|
359
369
|
limit: 2,
|
@@ -390,7 +400,8 @@ describe GoCardlessPro::Services::CreditorsService do
|
|
390
400
|
'name' => 'name-input',
|
391
401
|
'postal_code' => 'postal_code-input',
|
392
402
|
'region' => 'region-input',
|
393
|
-
'scheme_identifiers' => 'scheme_identifiers-input'
|
403
|
+
'scheme_identifiers' => 'scheme_identifiers-input',
|
404
|
+
'verification_status' => 'verification_status-input'
|
394
405
|
}],
|
395
406
|
meta: {
|
396
407
|
cursors: { after: 'AB345' },
|
@@ -418,7 +429,8 @@ describe GoCardlessPro::Services::CreditorsService do
|
|
418
429
|
'name' => 'name-input',
|
419
430
|
'postal_code' => 'postal_code-input',
|
420
431
|
'region' => 'region-input',
|
421
|
-
'scheme_identifiers' => 'scheme_identifiers-input'
|
432
|
+
'scheme_identifiers' => 'scheme_identifiers-input',
|
433
|
+
'verification_status' => 'verification_status-input'
|
422
434
|
}],
|
423
435
|
meta: {
|
424
436
|
limit: 2,
|
@@ -451,7 +463,8 @@ describe GoCardlessPro::Services::CreditorsService do
|
|
451
463
|
'name' => 'name-input',
|
452
464
|
'postal_code' => 'postal_code-input',
|
453
465
|
'region' => 'region-input',
|
454
|
-
'scheme_identifiers' => 'scheme_identifiers-input'
|
466
|
+
'scheme_identifiers' => 'scheme_identifiers-input',
|
467
|
+
'verification_status' => 'verification_status-input'
|
455
468
|
}],
|
456
469
|
meta: {
|
457
470
|
cursors: { after: 'AB345' },
|
@@ -482,7 +495,8 @@ describe GoCardlessPro::Services::CreditorsService do
|
|
482
495
|
'name' => 'name-input',
|
483
496
|
'postal_code' => 'postal_code-input',
|
484
497
|
'region' => 'region-input',
|
485
|
-
'scheme_identifiers' => 'scheme_identifiers-input'
|
498
|
+
'scheme_identifiers' => 'scheme_identifiers-input',
|
499
|
+
'verification_status' => 'verification_status-input'
|
486
500
|
}],
|
487
501
|
meta: {
|
488
502
|
limit: 2,
|
@@ -526,7 +540,8 @@ describe GoCardlessPro::Services::CreditorsService do
|
|
526
540
|
'name' => 'name-input',
|
527
541
|
'postal_code' => 'postal_code-input',
|
528
542
|
'region' => 'region-input',
|
529
|
-
'scheme_identifiers' => 'scheme_identifiers-input'
|
543
|
+
'scheme_identifiers' => 'scheme_identifiers-input',
|
544
|
+
'verification_status' => 'verification_status-input'
|
530
545
|
}
|
531
546
|
}.to_json,
|
532
547
|
headers: response_headers
|
@@ -564,7 +579,8 @@ describe GoCardlessPro::Services::CreditorsService do
|
|
564
579
|
'name' => 'name-input',
|
565
580
|
'postal_code' => 'postal_code-input',
|
566
581
|
'region' => 'region-input',
|
567
|
-
'scheme_identifiers' => 'scheme_identifiers-input'
|
582
|
+
'scheme_identifiers' => 'scheme_identifiers-input',
|
583
|
+
'verification_status' => 'verification_status-input'
|
568
584
|
}
|
569
585
|
}.to_json,
|
570
586
|
headers: response_headers
|
@@ -651,7 +667,8 @@ describe GoCardlessPro::Services::CreditorsService do
|
|
651
667
|
'name' => 'name-input',
|
652
668
|
'postal_code' => 'postal_code-input',
|
653
669
|
'region' => 'region-input',
|
654
|
-
'scheme_identifiers' => 'scheme_identifiers-input'
|
670
|
+
'scheme_identifiers' => 'scheme_identifiers-input',
|
671
|
+
'verification_status' => 'verification_status-input'
|
655
672
|
}
|
656
673
|
}.to_json,
|
657
674
|
headers: response_headers
|
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.1.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-05-
|
11
|
+
date: 2017-05-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -197,7 +197,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
197
197
|
version: '0'
|
198
198
|
requirements: []
|
199
199
|
rubyforge_project:
|
200
|
-
rubygems_version: 2.
|
200
|
+
rubygems_version: 2.6.8
|
201
201
|
signing_key:
|
202
202
|
specification_version: 4
|
203
203
|
summary: A gem for calling the GoCardless Pro API
|
@@ -235,3 +235,4 @@ test_files:
|
|
235
235
|
- spec/services/refunds_service_spec.rb
|
236
236
|
- spec/services/subscriptions_service_spec.rb
|
237
237
|
- spec/spec_helper.rb
|
238
|
+
has_rdoc:
|