recurly 0.4.7 → 0.4.8

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 (77) hide show
  1. data/README.md +6 -0
  2. data/lib/recurly/base.rb +15 -14
  3. data/lib/recurly/subscription.rb +2 -0
  4. data/lib/recurly/version.rb +1 -1
  5. data/spec/config/recurly.yml +4 -10
  6. data/spec/integration/transparent_spec.rb +72 -0
  7. data/spec/unit/transparent_spec.rb +6 -6
  8. data/spec/vcr/account/accept-language-account/{1301979678.yml → 1296674173.yml} +16 -18
  9. data/spec/vcr/account/close/{1301979678.yml → 1296674173.yml} +37 -39
  10. data/spec/vcr/account/create-blank/{1301979678.yml → 1296674173.yml} +8 -12
  11. data/spec/vcr/account/create-duplicate/{1301979678.yml → 1296674173.yml} +21 -27
  12. data/spec/vcr/account/create-min/{1301979678.yml → 1296674173.yml} +16 -18
  13. data/spec/vcr/account/create/{1301979678.yml → 1296674173.yml} +16 -18
  14. data/spec/vcr/account/find/{1301979678.yml → 1296674173.yml} +36 -38
  15. data/spec/vcr/account/list/1296674173.yml +55 -0
  16. data/spec/vcr/account/update/{1301979678.yml → 1296674173.yml} +59 -65
  17. data/spec/vcr/billing/create/{1302025874.yml → 1296690812.yml} +43 -45
  18. data/spec/vcr/billing/destroy/{1302025874.yml → 1296690812.yml} +58 -60
  19. data/spec/vcr/billing/find/{1302025874.yml → 1296690812.yml} +56 -58
  20. data/spec/vcr/billing/update/{1302025874.yml → 1296690812.yml} +59 -61
  21. data/spec/vcr/charge/create/{1297746103.yml → 1296674173.yml} +58 -64
  22. data/spec/vcr/charge/delete-uninvoiced/{1297746103.yml → 1296674173.yml} +66 -72
  23. data/spec/vcr/charge/list-all/{1297746103.yml → 1296674173.yml} +77 -91
  24. data/spec/vcr/charge/list-invoiced/{1297746103.yml → 1296674173.yml} +115 -131
  25. data/spec/vcr/charge/list-pending/{1297746103.yml → 1296674173.yml} +77 -91
  26. data/spec/vcr/charge/lookup/{1297746103.yml → 1296674173.yml} +43 -49
  27. data/spec/vcr/coupon/create/1296688818.yml +183 -0
  28. data/spec/vcr/coupon/create/1296774903.yml +183 -0
  29. data/spec/vcr/coupon/destroy/1296688818.yml +207 -0
  30. data/spec/vcr/coupon/destroy/1296774903.yml +207 -0
  31. data/spec/vcr/{coupon/create/1299714521.yml → credit/create/1296674173.yml} +34 -32
  32. data/spec/vcr/{billing/errors/1302025874.yml → credit/delete/1296674173.yml} +33 -42
  33. data/spec/vcr/{coupon/destroy/1299714521.yml → credit/list/1296674173.yml} +35 -33
  34. data/spec/vcr/credit/lookup/1296674173.yml +121 -0
  35. data/spec/vcr/invoice/create-no-charges/{1297746103.yml → 1296674173.yml} +40 -42
  36. data/spec/vcr/invoice/create/{1297746103.yml → 1296674173.yml} +77 -83
  37. data/spec/vcr/invoice/list/{1297746103.yml → 1296674173.yml} +107 -113
  38. data/spec/vcr/invoice/lookup/{1297746103.yml → 1296674173.yml} +77 -81
  39. data/spec/vcr/plan/all.yml +117 -98
  40. data/spec/vcr/plan/delete/1296674173.yml +225 -0
  41. data/spec/vcr/plan/find.yml +66 -36
  42. data/spec/vcr/plan/update.yml +64 -144
  43. data/spec/vcr/subscription/addons/add/{1301885121.yml → 1296674173.yml} +58 -51
  44. data/spec/vcr/subscription/addons/create/{1301885121.yml → 1296674173.yml} +58 -51
  45. data/spec/vcr/subscription/addons/remove/{1301885121.yml → 1296674173.yml} +58 -51
  46. data/spec/vcr/subscription/cancel-with-code/{1301881900.yml → 1296674173.yml} +135 -133
  47. data/spec/vcr/subscription/cancel/{1301881900.yml → 1296674173.yml} +117 -114
  48. data/spec/vcr/subscription/change1/{1301881900.yml → 1296674173.yml} +113 -110
  49. data/spec/vcr/subscription/change2/{1301881900.yml → 1296674173.yml} +112 -109
  50. data/spec/vcr/subscription/create/{1301881900.yml → 1296674173.yml} +65 -59
  51. data/spec/vcr/subscription/find/{1301881900.yml → 1296674173.yml} +81 -76
  52. data/spec/vcr/subscription/reactivate/{1301881900.yml → 1296674173.yml} +127 -124
  53. data/spec/vcr/subscription/refund-full/1296674173.yml +400 -0
  54. data/spec/vcr/subscription/refund-none/{1301881900.yml → 1296674173.yml} +106 -102
  55. data/spec/vcr/subscription/refund-partial/1296674173.yml +400 -0
  56. data/spec/vcr/transaction/all/{1301883347.yml → 1296674173.yml} +126 -126
  57. data/spec/vcr/transaction/create-no-account/{1301883347.yml → 1296674173.yml} +16 -16
  58. data/spec/vcr/transaction/create-with-account/{1301883347.yml → 1296674173.yml} +45 -51
  59. data/spec/vcr/transaction/list-filled/{1301883347.yml → 1296674173.yml} +91 -221
  60. data/spec/vcr/transaction/list-initial/{1301883347.yml → 1296674173.yml} +44 -46
  61. data/spec/vcr/transaction/lookup/{1301883347.yml → 1296674173.yml} +107 -121
  62. data/spec/vcr/transaction/refund/{1301883347.yml → 1296674173.yml} +57 -63
  63. data/spec/vcr/transaction/void/{1301883347.yml → 1296674173.yml} +69 -75
  64. data/spec/vcr/transparent/post-url/1311127536.yml +0 -0
  65. data/spec/vcr/transparent/post-url/1311127583.yml +0 -0
  66. data/spec/vcr/transparent/post-url/1311128042.yml +0 -0
  67. data/spec/vcr/transparent/post-url/1311128073.yml +0 -0
  68. data/spec/vcr/transparent/post-url/1311128087.yml +0 -0
  69. metadata +97 -155
  70. data/spec/vcr/account/list/1301979678.yml +0 -1588
  71. data/spec/vcr/credit/create/1299714599.yml +0 -186
  72. data/spec/vcr/credit/delete/1299714599.yml +0 -265
  73. data/spec/vcr/credit/list/1299714599.yml +0 -330
  74. data/spec/vcr/credit/lookup/1299714599.yml +0 -186
  75. data/spec/vcr/subscription/refund-full/1301881900.yml +0 -334
  76. data/spec/vcr/subscription/refund-partial/1301881900.yml +0 -334
  77. data/spec/vcr/transparent/post-url/1301879142.yml +0 -129
