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: 39c5c4f0dcfab5cebeeba56aa2e1801e9775a6d0
4
- data.tar.gz: c1cc2f6d595d13011d219282b08fe37301e7e0c2
3
+ metadata.gz: 8695d142ee02b15a42c2ddbd7565ce06a067fa8f
4
+ data.tar.gz: 4c0927aad319de86206bdcc71952a47e4a0f1c88
5
5
  SHA512:
6
- metadata.gz: 3180f056a519890bea499e2daf2c983e296709432c63fb4de98df96ffa446217c5bf595e3df4ffe8e06bf3b1b0204647d377aebfb4ff675113ac1650b0bfdc31
7
- data.tar.gz: 85bb043efad721d43dc239865411f3ba5ce962841153ec92fcdf590cb2ee068ce4f19bca397385415e6c5599786e8bf1b29975ca1be323fd8e81a8a4d3c515c8
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.2.0',
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
- # It is
43
- # recommended that you link the redirect flow to your user object as soon as
44
- # it is created, and attach the created resources to that user in the
45
- # complete step.
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 minutes after they
48
- # are first created. You cannot complete an expired redirect flow.
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']
@@ -4,5 +4,5 @@ end
4
4
 
5
5
  module GoCardlessPro
6
6
  # Current version of the GC gem
7
- VERSION = '2.2.0'.freeze
7
+ VERSION = '2.3.0'.freeze
8
8
  end
@@ -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.2.0
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-01 00:00:00.000000000 Z
11
+ date: 2017-09-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec