recurly 0.3.2 → 0.3.3

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

Potentially problematic release.


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

Files changed (86) hide show
  1. data/LICENSE +1 -1
  2. data/README.md +4 -4
  3. data/lib/recurly.rb +8 -1
  4. data/lib/recurly/account.rb +5 -0
  5. data/lib/recurly/coupon.rb +5 -0
  6. data/lib/recurly/rails3/recurly.rake +3 -18
  7. data/lib/recurly/version.rb +1 -1
  8. data/spec/config/{test.yml → test1.yml} +0 -0
  9. data/spec/config/test2.yml +9 -0
  10. data/spec/integration/account_spec.rb +3 -3
  11. data/spec/integration/billing_info_spec.rb +4 -8
  12. data/spec/integration/coupon_spec.rb +49 -0
  13. data/spec/integration/plan_spec.rb +0 -28
  14. data/spec/integration/transaction_spec.rb +3 -3
  15. data/spec/spec_helper.rb +6 -0
  16. data/spec/support/factory.rb +1 -1
  17. data/spec/unit/config_spec.rb +9 -2
  18. data/spec/vcr/account/accept-language-account/{1294473653.yml → 1296674173.yml} +29 -27
  19. data/spec/vcr/account/close/{1294473761.yml → 1296674173.yml} +71 -67
  20. data/spec/vcr/account/create-blank/{1294473761.yml → 1296674173.yml} +20 -18
  21. data/spec/vcr/account/create-duplicate/{1294473761.yml → 1296674173.yml} +42 -38
  22. data/spec/vcr/account/create-min/{1294473761.yml → 1296674173.yml} +26 -24
  23. data/spec/vcr/account/create/{1294473761.yml → 1296674173.yml} +29 -27
  24. data/spec/vcr/account/find/{1294473761.yml → 1296674173.yml} +71 -63
  25. data/spec/vcr/account/list/1296674173.yml +55 -0
  26. data/spec/vcr/account/update/{1294473761.yml → 1296674173.yml} +113 -107
  27. data/spec/vcr/billing/create/{1286682213.yml → 1296690812.yml} +86 -82
  28. data/spec/vcr/billing/destroy/{1286682213.yml → 1296690812.yml} +126 -142
  29. data/spec/vcr/billing/find/{1286682213.yml → 1296690812.yml} +115 -109
  30. data/spec/vcr/billing/update/{1286682213.yml → 1296690812.yml} +119 -115
  31. data/spec/vcr/charge/create/{1287465632.yml → 1296674173.yml} +109 -103
  32. data/spec/vcr/charge/delete-uninvoiced/{1287465632.yml → 1296674173.yml} +129 -117
  33. data/spec/vcr/charge/list-all/{1287465632.yml → 1296674173.yml} +131 -121
  34. data/spec/vcr/charge/list-invoiced/{1287465632.yml → 1296674173.yml} +195 -177
  35. data/spec/vcr/charge/list-pending/{1287465632.yml → 1296674173.yml} +131 -121
  36. data/spec/vcr/charge/lookup/{1287465632.yml → 1296674173.yml} +77 -71
  37. data/spec/vcr/coupon/create/1296688818.yml +183 -0
  38. data/spec/vcr/coupon/create/1296774903.yml +183 -0
  39. data/spec/vcr/coupon/destroy/1296688818.yml +207 -0
  40. data/spec/vcr/coupon/destroy/1296774903.yml +207 -0
  41. data/spec/vcr/credit/create/1296674173.yml +121 -0
  42. data/spec/vcr/credit/delete/1296674173.yml +121 -0
  43. data/spec/vcr/credit/list/1296674173.yml +121 -0
  44. data/spec/vcr/credit/lookup/1296674173.yml +121 -0
  45. data/spec/vcr/invoice/create-no-charges/{1287167121.yml → 1296674173.yml} +79 -75
  46. data/spec/vcr/invoice/create/{1287167121.yml → 1296674173.yml} +141 -130
  47. data/spec/vcr/invoice/list/{1287167121.yml → 1296674173.yml} +196 -180
  48. data/spec/vcr/invoice/lookup/{1287167121.yml → 1296674173.yml} +145 -133
  49. data/spec/vcr/plan/all.yml +86 -136
  50. data/spec/vcr/plan/delete/{1286677585.yml → 1296674173.yml} +87 -79
  51. data/spec/vcr/plan/find.yml +73 -91
  52. data/spec/vcr/plan/update.yml +80 -76
  53. data/spec/vcr/subscription/addons/add/1296674173.yml +225 -0
  54. data/spec/vcr/subscription/addons/create/1296674173.yml +225 -0
  55. data/spec/vcr/subscription/addons/remove/1296674173.yml +225 -0
  56. data/spec/vcr/subscription/cancel-with-code/{1287455769.yml → 1296674173.yml} +201 -201
  57. data/spec/vcr/subscription/cancel/{1287455769.yml → 1296674173.yml} +173 -175
  58. data/spec/vcr/subscription/change1/{1287455769.yml → 1296674173.yml} +172 -174
  59. data/spec/vcr/subscription/change2/{1287455769.yml → 1296674173.yml} +172 -174
  60. data/spec/vcr/subscription/create/{1287455769.yml → 1296674173.yml} +93 -99
  61. data/spec/vcr/subscription/find/{1287455769.yml → 1296674173.yml} +119 -123
  62. data/spec/vcr/subscription/reactivate/{1287455769.yml → 1296674173.yml} +194 -196
  63. data/spec/vcr/subscription/{refund-none/1287455769.yml → refund-full/1296674173.yml} +162 -162
  64. data/spec/vcr/subscription/{refund-full/1287455769.yml → refund-none/1296674173.yml} +162 -162
  65. data/spec/vcr/subscription/refund-partial/{1287455769.yml → 1296674173.yml} +162 -162
  66. data/spec/vcr/transaction/all/{1289558212.yml → 1296674173.yml} +155 -153
  67. data/spec/vcr/transaction/create-no-account/{1289558212.yml → 1296674173.yml} +37 -35
  68. data/spec/vcr/transaction/create-with-account/{1289558212.yml → 1296674173.yml} +91 -87
  69. data/spec/vcr/transaction/list-filled/{1289558212.yml → 1296674173.yml} +200 -190
  70. data/spec/vcr/transaction/list-initial/{1289558212.yml → 1296674173.yml} +92 -88
  71. data/spec/vcr/transaction/lookup/{1289558212.yml → 1296674173.yml} +241 -227
  72. data/spec/vcr/transaction/refund/{1289558212.yml → 1296674173.yml} +119 -115
  73. data/spec/vcr/transaction/void/1296674173.yml +352 -0
  74. metadata +122 -122
  75. data/spec/config/recurly.yml +0 -4
  76. data/spec/vcr/account/accept-language-account/1294473761.yml +0 -68
  77. data/spec/vcr/account/accept-language/1294473117.yml +0 -167
  78. data/spec/vcr/account/list/1294473761.yml +0 -1597
  79. data/spec/vcr/credit/create/1287461400.yml +0 -174
  80. data/spec/vcr/credit/delete/1287461400.yml +0 -249
  81. data/spec/vcr/credit/list/1287461400.yml +0 -306
  82. data/spec/vcr/credit/lookup/1287461400.yml +0 -174
  83. data/spec/vcr/subscription/addons/add/1292420980.yml +0 -479
  84. data/spec/vcr/subscription/addons/create/1292420980.yml +0 -318
  85. data/spec/vcr/subscription/addons/remove/1292420980.yml +0 -448
  86. data/spec/vcr/transaction/void/1289558212.yml +0 -601
