gocardless_pro 2.35.0 → 2.36.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 +6 -1
- data/lib/gocardless_pro/resources/billing_request_template.rb +2 -0
- data/lib/gocardless_pro/resources/block.rb +26 -13
- data/lib/gocardless_pro/resources/mandate_request_constraints.rb +45 -0
- data/lib/gocardless_pro/services/mandate_request_constraints_service.rb +28 -0
- data/lib/gocardless_pro/version.rb +1 -1
- data/lib/gocardless_pro.rb +3 -0
- data/spec/resources/billing_request_template_spec.rb +13 -0
- data/spec/resources/mandate_request_constraints_spec.rb +11 -0
- data/spec/services/billing_request_templates_service_spec.rb +17 -0
- data/spec/services/mandate_request_constraints_service_spec.rb +11 -0
- metadata +8 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cedc7c2b2541dc3425cb6a9047252e856c6c235404e2282adc98598db032b164
|
4
|
+
data.tar.gz: 6999caf16c126113b734d1539a216b8a4fd4f29af342afb0fb4706d6a349686d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 37fb70da921804699a5eafa462c5b0f03f62d45b8b3680505dea06217b1c6504ff24ebd038b328557ac05c3ca994b82587c2148ed43174c2d08a817211e49e25
|
7
|
+
data.tar.gz: '02769033295b596fa56c1511b81b36dd1fba9256cd926f0e2f29cc9f5cf30b16a3b26637e375014f52948687a8fca2be5b9820d1df6c895bc277b2b889f62225'
|
@@ -98,6 +98,11 @@ 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
|
+
|
101
106
|
# Access to the service for payer_authorisation to make API calls
|
102
107
|
def payer_authorisations
|
103
108
|
@payer_authorisations ||= Services::PayerAuthorisationsService.new(@api_service)
|
@@ -198,7 +203,7 @@ module GoCardlessPro
|
|
198
203
|
'User-Agent' => user_agent.to_s,
|
199
204
|
'Content-Type' => 'application/json',
|
200
205
|
'GoCardless-Client-Library' => 'gocardless-pro-ruby',
|
201
|
-
'GoCardless-Client-Version' => '2.
|
206
|
+
'GoCardless-Client-Version' => '2.36.0',
|
202
207
|
},
|
203
208
|
}
|
204
209
|
end
|
@@ -18,6 +18,7 @@ module GoCardlessPro
|
|
18
18
|
attr_reader :created_at
|
19
19
|
attr_reader :id
|
20
20
|
attr_reader :mandate_request_currency
|
21
|
+
attr_reader :mandate_request_description
|
21
22
|
attr_reader :mandate_request_metadata
|
22
23
|
attr_reader :mandate_request_scheme
|
23
24
|
attr_reader :mandate_request_verify
|
@@ -40,6 +41,7 @@ module GoCardlessPro
|
|
40
41
|
@created_at = object['created_at']
|
41
42
|
@id = object['id']
|
42
43
|
@mandate_request_currency = object['mandate_request_currency']
|
44
|
+
@mandate_request_description = object['mandate_request_description']
|
43
45
|
@mandate_request_metadata = object['mandate_request_metadata']
|
44
46
|
@mandate_request_scheme = object['mandate_request_scheme']
|
45
47
|
@mandate_request_verify = object['mandate_request_verify']
|
@@ -18,24 +18,37 @@ module GoCardlessPro
|
|
18
18
|
#
|
19
19
|
# The details used to create blocks can be exact matches, like a bank
|
20
20
|
# account or an email,
|
21
|
-
# or a more generic match such as an email domain
|
22
|
-
#
|
21
|
+
# or a more generic match such as an email domain or bank name. Please be
|
22
|
+
# careful when creating
|
23
|
+
# blocks for more generic matches as this may block legitimate payers from
|
24
|
+
# using your service.
|
23
25
|
#
|
24
|
-
#
|
25
|
-
# details in a
|
26
|
-
# newly created mandate. If there is a successful match then the mandate is
|
27
|
-
# transitioned
|
28
|
-
# to a "blocked" state.
|
26
|
+
# New block types may be added over time.
|
29
27
|
#
|
30
|
-
#
|
31
|
-
#
|
28
|
+
# A block is in essence a simple rule that is used to match against details
|
29
|
+
# in a newly
|
30
|
+
# created mandate. If there is a successful match then the mandate is
|
31
|
+
# transitioned to a
|
32
|
+
# "blocked" state.
|
32
33
|
#
|
33
|
-
#
|
34
|
+
# Please note:
|
35
|
+
#
|
36
|
+
# - Payments and subscriptions cannot be created against a mandate in
|
37
|
+
# blocked state.
|
38
|
+
# - A mandate can never be transitioned out of the blocked state.
|
39
|
+
#
|
40
|
+
# The one exception to this is when blocking a 'bank_name'. This block will
|
41
|
+
# prevent bank
|
42
|
+
# accounts from being created for banks that match the given name. To ensure
|
43
|
+
# we match
|
44
|
+
# bank names correctly an existing bank account must be used when creating
|
45
|
+
# this block. Please
|
46
|
+
# be aware that we cannot always match a bank account to a given bank name.
|
34
47
|
#
|
35
48
|
# <p class="notice">
|
36
|
-
# This API is currently only available for
|
37
|
-
# <a href="mailto:help@gocardless.com">get in touch</a> if you
|
38
|
-
# use this API.
|
49
|
+
# This API is currently only available for GoCardless Protect+ integrators
|
50
|
+
# - please <a href="mailto:help@gocardless.com">get in touch</a> if you
|
51
|
+
# would like to use this API.
|
39
52
|
# </p>
|
40
53
|
class Block
|
41
54
|
attr_reader :active
|
@@ -0,0 +1,45 @@
|
|
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
|
@@ -0,0 +1,28 @@
|
|
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
|
data/lib/gocardless_pro.rb
CHANGED
@@ -98,6 +98,9 @@ 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
|
+
|
101
104
|
require_relative 'gocardless_pro/resources/payer_authorisation'
|
102
105
|
require_relative 'gocardless_pro/services/payer_authorisations_service'
|
103
106
|
|
@@ -22,6 +22,7 @@ describe GoCardlessPro::Resources::BillingRequestTemplate do
|
|
22
22
|
'created_at' => 'created_at-input',
|
23
23
|
'id' => 'id-input',
|
24
24
|
'mandate_request_currency' => 'mandate_request_currency-input',
|
25
|
+
'mandate_request_description' => 'mandate_request_description-input',
|
25
26
|
'mandate_request_metadata' => 'mandate_request_metadata-input',
|
26
27
|
'mandate_request_scheme' => 'mandate_request_scheme-input',
|
27
28
|
'mandate_request_verify' => 'mandate_request_verify-input',
|
@@ -57,6 +58,8 @@ describe GoCardlessPro::Resources::BillingRequestTemplate do
|
|
57
58
|
|
58
59
|
expect(get_list_response.records.first.mandate_request_currency).to eq('mandate_request_currency-input')
|
59
60
|
|
61
|
+
expect(get_list_response.records.first.mandate_request_description).to eq('mandate_request_description-input')
|
62
|
+
|
60
63
|
expect(get_list_response.records.first.mandate_request_metadata).to eq('mandate_request_metadata-input')
|
61
64
|
|
62
65
|
expect(get_list_response.records.first.mandate_request_scheme).to eq('mandate_request_scheme-input')
|
@@ -101,6 +104,7 @@ describe GoCardlessPro::Resources::BillingRequestTemplate do
|
|
101
104
|
'created_at' => 'created_at-input',
|
102
105
|
'id' => 'id-input',
|
103
106
|
'mandate_request_currency' => 'mandate_request_currency-input',
|
107
|
+
'mandate_request_description' => 'mandate_request_description-input',
|
104
108
|
'mandate_request_metadata' => 'mandate_request_metadata-input',
|
105
109
|
'mandate_request_scheme' => 'mandate_request_scheme-input',
|
106
110
|
'mandate_request_verify' => 'mandate_request_verify-input',
|
@@ -132,6 +136,7 @@ describe GoCardlessPro::Resources::BillingRequestTemplate do
|
|
132
136
|
'created_at' => 'created_at-input',
|
133
137
|
'id' => 'id-input',
|
134
138
|
'mandate_request_currency' => 'mandate_request_currency-input',
|
139
|
+
'mandate_request_description' => 'mandate_request_description-input',
|
135
140
|
'mandate_request_metadata' => 'mandate_request_metadata-input',
|
136
141
|
'mandate_request_scheme' => 'mandate_request_scheme-input',
|
137
142
|
'mandate_request_verify' => 'mandate_request_verify-input',
|
@@ -179,6 +184,7 @@ describe GoCardlessPro::Resources::BillingRequestTemplate do
|
|
179
184
|
'created_at' => 'created_at-input',
|
180
185
|
'id' => 'id-input',
|
181
186
|
'mandate_request_currency' => 'mandate_request_currency-input',
|
187
|
+
'mandate_request_description' => 'mandate_request_description-input',
|
182
188
|
'mandate_request_metadata' => 'mandate_request_metadata-input',
|
183
189
|
'mandate_request_scheme' => 'mandate_request_scheme-input',
|
184
190
|
'mandate_request_verify' => 'mandate_request_verify-input',
|
@@ -220,6 +226,7 @@ describe GoCardlessPro::Resources::BillingRequestTemplate do
|
|
220
226
|
'created_at' => 'created_at-input',
|
221
227
|
'id' => 'id-input',
|
222
228
|
'mandate_request_currency' => 'mandate_request_currency-input',
|
229
|
+
'mandate_request_description' => 'mandate_request_description-input',
|
223
230
|
'mandate_request_metadata' => 'mandate_request_metadata-input',
|
224
231
|
'mandate_request_scheme' => 'mandate_request_scheme-input',
|
225
232
|
'mandate_request_verify' => 'mandate_request_verify-input',
|
@@ -276,6 +283,7 @@ describe GoCardlessPro::Resources::BillingRequestTemplate do
|
|
276
283
|
'created_at' => 'created_at-input',
|
277
284
|
'id' => 'id-input',
|
278
285
|
'mandate_request_currency' => 'mandate_request_currency-input',
|
286
|
+
'mandate_request_description' => 'mandate_request_description-input',
|
279
287
|
'mandate_request_metadata' => 'mandate_request_metadata-input',
|
280
288
|
'mandate_request_scheme' => 'mandate_request_scheme-input',
|
281
289
|
'mandate_request_verify' => 'mandate_request_verify-input',
|
@@ -301,6 +309,7 @@ describe GoCardlessPro::Resources::BillingRequestTemplate do
|
|
301
309
|
'created_at' => 'created_at-input',
|
302
310
|
'id' => 'id-input',
|
303
311
|
'mandate_request_currency' => 'mandate_request_currency-input',
|
312
|
+
'mandate_request_description' => 'mandate_request_description-input',
|
304
313
|
'mandate_request_metadata' => 'mandate_request_metadata-input',
|
305
314
|
'mandate_request_scheme' => 'mandate_request_scheme-input',
|
306
315
|
'mandate_request_verify' => 'mandate_request_verify-input',
|
@@ -326,6 +335,7 @@ describe GoCardlessPro::Resources::BillingRequestTemplate do
|
|
326
335
|
'created_at' => 'created_at-input',
|
327
336
|
'id' => 'id-input',
|
328
337
|
'mandate_request_currency' => 'mandate_request_currency-input',
|
338
|
+
'mandate_request_description' => 'mandate_request_description-input',
|
329
339
|
'mandate_request_metadata' => 'mandate_request_metadata-input',
|
330
340
|
'mandate_request_scheme' => 'mandate_request_scheme-input',
|
331
341
|
'mandate_request_verify' => 'mandate_request_verify-input',
|
@@ -384,6 +394,7 @@ describe GoCardlessPro::Resources::BillingRequestTemplate do
|
|
384
394
|
'created_at' => 'created_at-input',
|
385
395
|
'id' => 'id-input',
|
386
396
|
'mandate_request_currency' => 'mandate_request_currency-input',
|
397
|
+
'mandate_request_description' => 'mandate_request_description-input',
|
387
398
|
'mandate_request_metadata' => 'mandate_request_metadata-input',
|
388
399
|
'mandate_request_scheme' => 'mandate_request_scheme-input',
|
389
400
|
'mandate_request_verify' => 'mandate_request_verify-input',
|
@@ -432,6 +443,7 @@ describe GoCardlessPro::Resources::BillingRequestTemplate do
|
|
432
443
|
'created_at' => 'created_at-input',
|
433
444
|
'id' => 'id-input',
|
434
445
|
'mandate_request_currency' => 'mandate_request_currency-input',
|
446
|
+
'mandate_request_description' => 'mandate_request_description-input',
|
435
447
|
'mandate_request_metadata' => 'mandate_request_metadata-input',
|
436
448
|
'mandate_request_scheme' => 'mandate_request_scheme-input',
|
437
449
|
'mandate_request_verify' => 'mandate_request_verify-input',
|
@@ -475,6 +487,7 @@ describe GoCardlessPro::Resources::BillingRequestTemplate do
|
|
475
487
|
'created_at' => 'created_at-input',
|
476
488
|
'id' => 'id-input',
|
477
489
|
'mandate_request_currency' => 'mandate_request_currency-input',
|
490
|
+
'mandate_request_description' => 'mandate_request_description-input',
|
478
491
|
'mandate_request_metadata' => 'mandate_request_metadata-input',
|
479
492
|
'mandate_request_scheme' => 'mandate_request_scheme-input',
|
480
493
|
'mandate_request_verify' => 'mandate_request_verify-input',
|
@@ -21,6 +21,7 @@ describe GoCardlessPro::Services::BillingRequestTemplatesService do
|
|
21
21
|
'created_at' => 'created_at-input',
|
22
22
|
'id' => 'id-input',
|
23
23
|
'mandate_request_currency' => 'mandate_request_currency-input',
|
24
|
+
'mandate_request_description' => 'mandate_request_description-input',
|
24
25
|
'mandate_request_metadata' => 'mandate_request_metadata-input',
|
25
26
|
'mandate_request_scheme' => 'mandate_request_scheme-input',
|
26
27
|
'mandate_request_verify' => 'mandate_request_verify-input',
|
@@ -61,6 +62,8 @@ describe GoCardlessPro::Services::BillingRequestTemplatesService do
|
|
61
62
|
|
62
63
|
expect(get_list_response.records.first.mandate_request_currency).to eq('mandate_request_currency-input')
|
63
64
|
|
65
|
+
expect(get_list_response.records.first.mandate_request_description).to eq('mandate_request_description-input')
|
66
|
+
|
64
67
|
expect(get_list_response.records.first.mandate_request_metadata).to eq('mandate_request_metadata-input')
|
65
68
|
|
66
69
|
expect(get_list_response.records.first.mandate_request_scheme).to eq('mandate_request_scheme-input')
|
@@ -128,6 +131,7 @@ describe GoCardlessPro::Services::BillingRequestTemplatesService do
|
|
128
131
|
'created_at' => 'created_at-input',
|
129
132
|
'id' => 'id-input',
|
130
133
|
'mandate_request_currency' => 'mandate_request_currency-input',
|
134
|
+
'mandate_request_description' => 'mandate_request_description-input',
|
131
135
|
'mandate_request_metadata' => 'mandate_request_metadata-input',
|
132
136
|
'mandate_request_scheme' => 'mandate_request_scheme-input',
|
133
137
|
'mandate_request_verify' => 'mandate_request_verify-input',
|
@@ -159,6 +163,7 @@ describe GoCardlessPro::Services::BillingRequestTemplatesService do
|
|
159
163
|
'created_at' => 'created_at-input',
|
160
164
|
'id' => 'id-input',
|
161
165
|
'mandate_request_currency' => 'mandate_request_currency-input',
|
166
|
+
'mandate_request_description' => 'mandate_request_description-input',
|
162
167
|
'mandate_request_metadata' => 'mandate_request_metadata-input',
|
163
168
|
'mandate_request_scheme' => 'mandate_request_scheme-input',
|
164
169
|
'mandate_request_verify' => 'mandate_request_verify-input',
|
@@ -199,6 +204,7 @@ describe GoCardlessPro::Services::BillingRequestTemplatesService do
|
|
199
204
|
'created_at' => 'created_at-input',
|
200
205
|
'id' => 'id-input',
|
201
206
|
'mandate_request_currency' => 'mandate_request_currency-input',
|
207
|
+
'mandate_request_description' => 'mandate_request_description-input',
|
202
208
|
'mandate_request_metadata' => 'mandate_request_metadata-input',
|
203
209
|
'mandate_request_scheme' => 'mandate_request_scheme-input',
|
204
210
|
'mandate_request_verify' => 'mandate_request_verify-input',
|
@@ -230,6 +236,7 @@ describe GoCardlessPro::Services::BillingRequestTemplatesService do
|
|
230
236
|
'created_at' => 'created_at-input',
|
231
237
|
'id' => 'id-input',
|
232
238
|
'mandate_request_currency' => 'mandate_request_currency-input',
|
239
|
+
'mandate_request_description' => 'mandate_request_description-input',
|
233
240
|
'mandate_request_metadata' => 'mandate_request_metadata-input',
|
234
241
|
'mandate_request_scheme' => 'mandate_request_scheme-input',
|
235
242
|
'mandate_request_verify' => 'mandate_request_verify-input',
|
@@ -266,6 +273,7 @@ describe GoCardlessPro::Services::BillingRequestTemplatesService do
|
|
266
273
|
'created_at' => 'created_at-input',
|
267
274
|
'id' => 'id-input',
|
268
275
|
'mandate_request_currency' => 'mandate_request_currency-input',
|
276
|
+
'mandate_request_description' => 'mandate_request_description-input',
|
269
277
|
'mandate_request_metadata' => 'mandate_request_metadata-input',
|
270
278
|
'mandate_request_scheme' => 'mandate_request_scheme-input',
|
271
279
|
'mandate_request_verify' => 'mandate_request_verify-input',
|
@@ -300,6 +308,7 @@ describe GoCardlessPro::Services::BillingRequestTemplatesService do
|
|
300
308
|
'created_at' => 'created_at-input',
|
301
309
|
'id' => 'id-input',
|
302
310
|
'mandate_request_currency' => 'mandate_request_currency-input',
|
311
|
+
'mandate_request_description' => 'mandate_request_description-input',
|
303
312
|
'mandate_request_metadata' => 'mandate_request_metadata-input',
|
304
313
|
'mandate_request_scheme' => 'mandate_request_scheme-input',
|
305
314
|
'mandate_request_verify' => 'mandate_request_verify-input',
|
@@ -347,6 +356,7 @@ describe GoCardlessPro::Services::BillingRequestTemplatesService do
|
|
347
356
|
'created_at' => 'created_at-input',
|
348
357
|
'id' => 'id-input',
|
349
358
|
'mandate_request_currency' => 'mandate_request_currency-input',
|
359
|
+
'mandate_request_description' => 'mandate_request_description-input',
|
350
360
|
'mandate_request_metadata' => 'mandate_request_metadata-input',
|
351
361
|
'mandate_request_scheme' => 'mandate_request_scheme-input',
|
352
362
|
'mandate_request_verify' => 'mandate_request_verify-input',
|
@@ -388,6 +398,7 @@ describe GoCardlessPro::Services::BillingRequestTemplatesService do
|
|
388
398
|
'created_at' => 'created_at-input',
|
389
399
|
'id' => 'id-input',
|
390
400
|
'mandate_request_currency' => 'mandate_request_currency-input',
|
401
|
+
'mandate_request_description' => 'mandate_request_description-input',
|
391
402
|
'mandate_request_metadata' => 'mandate_request_metadata-input',
|
392
403
|
'mandate_request_scheme' => 'mandate_request_scheme-input',
|
393
404
|
'mandate_request_verify' => 'mandate_request_verify-input',
|
@@ -499,6 +510,7 @@ describe GoCardlessPro::Services::BillingRequestTemplatesService do
|
|
499
510
|
'created_at' => 'created_at-input',
|
500
511
|
'id' => 'id-input',
|
501
512
|
'mandate_request_currency' => 'mandate_request_currency-input',
|
513
|
+
'mandate_request_description' => 'mandate_request_description-input',
|
502
514
|
'mandate_request_metadata' => 'mandate_request_metadata-input',
|
503
515
|
'mandate_request_scheme' => 'mandate_request_scheme-input',
|
504
516
|
'mandate_request_verify' => 'mandate_request_verify-input',
|
@@ -524,6 +536,7 @@ describe GoCardlessPro::Services::BillingRequestTemplatesService do
|
|
524
536
|
'created_at' => 'created_at-input',
|
525
537
|
'id' => 'id-input',
|
526
538
|
'mandate_request_currency' => 'mandate_request_currency-input',
|
539
|
+
'mandate_request_description' => 'mandate_request_description-input',
|
527
540
|
'mandate_request_metadata' => 'mandate_request_metadata-input',
|
528
541
|
'mandate_request_scheme' => 'mandate_request_scheme-input',
|
529
542
|
'mandate_request_verify' => 'mandate_request_verify-input',
|
@@ -549,6 +562,7 @@ describe GoCardlessPro::Services::BillingRequestTemplatesService do
|
|
549
562
|
'created_at' => 'created_at-input',
|
550
563
|
'id' => 'id-input',
|
551
564
|
'mandate_request_currency' => 'mandate_request_currency-input',
|
565
|
+
'mandate_request_description' => 'mandate_request_description-input',
|
552
566
|
'mandate_request_metadata' => 'mandate_request_metadata-input',
|
553
567
|
'mandate_request_scheme' => 'mandate_request_scheme-input',
|
554
568
|
'mandate_request_verify' => 'mandate_request_verify-input',
|
@@ -630,6 +644,7 @@ describe GoCardlessPro::Services::BillingRequestTemplatesService do
|
|
630
644
|
'created_at' => 'created_at-input',
|
631
645
|
'id' => 'id-input',
|
632
646
|
'mandate_request_currency' => 'mandate_request_currency-input',
|
647
|
+
'mandate_request_description' => 'mandate_request_description-input',
|
633
648
|
'mandate_request_metadata' => 'mandate_request_metadata-input',
|
634
649
|
'mandate_request_scheme' => 'mandate_request_scheme-input',
|
635
650
|
'mandate_request_verify' => 'mandate_request_verify-input',
|
@@ -678,6 +693,7 @@ describe GoCardlessPro::Services::BillingRequestTemplatesService do
|
|
678
693
|
'created_at' => 'created_at-input',
|
679
694
|
'id' => 'id-input',
|
680
695
|
'mandate_request_currency' => 'mandate_request_currency-input',
|
696
|
+
'mandate_request_description' => 'mandate_request_description-input',
|
681
697
|
'mandate_request_metadata' => 'mandate_request_metadata-input',
|
682
698
|
'mandate_request_scheme' => 'mandate_request_scheme-input',
|
683
699
|
'mandate_request_verify' => 'mandate_request_verify-input',
|
@@ -737,6 +753,7 @@ describe GoCardlessPro::Services::BillingRequestTemplatesService do
|
|
737
753
|
'created_at' => 'created_at-input',
|
738
754
|
'id' => 'id-input',
|
739
755
|
'mandate_request_currency' => 'mandate_request_currency-input',
|
756
|
+
'mandate_request_description' => 'mandate_request_description-input',
|
740
757
|
'mandate_request_metadata' => 'mandate_request_metadata-input',
|
741
758
|
'mandate_request_scheme' => 'mandate_request_scheme-input',
|
742
759
|
'mandate_request_verify' => 'mandate_request_verify-input',
|
@@ -0,0 +1,11 @@
|
|
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
|
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.36.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-
|
11
|
+
date: 2022-12-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -181,6 +181,7 @@ 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
|
184
185
|
- lib/gocardless_pro/resources/payer_authorisation.rb
|
185
186
|
- lib/gocardless_pro/resources/payment.rb
|
186
187
|
- lib/gocardless_pro/resources/payout.rb
|
@@ -211,6 +212,7 @@ files:
|
|
211
212
|
- lib/gocardless_pro/services/mandate_import_entries_service.rb
|
212
213
|
- lib/gocardless_pro/services/mandate_imports_service.rb
|
213
214
|
- lib/gocardless_pro/services/mandate_pdfs_service.rb
|
215
|
+
- lib/gocardless_pro/services/mandate_request_constraints_service.rb
|
214
216
|
- lib/gocardless_pro/services/mandates_service.rb
|
215
217
|
- lib/gocardless_pro/services/payer_authorisations_service.rb
|
216
218
|
- lib/gocardless_pro/services/payments_service.rb
|
@@ -247,6 +249,7 @@ files:
|
|
247
249
|
- spec/resources/mandate_import_entry_spec.rb
|
248
250
|
- spec/resources/mandate_import_spec.rb
|
249
251
|
- spec/resources/mandate_pdf_spec.rb
|
252
|
+
- spec/resources/mandate_request_constraints_spec.rb
|
250
253
|
- spec/resources/mandate_spec.rb
|
251
254
|
- spec/resources/payer_authorisation_spec.rb
|
252
255
|
- spec/resources/payment_spec.rb
|
@@ -277,6 +280,7 @@ files:
|
|
277
280
|
- spec/services/mandate_import_entries_service_spec.rb
|
278
281
|
- spec/services/mandate_imports_service_spec.rb
|
279
282
|
- spec/services/mandate_pdfs_service_spec.rb
|
283
|
+
- spec/services/mandate_request_constraints_service_spec.rb
|
280
284
|
- spec/services/mandates_service_spec.rb
|
281
285
|
- spec/services/payer_authorisations_service_spec.rb
|
282
286
|
- spec/services/payments_service_spec.rb
|
@@ -337,6 +341,7 @@ test_files:
|
|
337
341
|
- spec/resources/mandate_import_entry_spec.rb
|
338
342
|
- spec/resources/mandate_import_spec.rb
|
339
343
|
- spec/resources/mandate_pdf_spec.rb
|
344
|
+
- spec/resources/mandate_request_constraints_spec.rb
|
340
345
|
- spec/resources/mandate_spec.rb
|
341
346
|
- spec/resources/payer_authorisation_spec.rb
|
342
347
|
- spec/resources/payment_spec.rb
|
@@ -367,6 +372,7 @@ test_files:
|
|
367
372
|
- spec/services/mandate_import_entries_service_spec.rb
|
368
373
|
- spec/services/mandate_imports_service_spec.rb
|
369
374
|
- spec/services/mandate_pdfs_service_spec.rb
|
375
|
+
- spec/services/mandate_request_constraints_service_spec.rb
|
370
376
|
- spec/services/mandates_service_spec.rb
|
371
377
|
- spec/services/payer_authorisations_service_spec.rb
|
372
378
|
- spec/services/payments_service_spec.rb
|