recurly 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of recurly might be problematic. Click here for more details.

Files changed (80) hide show
  1. data/lib/recurly.rb +1 -0
  2. data/lib/recurly/charge.rb +6 -0
  3. data/lib/recurly/subscription.rb +23 -5
  4. data/lib/recurly/version.rb +1 -1
  5. data/spec/integration/charge_spec.rb +45 -0
  6. data/spec/integration/credit_spec.rb +19 -0
  7. data/spec/integration/subscription_spec.rb +62 -9
  8. data/spec/vcr/account/close/1287167046.yml +15 -15
  9. data/spec/vcr/account/create-blank/1287167046.yml +3 -3
  10. data/spec/vcr/account/create-duplicate/1287167046.yml +8 -8
  11. data/spec/vcr/account/create-min/1287167046.yml +6 -6
  12. data/spec/vcr/account/create/1287167046.yml +6 -6
  13. data/spec/vcr/account/find/1287167046.yml +14 -14
  14. data/spec/vcr/account/list/1287167046.yml +101 -101
  15. data/spec/vcr/account/update/1287167046.yml +26 -26
  16. data/spec/vcr/billing/create/1286682213.yml +15 -15
  17. data/spec/vcr/billing/destroy/1286682213.yml +23 -23
  18. data/spec/vcr/billing/find/1286682213.yml +21 -21
  19. data/spec/vcr/billing/update/1286682213.yml +21 -21
  20. data/spec/vcr/charge/create/1286681273.yml +24 -24
  21. data/spec/vcr/charge/delete-uninvoiced/1287460783.yml +246 -0
  22. data/spec/vcr/charge/list-all/1286681273.yml +37 -37
  23. data/spec/vcr/charge/list-invoiced/1286681273.yml +62 -62
  24. data/spec/vcr/charge/list-pending/1286681273.yml +37 -37
  25. data/spec/vcr/charge/lookup/1286681273.yml +20 -20
  26. data/spec/vcr/credit/create/1286681343.yml +20 -20
  27. data/spec/vcr/credit/create/1287460732.yml +171 -0
  28. data/spec/vcr/credit/create/1287461340.yml +171 -0
  29. data/spec/vcr/credit/delete-invoiced/1287460732.yml +233 -0
  30. data/spec/vcr/credit/delete-invoiced/1287461340.yml +283 -0
  31. data/spec/vcr/credit/delete-uninvoiced/1287459796.yml +246 -0
  32. data/spec/vcr/credit/delete-uninvoiced/1287460732.yml +246 -0
  33. data/spec/vcr/credit/delete-uninvoiced/1287461340.yml +221 -0
  34. data/spec/vcr/credit/list/1286681343.yml +36 -36
  35. data/spec/vcr/credit/list/1287460732.yml +299 -0
  36. data/spec/vcr/credit/list/1287461340.yml +299 -0
  37. data/spec/vcr/credit/lookup/1286681343.yml +20 -20
  38. data/spec/vcr/credit/lookup/1287460732.yml +171 -0
  39. data/spec/vcr/credit/lookup/1287461340.yml +171 -0
  40. data/spec/vcr/invoice/create-no-charges/1287167121.yml +14 -14
  41. data/spec/vcr/invoice/create/1287167121.yml +36 -36
  42. data/spec/vcr/invoice/list/1287167121.yml +52 -52
  43. data/spec/vcr/invoice/lookup/1287167121.yml +38 -38
  44. data/spec/vcr/plan/all.yml +9 -9
  45. data/spec/vcr/plan/delete/1286677585.yml +16 -16
  46. data/spec/vcr/plan/find.yml +9 -9
  47. data/spec/vcr/plan/update.yml +9 -9
  48. data/spec/vcr/subscription/{cancel/1287442108.yml → cancel-with-code/1287455769.yml} +124 -65
  49. data/spec/vcr/subscription/cancel/{1287439446.yml → 1287455769.yml} +59 -59
  50. data/spec/vcr/subscription/change1/{1287442352.yml → 1287455769.yml} +56 -56
  51. data/spec/vcr/subscription/change2/{1287442352.yml → 1287455769.yml} +56 -56
  52. data/spec/vcr/subscription/create/{1287442352.yml → 1287455769.yml} +25 -25
  53. data/spec/vcr/subscription/find/{1287442108.yml → 1287455769.yml} +36 -36
  54. data/spec/vcr/subscription/{cancel/1287442352.yml → reactivate/1287455769.yml} +107 -66
  55. data/spec/vcr/subscription/refund-full/{1287442108.yml → 1287455769.yml} +50 -50
  56. data/spec/vcr/subscription/{refund-full/1287439446.yml → refund-none/1287455769.yml} +51 -51
  57. data/spec/vcr/subscription/refund-partial/{1287442108.yml → 1287455769.yml} +50 -50
  58. data/spec/vcr/transaction/all/1287186411.yml +80 -80
  59. data/spec/vcr/transaction/create-no-account/1287186411.yml +7 -7
  60. data/spec/vcr/transaction/create-with-account/1287186411.yml +17 -17
  61. data/spec/vcr/transaction/list-empty/1287186411.yml +17 -17
  62. data/spec/vcr/transaction/list-filled/1287186411.yml +41 -41
  63. data/spec/vcr/transaction/lookup/1287186411.yml +50 -50
  64. data/spec/vcr/transaction/refund/1287186411.yml +24 -24
  65. data/spec/vcr/transaction/void/1287186411.yml +60 -60
  66. metadata +67 -56
  67. data/spec/vcr/subscription/change1/1287439446.yml +0 -409
  68. data/spec/vcr/subscription/change1/1287442108.yml +0 -409
  69. data/spec/vcr/subscription/change2/1287439446.yml +0 -409
  70. data/spec/vcr/subscription/change2/1287442108.yml +0 -409
  71. data/spec/vcr/subscription/create/1287439446.yml +0 -224
  72. data/spec/vcr/subscription/create/1287442108.yml +0 -224
  73. data/spec/vcr/subscription/find/1287439446.yml +0 -283
  74. data/spec/vcr/subscription/find/1287442352.yml +0 -283
  75. data/spec/vcr/subscription/refund-full/1287442352.yml +0 -382
  76. data/spec/vcr/subscription/refund-none/1287439446.yml +0 -382
  77. data/spec/vcr/subscription/refund-none/1287442108.yml +0 -382
  78. data/spec/vcr/subscription/refund-none/1287442352.yml +0 -382
  79. data/spec/vcr/subscription/refund-partial/1287439446.yml +0 -382
  80. data/spec/vcr/subscription/refund-partial/1287442352.yml +0 -382
