gocardless_pro 2.36.0 → 2.37.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: cedc7c2b2541dc3425cb6a9047252e856c6c235404e2282adc98598db032b164
4
- data.tar.gz: 6999caf16c126113b734d1539a216b8a4fd4f29af342afb0fb4706d6a349686d
3
+ metadata.gz: e7f1e988aa7164b8006b5a6b76d0e43df2d45dcea8e51f4edaf719e94b26b939
4
+ data.tar.gz: 813c7ac58a0ef7476572b38a74456331c705574d081a90759d13f20cb63d3814
5
5
  SHA512:
6
- metadata.gz: 37fb70da921804699a5eafa462c5b0f03f62d45b8b3680505dea06217b1c6504ff24ebd038b328557ac05c3ca994b82587c2148ed43174c2d08a817211e49e25
7
- data.tar.gz: '02769033295b596fa56c1511b81b36dd1fba9256cd926f0e2f29cc9f5cf30b16a3b26637e375014f52948687a8fca2be5b9820d1df6c895bc277b2b889f62225'
6
+ metadata.gz: e1e31bbc274a59b3d6d1e1de8a2929bcc89163a7a88e0ca314f4f4498a7405f8b5c16d50da0f2e8dde70edc20032191e45099dc9230e8342738e63926a7051da
7
+ data.tar.gz: c277105a55d42a91a7cfcb5f54b98af70668ba4879a203024e8578be26f24b894def6680ba9725638c4785a8d531b9945ca02a3a9fc7663223e34419ea949611
@@ -98,11 +98,6 @@ module GoCardlessPro
98
98
  @mandate_pdfs ||= Services::MandatePdfsService.new(@api_service)
99
99
  end
100
100
 
101
- # Access to the service for mandate_request_constraints to make API calls
102
- def mandate_request_constraints
103
- @mandate_request_constraints ||= Services::MandateRequestConstraintsService.new(@api_service)
104
- end
105
-
106
101
  # Access to the service for payer_authorisation to make API calls
107
102
  def payer_authorisations
108
103
  @payer_authorisations ||= Services::PayerAuthorisationsService.new(@api_service)
@@ -203,7 +198,7 @@ module GoCardlessPro
203
198
  'User-Agent' => user_agent.to_s,
204
199
  'Content-Type' => 'application/json',
205
200
  'GoCardless-Client-Library' => 'gocardless-pro-ruby',
206
- 'GoCardless-Client-Version' => '2.36.0',
201
+ 'GoCardless-Client-Version' => '2.37.0',
207
202
  },
208
203
  }
209
204
  end
@@ -22,6 +22,7 @@ module GoCardlessPro
22
22
  attr_reader :exit_uri
23
23
  attr_reader :expires_at
24
24
  attr_reader :id
25
+ attr_reader :language
25
26
  attr_reader :lock_bank_account
26
27
  attr_reader :lock_currency
27
28
  attr_reader :lock_customer_details
@@ -42,6 +43,7 @@ module GoCardlessPro
42
43
  @exit_uri = object['exit_uri']
43
44
  @expires_at = object['expires_at']
44
45
  @id = object['id']
46
+ @language = object['language']
45
47
  @links = object['links']
46
48
  @lock_bank_account = object['lock_bank_account']
47
49
  @lock_currency = object['lock_currency']
@@ -28,6 +28,7 @@ module GoCardlessPro
28
28
  attr_reader :city
29
29
  attr_reader :country_code
30
30
  attr_reader :created_at
31
+ attr_reader :creditor_type
31
32
  attr_reader :custom_payment_pages_enabled
32
33
  attr_reader :fx_payout_currency
33
34
  attr_reader :id
@@ -53,6 +54,7 @@ module GoCardlessPro
53
54
  @city = object['city']
54
55
  @country_code = object['country_code']
55
56
  @created_at = object['created_at']
