gocardless_pro 2.2.0 → 2.3.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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8695d142ee02b15a42c2ddbd7565ce06a067fa8f
|
4
|
+
data.tar.gz: 4c0927aad319de86206bdcc71952a47e4a0f1c88
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 91d51533cc01b11109feaba8810bd9b63bd84dc3f4b9fa083d180cac83961acb27026f448c10f32eeb08505745140f9fec010c42cc99762651218f856c85f67c
|
7
|
+
data.tar.gz: 000cec55d848d73509a7bcb60e398036fafb41417c183440d5563c8eee312ab0e076dc728c435e1a387f30c2e473fb6c492dc6bf83ca7b6ee4192cc40d7c18ca
|
@@ -118,7 +118,7 @@ module GoCardlessPro
|
|
118
118
|
'User-Agent' => user_agent.to_s,
|
119
119
|
'Content-Type' => 'application/json',
|
120
120
|
'GoCardless-Client-Library' => 'gocardless-pro-ruby',
|
121
|
-
'GoCardless-Client-Version' => '2.
|
121
|
+
'GoCardless-Client-Version' => '2.3.0',
|
122
122
|
},
|
123
123
|
}
|
124
124
|
end
|
@@ -39,14 +39,18 @@ module GoCardlessPro
|
|
39
39
|
# You may wish to create a [subscription](#core-endpoints-subscriptions) or
|
40
40
|
# [payment](#core-endpoints-payments) at this point.
|
41
41
|
#
|
42
|
-
#
|
43
|
-
#
|
44
|
-
#
|
45
|
-
#
|
42
|
+
# Once you
|
43
|
+
# have [completed](#redirect-flows-complete-a-redirect-flow) the redirect
|
44
|
+
# flow via the API, you should display a confirmation page to your customer,
|
45
|
+
# confirming that their Direct Debit has been set up. You can build your own
|
46
|
+
# page, or redirect to the one we provide in the `confirmation_url`
|
47
|
+
# attribute of the redirect flow.
|
46
48
|
#
|
47
|
-
# Redirect flows expire 30
|
48
|
-
# are first created. You cannot complete an expired
|
49
|
+
# Redirect flows expire 30
|
50
|
+
# minutes after they are first created. You cannot complete an expired
|
51
|
+
# redirect flow.
|
49
52
|
class RedirectFlow
|
53
|
+
attr_reader :confirmation_url
|
50
54
|
attr_reader :created_at
|
51
55
|
attr_reader :description
|
52
56
|
attr_reader :id
|
@@ -60,6 +64,7 @@ module GoCardlessPro
|
|
60
64
|
def initialize(object, response = nil)
|
61
65
|
@object = object
|
62
66
|
|
67
|
+
@confirmation_url = object['confirmation_url']
|
63
68
|
@created_at = object['created_at']
|
64
69
|
@description = object['description']
|
65
70
|
@id = object['id']
|
@@ -15,6 +15,7 @@ describe GoCardlessPro::Resources::RedirectFlow do
|
|
15
15
|
let(:new_resource) do
|
16
16
|
{
|
17
17
|
|
18
|
+
'confirmation_url' => 'confirmation_url-input',
|
18
19
|
'created_at' => 'created_at-input',
|
19
20
|
'description' => 'description-input',
|
20
21
|
'id' => 'id-input',
|
@@ -32,6 +33,7 @@ describe GoCardlessPro::Resources::RedirectFlow do
|
|
32
33
|
body: {
|
33
34
|
'redirect_flows' => {
|
34
35
|
|
36
|
+
'confirmation_url' => 'confirmation_url-input',
|
35
37
|
'created_at' => 'created_at-input',
|
36
38
|
'description' => 'description-input',
|
37
39
|
'id' => 'id-input',
|
@@ -49,6 +51,7 @@ describe GoCardlessPro::Resources::RedirectFlow do
|
|
49
51
|
|
50
52
|
{
|
51
53
|
|
54
|
+
'confirmation_url' => 'confirmation_url-input',
|
52
55
|
'created_at' => 'created_at-input',
|
53
56
|
'description' => 'description-input',
|
54
57
|
'id' => 'id-input',
|
@@ -99,6 +102,7 @@ describe GoCardlessPro::Resources::RedirectFlow do
|
|
99
102
|
let(:new_resource) do
|
100
103
|
{
|
101
104
|
|
105
|
+
'confirmation_url' => 'confirmation_url-input',
|
102
106
|
'created_at' => 'created_at-input',
|
103
107
|
'description' => 'description-input',
|
104
108
|
'id' => 'id-input',
|
@@ -139,6 +143,7 @@ describe GoCardlessPro::Resources::RedirectFlow do
|
|
139
143
|
body: {
|
140
144
|
'redirect_flows' => {
|
141
145
|
|
146
|
+
'confirmation_url' => 'confirmation_url-input',
|
142
147
|
'created_at' => 'created_at-input',
|
143
148
|
'description' => 'description-input',
|
144
149
|
'id' => 'id-input',
|
@@ -175,6 +180,7 @@ describe GoCardlessPro::Resources::RedirectFlow do
|
|
175
180
|
body: {
|
176
181
|
'redirect_flows' => {
|
177
182
|
|
183
|
+
'confirmation_url' => 'confirmation_url-input',
|
178
184
|
'created_at' => 'created_at-input',
|
179
185
|
'description' => 'description-input',
|
180
186
|
'id' => 'id-input',
|
@@ -208,6 +214,7 @@ describe GoCardlessPro::Resources::RedirectFlow do
|
|
208
214
|
body: {
|
209
215
|
'redirect_flows' => {
|
210
216
|
|
217
|
+
'confirmation_url' => 'confirmation_url-input',
|
211
218
|
'created_at' => 'created_at-input',
|
212
219
|
'description' => 'description-input',
|
213
220
|
'id' => 'id-input',
|
@@ -262,6 +269,7 @@ describe GoCardlessPro::Resources::RedirectFlow do
|
|
262
269
|
body: {
|
263
270
|
'redirect_flows' => {
|
264
271
|
|
272
|
+
'confirmation_url' => 'confirmation_url-input',
|
265
273
|
'created_at' => 'created_at-input',
|
266
274
|
'description' => 'description-input',
|
267
275
|
'id' => 'id-input',
|
@@ -300,6 +308,7 @@ describe GoCardlessPro::Resources::RedirectFlow do
|
|
300
308
|
body: {
|
301
309
|
'redirect_flows' => {
|
302
310
|
|
311
|
+
'confirmation_url' => 'confirmation_url-input',
|
303
312
|
'created_at' => 'created_at-input',
|
304
313
|
'description' => 'description-input',
|
305
314
|
'id' => 'id-input',
|
@@ -15,6 +15,7 @@ describe GoCardlessPro::Services::RedirectFlowsService do
|
|
15
15
|
let(:new_resource) do
|
16
16
|
{
|
17
17
|
|
18
|
+
'confirmation_url' => 'confirmation_url-input',
|
18
19
|
'created_at' => 'created_at-input',
|
19
20
|
'description' => 'description-input',
|
20
21
|
'id' => 'id-input',
|
@@ -32,6 +33,7 @@ describe GoCardlessPro::Services::RedirectFlowsService do
|
|
32
33
|
body: {
|
33
34
|
'redirect_flows' => {
|
34
35
|
|
36
|
+
'confirmation_url' => 'confirmation_url-input',
|
35
37
|
'created_at' => 'created_at-input',
|
36
38
|
'description' => 'description-input',
|
37
39
|
'id' => 'id-input',
|
@@ -49,6 +51,7 @@ describe GoCardlessPro::Services::RedirectFlowsService do
|
|
49
51
|
|
50
52
|
{
|
51
53
|
|
54
|
+
'confirmation_url' => 'confirmation_url-input',
|
52
55
|
'created_at' => 'created_at-input',
|
53
56
|
'description' => 'description-input',
|
54
57
|
'id' => 'id-input',
|
@@ -122,6 +125,7 @@ describe GoCardlessPro::Services::RedirectFlowsService do
|
|
122
125
|
let(:new_resource) do
|
123
126
|
{
|
124
127
|
|
128
|
+
'confirmation_url' => 'confirmation_url-input',
|
125
129
|
'created_at' => 'created_at-input',
|
126
130
|
'description' => 'description-input',
|
127
131
|
'id' => 'id-input',
|
@@ -162,6 +166,7 @@ describe GoCardlessPro::Services::RedirectFlowsService do
|
|
162
166
|
body: {
|
163
167
|
'redirect_flows' => {
|
164
168
|
|
169
|
+
'confirmation_url' => 'confirmation_url-input',
|
165
170
|
'created_at' => 'created_at-input',
|
166
171
|
'description' => 'description-input',
|
167
172
|
'id' => 'id-input',
|
@@ -198,6 +203,7 @@ describe GoCardlessPro::Services::RedirectFlowsService do
|
|
198
203
|
body: {
|
199
204
|
'redirect_flows' => {
|
200
205
|
|
206
|
+
'confirmation_url' => 'confirmation_url-input',
|
201
207
|
'created_at' => 'created_at-input',
|
202
208
|
'description' => 'description-input',
|
203
209
|
'id' => 'id-input',
|
@@ -231,6 +237,7 @@ describe GoCardlessPro::Services::RedirectFlowsService do
|
|
231
237
|
body: {
|
232
238
|
'redirect_flows' => {
|
233
239
|
|
240
|
+
'confirmation_url' => 'confirmation_url-input',
|
234
241
|
'created_at' => 'created_at-input',
|
235
242
|
'description' => 'description-input',
|
236
243
|
'id' => 'id-input',
|
@@ -312,6 +319,7 @@ describe GoCardlessPro::Services::RedirectFlowsService do
|
|
312
319
|
body: {
|
313
320
|
'redirect_flows' => {
|
314
321
|
|
322
|
+
'confirmation_url' => 'confirmation_url-input',
|
315
323
|
'created_at' => 'created_at-input',
|
316
324
|
'description' => 'description-input',
|
317
325
|
'id' => 'id-input',
|
@@ -361,6 +369,7 @@ describe GoCardlessPro::Services::RedirectFlowsService do
|
|
361
369
|
body: {
|
362
370
|
'redirect_flows' => {
|
363
371
|
|
372
|
+
'confirmation_url' => 'confirmation_url-input',
|
364
373
|
'created_at' => 'created_at-input',
|
365
374
|
'description' => 'description-input',
|
366
375
|
'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.
|
4
|
+
version: 2.3.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-09-
|
11
|
+
date: 2017-09-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|