@@ -7,7 +7,7 @@
7
7
  <?xml version="1.0" encoding="UTF-8"?>
8
8
  <account>
9
9
  <company-name>Recurly Ruby Gem</company-name>
10
- <account-code>subscription-find-1287442108</account-code>
10
+ <account-code>subscription-find-1287455769</account-code>
11
11
  <last-name>Test</last-name>
12
12
  <email>verena@test.com</email>
13
13
  <first-name>Verena</first-name>
@@ -28,30 +28,30 @@
28
28
  message: Created
29
29
  headers:
30
30
  location:
31
- - https://recurlytest3-test.recurly.com/accounts/subscription-find-1287442108
31
+ - https://recurlytest3-test.recurly.com/accounts/subscription-find-1287455769
32
32
  connection:
33
33
  - close
34
34
  content-type:
35
35
  - application/xml; charset=utf-8
36
36
  x-runtime:
37
- - "775"
37
+ - "610"
38
38
  date:
39
- - Mon, 18 Oct 2010 22:48:39 GMT
39
+ - Tue, 19 Oct 2010 03:20:11 GMT
40
40
  server:
41
41
  - nginx/0.7.65
42
42
  content-length:
43
43
  - "589"
44
44
  set-cookie:
45
- - account_credentials=46381ecc19bd518c750fbc4710071574ea83e62f4621a133241e7d5a5fff8d9e8770268b327fdf082a803c0027fc67a00228ab666aacf7ac7238355a0baba323%3A%3A; domain=.recurly.com; path=/; secure; HttpOnly
45
+ - account_credentials=55beb5d9e9c6d664a40a6b24b4b688876417a1a450bdab5901fe4e4a117aa25adbd0089293a3ce4500d8e7f858ec2337ec0526bbabf54ee4e999ccb271af2848%3A%3A; domain=.recurly.com; path=/; secure; HttpOnly
46
46
  - ""
47
- - _recurly_session=370da56f03505d1ee9dbd800b81441eb; domain=.recurly.com; path=/; Secure; HttpOnly
47
+ - _recurly_session=9c1ed7414a362c94be9b746dbcedf560; domain=.recurly.com; path=/; Secure; HttpOnly
48
48
  cache-control:
49
49
  - no-cache
50
50
  body: |
51
51
  <?xml version="1.0" encoding="UTF-8"?>
52
52
  <account>
53
- <id>subscription-find-1287442108</id>
54
- <account_code>subscription-find-1287442108</account_code>
53
+ <id>subscription-find-1287455769</id>
54
+ <account_code>subscription-find-1287455769</account_code>
55
55
  <username></username>
56
56
  <email>verena@test.com</email>
57
57
  <first_name>Verena</first_name>
@@ -59,8 +59,8 @@
59
59
  <company_name>Recurly Ruby Gem</company_name>
60
60
  <balance_in_cents type="integer">0</balance_in_cents>
61
61
  <closed type="boolean">false</closed>
62
- <hosted_login_token>7f9e8d70931f4b48862aaf3160b72fe6</hosted_login_token>
63
- <created_at type="datetime">2010-10-18T22:48:39Z</created_at>
62
+ <hosted_login_token>747c54607a84475c80e8e88f02c50062</hosted_login_token>
63
+ <created_at type="datetime">2010-10-19T03:20:11Z</created_at>
64
64
  <state>active</state>
65
65
  </account>
66
66
 
@@ -91,15 +91,15 @@
91
91
  content-type:
92
92
  - application/xml; charset=utf-8
93
93
  x-runtime:
94
- - "29"
94
+ - "13"
95
95
  date:
96
- - Mon, 18 Oct 2010 22:48:39 GMT
96
+ - Tue, 19 Oct 2010 03:20:12 GMT
97
97
  server:
98
98
  - nginx/0.7.65
99
99
  content-length:
100
100
  - "1150"
101
101
  set-cookie:
102
- - _recurly_session=07d3c3cfdac79fb08e9df461588b074a; domain=.recurly.com; path=/; Secure; HttpOnly
102
+ - _recurly_session=d1774e58e8036d8ac6a6e663d31d5e15; domain=.recurly.com; path=/; Secure; HttpOnly
103
103
  cache-control:
104
104
  - private, max-age=0, must-revalidate
105
105
  body: |
@@ -133,20 +133,20 @@
133
133
  - !ruby/struct:VCR::HTTPInteraction
134
134
  request: !ruby/struct:VCR::Request
135
135
  method: :post
136
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/subscription-find-1287442108/subscription.xml
136
+ uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/subscription-find-1287455769/subscription.xml
137
137
  body: |
138
138
  <?xml version="1.0" encoding="UTF-8"?>
139
139
  <subscription>
140
140
  <quantity type="integer">1</quantity>
141
141
  <plan-code>paid</plan-code>
142
142
  <account>
143
- <created-at type="datetime">2010-10-18T22:48:39Z</created-at>
144
- <hosted-login-token>7f9e8d70931f4b48862aaf3160b72fe6</hosted-login-token>
143
+ <created-at type="datetime">2010-10-19T03:20:11Z</created-at>
144
+ <hosted-login-token>747c54607a84475c80e8e88f02c50062</hosted-login-token>
145
145
  <company-name>Recurly Ruby Gem</company-name>
146
- <account-code>subscription-find-1287442108</account-code>
146
+ <account-code>subscription-find-1287455769</account-code>
147
147
  <closed type="boolean">false</closed>
148
148
  <username type="yaml" nil="true"></username>
149
- <id>subscription-find-1287442108</id>
149
+ <id>subscription-find-1287455769</id>
150
150
  <last-name>Test</last-name>
151
151
  <billing-info>
152
152
  <city>San Francisco</city>
@@ -189,22 +189,22 @@
189
189
  content-type:
190
190
  - application/xml; charset=utf-8
191
191
  x-runtime:
192
- - "557"
192
+ - "563"
193
193
  date:
194
- - Mon, 18 Oct 2010 22:48:41 GMT
194
+ - Tue, 19 Oct 2010 03:20:13 GMT
195
195
  server:
196
196
  - nginx/0.7.65
197
197
  content-length:
198
198
  - "866"
199
199
  set-cookie:
200
- - _recurly_session=0cc9b236122db7b5979433641a8e4044; domain=.recurly.com; path=/; Secure; HttpOnly
200
+ - _recurly_session=611a93a8bc4e4034612066d7aaf0f9a2; domain=.recurly.com; path=/; Secure; HttpOnly
201
201
  cache-control:
202
202
  - no-cache
203
203
  body: |
204
204
  <?xml version="1.0" encoding="UTF-8"?>
205
205
  <subscription>
206
- <id>subscription-find-1287442108</id>
207
- <account_code>subscription-find-1287442108</account_code>
206
+ <id>subscription-find-1287455769</id>
207
+ <account_code>subscription-find-1287455769</account_code>
208
208
  <plan>
209
209
  <plan_code>paid</plan_code>
210
210
  <name>Paid</name>
@@ -212,11 +212,11 @@
212
212
  <state>active</state>
213
213
  <quantity type="integer">1</quantity>
214
214
  <total_amount_in_cents type="integer">1000</total_amount_in_cents>
215
- <activated_at type="datetime">2010-10-18T22:48:40Z</activated_at>
215
+ <activated_at type="datetime">2010-10-19T03:20:13Z</activated_at>
216
216
  <canceled_at nil="true" type="datetime"></canceled_at>
217
217
  <expires_at nil="true" type="datetime"></expires_at>