57
+ @creditor_type = object['creditor_type']
56
58
  @custom_payment_pages_enabled = object['custom_payment_pages_enabled']
57
59
  @fx_payout_currency = object['fx_payout_currency']
58
60
  @id = object['id']
@@ -4,5 +4,5 @@ end
4
4
 
5
5
  module GoCardlessPro
6
6
  # Current version of the GC gem
7
- VERSION = '2.36.0'.freeze
7
+ VERSION = '2.37.0'.freeze
8
8
  end
@@ -98,9 +98,6 @@ require_relative 'gocardless_pro/services/mandate_import_entries_service'
98
98
  require_relative 'gocardless_pro/resources/mandate_pdf'
99
99
  require_relative 'gocardless_pro/services/mandate_pdfs_service'
100
100
 
101
- require_relative 'gocardless_pro/resources/mandate_request_constraints'
102
- require_relative 'gocardless_pro/services/mandate_request_constraints_service'
103
-
104
101
  require_relative 'gocardless_pro/resources/payer_authorisation'
105
102
  require_relative 'gocardless_pro/services/payer_authorisations_service'
106
103
 
@@ -21,6 +21,7 @@ describe GoCardlessPro::Resources::BillingRequestFlow do
21
21
  'exit_uri' => 'exit_uri-input',
22
22
  'expires_at' => 'expires_at-input',
23
23
  'id' => 'id-input',
24
+ 'language' => 'language-input',
24
25
  'links' => 'links-input',
25
26
  'lock_bank_account' => 'lock_bank_account-input',
26
27
  'lock_currency' => 'lock_currency-input',
@@ -45,6 +46,7 @@ describe GoCardlessPro::Resources::BillingRequestFlow do
45
46
  'exit_uri' => 'exit_uri-input',
46
47
  'expires_at' => 'expires_at-input',
47
48
  'id' => 'id-input',
49
+ 'language' => 'language-input',
48
50
  'links' => 'links-input',
49
51
  'lock_bank_account' => 'lock_bank_account-input',
50
52
  'lock_currency' => 'lock_currency-input',
@@ -69,6 +71,7 @@ describe GoCardlessPro::Resources::BillingRequestFlow do
69
71
  'exit_uri' => 'exit_uri-input',
70
72
  'expires_at' => 'expires_at-input',
71
73
  'id' => 'id-input',
74
+ 'language' => 'language-input',
72
75
  'links' => 'links-input',
73
76
  'lock_bank_account' => 'lock_bank_account-input',
74
77
  'lock_currency' => 'lock_currency-input',
@@ -126,6 +129,7 @@ describe GoCardlessPro::Resources::BillingRequestFlow do
126
129
  'exit_uri' => 'exit_uri-input',
127
130
  'expires_at' => 'expires_at-input',
128
131
  'id' => 'id-input',
132
+ 'language' => 'language-input',
129
133
  'links' => 'links-input',
130
134
  'lock_bank_account' => 'lock_bank_account-input',
131
135
  'lock_currency' => 'lock_currency-input',
@@ -186,6 +190,7 @@ describe GoCardlessPro::Resources::BillingRequestFlow do
186
190
  'exit_uri' => 'exit_uri-input',
187
191
  'expires_at' => 'expires_at-input',
188
192
  'id' => 'id-input',
193
+ 'language' => 'language-input',
189
194
  'links' => 'links-input',
190
195
  'lock_bank_account' => 'lock_bank_account-input',
191
196
  'lock_currency' => 'lock_currency-input',
@@ -232,6 +237,7 @@ describe GoCardlessPro::Resources::BillingRequestFlow do
232
237
  'exit_uri' => 'exit_uri-input',
233
238
  'expires_at' => 'expires_at-input',
234
239
  'id' => 'id-input',
240
+ 'language' => 'language-input',
235
241
  'links' => 'links-input',
236
242
  'lock_bank_account' => 'lock_bank_account-input',
237
243
  'lock_currency' => 'lock_currency-input',
