recurly 0.2.3 → 0.2.4
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/charge.rb +6 -0
- data/lib/recurly/subscription.rb +23 -5
- data/lib/recurly/version.rb +1 -1
- data/spec/integration/charge_spec.rb +45 -0
- data/spec/integration/credit_spec.rb +19 -0
- data/spec/integration/subscription_spec.rb +62 -9
- data/spec/vcr/account/close/1287167046.yml +15 -15
- data/spec/vcr/account/create-blank/1287167046.yml +3 -3
- data/spec/vcr/account/create-duplicate/1287167046.yml +8 -8
- data/spec/vcr/account/create-min/1287167046.yml +6 -6
- data/spec/vcr/account/create/1287167046.yml +6 -6
- data/spec/vcr/account/find/1287167046.yml +14 -14
- data/spec/vcr/account/list/1287167046.yml +101 -101
- data/spec/vcr/account/update/1287167046.yml +26 -26
- data/spec/vcr/billing/create/1286682213.yml +15 -15
- data/spec/vcr/billing/destroy/1286682213.yml +23 -23
- data/spec/vcr/billing/find/1286682213.yml +21 -21
- data/spec/vcr/billing/update/1286682213.yml +21 -21
- data/spec/vcr/charge/create/1286681273.yml +24 -24
- data/spec/vcr/charge/delete-uninvoiced/1287460783.yml +246 -0
- data/spec/vcr/charge/list-all/1286681273.yml +37 -37
- data/spec/vcr/charge/list-invoiced/1286681273.yml +62 -62
- data/spec/vcr/charge/list-pending/1286681273.yml +37 -37
- data/spec/vcr/charge/lookup/1286681273.yml +20 -20
- data/spec/vcr/credit/create/1286681343.yml +20 -20
- data/spec/vcr/credit/create/1287460732.yml +171 -0
- data/spec/vcr/credit/create/1287461340.yml +171 -0
- data/spec/vcr/credit/delete-invoiced/1287460732.yml +233 -0
- data/spec/vcr/credit/delete-invoiced/1287461340.yml +283 -0
- data/spec/vcr/credit/delete-uninvoiced/1287459796.yml +246 -0
- data/spec/vcr/credit/delete-uninvoiced/1287460732.yml +246 -0
- data/spec/vcr/credit/delete-uninvoiced/1287461340.yml +221 -0
- data/spec/vcr/credit/list/1286681343.yml +36 -36
- data/spec/vcr/credit/list/1287460732.yml +299 -0
- data/spec/vcr/credit/list/1287461340.yml +299 -0
- data/spec/vcr/credit/lookup/1286681343.yml +20 -20
- data/spec/vcr/credit/lookup/1287460732.yml +171 -0
- data/spec/vcr/credit/lookup/1287461340.yml +171 -0
- data/spec/vcr/invoice/create-no-charges/1287167121.yml +14 -14
- data/spec/vcr/invoice/create/1287167121.yml +36 -36
- data/spec/vcr/invoice/list/1287167121.yml +52 -52
- data/spec/vcr/invoice/lookup/1287167121.yml +38 -38
- data/spec/vcr/plan/all.yml +9 -9
- data/spec/vcr/plan/delete/1286677585.yml +16 -16
- data/spec/vcr/plan/find.yml +9 -9
- data/spec/vcr/plan/update.yml +9 -9
- data/spec/vcr/subscription/{cancel/1287442108.yml → cancel-with-code/1287455769.yml} +124 -65
- data/spec/vcr/subscription/cancel/{1287439446.yml → 1287455769.yml} +59 -59
- data/spec/vcr/subscription/change1/{1287442352.yml → 1287455769.yml} +56 -56
- data/spec/vcr/subscription/change2/{1287442352.yml → 1287455769.yml} +56 -56
- data/spec/vcr/subscription/create/{1287442352.yml → 1287455769.yml} +25 -25
- data/spec/vcr/subscription/find/{1287442108.yml → 1287455769.yml} +36 -36
- data/spec/vcr/subscription/{cancel/1287442352.yml → reactivate/1287455769.yml} +107 -66
- data/spec/vcr/subscription/refund-full/{1287442108.yml → 1287455769.yml} +50 -50
- data/spec/vcr/subscription/{refund-full/1287439446.yml → refund-none/1287455769.yml} +51 -51
- data/spec/vcr/subscription/refund-partial/{1287442108.yml → 1287455769.yml} +50 -50
- data/spec/vcr/transaction/all/1287186411.yml +80 -80
- data/spec/vcr/transaction/create-no-account/1287186411.yml +7 -7
- data/spec/vcr/transaction/create-with-account/1287186411.yml +17 -17
- data/spec/vcr/transaction/list-empty/1287186411.yml +17 -17
- data/spec/vcr/transaction/list-filled/1287186411.yml +41 -41
- data/spec/vcr/transaction/lookup/1287186411.yml +50 -50
- data/spec/vcr/transaction/refund/1287186411.yml +24 -24
- data/spec/vcr/transaction/void/1287186411.yml +60 -60
- metadata +67 -56
- data/spec/vcr/subscription/change1/1287439446.yml +0 -409
- data/spec/vcr/subscription/change1/1287442108.yml +0 -409
- data/spec/vcr/subscription/change2/1287439446.yml +0 -409
- data/spec/vcr/subscription/change2/1287442108.yml +0 -409
- data/spec/vcr/subscription/create/1287439446.yml +0 -224
- data/spec/vcr/subscription/create/1287442108.yml +0 -224
- data/spec/vcr/subscription/find/1287439446.yml +0 -283
- data/spec/vcr/subscription/find/1287442352.yml +0 -283
- data/spec/vcr/subscription/refund-full/1287442352.yml +0 -382
- data/spec/vcr/subscription/refund-none/1287439446.yml +0 -382
- data/spec/vcr/subscription/refund-none/1287442108.yml +0 -382
- data/spec/vcr/subscription/refund-none/1287442352.yml +0 -382
- data/spec/vcr/subscription/refund-partial/1287439446.yml +0 -382
- data/spec/vcr/subscription/refund-partial/1287442352.yml +0 -382
@@ -36,15 +36,15 @@
|
|
36
36
|
x-runtime:
|
37
37
|
- "585"
|
38
38
|
date:
|
39
|
-
-
|
39
|
+
- Tue, 19 Oct 2010 03:19:54 GMT
|
40
40
|
server:
|
41
41
|
- nginx/0.7.65
|
42
42
|
content-length:
|
43
43
|
- "579"
|
44
44
|
set-cookie:
|
45
|
-
- account_credentials=
|
45
|
+
- account_credentials=f8d50568ca4724f1bb8ce51b99c4734899990b9ebf9c084b1482066181b5792dfa4d454a28eb3de3f5f00e6fce361ed9079e3803641ab98658f949534ea19a73%3A%3A; domain=.recurly.com; path=/; secure; HttpOnly
|
46
46
|
- ""
|
47
|
-
- _recurly_session=
|
47
|
+
- _recurly_session=518af601a5317f1810f2df7f0e14eeab; domain=.recurly.com; path=/; Secure; HttpOnly
|
48
48
|
cache-control:
|
49
49
|
- no-cache
|
50
50
|
body: |
|
@@ -59,8 +59,8 @@
|
|
59
59
|
<company_name>Recurly Ruby Gem</company_name>
|
60
60
|
<balance_in_cents type="integer">0</balance_in_cents>
|
61
61
|
<closed type="boolean">false</closed>
|
62
|
-
<hosted_login_token>
|
63
|
-
<created_at type="datetime">2010-10-
|
62
|
+
<hosted_login_token>00840f50067748b6a3c4e009b8625423</hosted_login_token>
|
63
|
+
<created_at type="datetime">2010-10-19T03:19:54Z</created_at>
|
64
64
|
<state>active</state>
|
65
65
|
</account>
|
66
66
|
|
@@ -105,21 +105,21 @@
|
|
105
105
|
x-ua-compatible:
|
106
106
|
- IE=Edge
|
107
107
|
etag:
|
108
|
-
- "\"
|
108
|
+
- "\"92cf5c8fe63f1bc40334dd1894cfd04b\""
|
109
109
|
connection:
|
110
110
|
- close
|
111
111
|
content-type:
|
112
112
|
- application/xml; charset=utf-8
|
113
113
|
x-runtime:
|
114
|
-
- "
|
114
|
+
- "82"
|
115
115
|
date:
|
116
|
-
-
|
116
|
+
- Tue, 19 Oct 2010 03:19:55 GMT
|
117
117
|
server:
|
118
118
|
- nginx/0.7.65
|
119
119
|
content-length:
|
120
120
|
- "637"
|
121
121
|
set-cookie:
|
122
|
-
- _recurly_session=
|
122
|
+
- _recurly_session=cd4b7a5b1d767eb90f7a3d6f6944ccb4; domain=.recurly.com; path=/; Secure; HttpOnly
|
123
123
|
cache-control:
|
124
124
|
- private, max-age=0, must-revalidate
|
125
125
|
body: |
|
@@ -143,7 +143,7 @@
|
|
143
143
|
<month type="integer">10</month>
|
144
144
|
<year type="integer">2011</year>
|
145
145
|
</credit_card>
|
146
|
-
<updated_at type="datetime">2010-10-
|
146
|
+
<updated_at type="datetime">2010-10-19T03:19:55Z</updated_at>
|
147
147
|
</billing_info>
|
148
148
|
|
149
149
|
http_version: "1.1"
|
@@ -177,27 +177,27 @@
|
|
177
177
|
content-type:
|
178
178
|
- application/xml; charset=utf-8
|
179
179
|
x-runtime:
|
180
|
-
- "
|
180
|
+
- "44"
|
181
181
|
date:
|
182
|
-
-
|
182
|
+
- Tue, 19 Oct 2010 03:19:55 GMT
|
183
183
|
server:
|
184
184
|
- nginx/0.7.65
|
185
185
|
content-length:
|
186
186
|
- "454"
|
187
187
|
set-cookie:
|
188
|
-
- _recurly_session=
|
188
|
+
- _recurly_session=bf119231da2c4aee08d16a8a588ca2e1; domain=.recurly.com; path=/; Secure; HttpOnly
|
189
189
|
cache-control:
|
190
190
|
- no-cache
|
191
191
|
body: |
|
192
192
|
<?xml version="1.0" encoding="UTF-8"?>
|
193
193
|
<charge type="charge">
|
194
|
-
<id>
|
194
|
+
<id>c1c7a769cadd4cdb93aa9b8bc04694c9</id>
|
195
195
|
<account_code>invoice-list-1287167121</account_code>
|
196
196
|
<amount_in_cents type="integer">100</amount_in_cents>
|
197
|
-
<start_date type="datetime">2010-10-
|
197
|
+
<start_date type="datetime">2010-10-19T03:19:55Z</start_date>
|
198
198
|
<end_date nil="true" type="datetime"></end_date>
|
199
199
|
<description>charge description</description>
|
200
|
-
<created_at type="datetime">2010-10-
|
200
|
+
<created_at type="datetime">2010-10-19T03:19:55Z</created_at>
|
201
201
|
</charge>
|
202
202
|
|
203
203
|
http_version: "1.1"
|
@@ -225,30 +225,30 @@
|
|
225
225
|
message: Created
|
226
226
|
headers:
|
227
227
|
location:
|
228
|
-
- https://recurlytest3-test.recurly.com/invoices/
|
228
|
+
- https://recurlytest3-test.recurly.com/invoices/b08ffa1cce634dc8a21ccad00ba16795
|
229
229
|
connection:
|
230
230
|
- close
|
231
231
|
content-type:
|
232
232
|
- application/xml; charset=utf-8
|
233
233
|
x-runtime:
|
234
|
-
- "
|
234
|
+
- "67"
|
235
235
|
date:
|
236
|
-
-
|
236
|
+
- Tue, 19 Oct 2010 03:19:56 GMT
|
237
237
|
server:
|
238
238
|
- nginx/0.7.65
|
239
239
|
content-length:
|
240
240
|
- "1100"
|
241
241
|
set-cookie:
|
242
|
-
- _recurly_session=
|
242
|
+
- _recurly_session=8966af3ed2d54030618762570575759b; domain=.recurly.com; path=/; Secure; HttpOnly
|
243
243
|
cache-control:
|
244
244
|
- no-cache
|
245
245
|
body: |
|
246
246
|
<?xml version="1.0" encoding="UTF-8"?>
|
247
247
|
<invoice>
|
248
|
-
<id>
|
248
|
+
<id>b08ffa1cce634dc8a21ccad00ba16795</id>
|
249
249
|
<account_code>invoice-list-1287167121</account_code>
|
250
|
-
<date type="datetime">2010-10-
|
251
|
-
<invoice_number type="integer">
|
250
|
+
<date type="datetime">2010-10-19T03:19:56Z</date>
|
251
|
+
<invoice_number type="integer">1995</invoice_number>
|
252
252
|
<vat_number></vat_number>
|
253
253
|
<status>open</status>
|
254
254
|
<subtotal_in_cents type="integer">100</subtotal_in_cents>
|
@@ -258,13 +258,13 @@
|
|
258
258
|
<total_due_in_cents type="integer">100</total_due_in_cents>
|
259
259
|
<line_items type="array">
|
260
260
|
<line_item>
|
261
|
-
<id>
|
261
|
+
<id>c1c7a769cadd4cdb93aa9b8bc04694c9</id>
|
262
262
|
<type>charge</type>
|
263
263
|
<amount_in_cents type="integer">100</amount_in_cents>
|
264
|
-
<start_date type="datetime">2010-10-
|
264
|
+
<start_date type="datetime">2010-10-19T03:19:55Z</start_date>
|
265
265
|
<end_date nil="true" type="datetime"></end_date>
|
266
266
|
<description>charge description</description>
|
267
|
-
<created_at type="datetime">2010-10-
|
267
|
+
<created_at type="datetime">2010-10-19T03:19:55Z</created_at>
|
268
268
|
</line_item>
|
269
269
|
</line_items>
|
270
270
|
<payments type="array">
|
@@ -302,27 +302,27 @@
|
|
302
302
|
content-type:
|
303
303
|
- application/xml; charset=utf-8
|
304
304
|
x-runtime:
|
305
|
-
- "
|
305
|
+
- "65"
|
306
306
|
date:
|
307
|
-
-
|
307
|
+
- Tue, 19 Oct 2010 03:19:57 GMT
|
308
308
|
server:
|
309
309
|
- nginx/0.7.65
|
310
310
|
content-length:
|
311
311
|
- "454"
|
312
312
|
set-cookie:
|
313
|
-
- _recurly_session=
|
313
|
+
- _recurly_session=3725daa8f99ef8abfaf498245c3e4ecc; domain=.recurly.com; path=/; Secure; HttpOnly
|
314
314
|
cache-control:
|
315
315
|
- no-cache
|
316
316
|
body: |
|
317
317
|
<?xml version="1.0" encoding="UTF-8"?>
|
318
318
|
<charge type="charge">
|
319
|
-
<id>
|
319
|
+
<id>b48555a72dcd4f42890653cb4afafa3b</id>
|
320
320
|
<account_code>invoice-list-1287167121</account_code>
|
321
321
|
<amount_in_cents type="integer">300</amount_in_cents>
|
322
|
-
<start_date type="datetime">2010-10-
|
322
|
+
<start_date type="datetime">2010-10-19T03:19:56Z</start_date>
|
323
323
|
<end_date nil="true" type="datetime"></end_date>
|
324
324
|
<description>charge description</description>
|
325
|
-
<created_at type="datetime">2010-10-
|
325
|
+
<created_at type="datetime">2010-10-19T03:19:57Z</created_at>
|
326
326
|
</charge>
|
327
327
|
|
328
328
|
http_version: "1.1"
|
@@ -350,30 +350,30 @@
|
|
350
350
|
message: Created
|
351
351
|
headers:
|
352
352
|
location:
|
353
|
-
- https://recurlytest3-test.recurly.com/invoices/
|
353
|
+
- https://recurlytest3-test.recurly.com/invoices/2e08896ebd674b168d84746062edf23e
|
354
354
|
connection:
|
355
355
|
- close
|
356
356
|
content-type:
|
357
357
|
- application/xml; charset=utf-8
|
358
358
|
x-runtime:
|
359
|
-
- "
|
359
|
+
- "64"
|
360
360
|
date:
|
361
|
-
-
|
361
|
+
- Tue, 19 Oct 2010 03:19:57 GMT
|
362
362
|
server:
|
363
363
|
- nginx/0.7.65
|
364
364
|
content-length:
|
365
365
|
- "1100"
|
366
366
|
set-cookie:
|
367
|
-
- _recurly_session=
|
367
|
+
- _recurly_session=53ae1027b1d9bc7031ea25aa283e2c23; domain=.recurly.com; path=/; Secure; HttpOnly
|
368
368
|
cache-control:
|
369
369
|
- no-cache
|
370
370
|
body: |
|
371
371
|
<?xml version="1.0" encoding="UTF-8"?>
|
372
372
|
<invoice>
|
373
|
-
<id>
|
373
|
+
<id>2e08896ebd674b168d84746062edf23e</id>
|
374
374
|
<account_code>invoice-list-1287167121</account_code>
|
375
|
-
<date type="datetime">2010-10-
|
376
|
-
<invoice_number type="integer">
|
375
|
+
<date type="datetime">2010-10-19T03:19:57Z</date>
|
376
|
+
<invoice_number type="integer">1996</invoice_number>
|
377
377
|
<vat_number></vat_number>
|
378
378
|
<status>open</status>
|
379
379
|
<subtotal_in_cents type="integer">300</subtotal_in_cents>
|
@@ -383,13 +383,13 @@
|
|
383
383
|
<total_due_in_cents type="integer">300</total_due_in_cents>
|
384
384
|
<line_items type="array">
|
385
385
|
<line_item>
|
386
|
-
<id>
|
386
|
+
<id>b48555a72dcd4f42890653cb4afafa3b</id>
|
387
387
|
<type>charge</type>
|
388
388
|
<amount_in_cents type="integer">300</amount_in_cents>
|
389
|
-
<start_date type="datetime">2010-10-
|
389
|
+
<start_date type="datetime">2010-10-19T03:19:56Z</start_date>
|
390
390
|
<end_date nil="true" type="datetime"></end_date>
|
391
391
|
<description>charge description</description>
|
392
|
-
<created_at type="datetime">2010-10-
|
392
|
+
<created_at type="datetime">2010-10-19T03:19:57Z</created_at>
|
393
393
|
</line_item>
|
394
394
|
</line_items>
|
395
395
|
<payments type="array">
|
@@ -417,39 +417,39 @@
|
|
417
417
|
x-ua-compatible:
|
418
418
|
- IE=Edge
|
419
419
|
etag:
|
420
|
-
- "\"
|
420
|
+
- "\"6d1fa6661ad771a5dbc2d12456890555\""
|
421
421
|
connection:
|
422
422
|
- close
|
423
423
|
content-type:
|
424
424
|
- application/xml; charset=utf-8
|
425
425
|
x-runtime:
|
426
|
-
- "
|
426
|
+
- "16"
|
427
427
|
date:
|
428
|
-
-
|
428
|
+
- Tue, 19 Oct 2010 03:19:58 GMT
|
429
429
|
server:
|
430
430
|
- nginx/0.7.65
|
431
431
|
content-length:
|
432
432
|
- "789"
|
433
433
|
set-cookie:
|
434
|
-
- _recurly_session=
|
434
|
+
- _recurly_session=a16ccfa7f51a2d312e638de3f5e5921b; domain=.recurly.com; path=/; Secure; HttpOnly
|
435
435
|
cache-control:
|
436
436
|
- private, max-age=0, must-revalidate
|
437
437
|
body: |
|
438
438
|
<?xml version="1.0" encoding="UTF-8"?>
|
439
439
|
<invoices type="array">
|
440
440
|
<invoice>
|
441
|
-
<id>
|
441
|
+
<id>2e08896ebd674b168d84746062edf23e</id>
|
442
442
|
<account_code>invoice-list-1287167121</account_code>
|
443
|
-
<date type="datetime">2010-10-
|
444
|
-
<invoice_number type="integer">
|
443
|
+
<date type="datetime">2010-10-19T03:19:57Z</date>
|
444
|
+
<invoice_number type="integer">1996</invoice_number>
|
445
445
|
<subtotal_in_cents type="integer">300</subtotal_in_cents>
|
446
446
|
<total_in_cents type="integer">300</total_in_cents>
|
447
447
|
</invoice>
|
448
448
|
<invoice>
|
449
|
-
<id>
|
449
|
+
<id>b08ffa1cce634dc8a21ccad00ba16795</id>
|
450
450
|
<account_code>invoice-list-1287167121</account_code>
|
451
|
-
<date type="datetime">2010-10-
|
452
|
-
<invoice_number type="integer">
|
451
|
+
<date type="datetime">2010-10-19T03:19:56Z</date>
|
452
|
+
<invoice_number type="integer">1995</invoice_number>
|
453
453
|
<subtotal_in_cents type="integer">100</subtotal_in_cents>
|
454
454
|
<total_in_cents type="integer">100</total_in_cents>
|
455
455
|
</invoice>
|
@@ -34,17 +34,17 @@
|
|
34
34
|
content-type:
|
35
35
|
- application/xml; charset=utf-8
|
36
36
|
x-runtime:
|
37
|
-
- "
|
37
|
+
- "614"
|
38
38
|
date:
|
39
|
-
-
|
39
|
+
- Tue, 19 Oct 2010 03:19:59 GMT
|
40
40
|
server:
|
41
41
|
- nginx/0.7.65
|
42
42
|
content-length:
|
43
43
|
- "583"
|
44
44
|
set-cookie:
|
45
|
-
- account_credentials=
|
45
|
+
- account_credentials=1fa144602de862772f1a0515afae71068efc404972233c871bf4dfce04fc2bed3283b8587254cc376f48abb46982946fb35b81a55b4a30ac5dfabda2efa3257d%3A%3A; domain=.recurly.com; path=/; secure; HttpOnly
|
46
46
|
- ""
|
47
|
-
- _recurly_session=
|
47
|
+
- _recurly_session=7e8e4d988f46249d35b03068fe79220a; domain=.recurly.com; path=/; Secure; HttpOnly
|
48
48
|
cache-control:
|
49
49
|
- no-cache
|
50
50
|
body: |
|
@@ -59,8 +59,8 @@
|
|
59
59
|
<company_name>Recurly Ruby Gem</company_name>
|
60
60
|
<balance_in_cents type="integer">0</balance_in_cents>
|
61
61
|
<closed type="boolean">false</closed>
|
62
|
-
<hosted_login_token>
|
63
|
-
<created_at type="datetime">2010-10-
|
62
|
+
<hosted_login_token>9f402687b7574b529ec3a1d23280e09e</hosted_login_token>
|
63
|
+
<created_at type="datetime">2010-10-19T03:19:59Z</created_at>
|
64
64
|
<state>active</state>
|
65
65
|
</account>
|
66
66
|
|
@@ -105,21 +105,21 @@
|
|
105
105
|
x-ua-compatible:
|
106
106
|
- IE=Edge
|
107
107
|
etag:
|
108
|
-
- "\"
|
108
|
+
- "\"32d098de920b5b7a480808c230e51708\""
|
109
109
|
connection:
|
110
110
|
- close
|
111
111
|
content-type:
|
112
112
|
- application/xml; charset=utf-8
|
113
113
|
x-runtime:
|
114
|
-
- "
|
114
|
+
- "56"
|
115
115
|
date:
|
116
|
-
-
|
116
|
+
- Tue, 19 Oct 2010 03:20:00 GMT
|
117
117
|
server:
|
118
118
|
- nginx/0.7.65
|
119
119
|
content-length:
|
120
120
|
- "639"
|
121
121
|
set-cookie:
|
122
|
-
- _recurly_session=
|
122
|
+
- _recurly_session=4e2d0c0ab31e956938da29e30daca31e; domain=.recurly.com; path=/; Secure; HttpOnly
|
123
123
|
cache-control:
|
124
124
|
- private, max-age=0, must-revalidate
|
125
125
|
body: |
|
@@ -143,7 +143,7 @@
|
|
143
143
|
<month type="integer">10</month>
|
144
144
|
<year type="integer">2011</year>
|
145
145
|
</credit_card>
|
146
|
-
<updated_at type="datetime">2010-10-
|
146
|
+
<updated_at type="datetime">2010-10-19T03:20:00Z</updated_at>
|
147
147
|
</billing_info>
|
148
148
|
|
149
149
|
http_version: "1.1"
|
@@ -177,27 +177,27 @@
|
|
177
177
|
content-type:
|
178
178
|
- application/xml; charset=utf-8
|
179
179
|
x-runtime:
|
180
|
-
- "
|
180
|
+
- "46"
|
181
181
|
date:
|
182
|
-
-
|
182
|
+
- Tue, 19 Oct 2010 03:20:01 GMT
|
183
183
|
server:
|
184
184
|
- nginx/0.7.65
|
185
185
|
content-length:
|
186
186
|
- "457"
|
187
187
|
set-cookie:
|
188
|
-
- _recurly_session=
|
188
|
+
- _recurly_session=d8f21f88d5e16eb0b754cc5979a53c40; domain=.recurly.com; path=/; Secure; HttpOnly
|
189
189
|
cache-control:
|
190
190
|
- no-cache
|
191
191
|
body: |
|
192
192
|
<?xml version="1.0" encoding="UTF-8"?>
|
193
193
|
<charge type="charge">
|
194
|
-
<id>
|
194
|
+
<id>0dce890a3f4b47428a818b6330211b7c</id>
|
195
195
|
<account_code>invoice-lookup-1287167121</account_code>
|
196
196
|
<amount_in_cents type="integer">1500</amount_in_cents>
|
197
|
-
<start_date type="datetime">2010-10-
|
197
|
+
<start_date type="datetime">2010-10-19T03:20:01Z</start_date>
|
198
198
|
<end_date nil="true" type="datetime"></end_date>
|
199
199
|
<description>charge description</description>
|
200
|
-
<created_at type="datetime">2010-10-
|
200
|
+
<created_at type="datetime">2010-10-19T03:20:01Z</created_at>
|
201
201
|
</charge>
|
202
202
|
|
203
203
|
http_version: "1.1"
|
@@ -225,30 +225,30 @@
|
|
225
225
|
message: Created
|
226
226
|
headers:
|
227
227
|
location:
|
228
|
-
- https://recurlytest3-test.recurly.com/invoices/
|
228
|
+
- https://recurlytest3-test.recurly.com/invoices/00bf751c19a04b71ac063d54a7a98f82
|
229
229
|
connection:
|
230
230
|
- close
|
231
231
|
content-type:
|
232
232
|
- application/xml; charset=utf-8
|
233
233
|
x-runtime:
|
234
|
-
- "
|
234
|
+
- "91"
|
235
235
|
date:
|
236
|
-
-
|
236
|
+
- Tue, 19 Oct 2010 03:20:01 GMT
|
237
237
|
server:
|
238
238
|
- nginx/0.7.65
|
239
239
|
content-length:
|
240
240
|
- "1106"
|
241
241
|
set-cookie:
|
242
|
-
- _recurly_session=
|
242
|
+
- _recurly_session=b7b57396efb36d6288c11aad83dd846c; domain=.recurly.com; path=/; Secure; HttpOnly
|
243
243
|
cache-control:
|
244
244
|
- no-cache
|
245
245
|
body: |
|
246
246
|
<?xml version="1.0" encoding="UTF-8"?>
|
247
247
|
<invoice>
|
248
|
-
<id>
|
248
|
+
<id>00bf751c19a04b71ac063d54a7a98f82</id>
|
249
249
|
<account_code>invoice-lookup-1287167121</account_code>
|
250
|
-
<date type="datetime">2010-10-
|
251
|
-
<invoice_number type="integer">
|
250
|
+
<date type="datetime">2010-10-19T03:20:01Z</date>
|
251
|
+
<invoice_number type="integer">1997</invoice_number>
|
252
252
|
<vat_number></vat_number>
|
253
253
|
<status>open</status>
|
254
254
|
<subtotal_in_cents type="integer">1500</subtotal_in_cents>
|
@@ -258,13 +258,13 @@
|
|
258
258
|
<total_due_in_cents type="integer">1500</total_due_in_cents>
|
259
259
|
<line_items type="array">
|
260
260
|
<line_item>
|
261
|
-
<id>
|
261
|
+
<id>0dce890a3f4b47428a818b6330211b7c</id>
|
262
262
|
<type>charge</type>
|
263
263
|
<amount_in_cents type="integer">1500</amount_in_cents>
|
264
|
-
<start_date type="datetime">2010-10-
|
264
|
+
<start_date type="datetime">2010-10-19T03:20:01Z</start_date>
|
265
265
|
<end_date nil="true" type="datetime"></end_date>
|
266
266
|
<description>charge description</description>
|
267
|
-
<created_at type="datetime">2010-10-
|
267
|
+
<created_at type="datetime">2010-10-19T03:20:01Z</created_at>
|
268
268
|
</line_item>
|
269
269
|
</line_items>
|
270
270
|
<payments type="array">
|
@@ -275,7 +275,7 @@
|
|
275
275
|
- !ruby/struct:VCR::HTTPInteraction
|
276
276
|
request: !ruby/struct:VCR::Request
|
277
277
|
method: :get
|
278
|
-
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/invoices/
|
278
|
+
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/invoices/00bf751c19a04b71ac063d54a7a98f82.xml
|
279
279
|
body:
|
280
280
|
headers:
|
281
281
|
accept:
|
@@ -292,30 +292,30 @@
|
|
292
292
|
x-ua-compatible:
|
293
293
|
- IE=Edge
|
294
294
|
etag:
|
295
|
-
- "\"
|
295
|
+
- "\"a56f7e7e5fdd8094ac5fde99b28bc33e\""
|
296
296
|
connection:
|
297
297
|
- close
|
298
298
|
content-type:
|
299
299
|
- application/xml; charset=utf-8
|
300
300
|
x-runtime:
|
301
|
-
- "
|
301
|
+
- "22"
|
302
302
|
date:
|
303
|
-
-
|
303
|
+
- Tue, 19 Oct 2010 03:20:02 GMT
|
304
304
|
server:
|
305
305
|
- nginx/0.7.65
|
306
306
|
content-length:
|
307
307
|
- "1106"
|
308
308
|
set-cookie:
|
309
|
-
- _recurly_session=
|
309
|
+
- _recurly_session=24c7a266a200df4a0f11ff38ac3f9e32; domain=.recurly.com; path=/; Secure; HttpOnly
|
310
310
|
cache-control:
|
311
311
|
- private, max-age=0, must-revalidate
|
312
312
|
body: |
|
313
313
|
<?xml version="1.0" encoding="UTF-8"?>
|
314
314
|
<invoice>
|
315
|
-
<id>
|
315
|
+
<id>00bf751c19a04b71ac063d54a7a98f82</id>
|
316
316
|
<account_code>invoice-lookup-1287167121</account_code>
|
317
|
-
<date type="datetime">2010-10-
|
318
|
-
<invoice_number type="integer">
|
317
|
+
<date type="datetime">2010-10-19T03:20:01Z</date>
|
318
|
+
<invoice_number type="integer">1997</invoice_number>
|
319
319
|
<vat_number></vat_number>
|
320
320
|
<status>open</status>
|
321
321
|
<subtotal_in_cents type="integer">1500</subtotal_in_cents>
|
@@ -325,13 +325,13 @@
|
|
325
325
|
<total_due_in_cents type="integer">1500</total_due_in_cents>
|
326
326
|
<line_items type="array">
|
327
327
|
<line_item>
|
328
|
-
<id>
|
328
|
+
<id>0dce890a3f4b47428a818b6330211b7c</id>
|
329
329
|
<type>charge</type>
|
330
330
|
<amount_in_cents type="integer">1500</amount_in_cents>
|
331
|
-
<start_date type="datetime">2010-10-
|
331
|
+
<start_date type="datetime">2010-10-19T03:20:01Z</start_date>
|
332
332
|
<end_date nil="true" type="datetime"></end_date>
|
333
333
|
<description>charge description</description>
|
334
|
-
<created_at type="datetime">2010-10-
|
334
|
+
<created_at type="datetime">2010-10-19T03:20:01Z</created_at>
|
335
335
|
</line_item>
|
336
336
|
</line_items>
|
337
337
|
<payments type="array">
|