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
@@ -0,0 +1,449 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :post
5
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts.xml
6
+ body: |
7
+ <?xml version="1.0" encoding="UTF-8"?>
8
+ <account>
9
+ <account-code>subscription-addons-remove-1301884213</account-code>
10
+ <first-name>Verena</first-name>
11
+ <last-name>Test</last-name>
12
+ <email>verena@test.com</email>
13
+ <company-name>Recurly Ruby Gem</company-name>
14
+ <billing-info>
15
+ <credit-card>
16
+ </credit-card>
17
+ </billing-info>
18
+ <accept-language type="yaml" nil="true"></accept-language>
19
+ </account>
20
+
21
+ headers:
22
+ authorization:
23
+ - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
24
+ content-type:
25
+ - application/xml
26
+ accept:
27
+ - "*/*"
28
+ user-agent:
29
+ - Ruby
30
+ connection:
31
+ - close
32
+ response: !ruby/struct:VCR::Response
33
+ status: !ruby/struct:VCR::ResponseStatus
34
+ code: 201
35
+ message: Created
36
+ headers:
37
+ cache-control:
38
+ - no-cache
39
+ location:
40
+ - http://app.recurly.local:3000/accounts/subscription-addons-remove-1301884213
41
+ x-runtime:
42
+ - "315"
43
+ content-type:
44
+ - application/xml; charset=utf-8
45
+ content-length:
46
+ - "607"
47
+ set-cookie:
48
+ - _recurly_session=d266775eb48519fb5eefcbd699b8126d; domain=.recurly.local; path=/; HttpOnly
49
+ connection:
50
+ - close
51
+ server:
52
+ - thin 1.2.7 codename No Hup
53
+ body: |
54
+ <?xml version="1.0" encoding="UTF-8"?>
55
+ <account>
56
+ <id>subscription-addons-remove-1301884213</id>
57
+ <account_code>subscription-addons-remove-1301884213</account_code>
58
+ <username></username>
59
+ <email>verena@test.com</email>
60
+ <first_name>Verena</first_name>
61
+ <last_name>Test</last_name>
62
+ <company_name>Recurly Ruby Gem</company_name>
63
+ <balance_in_cents type="integer">0</balance_in_cents>
64
+ <closed type="boolean">false</closed>
65
+ <hosted_login_token>c2f8b74abc4548b49130a84603fa5b10</hosted_login_token>
66
+ <created_at type="datetime">2011-04-04T02:31:07Z</created_at>
67
+ <state>active</state>
68
+ </account>
69
+
70
+ http_version: "1.1"
71
+ - !ruby/struct:VCR::HTTPInteraction
72
+ request: !ruby/struct:VCR::Request
73
+ method: :get
74
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/company/plans/paid.xml
75
+ body:
76
+ headers:
77
+ authorization:
78
+ - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
79
+ accept:
80
+ - application/xml
81
+ accept-encoding:
82
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
83
+ user-agent:
84
+ - Ruby
85
+ connection:
86
+ - close
87
+ response: !ruby/struct:VCR::Response
88
+ status: !ruby/struct:VCR::ResponseStatus
89
+ code: 200
90
+ message: OK
91
+ headers:
92
+ x-runtime:
93
+ - "313"
94
+ content-type:
95
+ - application/xml; charset=utf-8
96
+ etag:
97
+ - "\"eea146faf9def8e0ad1bce0a43411f13\""
98
+ cache-control:
99
+ - private, max-age=0, must-revalidate
100
+ content-length:
101
+ - "1558"
102
+ set-cookie:
103
+ - _recurly_session=3d28309416bb0b724c78086004c06787; domain=.recurly.local; path=/; HttpOnly
104
+ connection:
105
+ - close
106
+ server:
107
+ - thin 1.2.7 codename No Hup
108
+ body: |
109
+ <?xml version="1.0" encoding="UTF-8"?>
110
+ <plan>
111
+ <plan_code>paid</plan_code>
112
+ <name>Paid</name>
113
+ <description></description>
114
+ <success_url></success_url>
115
+ <cancel_url></cancel_url>
116
+ <created_at type="datetime">2011-04-03T21:46:48Z</created_at>
117
+ <unit_amount_in_cents type="integer">200</unit_amount_in_cents>
118
+ <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
119
+ <plan_interval_length type="integer">1</plan_interval_length>
120
+ <plan_interval_unit>months</plan_interval_unit>
121
+ <trial_interval_length type="integer">0</trial_interval_length>
122
+ <trial_interval_unit>months</trial_interval_unit>
123
+ <latest_version depreciated="true">
124
+ <version type="integer">1</version>
125
+ <unit_amount_in_cents type="integer">200</unit_amount_in_cents>
126
+ <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
127
+ <plan_interval_length type="integer">1</plan_interval_length>
128
+ <plan_interval_unit>months</plan_interval_unit>
129
+ <trial_interval_length type="integer">0</trial_interval_length>
130
+ <trial_interval_unit>months</trial_interval_unit>
131
+ <created_at type="datetime">2011-04-04T02:15:00Z</created_at>
132
+ </latest_version>
133
+ <add_ons type="array">
134
+ <add_on>
135
+ <add_on_code>special</add_on_code>
136
+ <default_unit_amount_in_cents>1000</default_unit_amount_in_cents>
137
+ <default_quantity>1</default_quantity>
138
+ </add_on>
139
+ <add_on>
140
+ <add_on_code>special2</add_on_code>
141
+ <default_unit_amount_in_cents>50000</default_unit_amount_in_cents>
142
+ <default_quantity>1</default_quantity>
143
+ </add_on>
144
+ </add_ons>
145
+ </plan>
146
+
147
+ http_version: "1.1"
148
+ - !ruby/struct:VCR::HTTPInteraction
149
+ request: !ruby/struct:VCR::Request
150
+ method: :post
151
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/subscription-addons-remove-1301884213/subscription.xml
152
+ body: |
153
+ <?xml version="1.0" encoding="UTF-8"?>
154
+ <subscription>
155
+ <plan-code>paid</plan-code>
156
+ <quantity type="integer">1</quantity>
157
+ <account>
158
+ <account-code>subscription-addons-remove-1301884213</account-code>
159
+ <first-name>Verena</first-name>
160
+ <last-name>Test</last-name>
161
+ <email>verena@test.com</email>
162
+ <company-name>Recurly Ruby Gem</company-name>
163
+ <billing-info>
164
+ <first-name>Verena</first-name>
165
+ <last-name>Test</last-name>
166
+ <address1>123 Test St</address1>
167
+ <city>San Francisco</city>
168
+ <state>CA</state>
169
+ <zip>94115</zip>
170
+ <country>US</country>
171
+ <credit-card>
172
+ <number>4111111111111111</number>
173
+ <year type="integer">2012</year>
174
+ <month type="integer">4</month>
175
+ <verification-value>123</verification-value>
176
+ </credit-card>
177
+ </billing-info>
178
+ <accept-language type="yaml" nil="true"></accept-language>
179
+ <id>subscription-addons-remove-1301884213</id>
180
+ <username type="yaml" nil="true"></username>
181
+ <balance-in-cents type="integer">0</balance-in-cents>
182
+ <closed type="boolean">false</closed>
183
+ <hosted-login-token>c2f8b74abc4548b49130a84603fa5b10</hosted-login-token>
184
+ <created-at type="datetime">2011-04-04T02:31:07Z</created-at>
185
+ <state>active</state>
186
+ </account>
187
+ <add-ons type="array">
188
+ <add-on>
189
+ <add-on-code>special</add-on-code>
190
+ <quantity type="integer">1</quantity>
191
+ <unit-amount type="integer">1000</unit-amount>
192
+ </add-on>
193
+ </add-ons>
194
+ <addons type="array"/>
195
+ </subscription>
196
+
197
+ headers:
198
+ authorization:
199
+ - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
200
+ content-type:
201
+ - application/xml
202
+ accept:
203
+ - "*/*"
204
+ user-agent:
205
+ - Ruby
206
+ connection:
207
+ - close
208
+ response: !ruby/struct:VCR::Response
209
+ status: !ruby/struct:VCR::ResponseStatus
210
+ code: 201
211
+ message: Created
212
+ headers:
213
+ cache-control:
214
+ - no-cache
215
+ x-runtime:
216
+ - "4887"
217
+ content-type:
218
+ - application/xml; charset=utf-8
219
+ content-length:
220
+ - "1109"
221
+ set-cookie:
222
+ - _recurly_session=d2c4baf209a596b2e12946e327dc8ce8; domain=.recurly.local; path=/; HttpOnly
223
+ connection:
224
+ - close
225
+ server:
226
+ - thin 1.2.7 codename No Hup
227
+ body: |
228
+ <?xml version="1.0" encoding="UTF-8"?>
229
+ <subscription>
230
+ <id>subscription-addons-remove-1301884213</id>
231
+ <account_code>subscription-addons-remove-1301884213</account_code>
232
+ <plan>
233
+ <plan_code>paid</plan_code>
234
+ <name>Paid</name>
235
+ </plan>
236
+ <state>active</state>
237
+ <quantity type="integer">1</quantity>
238
+ <total_amount_in_cents type="integer">100200</total_amount_in_cents>
239
+ <activated_at type="datetime">2011-04-04T02:31:12Z</activated_at>
240
+ <canceled_at nil="true" type="datetime"></canceled_at>
241
+ <expires_at nil="true" type="datetime"></expires_at>
242
+ <current_period_started_at type="datetime">2011-04-04T02:31:12Z</current_period_started_at>
243
+ <current_period_ends_at type="datetime">2011-05-04T02:31:12Z</current_period_ends_at>
244
+ <trial_started_at nil="true" type="datetime"></trial_started_at>
245
+ <trial_ends_at nil="true" type="datetime"></trial_ends_at>
246
+ <add_ons type="array">
247
+ <add_on>
248
+ <add_on_code>special</add_on_code>
249
+ <unit_amount_in_cents type="integer">100000</unit_amount_in_cents>
250
+ <quantity type="integer">1</quantity>
251
+ </add_on>
252
+ </add_ons>
253
+ </subscription>
254
+
255
+ http_version: "1.1"
256
+ - !ruby/struct:VCR::HTTPInteraction
257
+ request: !ruby/struct:VCR::Request
258
+ method: :get
259
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/subscription-addons-remove-1301884213/subscription.xml
260
+ body:
261
+ headers:
262
+ authorization:
263
+ - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
264
+ accept:
265
+ - application/xml
266
+ accept-encoding:
267
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
268
+ user-agent:
269
+ - Ruby
270
+ connection:
271
+ - close
272
+ response: !ruby/struct:VCR::Response
273
+ status: !ruby/struct:VCR::ResponseStatus
274
+ code: 200
275
+ message: OK
276
+ headers:
277
+ x-runtime:
278
+ - "728"
279
+ content-type:
280
+ - application/xml; charset=utf-8
281
+ etag:
282
+ - "\"a3addbf13246e5b5944017fa1d9d6279\""
283
+ cache-control:
284
+ - private, max-age=0, must-revalidate
285
+ content-length:
286
+ - "1109"
287
+ set-cookie:
288
+ - _recurly_session=6cbf7ff24798a933142e27bf9115897c; domain=.recurly.local; path=/; HttpOnly
289
+ connection:
290
+ - close
291
+ server:
292
+ - thin 1.2.7 codename No Hup
293
+ body: |
294
+ <?xml version="1.0" encoding="UTF-8"?>
295
+ <subscription>
296
+ <id>subscription-addons-remove-1301884213</id>
297
+ <account_code>subscription-addons-remove-1301884213</account_code>
298
+ <plan>
299
+ <plan_code>paid</plan_code>
300
+ <name>Paid</name>
301
+ </plan>
302
+ <state>active</state>
303
+ <quantity type="integer">1</quantity>
304
+ <total_amount_in_cents type="integer">100200</total_amount_in_cents>
305
+ <activated_at type="datetime">2011-04-04T02:31:12Z</activated_at>
306
+ <canceled_at nil="true" type="datetime"></canceled_at>
307
+ <expires_at nil="true" type="datetime"></expires_at>
308
+ <current_period_started_at type="datetime">2011-04-04T02:31:12Z</current_period_started_at>
309
+ <current_period_ends_at type="datetime">2011-05-04T02:31:12Z</current_period_ends_at>
310
+ <trial_started_at nil="true" type="datetime"></trial_started_at>
311
+ <trial_ends_at nil="true" type="datetime"></trial_ends_at>
312
+ <add_ons type="array">
313
+ <add_on>
314
+ <add_on_code>special</add_on_code>
315
+ <unit_amount_in_cents type="integer">100000</unit_amount_in_cents>
316
+ <quantity type="integer">1</quantity>
317
+ </add_on>
318
+ </add_ons>
319
+ </subscription>
320
+
321
+ http_version: "1.1"
322
+ - !ruby/struct:VCR::HTTPInteraction
323
+ request: !ruby/struct:VCR::Request
324
+ method: :put
325
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/subscription-addons-remove-1301884213/subscription.xml
326
+ body: |
327
+ <?xml version="1.0" encoding="UTF-8"?>
328
+ <subscription>
329
+ <add-ons type="array"/>
330
+ <timeframe>now</timeframe>
331
+ </subscription>
332
+
333
+ headers:
334
+ authorization:
335
+ - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
336
+ content-type:
337
+ - application/xml
338
+ accept:
339
+ - "*/*"
340
+ user-agent:
341
+ - Ruby
342
+ connection:
343
+ - close
344
+ response: !ruby/struct:VCR::Response
345
+ status: !ruby/struct:VCR::ResponseStatus
346
+ code: 200
347
+ message: OK
348
+ headers:
349
+ x-runtime:
350
+ - "2281"
351
+ content-type:
352
+ - application/xml; charset=utf-8
353
+ etag:
354
+ - "\"256e152a3ea2080bf5201c15cca8609c\""
355
+ cache-control:
356
+ - private, max-age=0, must-revalidate
357
+ content-length:
358
+ - "921"
359
+ set-cookie:
360
+ - _recurly_session=f6a3c0d060a78ac765fae5f4c57781a9; domain=.recurly.local; path=/; HttpOnly
361
+ connection:
362
+ - close
363
+ server:
364
+ - thin 1.2.7 codename No Hup
365
+ body: |
366
+ <?xml version="1.0" encoding="UTF-8"?>
367
+ <subscription>
368
+ <id>subscription-addons-remove-1301884213</id>
369
+ <account_code>subscription-addons-remove-1301884213</account_code>
370
+ <plan>
371
+ <plan_code>paid</plan_code>
372
+ <name>Paid</name>
373
+ </plan>
374
+ <state>active</state>
375
+ <quantity type="integer">1</quantity>
376
+ <total_amount_in_cents type="integer">200</total_amount_in_cents>
377
+ <activated_at type="datetime">2011-04-04T02:31:22Z</activated_at>
378
+ <canceled_at nil="true" type="datetime"></canceled_at>
379
+ <expires_at nil="true" type="datetime"></expires_at>
380
+ <current_period_started_at type="datetime">2011-04-04T02:31:12Z</current_period_started_at>
381
+ <current_period_ends_at type="datetime">2011-05-04T02:31:12Z</current_period_ends_at>
382
+ <trial_started_at nil="true" type="datetime"></trial_started_at>
383
+ <trial_ends_at nil="true" type="datetime"></trial_ends_at>
384
+ <add_ons type="array">
385
+ </add_ons>
386
+ </subscription>
387
+
388
+ http_version: "1.1"
389
+ - !ruby/struct:VCR::HTTPInteraction
390
+ request: !ruby/struct:VCR::Request
391
+ method: :get
392
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/subscription-addons-remove-1301884213/subscription.xml
393
+ body:
394
+ headers:
395
+ authorization:
396
+ - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
397
+ accept:
398
+ - application/xml
399
+ accept-encoding:
400
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
401
+ user-agent:
402
+ - Ruby
403
+ connection:
404
+ - close
405
+ response: !ruby/struct:VCR::Response
406
+ status: !ruby/struct:VCR::ResponseStatus
407
+ code: 200
408
+ message: OK
409
+ headers:
410
+ x-runtime:
411
+ - "324"
412
+ content-type:
413
+ - application/xml; charset=utf-8
414
+ etag:
415
+ - "\"256e152a3ea2080bf5201c15cca8609c\""
416
+ cache-control:
417
+ - private, max-age=0, must-revalidate
418
+ content-length:
419
+ - "921"
420
+ set-cookie:
421
+ - _recurly_session=fb90237baaf57d482a8cbb1111c35226; domain=.recurly.local; path=/; HttpOnly
422
+ connection:
423
+ - close
424
+ server:
425
+ - thin 1.2.7 codename No Hup
426
+ body: |
427
+ <?xml version="1.0" encoding="UTF-8"?>
428
+ <subscription>
429
+ <id>subscription-addons-remove-1301884213</id>
430
+ <account_code>subscription-addons-remove-1301884213</account_code>
431
+ <plan>
432
+ <plan_code>paid</plan_code>
433
+ <name>Paid</name>
434
+ </plan>
435
+ <state>active</state>
436
+ <quantity type="integer">1</quantity>
437
+ <total_amount_in_cents type="integer">200</total_amount_in_cents>
438
+ <activated_at type="datetime">2011-04-04T02:31:22Z</activated_at>
439
+ <canceled_at nil="true" type="datetime"></canceled_at>
440
+ <expires_at nil="true" type="datetime"></expires_at>
441
+ <current_period_started_at type="datetime">2011-04-04T02:31:12Z</current_period_started_at>
442
+ <current_period_ends_at type="datetime">2011-05-04T02:31:12Z</current_period_ends_at>
443
+ <trial_started_at nil="true" type="datetime"></trial_started_at>
444
+ <trial_ends_at nil="true" type="datetime"></trial_ends_at>
445
+ <add_ons type="array">
446
+ </add_ons>
447
+ </subscription>
448
+
449
+ http_version: "1.1"
@@ -2,11 +2,11 @@
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>
9
- <account-code>subscription-cancel-with-code-1297746103</account-code>
9
+ <account-code>subscription-cancel-with-code-1301881900</account-code>
10
10
  <first-name>Verena</first-name>
