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/charge-list-invoiced-1297746103
41
41
  x-runtime:
42
- - "314"
42
+ - "533"
43
43
  content-type:
44
44
  - application/xml; charset=utf-8
45
45
  content-length:
46
46
  - "595"
47
47
  set-cookie:
48
- - _recurly_session=b8e9dde2efd05a2332dcfccf4cf33131; domain=.recurly.local; path=/; HttpOnly
48
+ - _recurly_session=a070c58b544971e465ef2c29fe188503; 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>eb0ca935f01a48648997c3154d8f9fe6</hosted_login_token>
66
- <created_at type="datetime">2011-03-18T18:49:21Z</created_at>
65
+ <hosted_login_token>7d5326ada58b42bbb8af70634a1fe961</hosted_login_token>
66
+ <created_at type="datetime">2011-04-04T02:20:09Z</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: :post
74
- uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/charge-list-invoiced-1297746103/charges.xml
74
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/charge-list-invoiced-1297746103/charges.xml
75
75
  body: |
76
76
  <?xml version="1.0" encoding="UTF-8"?>
77
77
  <charge>
@@ -81,7 +81,7 @@
81
81
 
82
82
  headers:
83
83
  authorization:
84
- - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
84
+ - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
85
85
  content-type:
86
86
  - application/xml
87
87
  accept:
@@ -98,13 +98,13 @@
98
98
  cache-control:
99
99
  - no-cache
100
100
  x-runtime:
101
- - "300"
101
+ - "311"
102
102
  content-type:
103
103
  - application/xml; charset=utf-8
104
104
  content-length:
105
105
  - "525"
106
106
  set-cookie:
107
- - _recurly_session=dffd496c254f658a65d9a95b48dca6f8; domain=.recurly.local; path=/; HttpOnly
107
+ - _recurly_session=f0b926befb68bf509b7225a3d7bb864d; domain=.recurly.local; path=/; HttpOnly
108
108
  connection:
109
109
  - close
110
110
  server:
@@ -112,21 +112,21 @@
112
112
  body: |
113
113
  <?xml version="1.0" encoding="UTF-8"?>
114
114
  <charge type="charge">
115
- <id>dfd4d484dd1f42ca964a183be1f797aa</id>
115
+ <id>a5eaf7ab84b640f39e436b729e1d751e</id>
116
116
  <account_code>charge-list-invoiced-1297746103</account_code>
117
117
  <amount_in_cents type="integer">1000</amount_in_cents>
118
- <start_date type="datetime">2011-03-18T18:49:23Z</start_date>
118
+ <start_date type="datetime">2011-04-04T02:20:11Z</start_date>
119
119
  <end_date nil="true" type="datetime"></end_date>
120
120
  <invoice_number nil="true" type="integer"></invoice_number>
121
121
  <description>charge description</description>
122
- <created_at type="datetime">2011-03-18T18:49:23Z</created_at>
122
+ <created_at type="datetime">2011-04-04T02:20:11Z</created_at>
123
123
  </charge>
124
124
 
125
125
  http_version: "1.1"
126
126
  - !ruby/struct:VCR::HTTPInteraction
127
127
  request: !ruby/struct:VCR::Request
128
128
  method: :post
129
- uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/charge-list-invoiced-1297746103/charges.xml
129
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/charge-list-invoiced-1297746103/charges.xml
130
130
  body: |
131
131
  <?xml version="1.0" encoding="UTF-8"?>
132
132
  <charge>
@@ -136,7 +136,7 @@
136
136
 
137
137
  headers:
138
138
  authorization:
139
- - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
139
+ - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
140
140
  content-type:
141
141
  - application/xml
142
142
  accept:
@@ -153,13 +153,13 @@
153
153
  cache-control:
154
154
  - no-cache
155
155
  x-runtime:
156
- - "288"
156
+ - "319"
157
157
  content-type:
158
158
  - application/xml; charset=utf-8
159
159
  content-length:
160
160
  - "525"
161
161
  set-cookie:
162
- - _recurly_session=aa875355a7c93794f4c2b97037370cd4; domain=.recurly.local; path=/; HttpOnly
162
+ - _recurly_session=6efe5b5c797e25d9af2e414269b27f6e; domain=.recurly.local; path=/; HttpOnly
163
163
  connection:
164
164
  - close
165
165
  server:
@@ -167,21 +167,21 @@
167
167
  body: |
168
168
  <?xml version="1.0" encoding="UTF-8"?>
169
169
  <charge type="charge">
170
- <id>db9292aa1bde426ab7907985bed03fc2</id>
170
+ <id>38186332465b4bb1ab3e220aadba0358</id>
171
171
  <account_code>charge-list-invoiced-1297746103</account_code>
172
172
  <amount_in_cents type="integer">1000</amount_in_cents>
173
- <start_date type="datetime">2011-03-18T18:49:25Z</start_date>
173
+ <start_date type="datetime">2011-04-04T02:20:13Z</start_date>
174
174
  <end_date nil="true" type="datetime"></end_date>
175
175
  <invoice_number nil="true" type="integer"></invoice_number>
176
176
  <description>charge description</description>
177
- <created_at type="datetime">2011-03-18T18:49:25Z</created_at>
177
+ <created_at type="datetime">2011-04-04T02:20:13Z</created_at>
178
178
  </charge>
179
179
 
180
180
  http_version: "1.1"
181
181
  - !ruby/struct:VCR::HTTPInteraction
182
182
  request: !ruby/struct:VCR::Request
183
183
  method: :post
184
- uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/charge-list-invoiced-1297746103/charges.xml
184
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/charge-list-invoiced-1297746103/charges.xml
185
185
  body: |
186
186
  <?xml version="1.0" encoding="UTF-8"?>
187
187
  <charge>
@@ -191,7 +191,7 @@
191
191
 
192
192
  headers:
193
193
  authorization:
194
- - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
194
+ - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
195
195
  content-type:
196
196
  - application/xml
197
197
  accept:
@@ -208,13 +208,13 @@
208
208
  cache-control:
209
209
  - no-cache
210
210
  x-runtime:
211
- - "289"
211
+ - "325"
212
212
  content-type:
213
213
  - application/xml; charset=utf-8
214
214
  content-length:
215
215
  - "525"
216
216
  set-cookie:
217
- - _recurly_session=b35e72610ef8bab18fade48a97c3e9d0; domain=.recurly.local; path=/; HttpOnly
217
+ - _recurly_session=85da5ceadfb263990351d1ce0f36fcfc; domain=.recurly.local; path=/; HttpOnly
218
218
  connection:
219
219
  - close
220
220
  server:
@@ -222,21 +222,21 @@
222
222
  body: |
223
223
  <?xml version="1.0" encoding="UTF-8"?>
224
224
  <charge type="charge">
225
- <id>0f14435a2c77402ea02b970d950914e2</id>
225
+ <id>b9639448209649868a0a9cd21a060d0f</id>
226
226
  <account_code>charge-list-invoiced-1297746103</account_code>
227
227
  <amount_in_cents type="integer">1000</amount_in_cents>
228
- <start_date type="datetime">2011-03-18T18:49:27Z</start_date>
228
+ <start_date type="datetime">2011-04-04T02:20:16Z</start_date>
229
229
  <end_date nil="true" type="datetime"></end_date>
230
230
  <invoice_number nil="true" type="integer"></invoice_number>
231
231
  <description>charge description</description>
232
- <created_at type="datetime">2011-03-18T18:49:27Z</created_at>
232
+ <created_at type="datetime">2011-04-04T02:20:16Z</created_at>
233
233
  </charge>
234
234
 
235
235
  http_version: "1.1"
236
236
  - !ruby/struct:VCR::HTTPInteraction
237
237
  request: !ruby/struct:VCR::Request