@@ -2,57 +2,59 @@
2
2
  - !ruby/struct:VCR::HTTPInteraction
3
3
  request: !ruby/struct:VCR::Request
4
4
  method: :post
5
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/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
- <company-name>Recurly Ruby Gem</company-name>
10
- <account-code type="integer">1287455769</account-code>
9
+ <account-code type="integer">1296674173</account-code>
10
+ <first-name>Verena</first-name>
11
11
  <last-name>Test</last-name>
12
- <accept-language type="yaml" nil="true"></accept-language>
13
12
  <email>verena@test.com</email>
14
- <first-name>Verena</first-name>
13
+ <company-name>Recurly Ruby Gem</company-name>
14
+ <accept-language type="yaml" nil="true"></accept-language>
15
15
  </account>
16
16
 
17
17
  headers:
18
+ authorization:
19
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
20
+ content-type:
21
+ - application/xml
18
22
  accept:
19
23
  - "*/*"
24
+ user-agent:
25
+ - Ruby
20
26
  connection:
21
27
  - close
22
- content-type:
23
- - application/xml
24
- authorization:
25
- - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
26
28
  response: !ruby/struct:VCR::Response
27
29
  status: !ruby/struct:VCR::ResponseStatus
28
30
  code: 201
29
- message: Created
31
+ message: "Created "
30
32
  headers:
33
+ cache-control:
34
+ - no-cache
31
35
  location:
32
- - https://recurlytest3-test.recurly.com/accounts/1287455769
33
- connection:
34
- - close
36
+ - http://litle-test.recurly.local:3000/accounts/1296674173
37
+ x-runtime:
38
+ - "773"
35
39
  content-type:
36
40
  - application/xml; charset=utf-8
37
- x-runtime:
38
- - "343"
39
- date:
40
- - Sat, 08 Jan 2011 08:05:37 GMT
41
- server:
42
- - nginx/0.8.53
43
41
  content-length:
44
42
  - "553"
43
+ server:
44
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
45
+ date:
46
+ - Thu, 03 Feb 2011 22:21:54 GMT
47
+ connection:
48
+ - close
45
49
  set-cookie:
46
- - account_credentials=9fd826ff9cc29244b4c8df3708f5add887d903a7a27a9b15273b3d40f897bc9e2b9e04c8d4e000d32aa0a371b548ccc50e4a895b43713b2d34278d47c11a36e7%3A%3A; domain=.recurly.com; path=/
50
+ - account_credentials=81a602f03c87061f290cc92a3ba3a51f5b92ea1fa65c83b9ff67f73c8dfbdc63bbfd8510ff7f84a5c534f11c865cd2a79c5a7b846149a6308b805d0848adebc0%3A%3A; domain=.recurly.local; path=/
47
51
  - ""
48
- - _recurly_session=f068404146c738acbf3a872ae0ff30f5; domain=.recurly.com; path=/; secure; HttpOnly
49
- cache-control:
50
- - no-cache
52
+ - _recurly_session=cf87907d3b2e9308d2e02c3cb099ef1c; domain=.recurly.local; path=/; HttpOnly
51
53
  body: |
52
54
  <?xml version="1.0" encoding="UTF-8"?>
53
55
  <account>
54
- <id>1287455769</id>
55
- <account_code>1287455769</account_code>
56
+ <id>1296674173</id>
57
+ <account_code>1296674173</account_code>
56
58
  <username></username>
57
59
  <email>verena@test.com</email>
58
60
  <first_name>Verena</first_name>
@@ -60,8 +62,8 @@
60
62
  <company_name>Recurly Ruby Gem</company_name>
61
63
  <balance_in_cents type="integer">0</balance_in_cents>
62
64
  <closed type="boolean">false</closed>
63
- <hosted_login_token>50f8486b12ed4b13b70bde9c938db755</hosted_login_token>
64
- <created_at type="datetime">2011-01-08T08:05:37Z</created_at>
65
+ <hosted_login_token>c4ea13ba80ee4c4397f80234fd237da4</hosted_login_token>
66
+ <created_at type="datetime">2011-02-03T22:21:54Z</created_at>
65
67
  <state>active</state>
66
68
  </account>
67
69
 
@@ -69,40 +71,42 @@
69
71
  - !ruby/struct:VCR::HTTPInteraction
70
72
  request: !ruby/struct:VCR::Request
71
73
  method: :get