11
11
  <last-name>Test</last-name>
12
12
  <email>verena@test.com</email>
@@ -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:
@@ -37,15 +37,15 @@
37
37
  cache-control:
38
38
  - no-cache
39
39
  location:
40
- - http://app.recurly.local:3000/accounts/subscription-cancel-with-code-1297746103
40
+ - http://app.recurly.local:3000/accounts/subscription-cancel-with-code-1301881900
41
41
  x-runtime:
42
- - "352"
42
+ - "304"
43
43
  content-type:
44
44
  - application/xml; charset=utf-8
45
45
  content-length:
46
46
  - "613"
47
47
  set-cookie:
48
- - _recurly_session=ae9b2f78d61ee26cfad4091921d4fd52; domain=.recurly.local; path=/; HttpOnly
48
+ - _recurly_session=fdb8f3850de8c1bdb998deac2f72ff6e; domain=.recurly.local; path=/; HttpOnly
49
49
  connection:
50
50
  - close
51
51
  server:
@@ -53,8 +53,8 @@
53
53
  body: |
54
54
  <?xml version="1.0" encoding="UTF-8"?>
55
55
  <account>
56
- <id>subscription-cancel-with-code-1297746103</id>
57
- <account_code>subscription-cancel-with-code-1297746103</account_code>
56
+ <id>subscription-cancel-with-code-1301881900</id>
57
+ <account_code>subscription-cancel-with-code-1301881900</account_code>
58
58
  <username></username>