218
- <current_period_started_at type="datetime">2010-10-18T22:48:40Z</current_period_started_at>
219
- <current_period_ends_at type="datetime">2010-11-18T22:48:40Z</current_period_ends_at>
218
+ <current_period_started_at type="datetime">2010-10-19T03:20:13Z</current_period_started_at>
219
+ <current_period_ends_at type="datetime">2010-11-19T03:20:13Z</current_period_ends_at>
220
220
  <trial_started_at nil="true" type="datetime"></trial_started_at>
221
221
  <trial_ends_at nil="true" type="datetime"></trial_ends_at>
222
222
  </subscription>
@@ -225,7 +225,7 @@
225
225
  - !ruby/struct:VCR::HTTPInteraction
226
226
  request: !ruby/struct:VCR::Request
227
227
  method: :get
228
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/subscription-find-1287442108/subscription.xml
228
+ uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/subscription-find-1287455769/subscription.xml
229
229
  body:
230
230
  headers:
231
231
  accept:
@@ -242,28 +242,28 @@
242
242
  x-ua-compatible:
243
243
  - IE=Edge
244
244
  etag:
245
- - "\"23f59853ec3f0517c153a3f24c96dcfb\""
245
+ - "\"a44ee138ddfc6b9be191b63b72c50236\""
246
246
  connection:
247
247
  - close
248
248
  content-type:
249
249
  - application/xml; charset=utf-8
250
250
  x-runtime:
251
- - "17"
251
+ - "29"
252
252
  date:
253
- - Mon, 18 Oct 2010 22:48:41 GMT
253
+ - Tue, 19 Oct 2010 03:20:14 GMT
254
254
  server:
255
255
  - nginx/0.7.65
256
256
  content-length:
257
257
  - "866"
258
258
  set-cookie:
259
- - _recurly_session=c92be6ec54c8c5fd8bc7483ec1704d8f; domain=.recurly.com; path=/; Secure; HttpOnly
259
+ - _recurly_session=144993a1d814c0a2f5bfb1d08e2ad92b; domain=.recurly.com; path=/; Secure; HttpOnly
260
260
  cache-control:
261
261
  - private, max-age=0, must-revalidate
262
262
  body: |
263
263
  <?xml version="1.0" encoding="UTF-8"?>
264
264
  <subscription>
265
- <id>subscription-find-1287442108</id>
266
- <account_code>subscription-find-1287442108</account_code>
265
+ <id>subscription-find-1287455769</id>
266
+ <account_code>subscription-find-1287455769</account_code>
267
267
  <plan>
268
268
  <plan_code>paid</plan_code>
269
269
  <name>Paid</name>
@@ -271,11 +271,11 @@
271
271
  <state>active</state>
272
272
  <quantity type="integer">1</quantity>
273
273
  <total_amount_in_cents type="integer">1000</total_amount_in_cents>
274
- <activated_at type="datetime">2010-10-18T22:48:40Z</activated_at>
274
+ <activated_at type="datetime">2010-10-19T03:20:13Z</activated_at>
275
275
  <canceled_at nil="true" type="datetime"></canceled_at>
276
276
  <expires_at nil="true" type="datetime"></expires_at>
277
- <current_period_started_at type="datetime">2010-10-18T22:48:40Z</current_period_started_at>
278
- <current_period_ends_at type="datetime">2010-11-18T22:48:40Z</current_period_ends_at>
277
+ <current_period_started_at type="datetime">2010-10-19T03:20:13Z</current_period_started_at>
278
+ <current_period_ends_at type="datetime">2010-11-19T03:20:13Z</current_period_ends_at>
279
279
  <trial_started_at nil="true" type="datetime"></trial_started_at>
280
280
  <trial_ends_at nil="true" type="datetime"></trial_ends_at>
281
281
  </subscription>
@@ -7,7 +7,7 @@
7
7
  <?xml version="1.0" encoding="UTF-8"?>
8
8
  <account>
9
9
  <company-name>Recurly Ruby Gem</company-name>
10
- <account-code>subscription-cancel-1287442352</account-code>
10
+ <account-code>subscription-reactivate-1287455769</account-code>
11
11
  <last-name>Test</last-name>
12
12
  <email>verena@test.com</email>
13
13
  <first-name>Verena</first-name>
@@ -28,30 +28,30 @@
28
28
  message: Created
29
29
  headers:
30
30
  location:
31
- - https://recurlytest3-test.recurly.com/accounts/subscription-cancel-1287442352
31
+ - https://recurlytest3-test.recurly.com/accounts/subscription-reactivate-1287455769
32
32
  connection:
33
33
  - close
34
34
  content-type:
35
35
  - application/xml; charset=utf-8
36
36
  x-runtime:
37
- - "611"
37
+ - "585"
38
38
  date:
39
- - Mon, 18 Oct 2010 22:53:01 GMT
39
+ - Tue, 19 Oct 2010 03:20:29 GMT
40
40
  server:
41
41
  - nginx/0.7.65
42
42
  content-length:
43
- - "593"
43
+ - "601"
44
44
  set-cookie:
45
- - account_credentials=6cee65c2f5a4d8d2e5efec4f45cc27ccb302dbf64ba740a26fac37dc2c115a9228ea42c432f2f343e5508fe93d5cbd9548628be1a32778208134dfb16e930deb%3A%3A; domain=.recurly.com; path=/; secure; HttpOnly
45
+ - account_credentials=116b2091841b840d4fe23070733e432879f1971f51c57bdc9c9fd1573e6ac54821db90edf92bc6f91511d791b7d4d6939d7aeb3e9e17808360a00146bbc1ae11%3A%3A; domain=.recurly.com; path=/; secure; HttpOnly
46
46
  - ""
47
- - _recurly_session=389eafc8d4d886939f9cc96d506eb6d5; domain=.recurly.com; path=/; Secure; HttpOnly
47
+ - _recurly_session=8e503ee99af4c2b3713d3817790f753a; domain=.recurly.com; path=/; Secure; HttpOnly
48
48
  cache-control:
49
49
  - no-cache
50
50
  body: |
51
51
  <?xml version="1.0" encoding="UTF-8"?>
52
52
  <account>
53
- <id>subscription-cancel-1287442352</id>
54
- <account_code>subscription-cancel-1287442352</account_code>
53
+ <id>subscription-reactivate-1287455769</id>
54
+ <account_code>subscription-reactivate-1287455769</account_code>
55
55
  <username></username>
56
56
  <email>verena@test.com</email>
57
57
  <first_name>Verena</first_name>
@@ -59,8 +59,8 @@
59
59
  <company_name>Recurly Ruby Gem</company_name>
60
60
  <balance_in_cents type="integer">0</balance_in_cents>
61
61
  <closed type="boolean">false</closed>
62
- <hosted_login_token>c7b2ce2367004fba9efcb04d4a2bf208</hosted_login_token>
63
- <created_at type="datetime">2010-10-18T22:53:01Z</created_at>
62
+ <hosted_login_token>544782a287c247b9aca5320c1c688ec2</hosted_login_token>
63
+ <created_at type="datetime">2010-10-19T03:20:29Z</created_at>
64
64
  <state>active</state>
65
65
  </account>
66
66
 
@@ -91,15 +91,15 @@
91
91
  content-type:
92
92
  - application/xml; charset=utf-8
93
93
  x-runtime:
94
- - "16"
94
+ - "19"
95
95
  date:
96
- - Mon, 18 Oct 2010 22:53:02 GMT
96
+ - Tue, 19 Oct 2010 03:20:30 GMT
97
97
  server:
98
98
  - nginx/0.7.65
99
99
  content-length:
100
100
  - "1150"
101
101
  set-cookie:
102
- - _recurly_session=fa1a6a5cfc7c30073e8c4ff279a97951; domain=.recurly.com; path=/; Secure; HttpOnly
102
+ - _recurly_session=d973265b3088d1f3a819dc437752e07e; domain=.recurly.com; path=/; Secure; HttpOnly
103
103
  cache-control:
104
104
  - private, max-age=0, must-revalidate
105
105
  body: |
@@ -133,20 +133,20 @@
133
133
  - !ruby/struct:VCR::HTTPInteraction
134
134
  request: !ruby/struct:VCR::Request
135
135
  method: :post
136
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/subscription-cancel-1287442352/subscription.xml
136
+ uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/subscription-reactivate-1287455769/subscription.xml
137
137
  body: |
138
138
  <?xml version="1.0" encoding="UTF-8"?>
139
139
  <subscription>
140
140
  <quantity type="integer">1</quantity>
141
141
  <plan-code>paid</plan-code>
142
142
  <account>
143
- <created-at type="datetime">2010-10-18T22:53:01Z</created-at>
144
- <hosted-login-token>c7b2ce2367004fba9efcb04d4a2bf208</hosted-login-token>
143
+ <created-at type="datetime">2010-10-19T03:20:29Z</created-at>
144
+ <hosted-login-token>544782a287c247b9aca5320c1c688ec2</hosted-login-token>
145
145
  <company-name>Recurly Ruby Gem</company-name>
146
- <account-code>subscription-cancel-1287442352</account-code>
146
+ <account-code>subscription-reactivate-1287455769</account-code>
147
147
  <closed type="boolean">false</closed>
148
148
  <username type="yaml" nil="true"></username>
149
- <id>subscription-cancel-1287442352</id>
149
+ <id>subscription-reactivate-1287455769</id>
150
150
  <last-name>Test</last-name>