72
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/company/plans/paid.xml
74
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/company/plans/paid.xml
73
75
  body:
74
76
  headers:
77
+ authorization:
78
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
75
79
  accept:
76
80
  - application/xml
81
+ accept-encoding:
82
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
83
+ user-agent:
84
+ - Ruby
77
85
  connection:
78
86
  - close
79
- authorization:
80
- - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
81
87
  response: !ruby/struct:VCR::Response
82
88
  status: !ruby/struct:VCR::ResponseStatus
83
89
  code: 200
84
- message: OK
90
+ message: "OK "
85
91
  headers:
86
- x-ua-compatible:
87
- - IE=Edge
88
- etag:
89
- - "\"47a9e8e85691ef0600a2dd39f113a21e\""
90
- connection:
91
- - close
92
+ x-runtime:
93
+ - "255"
92
94
  content-type:
93
95
  - application/xml; charset=utf-8
94
- x-runtime:
95
- - "111"
96
- date:
97
- - Sat, 08 Jan 2011 08:05:38 GMT
98
- server:
99
- - nginx/0.8.53
100
- content-length:
101
- - "1564"
102
- set-cookie:
103
- - _recurly_session=a5022865ac9a7c7c768ca83df0b44b5f; domain=.recurly.com; path=/; secure; HttpOnly
96
+ etag:
97
+ - "\"70b5c605373b1a4346a2d7ed46048dc4\""
104
98
  cache-control:
105
99
  - private, max-age=0, must-revalidate
100
+ content-length:
101
+ - "1150"
102
+ server:
103
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
104
+ date:
105
+ - Thu, 03 Feb 2011 22:21:56 GMT
106
+ connection:
107
+ - close
108
+ set-cookie:
109
+ - _recurly_session=5b4d87ed947e8fc90f14c785d54adc83; domain=.recurly.local; path=/; HttpOnly
106
110
  body: |
107
111
  <?xml version="1.0" encoding="UTF-8"?>
108
112
  <plan>
@@ -111,7 +115,7 @@
111
115
  <description></description>
112
116
  <success_url></success_url>
113
117
  <cancel_url></cancel_url>
114
- <created_at type="datetime">2010-09-19T00:56:05Z</created_at>
118
+ <created_at type="datetime">2011-02-02T21:02:59Z</created_at>
115
119
  <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
116
120
  <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
117
121
  <plan_interval_length type="integer">1</plan_interval_length>
@@ -126,99 +130,89 @@
126
130
  <plan_interval_unit>months</plan_interval_unit>
127
131
  <trial_interval_length type="integer">0</trial_interval_length>
128
132
  <trial_interval_unit>months</trial_interval_unit>
129
- <created_at type="datetime">2010-12-10T19:19:03Z</created_at>
133
+ <created_at type="datetime">2011-02-02T21:02:59Z</created_at>
130
134
  </latest_version>
131
- <add_ons type="collection">
132
- <add_on>
133
- <add_on_code>special</add_on_code>
134
- <default_unit_amount_in_cents>1000</default_unit_amount_in_cents>
135
- <default_quantity>1</default_quantity>
136
- </add_on>
137
- <add_on>
138
- <add_on_code>special2</add_on_code>
139
- <default_unit_amount_in_cents>1500</default_unit_amount_in_cents>
140
- <default_quantity>1</default_quantity>
141
- </add_on>
142
- </add_ons>
143
135
  </plan>
144
136
 
145
137
  http_version: "1.1"
146
138
  - !ruby/struct:VCR::HTTPInteraction
147
139
  request: !ruby/struct:VCR::Request
148
140
  method: :post
149
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/1287455769/subscription.xml
141
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/1296674173/subscription.xml
150
142
  body: |
151
143
  <?xml version="1.0" encoding="UTF-8"?>
152
144
  <subscription>
153
- <quantity type="integer">1</quantity>
154
145
  <plan-code>paid</plan-code>
146
+ <quantity type="integer">1</quantity>
155
147
  <account>