@@ -23,6 +23,7 @@ describe GoCardlessPro::Resources::Creditor do
23
23
  'city' => 'city-input',
24
24
  'country_code' => 'country_code-input',
25
25
  'created_at' => 'created_at-input',
26
+ 'creditor_type' => 'creditor_type-input',
26
27
  'custom_payment_pages_enabled' => 'custom_payment_pages_enabled-input',
27
28
  'fx_payout_currency' => 'fx_payout_currency-input',
28
29
  'id' => 'id-input',
@@ -52,6 +53,7 @@ describe GoCardlessPro::Resources::Creditor do
52
53
  'city' => 'city-input',
53
54
  'country_code' => 'country_code-input',
54
55
  'created_at' => 'created_at-input',
56
+ 'creditor_type' => 'creditor_type-input',
55
57
  'custom_payment_pages_enabled' => 'custom_payment_pages_enabled-input',
56
58
  'fx_payout_currency' => 'fx_payout_currency-input',
57
59
  'id' => 'id-input',
@@ -81,6 +83,7 @@ describe GoCardlessPro::Resources::Creditor do
81
83
  'city' => 'city-input',
82
84
  'country_code' => 'country_code-input',
83
85
  'created_at' => 'created_at-input',
86
+ 'creditor_type' => 'creditor_type-input',
84
87
  'custom_payment_pages_enabled' => 'custom_payment_pages_enabled-input',
85
88
  'fx_payout_currency' => 'fx_payout_currency-input',
86
89
  'id' => 'id-input',
@@ -143,6 +146,7 @@ describe GoCardlessPro::Resources::Creditor do
143
146
  'city' => 'city-input',
144
147
  'country_code' => 'country_code-input',
145
148
  'created_at' => 'created_at-input',
149
+ 'creditor_type' => 'creditor_type-input',
146
150
  'custom_payment_pages_enabled' => 'custom_payment_pages_enabled-input',
147
151
  'fx_payout_currency' => 'fx_payout_currency-input',
148
152
  'id' => 'id-input',
@@ -195,6 +199,7 @@ describe GoCardlessPro::Resources::Creditor do
195
199
  'city' => 'city-input',
196
200
  'country_code' => 'country_code-input',
197
201
  'created_at' => 'created_at-input',
202
+ 'creditor_type' => 'creditor_type-input',
198
203
  'custom_payment_pages_enabled' => 'custom_payment_pages_enabled-input',
199
204
  'fx_payout_currency' => 'fx_payout_currency-input',
200
205
  'id' => 'id-input',
@@ -238,6 +243,7 @@ describe GoCardlessPro::Resources::Creditor do
238
243
  'city' => 'city-input',
239
244
  'country_code' => 'country_code-input',
240
245
  'created_at' => 'created_at-input',
246
+ 'creditor_type' => 'creditor_type-input',
241
247
  'custom_payment_pages_enabled' => 'custom_payment_pages_enabled-input',
242
248
  'fx_payout_currency' => 'fx_payout_currency-input',
243
249
  'id' => 'id-input',
@@ -281,6 +287,8 @@ describe GoCardlessPro::Resources::Creditor do
281
287
 
282
288
  expect(get_list_response.records.first.created_at).to eq('created_at-input')
283
289
 
290
+ expect(get_list_response.records.first.creditor_type).to eq('creditor_type-input')
291
+
284
292
  expect(get_list_response.records.first.custom_payment_pages_enabled).to eq('custom_payment_pages_enabled-input')
285
293
 
286
294
  expect(get_list_response.records.first.fx_payout_currency).to eq('fx_payout_currency-input')
@@ -327,6 +335,7 @@ describe GoCardlessPro::Resources::Creditor do
327
335
  'city' => 'city-input',
328
336
  'country_code' => 'country_code-input',
329
337
  'created_at' => 'created_at-input',
