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.

Files changed (71) hide show
  1. data/lib/recurly.rb +1 -0
  2. data/lib/recurly/base.rb +92 -12
  3. data/lib/recurly/formats/xml_with_errors.rb +132 -0
  4. data/lib/recurly/version.rb +1 -1
  5. data/spec/config/recurly.yml +4 -4
  6. data/spec/integration/transaction_spec.rb +4 -3
  7. data/spec/vcr/account/accept-language-account/1297746103.yml +6 -6
  8. data/spec/vcr/account/close/1297746103.yml +17 -17
  9. data/spec/vcr/account/create-blank/1297746103.yml +4 -4
  10. data/spec/vcr/account/create-duplicate/1297746103.yml +10 -10
  11. data/spec/vcr/account/create-min/1297746103.yml +6 -6
  12. data/spec/vcr/account/create/1297746103.yml +6 -6
  13. data/spec/vcr/account/find/1297746103.yml +16 -16
  14. data/spec/vcr/account/list/1297746103.yml +204 -156
  15. data/spec/vcr/account/update/1297746103.yml +29 -29
  16. data/spec/vcr/billing/create/1298594128.yml +21 -21
  17. data/spec/vcr/billing/destroy/1298594128.yml +28 -28
  18. data/spec/vcr/billing/find/1298594128.yml +28 -28
  19. data/spec/vcr/billing/update/1298594128.yml +29 -29
  20. data/spec/vcr/charge/create/1297746103.yml +29 -29
  21. data/spec/vcr/charge/delete-uninvoiced/1297746103.yml +32 -32
  22. data/spec/vcr/charge/list-all/1297746103.yml +41 -41
  23. data/spec/vcr/charge/list-invoiced/1297746103.yml +68 -68
  24. data/spec/vcr/charge/list-pending/1297746103.yml +41 -41
  25. data/spec/vcr/charge/lookup/1297746103.yml +21 -21
  26. data/spec/vcr/coupon/create/1299714521.yml +25 -25
  27. data/spec/vcr/coupon/destroy/1299714521.yml +22 -22
  28. data/spec/vcr/credit/create/1299714599.yml +21 -21
  29. data/spec/vcr/credit/delete/1299714599.yml +28 -28
  30. data/spec/vcr/credit/list/1299714599.yml +41 -41
  31. data/spec/vcr/credit/lookup/1299714599.yml +21 -21
  32. data/spec/vcr/invoice/create-no-charges/1297746103.yml +18 -18
  33. data/spec/vcr/invoice/create/1297746103.yml +42 -42
  34. data/spec/vcr/invoice/list/1297746103.yml +61 -61
  35. data/spec/vcr/invoice/lookup/1297746103.yml +43 -43
  36. data/spec/vcr/plan/all.yml +65 -52
  37. data/spec/vcr/plan/find.yml +58 -34
  38. data/spec/vcr/plan/update.yml +28 -29
  39. data/spec/vcr/subscription/addons/add/1297746103.yml +293 -335
  40. data/spec/vcr/subscription/addons/add/1301884213.yml +480 -0
  41. data/spec/vcr/subscription/addons/create/1297746103.yml +134 -335
  42. data/spec/vcr/subscription/addons/create/1301884213.yml +321 -0
  43. data/spec/vcr/subscription/addons/remove/1297746103.yml +262 -335
  44. data/spec/vcr/subscription/addons/remove/1301884213.yml +449 -0
  45. data/spec/vcr/subscription/cancel-with-code/{1297746103.yml → 1301881900.yml} +104 -92
  46. data/spec/vcr/subscription/cancel/{1297746103.yml → 1301881900.yml} +90 -78
  47. data/spec/vcr/subscription/change1/{1297746103.yml → 1301881900.yml} +86 -74
  48. data/spec/vcr/subscription/change2/{1297746103.yml → 1301881900.yml} +86 -74
  49. data/spec/vcr/subscription/create/{1297746103.yml → 1301881900.yml} +50 -38
  50. data/spec/vcr/subscription/find/{1297746103.yml → 1301881900.yml} +62 -50
  51. data/spec/vcr/subscription/reactivate/{1297746103.yml → 1301881900.yml} +95 -83
  52. data/spec/vcr/subscription/refund-full/{1297746103.yml → 1301881900.yml} +79 -67
  53. data/spec/vcr/subscription/refund-none/{1297746103.yml → 1301881900.yml} +79 -67
  54. data/spec/vcr/subscription/refund-partial/{1297746103.yml → 1301881900.yml} +79 -67
  55. data/spec/vcr/transaction/all/1301883347.yml +387 -0
  56. data/spec/vcr/transaction/create-no-account/{1300473500.yml → 1301883347.yml} +18 -18
  57. data/spec/vcr/transaction/create-with-account/{1300473500.yml → 1301883347.yml} +37 -37
  58. data/spec/vcr/transaction/list-filled/{1300473500.yml → 1301883347.yml} +169 -169
  59. data/spec/vcr/transaction/list-initial/{1300473500.yml → 1301883347.yml} +39 -39
  60. data/spec/vcr/transaction/lookup/{1300473500.yml → 1301883347.yml} +119 -119
  61. data/spec/vcr/transaction/refund/{1300473500.yml → 1301883347.yml} +53 -53
  62. data/spec/vcr/transaction/void/1301883347.yml +365 -0
  63. data/spec/vcr/transparent/post-url/{1300476053.yml → 1301879142.yml} +19 -19
  64. metadata +66 -58
  65. data/spec/vcr/transaction/all/1300473500.yml +0 -387
  66. data/spec/vcr/transaction/void/1300473500.yml +0 -620
  67. data/spec/vcr/transparent/post-url/1300475927.yml +0 -41
  68. data/spec/vcr/transparent/post-url/1300475952.yml +0 -41
  69. data/spec/vcr/transparent/post-url/1300476034.yml +0 -125
  70. data/spec/vcr/transparent/post-url/1300476102.yml +0 -125
  71. 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-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts.xml
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 YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
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
- - "329"
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=9127b0750c3199cf0d35d1f079f76973; domain=.recurly.local; path=/; HttpOnly
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>18f3b394cbef4f598855d5967e4e8c85</hosted_login_token>
66
- <created_at type="datetime">2011-03-18T18:51:26Z</created_at>
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-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/invoice-list-1297746103/billing_info.xml
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">3</month>
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 YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
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
- - "7232"
111
+ - "1914"
112
112
  content-type:
113
113
  - application/xml; charset=utf-8
114
114
  etag:
115
- - "\"7f9f210d38150817355b3a71d47cc5aa\""
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=803a84d0989525a8b8758da606bd9c0f; domain=.recurly.local; path=/; HttpOnly
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">3</month>
144
+ <month type="integer">4</month>
145
145
  <year type="integer">2012</year>
146
146
  </credit_card>
147
- <updated_at type="datetime">2011-03-18T18:51:36Z</updated_at>
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-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/invoice-list-1297746103/charges.xml
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 YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
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
- - "299"
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=79bea07bca996d4e97f06c543a569f2b; domain=.recurly.local; path=/; HttpOnly
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>658d3d1a02844356a9c267bc7f9f3574</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-03-18T18:51:38Z</start_date>
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-03-18T18:51:38Z</created_at>
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-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/invoice-list-1297746103/invoices.xml
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 YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
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/ea99d72698c74368b8e1a97d52311952
234
+ - http://app.recurly.local:3000/invoices/144f9b229b334af8bf6f212f1225cecb
235
235
  x-runtime:
236
- - "589"
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=b9ebda2cd55bf789e6ee139336534726; domain=.recurly.local; path=/; HttpOnly
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>ea99d72698c74368b8e1a97d52311952</id>
250
+ <id>144f9b229b334af8bf6f212f1225cecb</id>
251
251
  <account_code>invoice-list-1297746103</account_code>
252
- <date type="datetime">2011-03-18T18:51:40Z</date>
253
- <invoice_number type="integer">2061</invoice_number>
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>658d3d1a02844356a9c267bc7f9f3574</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-03-18T18:51:38Z</start_date>
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-03-18T18:51:38Z</created_at>
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-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/invoice-list-1297746103/charges.xml
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 YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
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
- - "303"
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=56bd50321047f8a010fe4218085aa661; domain=.recurly.local; path=/; HttpOnly
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>8d3896ffa48d4701ac8b250a24f47c4e</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-03-18T18:51:42Z</start_date>
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-03-18T18:51:42Z</created_at>
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-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/invoice-list-1297746103/invoices.xml
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 YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
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/3b38eddc07034808b6013e7f8ebaafbc
362
+ - http://app.recurly.local:3000/invoices/8328b738476e4ed2a5824848d4969abe
363
363
  x-runtime:
364
- - "620"
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=5f01c8d0acc85f429e2c4649e1d22681; domain=.recurly.local; path=/; HttpOnly
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>3b38eddc07034808b6013e7f8ebaafbc</id>
378
+ <id>8328b738476e4ed2a5824848d4969abe</id>
379
379
  <account_code>invoice-list-1297746103</account_code>
