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>subscription-cancel-1287455769</account-code>
9
+ <account-code>subscription-cancel-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/subscription-cancel-1287455769
33
- connection:
34
- - close
36
+ - http://litle-test.recurly.local:3000/accounts/subscription-cancel-1296674173
37
+ x-runtime:
38
+ - "778"
35
39
  content-type:
36
40
  - application/xml; charset=utf-8
37
- x-runtime:
38
- - "345"
39
- date:
40
- - Sat, 08 Jan 2011 08:05:49 GMT
41
- server:
42
- - nginx/0.8.53
43
41
  content-length:
44
42
  - "593"
43
+ server:
44
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
45
+ date:
46
+ - Thu, 03 Feb 2011 22:22:39 GMT
47
+ connection:
48
+ - close
45
49
  set-cookie:
46
- - account_credentials=75b2b4515ac58c26f6e5f14d5940657ffbd3a1b36366ce885bbac09ec8b73317355caab5435d0fafce5ea2f5f55a924b7f36417b22e54342db2cd746a1ed470a%3A%3A; domain=.recurly.com; path=/
50
+ - account_credentials=673c74384e930f4d357ed898314880c9093ac21855b97eb12c243957e08327e7659fefc70b2f113e702a5b1fc8691366e0976fd06a9c9670ab11f9cbc9cc819a%3A%3A; domain=.recurly.local; path=/
47
51
  - ""
48
- - _recurly_session=61020974d1979727b5ce89b65c281283; domain=.recurly.com; path=/; secure; HttpOnly
49
- cache-control:
50
- - no-cache
52
+ - _recurly_session=b5aab1c2f9ac092304d4290b8ecd6e8d; domain=.recurly.local; path=/; HttpOnly
51
53
  body: |
52
54
  <?xml version="1.0" encoding="UTF-8"?>
53
55
  <account>
54
- <id>subscription-cancel-1287455769</id>
55
- <account_code>subscription-cancel-1287455769</account_code>
56
+ <id>subscription-cancel-1296674173</id>
57
+ <account_code>subscription-cancel-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>956adb059d6b4d4aa0de705d7fed9095</hosted_login_token>
64
- <created_at type="datetime">2011-01-08T08:05:49Z</created_at>
65
+ <hosted_login_token>94a92eac78b048d4a1b57166773baf21</hosted_login_token>
66
+ <created_at type="datetime">2011-02-03T22:22:39Z</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
+ - "259"
92
94
  content-type:
93
95
  - application/xml; charset=utf-8
94
- x-runtime:
95
- - "14"
96
- date:
97
- - Sat, 08 Jan 2011 08:05:50 GMT
98
- server:
99
- - nginx/0.8.53
100
- content-length:
101
- - "1564"
102
- set-cookie:
103
- - _recurly_session=ef632ac70eb5c2c09a4d772705ebadff; 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:22:41 GMT
106
+ connection:
107
+ - close
108
+ set-cookie:
109
+ - _recurly_session=d5cb93626e1975024240939e16c4a8b3; 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/subscription-cancel-1287455769/subscription.xml
141
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/subscription-cancel-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:49Z</created-at>
157
- <hosted-login-token>956adb059d6b4d4aa0de705d7fed9095</hosted-login-token>
158
- <company-name>Recurly Ruby Gem</company-name>
159
- <account-code>subscription-cancel-1287455769</account-code>
160
- <closed type="boolean">false</closed>
161
- <username type="yaml" nil="true"></username>
162
- <id>subscription-cancel-1287455769</id>
148
+ <account-code>subscription-cancel-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>subscription-cancel-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>94a92eac78b048d4a1b57166773baf21</hosted-login-token>
159
+ <created-at type="datetime">2011-02-03T22:22:39Z</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
+ - "4475"
203
199
  content-type:
204
200
  - application/xml; charset=utf-8
205
- x-runtime:
206
- - "479"
207
- date:
208
- - Sat, 08 Jan 2011 08:05:51 GMT
209
- server:
210
- - nginx/0.8.53
211
201
  content-length:
212
202
  - "908"
203
+ server:
204
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
205
+ date:
206
+ - Thu, 03 Feb 2011 22:22:48 GMT
207
+ connection:
208
+ - close
213
209
  set-cookie:
214
- - _recurly_session=26e82bf12e5e5735a24131e169958acb; domain=.recurly.com; path=/; secure; HttpOnly
215
- cache-control:
216
- - no-cache
210
+ - _recurly_session=9bded1786aa46bda9c976596ff660c19; domain=.recurly.local; path=/; HttpOnly
217
211
  body: |
218
212
  <?xml version="1.0" encoding="UTF-8"?>
219
213
  <subscription>