338
+ 'creditor_type' => 'creditor_type-input',
330
339
  'custom_payment_pages_enabled' => 'custom_payment_pages_enabled-input',
331
340
  'fx_payout_currency' => 'fx_payout_currency-input',
332
341
  'id' => 'id-input',
@@ -362,6 +371,7 @@ describe GoCardlessPro::Resources::Creditor do
362
371
  'city' => 'city-input',
363
372
  'country_code' => 'country_code-input',
364
373
  'created_at' => 'created_at-input',
374
+ 'creditor_type' => 'creditor_type-input',
365
375
  'custom_payment_pages_enabled' => 'custom_payment_pages_enabled-input',
366
376
  'fx_payout_currency' => 'fx_payout_currency-input',
367
377
  'id' => 'id-input',
@@ -413,6 +423,7 @@ describe GoCardlessPro::Resources::Creditor do
413
423
  'city' => 'city-input',
414
424
  'country_code' => 'country_code-input',
415
425
  'created_at' => 'created_at-input',
426
+ 'creditor_type' => 'creditor_type-input',
416
427
  'custom_payment_pages_enabled' => 'custom_payment_pages_enabled-input',
417
428
  'fx_payout_currency' => 'fx_payout_currency-input',
418
429
  'id' => 'id-input',
@@ -458,6 +469,7 @@ describe GoCardlessPro::Resources::Creditor do
458
469
  'city' => 'city-input',
459
470
  'country_code' => 'country_code-input',
460
471
  'created_at' => 'created_at-input',
472
+ 'creditor_type' => 'creditor_type-input',
461
473
  'custom_payment_pages_enabled' => 'custom_payment_pages_enabled-input',
462
474
  'fx_payout_currency' => 'fx_payout_currency-input',
463
475
  'id' => 'id-input',
@@ -525,6 +537,7 @@ describe GoCardlessPro::Resources::Creditor do
525
537
  'city' => 'city-input',
526
538
  'country_code' => 'country_code-input',
527
539
  'created_at' => 'created_at-input',
540
+ 'creditor_type' => 'creditor_type-input',
528
541
  'custom_payment_pages_enabled' => 'custom_payment_pages_enabled-input',
529
542
  'fx_payout_currency' => 'fx_payout_currency-input',
530
543
  'id' => 'id-input',
@@ -21,6 +21,7 @@ describe GoCardlessPro::Services::BillingRequestFlowsService do
21
21
  'exit_uri' => 'exit_uri-input',
22
22
  'expires_at' => 'expires_at-input',
23
23
  'id' => 'id-input',
24
+ 'language' => 'language-input',
24
25
  'links' => 'links-input',
25
26
  'lock_bank_account' => 'lock_bank_account-input',
26
27
  'lock_currency' => 'lock_currency-input',
@@ -45,6 +46,7 @@ describe GoCardlessPro::Services::BillingRequestFlowsService do
45
46
  'exit_uri' => 'exit_uri-input',
46
47
  'expires_at' => 'expires_at-input',
47
48
  'id' => 'id-input',
49
+ 'language' => 'language-input',
48
50
  'links' => 'links-input',
49
51
  'lock_bank_account' => 'lock_bank_account-input',
50
52
  'lock_currency' => 'lock_currency-input',
@@ -69,6 +71,7 @@ describe GoCardlessPro::Services::BillingRequestFlowsService do
69
71
  'exit_uri' => 'exit_uri-input',
70
72
  'expires_at' => 'expires_at-input',
71
73
  'id' => 'id-input',
74
+ 'language' => 'language-input',
72
75
  'links' => 'links-input',
73
76
  'lock_bank_account' => 'lock_bank_account-input',
74
77
  'lock_currency' => 'lock_currency-input',
@@ -149,6 +152,7 @@ describe GoCardlessPro::Services::BillingRequestFlowsService do
149
152
  'exit_uri' => 'exit_uri-input',
150
153
  'expires_at' => 'expires_at-input',
151
154
  'id' => 'id-input',