59
59
  <email>verena@test.com</email>
60
60
  <first_name>Verena</first_name>
@@ -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>3a8a5ad46cb6452db6d772a9f3716179</hosted_login_token>
66
- <created_at type="datetime">2011-03-18T18:54:24Z</created_at>
65
+ <hosted_login_token>fe0c836b301c4c339e967831a97f98fa</hosted_login_token>
66
+ <created_at type="datetime">2011-04-04T02:24:40Z</created_at>
67
67
  <state>active</state>
68
68
  </account>
69
69
 
@@ -71,11 +71,11 @@
71
71
  - !ruby/struct:VCR::HTTPInteraction
72
72
  request: !ruby/struct:VCR::Request
73
73
  method: :get
74
- uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/company/plans/paid.xml
74
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/company/plans/paid.xml
75
75
  body:
76
76
  headers:
77
77
  authorization:
78
- - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
78
+ - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
79
79
  accept:
80
80
  - application/xml
81
81
  accept-encoding:
@@ -90,17 +90,17 @@
90
90
  message: OK
91
91
  headers:
92
92
  x-runtime:
93
- - "311"
93
+ - "262"
94
94
  content-type:
95
95
  - application/xml; charset=utf-8
96
96
  etag:
97
- - "\"dc04fba13f15d49d04ca6692abb21ff9\""
97
+ - "\"eea146faf9def8e0ad1bce0a43411f13\""
98
98
  cache-control:
99
99
  - private, max-age=0, must-revalidate
100
100
  content-length:
101
- - "1146"
101
+ - "1558"
102
102
  set-cookie:
103
- - _recurly_session=3f75bc31176ffb869ab49ff9c931a4f4; domain=.recurly.local; path=/; HttpOnly
103
+ - _recurly_session=d705486dfd7e1be5b3d69061a5906377; domain=.recurly.local; path=/; HttpOnly
104
104
  connection:
105
105
  - close
106
106
  server:
@@ -113,37 +113,49 @@
113
113
  <description></description>
114
114
  <success_url></success_url>
115
115
  <cancel_url></cancel_url>
116
- <created_at type="datetime">2011-02-02T21:02:59Z</created_at>
117
- <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
116
+ <created_at type="datetime">2011-04-03T21:46:48Z</created_at>
117
+ <unit_amount_in_cents type="integer">200</unit_amount_in_cents>
118
118
  <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
119
119
  <plan_interval_length type="integer">1</plan_interval_length>
120
- <plan_interval_unit>days</plan_interval_unit>
120
+ <plan_interval_unit>months</plan_interval_unit>
121
121
  <trial_interval_length type="integer">0</trial_interval_length>
122
122
  <trial_interval_unit>months</trial_interval_unit>
123
123
  <latest_version depreciated="true">
124
124
  <version type="integer">1</version>
125
- <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
125
+ <unit_amount_in_cents type="integer">200</unit_amount_in_cents>
126
126
  <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
127
127
  <plan_interval_length type="integer">1</plan_interval_length>
128
- <plan_interval_unit>days</plan_interval_unit>
128
+ <plan_interval_unit>months</plan_interval_unit>
129
129
  <trial_interval_length type="integer">0</trial_interval_length>
130
130
  <trial_interval_unit>months</trial_interval_unit>
131
- <created_at type="datetime">2011-02-21T01:06:56Z</created_at>
131
+ <created_at type="datetime">2011-04-04T02:15:00Z</created_at>
132
132
  </latest_version>
133
+ <add_ons type="array">
134
+ <add_on>
135
+ <add_on_code>special</add_on_code>
136
+ <default_unit_amount_in_cents>1000</default_unit_amount_in_cents>
137
+ <default_quantity>1</default_quantity>
138
+ </add_on>
139
+ <add_on>
140
+ <add_on_code>special2</add_on_code>
141
+ <default_unit_amount_in_cents>50000</default_unit_amount_in_cents>
142
+ <default_quantity>1</default_quantity>
143
+ </add_on>
144
+ </add_ons>
133
145
  </plan>
134
146
 
135
147
  http_version: "1.1"
136
148
  - !ruby/struct:VCR::HTTPInteraction
137
149
  request: !ruby/struct:VCR::Request
138
150
  method: :post
139
- uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/subscription-cancel-with-code-1297746103/subscription.xml
151
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/subscription-cancel-with-code-1301881900/subscription.xml
140
152
  body: |
141
153
  <?xml version="1.0" encoding="UTF-8"?>
142
154
  <subscription>
143
155
  <plan-code>paid</plan-code>
144
156
  <quantity type="integer">1</quantity>
145
157
  <account>
146
- <account-code>subscription-cancel-with-code-1297746103</account-code>
158
+ <account-code>subscription-cancel-with-code-1301881900</account-code>
147
159
  <first-name>Verena</first-name>
148
160
  <last-name>Test</last-name>
149
161
  <email>verena@test.com</email>
@@ -159,17 +171,17 @@
159
171
  <credit-card>
160
172
  <number>4111111111111111</number>
161
173
  <year type="integer">2012</year>
162
- <month type="integer">3</month>
174
+ <month type="integer">4</month>
163
175
  <verification-value>123</verification-value>
164
176
  </credit-card>
165
177
  </billing-info>
166
178
  <accept-language type="yaml" nil="true"></accept-language>
167
- <id>subscription-cancel-with-code-1297746103</id>
179
+ <id>subscription-cancel-with-code-1301881900</id>
168
180
  <username type="yaml" nil="true"></username>
169
181
  <balance-in-cents type="integer">0</balance-in-cents>
170
182
  <closed type="boolean">false</closed>
171
- <hosted-login-token>3a8a5ad46cb6452db6d772a9f3716179</hosted-login-token>
172
- <created-at type="datetime">2011-03-18T18:54:24Z</created-at>
183
+ <hosted-login-token>fe0c836b301c4c339e967831a97f98fa</hosted-login-token>
184
+ <created-at type="datetime">2011-04-04T02:24:40Z</created-at>
173
185
  <state>active</state>
174
186
  </account>
175
187
  <addons type="array"/>
@@ -177,7 +189,7 @@
177
189
 
178
190
  headers:
179
191
  authorization:
180
- - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
192
+ - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
181
193
  content-type:
182
194
  - application/xml
183
195
  accept:
@@ -194,13 +206,13 @@
194
206
  cache-control:
195
207
  - no-cache
196
208
  x-runtime:
197
- - "6964"
209
+ - "3490"
198
210
  content-type:
199
211
  - application/xml; charset=utf-8
200
212
  content-length:
201
- - "928"
213
+ - "927"
202
214
  set-cookie:
203
- - _recurly_session=5b896b9ee9fa2b85f90456567538d738; domain=.recurly.local; path=/; HttpOnly
215
+ - _recurly_session=1effe18be62694412b29273197bc7021; domain=.recurly.local; path=/; HttpOnly
204
216
  connection:
205
217
  - close
206
218
  server:
@@ -208,20 +220,20 @@
208
220
  body: |
209
221
  <?xml version="1.0" encoding="UTF-8"?>
210
222
  <subscription>
211
- <id>subscription-cancel-with-code-1297746103</id>
212
- <account_code>subscription-cancel-with-code-1297746103</account_code>
223
+ <id>subscription-cancel-with-code-1301881900</id>
224
+ <account_code>subscription-cancel-with-code-1301881900</account_code>
213
225
  <plan>
214
226
  <plan_code>paid</plan_code>
215
227
  <name>Paid</name>
216
228
  </plan>
217
229
  <state>active</state>
218
230
  <quantity type="integer">1</quantity>
219
- <total_amount_in_cents type="integer">1000</total_amount_in_cents>
220
- <activated_at type="datetime">2011-03-18T18:54:29Z</activated_at>
231
+ <total_amount_in_cents type="integer">200</total_amount_in_cents>
232
+ <activated_at type="datetime">2011-04-04T02:24:44Z</activated_at>
221
233
  <canceled_at nil="true" type="datetime"></canceled_at>
222
234
  <expires_at nil="true" type="datetime"></expires_at>
223
- <current_period_started_at type="datetime">2011-03-18T18:54:29Z</current_period_started_at>
224
- <current_period_ends_at type="datetime">2011-03-19T18:54:29Z</current_period_ends_at>
235
+ <current_period_started_at type="datetime">2011-04-04T02:24:44Z</current_period_started_at>
236
+ <current_period_ends_at type="datetime">2011-05-04T02:24:44Z</current_period_ends_at>
225
237
  <trial_started_at nil="true" type="datetime"></trial_started_at>
226
238
  <trial_ends_at nil="true" type="datetime"></trial_ends_at>
227
239
  <add_ons type="array">
@@ -232,11 +244,11 @@
232
244
  - !ruby/struct:VCR::HTTPInteraction
233
245
  request: !ruby/struct:VCR::Request
234
246
  method: :get
235
- uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/subscription-cancel-with-code-1297746103/subscription.xml
247
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/subscription-cancel-with-code-1301881900/subscription.xml
236
248
  body:
237
249
  headers:
238
250
  authorization:
239
- - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
251
+ - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
240
252
  accept:
241
253
  - application/xml
242
254
  accept-encoding:
@@ -251,17 +263,17 @@
251
263
  message: OK
252
264
  headers:
253
265
  x-runtime:
254
- - "335"
266
+ - "306"
255
267
  content-type:
256
268
  - application/xml; charset=utf-8
257
269
  etag:
258
- - "\"3e8fdaa8eafe2ee73726625b769635cb\""
270
+ - "\"ce1d5389234988e12bcb8d52c206d269\""
259
271
  cache-control:
260
272
  - private, max-age=0, must-revalidate
261
273
  content-length:
262
- - "928"
274
+ - "927"
263
275
  set-cookie:
264
- - _recurly_session=3ab8de4a801c7180bd07f1c230e10f26; domain=.recurly.local; path=/; HttpOnly
276
+ - _recurly_session=09e9963b1567dd027935d1271fed95c9; domain=.recurly.local; path=/; HttpOnly
265
277
  connection:
266
278
  - close
267
279
  server:
@@ -269,20 +281,20 @@
269
281
  body: |
270
282
  <?xml version="1.0" encoding="UTF-8"?>
271
283
  <subscription>
272
- <id>subscription-cancel-with-code-1297746103</id>
273
- <account_code>subscription-cancel-with-code-1297746103</account_code>
284
+ <id>subscription-cancel-with-code-1301881900</id>
285
+ <account_code>subscription-cancel-with-code-1301881900</account_code>
274
286
  <plan>
275
287
  <plan_code>paid</plan_code>
276
288
  <name>Paid</name>
277
289
  </plan>
278
290
  <state>active</state>
279
291
  <quantity type="integer">1</quantity>
280
- <total_amount_in_cents type="integer">1000</total_amount_in_cents>
281
- <activated_at type="datetime">2011-03-18T18:54:29Z</activated_at>
292
+ <total_amount_in_cents type="integer">200</total_amount_in_cents>
293
+ <activated_at type="datetime">2011-04-04T02:24:44Z</activated_at>
282
294
  <canceled_at nil="true" type="datetime"></canceled_at>
283
295
  <expires_at nil="true" type="datetime"></expires_at>
284
- <current_period_started_at type="datetime">2011-03-18T18:54:29Z</current_period_started_at>
285
- <current_period_ends_at type="datetime">2011-03-19T18:54:29Z</current_period_ends_at>
296
+ <current_period_started_at type="datetime">2011-04-04T02:24:44Z</current_period_started_at>
297
+ <current_period_ends_at type="datetime">2011-05-04T02:24:44Z</current_period_ends_at>
286
298
  <trial_started_at nil="true" type="datetime"></trial_started_at>
