recurly 0.4.2 → 0.4.3
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.rb +1 -0
- data/lib/recurly/base.rb +92 -12
- data/lib/recurly/formats/xml_with_errors.rb +132 -0
- data/lib/recurly/version.rb +1 -1
- data/spec/config/recurly.yml +4 -4
- data/spec/integration/transaction_spec.rb +4 -3
- data/spec/vcr/account/accept-language-account/1297746103.yml +6 -6
- data/spec/vcr/account/close/1297746103.yml +17 -17
- data/spec/vcr/account/create-blank/1297746103.yml +4 -4
- data/spec/vcr/account/create-duplicate/1297746103.yml +10 -10
- data/spec/vcr/account/create-min/1297746103.yml +6 -6
- data/spec/vcr/account/create/1297746103.yml +6 -6
- data/spec/vcr/account/find/1297746103.yml +16 -16
- data/spec/vcr/account/list/1297746103.yml +204 -156
- data/spec/vcr/account/update/1297746103.yml +29 -29
- data/spec/vcr/billing/create/1298594128.yml +21 -21
- data/spec/vcr/billing/destroy/1298594128.yml +28 -28
- data/spec/vcr/billing/find/1298594128.yml +28 -28
- data/spec/vcr/billing/update/1298594128.yml +29 -29
- data/spec/vcr/charge/create/1297746103.yml +29 -29
- data/spec/vcr/charge/delete-uninvoiced/1297746103.yml +32 -32
- data/spec/vcr/charge/list-all/1297746103.yml +41 -41
- data/spec/vcr/charge/list-invoiced/1297746103.yml +68 -68
- data/spec/vcr/charge/list-pending/1297746103.yml +41 -41
- data/spec/vcr/charge/lookup/1297746103.yml +21 -21
- data/spec/vcr/coupon/create/1299714521.yml +25 -25
- data/spec/vcr/coupon/destroy/1299714521.yml +22 -22
- data/spec/vcr/credit/create/1299714599.yml +21 -21
- data/spec/vcr/credit/delete/1299714599.yml +28 -28
- data/spec/vcr/credit/list/1299714599.yml +41 -41
- data/spec/vcr/credit/lookup/1299714599.yml +21 -21
- data/spec/vcr/invoice/create-no-charges/1297746103.yml +18 -18
- data/spec/vcr/invoice/create/1297746103.yml +42 -42
- data/spec/vcr/invoice/list/1297746103.yml +61 -61
- data/spec/vcr/invoice/lookup/1297746103.yml +43 -43
- data/spec/vcr/plan/all.yml +65 -52
- data/spec/vcr/plan/find.yml +58 -34
- data/spec/vcr/plan/update.yml +28 -29
- data/spec/vcr/subscription/addons/add/1297746103.yml +293 -335
- data/spec/vcr/subscription/addons/add/1301884213.yml +480 -0
- data/spec/vcr/subscription/addons/create/1297746103.yml +134 -335
- data/spec/vcr/subscription/addons/create/1301884213.yml +321 -0
- data/spec/vcr/subscription/addons/remove/1297746103.yml +262 -335
- data/spec/vcr/subscription/addons/remove/1301884213.yml +449 -0
- data/spec/vcr/subscription/cancel-with-code/{1297746103.yml → 1301881900.yml} +104 -92
- data/spec/vcr/subscription/cancel/{1297746103.yml → 1301881900.yml} +90 -78
- data/spec/vcr/subscription/change1/{1297746103.yml → 1301881900.yml} +86 -74
- data/spec/vcr/subscription/change2/{1297746103.yml → 1301881900.yml} +86 -74
- data/spec/vcr/subscription/create/{1297746103.yml → 1301881900.yml} +50 -38
- data/spec/vcr/subscription/find/{1297746103.yml → 1301881900.yml} +62 -50
- data/spec/vcr/subscription/reactivate/{1297746103.yml → 1301881900.yml} +95 -83
- data/spec/vcr/subscription/refund-full/{1297746103.yml → 1301881900.yml} +79 -67
- data/spec/vcr/subscription/refund-none/{1297746103.yml → 1301881900.yml} +79 -67
- data/spec/vcr/subscription/refund-partial/{1297746103.yml → 1301881900.yml} +79 -67
- data/spec/vcr/transaction/all/1301883347.yml +387 -0
- data/spec/vcr/transaction/create-no-account/{1300473500.yml → 1301883347.yml} +18 -18
- data/spec/vcr/transaction/create-with-account/{1300473500.yml → 1301883347.yml} +37 -37
- data/spec/vcr/transaction/list-filled/{1300473500.yml → 1301883347.yml} +169 -169
- data/spec/vcr/transaction/list-initial/{1300473500.yml → 1301883347.yml} +39 -39
- data/spec/vcr/transaction/lookup/{1300473500.yml → 1301883347.yml} +119 -119
- data/spec/vcr/transaction/refund/{1300473500.yml → 1301883347.yml} +53 -53
- data/spec/vcr/transaction/void/1301883347.yml +365 -0
- data/spec/vcr/transparent/post-url/{1300476053.yml → 1301879142.yml} +19 -19
- metadata +66 -58
- data/spec/vcr/transaction/all/1300473500.yml +0 -387
- data/spec/vcr/transaction/void/1300473500.yml +0 -620
- data/spec/vcr/transparent/post-url/1300475927.yml +0 -41
- data/spec/vcr/transparent/post-url/1300475952.yml +0 -41
- data/spec/vcr/transparent/post-url/1300476034.yml +0 -125
- data/spec/vcr/transparent/post-url/1300476102.yml +0 -125
- data/spec/vcr/transparent/post-url/1300476126.yml +0 -125
@@ -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%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts.xml
|
6
6
|
body: |
|
7
7
|
<?xml version="1.0" encoding="UTF-8"?>
|
8
8
|
<account>
|
@@ -20,7 +20,7 @@
|
|
20
20
|
|
21
21
|
headers:
|
22
22
|
authorization:
|
23
|
-
- Basic
|
23
|
+
- Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
|
24
24
|
content-type:
|
25
25
|
- application/xml
|
26
26
|
accept:
|
@@ -39,13 +39,13 @@
|
|
39
39
|
location:
|
40
40
|
- http://app.recurly.local:3000/accounts/invoice-list-1297746103
|
41
41
|
x-runtime:
|
42
|
-
- "
|
42
|
+
- "502"
|
43
43
|
content-type:
|
44
44
|
- application/xml; charset=utf-8
|
45
45
|
content-length:
|
46
46
|
- "579"
|
47
47
|
set-cookie:
|
48
|
-
- _recurly_session=
|
48
|
+
- _recurly_session=f9f701a06d856e583153ebd9776797c3; domain=.recurly.local; path=/; HttpOnly
|
49
49
|
connection:
|
50
50
|
- close
|
51
51
|
server:
|
@@ -62,8 +62,8 @@
|
|
62
62
|
<company_name>Recurly Ruby Gem</company_name>
|
63
63
|
<balance_in_cents type="integer">0</balance_in_cents>
|
64
64
|
<closed type="boolean">false</closed>
|
65
|
-
<hosted_login_token>
|
66
|
-
<created_at type="datetime">2011-
|
65
|
+
<hosted_login_token>53469f0fe2e94a98a712cc99ccb2842c</hosted_login_token>
|
66
|
+
<created_at type="datetime">2011-04-04T02:22:22Z</created_at>
|
67
67
|
<state>active</state>
|
68
68
|
</account>
|
69
69
|
|
@@ -71,7 +71,7 @@
|
|
71
71
|
- !ruby/struct:VCR::HTTPInteraction
|
72
72
|
request: !ruby/struct:VCR::Request
|
73
73
|
method: :put
|
74
|
-
uri: http://api-test-
|
74
|
+
uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/invoice-list-1297746103/billing_info.xml
|
75
75
|
body: |
|
76
76
|
<?xml version="1.0" encoding="UTF-8"?>
|
77
77
|
<billing-info>
|
@@ -85,7 +85,7 @@
|
|
85
85
|
<credit-card>
|
86
86
|
<number>4111111111111111</number>
|
87
87
|
<year type="integer">2012</year>
|
88
|
-
<month type="integer">
|
88
|
+
<month type="integer">4</month>
|
89
89
|
<verification-value>123</verification-value>
|
90
90
|
</credit-card>
|
91
91
|
<account-code>invoice-list-1297746103</account-code>
|
@@ -93,7 +93,7 @@
|
|
93
93
|
|
94
94
|
headers:
|
95
95
|
authorization:
|
96
|
-
- Basic
|
96
|
+
- Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
|
97
97
|
content-type:
|
98
98
|
- application/xml
|
99
99
|
accept:
|
@@ -108,17 +108,17 @@
|
|
108
108
|
message: OK
|
109
109
|
headers:
|
110
110
|
x-runtime:
|
111
|
-
- "
|
111
|
+
- "1914"
|
112
112
|
content-type:
|
113
113
|
- application/xml; charset=utf-8
|
114
114
|
etag:
|
115
|
-
- "\"
|
115
|
+
- "\"760935917138dd4a2bfdf603d51fbb8e\""
|
116
116
|
cache-control:
|
117
117
|
- private, max-age=0, must-revalidate
|
118
118
|
content-length:
|
119
119
|
- "638"
|
120
120
|
set-cookie:
|
121
|
-
- _recurly_session=
|
121
|
+
- _recurly_session=a415c6c1160e1194a686708e2167e1fe; domain=.recurly.local; path=/; HttpOnly
|
122
122
|
connection:
|
123
123
|
- close
|
124
124
|
server:
|
@@ -141,17 +141,17 @@
|
|
141
141
|
<credit_card>
|
142
142
|
<type>visa</type>
|
143
143
|
<last_four>1111</last_four>
|
144
|
-
<month type="integer">
|
144
|
+
<month type="integer">4</month>
|
145
145
|
<year type="integer">2012</year>
|
146
146
|
</credit_card>
|
147
|
-
<updated_at type="datetime">2011-
|
147
|
+
<updated_at type="datetime">2011-04-04T02:22:26Z</updated_at>
|
148
148
|
</billing_info>
|
149
149
|
|
150
150
|
http_version: "1.1"
|
151
151
|
- !ruby/struct:VCR::HTTPInteraction
|
152
152
|
request: !ruby/struct:VCR::Request
|
153
153
|
method: :post
|
154
|
-
uri: http://api-test-
|
154
|
+
uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/invoice-list-1297746103/charges.xml
|
155
155
|
body: |
|
156
156
|
<?xml version="1.0" encoding="UTF-8"?>
|
157
157
|
<charge>
|
@@ -161,7 +161,7 @@
|
|
161
161
|
|
162
162
|
headers:
|
163
163
|
authorization:
|
164
|
-
- Basic
|
164
|
+
- Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
|
165
165
|
content-type:
|
166
166
|
- application/xml
|
167
167
|
accept:
|
@@ -178,13 +178,13 @@
|
|
178
178
|
cache-control:
|
179
179
|
- no-cache
|
180
180
|
x-runtime:
|
181
|
-
- "
|
181
|
+
- "454"
|
182
182
|
content-type:
|
183
183
|
- application/xml; charset=utf-8
|
184
184
|
content-length:
|
185
185
|
- "516"
|
186
186
|
set-cookie:
|
187
|
-
- _recurly_session=
|
187
|
+
- _recurly_session=c62d4cf6059f20b2a6a06c6c80299c6b; domain=.recurly.local; path=/; HttpOnly
|
188
188
|
connection:
|
189
189
|
- close
|
190
190
|
server:
|
@@ -192,21 +192,21 @@
|
|
192
192
|
body: |
|
193
193
|
<?xml version="1.0" encoding="UTF-8"?>
|
194
194
|
<charge type="charge">
|
195
|
-
<id>
|
195
|
+
<id>c2b157ab9fd64889bbc2f68442374027</id>
|
196
196
|
<account_code>invoice-list-1297746103</account_code>
|
197
197
|
<amount_in_cents type="integer">100</amount_in_cents>
|
198
|
-
<start_date type="datetime">2011-
|
198
|
+
<start_date type="datetime">2011-04-04T02:22:29Z</start_date>
|
199
199
|
<end_date nil="true" type="datetime"></end_date>
|
200
200
|
<invoice_number nil="true" type="integer"></invoice_number>
|
201
201
|
<description>charge description</description>
|
202
|
-
<created_at type="datetime">2011-
|
202
|
+
<created_at type="datetime">2011-04-04T02:22:29Z</created_at>
|
203
203
|
</charge>
|
204
204
|
|
205
205
|
http_version: "1.1"
|
206
206
|
- !ruby/struct:VCR::HTTPInteraction
|
207
207
|
request: !ruby/struct:VCR::Request
|
208
208
|
method: :post
|
209
|
-
uri: http://api-test-
|
209
|
+
uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/invoice-list-1297746103/invoices.xml
|
210
210
|
body: |
|
211
211
|
<?xml version="1.0" encoding="UTF-8"?>
|
212
212
|
<invoice>
|
@@ -214,7 +214,7 @@
|
|
214
214
|
|
215
215
|
headers:
|
216
216
|
authorization:
|
217
|
-
- Basic
|
217
|
+
- Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
|
218
218
|
content-type:
|
219
219
|
- application/xml
|
220
220
|
accept:
|
@@ -231,15 +231,15 @@
|
|
231
231
|
cache-control:
|
232
232
|
- no-cache
|
233
233
|
location:
|
234
|
-
- http://app.recurly.local:3000/invoices/
|
234
|
+
- http://app.recurly.local:3000/invoices/144f9b229b334af8bf6f212f1225cecb
|
235
235
|
x-runtime:
|
236
|
-
- "
|
236
|
+
- "693"
|
237
237
|
content-type:
|
238
238
|
- application/xml; charset=utf-8
|
239
239
|
content-length:
|
240
240
|
- "1208"
|
241
241
|
set-cookie:
|
242
|
-
- _recurly_session=
|
242
|
+
- _recurly_session=f0faf52e124d001188729117aeee3fc0; domain=.recurly.local; path=/; HttpOnly
|
243
243
|
connection:
|
244
244
|
- close
|
245
245
|
server:
|
@@ -247,10 +247,10 @@
|
|
247
247
|
body: |
|
248
248
|
<?xml version="1.0" encoding="UTF-8"?>
|
249
249
|
<invoice>
|
250
|
-
<id>
|
250
|
+
<id>144f9b229b334af8bf6f212f1225cecb</id>
|
251
251
|
<account_code>invoice-list-1297746103</account_code>
|
252
|
-
<date type="datetime">2011-
|
253
|
-
<invoice_number type="integer">
|
252
|
+
<date type="datetime">2011-04-04T02:22:32Z</date>
|
253
|
+
<invoice_number type="integer">1276</invoice_number>
|
254
254
|
<vat_number></vat_number>
|
255
255
|
<status>open</status>
|
256
256
|
<subtotal_in_cents type="integer">100</subtotal_in_cents>
|
@@ -261,13 +261,13 @@
|
|
261
261
|
<discount_in_cents type="integer">0</discount_in_cents>
|
262
262
|
<line_items type="array">
|
263
263
|
<line_item>
|
264
|
-
<id>
|
264
|
+
<id>c2b157ab9fd64889bbc2f68442374027</id>
|
265
265
|
<type>charge</type>
|
266
266
|
<amount_in_cents type="integer">100</amount_in_cents>
|
267
|
-
<start_date type="datetime">2011-
|
267
|
+
<start_date type="datetime">2011-04-04T02:22:29Z</start_date>
|
268
268
|
<end_date nil="true" type="datetime"></end_date>
|
269
269
|
<description>charge description</description>
|
270
|
-
<created_at type="datetime">2011-
|
270
|
+
<created_at type="datetime">2011-04-04T02:22:29Z</created_at>
|
271
271
|
<applied_coupon_code></applied_coupon_code>
|
272
272
|
</line_item>
|
273
273
|
</line_items>
|
@@ -279,7 +279,7 @@
|
|
279
279
|
- !ruby/struct:VCR::HTTPInteraction
|
280
280
|
request: !ruby/struct:VCR::Request
|
281
281
|
method: :post
|
282
|
-
uri: http://api-test-
|
282
|
+
uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/invoice-list-1297746103/charges.xml
|
283
283
|
body: |
|
284
284
|
<?xml version="1.0" encoding="UTF-8"?>
|
285
285
|
<charge>
|
@@ -289,7 +289,7 @@
|
|
289
289
|
|
290
290
|
headers:
|
291
291
|
authorization:
|
292
|
-
- Basic
|
292
|
+
- Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
|
293
293
|
content-type:
|
294
294
|
- application/xml
|
295
295
|
accept:
|
@@ -306,13 +306,13 @@
|
|
306
306
|
cache-control:
|
307
307
|
- no-cache
|
308
308
|
x-runtime:
|
309
|
-
- "
|
309
|
+
- "293"
|
310
310
|
content-type:
|
311
311
|
- application/xml; charset=utf-8
|
312
312
|
content-length:
|
313
313
|
- "516"
|
314
314
|
set-cookie:
|
315
|
-
- _recurly_session=
|
315
|
+
- _recurly_session=bd3ca7430cef670ec20dad3f19328c0b; domain=.recurly.local; path=/; HttpOnly
|
316
316
|
connection:
|
317
317
|
- close
|
318
318
|
server:
|
@@ -320,21 +320,21 @@
|
|
320
320
|
body: |
|
321
321
|
<?xml version="1.0" encoding="UTF-8"?>
|
322
322
|
<charge type="charge">
|
323
|
-
<id>
|
323
|
+
<id>075eddb8f79f4afbb877cf20b05e5c5e</id>
|
324
324
|
<account_code>invoice-list-1297746103</account_code>
|
325
325
|
<amount_in_cents type="integer">300</amount_in_cents>
|
326
|
-
<start_date type="datetime">2011-
|
326
|
+
<start_date type="datetime">2011-04-04T02:22:35Z</start_date>
|
327
327
|
<end_date nil="true" type="datetime"></end_date>
|
328
328
|
<invoice_number nil="true" type="integer"></invoice_number>
|
329
329
|
<description>charge description</description>
|
330
|
-
<created_at type="datetime">2011-
|
330
|
+
<created_at type="datetime">2011-04-04T02:22:35Z</created_at>
|
331
331
|
</charge>
|
332
332
|
|
333
333
|
http_version: "1.1"
|
334
334
|
- !ruby/struct:VCR::HTTPInteraction
|
335
335
|
request: !ruby/struct:VCR::Request
|
336
336
|
method: :post
|
337
|
-
uri: http://api-test-
|
337
|
+
uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/invoice-list-1297746103/invoices.xml
|
338
338
|
body: |
|
339
339
|
<?xml version="1.0" encoding="UTF-8"?>
|
340
340
|
<invoice>
|
@@ -342,7 +342,7 @@
|
|
342
342
|
|
343
343
|
headers:
|
344
344
|
authorization:
|
345
|
-
- Basic
|
345
|
+
- Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
|
346
346
|
content-type:
|
347
347
|
- application/xml
|
348
348
|
accept:
|
@@ -359,15 +359,15 @@
|
|
359
359
|
cache-control:
|
360
360
|
- no-cache
|
361
361
|
location:
|
362
|
-
- http://app.recurly.local:3000/invoices/
|
362
|
+
- http://app.recurly.local:3000/invoices/8328b738476e4ed2a5824848d4969abe
|
363
363
|
x-runtime:
|
364
|
-
- "
|
364
|
+
- "509"
|
365
365
|
content-type:
|
366
366
|
- application/xml; charset=utf-8
|
367
367
|
content-length:
|
368
368
|
- "1208"
|
369
369
|
set-cookie:
|
370
|
-
- _recurly_session=
|
370
|
+
- _recurly_session=8f555f533a1ca3b38c861aa5e0d72db6; domain=.recurly.local; path=/; HttpOnly
|
371
371
|
connection:
|
372
372
|
- close
|
373
373
|
server:
|
@@ -375,10 +375,10 @@
|
|
375
375
|
body: |
|
376
376
|
<?xml version="1.0" encoding="UTF-8"?>
|
377
377
|
<invoice>
|
378
|
-
<id>
|
378
|
+
<id>8328b738476e4ed2a5824848d4969abe</id>
|
379
379
|
<account_code>invoice-list-1297746103</account_code>
|
380
|
-
<date type="datetime">2011-
|
381
|
-
<invoice_number type="integer">
|
380
|
+
<date type="datetime">2011-04-04T02:22:37Z</date>
|
381
|
+
<invoice_number type="integer">1277</invoice_number>
|
382
382
|
<vat_number></vat_number>
|
383
383
|
<status>open</status>
|
384
384
|
<subtotal_in_cents type="integer">300</subtotal_in_cents>
|
@@ -389,13 +389,13 @@
|
|
389
389
|
<discount_in_cents type="integer">0</discount_in_cents>
|
390
390
|
<line_items type="array">
|
391
391
|
<line_item>
|
392
|
-
<id>
|
392
|
+
<id>075eddb8f79f4afbb877cf20b05e5c5e</id>
|
393
393
|
<type>charge</type>
|
394
394
|
<amount_in_cents type="integer">300</amount_in_cents>
|
395
|
-
<start_date type="datetime">2011-
|
395
|
+
<start_date type="datetime">2011-04-04T02:22:35Z</start_date>
|
396
396
|
<end_date nil="true" type="datetime"></end_date>
|
397
397
|
<description>charge description</description>
|
398
|
-
<created_at type="datetime">2011-
|
398
|
+
<created_at type="datetime">2011-04-04T02:22:35Z</created_at>
|
399
399
|
<applied_coupon_code></applied_coupon_code>
|
400
400
|
</line_item>
|
401
401
|
</line_items>
|
@@ -407,11 +407,11 @@
|
|
407
407
|
- !ruby/struct:VCR::HTTPInteraction
|
408
408
|
request: !ruby/struct:VCR::Request
|
409
409
|
method: :get
|
410
|
-
uri: http://api-test-
|
410
|
+
uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/invoice-list-1297746103/invoices.xml
|
411
411
|
body:
|
412
412
|
headers:
|
413
413
|
authorization:
|
414
|
-
- Basic
|
414
|
+
- Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
|
415
415
|
accept:
|
416
416
|
- application/xml
|
417
417
|
accept-encoding:
|
@@ -426,17 +426,17 @@
|
|
426
426
|
message: OK
|
427
427
|
headers:
|
428
428
|
x-runtime:
|
429
|
-
- "
|
429
|
+
- "239"
|
430
430
|
content-type:
|
431
431
|
- application/xml; charset=utf-8
|
432
432
|
etag:
|
433
|
-
- "\"
|
433
|
+
- "\"66c46a41381e277abf3b68d70797ec25\""
|
434
434
|
cache-control:
|
435
435
|
- private, max-age=0, must-revalidate
|
436
436
|
content-length:
|
437
437
|
- "789"
|
438
438
|
set-cookie:
|
439
|
-
- _recurly_session=
|
439
|
+
- _recurly_session=edd24b71d5055085dbe0d8ba1c61ebe8; domain=.recurly.local; path=/; HttpOnly
|
440
440
|
connection:
|
441
441
|
- close
|
442
442
|
server:
|
@@ -445,18 +445,18 @@
|
|
445
445
|
<?xml version="1.0" encoding="UTF-8"?>
|
446
446
|
<invoices type="array">
|
447
447
|
<invoice>
|
448
|
-
<id>
|
448
|
+
<id>8328b738476e4ed2a5824848d4969abe</id>
|
449
449
|
<account_code>invoice-list-1297746103</account_code>
|
450
|
-
<date type="datetime">2011-
|
451
|
-
<invoice_number type="integer">
|
450
|
+
<date type="datetime">2011-04-04T02:22:37Z</date>
|
451
|
+
<invoice_number type="integer">1277</invoice_number>
|
452
452
|
<subtotal_in_cents type="integer">300</subtotal_in_cents>
|
453
453
|
<total_in_cents type="integer">300</total_in_cents>
|
454
454
|
</invoice>
|
455
455
|
<invoice>
|
456
|
-
<id>
|
456
|
+
<id>144f9b229b334af8bf6f212f1225cecb</id>
|
457
457
|
<account_code>invoice-list-1297746103</account_code>
|
458
|
-
<date type="datetime">2011-
|
459
|
-
<invoice_number type="integer">
|
458
|
+
<date type="datetime">2011-04-04T02:22:32Z</date>
|
459
|
+
<invoice_number type="integer">1276</invoice_number>
|
460
460
|
<subtotal_in_cents type="integer">100</subtotal_in_cents>
|
461
461
|
<total_in_cents type="integer">100</total_in_cents>
|
462
462
|
</invoice>
|
@@ -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%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts.xml
|
6
6
|
body: |
|
7
7
|
<?xml version="1.0" encoding="UTF-8"?>
|
8
8
|
<account>
|
@@ -20,7 +20,7 @@
|
|
20
20
|
|
21
21
|
headers:
|
22
22
|
authorization:
|
23
|
-
- Basic
|
23
|
+
- Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
|
24
24
|
content-type:
|
25
25
|
- application/xml
|
26
26
|
accept:
|
@@ -39,13 +39,13 @@
|
|
39
39
|
location:
|
40
40
|
- http://app.recurly.local:3000/accounts/invoice-lookup-1297746103
|
41
41
|
x-runtime:
|
42
|
-
- "
|
42
|
+
- "291"
|
43
43
|
content-type:
|
44
44
|
- application/xml; charset=utf-8
|
45
45
|
content-length:
|
46
46
|
- "583"
|
47
47
|
set-cookie:
|
48
|
-
- _recurly_session=
|
48
|
+
- _recurly_session=94ba8a43f7d5bf94ada495e429644d5e; domain=.recurly.local; path=/; HttpOnly
|
49
49
|
connection:
|
50
50
|
- close
|
51
51
|
server:
|
@@ -62,8 +62,8 @@
|
|
62
62
|
<company_name>Recurly Ruby Gem</company_name>
|
63
63
|
<balance_in_cents type="integer">0</balance_in_cents>
|
64
64
|
<closed type="boolean">false</closed>
|
65
|
-
<hosted_login_token>
|
66
|
-
<created_at type="datetime">2011-
|
65
|
+
<hosted_login_token>f326002d9f2448e4add2ff432cb3859f</hosted_login_token>
|
66
|
+
<created_at type="datetime">2011-04-04T02:22:41Z</created_at>
|
67
67
|
<state>active</state>
|
68
68
|
</account>
|
69
69
|
|
@@ -71,7 +71,7 @@
|
|
71
71
|
- !ruby/struct:VCR::HTTPInteraction
|
72
72
|
request: !ruby/struct:VCR::Request
|
73
73
|
method: :put
|
74
|
-
uri: http://api-test-
|
74
|
+
uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/invoice-lookup-1297746103/billing_info.xml
|
75
75
|
body: |
|
76
76
|
<?xml version="1.0" encoding="UTF-8"?>
|
77
77
|
<billing-info>
|
@@ -85,7 +85,7 @@
|
|
85
85
|
<credit-card>
|
86
86
|
<number>4111111111111111</number>
|
87
87
|
<year type="integer">2012</year>
|
88
|
-
<month type="integer">
|
88
|
+
<month type="integer">4</month>
|
89
89
|
<verification-value>123</verification-value>
|
90
90
|
</credit-card>
|
91
91
|
<account-code>invoice-lookup-1297746103</account-code>
|
@@ -93,7 +93,7 @@
|
|
93
93
|
|
94
94
|
headers:
|
95
95
|
authorization:
|
96
|
-
- Basic
|
96
|
+
- Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
|
97
97
|
content-type:
|
98
98
|
- application/xml
|
99
99
|
accept:
|
@@ -108,17 +108,17 @@
|
|
108
108
|
message: OK
|
109
109
|
headers:
|
110
110
|
x-runtime:
|
111
|
-
- "
|
111
|
+
- "1520"
|
112
112
|
content-type:
|
113
113
|
- application/xml; charset=utf-8
|
114
114
|
etag:
|
115
|
-
- "\"
|
115
|
+
- "\"262db0020844d8ca8dfc509cdf3427ad\""
|
116
116
|
cache-control:
|
117
117
|
- private, max-age=0, must-revalidate
|
118
118
|
content-length:
|
119
119
|
- "640"
|
120
120
|
set-cookie:
|
121
|
-
- _recurly_session=
|
121
|
+
- _recurly_session=c42eed3c1b765d0b193673ab405681fa; domain=.recurly.local; path=/; HttpOnly
|
122
122
|
connection:
|
123
123
|
- close
|
124
124
|
server:
|
@@ -141,17 +141,17 @@
|
|
141
141
|
<credit_card>
|
142
142
|
<type>visa</type>
|
143
143
|
<last_four>1111</last_four>
|
144
|
-
<month type="integer">
|
144
|
+
<month type="integer">4</month>
|
145
145
|
<year type="integer">2012</year>
|
146
146
|
</credit_card>
|
147
|
-
<updated_at type="datetime">2011-
|
147
|
+
<updated_at type="datetime">2011-04-04T02:22:44Z</updated_at>
|
148
148
|
</billing_info>
|
149
149
|
|
150
150
|
http_version: "1.1"
|
151
151
|
- !ruby/struct:VCR::HTTPInteraction
|
152
152
|
request: !ruby/struct:VCR::Request
|
153
153
|
method: :post
|
154
|
-
uri: http://api-test-
|
154
|
+
uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/invoice-lookup-1297746103/charges.xml
|
155
155
|
body: |
|
156
156
|
<?xml version="1.0" encoding="UTF-8"?>
|
157
157
|
<charge>
|
@@ -161,7 +161,7 @@
|
|
161
161
|
|
162
162
|
headers:
|
163
163
|
authorization:
|
164
|
-
- Basic
|
164
|
+
- Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
|
165
165
|
content-type:
|
166
166
|
- application/xml
|
167
167
|
accept:
|
@@ -178,13 +178,13 @@
|
|
178
178
|
cache-control:
|
179
179
|
- no-cache
|
180
180
|
x-runtime:
|
181
|
-
- "
|
181
|
+
- "261"
|
182
182
|
content-type:
|
183
183
|
- application/xml; charset=utf-8
|
184
184
|
content-length:
|
185
185
|
- "519"
|
186
186
|
set-cookie:
|
187
|
-
- _recurly_session=
|
187
|
+
- _recurly_session=14315280df45d275be926d7f3c3d7243; domain=.recurly.local; path=/; HttpOnly
|
188
188
|
connection:
|
189
189
|
- close
|
190
190
|
server:
|
@@ -192,21 +192,21 @@
|
|
192
192
|
body: |
|
193
193
|
<?xml version="1.0" encoding="UTF-8"?>
|
194
194
|
<charge type="charge">
|
195
|
-
<id>
|
195
|
+
<id>b1e0bb51927643d3aa6f35f2637ae46e</id>
|
196
196
|
<account_code>invoice-lookup-1297746103</account_code>
|
197
197
|
<amount_in_cents type="integer">1500</amount_in_cents>
|
198
|
-
<start_date type="datetime">2011-
|
198
|
+
<start_date type="datetime">2011-04-04T02:22:46Z</start_date>
|
199
199
|
<end_date nil="true" type="datetime"></end_date>
|
200
200
|
<invoice_number nil="true" type="integer"></invoice_number>
|
201
201
|
<description>charge description</description>
|
202
|
-
<created_at type="datetime">2011-
|
202
|
+
<created_at type="datetime">2011-04-04T02:22:46Z</created_at>
|
203
203
|
</charge>
|
204
204
|
|
205
205
|
http_version: "1.1"
|
206
206
|
- !ruby/struct:VCR::HTTPInteraction
|
207
207
|
request: !ruby/struct:VCR::Request
|
208
208
|
method: :post
|
209
|
-
uri: http://api-test-
|
209
|
+
uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/invoice-lookup-1297746103/invoices.xml
|
210
210
|
body: |
|
211
211
|
<?xml version="1.0" encoding="UTF-8"?>
|
212
212
|
<invoice>
|
@@ -214,7 +214,7 @@
|
|
214
214
|
|
215
215
|
headers:
|
216
216
|
authorization:
|
217
|
-
- Basic
|
217
|
+
- Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
|
218
218
|
content-type:
|
219
219
|
- application/xml
|
220
220
|
accept:
|
@@ -231,15 +231,15 @@
|
|
231
231
|
cache-control:
|
232
232
|
- no-cache
|
233
233
|
location:
|
234
|
-
- http://app.recurly.local:3000/invoices/
|
234
|
+
- http://app.recurly.local:3000/invoices/403f2f178fc647788d2859fd2c457a0f
|
235
235
|
x-runtime:
|
236
|
-
- "
|
236
|
+
- "579"
|
237
237
|
content-type:
|
238
238
|
- application/xml; charset=utf-8
|
239
239
|
content-length:
|
240
240
|
- "1214"
|
241
241
|
set-cookie:
|
242
|
-
- _recurly_session=
|
242
|
+
- _recurly_session=75f8f7379c23587bc70d5cc50f6d40b3; domain=.recurly.local; path=/; HttpOnly
|
243
243
|
connection:
|
244
244
|
- close
|
245
245
|
server:
|
@@ -247,10 +247,10 @@
|
|
247
247
|
body: |
|
248
248
|
<?xml version="1.0" encoding="UTF-8"?>
|
249
249
|
<invoice>
|
250
|
-
<id>
|
250
|
+
<id>403f2f178fc647788d2859fd2c457a0f</id>
|
251
251
|
<account_code>invoice-lookup-1297746103</account_code>
|
252
|
-
<date type="datetime">2011-
|
253
|
-
<invoice_number type="integer">
|
252
|
+
<date type="datetime">2011-04-04T02:22:48Z</date>
|
253
|
+
<invoice_number type="integer">1278</invoice_number>
|
254
254
|
<vat_number></vat_number>
|
255
255
|
<status>open</status>
|
256
256
|
<subtotal_in_cents type="integer">1500</subtotal_in_cents>
|
@@ -261,13 +261,13 @@
|
|
261
261
|
<discount_in_cents type="integer">0</discount_in_cents>
|
262
262
|
<line_items type="array">
|
263
263
|
<line_item>
|
264
|
-
<id>
|
264
|
+
<id>b1e0bb51927643d3aa6f35f2637ae46e</id>
|
265
265
|
<type>charge</type>
|
266
266
|
<amount_in_cents type="integer">1500</amount_in_cents>
|
267
|
-
<start_date type="datetime">2011-
|
267
|
+
<start_date type="datetime">2011-04-04T02:22:46Z</start_date>
|
268
268
|
<end_date nil="true" type="datetime"></end_date>
|
269
269
|
<description>charge description</description>
|
270
|
-
<created_at type="datetime">2011-
|
270
|
+
<created_at type="datetime">2011-04-04T02:22:46Z</created_at>
|
271
271
|
<applied_coupon_code></applied_coupon_code>
|
272
272
|
</line_item>
|
273
273
|
</line_items>
|
@@ -279,11 +279,11 @@
|
|
279
279
|
- !ruby/struct:VCR::HTTPInteraction
|
280
280
|
request: !ruby/struct:VCR::Request
|
281
281
|
method: :get
|
282
|
-
uri: http://api-test-
|
282
|
+
uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/invoices/403f2f178fc647788d2859fd2c457a0f.xml
|
283
283
|
body:
|
284
284
|
headers:
|
285
285
|
authorization:
|
286
|
-
- Basic
|
286
|
+
- Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
|
287
287
|
accept:
|
288
288
|
- application/xml
|
289
289
|
accept-encoding:
|
@@ -298,17 +298,17 @@
|
|
298
298
|
message: OK
|
299
299
|
headers:
|
300
300
|
x-runtime:
|
301
|
-
- "
|
301
|
+
- "81"
|
302
302
|
content-type:
|
303
303
|
- application/xml; charset=utf-8
|
304
304
|
etag:
|
305
|
-
- "\"
|
305
|
+
- "\"8dd72573bd3da2fd9ff414719d87619c\""
|
306
306
|
cache-control:
|
307
307
|
- private, max-age=0, must-revalidate
|
308
308
|
content-length:
|
309
309
|
- "1214"
|
310
310
|
set-cookie:
|
311
|
-
- _recurly_session=
|
311
|
+
- _recurly_session=a31819da57b240ecde2c2e337ab9c5fd; domain=.recurly.local; path=/; HttpOnly
|
312
312
|
connection:
|
313
313
|
- close
|
314
314
|
server:
|
@@ -316,10 +316,10 @@
|
|
316
316
|
body: |
|
317
317
|
<?xml version="1.0" encoding="UTF-8"?>
|
318
318
|
<invoice>
|
319
|
-
<id>
|
319
|
+
<id>403f2f178fc647788d2859fd2c457a0f</id>
|
320
320
|
<account_code>invoice-lookup-1297746103</account_code>
|
321
|
-
<date type="datetime">2011-
|
322
|
-
<invoice_number type="integer">
|
321
|
+
<date type="datetime">2011-04-04T02:22:48Z</date>
|
322
|
+
<invoice_number type="integer">1278</invoice_number>
|
323
323
|
<vat_number></vat_number>
|
324
324
|
<status>open</status>
|
325
325
|
<subtotal_in_cents type="integer">1500</subtotal_in_cents>
|
@@ -330,13 +330,13 @@
|
|
330
330
|
<discount_in_cents type="integer">0</discount_in_cents>
|
331
331
|
<line_items type="array">
|
332
332
|
<line_item>
|
333
|
-
<id>
|
333
|
+
<id>b1e0bb51927643d3aa6f35f2637ae46e</id>
|
334
334
|
<type>charge</type>
|
335
335
|
<amount_in_cents type="integer">1500</amount_in_cents>
|
336
|
-
<start_date type="datetime">2011-
|
336
|
+
<start_date type="datetime">2011-04-04T02:22:46Z</start_date>
|
337
337
|
<end_date nil="true" type="datetime"></end_date>
|
338
338
|
<description>charge description</description>
|
339
|
-
<created_at type="datetime">2011-
|
339
|
+
<created_at type="datetime">2011-04-04T02:22:46Z</created_at>
|
340
340
|
<applied_coupon_code></applied_coupon_code>
|
341
341
|
</line_item>
|
342
342
|
</line_items>
|