155
+ 'language' => 'language-input',
152
156
  'links' => 'links-input',
153
157
  'lock_bank_account' => 'lock_bank_account-input',
154
158
  'lock_currency' => 'lock_currency-input',
@@ -209,6 +213,7 @@ describe GoCardlessPro::Services::BillingRequestFlowsService do
209
213
  'exit_uri' => 'exit_uri-input',
210
214
  'expires_at' => 'expires_at-input',
211
215
  'id' => 'id-input',
216
+ 'language' => 'language-input',
212
217
  'links' => 'links-input',
213
218
  'lock_bank_account' => 'lock_bank_account-input',
214
219
  'lock_currency' => 'lock_currency-input',
@@ -266,6 +271,7 @@ describe GoCardlessPro::Services::BillingRequestFlowsService do
266
271
  'exit_uri' => 'exit_uri-input',
267
272
  'expires_at' => 'expires_at-input',
268
273
  'id' => 'id-input',
274
+ 'language' => 'language-input',
269
275
  'links' => 'links-input',
270
276
  'lock_bank_account' => 'lock_bank_account-input',
271
277
  'lock_currency' => 'lock_currency-input',
@@ -23,6 +23,7 @@ describe GoCardlessPro::Services::CreditorsService do
23
23
  'city' => 'city-input',
24
24
  'country_code' => 'country_code-input',
25
25
  'created_at' => 'created_at-input',
26
+ 'creditor_type' => 'creditor_type-input',
26
27
  'custom_payment_pages_enabled' => 'custom_payment_pages_enabled-input',
27
28
  'fx_payout_currency' => 'fx_payout_currency-input',
28
29
  'id' => 'id-input',
@@ -52,6 +53,7 @@ describe GoCardlessPro::Services::CreditorsService do
52
53
  'city' => 'city-input',
53
54
  'country_code' => 'country_code-input',
54
55
  'created_at' => 'created_at-input',
56
+ 'creditor_type' => 'creditor_type-input',
55
57
  'custom_payment_pages_enabled' => 'custom_payment_pages_enabled-input',
56
58
  'fx_payout_currency' => 'fx_payout_currency-input',
57
59
  'id' => 'id-input',
@@ -81,6 +83,7 @@ describe GoCardlessPro::Services::CreditorsService do
81
83
  'city' => 'city-input',
82
84
  'country_code' => 'country_code-input',
83
85
  'created_at' => 'created_at-input',
86
+ 'creditor_type' => 'creditor_type-input',
84
87
  'custom_payment_pages_enabled' => 'custom_payment_pages_enabled-input',
85
88
  'fx_payout_currency' => 'fx_payout_currency-input',
86
89
  'id' => 'id-input',
@@ -166,6 +169,7 @@ describe GoCardlessPro::Services::CreditorsService do
166
169
  'city' => 'city-input',
167
170
  'country_code' => 'country_code-input',
168
171
  'created_at' => 'created_at-input',
172
+ 'creditor_type' => 'creditor_type-input',
169
173
  'custom_payment_pages_enabled' => 'custom_payment_pages_enabled-input',
170
174
  'fx_payout_currency' => 'fx_payout_currency-input',
171
175
  'id' => 'id-input',
@@ -218,6 +222,7 @@ describe GoCardlessPro::Services::CreditorsService do
218
222
  'city' => 'city-input',
219
223
  'country_code' => 'country_code-input',
220
224
  'created_at' => 'created_at-input',
225
+ 'creditor_type' => 'creditor_type-input',
221
226
  'custom_payment_pages_enabled' => 'custom_payment_pages_enabled-input',
222
227
  'fx_payout_currency' => 'fx_payout_currency-input',
223
228
  'id' => 'id-input',
@@ -276,6 +281,7 @@ describe GoCardlessPro::Services::CreditorsService do
276
281
  'city' => 'city-input',
277
282
  'country_code' => 'country_code-input',