@@ -2,31 +2,27 @@
2
2
  - !ruby/struct:VCR::HTTPInteraction
3
3
  request: !ruby/struct:VCR::Request
4
4
  method: :post
5
- uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts.xml
5
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts.xml
6
6
  body: |
7
7
  <?xml version="1.0" encoding="UTF-8"?>
8
8
  <account>
9
- <account-code>subscription-reactivate-1301881900</account-code>
9
+ <account-code>subscription-reactivate-1296674173</account-code>
10
10
  <first-name>Verena</first-name>
11
11
  <last-name>Test</last-name>
12
12
  <email>verena@test.com</email>
13
13
  <company-name>Recurly Ruby Gem</company-name>
14
- <billing-info>
15
- <credit-card>
16
- </credit-card>
17
- </billing-info>
18
14
  <accept-language type="yaml" nil="true"></accept-language>
19
15
  </account>
20
16
 
21
17
  headers:
22
18
  authorization:
23
- - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
24
- user-agent:
25
- - Recurly Ruby Client v0.4.6
19
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
26
20
  content-type:
27
21
  - application/xml
28
22
  accept:
29
23
  - "*/*"
24
+ user-agent:
25
+ - Ruby
30
26
  connection:
31
27
  - close
32
28
  response: !ruby/struct:VCR::Response
