recurly 0.4.5 → 0.4.6
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of recurly might be problematic. Click here for more details.
- data/lib/recurly/base.rb +11 -4
- data/lib/recurly/billing_info.rb +2 -1
- data/lib/recurly/charge.rb +3 -1
- data/lib/recurly/credit.rb +3 -1
- data/lib/recurly/subscription.rb +1 -1
- data/lib/recurly/version.rb +1 -1
- data/spec/config/recurly.yml +4 -4
- data/spec/unit/billing_info_spec.rb +1 -0
- data/spec/unit/charge_spec.rb +2 -0
- data/spec/unit/credit_spec.rb +2 -0
- data/spec/unit/subscription_spec.rb +1 -1
- data/spec/vcr/account/accept-language-account/1301979678.yml +14 -12
- data/spec/vcr/account/close/1301979678.yml +41 -35
- data/spec/vcr/account/create-blank/1301979678.yml +11 -9
- data/spec/vcr/account/create-duplicate/1301979678.yml +25 -21
- data/spec/vcr/account/create-min/1301979678.yml +14 -12
- data/spec/vcr/account/create/1301979678.yml +14 -12
- data/spec/vcr/account/find/1301979678.yml +40 -34
- data/spec/vcr/account/list/1301979678.yml +348 -341
- data/spec/vcr/account/update/1301979678.yml +61 -53
- data/spec/vcr/billing/create/1302025874.yml +42 -36
- data/spec/vcr/billing/destroy/1302025874.yml +65 -55
- data/spec/vcr/billing/errors/1302025874.yml +25 -21
- data/spec/vcr/billing/find/1302025874.yml +56 -48
- data/spec/vcr/billing/update/1302025874.yml +56 -48
- data/spec/vcr/charge/create/1297746103.yml +65 -53
- data/spec/vcr/charge/delete-uninvoiced/1297746103.yml +85 -69
- data/spec/vcr/charge/list-all/1297746103.yml +97 -75
- data/spec/vcr/charge/list-invoiced/1297746103.yml +143 -115
- data/spec/vcr/charge/list-pending/1297746103.yml +97 -75
- data/spec/vcr/charge/lookup/1297746103.yml +51 -41
- data/spec/vcr/coupon/create/1299714521.yml +28 -88
- data/spec/vcr/coupon/destroy/1299714521.yml +25 -107
- data/spec/vcr/credit/create/1299714599.yml +51 -41
- data/spec/vcr/credit/delete/1299714599.yml +74 -60
- data/spec/vcr/credit/list/1299714599.yml +97 -75
- data/spec/vcr/credit/lookup/1299714599.yml +51 -41
- data/spec/vcr/invoice/create-no-charges/1297746103.yml +39 -33
- data/spec/vcr/invoice/create/1297746103.yml +86 -72
- data/spec/vcr/invoice/list/1297746103.yml +121 -103
- data/spec/vcr/invoice/lookup/1297746103.yml +84 -72
- data/spec/vcr/plan/all.yml +108 -134
- data/spec/vcr/plan/find.yml +47 -95
- data/spec/vcr/plan/update.yml +152 -66
- data/spec/vcr/subscription/addons/add/1301885121.yml +48 -310
- data/spec/vcr/subscription/addons/create/1301885121.yml +48 -151
- data/spec/vcr/subscription/addons/remove/1301885121.yml +48 -279
- data/spec/vcr/subscription/cancel-with-code/1301881900.yml +132 -135
- data/spec/vcr/subscription/cancel/1301881900.yml +111 -117
- data/spec/vcr/subscription/change1/1301881900.yml +107 -113
- data/spec/vcr/subscription/change2/1301881900.yml +107 -113
- data/spec/vcr/subscription/create/1301881900.yml +50 -65
- data/spec/vcr/subscription/find/1301881900.yml +69 -81
- data/spec/vcr/subscription/reactivate/1301881900.yml +122 -126
- data/spec/vcr/subscription/refund-full/1301881900.yml +84 -153
- data/spec/vcr/subscription/refund-none/1301881900.yml +101 -108
- data/spec/vcr/subscription/refund-partial/1301881900.yml +84 -153
- data/spec/vcr/transaction/all/1301883347.yml +86 -84
- data/spec/vcr/transaction/create-no-account/1301883347.yml +15 -13
- data/spec/vcr/transaction/create-with-account/1301883347.yml +43 -37
- data/spec/vcr/transaction/list-filled/1301883347.yml +115 -101
- data/spec/vcr/transaction/list-initial/1301883347.yml +43 -37
- data/spec/vcr/transaction/lookup/1301883347.yml +118 -102
- data/spec/vcr/transaction/refund/1301883347.yml +58 -50
- data/spec/vcr/transaction/void/1301883347.yml +75 -82
- data/spec/vcr/transparent/post-url/1301879142.yml +29 -25
- metadata +3 -3
@@ -2,7 +2,7 @@
|
|
2
2
|
- !ruby/struct:VCR::HTTPInteraction
|
3
3
|
request: !ruby/struct:VCR::Request
|
4
4
|
method: :post
|
5
|
-
uri: http://api-test%
|
5
|
+
uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts.xml
|
6
6
|
body: |
|
7
7
|
<?xml version="1.0" encoding="UTF-8"?>
|
8
8
|
<account>
|
@@ -20,36 +20,38 @@
|
|
20
20
|
|
21
21
|
headers:
|
22
22
|
authorization:
|
23
|
-
- Basic
|
23
|
+
- Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
|
24
|
+
user-agent:
|
25
|
+
- Recurly Ruby Client v0.4.6
|
24
26
|
content-type:
|
25
27
|
- application/xml
|
26
28
|
accept:
|
27
29
|
- "*/*"
|
28
|
-
user-agent:
|
29
|
-
- Ruby
|
30
30
|
connection:
|
31
31
|
- close
|
32
32
|
response: !ruby/struct:VCR::Response
|
33
33
|
status: !ruby/struct:VCR::ResponseStatus
|
34
34
|
code: 201
|
35
|
-
message: Created
|
35
|
+
message: "Created "
|
36
36
|
headers:
|
37
37
|
cache-control:
|
38
38
|
- no-cache
|
39
39
|
location:
|
40
40
|
- http://app.recurly.local:3000/accounts/subscription-refund-partial-1301881900
|
41
41
|
x-runtime:
|
42
|
-
- "
|
42
|
+
- "477"
|
43
43
|
content-type:
|
44
44
|
- application/xml; charset=utf-8
|
45
45
|
content-length:
|
46
46
|
- "609"
|
47
|
-
|
48
|
-
-
|
47
|
+
server:
|
48
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
|
49
|
+
date:
|
50
|
+
- Thu, 21 Apr 2011 18:04:26 GMT
|
49
51
|
connection:
|
50
52
|
- close
|
51
|
-
|
52
|
-
-
|
53
|
+
set-cookie:
|
54
|
+
- _recurly_session=aafe659c28a68e97a1ea51597764168c; domain=.recurly.local; path=/; HttpOnly
|
53
55
|
body: |
|
54
56
|
<?xml version="1.0" encoding="UTF-8"?>
|
55
57
|
<account>
|
@@ -62,8 +64,8 @@
|
|
62
64
|
<company_name>Recurly Ruby Gem</company_name>
|
63
65
|
<balance_in_cents type="integer">0</balance_in_cents>
|
64
66
|
<closed type="boolean">false</closed>
|
65
|
-
<hosted_login_token>
|
66
|
-
<created_at type="datetime">2011-04-
|
67
|
+
<hosted_login_token>d5198a13bb5b4105900581336219f43a</hosted_login_token>
|
68
|
+
<created_at type="datetime">2011-04-21T18:04:26Z</created_at>
|
67
69
|
<state>active</state>
|
68
70
|
</account>
|
69
71
|
|
@@ -71,40 +73,42 @@
|
|
71
73
|
- !ruby/struct:VCR::HTTPInteraction
|
72
74
|
request: !ruby/struct:VCR::Request
|
73
75
|
method: :get
|
74
|
-
uri: http://api-test%
|
76
|
+
uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/company/plans/paid.xml
|
75
77
|
body:
|
76
78
|
headers:
|
77
79
|
authorization:
|
78
|
-
- Basic
|
80
|
+
- Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
|
81
|
+
user-agent:
|
82
|
+
- Recurly Ruby Client v0.4.6
|
79
83
|
accept:
|
80
84
|
- application/xml
|
81
85
|
accept-encoding:
|
82
86
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
83
|
-
user-agent:
|
84
|
-
- Ruby
|
85
87
|
connection:
|
86
88
|
- close
|
87
89
|
response: !ruby/struct:VCR::Response
|
88
90
|
status: !ruby/struct:VCR::ResponseStatus
|
89
91
|
code: 200
|
90
|
-
message: OK
|
92
|
+
message: "OK "
|
91
93
|
headers:
|
92
94
|
x-runtime:
|
93
|
-
- "
|
95
|
+
- "327"
|
94
96
|
content-type:
|
95
97
|
- application/xml; charset=utf-8
|
96
98
|
etag:
|
97
|
-
- "\"
|
99
|
+
- "\"3888306c167f105a4e165433ee427264\""
|
98
100
|
cache-control:
|
99
101
|
- private, max-age=0, must-revalidate
|
100
102
|
content-length:
|
101
|
-
- "
|
102
|
-
|
103
|
-
-
|
103
|
+
- "612"
|
104
|
+
server:
|
105
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
|
106
|
+
date:
|
107
|
+
- Thu, 21 Apr 2011 18:04:28 GMT
|
104
108
|
connection:
|
105
109
|
- close
|
106
|
-
|
107
|
-
-
|
110
|
+
set-cookie:
|
111
|
+
- _recurly_session=e9af458d1382491a53a4211910e20b7a; domain=.recurly.local; path=/; HttpOnly
|
108
112
|
body: |
|
109
113
|
<?xml version="1.0" encoding="UTF-8"?>
|
110
114
|
<plan>
|
@@ -113,42 +117,20 @@
|
|
113
117
|
<description></description>
|
114
118
|
<success_url></success_url>
|
115
119
|
<cancel_url></cancel_url>
|
116
|
-
<created_at type="datetime">2011-04-
|
117
|
-
<unit_amount_in_cents type="integer">
|
120
|
+
<created_at type="datetime">2011-04-21T17:57:33Z</created_at>
|
121
|
+
<unit_amount_in_cents type="integer">0</unit_amount_in_cents>
|
118
122
|
<setup_fee_in_cents type="integer">0</setup_fee_in_cents>
|
119
123
|
<plan_interval_length type="integer">1</plan_interval_length>
|
120
124
|
<plan_interval_unit>months</plan_interval_unit>
|
121
125
|
<trial_interval_length type="integer">0</trial_interval_length>
|
122
126
|
<trial_interval_unit>months</trial_interval_unit>
|
123
|
-
<latest_version depreciated="true">
|
124
|
-
<version type="integer">1</version>
|
125
|
-
<unit_amount_in_cents type="integer">200</unit_amount_in_cents>
|
126
|
-
<setup_fee_in_cents type="integer">0</setup_fee_in_cents>
|
127
|
-
<plan_interval_length type="integer">1</plan_interval_length>
|
128
|
-
<plan_interval_unit>months</plan_interval_unit>
|
129
|
-
<trial_interval_length type="integer">0</trial_interval_length>
|
130
|
-
<trial_interval_unit>months</trial_interval_unit>
|
131
|
-
<created_at type="datetime">2011-04-04T02:15:00Z</created_at>
|
132
|
-
</latest_version>
|
133
|
-
<add_ons type="array">
|
134
|
-
<add_on>
|
135
|
-
<add_on_code>special</add_on_code>
|
136
|
-
<default_unit_amount_in_cents>1000</default_unit_amount_in_cents>
|
137
|
-
<default_quantity>1</default_quantity>
|
138
|
-
</add_on>
|
139
|
-
<add_on>
|
140
|
-
<add_on_code>special2</add_on_code>
|
141
|
-
<default_unit_amount_in_cents>50000</default_unit_amount_in_cents>
|
142
|
-
<default_quantity>1</default_quantity>
|
143
|
-
</add_on>
|
144
|
-
</add_ons>
|
145
127
|
</plan>
|
146
128
|
|
147
129
|
http_version: "1.1"
|
148
130
|
- !ruby/struct:VCR::HTTPInteraction
|
149
131
|
request: !ruby/struct:VCR::Request
|
150
132
|
method: :post
|
151
|
-
uri: http://api-test%
|
133
|
+
uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/subscription-refund-partial-1301881900/subscription.xml
|
152
134
|
body: |
|
153
135
|
<?xml version="1.0" encoding="UTF-8"?>
|
154
136
|
<subscription>
|
@@ -180,8 +162,8 @@
|
|
180
162
|
<username type="yaml" nil="true"></username>
|
181
163
|
<balance-in-cents type="integer">0</balance-in-cents>
|
182
164
|
<closed type="boolean">false</closed>
|
183
|
-
<hosted-login-token>
|
184
|
-
<created-at type="datetime">2011-04-
|
165
|
+
<hosted-login-token>d5198a13bb5b4105900581336219f43a</hosted-login-token>
|
166
|
+
<created-at type="datetime">2011-04-21T18:04:26Z</created-at>
|
185
167
|
<state>active</state>
|
186
168
|
</account>
|
187
169
|
<addons type="array"/>
|
@@ -189,34 +171,36 @@
|
|
189
171
|
|
190
172
|
headers:
|
191
173
|
authorization:
|
192
|
-
- Basic
|
174
|
+
- Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
|
175
|
+
user-agent:
|
176
|
+
- Recurly Ruby Client v0.4.6
|
193
177
|
content-type:
|
194
178
|
- application/xml
|
195
179
|
accept:
|
196
180
|
- "*/*"
|
197
|
-
user-agent:
|
198
|
-
- Ruby
|
199
181
|
connection:
|
200
182
|
- close
|
201
183
|
response: !ruby/struct:VCR::Response
|
202
184
|
status: !ruby/struct:VCR::ResponseStatus
|
203
185
|
code: 201
|
204
|
-
message: Created
|
186
|
+
message: "Created "
|
205
187
|
headers:
|
206
188
|
cache-control:
|
207
189
|
- no-cache
|
208
190
|
x-runtime:
|
209
|
-
- "
|
191
|
+
- "3138"
|
210
192
|
content-type:
|
211
193
|
- application/xml; charset=utf-8
|
212
194
|
content-length:
|
213
|
-
- "
|
214
|
-
|
215
|
-
-
|
195
|
+
- "985"
|
196
|
+
server:
|
197
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
|
198
|
+
date:
|
199
|
+
- Thu, 21 Apr 2011 18:04:34 GMT
|
216
200
|
connection:
|
217
201
|
- close
|
218
|
-
|
219
|
-
-
|
202
|
+
set-cookie:
|
203
|
+
- _recurly_session=e726e4b3eb95d4f29f7db023df8eff3a; domain=.recurly.local; path=/; HttpOnly
|
220
204
|
body: |
|
221
205
|
<?xml version="1.0" encoding="UTF-8"?>
|
222
206
|
<subscription>
|
@@ -228,12 +212,13 @@
|
|
228
212
|
</plan>
|
229
213
|
<state>active</state>
|
230
214
|
<quantity type="integer">1</quantity>
|
231
|
-
<
|
232
|
-
<
|
215
|
+
<unit_amount_in_cents type="integer">0</unit_amount_in_cents>
|
216
|
+
<total_amount_in_cents type="integer">0</total_amount_in_cents>
|
217
|
+
<activated_at type="datetime">2011-04-21T18:04:31Z</activated_at>
|
233
218
|
<canceled_at nil="true" type="datetime"></canceled_at>
|
234
219
|
<expires_at nil="true" type="datetime"></expires_at>
|
235
|
-
<current_period_started_at type="datetime">2011-04-
|
236
|
-
<current_period_ends_at type="datetime">2011-05-
|
220
|
+
<current_period_started_at type="datetime">2011-04-21T18:04:31Z</current_period_started_at>
|
221
|
+
<current_period_ends_at type="datetime">2011-05-21T18:04:31Z</current_period_ends_at>
|
237
222
|
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
238
223
|
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
239
224
|
<add_ons type="array">
|
@@ -244,40 +229,42 @@
|
|
244
229
|
- !ruby/struct:VCR::HTTPInteraction
|
245
230
|
request: !ruby/struct:VCR::Request
|
246
231
|
method: :get
|
247
|
-
uri: http://api-test%
|
232
|
+
uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/subscription-refund-partial-1301881900/subscription.xml
|
248
233
|
body:
|
249
234
|
headers:
|
250
235
|
authorization:
|
251
|
-
- Basic
|
236
|
+
- Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
|
237
|
+
user-agent:
|
238
|
+
- Recurly Ruby Client v0.4.6
|
252
239
|
accept:
|
253
240
|
- application/xml
|
254
241
|
accept-encoding:
|
255
242
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
256
|
-
user-agent:
|
257
|
-
- Ruby
|
258
243
|
connection:
|
259
244
|
- close
|
260
245
|
response: !ruby/struct:VCR::Response
|
261
246
|
status: !ruby/struct:VCR::ResponseStatus
|
262
247
|
code: 200
|
263
|
-
message: OK
|
248
|
+
message: "OK "
|
264
249
|
headers:
|
265
250
|
x-runtime:
|
266
|
-
- "
|
251
|
+
- "273"
|
267
252
|
content-type:
|
268
253
|
- application/xml; charset=utf-8
|
269
254
|
etag:
|
270
|
-
- "\"
|
255
|
+
- "\"68ae9fa75472e998448cc34c7fed6e3f\""
|
271
256
|
cache-control:
|
272
257
|
- private, max-age=0, must-revalidate
|
273
258
|
content-length:
|
274
|
-
- "
|
275
|
-
|
276
|
-
-
|
259
|
+
- "985"
|
260
|
+
server:
|
261
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
|
262
|
+
date:
|
263
|
+
- Thu, 21 Apr 2011 18:04:36 GMT
|
277
264
|
connection:
|
278
265
|
- close
|
279
|
-
|
280
|
-
-
|
266
|
+
set-cookie:
|
267
|
+
- _recurly_session=3bc9c76a4ab09ed5c27a6d6d06d968b9; domain=.recurly.local; path=/; HttpOnly
|
281
268
|
body: |
|
282
269
|
<?xml version="1.0" encoding="UTF-8"?>
|
283
270
|
<subscription>
|
@@ -289,12 +276,13 @@
|
|
289
276
|
</plan>
|
290
277
|
<state>active</state>
|
291
278
|
<quantity type="integer">1</quantity>
|
292
|
-
<
|
293
|
-
<
|
279
|
+
<unit_amount_in_cents type="integer">0</unit_amount_in_cents>
|
280
|
+
<total_amount_in_cents type="integer">0</total_amount_in_cents>
|
281
|
+
<activated_at type="datetime">2011-04-21T18:04:31Z</activated_at>
|
294
282
|
<canceled_at nil="true" type="datetime"></canceled_at>
|
295
283
|
<expires_at nil="true" type="datetime"></expires_at>
|
296
|
-
<current_period_started_at type="datetime">2011-04-
|
297
|
-
<current_period_ends_at type="datetime">2011-05-
|
284
|
+
<current_period_started_at type="datetime">2011-04-21T18:04:31Z</current_period_started_at>
|
285
|
+
<current_period_ends_at type="datetime">2011-05-21T18:04:31Z</current_period_ends_at>
|
298
286
|
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
299
287
|
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
300
288
|
<add_ons type="array">
|
@@ -305,99 +293,42 @@
|
|
305
293
|
- !ruby/struct:VCR::HTTPInteraction
|
306
294
|
request: !ruby/struct:VCR::Request
|
307
295
|
method: :delete
|
308
|
-
uri: http://api-test%
|
296
|
+
uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/subscription-refund-partial-1301881900/subscription.xml?refund=partial
|
309
297
|
body:
|
310
298
|
headers:
|
311
299
|
authorization:
|
312
|
-
- Basic
|
313
|
-
accept:
|
314
|
-
- application/xml
|
300
|
+
- Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
|
315
301
|
user-agent:
|
316
|
-
- Ruby
|
317
|
-
connection:
|
318
|
-
- close
|
319
|
-
response: !ruby/struct:VCR::Response
|
320
|
-
status: !ruby/struct:VCR::ResponseStatus
|
321
|
-
code: 200
|
322
|
-
message: OK
|
323
|
-
headers:
|
324
|
-
x-runtime:
|
325
|
-
- "898"
|
326
|
-
content-type:
|
327
|
-
- application/xml; charset=utf-8
|
328
|
-
etag:
|
329
|
-
- "\"5f56cd6e80f5913d4fe11a692b52af51\""
|
330
|
-
cache-control:
|
331
|
-
- private, max-age=0, must-revalidate
|
332
|
-
content-length:
|
333
|
-
- "942"
|
334
|
-
set-cookie:
|
335
|
-
- _recurly_session=f50115a2a5d1c1354a2d19c44628502f; domain=.recurly.local; path=/; HttpOnly
|
336
|
-
connection:
|
337
|
-
- close
|
338
|
-
server:
|
339
|
-
- thin 1.2.7 codename No Hup
|
340
|
-
body: |
|
341
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
342
|
-
<subscription>
|
343
|
-
<id>subscription-refund-partial-1301881900</id>
|
344
|
-
<account_code>subscription-refund-partial-1301881900</account_code>
|
345
|
-
<plan>
|
346
|
-
<plan_code>paid</plan_code>
|
347
|
-
<name>Paid</name>
|
348
|
-
</plan>
|
349
|
-
<state>expired</state>
|
350
|
-
<quantity type="integer">1</quantity>
|
351
|
-
<total_amount_in_cents type="integer">200</total_amount_in_cents>
|
352
|
-
<activated_at type="datetime">2011-04-05T19:47:37Z</activated_at>
|
353
|
-
<canceled_at type="datetime">2011-04-05T19:47:45Z</canceled_at>
|
354
|
-
<expires_at type="datetime">2011-05-05T19:47:37Z</expires_at>
|
355
|
-
<current_period_started_at type="datetime">2011-04-05T19:47:37Z</current_period_started_at>
|
356
|
-
<current_period_ends_at type="datetime">2011-05-05T19:47:37Z</current_period_ends_at>
|
357
|
-
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
358
|
-
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
359
|
-
<add_ons type="array">
|
360
|
-
</add_ons>
|
361
|
-
</subscription>
|
362
|
-
|
363
|
-
http_version: "1.1"
|
364
|
-
- !ruby/struct:VCR::HTTPInteraction
|
365
|
-
request: !ruby/struct:VCR::Request
|
366
|
-
method: :get
|
367
|
-
uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/subscription-refund-partial-1301881900/subscription.xml
|
368
|
-
body:
|
369
|
-
headers:
|
370
|
-
authorization:
|
371
|
-
- Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
|
302
|
+
- Recurly Ruby Client v0.4.6
|
372
303
|
accept:
|
373
304
|
- application/xml
|
374
|
-
accept-encoding:
|
375
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
376
|
-
user-agent:
|
377
|
-
- Ruby
|
378
305
|
connection:
|
379
306
|
- close
|
380
307
|
response: !ruby/struct:VCR::Response
|
381
308
|
status: !ruby/struct:VCR::ResponseStatus
|
382
|
-
code:
|
383
|
-
message:
|
309
|
+
code: 422
|
310
|
+
message: ""
|
384
311
|
headers:
|
385
312
|
cache-control:
|
386
313
|
- no-cache
|
314
|
+
x-runtime:
|
315
|
+
- "237"
|
387
316
|
content-type:
|
388
317
|
- application/xml; charset=utf-8
|
389
318
|
content-length:
|
390
|
-
- "
|
391
|
-
|
392
|
-
-
|
319
|
+
- "135"
|
320
|
+
server:
|
321
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
|
322
|
+
date:
|
323
|
+
- Thu, 21 Apr 2011 18:04:38 GMT
|
393
324
|
connection:
|
394
325
|
- close
|
395
|
-
|
396
|
-
-
|
326
|
+
set-cookie:
|
327
|
+
- _recurly_session=ed56b3c26d5ddc7e019ca17186743758; domain=.recurly.local; path=/; HttpOnly
|
397
328
|
body: |
|
398
329
|
<?xml version="1.0" encoding="UTF-8"?>
|
399
330
|
<errors>
|
400
|
-
<error>
|
331
|
+
<error>The transaction cannot be refunded. Please contact support.</error>
|
401
332
|
</errors>
|
402
333
|
|
403
334
|
http_version: "1.1"
|
@@ -2,51 +2,53 @@
|
|
2
2
|
- !ruby/struct:VCR::HTTPInteraction
|
3
3
|
request: !ruby/struct:VCR::Request
|
4
4
|
method: :get
|
5
|
-
uri: http://api-test%
|
5
|
+
uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/transactions.xml
|
6
6
|
body:
|
7
7
|
headers:
|
8
8
|
authorization:
|
9
|
-
- Basic
|
9
|
+
- Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
|
10
|
+
user-agent:
|
11
|
+
- Recurly Ruby Client v0.4.6
|
10
12
|
accept:
|
11
13
|
- application/xml
|
12
14
|
accept-encoding:
|
13
15
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
-
user-agent:
|
15
|
-
- Ruby
|
16
16
|
connection:
|
17
17
|
- close
|
18
18
|
response: !ruby/struct:VCR::Response
|
19
19
|
status: !ruby/struct:VCR::ResponseStatus
|
20
20
|
code: 200
|
21
|
-
message: OK
|
21
|
+
message: "OK "
|
22
22
|
headers:
|
23
23
|
x-runtime:
|
24
|
-
- "
|
24
|
+
- "315"
|
25
25
|
content-type:
|
26
26
|
- application/xml; charset=utf-8
|
27
27
|
etag:
|
28
|
-
- "\"
|
28
|
+
- "\"497671dffb838f08811a5e372261d9cc\""
|
29
29
|
cache-control:
|
30
30
|
- private, max-age=0, must-revalidate
|
31
31
|
content-length:
|
32
|
-
- "
|
33
|
-
|
34
|
-
-
|
32
|
+
- "15590"
|
33
|
+
server:
|
34
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
|
35
|
+
date:
|
36
|
+
- Thu, 21 Apr 2011 18:05:10 GMT
|
35
37
|
connection:
|
36
38
|
- close
|
37
|
-
|
38
|
-
-
|
39
|
+
set-cookie:
|
40
|
+
- _recurly_session=83ddc2d0a3725db2473fc3f05f95647b; domain=.recurly.local; path=/; HttpOnly
|
39
41
|
body: |
|
40
42
|
<?xml version="1.0" encoding="UTF-8"?>
|
41
43
|
<transactions type="collection">
|
42
44
|
<current_page type="integer">1</current_page>
|
43
45
|
<per_page type="integer">20</per_page>
|
44
|
-
<total_entries type="integer">
|
46
|
+
<total_entries type="integer">28</total_entries>
|
45
47
|
<transaction type="Payment">
|
46
|
-
<id>
|
48
|
+
<id>af62b155590c43a588e7d0a33f988bdd</id>
|
47
49
|
<account_code>transaction-create-with-account-1301883347</account_code>
|
48
50
|
<action>purchase</action>
|
49
|
-
<date type="datetime">2011-04-
|
51
|
+
<date type="datetime">2011-04-21T18:05:07Z</date>
|
50
52
|
<amount_in_cents type="integer">700</amount_in_cents>
|
51
53
|
<status>success</status>
|
52
54
|
<message>Test Gateway: Successful test transaction</message>
|
@@ -60,10 +62,10 @@
|
|
60
62
|
<refundable type="boolean">true</refundable>
|
61
63
|
</transaction>
|
62
64
|
<transaction type="Payment">
|
63
|
-
<id>
|
65
|
+
<id>31a4a0767c124abc95ca6f1d346e3b57</id>
|
64
66
|
<account_code>transaction-create-with-account-1301883347</account_code>
|
65
67
|
<action>authorization</action>
|
66
|
-
<date type="datetime">2011-04-
|
68
|
+
<date type="datetime">2011-04-21T18:05:03Z</date>
|
67
69
|
<amount_in_cents type="integer">0</amount_in_cents>
|
68
70
|
<status>success</status>
|
69
71
|
<message>Test Gateway: Successful test transaction</message>
|
@@ -77,10 +79,10 @@
|
|
77
79
|
<refundable type="boolean">true</refundable>
|
78
80
|
</transaction>
|
79
81
|
<transaction type="Payment">
|
80
|
-
<id>
|
82
|
+
<id>ab463efa4d514c58b1e34bd44c07f378</id>
|
81
83
|
<account_code>transaction-create-with-accout-1301883347</account_code>
|
82
84
|
<action>purchase</action>
|
83
|
-
<date type="datetime">2011-04-
|
85
|
+
<date type="datetime">2011-04-21T18:04:56Z</date>
|
84
86
|
<amount_in_cents type="integer">700</amount_in_cents>
|
85
87
|
<status>success</status>
|
86
88
|
<message>Test Gateway: Successful test transaction</message>
|
@@ -94,11 +96,11 @@
|
|
94
96
|
<refundable type="boolean">true</refundable>
|
95
97
|
</transaction>
|
96
98
|
<transaction type="Payment">
|
97
|
-
<id>
|
99
|
+
<id>51e47fc5b5094248a71924754df501eb</id>
|
98
100
|
<account_code>subscription-refund-none-1301881900</account_code>
|
99
|
-
<action>
|
100
|
-
<date type="datetime">2011-04-
|
101
|
-
<amount_in_cents type="integer">
|
101
|
+
<action>authorization</action>
|
102
|
+
<date type="datetime">2011-04-21T18:04:46Z</date>
|
103
|
+
<amount_in_cents type="integer">0</amount_in_cents>
|
102
104
|
<status>success</status>
|
103
105
|
<message>Test Gateway: Successful test transaction</message>
|
104
106
|
<reference>12345</reference>
|
@@ -107,15 +109,15 @@
|
|
107
109
|
<avs_result_street>Y</avs_result_street>
|
108
110
|
<avs_result_postal>Y</avs_result_postal>
|
109
111
|
<test type="boolean">true</test>
|
110
|
-
<voidable type="boolean">
|
112
|
+
<voidable type="boolean">false</voidable>
|
111
113
|
<refundable type="boolean">true</refundable>
|
112
114
|
</transaction>
|
113
115
|
<transaction type="Payment">
|
114
|
-
<id>
|
116
|
+
<id>ba65bfd84ea044aeb542efc75b68f50d</id>
|
115
117
|
<account_code>subscription-refund-partial-1301881900</account_code>
|
116
|
-
<action>
|
117
|
-
<date type="datetime">2011-04-
|
118
|
-
<amount_in_cents type="integer">
|
118
|
+
<action>authorization</action>
|
119
|
+
<date type="datetime">2011-04-21T18:04:32Z</date>
|
120
|
+
<amount_in_cents type="integer">0</amount_in_cents>
|
119
121
|
<status>success</status>
|
120
122
|
<message>Test Gateway: Successful test transaction</message>
|
121
123
|
<reference>12345</reference>
|
@@ -124,16 +126,16 @@
|
|
124
126
|
<avs_result_street>Y</avs_result_street>
|
125
127
|
<avs_result_postal>Y</avs_result_postal>
|
126
128
|
<test type="boolean">true</test>
|
127
|
-
<voidable type="boolean">
|
129
|
+
<voidable type="boolean">false</voidable>
|
128
130
|
<refundable type="boolean">true</refundable>
|
129
131
|
</transaction>
|
130
132
|
<transaction type="Payment">
|
131
|
-
<id>
|
133
|
+
<id>9e8157319a4045099b90a2bd7c856223</id>
|
132
134
|
<account_code>subscription-refund-full-1301881900</account_code>
|
133
|
-
<action>
|
134
|
-
<date type="datetime">2011-04-
|
135
|
-
<amount_in_cents type="integer">
|
136
|
-
<status>
|
135
|
+
<action>authorization</action>
|
136
|
+
<date type="datetime">2011-04-21T18:04:19Z</date>
|
137
|
+
<amount_in_cents type="integer">0</amount_in_cents>
|
138
|
+
<status>success</status>
|
137
139
|
<message>Test Gateway: Successful test transaction</message>
|
138
140
|
<reference>12345</reference>
|
139
141
|
<cvv_result code="M">Match</cvv_result>
|
@@ -142,14 +144,14 @@
|
|
142
144
|
<avs_result_postal>Y</avs_result_postal>
|
143
145
|
<test type="boolean">true</test>
|
144
146
|
<voidable type="boolean">false</voidable>
|
145
|
-
<refundable type="boolean">
|
147
|
+
<refundable type="boolean">true</refundable>
|
146
148
|
</transaction>
|
147
149
|
<transaction type="Payment">
|
148
|
-
<id>
|
150
|
+
<id>66b6c717a12a44f69868a6847c598e5c</id>
|
149
151
|
<account_code>subscription-cancel-with-code-1301881900</account_code>
|
150
|
-
<action>
|
151
|
-
<date type="datetime">2011-04-
|
152
|
-
<amount_in_cents type="integer">
|
152
|
+
<action>authorization</action>
|
153
|
+
<date type="datetime">2011-04-21T18:04:02Z</date>
|
154
|
+
<amount_in_cents type="integer">0</amount_in_cents>
|
153
155
|
<status>success</status>
|
154
156
|
<message>Test Gateway: Successful test transaction</message>
|
155
157
|
<reference>12345</reference>
|
@@ -158,15 +160,15 @@
|
|
158
160
|
<avs_result_street>Y</avs_result_street>
|
159
161
|
<avs_result_postal>Y</avs_result_postal>
|
160
162
|
<test type="boolean">true</test>
|
161
|
-
<voidable type="boolean">
|
163
|
+
<voidable type="boolean">false</voidable>
|
162
164
|
<refundable type="boolean">true</refundable>
|
163
165
|
</transaction>
|
164
166
|
<transaction type="Payment">
|
165
|
-
<id>
|
167
|
+
<id>be6099e92061416f84d9171ff3140fd9</id>
|
166
168
|
<account_code>subscription-cancel-1301881900</account_code>
|
167
|
-
<action>
|
168
|
-
<date type="datetime">2011-04-
|
169
|
-
<amount_in_cents type="integer">
|
169
|
+
<action>authorization</action>
|
170
|
+
<date type="datetime">2011-04-21T18:03:48Z</date>
|
171
|
+
<amount_in_cents type="integer">0</amount_in_cents>
|
170
172
|
<status>success</status>
|
171
173
|
<message>Test Gateway: Successful test transaction</message>
|
172
174
|
<reference>12345</reference>
|
@@ -175,15 +177,15 @@
|
|
175
177
|
<avs_result_street>Y</avs_result_street>
|
176
178
|
<avs_result_postal>Y</avs_result_postal>
|
177
179
|
<test type="boolean">true</test>
|
178
|
-
<voidable type="boolean">
|
180
|
+
<voidable type="boolean">false</voidable>
|
179
181
|
<refundable type="boolean">true</refundable>
|
180
182
|
</transaction>
|
181
183
|
<transaction type="Payment">
|
182
|
-
<id>
|
184
|
+
<id>40fe56b3405440cb97da8866071cd3b1</id>
|
183
185
|
<account_code>subscription-reactivate-1301881900</account_code>
|
184
|
-
<action>
|
185
|
-
<date type="datetime">2011-04-
|
186
|
-
<amount_in_cents type="integer">
|
186
|
+
<action>authorization</action>
|
187
|
+
<date type="datetime">2011-04-21T18:03:31Z</date>
|
188
|
+
<amount_in_cents type="integer">0</amount_in_cents>
|
187
189
|
<status>success</status>
|
188
190
|
<message>Test Gateway: Successful test transaction</message>
|
189
191
|
<reference>12345</reference>
|
@@ -192,15 +194,15 @@
|
|
192
194
|
<avs_result_street>Y</avs_result_street>
|
193
195
|
<avs_result_postal>Y</avs_result_postal>
|
194
196
|
<test type="boolean">true</test>
|
195
|
-
<voidable type="boolean">
|
197
|
+
<voidable type="boolean">false</voidable>
|
196
198
|
<refundable type="boolean">true</refundable>
|
197
199
|
</transaction>
|
198
200
|
<transaction type="Payment">
|
199
|
-
<id>
|
201
|
+
<id>98011a71525c47419025553b0a920620</id>
|
200
202
|
<account_code>1301881900</account_code>
|
201
|
-
<action>
|
202
|
-
<date type="datetime">2011-04-
|
203
|
-
<amount_in_cents type="integer">
|
203
|
+
<action>authorization</action>
|
204
|
+
<date type="datetime">2011-04-21T18:03:15Z</date>
|
205
|
+
<amount_in_cents type="integer">0</amount_in_cents>
|
204
206
|
<status>success</status>
|
205
207
|
<message>Test Gateway: Successful test transaction</message>
|
206
208
|
<reference>12345</reference>
|
@@ -209,15 +211,15 @@
|
|
209
211
|
<avs_result_street>Y</avs_result_street>
|
210
212
|
<avs_result_postal>Y</avs_result_postal>
|
211
213
|
<test type="boolean">true</test>
|
212
|
-
<voidable type="boolean">
|
214
|
+
<voidable type="boolean">false</voidable>
|
213
215
|
<refundable type="boolean">true</refundable>
|
214
216
|
</transaction>
|
215
217
|
<transaction type="Payment">
|
216
|
-
<id>
|
218
|
+
<id>08c8897b1e5b408ba9148565c8c73a36</id>
|
217
219
|
<account_code>subscription-change1-1301881900</account_code>
|
218
|
-
<action>
|
219
|
-
<date type="datetime">2011-04-
|
220
|
-
<amount_in_cents type="integer">
|
220
|
+
<action>authorization</action>
|
221
|
+
<date type="datetime">2011-04-21T18:02:58Z</date>
|
222
|
+
<amount_in_cents type="integer">0</amount_in_cents>
|
221
223
|
<status>success</status>
|
222
224
|
<message>Test Gateway: Successful test transaction</message>
|
223
225
|
<reference>12345</reference>
|
@@ -226,15 +228,15 @@
|
|
226
228
|
<avs_result_street>Y</avs_result_street>
|
227
229
|
<avs_result_postal>Y</avs_result_postal>
|
228
230
|
<test type="boolean">true</test>
|
229
|
-
<voidable type="boolean">
|
231
|
+
<voidable type="boolean">false</voidable>
|
230
232
|
<refundable type="boolean">true</refundable>
|
231
233
|
</transaction>
|
232
234
|
<transaction type="Payment">
|
233
|
-
<id>
|
235
|
+
<id>5d5fcdc794f2453d8822305a754bfd7e</id>
|
234
236
|
<account_code>subscription-create-1301881900</account_code>
|
235
|
-
<action>
|
236
|
-
<date type="datetime">2011-04-
|
237
|
-
<amount_in_cents type="integer">
|
237
|
+
<action>authorization</action>
|
238
|
+
<date type="datetime">2011-04-21T18:02:49Z</date>
|
239
|
+
<amount_in_cents type="integer">0</amount_in_cents>
|
238
240
|
<status>success</status>
|
239
241
|
<message>Test Gateway: Successful test transaction</message>
|
240
242
|
<reference>12345</reference>
|
@@ -243,15 +245,15 @@
|
|
243
245
|
<avs_result_street>Y</avs_result_street>
|
244
246
|
<avs_result_postal>Y</avs_result_postal>
|
245
247
|
<test type="boolean">true</test>
|
246
|
-
<voidable type="boolean">
|
248
|
+
<voidable type="boolean">false</voidable>
|
247
249
|
<refundable type="boolean">true</refundable>
|
248
250
|
</transaction>
|
249
251
|
<transaction type="Payment">
|
250
|
-
<id>
|
252
|
+
<id>7c387c9cd1224884a10745b65ebd1e0f</id>
|
251
253
|
<account_code>subscription-find-1301881900</account_code>
|
252
|
-
<action>
|
253
|
-
<date type="datetime">2011-04-
|
254
|
-
<amount_in_cents type="integer">
|
254
|
+
<action>authorization</action>
|
255
|
+
<date type="datetime">2011-04-21T18:02:38Z</date>
|
256
|
+
<amount_in_cents type="integer">0</amount_in_cents>
|
255
257
|
<status>success</status>
|
256
258
|
<message>Test Gateway: Successful test transaction</message>
|
257
259
|
<reference>12345</reference>
|
@@ -260,14 +262,14 @@
|
|
260
262
|
<avs_result_street>Y</avs_result_street>
|
261
263
|
<avs_result_postal>Y</avs_result_postal>
|
262
264
|
<test type="boolean">true</test>
|
263
|
-
<voidable type="boolean">
|
265
|
+
<voidable type="boolean">false</voidable>
|
264
266
|
<refundable type="boolean">true</refundable>
|
265
267
|
</transaction>
|
266
268
|
<transaction type="Payment">
|
267
|
-
<id>
|
269
|
+
<id>d579ddb96fb74fadb7e9cb19e4d75378</id>
|
268
270
|
<account_code>invoice-lookup-1297746103</account_code>
|
269
271
|
<action>authorization</action>
|
270
|
-
<date type="datetime">2011-04-
|
272
|
+
<date type="datetime">2011-04-21T18:02:03Z</date>
|
271
273
|
<amount_in_cents type="integer">0</amount_in_cents>
|
272
274
|
<status>success</status>
|
273
275
|
<message>Test Gateway: Successful test transaction</message>
|
@@ -281,10 +283,10 @@
|
|
281
283
|
<refundable type="boolean">true</refundable>
|
282
284
|
</transaction>
|
283
285
|
<transaction type="Payment">
|
284
|
-
<id>
|
286
|
+
<id>8e1c267ed3824f15bde31b0a34023d56</id>
|
285
287
|
<account_code>invoice-list-1297746103</account_code>
|
286
288
|
<action>authorization</action>
|
287
|
-
<date type="datetime">2011-04-
|
289
|
+
<date type="datetime">2011-04-21T18:01:48Z</date>
|
288
290
|
<amount_in_cents type="integer">0</amount_in_cents>
|
289
291
|
<status>success</status>
|
290
292
|
<message>Test Gateway: Successful test transaction</message>
|
@@ -298,10 +300,10 @@
|
|
298
300
|
<refundable type="boolean">true</refundable>
|
299
301
|
</transaction>
|
300
302
|
<transaction type="Payment">
|
301
|
-
<id>
|
303
|
+
<id>ea847adaeff54e83b67c2eaf7b50b034</id>
|
302
304
|
<account_code>invoice-create-no-charges-1297746103</account_code>
|
303
305
|
<action>authorization</action>
|
304
|
-
<date type="datetime">2011-04-
|
306
|
+
<date type="datetime">2011-04-21T18:01:41Z</date>
|
305
307
|
<amount_in_cents type="integer">0</amount_in_cents>
|
306
308
|
<status>success</status>
|
307
309
|
<message>Test Gateway: Successful test transaction</message>
|
@@ -315,10 +317,10 @@
|
|
315
317
|
<refundable type="boolean">true</refundable>
|
316
318
|
</transaction>
|
317
319
|
<transaction type="Payment">
|
318
|
-
<id>
|
320
|
+
<id>8990eac339af4de1966aeb887d06e747</id>
|
319
321
|
<account_code>invoice-create-1297746103</account_code>
|
320
322
|
<action>authorization</action>
|
321
|
-
<date type="datetime">2011-04-
|
323
|
+
<date type="datetime">2011-04-21T18:01:29Z</date>
|
322
324
|
<amount_in_cents type="integer">0</amount_in_cents>
|
323
325
|
<status>success</status>
|
324
326
|
<message>Test Gateway: Successful test transaction</message>
|
@@ -332,10 +334,10 @@
|
|
332
334
|
<refundable type="boolean">true</refundable>
|
333
335
|
</transaction>
|
334
336
|
<transaction type="Payment">
|
335
|
-
<id>
|
337
|
+
<id>ce7494260b8d4af1a423ba95d24b5342</id>
|
336
338
|
<account_code>charge-create-1297746103</account_code>
|
337
339
|
<action>authorization</action>
|
338
|
-
<date type="datetime">2011-04-
|
340
|
+
<date type="datetime">2011-04-21T18:00:26Z</date>
|
339
341
|
<amount_in_cents type="integer">0</amount_in_cents>
|
340
342
|
<status>success</status>
|
341
343
|
<message>Test Gateway: Successful test transaction</message>
|
@@ -349,10 +351,10 @@
|
|
349
351
|
<refundable type="boolean">true</refundable>
|
350
352
|
</transaction>
|
351
353
|
<transaction type="Payment">
|
352
|
-
<id>
|
354
|
+
<id>b6e81d71c8064689a582c9e9f5084b94</id>
|
353
355
|
<account_code>billing-errors-1302025874</account_code>
|
354
356
|
<action>authorization</action>
|
355
|
-
<date type="datetime">2011-04-
|
357
|
+
<date type="datetime">2011-04-21T17:59:51Z</date>
|
356
358
|
<amount_in_cents type="integer">0</amount_in_cents>
|
357
359
|
<status>declined</status>
|
358
360
|
<message></message>
|
@@ -366,10 +368,10 @@
|
|
366
368
|
<refundable type="boolean">false</refundable>
|
367
369
|
</transaction>
|
368
370
|
<transaction type="Payment">
|
369
|
-
<id>
|
371
|
+
<id>31acafc553864daea3bcb6c1de9399ca</id>
|
370
372
|
<account_code>billing-destroy-1302025874</account_code>
|
371
373
|
<action>authorization</action>
|
372
|
-
<date type="datetime">2011-04-
|
374
|
+
<date type="datetime">2011-04-21T17:59:41Z</date>
|
373
375
|
<amount_in_cents type="integer">0</amount_in_cents>
|
374
376
|
<status>success</status>
|
375
377
|
<message>Test Gateway: Successful test transaction</message>
|