278
283
  'created_at' => 'created_at-input',
284
+ 'creditor_type' => 'creditor_type-input',
279
285
  'custom_payment_pages_enabled' => 'custom_payment_pages_enabled-input',
280
286
  'fx_payout_currency' => 'fx_payout_currency-input',
281
287
  'id' => 'id-input',
@@ -324,6 +330,8 @@ describe GoCardlessPro::Services::CreditorsService do
324
330
 
325
331
  expect(get_list_response.records.first.created_at).to eq('created_at-input')
326
332
 
333
+ expect(get_list_response.records.first.creditor_type).to eq('creditor_type-input')
334
+
327
335
  expect(get_list_response.records.first.custom_payment_pages_enabled).to eq('custom_payment_pages_enabled-input')
328
336
 
329
337
  expect(get_list_response.records.first.fx_payout_currency).to eq('fx_payout_currency-input')
@@ -393,6 +401,7 @@ describe GoCardlessPro::Services::CreditorsService do
393
401
  'city' => 'city-input',
394
402
  'country_code' => 'country_code-input',
395
403
  'created_at' => 'created_at-input',
404
+ 'creditor_type' => 'creditor_type-input',
396
405
  'custom_payment_pages_enabled' => 'custom_payment_pages_enabled-input',
397
406
  'fx_payout_currency' => 'fx_payout_currency-input',
398
407
  'id' => 'id-input',
@@ -428,6 +437,7 @@ describe GoCardlessPro::Services::CreditorsService do
428
437
  'city' => 'city-input',
429
438
  'country_code' => 'country_code-input',
430
439
  'created_at' => 'created_at-input',
440
+ 'creditor_type' => 'creditor_type-input',
431
441
  'custom_payment_pages_enabled' => 'custom_payment_pages_enabled-input',
432
442
  'fx_payout_currency' => 'fx_payout_currency-input',
433
443
  'id' => 'id-input',
@@ -472,6 +482,7 @@ describe GoCardlessPro::Services::CreditorsService do
472
482
  'city' => 'city-input',
473
483
  'country_code' => 'country_code-input',
474
484
  'created_at' => 'created_at-input',
485
+ 'creditor_type' => 'creditor_type-input',
475
486
  'custom_payment_pages_enabled' => 'custom_payment_pages_enabled-input',
476
487
  'fx_payout_currency' => 'fx_payout_currency-input',
477
488
  'id' => 'id-input',
@@ -507,6 +518,7 @@ describe GoCardlessPro::Services::CreditorsService do
507
518
  'city' => 'city-input',
508
519
  'country_code' => 'country_code-input',
509
520
  'created_at' => 'created_at-input',
521
+ 'creditor_type' => 'creditor_type-input',
510
522
  'custom_payment_pages_enabled' => 'custom_payment_pages_enabled-input',
511
523
  'fx_payout_currency' => 'fx_payout_currency-input',
512
524
  'id' => 'id-input',
@@ -547,6 +559,7 @@ describe GoCardlessPro::Services::CreditorsService do
547
559
  'city' => 'city-input',
548
560
  'country_code' => 'country_code-input',
549
561
  'created_at' => 'created_at-input',
562
+ 'creditor_type' => 'creditor_type-input',
550
563
  'custom_payment_pages_enabled' => 'custom_payment_pages_enabled-input',
551
564
  'fx_payout_currency' => 'fx_payout_currency-input',
552
565
  'id' => 'id-input',
@@ -585,6 +598,7 @@ describe GoCardlessPro::Services::CreditorsService do
585
598
  'city' => 'city-input',
586
599
  'country_code' => 'country_code-input',
587
600
  'created_at' => 'created_at-input',
601
+ 'creditor_type' => 'creditor_type-input',
588
602
  'custom_payment_pages_enabled' => 'custom_payment_pages_enabled-input',
589
603
  'fx_payout_currency' => 'fx_payout_currency-input',