156
- <created-at type="datetime">2011-01-08T08:05:37Z</created-at>
157
- <hosted-login-token>50f8486b12ed4b13b70bde9c938db755</hosted-login-token>
158
- <company-name>Recurly Ruby Gem</company-name>
159
- <account-code>1287455769</account-code>
160
- <closed type="boolean">false</closed>
161
- <username type="yaml" nil="true"></username>
162
- <id>1287455769</id>
148
+ <account-code>1296674173</account-code>
149
+ <first-name>Verena</first-name>
163
150
  <last-name>Test</last-name>
151
+ <email>verena@test.com</email>
152
+ <company-name>Recurly Ruby Gem</company-name>
164
153
  <accept-language type="yaml" nil="true"></accept-language>
154
+ <id>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>c4ea13ba80ee4c4397f80234fd237da4</hosted-login-token>
159
+ <created-at type="datetime">2011-02-03T22:21:54Z</created-at>
160
+ <state>active</state>
165
161
  <billing-info>
166
162
  <address1>123 Test St</address1>
167
163
  <city>San Francisco</city>
164
+ <state>CA</state>
168
165
  <zip>94115</zip>
169
166
  <country>US</country>
170
167
  <credit-card>
171
- <number>1</number>
172
- <month type="integer">1</month>
168
+ <number>4111111111111111</number>
173
169
  <year type="integer">2012</year>
170
+ <month type="integer">2</month>
174
171
  <verification-value>123</verification-value>
175
172
  </credit-card>
176
- <last-name>Test</last-name>
177
173
  <first-name>Verena</first-name>
178
- <state>CA</state>
174
+ <last-name>Test</last-name>
179
175
  </billing-info>
180
- <balance-in-cents type="integer">0</balance-in-cents>
181
- <state>active</state>
182
- <email>verena@test.com</email>
183
- <first-name>Verena</first-name>
184
176
  </account>
185
177
  </subscription>
186
178
 
187
179
  headers:
180
+ authorization:
181
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
182
+ content-type:
183
+ - application/xml
188
184
  accept:
189
185
  - "*/*"
186
+ user-agent:
187
+ - Ruby
190
188
  connection:
191
189
  - close
192
- content-type:
193
- - application/xml
194
- authorization:
195
- - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
196
190
  response: !ruby/struct:VCR::Response
197
191
  status: !ruby/struct:VCR::ResponseStatus
198
192
  code: 201
199
- message: Created
193
+ message: "Created "
200
194
  headers:
201
- connection:
202
- - close
195
+ cache-control:
196
+ - no-cache
197
+ x-runtime:
198
+ - "4302"
203
199
  content-type:
204
200
  - application/xml; charset=utf-8
205
- x-runtime:
206
- - "464"
207
- date:
208
- - Sat, 08 Jan 2011 08:05:39 GMT
209
- server:
210
- - nginx/0.8.53
211
201
  content-length:
212
202
  - "868"
203
+ server:
204
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
205
+ date:
206
+ - Thu, 03 Feb 2011 22:22:03 GMT
207
+ connection:
208
+ - close
213
209
  set-cookie:
214
- - _recurly_session=41a9fa0019a7b74f5bd09621ab817d8f; domain=.recurly.com; path=/; secure; HttpOnly
215
- cache-control:
216
- - no-cache
210
+ - _recurly_session=21d8128d3a1061cdca967b2a3808e528; domain=.recurly.local; path=/; HttpOnly
217
211
  body: |
218
212
  <?xml version="1.0" encoding="UTF-8"?>
219
213
  <subscription>
220
- <id>1287455769</id>
221
- <account_code>1287455769</account_code>
214
+ <id>1296674173</id>
215
+ <account_code>1296674173</account_code>
222
216
  <plan>
223
217
  <plan_code>paid</plan_code>
224
218
  <name>Paid</name>
@@ -226,11 +220,11 @@
226
220
  <state>active</state>
227
221
  <quantity type="integer">1</quantity>
228
222
  <total_amount_in_cents type="integer">1000</total_amount_in_cents>