151
151
  <billing-info>
152
152
  <city>San Francisco</city>
@@ -189,22 +189,22 @@
189
189
  content-type:
190
190
  - application/xml; charset=utf-8
191
191
  x-runtime:
192
- - "576"
192
+ - "612"
193
193
  date:
194
- - Mon, 18 Oct 2010 22:53:03 GMT
194
+ - Tue, 19 Oct 2010 03:20:31 GMT
195
195
  server:
196
196
  - nginx/0.7.65
197
197
  content-length:
198
- - "870"
198
+ - "878"
199
199
  set-cookie:
200
- - _recurly_session=b0ab6a680df44bd132086dfb99db332d; domain=.recurly.com; path=/; Secure; HttpOnly
200
+ - _recurly_session=cd3a1cd228913cba7badc3b7e3878b08; domain=.recurly.com; path=/; Secure; HttpOnly
201
201
  cache-control:
202
202
  - no-cache
203
203
  body: |
204
204
  <?xml version="1.0" encoding="UTF-8"?>
205
205
  <subscription>
206
- <id>subscription-cancel-1287442352</id>
207
- <account_code>subscription-cancel-1287442352</account_code>
206
+ <id>subscription-reactivate-1287455769</id>
207
+ <account_code>subscription-reactivate-1287455769</account_code>
208
208
  <plan>
209
209
  <plan_code>paid</plan_code>
210
210
  <name>Paid</name>
@@ -212,11 +212,11 @@
212
212
  <state>active</state>
213
213
  <quantity type="integer">1</quantity>
214
214
  <total_amount_in_cents type="integer">1000</total_amount_in_cents>
215
- <activated_at type="datetime">2010-10-18T22:53:03Z</activated_at>
215
+ <activated_at type="datetime">2010-10-19T03:20:31Z</activated_at>
216
216
  <canceled_at nil="true" type="datetime"></canceled_at>
217
217
  <expires_at nil="true" type="datetime"></expires_at>
218
- <current_period_started_at type="datetime">2010-10-18T22:53:03Z</current_period_started_at>
219
- <current_period_ends_at type="datetime">2010-11-18T22:53:03Z</current_period_ends_at>
218
+ <current_period_started_at type="datetime">2010-10-19T03:20:31Z</current_period_started_at>
219
+ <current_period_ends_at type="datetime">2010-11-19T03:20:31Z</current_period_ends_at>
220
220
  <trial_started_at nil="true" type="datetime"></trial_started_at>
221
221
  <trial_ends_at nil="true" type="datetime"></trial_ends_at>
222
222
  </subscription>
@@ -225,7 +225,7 @@
225
225
  - !ruby/struct:VCR::HTTPInteraction
226
226
  request: !ruby/struct:VCR::Request
227
227
  method: :get
228
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/subscription-cancel-1287442352/subscription.xml
228
+ uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/subscription-reactivate-1287455769/subscription.xml
229
229
  body:
230
230
  headers:
231
231
  accept:
@@ -242,28 +242,28 @@
242
242
  x-ua-compatible:
243
243
  - IE=Edge
244
244
  etag:
245
- - "\"5b5dbceadcb173c24f4c996fa92e12b9\""
245
+ - "\"bb5d213f828ca4955eb2b3a2a7053528\""
246
246
  connection:
247
247
  - close
248
248
  content-type:
249
249
  - application/xml; charset=utf-8
250
250
  x-runtime:
251
- - "29"
251
+ - "23"
252
252
  date:
253
- - Mon, 18 Oct 2010 22:53:04 GMT
253
+ - Tue, 19 Oct 2010 03:20:32 GMT
254
254
  server:
255
255
  - nginx/0.7.65
256
256
  content-length:
257
- - "870"
257
+ - "878"
258
258
  set-cookie:
259
- - _recurly_session=9c997203a5226d1fce16cf18c00a3a77; domain=.recurly.com; path=/; Secure; HttpOnly
259
+ - _recurly_session=1e33fdd2b4bdbba96770b2b6d71ab26a; domain=.recurly.com; path=/; Secure; HttpOnly
260
260
  cache-control:
261
261
  - private, max-age=0, must-revalidate
262
262
  body: |
263
263
  <?xml version="1.0" encoding="UTF-8"?>
264
264
  <subscription>
265
- <id>subscription-cancel-1287442352</id>
266
- <account_code>subscription-cancel-1287442352</account_code>
265
+ <id>subscription-reactivate-1287455769</id>
266
+ <account_code>subscription-reactivate-1287455769</account_code>
267
267
  <plan>
268
268
  <plan_code>paid</plan_code>
269
269
  <name>Paid</name>
@@ -271,11 +271,11 @@
271
271
  <state>active</state>