590
604
  'id' => 'id-input',
@@ -636,6 +650,7 @@ describe GoCardlessPro::Services::CreditorsService do
636
650
  'city' => 'city-input',
637
651
  'country_code' => 'country_code-input',
638
652
  'created_at' => 'created_at-input',
653
+ 'creditor_type' => 'creditor_type-input',
639
654
  'custom_payment_pages_enabled' => 'custom_payment_pages_enabled-input',
640
655
  'fx_payout_currency' => 'fx_payout_currency-input',
641
656
  'id' => 'id-input',
@@ -681,6 +696,7 @@ describe GoCardlessPro::Services::CreditorsService do
681
696
  'city' => 'city-input',
682
697
  'country_code' => 'country_code-input',
683
698
  'created_at' => 'created_at-input',
699
+ 'creditor_type' => 'creditor_type-input',
684
700
  'custom_payment_pages_enabled' => 'custom_payment_pages_enabled-input',
685
701
  'fx_payout_currency' => 'fx_payout_currency-input',
686
702
  'id' => 'id-input',
@@ -803,6 +819,7 @@ describe GoCardlessPro::Services::CreditorsService do
803
819
  'city' => 'city-input',
804
820
  'country_code' => 'country_code-input',
805
821
  'created_at' => 'created_at-input',
822
+ 'creditor_type' => 'creditor_type-input',
806
823
  'custom_payment_pages_enabled' => 'custom_payment_pages_enabled-input',
807
824
  'fx_payout_currency' => 'fx_payout_currency-input',
808
825
  '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.36.0
4
+ version: 2.37.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-06 00:00:00.000000000 Z
11
+ date: 2022-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -181,7 +181,6 @@ files:
181
181
  - lib/gocardless_pro/resources/mandate_import.rb
182
182
  - lib/gocardless_pro/resources/mandate_import_entry.rb
183
183
  - lib/gocardless_pro/resources/mandate_pdf.rb
184
- - lib/gocardless_pro/resources/mandate_request_constraints.rb
185
184
  - lib/gocardless_pro/resources/payer_authorisation.rb
186
185
  - lib/gocardless_pro/resources/payment.rb
187
186
  - lib/gocardless_pro/resources/payout.rb
@@ -212,7 +211,6 @@ files:
212
211
  - lib/gocardless_pro/services/mandate_import_entries_service.rb
213
212
  - lib/gocardless_pro/services/mandate_imports_service.rb
214
213
  - lib/gocardless_pro/services/mandate_pdfs_service.rb
215
- - lib/gocardless_pro/services/mandate_request_constraints_service.rb
216
214
  - lib/gocardless_pro/services/mandates_service.rb
217
215
  - lib/gocardless_pro/services/payer_authorisations_service.rb
218
216
  - lib/gocardless_pro/services/payments_service.rb
@@ -249,7 +247,6 @@ files:
249
247
  - spec/resources/mandate_import_entry_spec.rb
250
248
  - spec/resources/mandate_import_spec.rb
251
249
  - spec/resources/mandate_pdf_spec.rb
252
- - spec/resources/mandate_request_constraints_spec.rb
253
250
  - spec/resources/mandate_spec.rb
254
251
  - spec/resources/payer_authorisation_spec.rb
255
252
  - spec/resources/payment_spec.rb
@@ -280,7 +277,6 @@ files:
280
277
  - spec/services/mandate_import_entries_service_spec.rb
281
278
  - spec/services/mandate_imports_service_spec.rb
282
279
  - spec/services/mandate_pdfs_service_spec.rb
283
- - spec/services/mandate_request_constraints_service_spec.rb
284
280
  - spec/services/mandates_service_spec.rb
285
281
  - spec/services/payer_authorisations_service_spec.rb
286
282
  - spec/services/payments_service_spec.rb
@@ -341,7 +337,6 @@ test_files:
341
337
  - spec/resources/mandate_import_entry_spec.rb