229
- <activated_at type="datetime">2011-01-08T08:05:39Z</activated_at>
223
+ <activated_at type="datetime">2011-02-03T22:21:59Z</activated_at>
230
224
  <canceled_at nil="true" type="datetime"></canceled_at>
231
225
  <expires_at nil="true" type="datetime"></expires_at>
232
- <current_period_started_at type="datetime">2011-01-08T08:05:39Z</current_period_started_at>
233
- <current_period_ends_at type="datetime">2011-02-08T08:05:39Z</current_period_ends_at>
226
+ <current_period_started_at type="datetime">2011-02-03T22:21:59Z</current_period_started_at>
227
+ <current_period_ends_at type="datetime">2011-03-03T22:21:59Z</current_period_ends_at>
234
228
  <trial_started_at nil="true" type="datetime"></trial_started_at>
235
229
  <trial_ends_at nil="true" type="datetime"></trial_ends_at>
236
230
  <add_ons type="array">
@@ -241,45 +235,47 @@
241
235
  - !ruby/struct:VCR::HTTPInteraction
242
236
  request: !ruby/struct:VCR::Request
243
237
  method: :get
244
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/1287455769/subscription.xml
238
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/1296674173/subscription.xml
245
239
  body:
246
240
  headers:
241
+ authorization:
242
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
247
243
  accept:
248
244
  - application/xml
245
+ accept-encoding:
246
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
247
+ user-agent:
248
+ - Ruby
249
249
  connection:
250
250
  - close
251
- authorization:
252
- - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
253
251
  response: !ruby/struct:VCR::Response
254
252
  status: !ruby/struct:VCR::ResponseStatus
255
253
  code: 200
256
- message: OK
254
+ message: "OK "
257
255
  headers:
258
- x-ua-compatible:
259
- - IE=Edge
260
- etag:
261
- - "\"ed1fa61a72a61ddd7c0b1d0447a800da\""
262
- connection:
263
- - close
256
+ x-runtime:
257
+ - "259"
264
258
  content-type:
265
259
  - application/xml; charset=utf-8
266
- x-runtime:
267
- - "22"
268
- date:
269
- - Sat, 08 Jan 2011 08:05:40 GMT
270
- server:
271
- - nginx/0.8.53
260
+ etag:
261
+ - "\"3dd6c54589143f31b98c723b14b0e9f6\""
262
+ cache-control:
263
+ - private, max-age=0, must-revalidate
272
264
  content-length:
273
265
  - "868"
266
+ server:
267
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
268
+ date:
269
+ - Thu, 03 Feb 2011 22:22:05 GMT
270
+ connection:
271
+ - close
274
272
  set-cookie:
275
- - _recurly_session=3c925afda1662f19db172afe94b012d1; domain=.recurly.com; path=/; secure; HttpOnly
276
- cache-control:
277
- - private, max-age=0, must-revalidate
273
+ - _recurly_session=edab92fa29d654e29d948c8863ac9f74; domain=.recurly.local; path=/; HttpOnly
278
274
  body: |
279
275
  <?xml version="1.0" encoding="UTF-8"?>
280
276
  <subscription>
281
- <id>1287455769</id>
282
- <account_code>1287455769</account_code>
277
+ <id>1296674173</id>
278
+ <account_code>1296674173</account_code>
283
279
  <plan>
284
280
  <plan_code>paid</plan_code>
285
281
  <name>Paid</name>
@@ -287,11 +283,11 @@
287
283
  <state>active</state>
288
284
  <quantity type="integer">1</quantity>
289
285
  <total_amount_in_cents type="integer">1000</total_amount_in_cents>
290
- <activated_at type="datetime">2011-01-08T08:05:39Z</activated_at>
286
+ <activated_at type="datetime">2011-02-03T22:21:59Z</activated_at>
291
287
  <canceled_at nil="true" type="datetime"></canceled_at>
292
288
  <expires_at nil="true" type="datetime"></expires_at>