287
299
  <trial_ends_at nil="true" type="datetime"></trial_ends_at>
288
300
  <add_ons type="array">
@@ -293,11 +305,11 @@
293
305
  - !ruby/struct:VCR::HTTPInteraction
294
306
  request: !ruby/struct:VCR::Request
295
307
  method: :delete
296
- uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/subscription-cancel-with-code-1297746103/subscription.xml
308
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/subscription-cancel-with-code-1301881900/subscription.xml
297
309
  body:
298
310
  headers:
299
311
  authorization:
300
- - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
312
+ - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
301
313
  accept:
302
314
  - application/xml
303
315
  user-agent:
@@ -310,17 +322,17 @@
310
322
  message: OK
311
323
  headers:
312
324
  x-runtime:
313
- - "2498"
325
+ - "573"
314
326
  content-type:
315
327
  - application/xml; charset=utf-8
316
328
  etag:
317
- - "\"be8725ac7176842518dd770c4d17c21c\""
329
+ - "\"997805ef311ad7b2086097e07aa93615\""
318
330
  cache-control:
319
331
  - private, max-age=0, must-revalidate
320
332
  content-length:
321
- - "948"
333
+ - "947"
322
334
  set-cookie:
323
- - _recurly_session=43b47d3974fb2486a0bb870efb5a12f1; domain=.recurly.local; path=/; HttpOnly
335
+ - _recurly_session=4a72ca4b34c41badeec5315b6069e1a1; domain=.recurly.local; path=/; HttpOnly
324
336
  connection:
325
337
  - close
326
338
  server:
@@ -328,20 +340,20 @@
328
340
  body: |
329
341
  <?xml version="1.0" encoding="UTF-8"?>
330
342
  <subscription>
331
- <id>subscription-cancel-with-code-1297746103</id>
332
- <account_code>subscription-cancel-with-code-1297746103</account_code>
343
+ <id>subscription-cancel-with-code-1301881900</id>
344
+ <account_code>subscription-cancel-with-code-1301881900</account_code>
333
345
  <plan>
334
346
  <plan_code>paid</plan_code>
335
347
  <name>Paid</name>
336
348
  </plan>
337
349
  <state>canceled</state>
338
350
  <quantity type="integer">1</quantity>
339
- <total_amount_in_cents type="integer">1000</total_amount_in_cents>
340
- <activated_at type="datetime">2011-03-18T18:54:29Z</activated_at>
341
- <canceled_at type="datetime">2011-03-18T18:54:40Z</canceled_at>
342
- <expires_at type="datetime">2011-03-19T18:54:29Z</expires_at>
343
- <current_period_started_at type="datetime">2011-03-18T18:54:29Z</current_period_started_at>
344
- <current_period_ends_at type="datetime">2011-03-19T18:54:29Z</current_period_ends_at>
351
+ <total_amount_in_cents type="integer">200</total_amount_in_cents>
352
+ <activated_at type="datetime">2011-04-04T02:24:44Z</activated_at>
353
+ <canceled_at type="datetime">2011-04-04T02:24:51Z</canceled_at>
354
+ <expires_at type="datetime">2011-05-04T02:24:44Z</expires_at>
355
+ <current_period_started_at type="datetime">2011-04-04T02:24:44Z</current_period_started_at>
356
+ <current_period_ends_at type="datetime">2011-05-04T02:24:44Z</current_period_ends_at>
345
357
  <trial_started_at nil="true" type="datetime"></trial_started_at>
346
358
  <trial_ends_at nil="true" type="datetime"></trial_ends_at>
347
359
  <add_ons type="array">
@@ -352,11 +364,11 @@
352
364
  - !ruby/struct:VCR::HTTPInteraction
353
365
  request: !ruby/struct:VCR::Request
354
366
  method: :get
355
- uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/subscription-cancel-with-code-1297746103/subscription.xml
367
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/subscription-cancel-with-code-1301881900/subscription.xml
356
368
  body:
357
369
  headers:
358
370
  authorization:
359
- - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
371
+ - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
360
372
  accept:
361
373
  - application/xml
362
374
  accept-encoding:
@@ -371,17 +383,17 @@
371
383
  message: OK
372
384
  headers:
373
385
  x-runtime:
374
- - "336"
386
+ - "316"
375
387
  content-type:
376
388
  - application/xml; charset=utf-8
377
389
  etag:
378
- - "\"be8725ac7176842518dd770c4d17c21c\""
390
+ - "\"997805ef311ad7b2086097e07aa93615\""
379
391
  cache-control:
380
392
  - private, max-age=0, must-revalidate
381
393
  content-length:
382
- - "948"
394
+ - "947"
383
395
  set-cookie:
384
- - _recurly_session=19cdbda3f1f4f4c77b8aec94d9f95f5b; domain=.recurly.local; path=/; HttpOnly
396
+ - _recurly_session=af48fddf4ce25945befb010654305855; domain=.recurly.local; path=/; HttpOnly
385
397
  connection:
386
398
  - close
387
399
  server:
@@ -389,20 +401,20 @@
389
401
  body: |
390
402
  <?xml version="1.0" encoding="UTF-8"?>
391
403
  <subscription>
