gocardless_pro 2.34.0 → 2.35.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ddb7e2862a1082078fd862c678c6b1eb74c2a3fd9d51b6939dc620e0030a9f50
4
- data.tar.gz: 3528ae83d834d04fdad6212fa17a5b14a61cd5efc2d3ddd8327743617fe632db
3
+ metadata.gz: 68ba68f7dc161007c95d6503d6ea232d4996a7a7b496d81e85034006e5d27827
4
+ data.tar.gz: a2ae91f1d5013c33d77f58805dc8603d0de6f4095117f7f9632fcf78531ec8ea
5
5
  SHA512:
6
- metadata.gz: 8f7925a4e72edaddc2397d608d07aa77123f778616335904d9ab313b8718a94f8dd0770c7dab6bfc06309c2d8f5d4478c37f684aba0f590aee8ac38776c438da
7
- data.tar.gz: dde97d3ee08391fee635a5f561b536825983ac25d071fcf9d76c80bf83650d6065a63e83ae6e88d67c4755e5547c37981061b27958b9044c8d75a2b0fa5cf1b0
6
+ metadata.gz: 16d618927299e46c22399e57d3e6e22e2e613eb6a594652124a262f8e0162867f25b26a242c2917b52d206de742bd0d24d15e3d2856d4b94d66c4a65906415bb
7
+ data.tar.gz: 82c1870393ac1159653e786e3df461354df383cfb3865e1e39af4693c9d0f3adf6a545b732ce6b5c0c62c796339c136f22dd0f7ce25ed6214021cb535765fcfa
data/.circleci/config.yml CHANGED
@@ -33,11 +33,8 @@ workflows:
33
33
  - test:
34
34
  matrix:
35
35
  parameters:
36
- faraday-version: ["0.9.2", "1.0"]
37
- ruby-version: ["2.3", "2.4", "2.5", "2.6", "2.7", "3.0"]
38
- exclude:
39
- - faraday-version: "0.9.2"
40
- ruby-version: "3.0"
36
+ faraday-version: ["2.0"]
37
+ ruby-version: ["2.6", "2.7", "3.0", "3.1"]
41
38
  - publish:
42
39
  filters:
43
40
  branches:
@@ -17,8 +17,9 @@ Gem::Specification.new do |spec|
17
17
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
18
18
  spec.require_paths = ['lib']
19
19
 
20
- spec.add_dependency 'faraday', ['>= 0.9.2', '< 2']
21
-
20
+ spec.required_ruby_version = '>= 2.6'
21
+ spec.add_dependency 'faraday', ['>= 2', '< 3']
22
+
22
23
  spec.add_development_dependency 'rspec', '~> 3.7.0'
23
24
  spec.add_development_dependency 'webmock', '~> 3.8.3'
24
25
  spec.add_development_dependency 'rubocop', '~> 0.49.1'
@@ -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.34.0',
201
+ 'GoCardless-Client-Version' => '2.35.0',
202
202
  },
203
203
  }
204
204
  end
@@ -1,6 +1,6 @@
1
1
  module GoCardlessPro
2
2
  module Middlewares
3
- class RaiseGoCardlessErrors < Faraday::Response::Middleware
3
+ class RaiseGoCardlessErrors < Faraday::Middleware
4
4
  API_ERROR_STATUSES = 501..599
5
5
  CLIENT_ERROR_STATUSES = 400..500
6
6
 
@@ -20,6 +20,7 @@ module GoCardlessPro
20
20
  # Currently, for Anti Money Laundering reasons, any creditors you add must
21
21
  # be directly related to your organisation.
22
22
  class Creditor
23
+ attr_reader :activated
23
24
  attr_reader :address_line1
24
25
  attr_reader :address_line2
25
26
  attr_reader :address_line3
@@ -44,6 +45,7 @@ module GoCardlessPro
44
45
  def initialize(object, response = nil)
45
46
  @object = object
46
47
 
48
+ @activated = object['activated']
47
49
  @address_line1 = object['address_line1']
48
50
  @address_line2 = object['address_line2']
