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-create-1301881900</account-code>
9
+ <account-code>subscription-create-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-create-1301881900
36
+ - http://litle-test.recurly.local:3000/accounts/subscription-create-1296674173
41
37
  x-runtime:
42
- - "409"
38
+ - "677"
43
39
  content-type:
44
40
  - application/xml; charset=utf-8
45
41
  content-length:
46
42
  - "593"
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:02:43 GMT
46
+ - Thu, 03 Feb 2011 22:21:22 GMT
51
47
  connection:
52
48
  - close
53
49
  set-cookie:
54
- - _recurly_session=0a61d065746e536374949c4d043898fa; domain=.recurly.local; path=/; HttpOnly
50
+ - account_credentials=e930e8e5945b340ca1363f7cb89427ae095ab2842e5fcd35a36c42621f3cf29e702e215f0a88069a77248861ce9e657807470bea649dafc07dae1e6649cc3b8e%3A%3A; domain=.recurly.local; path=/
51
+ - ""
52
+ - _recurly_session=4905f21b683565d80c142104d3ce6617; domain=.recurly.local; path=/; HttpOnly
55
53
  body: |
56
54
  <?xml version="1.0" encoding="UTF-8"?>
57
55
  <account>
58
- <id>subscription-create-1301881900</id>
59
- <account_code>subscription-create-1301881900</account_code>
56
+ <id>subscription-create-1296674173</id>
57
+ <account_code>subscription-create-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>54a93d3207de4113bbfcd3e61341dbf5</hosted_login_token>
68
- <created_at type="datetime">2011-04-21T18:02:43Z</created_at>
65
+ <hosted_login_token>2671312c43ab480db35b87f6e36b248d</hosted_login_token>
66
+ <created_at type="datetime">2011-02-03T22:21:22Z</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
- - "82"
93
+ - "228"
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:02:45 GMT
105
+ - Thu, 03 Feb 2011 22:21:24 GMT
108
106
  connection:
109
107
  - close
110
108
  set-cookie:
111
- - _recurly_session=25ba8613939260f9b12acfd6bf5c4fc8; domain=.recurly.local; path=/; HttpOnly
109
+ - _recurly_session=037630ba6409d8527fb63a9b08e18299; 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-create-1301881900/subscription.xml
141
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/subscription-create-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-create-1301881900</account-code>
148
+ <account-code>subscription-create-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-create-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>2671312c43ab480db35b87f6e36b248d</hosted-login-token>
159
+ <created-at type="datetime">2011-02-03T22:21:22Z</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-create-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>54a93d3207de4113bbfcd3e61341dbf5</hosted-login-token>
166
- <created-at type="datetime">2011-04-21T18:02:43Z</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
- - "3544"
198
+ - "4415"
192
199
  content-type:
193
200
  - application/xml; charset=utf-8
194
201
  content-length:
195
- - "969"
202
+ - "908"
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:02:50 GMT
206
+ - Thu, 03 Feb 2011 22:21:30 GMT
200
207
  connection:
201
208
  - close
202
209
  set-cookie:
203
- - _recurly_session=05943a0b998bf35eeed9fefbd5168d60; domain=.recurly.local; path=/; HttpOnly
210
+ - _recurly_session=d6d44d6c660ba704ad326858053c25ee; domain=.recurly.local; path=/; HttpOnly
204
211
  body: |
205
212
  <?xml version="1.0" encoding="UTF-8"?>
206
213
  <subscription>
207
- <id>subscription-create-1301881900</id>
208
- <account_code>subscription-create-1301881900</account_code>
214
+ <id>subscription-create-1296674173</id>
215
+ <account_code>subscription-create-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:02:47Z</activated_at>
222
+ <total_amount_in_cents type="integer">1000</total_amount_in_cents>
223
+ <activated_at type="datetime">2011-02-03T22:21:26Z</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:02:47Z</current_period_started_at>
221
- <current_period_ends_at type="datetime">2011-05-21T18:02:47Z</current_period_ends_at>
226
+ <current_period_started_at type="datetime">2011-02-03T22:21:26Z</current_period_started_at>
227
+ <current_period_ends_at type="datetime">2011-03-03T22:21:26Z</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">
@@ -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-find-1301881900</account-code>
9
+ <account-code>subscription-find-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-find-1301881900
36
+ - http://litle-test.recurly.local:3000/accounts/subscription-find-1296674173
41
37
  x-runtime:
42
- - "261"
38
+ - "654"
43
39
  content-type:
44
40
  - application/xml; charset=utf-8
45
41
  content-length:
46
42
  - "589"
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:02:33 GMT
46
+ - Thu, 03 Feb 2011 22:21:09 GMT
51
47
  connection:
52
48
  - close
53
49
  set-cookie:
54
- - _recurly_session=5ff916aabf90abc2a5154cc692963d56; domain=.recurly.local; path=/; HttpOnly
50
+ - account_credentials=1ed644add234ec0c929ac7016511e1c0c92e709945cc4748158762995e7db2711668dc720b144907074265e82e15723d83e4f414320590c098665ba254029315%3A%3A; domain=.recurly.local; path=/
51
+ - ""
52
+ - _recurly_session=839f459b9163ca285bdd42fb48098300; domain=.recurly.local; path=/; HttpOnly
55
53
  body: |