342
338
  - spec/resources/mandate_import_spec.rb
343
339
  - spec/resources/mandate_pdf_spec.rb
344
- - spec/resources/mandate_request_constraints_spec.rb
345
340
  - spec/resources/mandate_spec.rb
346
341
  - spec/resources/payer_authorisation_spec.rb
347
342
  - spec/resources/payment_spec.rb
@@ -372,7 +367,6 @@ test_files:
372
367
  - spec/services/mandate_import_entries_service_spec.rb
373
368
  - spec/services/mandate_imports_service_spec.rb
374
369
  - spec/services/mandate_pdfs_service_spec.rb
375
- - spec/services/mandate_request_constraints_service_spec.rb
376
370
  - spec/services/mandates_service_spec.rb
377
371
  - spec/services/payer_authorisations_service_spec.rb
378
372
  - spec/services/payments_service_spec.rb
@@ -1,45 +0,0 @@
1
- # encoding: utf-8
2
-
3
- #
4
- # This client is automatically generated from a template and JSON schema definition.
5
- # See https://github.com/gocardless/gocardless-pro-ruby#contributing before editing.
6
- #
7
-
8
- require 'uri'
9
-
10
- module GoCardlessPro
11
- # A module containing classes for each of the resources in the GC Api
12
- module Resources
13
- # Represents an instance of a mandate_request_constraints resource returned from the API
14
-
15
- # Constraints that will apply to the mandate_request. (Optional)
16
- # Specifically for PayTo and VRP.
17
- class MandateRequestConstraints
18
- attr_reader :end_date
19
- attr_reader :max_amount_per_payment
20
- attr_reader :periodic_limits
21
- attr_reader :start_date
22
-
23
- # Initialize a mandate_request_constraints resource instance
24
- # @param object [Hash] an object returned from the API
25
- def initialize(object, response = nil)
26
- @object = object
27
-
28
- @end_date = object['end_date']
29
- @max_amount_per_payment = object['max_amount_per_payment']
30
- @periodic_limits = object['periodic_limits']
31
- @start_date = object['start_date']
32
- @response = response
33
- end
34
-
35
- def api_response
36
- ApiResponse.new(@response)
37
- end
38
-
39
- # Provides the mandate_request_constraints resource as a hash of all its readable attributes
40
- def to_h
41
- @object
42
- end
43
- end
44
- end
45
- end
@@ -1,28 +0,0 @@
1
- require_relative './base_service'
2
-
3
- # encoding: utf-8
4
- #
5
- # This client is automatically generated from a template and JSON schema definition.
6
- # See https://github.com/gocardless/gocardless-pro-ruby#contributing before editing.
7
- #
8
-
9
- module GoCardlessPro
10
- module Services
11
- # Service for making requests to the MandateRequestConstraints endpoints
12
- class MandateRequestConstraintsService < BaseService
13
- private
14
-
15
- # Unenvelope the response of the body using the service's `envelope_key`
16
- #
17
- # @param body [Hash]
18
- def unenvelope_body(body)
19
- body[envelope_key] || body['data']
20
- end
21
-
22
- # return the key which API responses will envelope data under
23
- def envelope_key
24
- 'mandate_request_constraints'
25
- end
26
- end
27
- end
28
- end
@@ -1,11 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe GoCardlessPro::Resources::MandateRequestConstraints do
4
- let(:client) do
5
- GoCardlessPro::Client.new(
6
- access_token: 'SECRET_TOKEN'
7
- )
8
- end
9
-
10
- let(:response_headers) { { 'Content-Type' => 'application/json' } }
11
- end
@@ -1,11 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe GoCardlessPro::Services::MandateRequestConstraintsService do
4
- let(:client) do
5
- GoCardlessPro::Client.new(
6
- access_token: 'SECRET_TOKEN'
7
- )
8
- end
9
-
10
- let(:response_headers) { { 'Content-Type' => 'application/json' } }
11
- end