238
238
  method: :post
239
- uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/charge-list-invoiced-1297746103/invoices.xml
239
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/charge-list-invoiced-1297746103/invoices.xml
240
240
  body: |
241
241
  <?xml version="1.0" encoding="UTF-8"?>
242
242
  <invoice>
@@ -244,7 +244,7 @@
244
244
 
245
245
  headers:
246
246
  authorization:
247
- - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
247
+ - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
248
248
  content-type:
249
249
  - application/xml
250
250
  accept:
@@ -261,15 +261,15 @@
261
261
  cache-control:
262
262
  - no-cache
263
263
  location:
264
- - http://app.recurly.local:3000/invoices/e900a476c66043f8a3a34ec9324f5dba
264
+ - http://app.recurly.local:3000/invoices/22b1c6e5c8ba4f8a84af6585426a8720
265
265
  x-runtime:
266
- - "793"
266
+ - "886"
267
267
  content-type:
268
268
  - application/xml; charset=utf-8
269
269
  content-length:
270
270
  - "2142"
271
271
  set-cookie:
272
- - _recurly_session=962b0071a2b1492833efe1f09aac465c; domain=.recurly.local; path=/; HttpOnly
272
+ - _recurly_session=dde6a538d17d4c5a4597d5f18e1bcf42; domain=.recurly.local; path=/; HttpOnly
273
273
  connection:
274
274
  - close
275
275
  server:
@@ -277,10 +277,10 @@
277
277
  body: |
278
278
  <?xml version="1.0" encoding="UTF-8"?>
279
279
  <invoice>
280
- <id>e900a476c66043f8a3a34ec9324f5dba</id>
280
+ <id>22b1c6e5c8ba4f8a84af6585426a8720</id>
281
281
  <account_code>charge-list-invoiced-1297746103</account_code>
282
- <date type="datetime">2011-03-18T18:49:29Z</date>
283
- <invoice_number type="integer">2059</invoice_number>
282
+ <date type="datetime">2011-04-04T02:20:18Z</date>
283
+ <invoice_number type="integer">1274</invoice_number>
284
284
  <vat_number></vat_number>
285
285
  <status>open</status>
286
286
  <subtotal_in_cents type="integer">3000</subtotal_in_cents>
@@ -291,33 +291,33 @@
291
291
  <discount_in_cents type="integer">0</discount_in_cents>
292
292
  <line_items type="array">
293
293
  <line_item>
294
- <id>dfd4d484dd1f42ca964a183be1f797aa</id>
294
+ <id>a5eaf7ab84b640f39e436b729e1d751e</id>
295
295
  <type>charge</type>
296
296
  <amount_in_cents type="integer">1000</amount_in_cents>
297
- <start_date type="datetime">2011-03-18T18:49:23Z</start_date>
297
+ <start_date type="datetime">2011-04-04T02:20:11Z</start_date>
298
298
  <end_date nil="true" type="datetime"></end_date>
299
299
  <description>charge description</description>
300
- <created_at type="datetime">2011-03-18T18:49:23Z</created_at>
300
+ <created_at type="datetime">2011-04-04T02:20:11Z</created_at>
301
301
  <applied_coupon_code></applied_coupon_code>
302
302
  </line_item>
303
303
  <line_item>
304
- <id>db9292aa1bde426ab7907985bed03fc2</id>
304
+ <id>38186332465b4bb1ab3e220aadba0358</id>
305
305
  <type>charge</type>
306
306
  <amount_in_cents type="integer">1000</amount_in_cents>
307
- <start_date type="datetime">2011-03-18T18:49:25Z</start_date>
307
+ <start_date type="datetime">2011-04-04T02:20:13Z</start_date>
308
308
  <end_date nil="true" type="datetime"></end_date>
309
309
  <description>charge description</description>
310
- <created_at type="datetime">2011-03-18T18:49:25Z</created_at>
310
+ <created_at type="datetime">2011-04-04T02:20:13Z</created_at>
311
311
  <applied_coupon_code></applied_coupon_code>