392
- <id>subscription-cancel-with-code-1297746103</id>
393
- <account_code>subscription-cancel-with-code-1297746103</account_code>
404
+ <id>subscription-cancel-with-code-1301881900</id>
405
+ <account_code>subscription-cancel-with-code-1301881900</account_code>
394
406
  <plan>
395
407
  <plan_code>paid</plan_code>
396
408
  <name>Paid</name>
397
409
  </plan>
398
410
  <state>canceled</state>
399
411
  <quantity type="integer">1</quantity>
400
- <total_amount_in_cents type="integer">1000</total_amount_in_cents>
401
- <activated_at type="datetime">2011-03-18T18:54:29Z</activated_at>
402
- <canceled_at type="datetime">2011-03-18T18:54:40Z</canceled_at>
403
- <expires_at type="datetime">2011-03-19T18:54:29Z</expires_at>
404
- <current_period_started_at type="datetime">2011-03-18T18:54:29Z</current_period_started_at>
405
- <current_period_ends_at type="datetime">2011-03-19T18:54:29Z</current_period_ends_at>
412
+ <total_amount_in_cents type="integer">200</total_amount_in_cents>
413
+ <activated_at type="datetime">2011-04-04T02:24:44Z</activated_at>
414
+ <canceled_at type="datetime">2011-04-04T02:24:51Z</canceled_at>
415
+ <expires_at type="datetime">2011-05-04T02:24:44Z</expires_at>
416
+ <current_period_started_at type="datetime">2011-04-04T02:24:44Z</current_period_started_at>
417
+ <current_period_ends_at type="datetime">2011-05-04T02:24:44Z</current_period_ends_at>
406
418
  <trial_started_at nil="true" type="datetime"></trial_started_at>
407
419
  <trial_ends_at nil="true" type="datetime"></trial_ends_at>
408
420
  <add_ons type="array">
@@ -413,11 +425,11 @@
413
425
  - !ruby/struct:VCR::HTTPInteraction
414
426
  request: !ruby/struct:VCR::Request
415
427
  method: :get
416
- uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/subscription-cancel-with-code-1297746103/subscription.xml
428
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/subscription-cancel-with-code-1301881900/subscription.xml
417
429
  body:
418
430
  headers:
419
431
  authorization:
420
- - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
432
+ - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
421
433
  accept:
422
434
  - application/xml
423
435
  accept-encoding:
@@ -432,17 +444,17 @@
432
444
  message: OK
433
445
  headers:
434
446
  x-runtime:
435
- - "341"
447
+ - "302"
436
448
  content-type:
437
449
  - application/xml; charset=utf-8
438
450
  etag:
439
- - "\"be8725ac7176842518dd770c4d17c21c\""
451
+ - "\"997805ef311ad7b2086097e07aa93615\""
440
452
  cache-control:
441
453
  - private, max-age=0, must-revalidate
442
454
  content-length:
443
- - "948"
455
+ - "947"
444
456
  set-cookie:
445
- - _recurly_session=e1063062f010b2306fc2ea0a592c2382; domain=.recurly.local; path=/; HttpOnly
457
+ - _recurly_session=545b03130e0e4c17b180bf4a81cc72df; domain=.recurly.local; path=/; HttpOnly
446
458
  connection:
447
459
  - close
448
460
  server:
@@ -450,20 +462,20 @@
450
462
  body: |
451
463
  <?xml version="1.0" encoding="UTF-8"?>
452
464
  <subscription>
453
- <id>subscription-cancel-with-code-1297746103</id>
454
- <account_code>subscription-cancel-with-code-1297746103</account_code>
465
+ <id>subscription-cancel-with-code-1301881900</id>
466
+ <account_code>subscription-cancel-with-code-1301881900</account_code>
455
467
  <plan>
456
468
  <plan_code>paid</plan_code>
457
469
  <name>Paid</name>
458
470
  </plan>
459
471
  <state>canceled</state>
460
472
  <quantity type="integer">1</quantity>
461
- <total_amount_in_cents type="integer">1000</total_amount_in_cents>
462
- <activated_at type="datetime">2011-03-18T18:54:29Z</activated_at>
463
- <canceled_at type="datetime">2011-03-18T18:54:40Z</canceled_at>
464
- <expires_at type="datetime">2011-03-19T18:54:29Z</expires_at>
465
- <current_period_started_at type="datetime">2011-03-18T18:54:29Z</current_period_started_at>
466
- <current_period_ends_at type="datetime">2011-03-19T18:54:29Z</current_period_ends_at>
473
+ <total_amount_in_cents type="integer">200</total_amount_in_cents>
474
+ <activated_at type="datetime">2011-04-04T02:24:44Z</activated_at>
475
+ <canceled_at type="datetime">2011-04-04T02:24:51Z</canceled_at>
476
+ <expires_at type="datetime">2011-05-04T02:24:44Z</expires_at>
477
+ <current_period_started_at type="datetime">2011-04-04T02:24:44Z</current_period_started_at>
478
+ <current_period_ends_at type="datetime">2011-05-04T02:24:44Z</current_period_ends_at>
467
479
  <trial_started_at nil="true" type="datetime"></trial_started_at>
468
480
  <trial_ends_at nil="true" type="datetime"></trial_ends_at>
469
481
  <add_ons type="array">