@@ -37,26 +33,28 @@
37
33
  cache-control:
38
34
  - no-cache
39
35
  location:
40
- - http://app.recurly.local:3000/accounts/subscription-reactivate-1301881900
36
+ - http://litle-test.recurly.local:3000/accounts/subscription-reactivate-1296674173
41
37
  x-runtime:
42
- - "418"
38
+ - "735"
43
39
  content-type:
44
40
  - application/xml; charset=utf-8
45
41
  content-length:
46
42
  - "601"
47
43
  server:
48
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
44
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
49
45
  date:
50
- - Thu, 21 Apr 2011 18:03:26 GMT
46
+ - Thu, 03 Feb 2011 22:22:16 GMT
51
47
  connection:
52
48
  - close
53
49
  set-cookie:
54
- - _recurly_session=5fd0084bd68ad88c72447986dfeb4df2; domain=.recurly.local; path=/; HttpOnly
50
+ - account_credentials=89e89e72a3e1859edaaa6a1b92d2d5b9393e79644a0b741dd02387bd031b20d5af713cfa445f94aea2fe28b464588d24fd3c6b7efbf6035dc17f35c6964b891f%3A%3A; domain=.recurly.local; path=/
51
+ - ""
52
+ - _recurly_session=bea95b9e7cf86945439879f0c99bc023; domain=.recurly.local; path=/; HttpOnly
55
53
  body: |
56
54
  <?xml version="1.0" encoding="UTF-8"?>
57
55
  <account>
58
- <id>subscription-reactivate-1301881900</id>
59
- <account_code>subscription-reactivate-1301881900</account_code>
56
+ <id>subscription-reactivate-1296674173</id>
57
+ <account_code>subscription-reactivate-1296674173</account_code>
60
58
  <username></username>
61
59
  <email>verena@test.com</email>
62
60
  <first_name>Verena</first_name>
@@ -64,8 +62,8 @@
64
62
  <company_name>Recurly Ruby Gem</company_name>
65
63
  <balance_in_cents type="integer">0</balance_in_cents>
66
64
  <closed type="boolean">false</closed>
67
- <hosted_login_token>cf809336155149f5897036ba793218a8</hosted_login_token>
68
- <created_at type="datetime">2011-04-21T18:03:26Z</created_at>
65
+ <hosted_login_token>a24735117e1143c0b27d962fe9ec23c1</hosted_login_token>
66
+ <created_at type="datetime">2011-02-03T22:22:16Z</created_at>
69
67
  <state>active</state>
70
68
  </account>
71
69
 
@@ -73,17 +71,17 @@
73
71
  - !ruby/struct:VCR::HTTPInteraction
74
72
  request: !ruby/struct:VCR::Request
75
73
  method: :get
76
- uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/company/plans/paid.xml
74
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/company/plans/paid.xml
77
75
  body:
78
76
  headers:
79
77
  authorization:
80
- - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
81
- user-agent:
82
- - Recurly Ruby Client v0.4.6
78
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
83
79
  accept:
84
80
  - application/xml
85
81
  accept-encoding:
86
82
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
83
+ user-agent:
84
+ - Ruby
87
85
  connection:
88
86
  - close
89
87
  response: !ruby/struct:VCR::Response
@@ -92,23 +90,23 @@
92
90
  message: "OK "
93
91
  headers:
94
92
  x-runtime:
95
- - "81"
93
+ - "237"
96
94
  content-type:
97
95
  - application/xml; charset=utf-8
98
96
  etag:
99
- - "\"3888306c167f105a4e165433ee427264\""
97
+ - "\"70b5c605373b1a4346a2d7ed46048dc4\""
100
98
  cache-control:
101
99
  - private, max-age=0, must-revalidate
102
100
  content-length:
103
- - "612"
101
+ - "1150"
104
102
  server:
105
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
103
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
106
104
  date:
107
- - Thu, 21 Apr 2011 18:03:27 GMT
105
+ - Thu, 03 Feb 2011 22:22:18 GMT
108
106
  connection:
109
107
  - close
110
108
  set-cookie:
111
- - _recurly_session=649e6ad070f713c33b77f3b16207fa4d; domain=.recurly.local; path=/; HttpOnly
109
+ - _recurly_session=2cb71cbe9c204c7eddaeb8dbb0d45d54; domain=.recurly.local; path=/; HttpOnly
112
110
  body: |
113
111
  <?xml version="1.0" encoding="UTF-8"?>
114
112
  <plan>
@@ -117,34 +115,50 @@
117
115
  <description></description>
118
116
  <success_url></success_url>
119
117
  <cancel_url></cancel_url>
120
- <created_at type="datetime">2011-04-21T17:57:33Z</created_at>
121
- <unit_amount_in_cents type="integer">0</unit_amount_in_cents>
118
+ <created_at type="datetime">2011-02-02T21:02:59Z</created_at>
119
+ <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
122
120
  <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
123
121
  <plan_interval_length type="integer">1</plan_interval_length>
124
122
  <plan_interval_unit>months</plan_interval_unit>
125
123
  <trial_interval_length type="integer">0</trial_interval_length>
126
124
  <trial_interval_unit>months</trial_interval_unit>
125
+ <latest_version depreciated="true">
126
+ <version type="integer">1</version>
127
+ <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
128
+ <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
129
+ <plan_interval_length type="integer">1</plan_interval_length>
130
+ <plan_interval_unit>months</plan_interval_unit>
131
+ <trial_interval_length type="integer">0</trial_interval_length>
132
+ <trial_interval_unit>months</trial_interval_unit>
133
+ <created_at type="datetime">2011-02-02T21:02:59Z</created_at>
134
+ </latest_version>
127
135
  </plan>
128
136
 
129
137
  http_version: "1.1"
130
138
  - !ruby/struct:VCR::HTTPInteraction
131
139
  request: !ruby/struct:VCR::Request
132
140
  method: :post
133
- uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/subscription-reactivate-1301881900/subscription.xml
141
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/subscription-reactivate-1296674173/subscription.xml
134
142
  body: |
135
143
  <?xml version="1.0" encoding="UTF-8"?>
136
144
  <subscription>
137
145
  <plan-code>paid</plan-code>
138
146
  <quantity type="integer">1</quantity>
139
147
  <account>
140
- <account-code>subscription-reactivate-1301881900</account-code>
148
+ <account-code>subscription-reactivate-1296674173</account-code>
141
149
  <first-name>Verena</first-name>
142
150
  <last-name>Test</last-name>
143
151
  <email>verena@test.com</email>
144
152
  <company-name>Recurly Ruby Gem</company-name>
153
+ <accept-language type="yaml" nil="true"></accept-language>
154
+ <id>subscription-reactivate-1296674173</id>
155
+ <username type="yaml" nil="true"></username>
156
+ <balance-in-cents type="integer">0</balance-in-cents>
157
+ <closed type="boolean">false</closed>
158
+ <hosted-login-token>a24735117e1143c0b27d962fe9ec23c1</hosted-login-token>
159
+ <created-at type="datetime">2011-02-03T22:22:16Z</created-at>
160
+ <state>active</state>
145
161
  <billing-info>
146
- <first-name>Verena</first-name>
147
- <last-name>Test</last-name>
148
162
  <address1>123 Test St</address1>
149
163
  <city>San Francisco</city>
150
164
  <state>CA</state>
@@ -153,31 +167,24 @@
153
167
  <credit-card>
154
168
  <number>4111111111111111</number>
155
169
  <year type="integer">2012</year>
156
- <month type="integer">4</month>
170
+ <month type="integer">2</month>
157
171
  <verification-value>123</verification-value>
158
172
  </credit-card>
173
+ <first-name>Verena</first-name>
174
+ <last-name>Test</last-name>
159
175
  </billing-info>
160
- <accept-language type="yaml" nil="true"></accept-language>
161
- <id>subscription-reactivate-1301881900</id>
162
- <username type="yaml" nil="true"></username>
163
- <balance-in-cents type="integer">0</balance-in-cents>
164
- <closed type="boolean">false</closed>
165
- <hosted-login-token>cf809336155149f5897036ba793218a8</hosted-login-token>
166
- <created-at type="datetime">2011-04-21T18:03:26Z</created-at>
167
- <state>active</state>
168
176
  </account>