272
272
  <quantity type="integer">1</quantity>
273
273
  <total_amount_in_cents type="integer">1000</total_amount_in_cents>
274
- <activated_at type="datetime">2010-10-18T22:53:03Z</activated_at>
274
+ <activated_at type="datetime">2010-10-19T03:20:31Z</activated_at>
275
275
  <canceled_at nil="true" type="datetime"></canceled_at>
276
276
  <expires_at nil="true" type="datetime"></expires_at>
277
- <current_period_started_at type="datetime">2010-10-18T22:53:03Z</current_period_started_at>
278
- <current_period_ends_at type="datetime">2010-11-18T22:53:03Z</current_period_ends_at>
277
+ <current_period_started_at type="datetime">2010-10-19T03:20:31Z</current_period_started_at>
278
+ <current_period_ends_at type="datetime">2010-11-19T03:20:31Z</current_period_ends_at>
279
279
  <trial_started_at nil="true" type="datetime"></trial_started_at>
280
280
  <trial_ends_at nil="true" type="datetime"></trial_ends_at>
281
281
  </subscription>
@@ -284,7 +284,7 @@
284
284
  - !ruby/struct:VCR::HTTPInteraction
285
285
  request: !ruby/struct:VCR::Request
286
286
  method: :delete
287
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/subscription-cancel-1287442352/subscription.xml
287
+ uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/subscription-reactivate-1287455769/subscription.xml
288
288
  body:
289
289
  headers:
290
290
  accept:
@@ -301,28 +301,28 @@
301
301
  x-ua-compatible:
302
302
  - IE=Edge
303
303
  etag:
304
- - "\"48b25d5481660d32e24952c8f45f943e\""
304
+ - "\"4d6be1b23a6d2b9f617430497e6b0c31\""
305
305
  connection:
306
306
  - close
307
307
  content-type:
308
308
  - application/xml; charset=utf-8
309
309
  x-runtime:
310
- - "234"
310
+ - "178"
311
311
  date:
312
- - Mon, 18 Oct 2010 22:53:05 GMT
312
+ - Tue, 19 Oct 2010 03:20:32 GMT
313
313
  server:
314
314
  - nginx/0.7.65
315
315
  content-length:
316
- - "890"
316
+ - "898"
317
317
  set-cookie:
318
- - _recurly_session=e3998d0353d0914e07d136d06efc7d8d; domain=.recurly.com; path=/; Secure; HttpOnly
318
+ - _recurly_session=02b3e14cd78b58e5c5bfaa4ef686158a; domain=.recurly.com; path=/; Secure; HttpOnly
319
319
  cache-control:
320
320
  - private, max-age=0, must-revalidate
321
321
  body: |
322
322
  <?xml version="1.0" encoding="UTF-8"?>
323
323
  <subscription>
324
- <id>subscription-cancel-1287442352</id>
325
- <account_code>subscription-cancel-1287442352</account_code>
324
+ <id>subscription-reactivate-1287455769</id>
325
+ <account_code>subscription-reactivate-1287455769</account_code>
326
326
  <plan>
327
327
  <plan_code>paid</plan_code>
328
328
  <name>Paid</name>
@@ -330,20 +330,61 @@
330
330
  <state>canceled</state>
331
331
  <quantity type="integer">1</quantity>
332
332
  <total_amount_in_cents type="integer">1000</total_amount_in_cents>
333
- <activated_at type="datetime">2010-10-18T22:53:03Z</activated_at>
334
- <canceled_at type="datetime">2010-10-18T22:53:04Z</canceled_at>
335
- <expires_at type="datetime">2010-11-18T22:53:03Z</expires_at>
336
- <current_period_started_at type="datetime">2010-10-18T22:53:03Z</current_period_started_at>
337
- <current_period_ends_at type="datetime">2010-11-18T22:53:03Z</current_period_ends_at>
333
+ <activated_at type="datetime">2010-10-19T03:20:31Z</activated_at>
334
+ <canceled_at type="datetime">2010-10-19T03:20:32Z</canceled_at>
335
+ <expires_at type="datetime">2010-11-19T03:20:31Z</expires_at>
336
+ <current_period_started_at type="datetime">2010-10-19T03:20:31Z</current_period_started_at>
337
+ <current_period_ends_at type="datetime">2010-11-19T03:20:31Z</current_period_ends_at>
338
338
  <trial_started_at nil="true" type="datetime"></trial_started_at>
339
339
  <trial_ends_at nil="true" type="datetime"></trial_ends_at>
340
340
  </subscription>
341
341
 
342
342
  http_version: "1.1"
343
343
  - !ruby/struct:VCR::HTTPInteraction