380
- <date type="datetime">2011-03-18T18:51:44Z</date>
381
- <invoice_number type="integer">2062</invoice_number>
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>8d3896ffa48d4701ac8b250a24f47c4e</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-03-18T18:51:42Z</start_date>
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-03-18T18:51:42Z</created_at>
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-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/invoice-list-1297746103/invoices.xml
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 YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
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
- - "88"
429
+ - "239"
430
430
  content-type:
431
431
  - application/xml; charset=utf-8
432
432
  etag:
433
- - "\"25064374673b3a227c7a323b93caab88\""
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=0af4280b959f1a328b67af0b0c343db6; domain=.recurly.local; path=/; HttpOnly
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>3b38eddc07034808b6013e7f8ebaafbc</id>
448
+ <id>8328b738476e4ed2a5824848d4969abe</id>
449
449
  <account_code>invoice-list-1297746103</account_code>
450
- <date type="datetime">2011-03-18T18:51:44Z</date>
451
- <invoice_number type="integer">2062</invoice_number>
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>ea99d72698c74368b8e1a97d52311952</id>
456
+ <id>144f9b229b334af8bf6f212f1225cecb</id>
457
457
  <account_code>invoice-list-1297746103</account_code>
458
- <date type="datetime">2011-03-18T18:51:40Z</date>
459
- <invoice_number type="integer">2061</invoice_number>
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-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts.xml
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 YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
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
- - "328"
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=ac6325d48a952583e1c5a30d12944b30; domain=.recurly.local; path=/; HttpOnly
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>1ca19d28068646d6b969cf28ce907e65</hosted_login_token>
66
- <created_at type="datetime">2011-03-18T18:51:49Z</created_at>
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-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/invoice-lookup-1297746103/billing_info.xml
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">3</month>
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 YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
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
- - "6107"
111
+ - "1520"
112
112
  content-type:
113
113
  - application/xml; charset=utf-8
114
114
  etag:
115
- - "\"ce0985d544d3e9115cb1c35e66cf741f\""
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=ad6502566a4cf100358fdeb809eb6b3d; domain=.recurly.local; path=/; HttpOnly
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">3</month>
144
+ <month type="integer">4</month>
145
145
  <year type="integer">2012</year>
146
146
  </credit_card>
147
- <updated_at type="datetime">2011-03-18T18:51:57Z</updated_at>
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-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/invoice-lookup-1297746103/charges.xml
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 YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
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
- - "303"
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=560de0ef1b2ecfafb930885dc6e8ed8b; domain=.recurly.local; path=/; HttpOnly
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>a9cb1d4ea7854fd5959f3b1add3078da</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-03-18T18:51:59Z</start_date>
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-03-18T18:51:59Z</created_at>
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-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/invoice-lookup-1297746103/invoices.xml
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 YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
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/1a5cbf96d7914e24ab2741c9c692f0e9
234
+ - http://app.recurly.local:3000/invoices/403f2f178fc647788d2859fd2c457a0f
235
235
  x-runtime:
236
- - "380"
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=2dff0d035f1a6c447803cdc0b409a988; domain=.recurly.local; path=/; HttpOnly
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>1a5cbf96d7914e24ab2741c9c692f0e9</id>
250
+ <id>403f2f178fc647788d2859fd2c457a0f</id>
251
251
  <account_code>invoice-lookup-1297746103</account_code>
252
- <date type="datetime">2011-03-18T18:52:01Z</date>
253
- <invoice_number type="integer">2063</invoice_number>
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>a9cb1d4ea7854fd5959f3b1add3078da</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-03-18T18:51:59Z</start_date>
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-03-18T18:51:59Z</created_at>
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-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/invoices/1a5cbf96d7914e24ab2741c9c692f0e9.xml
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 YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
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
- - "293"
301
+ - "81"
302
302
  content-type:
303
303
  - application/xml; charset=utf-8
304
304
  etag:
305
- - "\"4690d684fe910b7b8962385465fe0aa3\""
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=890b5a9b2b220153626be93cb31e9025; domain=.recurly.local; path=/; HttpOnly
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>1a5cbf96d7914e24ab2741c9c692f0e9</id>
319
+ <id>403f2f178fc647788d2859fd2c457a0f</id>
320
320
  <account_code>invoice-lookup-1297746103</account_code>
321
- <date type="datetime">2011-03-18T18:52:01Z</date>
322
- <invoice_number type="integer">2063</invoice_number>
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>a9cb1d4ea7854fd5959f3b1add3078da</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-03-18T18:51:59Z</start_date>
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-03-18T18:51:59Z</created_at>
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>