293
- <current_period_started_at type="datetime">2011-01-08T08:05:39Z</current_period_started_at>
294
- <current_period_ends_at type="datetime">2011-02-08T08:05:39Z</current_period_ends_at>
289
+ <current_period_started_at type="datetime">2011-02-03T22:21:59Z</current_period_started_at>
290
+ <current_period_ends_at type="datetime">2011-03-03T22:21:59Z</current_period_ends_at>
295
291
  <trial_started_at nil="true" type="datetime"></trial_started_at>
296
292
  <trial_ends_at nil="true" type="datetime"></trial_ends_at>
297
293
  <add_ons type="array">
@@ -302,53 +298,53 @@
302
298
  - !ruby/struct:VCR::HTTPInteraction
303
299
  request: !ruby/struct:VCR::Request
304
300
  method: :put
305
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/1287455769/subscription.xml
301
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/1296674173/subscription.xml
306
302
  body: |
307
303
  <?xml version="1.0" encoding="UTF-8"?>
308
304
  <subscription>
309
- <timeframe>now</timeframe>
310
305
  <quantity type="integer">2</quantity>
306
+ <timeframe>now</timeframe>
311
307
  </subscription>
312
308
 
313
309
  headers:
310
+ authorization:
311
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
312
+ content-type:
313
+ - application/xml
314
314
  accept:
315
315
  - "*/*"
316
+ user-agent:
317
+ - Ruby
316
318
  connection:
317
319
  - close
318
- content-type:
319
- - application/xml
320
- authorization:
321
- - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
322
320
  response: !ruby/struct:VCR::Response
323
321
  status: !ruby/struct:VCR::ResponseStatus
324
322
  code: 200
325
- message: OK
323
+ message: "OK "
326
324
  headers:
327
- x-ua-compatible:
328
- - IE=Edge
329
- etag:
330
- - "\"cdb6f8204d09de300f8a69d079d7ee1b\""
331
- connection:
332
- - close
325
+ x-runtime:
326
+ - "4446"
333
327
  content-type:
334
328
  - application/xml; charset=utf-8
335
- x-runtime:
336
- - "343"
337
- date:
338
- - Sat, 08 Jan 2011 08:05:41 GMT
339
- server:
340
- - nginx/0.8.53
329
+ etag:
330
+ - "\"bde67b4b2c3d000efde65b13640c8efe\""
331
+ cache-control:
332
+ - private, max-age=0, must-revalidate
341
333
  content-length:
342
334
  - "868"
335
+ server:
336
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
337
+ date:
338
+ - Thu, 03 Feb 2011 22:22:11 GMT
339
+ connection:
340
+ - close
343
341
  set-cookie:
344
- - _recurly_session=96090bf0a5874c283f90a8a4451cc8c4; domain=.recurly.com; path=/; secure; HttpOnly
345
- cache-control:
346
- - private, max-age=0, must-revalidate
342
+ - _recurly_session=70577d4fab17e3391aa0ab43a3d77ebd; domain=.recurly.local; path=/; HttpOnly
347
343
  body: |
348
344
  <?xml version="1.0" encoding="UTF-8"?>
349
345
  <subscription>
350
- <id>1287455769</id>
351
- <account_code>1287455769</account_code>
346
+ <id>1296674173</id>
347
+ <account_code>1296674173</account_code>
352
348
  <plan>
353
349
  <plan_code>paid</plan_code>
354
350
  <name>Paid</name>
@@ -356,11 +352,11 @@
356
352
  <state>active</state>
357
353
  <quantity type="integer">2</quantity>
358
354
  <total_amount_in_cents type="integer">2000</total_amount_in_cents>
359
- <activated_at type="datetime">2011-01-08T08:05:41Z</activated_at>
355
+ <activated_at type="datetime">2011-02-03T22:22:07Z</activated_at>
360
356
  <canceled_at nil="true" type="datetime"></canceled_at>
361
357
  <expires_at nil="true" type="datetime"></expires_at>