220
- <id>subscription-cancel-1287455769</id>
221
- <account_code>subscription-cancel-1287455769</account_code>
214
+ <id>subscription-cancel-1296674173</id>
215
+ <account_code>subscription-cancel-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:51Z</activated_at>
223
+ <activated_at type="datetime">2011-02-03T22:22:44Z</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:51Z</current_period_started_at>
233
- <current_period_ends_at type="datetime">2011-02-08T08:05:51Z</current_period_ends_at>
226
+ <current_period_started_at type="datetime">2011-02-03T22:22:44Z</current_period_started_at>
227
+ <current_period_ends_at type="datetime">2011-03-03T22:22:44Z</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/subscription-cancel-1287455769/subscription.xml
238
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/subscription-cancel-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
- - "\"c99f2f6786927f390a3a93febc23bea5\""
262
- connection:
263
- - close
256
+ x-runtime:
257
+ - "297"
264
258
  content-type:
265
259
  - application/xml; charset=utf-8
266
- x-runtime:
267
- - "27"
268
- date:
269
- - Sat, 08 Jan 2011 08:05:52 GMT
270
- server:
271
- - nginx/0.8.53
260
+ etag:
261
+ - "\"c978ed82a35022ea154debd69286c825\""
262
+ cache-control:
263
+ - private, max-age=0, must-revalidate
272
264
  content-length:
273
265
  - "908"
266
+ server:
267
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
268
+ date:
269
+ - Thu, 03 Feb 2011 22:22:50 GMT
270
+ connection:
271
+ - close
274
272
  set-cookie:
275
- - _recurly_session=458c619fb0cecc7c8426790466077a54; domain=.recurly.com; path=/; secure; HttpOnly
276
- cache-control:
277
- - private, max-age=0, must-revalidate
273
+ - _recurly_session=8f38cfdc035deff5ee6b21987868f1fc; domain=.recurly.local; path=/; HttpOnly
278
274
  body: |
279
275
  <?xml version="1.0" encoding="UTF-8"?>
280
276
  <subscription>
281
- <id>subscription-cancel-1287455769</id>
282
- <account_code>subscription-cancel-1287455769</account_code>
277
+ <id>subscription-cancel-1296674173</id>
278
+ <account_code>subscription-cancel-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:51Z</activated_at>
286
+ <activated_at type="datetime">2011-02-03T22:22:44Z</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:51Z</current_period_started_at>
294
- <current_period_ends_at type="datetime">2011-02-08T08:05:51Z</current_period_ends_at>
289
+ <current_period_started_at type="datetime">2011-02-03T22:22:44Z</current_period_started_at>
290
+ <current_period_ends_at type="datetime">2011-03-03T22:22:44Z</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,45 +298,45 @@
302
298
  - !ruby/struct:VCR::HTTPInteraction
303
299
  request: !ruby/struct:VCR::Request
304
300
  method: :delete
305
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/subscription-cancel-1287455769/subscription.xml
301
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/subscription-cancel-1296674173/subscription.xml
306
302
  body:
307
303
  headers:
304
+ authorization:
305
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
308
306
  accept:
309
307
  - application/xml
308
+ user-agent:
309
+ - Ruby
310
310
  connection:
311
311
  - close
312
- authorization:
313
- - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
314
312
  response: !ruby/struct:VCR::Response
315
313
  status: !ruby/struct:VCR::ResponseStatus
316
314
  code: 200
317
- message: OK
315
+ message: "OK "
318
316
  headers:
319
- x-ua-compatible:
320
- - IE=Edge
321
- etag:
322
- - "\"c2a47b27eb067be6661ade3c1fdeebc7\""
323
- connection:
324
- - close
317
+ x-runtime:
318
+ - "2158"
325
319
  content-type:
326
320
  - application/xml; charset=utf-8
327
- x-runtime:
328
- - "78"
329
- date:
330
- - Sat, 08 Jan 2011 08:05:53 GMT
331
- server:
332
- - nginx/0.8.53
321
+ etag:
322
+ - "\"434d2f20f6aa1b728dd0da5d37d59751\""
323
+ cache-control:
324
+ - private, max-age=0, must-revalidate
333
325
  content-length:
334
326
  - "928"
327
+ server:
328
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
329
+ date:
330
+ - Thu, 03 Feb 2011 22:22:54 GMT
331
+ connection:
332
+ - close
335
333
  set-cookie:
336
- - _recurly_session=13eb0ab29403a70d0a18da70e384612b; domain=.recurly.com; path=/; secure; HttpOnly
337
- cache-control:
338
- - private, max-age=0, must-revalidate
334
+ - _recurly_session=458a19ef74cdc3a2eac6730332fb14f7; domain=.recurly.local; path=/; HttpOnly
339
335
  body: |
340
336
  <?xml version="1.0" encoding="UTF-8"?>
341
337
  <subscription>
342
- <id>subscription-cancel-1287455769</id>
343
- <account_code>subscription-cancel-1287455769</account_code>
338
+ <id>subscription-cancel-1296674173</id>
339
+ <account_code>subscription-cancel-1296674173</account_code>
344
340
  <plan>
345
341
  <plan_code>paid</plan_code>
346
342
  <name>Paid</name>
@@ -348,11 +344,11 @@
348
344
  <state>canceled</state>
349
345
  <quantity type="integer">1</quantity>
350
346
  <total_amount_in_cents type="integer">1000</total_amount_in_cents>