56
54
  <?xml version="1.0" encoding="UTF-8"?>
57
55
  <account>
58
- <id>subscription-find-1301881900</id>
59
- <account_code>subscription-find-1301881900</account_code>
56
+ <id>subscription-find-1296674173</id>
57
+ <account_code>subscription-find-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>58db3233151b40d6a71a4f4478a20012</hosted_login_token>
68
- <created_at type="datetime">2011-04-21T18:02:33Z</created_at>
65
+ <hosted_login_token>2241725315f5413abbf3993d8ad81752</hosted_login_token>
66
+ <created_at type="datetime">2011-02-03T22:21:09Z</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
- - "229"
93
+ - "207"
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:02:35 GMT
105
+ - Thu, 03 Feb 2011 22:21:11 GMT
108
106
  connection:
109
107
  - close
110
108
  set-cookie:
111
- - _recurly_session=874163bfac20cb5057b117ad359367c4; domain=.recurly.local; path=/; HttpOnly
109
+ - _recurly_session=aa8c2754d4d0a194f5bd9c8291245526; 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-find-1301881900/subscription.xml
141
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/subscription-find-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-find-1301881900</account-code>
148
+ <account-code>subscription-find-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-find-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>2241725315f5413abbf3993d8ad81752</hosted-login-token>
159
+ <created-at type="datetime">2011-02-03T22:21:09Z</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-find-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>58db3233151b40d6a71a4f4478a20012</hosted-login-token>
166
- <created-at type="datetime">2011-04-21T18:02:33Z</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
- - "3068"
198
+ - "4320"
192
199
  content-type:
193
200
  - application/xml; charset=utf-8
194
201
  content-length:
195
- - "965"
202
+ - "904"
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:02:39 GMT
206
+ - Thu, 03 Feb 2011 22:21:17 GMT
200
207
  connection:
201
208
  - close
202
209
  set-cookie:
203
- - _recurly_session=3701173629e3bb791c0e8eaf0f0c938d; domain=.recurly.local; path=/; HttpOnly
210
+ - _recurly_session=333314c1d174a6e3c8f48fb77d7e9355; domain=.recurly.local; path=/; HttpOnly
204
211
  body: |
205
212
  <?xml version="1.0" encoding="UTF-8"?>
206
213
  <subscription>
207
- <id>subscription-find-1301881900</id>
208
- <account_code>subscription-find-1301881900</account_code>
214
+ <id>subscription-find-1296674173</id>
215
+ <account_code>subscription-find-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:02:37Z</activated_at>
222
+ <total_amount_in_cents type="integer">1000</total_amount_in_cents>
223
+ <activated_at type="datetime">2011-02-03T22:21:13Z</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:02:37Z</current_period_started_at>
221
- <current_period_ends_at type="datetime">2011-05-21T18:02:37Z</current_period_ends_at>
226
+ <current_period_started_at type="datetime">2011-02-03T22:21:13Z</current_period_started_at>
227
+ <current_period_ends_at type="datetime">2011-03-03T22:21:13Z</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-find-1301881900/subscription.xml
238
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/subscription-find-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
+ - "248"
252
258
  content-type:
253
259
  - application/xml; charset=utf-8
254
260
  etag:
255
- - "\"bed40c4d16d9e9554e285c7fe6b06d9a\""
261
+ - "\"620ca7af70a86ac2e66fc9ca7eaa9d0d\""
256
262
  cache-control:
257
263
  - private, max-age=0, must-revalidate
258
264
  content-length:
259
- - "965"
265
+ - "904"
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:02:41 GMT
269
+ - Thu, 03 Feb 2011 22:21:19 GMT
264
270
  connection:
265
271
  - close
266
272
  set-cookie:
267
- - _recurly_session=cd23df3f518af8632c9e47070f6646ed; domain=.recurly.local; path=/; HttpOnly
273
+ - _recurly_session=1baae3237b02aad2fbe58c9ac1938b3d; domain=.recurly.local; path=/; HttpOnly
268
274
  body: |
269
275
  <?xml version="1.0" encoding="UTF-8"?>
270
276
  <subscription>
271
- <id>subscription-find-1301881900</id>
272
- <account_code>subscription-find-1301881900</account_code>
277
+ <id>subscription-find-1296674173</id>
278
+ <account_code>subscription-find-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:02:37Z</activated_at>
285
+ <total_amount_in_cents type="integer">1000</total_amount_in_cents>
286
+ <activated_at type="datetime">2011-02-03T22:21:13Z</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:02:37Z</current_period_started_at>
285
- <current_period_ends_at type="datetime">2011-05-21T18:02:37Z</current_period_ends_at>
289
+ <current_period_started_at type="datetime">2011-02-03T22:21:13Z</current_period_started_at>
290
+ <current_period_ends_at type="datetime">2011-03-03T22:21:13Z</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">