362
- <current_period_started_at type="datetime">2011-01-08T08:05:39Z</current_period_started_at>
363
- <current_period_ends_at type="datetime">2011-02-08T08:05:39Z</current_period_ends_at>
358
+ <current_period_started_at type="datetime">2011-02-03T22:21:59Z</current_period_started_at>
359
+ <current_period_ends_at type="datetime">2011-03-03T22:21:59Z</current_period_ends_at>
364
360
  <trial_started_at nil="true" type="datetime"></trial_started_at>
365
361
  <trial_ends_at nil="true" type="datetime"></trial_ends_at>
366
362
  <add_ons type="array">
@@ -371,45 +367,47 @@
371
367
  - !ruby/struct:VCR::HTTPInteraction
372
368
  request: !ruby/struct:VCR::Request
373
369
  method: :get
374
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/1287455769/subscription.xml
370
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/1296674173/subscription.xml
375
371
  body:
376
372
  headers:
373
+ authorization:
374
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
377
375
  accept:
378
376
  - application/xml
377
+ accept-encoding:
378
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
379
+ user-agent:
380
+ - Ruby
379
381
  connection:
380
382
  - close
381
- authorization:
382
- - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
383
383
  response: !ruby/struct:VCR::Response
384
384
  status: !ruby/struct:VCR::ResponseStatus
385
385
  code: 200
386
- message: OK
386
+ message: "OK "
387
387
  headers:
388
- x-ua-compatible:
389
- - IE=Edge
390
- etag:
391
- - "\"cdb6f8204d09de300f8a69d079d7ee1b\""
392
- connection:
393
- - close
388
+ x-runtime:
389
+ - "263"
394
390
  content-type:
395
391
  - application/xml; charset=utf-8
396
- x-runtime:
397
- - "28"
398
- date:
399
- - Sat, 08 Jan 2011 08:05:42 GMT
400
- server:
401
- - nginx/0.8.53
392
+ etag:
393
+ - "\"bde67b4b2c3d000efde65b13640c8efe\""
394
+ cache-control:
395
+ - private, max-age=0, must-revalidate
402
396
  content-length:
403
397
  - "868"
398
+ server:
399
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
400
+ date:
401
+ - Thu, 03 Feb 2011 22:22:13 GMT
402
+ connection:
403
+ - close
404
404
  set-cookie:
405
- - _recurly_session=db87c304c0dcacb1b987d643d24b372c; domain=.recurly.com; path=/; secure; HttpOnly
406
- cache-control:
407
- - private, max-age=0, must-revalidate
405
+ - _recurly_session=553bd1e4fbec1a847e9015fcca2ba579; domain=.recurly.local; path=/; HttpOnly
408
406
  body: |
409
407
  <?xml version="1.0" encoding="UTF-8"?>
410
408
  <subscription>
411
- <id>1287455769</id>
412
- <account_code>1287455769</account_code>
409
+ <id>1296674173</id>
410
+ <account_code>1296674173</account_code>
413
411
  <plan>
414
412
  <plan_code>paid</plan_code>
415
413
  <name>Paid</name>
@@ -417,11 +415,11 @@
417
415
  <state>active</state>
418
416
  <quantity type="integer">2</quantity>
419
417
  <total_amount_in_cents type="integer">2000</total_amount_in_cents>
420
- <activated_at type="datetime">2011-01-08T08:05:41Z</activated_at>
418
+ <activated_at type="datetime">2011-02-03T22:22:07Z</activated_at>
421
419
  <canceled_at nil="true" type="datetime"></canceled_at>
422
420
  <expires_at nil="true" type="datetime"></expires_at>
423
- <current_period_started_at type="datetime">2011-01-08T08:05:39Z</current_period_started_at>
424
- <current_period_ends_at type="datetime">2011-02-08T08:05:39Z</current_period_ends_at>
421
+ <current_period_started_at type="datetime">2011-02-03T22:21:59Z</current_period_started_at>
422
+ <current_period_ends_at type="datetime">2011-03-03T22:21:59Z</current_period_ends_at>
425
423
  <trial_started_at nil="true" type="datetime"></trial_started_at>
426
424
  <trial_ends_at nil="true" type="datetime"></trial_ends_at>
427
425
  <add_ons type="array">