351
- <activated_at type="datetime">2011-01-08T08:05:51Z</activated_at>
352
- <canceled_at type="datetime">2011-01-08T08:05:53Z</canceled_at>
353
- <expires_at type="datetime">2011-02-08T08:05:51Z</expires_at>
354
- <current_period_started_at type="datetime">2011-01-08T08:05:51Z</current_period_started_at>
355
- <current_period_ends_at type="datetime">2011-02-08T08:05:51Z</current_period_ends_at>
347
+ <activated_at type="datetime">2011-02-03T22:22:44Z</activated_at>
348
+ <canceled_at type="datetime">2011-02-03T22:22:52Z</canceled_at>
349
+ <expires_at type="datetime">2011-03-03T22:22:44Z</expires_at>
350
+ <current_period_started_at type="datetime">2011-02-03T22:22:44Z</current_period_started_at>
351
+ <current_period_ends_at type="datetime">2011-03-03T22:22:44Z</current_period_ends_at>
356
352
  <trial_started_at nil="true" type="datetime"></trial_started_at>
357
353
  <trial_ends_at nil="true" type="datetime"></trial_ends_at>
358
354
  <add_ons type="array">
@@ -363,45 +359,47 @@
363
359
  - !ruby/struct:VCR::HTTPInteraction
364
360
  request: !ruby/struct:VCR::Request
365
361
  method: :get
366
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/subscription-cancel-1287455769/subscription.xml
362
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/subscription-cancel-1296674173/subscription.xml
367
363
  body:
368
364
  headers:
365
+ authorization:
366
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
369
367
  accept:
370
368
  - application/xml
369
+ accept-encoding:
370
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
371
+ user-agent:
372
+ - Ruby
371
373
  connection:
372
374
  - close
373
- authorization:
374
- - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
375
375
  response: !ruby/struct:VCR::Response
376
376
  status: !ruby/struct:VCR::ResponseStatus
377
377
  code: 200
378
- message: OK
378
+ message: "OK "
379
379
  headers:
380
- x-ua-compatible:
381
- - IE=Edge
382
- etag:
383
- - "\"c2a47b27eb067be6661ade3c1fdeebc7\""
384
- connection:
385
- - close
380
+ x-runtime:
381
+ - "494"
386
382
  content-type:
387
383
  - application/xml; charset=utf-8
388
- x-runtime:
389
- - "22"
390
- date:
391
- - Sat, 08 Jan 2011 08:05:54 GMT
392
- server:
393
- - nginx/0.8.53
384
+ etag:
385
+ - "\"434d2f20f6aa1b728dd0da5d37d59751\""
386
+ cache-control:
387
+ - private, max-age=0, must-revalidate
394
388
  content-length:
395
389
  - "928"
390
+ server:
391
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
392
+ date:
393
+ - Thu, 03 Feb 2011 22:22:56 GMT
394
+ connection:
395
+ - close
396
396
  set-cookie:
397
- - _recurly_session=7dba24e4f74954e681266a9eb8f8be36; domain=.recurly.com; path=/; secure; HttpOnly
398
- cache-control:
399
- - private, max-age=0, must-revalidate
397
+ - _recurly_session=9e496ab702f98877ac8b12bcc394d1ae; domain=.recurly.local; path=/; HttpOnly
400
398
  body: |
401
399
  <?xml version="1.0" encoding="UTF-8"?>
402
400
  <subscription>
403
- <id>subscription-cancel-1287455769</id>
404
- <account_code>subscription-cancel-1287455769</account_code>
401
+ <id>subscription-cancel-1296674173</id>
402
+ <account_code>subscription-cancel-1296674173</account_code>
405
403
  <plan>
406
404
  <plan_code>paid</plan_code>
407
405
  <name>Paid</name>
@@ -409,11 +407,11 @@
409
407
  <state>canceled</state>
410
408
  <quantity type="integer">1</quantity>
411
409
  <total_amount_in_cents type="integer">1000</total_amount_in_cents>
412
- <activated_at type="datetime">2011-01-08T08:05:51Z</activated_at>
413
- <canceled_at type="datetime">2011-01-08T08:05:53Z</canceled_at>
414
- <expires_at type="datetime">2011-02-08T08:05:51Z</expires_at>
415
- <current_period_started_at type="datetime">2011-01-08T08:05:51Z</current_period_started_at>
416
- <current_period_ends_at type="datetime">2011-02-08T08:05:51Z</current_period_ends_at>
410
+ <activated_at type="datetime">2011-02-03T22:22:44Z</activated_at>
411
+ <canceled_at type="datetime">2011-02-03T22:22:52Z</canceled_at>
412
+ <expires_at type="datetime">2011-03-03T22:22:44Z</expires_at>
413
+ <current_period_started_at type="datetime">2011-02-03T22:22:44Z</current_period_started_at>
414
+ <current_period_ends_at type="datetime">2011-03-03T22:22:44Z</current_period_ends_at>
417
415
  <trial_started_at nil="true" type="datetime"></trial_started_at>
418
416
  <trial_ends_at nil="true" type="datetime"></trial_ends_at>
419
417
  <add_ons type="array">