344
+ request: !ruby/struct:VCR::Request
345
+ method: :post
346
+ uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/subscription-reactivate-1287455769/subscription/reactivate
347
+ body: ""
348
+ headers:
349
+ accept:
350
+ - "*/*"
351
+ connection:
352
+ - close
353
+ content-type:
354
+ - application/xml
355
+ authorization:
356
+ - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
357
+ response: !ruby/struct:VCR::Response
358
+ status: !ruby/struct:VCR::ResponseStatus
359
+ code: 302
360
+ message: Moved Temporarily
361
+ headers:
362
+ x-ua-compatible:
363
+ - IE=Edge
364
+ location:
365
+ - https://recurlytest3-test.recurly.com/accounts/subscription-reactivate-1287455769
366
+ connection:
367
+ - close
368
+ content-type:
369
+ - text/html; charset=utf-8
370
+ x-runtime:
371
+ - "61"
372
+ date:
373
+ - Tue, 19 Oct 2010 03:20:33 GMT
374
+ server:
375
+ - nginx/0.7.65
376
+ content-length:
377
+ - "147"
378
+ set-cookie:
379
+ - _recurly_session=03c3cb7f597630bdabd16487bf5a709e; domain=.recurly.com; path=/; Secure; HttpOnly
380
+ cache-control:
381
+ - no-cache
382
+ body: <html><body>You are being <a href="https://recurlytest3-test.recurly.com/accounts/subscription-reactivate-1287455769">redirected</a>.</body></html>
383
+ http_version: "1.1"
384
+ - !ruby/struct:VCR::HTTPInteraction
344
385
  request: !ruby/struct:VCR::Request
345
386
  method: :get
346
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/subscription-cancel-1287442352/subscription.xml
387
+ uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/subscription-reactivate-1287455769/subscription.xml
347
388
  body:
348
389
  headers:
349
390
  accept:
@@ -360,40 +401,40 @@
360
401
  x-ua-compatible:
361
402
  - IE=Edge
362
403
  etag:
363
- - "\"48b25d5481660d32e24952c8f45f943e\""
404
+ - "\"16d693017a001a56b274a1986f9600ef\""
364
405
  connection:
365
406
  - close
366
407
  content-type:
367
408
  - application/xml; charset=utf-8
368
409
  x-runtime:
369
- - "17"
410
+ - "16"
370
411
  date:
371
- - Mon, 18 Oct 2010 22:53:05 GMT
412
+ - Tue, 19 Oct 2010 03:20:33 GMT
372
413
  server:
373
414
  - nginx/0.7.65
374
415
  content-length:
375
- - "890"
416
+ - "887"
376
417
  set-cookie:
377
- - _recurly_session=cfd0e231cb20830e6d00d1947f4c642c; domain=.recurly.com; path=/; Secure; HttpOnly
418
+ - _recurly_session=0059d8f5a1b387554b185d2a802ae3f7; domain=.recurly.com; path=/; Secure; HttpOnly
378
419
  cache-control:
379
420
  - private, max-age=0, must-revalidate
380
421
  body: |
381
422
  <?xml version="1.0" encoding="UTF-8"?>
382
423
  <subscription>
383
- <id>subscription-cancel-1287442352</id>
384
- <account_code>subscription-cancel-1287442352</account_code>
424
+ <id>subscription-reactivate-1287455769</id>
425
+ <account_code>subscription-reactivate-1287455769</account_code>
385
426
  <plan>
386
427
  <plan_code>paid</plan_code>
387
428
  <name>Paid</name>
388
429
  </plan>
389
- <state>canceled</state>
430
+ <state>active</state>
390
431
  <quantity type="integer">1</quantity>
391
432
  <total_amount_in_cents type="integer">1000</total_amount_in_cents>
392
- <activated_at type="datetime">2010-10-18T22:53:03Z</activated_at>
393
- <canceled_at type="datetime">2010-10-18T22:53:04Z</canceled_at>
394
- <expires_at type="datetime">2010-11-18T22:53:03Z</expires_at>
395
- <current_period_started_at type="datetime">2010-10-18T22:53:03Z</current_period_started_at>
396
- <current_period_ends_at type="datetime">2010-11-18T22:53:03Z</current_period_ends_at>
433
+ <activated_at type="datetime">2010-10-19T03:20:31Z</activated_at>
434
+ <canceled_at nil="true" type="datetime"></canceled_at>
435
+ <expires_at type="datetime">2010-11-19T03:20:31Z</expires_at>
436
+ <current_period_started_at type="datetime">2010-10-19T03:20:31Z</current_period_started_at>
437
+ <current_period_ends_at type="datetime">2010-11-19T03:20:31Z</current_period_ends_at>
397
438
  <trial_started_at nil="true" type="datetime"></trial_started_at>
398
439
  <trial_ends_at nil="true" type="datetime"></trial_ends_at>
399
440
  </subscription>