49
51
  @address_line3 = object['address_line3']
@@ -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 :consent_parameters
21
22
  attr_reader :created_at
22
23
  attr_reader :id
23
24
  attr_reader :metadata
@@ -32,6 +33,7 @@ module GoCardlessPro
32
33
  def initialize(object, response = nil)
33
34
  @object = object
34
35
 
36
+ @consent_parameters = object['consent_parameters']
35
37
  @created_at = object['created_at']
36
38
  @id = object['id']
37
39
  @links = object['links']
@@ -225,9 +225,12 @@ module GoCardlessPro
225
225
  end
226
226
 
227
227
  # This will allow for the updating of the currency and subsequently the scheme
228
- # if needed for a billing request
229
- # this will only be available for mandate only flows, it will not support
230
- # payments requests or plans
228
+ # if
229
+ # needed for a Billing Request. This will only be available for mandate only
230
+ # flows
231
+ # which do not have the lock_currency flag set to true on the Billing Request
232
+ # Flow. It
233
+ # will also not support any request which has a payments request.
231
234
  # Example URL: /billing_requests/:identity/actions/choose_currency
232
235
  #
233
236
  # @param identity # Unique identifier, beginning with "BRQ".
@@ -13,6 +13,12 @@ module GoCardlessPro
13
13
  # Returns a [cursor-paginated](#api-usage-cursor-pagination) list of items in
14
14
  # the payout.
15
15
  #
16
+ # <div class="notice notice--warning u-block">
17
+ # <strong>Note</strong>: From 1 March 2023 onwards, we will only serve
18
+ # requests for payout items created in the last 6 months. Requests for older
19
+ # payouts will return an HTTP status <code>410 Gone</code>.
20
+ # </div>
21
+ #
16
22
  # Example URL: /payout_items
17
23
  # @param options [Hash] parameters as a hash, under a params key.
18
24
  def list(options = {})
@@ -107,6 +107,10 @@ module GoCardlessPro
107
107
  # contacts GoCardless to change their bank details. It must start in the
108
108
  # `pending_submission` state. Only compatible with Bacs, SEPA and Autogiro
109
109
  # mandates.</li>
110
+ # <li>`mandate_suspended_by_payer`: Transitions a mandate to
111
+ # `suspended_by_payer`, as if payer has suspended the mandate after it has
112
+ # been setup successfully. It must start in the `activated` state. Only
113
+ # compatible with PAY_TO mandates.</li>
110
114
  # <li>`refund_paid`: Transitions a refund to `paid`. It must start in
111
115
  # either the `pending_submission` or `submitted` state.</li>
112
116
  # <li>`refund_settled`: Transitions a refund to `paid`, if it's not
@@ -46,7 +46,8 @@ module GoCardlessPro
46
46
  end
47
47
 
48
48
  # Returns a [cursor-paginated](#api-usage-cursor-pagination) list of your
49
- # subscriptions.
49
+ # subscriptions. Please note if the subscriptions are related to customers who
50
+ # have been removed, they will not be shown in the response.
50
51
  # Example URL: /subscriptions
51
52
  # @param options [Hash] parameters as a hash, under a params key.
52
53
  def list(options = {})
@@ -4,5 +4,5 @@ end
4
4
 
5
5
  module GoCardlessPro
6
6
  # Current version of the GC gem
7
- VERSION = '2.34.0'.freeze
7
+ VERSION = '2.35.0'.freeze
8
8
  end
@@ -15,6 +15,7 @@ describe GoCardlessPro::Resources::Creditor do
15
15
  let(:new_resource) do