312
312
  </line_item>
313
313
  <line_item>
314
- <id>0f14435a2c77402ea02b970d950914e2</id>
314
+ <id>b9639448209649868a0a9cd21a060d0f</id>
315
315
  <type>charge</type>
316
316
  <amount_in_cents type="integer">1000</amount_in_cents>
317
- <start_date type="datetime">2011-03-18T18:49:27Z</start_date>
317
+ <start_date type="datetime">2011-04-04T02:20:16Z</start_date>
318
318
  <end_date nil="true" type="datetime"></end_date>
319
319
  <description>charge description</description>
320
- <created_at type="datetime">2011-03-18T18:49:27Z</created_at>
320
+ <created_at type="datetime">2011-04-04T02:20:16Z</created_at>
321
321
  <applied_coupon_code></applied_coupon_code>
322
322
  </line_item>
323
323
  </line_items>
@@ -329,7 +329,7 @@
329
329
  - !ruby/struct:VCR::HTTPInteraction
330
330
  request: !ruby/struct:VCR::Request
331
331
  method: :post
332
- uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/charge-list-invoiced-1297746103/charges.xml
332
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/charge-list-invoiced-1297746103/charges.xml
333
333
  body: |
334
334
  <?xml version="1.0" encoding="UTF-8"?>
335
335
  <charge>
@@ -339,7 +339,7 @@
339
339
 
340
340
  headers:
341
341
  authorization:
342
- - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
342
+ - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
343
343
  content-type:
344
344
  - application/xml
345
345
  accept:
@@ -356,13 +356,13 @@
356
356
  cache-control:
357
357
  - no-cache
358
358
  x-runtime:
359
- - "279"
359
+ - "364"
360
360
  content-type:
361
361
  - application/xml; charset=utf-8
362
362
  content-length:
363
363
  - "525"
364
364
  set-cookie:
365
- - _recurly_session=042815f18645785c6261c52025eb2680; domain=.recurly.local; path=/; HttpOnly
365
+ - _recurly_session=8ef3db6fa05b3aa5c2e6d110cd7ed5e9; domain=.recurly.local; path=/; HttpOnly
366
366
  connection:
367
367
  - close
368
368
  server:
@@ -370,25 +370,25 @@
370
370
  body: |
371
371
  <?xml version="1.0" encoding="UTF-8"?>
372
372
  <charge type="charge">
373
- <id>68a26494bb6d41b6bb4fad5ac8b8ace2</id>
373
+ <id>3015ddb2c76d42529438ee2119f2caa7</id>
374
374
  <account_code>charge-list-invoiced-1297746103</account_code>
375
375
  <amount_in_cents type="integer">1000</amount_in_cents>
376
- <start_date type="datetime">2011-03-18T18:49:31Z</start_date>
376
+ <start_date type="datetime">2011-04-04T02:20:21Z</start_date>
377
377
  <end_date nil="true" type="datetime"></end_date>
378
378
  <invoice_number nil="true" type="integer"></invoice_number>
379
379
  <description>charge description</description>
380
- <created_at type="datetime">2011-03-18T18:49:31Z</created_at>
380
+ <created_at type="datetime">2011-04-04T02:20:21Z</created_at>
381
381
  </charge>
382
382
 
383
383
  http_version: "1.1"
384
384
  - !ruby/struct:VCR::HTTPInteraction
385
385
  request: !ruby/struct:VCR::Request
386
386
  method: :get
387
- uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/charge-list-invoiced-1297746103/charges.xml?show=invoiced
387
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/charge-list-invoiced-1297746103/charges.xml?show=invoiced
388
388
  body:
389
389
  headers:
390
390
  authorization:
391
- - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
391
+ - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
392
392
  accept:
393
393
  - application/xml
394
394
  accept-encoding:
@@ -403,17 +403,17 @@
403
403
  message: OK
404
404
  headers:
405
405
  x-runtime:
406
- - "278"
406
+ - "298"
407
407
  content-type:
408
408
  - application/xml; charset=utf-8
409
409
  etag:
410
- - "\"4eea09ea0a3c782f48e3b4f392ccfca6\""
410
+ - "\"feb6af865d7e3844eb50f445185490ed\""
411
411
  cache-control:
412
412
  - private, max-age=0, must-revalidate
413
413
  content-length:
414
414
  - "1570"
415
415
  set-cookie:
416
- - _recurly_session=626d17011ce9257a7e7651fc38216dda; domain=.recurly.local; path=/; HttpOnly
416
+ - _recurly_session=83982073fdd066c1da7de596a0ee77ee; domain=.recurly.local; path=/; HttpOnly
417
417
  connection:
418
418
  - close
419
419
  server:
@@ -422,34 +422,34 @@
422
422
  <?xml version="1.0" encoding="UTF-8"?>
423
423
  <charges type="array">
424
424
  <charge type="charge">
425
- <id>0f14435a2c77402ea02b970d950914e2</id>
425
+ <id>b9639448209649868a0a9cd21a060d0f</id>
426
426
  <account_code>charge-list-invoiced-1297746103</account_code>
427
427
  <amount_in_cents type="integer">1000</amount_in_cents>
428
- <start_date type="datetime">2011-03-18T18:49:27Z</start_date>
428
+ <start_date type="datetime">2011-04-04T02:20:16Z</start_date>
429
429
  <end_date nil="true" type="datetime"></end_date>
430
- <invoice_number type="integer">2059</invoice_number>
430
+ <invoice_number type="integer">1274</invoice_number>
431
431
  <description>charge description</description>
432
- <created_at type="datetime">2011-03-18T18:49:27Z</created_at>
432
+ <created_at type="datetime">2011-04-04T02:20:16Z</created_at>
433
433
  </charge>
434
434
  <charge type="charge">
435
- <id>db9292aa1bde426ab7907985bed03fc2</id>
435
+ <id>38186332465b4bb1ab3e220aadba0358</id>
436
436
  <account_code>charge-list-invoiced-1297746103</account_code>
437
437
  <amount_in_cents type="integer">1000</amount_in_cents>
438
- <start_date type="datetime">2011-03-18T18:49:25Z</start_date>
438
+ <start_date type="datetime">2011-04-04T02:20:13Z</start_date>
439
439
  <end_date nil="true" type="datetime"></end_date>
440
- <invoice_number type="integer">2059</invoice_number>
440
+ <invoice_number type="integer">1274</invoice_number>
441
441
  <description>charge description</description>
442
- <created_at type="datetime">2011-03-18T18:49:25Z</created_at>
442
+ <created_at type="datetime">2011-04-04T02:20:13Z</created_at>
443
443
  </charge>
444
444
  <charge type="charge">
445
- <id>dfd4d484dd1f42ca964a183be1f797aa</id>
445
+ <id>a5eaf7ab84b640f39e436b729e1d751e</id>
446
446
  <account_code>charge-list-invoiced-1297746103</account_code>
447
447
  <amount_in_cents type="integer">1000</amount_in_cents>
448
- <start_date type="datetime">2011-03-18T18:49:23Z</start_date>
448
+ <start_date type="datetime">2011-04-04T02:20:11Z</start_date>
449
449
  <end_date nil="true" type="datetime"></end_date>
450
- <invoice_number type="integer">2059</invoice_number>
450
+ <invoice_number type="integer">1274</invoice_number>
451
451
  <description>charge description</description>
452
- <created_at type="datetime">2011-03-18T18:49:23Z</created_at>
452
+ <created_at type="datetime">2011-04-04T02:20:11Z</created_at>
453
453
  </charge>
454
454
  </charges>
455
455
 
@@ -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/charge-list-pending-1297746103
41
41
  x-runtime:
42
- - "311"
42
+ - "542"
43
43
  content-type:
44
44
  - application/xml; charset=utf-8
45
45
  content-length:
46
46
  - "593"
47
47
  set-cookie:
48
- - _recurly_session=066ff378a26ef33870119a7289c54e00; domain=.recurly.local; path=/; HttpOnly
48
+ - _recurly_session=0c0e5e0904a8f54bd8d781fe80382ecf; 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>1525d4d7fa7245d7a471d827e350f536</hosted_login_token>
66
- <created_at type="datetime">2011-03-18T18:49:10Z</created_at>
65
+ <hosted_login_token>67eb146c36654f14af37951cbe2d3548</hosted_login_token>
66
+ <created_at type="datetime">2011-04-04T02:19:57Z</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: :post
74
- uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/charge-list-pending-1297746103/charges.xml
74
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/charge-list-pending-1297746103/charges.xml
75
75
  body: |
76
76
  <?xml version="1.0" encoding="UTF-8"?>
77
77
  <charge>
@@ -81,7 +81,7 @@
81
81
 
82
82
  headers:
83
83
  authorization:
84
- - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
84
+ - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
85
85
  content-type:
86
86
  - application/xml
87
87
  accept:
@@ -98,13 +98,13 @@
98
98
  cache-control:
99
99
  - no-cache
100
100
  x-runtime:
101
- - "291"
101
+ - "117"
102
102
  content-type:
103
103
  - application/xml; charset=utf-8
104
104
  content-length:
105
105
  - "524"
106
106
  set-cookie:
107
- - _recurly_session=bc7dbe399cfd9fdf80101fb2dbacd590; domain=.recurly.local; path=/; HttpOnly
107
+ - _recurly_session=79f64d14f5ff46f06d9d81a39f2a0eb6; domain=.recurly.local; path=/; HttpOnly
108
108
  connection:
109
109
  - close
110
110
  server:
@@ -112,21 +112,21 @@
112
112
  body: |
113
113
  <?xml version="1.0" encoding="UTF-8"?>
114
114
  <charge type="charge">
115
- <id>344248a911d9448fab2ed224c7f8d29e</id>
115
+ <id>cf6a253d5bd445809ca3b51b4a10c508</id>
116
116
  <account_code>charge-list-pending-1297746103</account_code>
117
117
  <amount_in_cents type="integer">1000</amount_in_cents>
118
- <start_date type="datetime">2011-03-18T18:49:13Z</start_date>
118
+ <start_date type="datetime">2011-04-04T02:20:00Z</start_date>
119
119
  <end_date nil="true" type="datetime"></end_date>
120
120
  <invoice_number nil="true" type="integer"></invoice_number>
121
121
  <description>charge description</description>
122
- <created_at type="datetime">2011-03-18T18:49:13Z</created_at>
122
+ <created_at type="datetime">2011-04-04T02:20:00Z</created_at>
123
123
  </charge>
124
124
 
125
125
  http_version: "1.1"
126
126
  - !ruby/struct:VCR::HTTPInteraction
127
127
  request: !ruby/struct:VCR::Request
128
128
  method: :post
129
- uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/charge-list-pending-1297746103/charges.xml
129
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/charge-list-pending-1297746103/charges.xml
130
130
  body: |
131
131
  <?xml version="1.0" encoding="UTF-8"?>
132
132
  <charge>
@@ -136,7 +136,7 @@
136
136
 
137
137
  headers:
138
138
  authorization:
139
- - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
139
+ - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
140
140
  content-type:
141
141
  - application/xml
142
142
  accept:
@@ -153,13 +153,13 @@
153
153
  cache-control:
154
154
  - no-cache
155
155
  x-runtime:
156
- - "284"
156
+ - "307"
157
157
  content-type:
158
158
  - application/xml; charset=utf-8
159
159
  content-length:
160
160
  - "524"
161
161
  set-cookie:
162
- - _recurly_session=0f6f4d1a610321b9e034f7484196773d; domain=.recurly.local; path=/; HttpOnly
162
+ - _recurly_session=56cc369716e5350b81c8ea0c85e10cfa; domain=.recurly.local; path=/; HttpOnly
163
163
  connection:
164
164
  - close
165
165
  server:
@@ -167,21 +167,21 @@
167
167
  body: |
168
168
  <?xml version="1.0" encoding="UTF-8"?>
169
169
  <charge type="charge">
170
- <id>baf6d3d081464592b92bf2b13c0f5dfa</id>
170
+ <id>c6b80d8f132c4afe9500f3025c84f68a</id>
171
171
  <account_code>charge-list-pending-1297746103</account_code>
172
172
  <amount_in_cents type="integer">1000</amount_in_cents>
173
- <start_date type="datetime">2011-03-18T18:49:14Z</start_date>
173
+ <start_date type="datetime">2011-04-04T02:20:02Z</start_date>
174
174
  <end_date nil="true" type="datetime"></end_date>
175
175
  <invoice_number nil="true" type="integer"></invoice_number>
176
176
  <description>charge description</description>
177
- <created_at type="datetime">2011-03-18T18:49:15Z</created_at>
177
+ <created_at type="datetime">2011-04-04T02:20:02Z</created_at>
178
178
  </charge>
179
179
 
180
180
  http_version: "1.1"
181
181
  - !ruby/struct:VCR::HTTPInteraction
182
182
  request: !ruby/struct:VCR::Request
183
183
  method: :post
184
- uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/charge-list-pending-1297746103/charges.xml
184
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/charge-list-pending-1297746103/charges.xml
185
185
  body: |
186
186
  <?xml version="1.0" encoding="UTF-8"?>
187
187
  <charge>
@@ -191,7 +191,7 @@
191
191
 
192
192
  headers:
193
193
  authorization:
194
- - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
194
+ - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
195
195
  content-type:
196
196
  - application/xml
197
197
  accept:
@@ -208,13 +208,13 @@
208
208
  cache-control:
209
209
  - no-cache
210
210
  x-runtime:
211
- - "287"
211
+ - "316"
212
212
  content-type:
213
213
  - application/xml; charset=utf-8
214
214
  content-length:
215
215
  - "524"
216
216
  set-cookie:
217
- - _recurly_session=25d3a72ae6899055273e664dd678abeb; domain=.recurly.local; path=/; HttpOnly
217
+ - _recurly_session=9fe7c75ca463e9b90d3c4a50ce4ff735; domain=.recurly.local; path=/; HttpOnly
218
218
  connection:
219
219
  - close
220
220
  server:
@@ -222,25 +222,25 @@
222
222
  body: |
223
223
  <?xml version="1.0" encoding="UTF-8"?>
224
224
  <charge type="charge">
225
- <id>7572deeffa1a4844bddb12c39b89f778</id>
225
+ <id>cef7842dcca84682a4aea1c1919444e3</id>
226
226
  <account_code>charge-list-pending-1297746103</account_code>
227
227
  <amount_in_cents type="integer">1000</amount_in_cents>
228
- <start_date type="datetime">2011-03-18T18:49:17Z</start_date>
228
+ <start_date type="datetime">2011-04-04T02:20:04Z</start_date>
229
229
  <end_date nil="true" type="datetime"></end_date>
230
230
  <invoice_number nil="true" type="integer"></invoice_number>
231
231
  <description>charge description</description>
232
- <created_at type="datetime">2011-03-18T18:49:17Z</created_at>
232
+ <created_at type="datetime">2011-04-04T02:20:04Z</created_at>
233
233
  </charge>
234
234
 
235
235
  http_version: "1.1"
236
236
  - !ruby/struct:VCR::HTTPInteraction
237
237
  request: !ruby/struct:VCR::Request
238
238
  method: :get
239
- uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/charge-list-pending-1297746103/charges.xml?show=pending
239
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/charge-list-pending-1297746103/charges.xml?show=pending
240
240
  body:
241
241
  headers:
242
242
  authorization:
243
- - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
243
+ - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
244
244
  accept:
245
245
  - application/xml
246
246
  accept-encoding:
@@ -255,17 +255,17 @@
255
255
  message: OK
256
256
  headers:
257
257
  x-runtime:
258
- - "83"
258
+ - "299"
259
259
  content-type:
260
260
  - application/xml; charset=utf-8
261
261
  etag:
262
- - "\"0feba2899da62a99d2f0ad0f1eebad0a\""
262
+ - "\"2af83d8c2100052525aca0001a2f553a\""
263
263
  cache-control:
264
264
  - private, max-age=0, must-revalidate
265
265
  content-length:
266
266
  - "1588"
267
267
  set-cookie:
268
- - _recurly_session=ed586d59fa25faa93a0d3a48fddb68da; domain=.recurly.local; path=/; HttpOnly
268
+ - _recurly_session=0dd5a38fb5315af097be08511ead0911; domain=.recurly.local; path=/; HttpOnly
269
269
  connection:
270
270
  - close
271
271
  server:
@@ -274,34 +274,34 @@
274
274
  <?xml version="1.0" encoding="UTF-8"?>
275
275
  <charges type="array">
276
276
  <charge type="charge">
277
- <id>7572deeffa1a4844bddb12c39b89f778</id>
277
+ <id>cef7842dcca84682a4aea1c1919444e3</id>
278
278
  <account_code>charge-list-pending-1297746103</account_code>
279
279
  <amount_in_cents type="integer">1000</amount_in_cents>
280
- <start_date type="datetime">2011-03-18T18:49:17Z</start_date>
280
+ <start_date type="datetime">2011-04-04T02:20:04Z</start_date>
281
281
  <end_date nil="true" type="datetime"></end_date>
282
282
  <invoice_number nil="true" type="integer"></invoice_number>
283
283
  <description>charge description</description>
284
- <created_at type="datetime">2011-03-18T18:49:17Z</created_at>
284
+ <created_at type="datetime">2011-04-04T02:20:04Z</created_at>
285
285
  </charge>
286
286
  <charge type="charge">
287
- <id>baf6d3d081464592b92bf2b13c0f5dfa</id>
287
+ <id>c6b80d8f132c4afe9500f3025c84f68a</id>
288
288
  <account_code>charge-list-pending-1297746103</account_code>
289
289
  <amount_in_cents type="integer">1000</amount_in_cents>
290
- <start_date type="datetime">2011-03-18T18:49:14Z</start_date>
290
+ <start_date type="datetime">2011-04-04T02:20:02Z</start_date>
291
291
  <end_date nil="true" type="datetime"></end_date>
292
292
  <invoice_number nil="true" type="integer"></invoice_number>
293
293
  <description>charge description</description>
294
- <created_at type="datetime">2011-03-18T18:49:15Z</created_at>
294
+ <created_at type="datetime">2011-04-04T02:20:02Z</created_at>
295
295
  </charge>
296
296
  <charge type="charge">
297
- <id>344248a911d9448fab2ed224c7f8d29e</id>
297
+ <id>cf6a253d5bd445809ca3b51b4a10c508</id>
298
298
  <account_code>charge-list-pending-1297746103</account_code>
299
299
  <amount_in_cents type="integer">1000</amount_in_cents>
300
- <start_date type="datetime">2011-03-18T18:49:13Z</start_date>
300
+ <start_date type="datetime">2011-04-04T02:20:00Z</start_date>
301
301
  <end_date nil="true" type="datetime"></end_date>
302
302
  <invoice_number nil="true" type="integer"></invoice_number>
303
303
  <description>charge description</description>
304
- <created_at type="datetime">2011-03-18T18:49:13Z</created_at>
304
+ <created_at type="datetime">2011-04-04T02:20:00Z</created_at>
305
305
  </charge>
306
306
  </charges>
307
307