169
- <addons type="array"/>
170
177
  </subscription>
171
178
 
172
179
  headers:
173
180
  authorization:
174
- - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
175
- user-agent:
176
- - Recurly Ruby Client v0.4.6
181
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
177
182
  content-type:
178
183
  - application/xml
179
184
  accept:
180
185
  - "*/*"
186
+ user-agent:
187
+ - Ruby
181
188
  connection:
182
189
  - close
183
190
  response: !ruby/struct:VCR::Response
@@ -188,37 +195,36 @@
188
195
  cache-control:
189
196
  - no-cache
190
197
  x-runtime:
191
- - "3082"
198
+ - "4324"
192
199
  content-type:
193
200
  - application/xml; charset=utf-8
194
201
  content-length:
195
- - "977"
202
+ - "916"
196
203
  server:
197
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
204
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
198
205
  date:
199
- - Thu, 21 Apr 2011 18:03:32 GMT
206
+ - Thu, 03 Feb 2011 22:22:24 GMT
200
207
  connection:
201
208
  - close
202
209
  set-cookie:
203
- - _recurly_session=912e1d9e3929c7273be2ed8aa5767098; domain=.recurly.local; path=/; HttpOnly
210
+ - _recurly_session=d525ffd5ff7d3ae222ae963563313fa5; domain=.recurly.local; path=/; HttpOnly
204
211
  body: |
205
212
  <?xml version="1.0" encoding="UTF-8"?>
206
213
  <subscription>
207
- <id>subscription-reactivate-1301881900</id>
208
- <account_code>subscription-reactivate-1301881900</account_code>
214
+ <id>subscription-reactivate-1296674173</id>
215
+ <account_code>subscription-reactivate-1296674173</account_code>
209
216
  <plan>
210
217
  <plan_code>paid</plan_code>
211
218
  <name>Paid</name>
212
219
  </plan>
213
220
  <state>active</state>
214
221
  <quantity type="integer">1</quantity>
215
- <unit_amount_in_cents type="integer">0</unit_amount_in_cents>
216
- <total_amount_in_cents type="integer">0</total_amount_in_cents>
217
- <activated_at type="datetime">2011-04-21T18:03:30Z</activated_at>
222
+ <total_amount_in_cents type="integer">1000</total_amount_in_cents>
223
+ <activated_at type="datetime">2011-02-03T22:22:20Z</activated_at>
218
224
  <canceled_at nil="true" type="datetime"></canceled_at>
219
225
  <expires_at nil="true" type="datetime"></expires_at>
220
- <current_period_started_at type="datetime">2011-04-21T18:03:30Z</current_period_started_at>
221
- <current_period_ends_at type="datetime">2011-05-21T18:03:30Z</current_period_ends_at>
226
+ <current_period_started_at type="datetime">2011-02-03T22:22:20Z</current_period_started_at>
227
+ <current_period_ends_at type="datetime">2011-03-03T22:22:20Z</current_period_ends_at>
222
228
  <trial_started_at nil="true" type="datetime"></trial_started_at>
223
229
  <trial_ends_at nil="true" type="datetime"></trial_ends_at>
224
230
  <add_ons type="array">
@@ -229,17 +235,17 @@
229
235
  - !ruby/struct:VCR::HTTPInteraction
230
236
  request: !ruby/struct:VCR::Request
231
237
  method: :get
232
- uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/subscription-reactivate-1301881900/subscription.xml
238
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/subscription-reactivate-1296674173/subscription.xml
233
239
  body:
234
240
  headers:
235
241
  authorization:
236
- - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
237
- user-agent:
238
- - Recurly Ruby Client v0.4.6
242
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
239
243
  accept:
240
244
  - application/xml
241
245
  accept-encoding:
242
246
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
247
+ user-agent:
248
+ - Ruby
243
249
  connection:
244
250
  - close
245
251
  response: !ruby/struct:VCR::Response
@@ -248,41 +254,40 @@
248
254
  message: "OK "
249
255
  headers:
250
256
  x-runtime:
251
- - "258"
257
+ - "412"
252
258
  content-type:
253
259
  - application/xml; charset=utf-8
254
260
  etag:
255
- - "\"a4651bf6ee1f6a18804bf28437def47a\""
261
+ - "\"12dd0c385a0dc0deeb907cbf59501ba0\""
256
262
  cache-control:
257
263
  - private, max-age=0, must-revalidate
258
264
  content-length:
259
- - "977"
265
+ - "916"
260
266
  server:
261
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
267
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
262
268
  date:
263
- - Thu, 21 Apr 2011 18:03:34 GMT
269
+ - Thu, 03 Feb 2011 22:22:27 GMT
264
270
  connection:
265
271
  - close
266
272
  set-cookie:
267
- - _recurly_session=8e94071200c5086dcf12af72e207bffa; domain=.recurly.local; path=/; HttpOnly
273
+ - _recurly_session=58f5fbaa00eecd69b98d25ed5f32a8f3; domain=.recurly.local; path=/; HttpOnly
268
274
  body: |
269
275
  <?xml version="1.0" encoding="UTF-8"?>
270
276
  <subscription>
271
- <id>subscription-reactivate-1301881900</id>
272
- <account_code>subscription-reactivate-1301881900</account_code>
277
+ <id>subscription-reactivate-1296674173</id>
278
+ <account_code>subscription-reactivate-1296674173</account_code>
273
279
  <plan>
274
280
  <plan_code>paid</plan_code>
275
281
  <name>Paid</name>
276
282
  </plan>
277
283
  <state>active</state>
278
284
  <quantity type="integer">1</quantity>
279
- <unit_amount_in_cents type="integer">0</unit_amount_in_cents>
280
- <total_amount_in_cents type="integer">0</total_amount_in_cents>
281
- <activated_at type="datetime">2011-04-21T18:03:30Z</activated_at>
285
+ <total_amount_in_cents type="integer">1000</total_amount_in_cents>
286
+ <activated_at type="datetime">2011-02-03T22:22:20Z</activated_at>
282
287
  <canceled_at nil="true" type="datetime"></canceled_at>
283
288
  <expires_at nil="true" type="datetime"></expires_at>
284
- <current_period_started_at type="datetime">2011-04-21T18:03:30Z</current_period_started_at>
285
- <current_period_ends_at type="datetime">2011-05-21T18:03:30Z</current_period_ends_at>
289
+ <current_period_started_at type="datetime">2011-02-03T22:22:20Z</current_period_started_at>
290
+ <current_period_ends_at type="datetime">2011-03-03T22:22:20Z</current_period_ends_at>
286
291
  <trial_started_at nil="true" type="datetime"></trial_started_at>
287
292
  <trial_ends_at nil="true" type="datetime"></trial_ends_at>
288
293
  <add_ons type="array">
@@ -293,15 +298,15 @@
293
298
  - !ruby/struct:VCR::HTTPInteraction
294
299
  request: !ruby/struct:VCR::Request
295
300
  method: :delete
296
- uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/subscription-reactivate-1301881900/subscription.xml
301
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/subscription-reactivate-1296674173/subscription.xml
297
302
  body:
298
303
  headers:
299
304
  authorization:
300
- - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
301
- user-agent:
302
- - Recurly Ruby Client v0.4.6
305
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
303
306
  accept:
304
307
  - application/xml
308
+ user-agent:
309
+ - Ruby
305
310
  connection:
306
311
  - close
307
312
  response: !ruby/struct:VCR::Response
@@ -310,41 +315,40 @@
310
315
  message: "OK "
311
316
  headers:
312
317
  x-runtime:
313
- - "491"
318
+ - "2015"
314
319
  content-type:
315
320
  - application/xml; charset=utf-8
316
321
  etag:
317
- - "\"04ab8780b20934e83ca24d8eb37d5681\""
322
+ - "\"b6aa8bed512df518f7d51f76baabb729\""
318
323
  cache-control:
319
324
  - private, max-age=0, must-revalidate
320
325
  content-length:
321
- - "997"
326
+ - "936"
322
327
  server:
323
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
328
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
324
329
  date:
325
- - Thu, 21 Apr 2011 18:03:36 GMT
330
+ - Thu, 03 Feb 2011 22:22:31 GMT
326
331
  connection:
327
332
  - close
328
333
  set-cookie:
329
- - _recurly_session=eb7d7fc1558f926eb922b4b6e78e29c8; domain=.recurly.local; path=/; HttpOnly
334
+ - _recurly_session=f08d194fa3189e4683657fa55eef52fa; domain=.recurly.local; path=/; HttpOnly
330
335
  body: |
331
336
  <?xml version="1.0" encoding="UTF-8"?>
332
337
  <subscription>
333
- <id>subscription-reactivate-1301881900</id>
334
- <account_code>subscription-reactivate-1301881900</account_code>
338
+ <id>subscription-reactivate-1296674173</id>
339
+ <account_code>subscription-reactivate-1296674173</account_code>
335
340
  <plan>
336
341
  <plan_code>paid</plan_code>
337
342
  <name>Paid</name>
338
343
  </plan>
339
344
  <state>canceled</state>
340
345
  <quantity type="integer">1</quantity>
341
- <unit_amount_in_cents type="integer">0</unit_amount_in_cents>
342
- <total_amount_in_cents type="integer">0</total_amount_in_cents>
343
- <activated_at type="datetime">2011-04-21T18:03:30Z</activated_at>
344
- <canceled_at type="datetime">2011-04-21T18:03:36Z</canceled_at>
345
- <expires_at type="datetime">2011-05-21T18:03:30Z</expires_at>
346
- <current_period_started_at type="datetime">2011-04-21T18:03:30Z</current_period_started_at>
347
- <current_period_ends_at type="datetime">2011-05-21T18:03:30Z</current_period_ends_at>
346
+ <total_amount_in_cents type="integer">1000</total_amount_in_cents>
347
+ <activated_at type="datetime">2011-02-03T22:22:20Z</activated_at>
348
+ <canceled_at type="datetime">2011-02-03T22:22:29Z</canceled_at>
349
+ <expires_at type="datetime">2011-03-03T22:22:20Z</expires_at>
350
+ <current_period_started_at type="datetime">2011-02-03T22:22:20Z</current_period_started_at>
351
+ <current_period_ends_at type="datetime">2011-03-03T22:22:20Z</current_period_ends_at>
348
352
  <trial_started_at nil="true" type="datetime"></trial_started_at>
349
353
  <trial_ends_at nil="true" type="datetime"></trial_ends_at>
350
354
  <add_ons type="array">
@@ -355,17 +359,17 @@
355
359
  - !ruby/struct:VCR::HTTPInteraction
356
360
  request: !ruby/struct:VCR::Request
357
361
  method: :post
358
- uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/subscription-reactivate-1301881900/subscription/reactivate
362
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/subscription-reactivate-1296674173/subscription/reactivate
359
363
  body: ""
360
364
  headers:
361
365
  authorization:
362
- - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
363
- user-agent:
364
- - Recurly Ruby Client v0.4.6
366
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
365
367
  content-type:
366
368
  - application/xml
367
369
  accept:
368
370
  - "*/*"
371
+ user-agent:
372
+ - Ruby
369
373
  connection:
370
374
  - close
371
375
  response: !ruby/struct:VCR::Response
@@ -376,37 +380,37 @@
376
380
  cache-control:
377
381
  - no-cache
378
382
  location:
379
- - http://app.recurly.local:3000/accounts/subscription-reactivate-1301881900
383
+ - http://litle-test.recurly.local:3000/accounts/subscription-reactivate-1296674173
380
384
  x-runtime:
381
- - "313"
385
+ - "486"
382
386
  content-type:
383
387
  - text/html; charset=utf-8
384
388
  content-length:
385
- - "139"
389
+ - "146"
386
390
  server:
387
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
391
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
388
392
  date:
389
- - Thu, 21 Apr 2011 18:03:38 GMT
393
+ - Thu, 03 Feb 2011 22:22:33 GMT
390
394
  connection:
391
395
  - close
392
396
  set-cookie:
393
- - _recurly_session=2d41157403708024855cf7add9125fe4; domain=.recurly.local; path=/; HttpOnly
394
- body: <html><body>You are being <a href="http://app.recurly.local:3000/accounts/subscription-reactivate-1301881900">redirected</a>.</body></html>
397
+ - _recurly_session=e4f80db37403a422d70b014e3ab008f1; domain=.recurly.local; path=/; HttpOnly
398
+ body: <html><body>You are being <a href="http://litle-test.recurly.local:3000/accounts/subscription-reactivate-1296674173">redirected</a>.</body></html>
395
399
  http_version: "1.1"
396
400
  - !ruby/struct:VCR::HTTPInteraction
397
401
  request: !ruby/struct:VCR::Request
398
402
  method: :get
399
- uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/subscription-reactivate-1301881900/subscription.xml
403
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/subscription-reactivate-1296674173/subscription.xml
400
404
  body:
401
405
  headers:
402
406
  authorization:
403
- - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
404
- user-agent:
405
- - Recurly Ruby Client v0.4.6
407
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
406
408
  accept:
407
409
  - application/xml
408
410
  accept-encoding:
409
411
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
412
+ user-agent:
413
+ - Ruby
410
414
  connection:
411
415
  - close
412
416
  response: !ruby/struct:VCR::Response
@@ -415,41 +419,40 @@
415
419
  message: "OK "
416
420
  headers:
417
421
  x-runtime:
418
- - "259"
422
+ - "273"
419
423
  content-type:
420
424
  - application/xml; charset=utf-8
421
425
  etag:
422
- - "\"6639658ca0f9a11f1a3e1411dc461287\""
426
+ - "\"2149a442b4684eb55f2a34a28bb4b10b\""
423
427
  cache-control:
424
428
  - private, max-age=0, must-revalidate
425
429
  content-length:
426
- - "986"
430
+ - "925"
427
431
  server:
428
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
432
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
429
433
  date:
430
- - Thu, 21 Apr 2011 18:03:40 GMT
434
+ - Thu, 03 Feb 2011 22:22:35 GMT
431
435
  connection:
432
436
  - close
433
437
  set-cookie:
434
- - _recurly_session=428d74ec1551fbac78b0f667b0fbe282; domain=.recurly.local; path=/; HttpOnly
438
+ - _recurly_session=ec4918ce45e97186d194fe5b59c612c3; domain=.recurly.local; path=/; HttpOnly
435
439
  body: |
436
440
  <?xml version="1.0" encoding="UTF-8"?>
437
441
  <subscription>
438
- <id>subscription-reactivate-1301881900</id>
439
- <account_code>subscription-reactivate-1301881900</account_code>
442
+ <id>subscription-reactivate-1296674173</id>
443
+ <account_code>subscription-reactivate-1296674173</account_code>
440
444
  <plan>
441
445
  <plan_code>paid</plan_code>
442
446
  <name>Paid</name>
443
447
  </plan>
444
448
  <state>active</state>
445
449
  <quantity type="integer">1</quantity>
446
- <unit_amount_in_cents type="integer">0</unit_amount_in_cents>
447
- <total_amount_in_cents type="integer">0</total_amount_in_cents>
448
- <activated_at type="datetime">2011-04-21T18:03:30Z</activated_at>
450
+ <total_amount_in_cents type="integer">1000</total_amount_in_cents>
451
+ <activated_at type="datetime">2011-02-03T22:22:20Z</activated_at>
449
452
  <canceled_at nil="true" type="datetime"></canceled_at>
450
- <expires_at type="datetime">2011-05-21T18:03:30Z</expires_at>
451
- <current_period_started_at type="datetime">2011-04-21T18:03:30Z</current_period_started_at>
452
- <current_period_ends_at type="datetime">2011-05-21T18:03:30Z</current_period_ends_at>
453
+ <expires_at type="datetime">2011-03-03T22:22:20Z</expires_at>
454
+ <current_period_started_at type="datetime">2011-02-03T22:22:20Z</current_period_started_at>
455
+ <current_period_ends_at type="datetime">2011-03-03T22:22:20Z</current_period_ends_at>
453
456
  <trial_started_at nil="true" type="datetime"></trial_started_at>
454
457
  <trial_ends_at nil="true" type="datetime"></trial_ends_at>
455
458
  <add_ons type="array">