16
16
  {
17
17
 
18
+ 'activated' => 'activated-input',
18
19
  'address_line1' => 'address_line1-input',
19
20
  'address_line2' => 'address_line2-input',
20
21
  'address_line3' => 'address_line3-input',
@@ -43,6 +44,7 @@ describe GoCardlessPro::Resources::Creditor do
43
44
  body: {
44
45
  'creditors' => {
45
46
 
47
+ 'activated' => 'activated-input',
46
48
  'address_line1' => 'address_line1-input',
47
49
  'address_line2' => 'address_line2-input',
48
50
  'address_line3' => 'address_line3-input',
@@ -71,6 +73,7 @@ describe GoCardlessPro::Resources::Creditor do
71
73
 
72
74
  {
73
75
 
76
+ 'activated' => 'activated-input',
74
77
  'address_line1' => 'address_line1-input',
75
78
  'address_line2' => 'address_line2-input',
76
79
  'address_line3' => 'address_line3-input',
@@ -132,6 +135,7 @@ describe GoCardlessPro::Resources::Creditor do
132
135
  let(:new_resource) do
133
136
  {
134
137
 
138
+ 'activated' => 'activated-input',
135
139
  'address_line1' => 'address_line1-input',
136
140
  'address_line2' => 'address_line2-input',
137
141
  'address_line3' => 'address_line3-input',
@@ -183,6 +187,7 @@ describe GoCardlessPro::Resources::Creditor do
183
187
  body: {
184
188
  'creditors' => {
185
189
 
190
+ 'activated' => 'activated-input',
186
191
  'address_line1' => 'address_line1-input',
187
192
  'address_line2' => 'address_line2-input',
188
193
  'address_line3' => 'address_line3-input',
@@ -225,6 +230,7 @@ describe GoCardlessPro::Resources::Creditor do
225
230
  body: {
226
231
  'creditors' => [{
227
232
 
233
+ 'activated' => 'activated-input',
228
234
  'address_line1' => 'address_line1-input',
229
235
  'address_line2' => 'address_line2-input',
230
236
  'address_line3' => 'address_line3-input',
@@ -259,6 +265,8 @@ describe GoCardlessPro::Resources::Creditor do
259
265
  it 'wraps each item in the resource class' do
260
266
  expect(get_list_response.records.map(&:class).uniq.first).to eq(GoCardlessPro::Resources::Creditor)
261
267
 
268
+ expect(get_list_response.records.first.activated).to eq('activated-input')
269
+
262
270
  expect(get_list_response.records.first.address_line1).to eq('address_line1-input')
263
271
 
264
272
  expect(get_list_response.records.first.address_line2).to eq('address_line2-input')
@@ -311,6 +319,7 @@ describe GoCardlessPro::Resources::Creditor do
311
319
  body: {
312
320
  'creditors' => [{
313
321
 
322
+ 'activated' => 'activated-input',
314
323
  'address_line1' => 'address_line1-input',
315
324
  'address_line2' => 'address_line2-input',
316
325
  'address_line3' => 'address_line3-input',
@@ -345,6 +354,7 @@ describe GoCardlessPro::Resources::Creditor do
345
354
  body: {
346
355
  'creditors' => [{
347
356
 
357
+ 'activated' => 'activated-input',
348
358
  'address_line1' => 'address_line1-input',
349
359
  'address_line2' => 'address_line2-input',
350
360
  'address_line3' => 'address_line3-input',
@@ -395,6 +405,7 @@ describe GoCardlessPro::Resources::Creditor do
395
405
  body: {
396
406
  'creditors' => {
397
407
 
408
+ 'activated' => 'activated-input',
398
409
  'address_line1' => 'address_line1-input',
399
410
  'address_line2' => 'address_line2-input',
400
411
  'address_line3' => 'address_line3-input',
@@ -439,6 +450,7 @@ describe GoCardlessPro::Resources::Creditor do
439
450
  body: {
440
451
  'creditors' => {
441
452
 
453
+ 'activated' => 'activated-input',
442
454
  'address_line1' => 'address_line1-input',
443
455
  'address_line2' => 'address_line2-input',
444
456
  'address_line3' => 'address_line3-input',
@@ -505,6 +517,7 @@ describe GoCardlessPro::Resources::Creditor do
505
517
  body: {
506
518
  'creditors' => {
507
519
 
520
+ 'activated' => 'activated-input',
508
521
  'address_line1' => 'address_line1-input',
509
522
  'address_line2' => 'address_line2-input',
510
523
  'address_line3' => 'address_line3-input',
@@ -15,6 +15,7 @@ describe GoCardlessPro::Resources::Mandate do
15
15
  let(:new_resource) do
16
16
  {
17
17
 
18
+ 'consent_parameters' => 'consent_parameters-input',
18
19
  'created_at' => 'created_at-input',
19
20
  'id' => 'id-input',
20
21
  'links' => 'links-input',
@@ -33,6 +34,7 @@ describe GoCardlessPro::Resources::Mandate do
33
34
  body: {
34
35
  'mandates' => {
35
36
 
37
+ 'consent_parameters' => 'consent_parameters-input',
36
38
  'created_at' => 'created_at-input',
37
39
  'id' => 'id-input',
38
40
  'links' => 'links-input',
@@ -51,6 +53,7 @@ describe GoCardlessPro::Resources::Mandate do
51
53
 
52
54
  {
53
55
 
56
+ 'consent_parameters' => 'consent_parameters-input',
54
57
  'created_at' => 'created_at-input',
55
58
  'id' => 'id-input',
56
59
  'links' => 'links-input',
@@ -102,6 +105,7 @@ describe GoCardlessPro::Resources::Mandate do
102
105
  let(:new_resource) do
103
106
  {
104
107
 
108
+ 'consent_parameters' => 'consent_parameters-input',
105
109
  'created_at' => 'created_at-input',
106
110
  'id' => 'id-input',
107
111
  'links' => 'links-input',
@@ -143,6 +147,7 @@ describe GoCardlessPro::Resources::Mandate do
143
147
  body: {
144
148
  'mandates' => {
145
149
 
150
+ 'consent_parameters' => 'consent_parameters-input',
146
151
  'created_at' => 'created_at-input',
147
152
  'id' => 'id-input',
148
153
  'links' => 'links-input',
@@ -175,6 +180,7 @@ describe GoCardlessPro::Resources::Mandate do
175
180
  body: {
176
181
  'mandates' => [{
177
182
 
183
+ 'consent_parameters' => 'consent_parameters-input',
178
184
  'created_at' => 'created_at-input',
179
185
  'id' => 'id-input',
180
186
  'links' => 'links-input',
@@ -199,6 +205,8 @@ describe GoCardlessPro::Resources::Mandate do
199
205
  it 'wraps each item in the resource class' do
200
206
  expect(get_list_response.records.map(&:class).uniq.first).to eq(GoCardlessPro::Resources::Mandate)
201
207
 
208
+ expect(get_list_response.records.first.consent_parameters).to eq('consent_parameters-input')
209
+
202
210
  expect(get_list_response.records.first.created_at).to eq('created_at-input')
203
211
 
204
212
  expect(get_list_response.records.first.id).to eq('id-input')
@@ -231,6 +239,7 @@ describe GoCardlessPro::Resources::Mandate do
231
239
  body: {
232
240
  'mandates' => [{
233
241
 
242
+ 'consent_parameters' => 'consent_parameters-input',
234
243
  'created_at' => 'created_at-input',
235
244
  'id' => 'id-input',
236
245
  'links' => 'links-input',
@@ -255,6 +264,7 @@ describe GoCardlessPro::Resources::Mandate do
255
264
  body: {
256
265
  'mandates' => [{
257
266
 
267
+ 'consent_parameters' => 'consent_parameters-input',
258
268
  'created_at' => 'created_at-input',
259
269
  'id' => 'id-input',
260
270
  'links' => 'links-input',
@@ -295,6 +305,7 @@ describe GoCardlessPro::Resources::Mandate do
295
305
  body: {
296
306
  'mandates' => {
297
307
 
308
+ 'consent_parameters' => 'consent_parameters-input',
298
309
  'created_at' => 'created_at-input',
299
310
  'id' => 'id-input',
300
311
  'links' => 'links-input',
@@ -329,6 +340,7 @@ describe GoCardlessPro::Resources::Mandate do
329
340
  body: {
330
341
  'mandates' => {
331
342
 
343
+ 'consent_parameters' => 'consent_parameters-input',
332
344
  'created_at' => 'created_at-input',
333
345
  'id' => 'id-input',
334
346
  'links' => 'links-input',
@@ -385,6 +397,7 @@ describe GoCardlessPro::Resources::Mandate do
385
397
  body: {
386
398
  'mandates' => {
387
399
 
400
+ 'consent_parameters' => 'consent_parameters-input',
388
401
  'created_at' => 'created_at-input',
389
402
  'id' => 'id-input',
390
403
  'links' => 'links-input',
@@ -420,6 +433,7 @@ describe GoCardlessPro::Resources::Mandate do
420
433
  body: {
421
434
  'mandates' => {
422
435
 
436
+ 'consent_parameters' => 'consent_parameters-input',
423
437
  'created_at' => 'created_at-input',
424
438
  'id' => 'id-input',
425
439
  'links' => 'links-input',
@@ -460,6 +474,7 @@ describe GoCardlessPro::Resources::Mandate do
460
474
  body: {
461
475
  'mandates' => {
462
476
 
477
+ 'consent_parameters' => 'consent_parameters-input',
463
478
  'created_at' => 'created_at-input',
464
479
  'id' => 'id-input',
465
480
  'links' => 'links-input',
@@ -490,6 +505,7 @@ describe GoCardlessPro::Resources::Mandate do
490
505
  body: {
491
506
  'mandates' => {
492
507
 
508
+ 'consent_parameters' => 'consent_parameters-input',
493
509
  'created_at' => 'created_at-input',
494
510
  'id' => 'id-input',
495
511
  'links' => 'links-input',
@@ -530,6 +546,7 @@ describe GoCardlessPro::Resources::Mandate do
530
546
  body: {
531
547
  'mandates' => {
532
548
 
549
+ 'consent_parameters' => 'consent_parameters-input',
533
550
  'created_at' => 'created_at-input',
534
551
  'id' => 'id-input',
535
552
  'links' => 'links-input',
@@ -15,6 +15,7 @@ describe GoCardlessPro::Services::CreditorsService do
15
15
  let(:new_resource) do
16
16
  {
17
17
 
18
+ 'activated' => 'activated-input',
18
19
  'address_line1' => 'address_line1-input',
19
20
  'address_line2' => 'address_line2-input',
20
21
  'address_line3' => 'address_line3-input',
@@ -43,6 +44,7 @@ describe GoCardlessPro::Services::CreditorsService do
43
44
  body: {
44
45
  'creditors' => {
45
46
 
47
+ 'activated' => 'activated-input',
46
48
  'address_line1' => 'address_line1-input',
47
49
  'address_line2' => 'address_line2-input',
48
50
  'address_line3' => 'address_line3-input',
@@ -71,6 +73,7 @@ describe GoCardlessPro::Services::CreditorsService do
71
73
 
72
74
  {
73
75
 
76
+ 'activated' => 'activated-input',
74
77
  'address_line1' => 'address_line1-input',
75
78
  'address_line2' => 'address_line2-input',
76
79
  'address_line3' => 'address_line3-input',
@@ -155,6 +158,7 @@ describe GoCardlessPro::Services::CreditorsService do
155
158
  let(:new_resource) do
156
159
  {
157
160
 
161
+ 'activated' => 'activated-input',
158
162
  'address_line1' => 'address_line1-input',
159
163
  'address_line2' => 'address_line2-input',
160
164
  'address_line3' => 'address_line3-input',
@@ -206,6 +210,7 @@ describe GoCardlessPro::Services::CreditorsService do
206
210
  body: {
207
211
  'creditors' => {
208
212
 
213
+ 'activated' => 'activated-input',
209
214
  'address_line1' => 'address_line1-input',
210
215
  'address_line2' => 'address_line2-input',
211
216
  'address_line3' => 'address_line3-input',
@@ -263,6 +268,7 @@ describe GoCardlessPro::Services::CreditorsService do
263
268
  {
264
269
  'creditors' => [{
265
270
 
271
+ 'activated' => 'activated-input',
266
272
  'address_line1' => 'address_line1-input',
267
273
  'address_line2' => 'address_line2-input',
268
274
  'address_line3' => 'address_line3-input',
@@ -302,6 +308,8 @@ describe GoCardlessPro::Services::CreditorsService do
302
308
  it 'wraps each item in the resource class' do
303
309
  expect(get_list_response.records.map(&:class).uniq.first).to eq(GoCardlessPro::Resources::Creditor)
304
310
 
311
+ expect(get_list_response.records.first.activated).to eq('activated-input')
312
+
305
313
  expect(get_list_response.records.first.address_line1).to eq('address_line1-input')
306
314
 
307
315
  expect(get_list_response.records.first.address_line2).to eq('address_line2-input')
@@ -377,6 +385,7 @@ describe GoCardlessPro::Services::CreditorsService do
377
385
  body: {
378
386
  'creditors' => [{
379
387
 
388
+ 'activated' => 'activated-input',
380
389
  'address_line1' => 'address_line1-input',
381
390
  'address_line2' => 'address_line2-input',
382
391
  'address_line3' => 'address_line3-input',
@@ -411,6 +420,7 @@ describe GoCardlessPro::Services::CreditorsService do
411
420
  body: {
412
421
  'creditors' => [{
413
422
 
423
+ 'activated' => 'activated-input',
414
424
  'address_line1' => 'address_line1-input',
415
425
  'address_line2' => 'address_line2-input',
416
426
  'address_line3' => 'address_line3-input',
@@ -454,6 +464,7 @@ describe GoCardlessPro::Services::CreditorsService do
454
464
  body: {
455
465
  'creditors' => [{
456
466
 
467
+ 'activated' => 'activated-input',
457
468
  'address_line1' => 'address_line1-input',
458
469
  'address_line2' => 'address_line2-input',
459
470
  'address_line3' => 'address_line3-input',
@@ -488,6 +499,7 @@ describe GoCardlessPro::Services::CreditorsService do
488
499
  body: {
489
500
  'creditors' => [{
490
501
 
502
+ 'activated' => 'activated-input',
491
503
  'address_line1' => 'address_line1-input',
492
504
  'address_line2' => 'address_line2-input',
493
505
  'address_line3' => 'address_line3-input',
@@ -527,6 +539,7 @@ describe GoCardlessPro::Services::CreditorsService do
527
539
  body: {
528
540
  'creditors' => [{
529
541
 
542
+ 'activated' => 'activated-input',
530
543
  'address_line1' => 'address_line1-input',
531
544
  'address_line2' => 'address_line2-input',
532
545
  'address_line3' => 'address_line3-input',
@@ -564,6 +577,7 @@ describe GoCardlessPro::Services::CreditorsService do
564
577
  body: {
565
578
  'creditors' => [{
566
579
 
580
+ 'activated' => 'activated-input',
567
581
  'address_line1' => 'address_line1-input',
568
582
  'address_line2' => 'address_line2-input',
569
583
  'address_line3' => 'address_line3-input',
@@ -614,6 +628,7 @@ describe GoCardlessPro::Services::CreditorsService do
614
628
  body: {
615
629
  'creditors' => {
616
630
 
631
+ 'activated' => 'activated-input',
617
632
  'address_line1' => 'address_line1-input',
618
633
  'address_line2' => 'address_line2-input',
619
634
  'address_line3' => 'address_line3-input',
@@ -658,6 +673,7 @@ describe GoCardlessPro::Services::CreditorsService do
658
673
  body: {
659
674
  'creditors' => {
660
675
 
676
+ 'activated' => 'activated-input',
661
677
  'address_line1' => 'address_line1-input',
662
678
  'address_line2' => 'address_line2-input',
663
679
  'address_line3' => 'address_line3-input',
@@ -779,6 +795,7 @@ describe GoCardlessPro::Services::CreditorsService do
779
795
  body: {
780
796
  'creditors' => {
781
797
 
798
+ 'activated' => 'activated-input',
782
799
  'address_line1' => 'address_line1-input',
783
800
  'address_line2' => 'address_line2-input',
784
801
  'address_line3' => 'address_line3-input',
@@ -15,6 +15,7 @@ describe GoCardlessPro::Services::MandatesService do
15
15
  let(:new_resource) do
16
16
  {
17
17
 
18
+ 'consent_parameters' => 'consent_parameters-input',
18
19
  'created_at' => 'created_at-input',
19
20
  'id' => 'id-input',
20
21
  'links' => 'links-input',
@@ -33,6 +34,7 @@ describe GoCardlessPro::Services::MandatesService do
33
34
  body: {
34
35
  'mandates' => {
35
36
 
37
+ 'consent_parameters' => 'consent_parameters-input',
36
38
  'created_at' => 'created_at-input',
37
39
  'id' => 'id-input',
38
40
  'links' => 'links-input',
@@ -51,6 +53,7 @@ describe GoCardlessPro::Services::MandatesService do
51
53
 
52
54
  {
53
55
 
56
+ 'consent_parameters' => 'consent_parameters-input',
54
57
  'created_at' => 'created_at-input',
55
58
  'id' => 'id-input',
56
59
  'links' => 'links-input',
@@ -125,6 +128,7 @@ describe GoCardlessPro::Services::MandatesService do
125
128
  let(:new_resource) do
126
129
  {
127
130
 
131
+ 'consent_parameters' => 'consent_parameters-input',
128
132
  'created_at' => 'created_at-input',
129
133
  'id' => 'id-input',
130
134
  'links' => 'links-input',
@@ -166,6 +170,7 @@ describe GoCardlessPro::Services::MandatesService do
166
170
  body: {
167
171
  'mandates' => {
168
172
 
173
+ 'consent_parameters' => 'consent_parameters-input',
169
174
  'created_at' => 'created_at-input',
170
175
  'id' => 'id-input',
171
176
  'links' => 'links-input',
@@ -213,6 +218,7 @@ describe GoCardlessPro::Services::MandatesService do
213
218
  {
214
219
  'mandates' => [{
215
220
 
221
+ 'consent_parameters' => 'consent_parameters-input',
216
222
  'created_at' => 'created_at-input',
217
223
  'id' => 'id-input',
218
224
  'links' => 'links-input',
@@ -242,6 +248,8 @@ describe GoCardlessPro::Services::MandatesService do
242
248
  it 'wraps each item in the resource class' do
243
249
  expect(get_list_response.records.map(&:class).uniq.first).to eq(GoCardlessPro::Resources::Mandate)
244
250
 
251
+ expect(get_list_response.records.first.consent_parameters).to eq('consent_parameters-input')
252
+
245
253
  expect(get_list_response.records.first.created_at).to eq('created_at-input')
246
254
 
247
255
  expect(get_list_response.records.first.id).to eq('id-input')
@@ -297,6 +305,7 @@ describe GoCardlessPro::Services::MandatesService do
297
305
  body: {
298
306
  'mandates' => [{
299
307
 
308
+ 'consent_parameters' => 'consent_parameters-input',
300
309
  'created_at' => 'created_at-input',
301
310
  'id' => 'id-input',
302
311
  'links' => 'links-input',
@@ -321,6 +330,7 @@ describe GoCardlessPro::Services::MandatesService do
321
330
  body: {
322
331
  'mandates' => [{
323
332
 
333
+ 'consent_parameters' => 'consent_parameters-input',
324
334
  'created_at' => 'created_at-input',
325
335
  'id' => 'id-input',
326
336
  'links' => 'links-input',
@@ -354,6 +364,7 @@ describe GoCardlessPro::Services::MandatesService do
354
364
  body: {
355
365
  'mandates' => [{
356
366
 
367
+ 'consent_parameters' => 'consent_parameters-input',
357
368
  'created_at' => 'created_at-input',
358
369
  'id' => 'id-input',
359
370
  'links' => 'links-input',
@@ -378,6 +389,7 @@ describe GoCardlessPro::Services::MandatesService do
378
389
  body: {
379
390
  'mandates' => [{
380
391
 
392
+ 'consent_parameters' => 'consent_parameters-input',
381
393
  'created_at' => 'created_at-input',
382
394
  'id' => 'id-input',
383
395
  'links' => 'links-input',
@@ -407,6 +419,7 @@ describe GoCardlessPro::Services::MandatesService do
407
419
  body: {
408
420
  'mandates' => [{
409
421
 
422
+ 'consent_parameters' => 'consent_parameters-input',
410
423
  'created_at' => 'created_at-input',
411
424
  'id' => 'id-input',
412
425
  'links' => 'links-input',
@@ -434,6 +447,7 @@ describe GoCardlessPro::Services::MandatesService do
434
447
  body: {
435
448
  'mandates' => [{
436
449
 
450
+ 'consent_parameters' => 'consent_parameters-input',
437
451
  'created_at' => 'created_at-input',
438
452
  'id' => 'id-input',
439
453
  'links' => 'links-input',
@@ -474,6 +488,7 @@ describe GoCardlessPro::Services::MandatesService do
474
488
  body: {
475
489
  'mandates' => {
476
490
 
491
+ 'consent_parameters' => 'consent_parameters-input',
477
492
  'created_at' => 'created_at-input',
478
493
  'id' => 'id-input',
479
494
  'links' => 'links-input',
@@ -508,6 +523,7 @@ describe GoCardlessPro::Services::MandatesService do
508
523
  body: {
509
524
  'mandates' => {
510
525
 
526
+ 'consent_parameters' => 'consent_parameters-input',
511
527
  'created_at' => 'created_at-input',
512
528
  'id' => 'id-input',
513
529
  'links' => 'links-input',
@@ -619,6 +635,7 @@ describe GoCardlessPro::Services::MandatesService do
619
635
  body: {
620
636
  'mandates' => {
621
637
 
638
+ 'consent_parameters' => 'consent_parameters-input',
622
639
  'created_at' => 'created_at-input',
623
640
  'id' => 'id-input',
624
641
  'links' => 'links-input',
@@ -679,6 +696,7 @@ describe GoCardlessPro::Services::MandatesService do
679
696
  body: {
680
697
  'mandates' => {
681
698
 
699
+ 'consent_parameters' => 'consent_parameters-input',
682
700
  'created_at' => 'created_at-input',
683
701
  'id' => 'id-input',
684
702
  'links' => 'links-input',
@@ -730,6 +748,7 @@ describe GoCardlessPro::Services::MandatesService do
730
748
  body: {
731
749
  'mandates' => {
732
750
 
751
+ 'consent_parameters' => 'consent_parameters-input',
733
752
  'created_at' => 'created_at-input',
734
753
  'id' => 'id-input',
735
754
  'links' => 'links-input',
@@ -760,6 +779,7 @@ describe GoCardlessPro::Services::MandatesService do
760
779
  body: {
761
780
  'mandates' => {
762
781
 
782
+ 'consent_parameters' => 'consent_parameters-input',
763
783
  'created_at' => 'created_at-input',
764
784
  'id' => 'id-input',
765
785
  'links' => 'links-input',
@@ -811,6 +831,7 @@ describe GoCardlessPro::Services::MandatesService do
811
831
  body: {
812
832
  'mandates' => {
813
833
 
834
+ 'consent_parameters' => 'consent_parameters-input',
814
835
  'created_at' => 'created_at-input',
815
836
  'id' => 'id-input',
816
837
  'links' => 'links-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.34.0
4
+ version: 2.35.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-07-22 00:00:00.000000000 Z
11
+ date: 2022-11-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -16,20 +16,20 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.9.2
19
+ version: '2'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '2'
22
+ version: '3'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.9.2
29
+ version: '2'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '2'
32
+ version: '3'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: rspec
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -302,7 +302,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
302
302
  requirements:
303
303
  - - ">="
304
304
  - !ruby/object:Gem::Version
305
- version: '0'
305
+ version: '2.6'
306
306
  required_rubygems_version: !ruby/object:Gem::Requirement
307
307
  requirements:
308
308
  - - ">="