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,40 +2,42 @@
2
2
  - !ruby/struct:VCR::HTTPInteraction
3
3
  request: !ruby/struct:VCR::Request
4
4
  method: :get
5
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/company/plans/paid.xml
5
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/company/plans/paid.xml
6
6
  body:
7
7
  headers:
8
+ authorization:
9
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
8
10
  accept:
9
11
  - application/xml
12
+ accept-encoding:
13
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
+ user-agent:
15
+ - Ruby
10
16
  connection:
11
17
  - close
12
- authorization:
13
- - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
14
18
  response: !ruby/struct:VCR::Response
15
19
  status: !ruby/struct:VCR::ResponseStatus
16
20
  code: 200
17
- message: OK
21
+ message: "OK "
18
22
  headers:
19
- x-ua-compatible:
20
- - IE=Edge
21
- etag:
22
- - "\"47a9e8e85691ef0600a2dd39f113a21e\""
23
- connection:
24
- - close
23
+ x-runtime:
24
+ - "200"
25
25
  content-type:
26
26
  - application/xml; charset=utf-8
27
- x-runtime:
28
- - "15"
29
- date:
30
- - Sat, 08 Jan 2011 08:05:11 GMT
31
- server:
32
- - nginx/0.8.53
33
- content-length:
34
- - "1564"
35
- set-cookie:
36
- - _recurly_session=bc77fef2a09ee2d45e86105cdb87780b; domain=.recurly.com; path=/; secure; HttpOnly
27
+ etag:
28
+ - "\"70b5c605373b1a4346a2d7ed46048dc4\""
37
29
  cache-control:
38
30
  - private, max-age=0, must-revalidate
31
+ content-length:
32
+ - "1150"
33
+ server:
34
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
35
+ date:
36
+ - Thu, 03 Feb 2011 22:20:42 GMT
37
+ connection:
38
+ - close
39
+ set-cookie:
40
+ - _recurly_session=0b7df87b61e0695c5a443cd31c295598; domain=.recurly.local; path=/; HttpOnly
39
41
  body: |
40
42
  <?xml version="1.0" encoding="UTF-8"?>
41
43
  <plan>
@@ -44,7 +46,7 @@
44
46
  <description></description>
45
47
  <success_url></success_url>
46
48
  <cancel_url></cancel_url>
47
- <created_at type="datetime">2010-09-19T00:56:05Z</created_at>
49
+ <created_at type="datetime">2011-02-02T21:02:59Z</created_at>
48
50
  <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
49
51
  <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
50
52
  <plan_interval_length type="integer">1</plan_interval_length>
@@ -59,69 +61,59 @@
59
61
  <plan_interval_unit>months</plan_interval_unit>
60
62
  <trial_interval_length type="integer">0</trial_interval_length>
61
63
  <trial_interval_unit>months</trial_interval_unit>
62
- <created_at type="datetime">2010-12-10T19:19:03Z</created_at>
64
+ <created_at type="datetime">2011-02-02T21:02:59Z</created_at>
63
65
  </latest_version>
64
- <add_ons type="collection">
65
- <add_on>
66
- <add_on_code>special</add_on_code>
67
- <default_unit_amount_in_cents>1000</default_unit_amount_in_cents>
68
- <default_quantity>1</default_quantity>
69
- </add_on>
70
- <add_on>
71
- <add_on_code>special2</add_on_code>
72
- <default_unit_amount_in_cents>1500</default_unit_amount_in_cents>
73
- <default_quantity>1</default_quantity>
74
- </add_on>
75
- </add_ons>
76
66
  </plan>
77
67
 
78
68
  http_version: "1.1"
79
69
  - !ruby/struct:VCR::HTTPInteraction
80
70
  request: !ruby/struct:VCR::Request
81
71
  method: :get
82
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/company/plans/trial.xml
72
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/company/plans/trial.xml
83
73
  body:
84
74
  headers:
75
+ authorization:
76
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
85
77
  accept:
86
78
  - application/xml
79
+ accept-encoding:
80
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
81
+ user-agent:
82
+ - Ruby
87
83
  connection:
88
84
  - close
89
- authorization:
90
- - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
91
85
  response: !ruby/struct:VCR::Response
92
86
  status: !ruby/struct:VCR::ResponseStatus
93
87
  code: 200
94
- message: OK
88
+ message: "OK "
95
89
  headers:
96
- x-ua-compatible:
97
- - IE=Edge
98
- etag:
99
- - "\"d407cea7e325b47787bbd552110eb51a\""
100
- connection:
101
- - close
90
+ x-runtime:
91
+ - "200"
102
92
  content-type:
103
93
  - application/xml; charset=utf-8
104
- x-runtime:
105
- - "13"
106
- date:
107
- - Sat, 08 Jan 2011 08:05:12 GMT
108
- server:
109
- - nginx/0.8.53
110
- content-length:
111
- - "1164"
112
- set-cookie:
113
- - _recurly_session=cfe0d571ca87f8b967cfae824aa875ad; domain=.recurly.com; path=/; secure; HttpOnly
94
+ etag:
95
+ - "\"1c3543a74edbf6c1e0257022eb26ce10\""
114
96
  cache-control:
115
97
  - private, max-age=0, must-revalidate
98
+ content-length:
99
+ - "1152"
100
+ server:
101
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
102
+ date:
103
+ - Thu, 03 Feb 2011 22:20:44 GMT
104
+ connection:
105
+ - close
106
+ set-cookie:
107
+ - _recurly_session=429b4f6957e2b914f097ad7073e0077e; domain=.recurly.local; path=/; HttpOnly
116
108
  body: |
117
109
  <?xml version="1.0" encoding="UTF-8"?>
118
110
  <plan>
119
111
  <plan_code>trial</plan_code>
120
112
  <name>Trial</name>
121
- <description>a trial plan</description>
113
+ <description></description>
122
114
  <success_url></success_url>
123
115
  <cancel_url></cancel_url>
124
- <created_at type="datetime">2010-09-18T07:29:06Z</created_at>
116
+ <created_at type="datetime">2011-02-02T21:10:36Z</created_at>
125
117
  <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
126
118
  <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
127
119
  <plan_interval_length type="integer">1</plan_interval_length>
@@ -136,7 +128,7 @@
136
128
  <plan_interval_unit>months</plan_interval_unit>
137
129
  <trial_interval_length type="integer">1</trial_interval_length>
138
130
  <trial_interval_unit>months</trial_interval_unit>
139
- <created_at type="datetime">2010-09-18T11:29:08Z</created_at>
131
+ <created_at type="datetime">2011-02-02T21:10:36Z</created_at>
140
132
  </latest_version>
141
133
  </plan>
142
134
 
@@ -144,92 +136,72 @@
144
136
  - !ruby/struct:VCR::HTTPInteraction
145
137
  request: !ruby/struct:VCR::Request
146
138
  method: :get
147
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/company/plans.xml
139
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/company/plans.xml
148
140
  body:
149
141
  headers:
142
+ authorization:
143
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
150
144
  accept:
151
145
  - application/xml
146
+ accept-encoding:
147
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
148
+ user-agent:
149
+ - Ruby
152
150
  connection:
153
151
  - close
154
- authorization:
155
- - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
156
152
  response: !ruby/struct:VCR::Response
157
153
  status: !ruby/struct:VCR::ResponseStatus
158
154
  code: 200
159
- message: OK
155
+ message: "OK "
160
156
  headers:
161
- x-ua-compatible:
162
- - IE=Edge
163
- etag:
164
- - "\"5f359230a335e926f7f591dcff65cdd2\""
165
- connection:
166
- - close
157
+ x-runtime:
158
+ - "209"
167
159
  content-type:
168
160
  - application/xml; charset=utf-8
169
- x-runtime:
170
- - "16"
171
- date:
172
- - Sat, 08 Jan 2011 08:05:13 GMT
173
- server:
174
- - nginx/0.8.53
175
- content-length:
176
- - "6675"
177
- set-cookie:
178
- - _recurly_session=1a4383290f4c6514932ab9c47d7960c8; domain=.recurly.com; path=/; secure; HttpOnly
161
+ etag:
162
+ - "\"5877ae9ad610a0b3b7b2b4c310440d4c\""
179
163
  cache-control:
180
164
  - private, max-age=0, must-revalidate
165
+ content-length:
166
+ - "4464"
167
+ server:
168
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
169
+ date:
170
+ - Thu, 03 Feb 2011 22:20:46 GMT
171
+ connection:
172
+ - close
173
+ set-cookie:
174
+ - _recurly_session=7e9e5159e6949b9b8f3d61470737dd58; domain=.recurly.local; path=/; HttpOnly
181
175
  body: |
182
176
  <?xml version="1.0" encoding="UTF-8"?>
183
177
  <plans type="array">
184
178
  <plan>
185
- <plan_code>d00d</plan_code>
186
- <name>d00d</name>
179
+ <plan_code>gold</plan_code>
180
+ <name>Gold</name>
187
181
  <description></description>
188
- <created_at type="datetime">2010-09-19T02:12:34Z</created_at>
189
- <unit_amount_in_cents type="integer">0</unit_amount_in_cents>
190
- <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
182
+ <created_at type="datetime">2011-02-01T19:28:50Z</created_at>
183
+ <unit_amount_in_cents type="integer">1200</unit_amount_in_cents>
184
+ <setup_fee_in_cents type="integer">2000</setup_fee_in_cents>
191
185
  <plan_interval_length type="integer">1</plan_interval_length>
192
186
  <plan_interval_unit>months</plan_interval_unit>
193
187
  <trial_interval_length type="integer">0</trial_interval_length>
194
188
  <trial_interval_unit>days</trial_interval_unit>
195
189
  <latest_version depreciated="true">
196
190
  <version type="integer">1</version>
197
- <unit_amount_in_cents type="integer">0</unit_amount_in_cents>
198
- <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
191
+ <unit_amount_in_cents type="integer">1200</unit_amount_in_cents>
192
+ <setup_fee_in_cents type="integer">2000</setup_fee_in_cents>
199
193
  <plan_interval_length type="integer">1</plan_interval_length>
200
194
  <plan_interval_unit>months</plan_interval_unit>
201
195
  <trial_interval_length type="integer">0</trial_interval_length>
202
196
  <trial_interval_unit>days</trial_interval_unit>
203
- <created_at type="datetime">2010-09-19T02:12:34Z</created_at>
197
+ <created_at type="datetime">2011-02-01T19:28:50Z</created_at>
204
198
  </latest_version>
205
199
  </plan>
206
200
  <plan>
207
201
  <plan_code>paid</plan_code>
208
202
  <name>Paid</name>
209
203
  <description></description>
210
- <created_at type="datetime">2010-09-19T00:56:05Z</created_at>
211
- <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
212
- <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
213
- <plan_interval_length type="integer">1</plan_interval_length>
214
- <plan_interval_unit>months</plan_interval_unit>
215
- <trial_interval_length type="integer">0</trial_interval_length>
216
- <trial_interval_unit>months</trial_interval_unit>
217
- <latest_version depreciated="true">
218
- <version type="integer">1</version>
219
- <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
220
- <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
221
- <plan_interval_length type="integer">1</plan_interval_length>
222
- <plan_interval_unit>months</plan_interval_unit>
223
- <trial_interval_length type="integer">0</trial_interval_length>
224
- <trial_interval_unit>months</trial_interval_unit>
225
- <created_at type="datetime">2010-12-10T19:19:03Z</created_at>
226
- </latest_version>
227
- </plan>
228
- <plan>
229
- <plan_code>regular</plan_code>
230
- <name>Regular</name>
231
- <description></description>
232
- <created_at type="datetime">2010-09-18T11:15:35Z</created_at>
204
+ <created_at type="datetime">2011-02-02T21:02:59Z</created_at>
233
205
  <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
234
206
  <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
235
207
  <plan_interval_length type="integer">1</plan_interval_length>
@@ -244,36 +216,14 @@
244
216
  <plan_interval_unit>months</plan_interval_unit>
245
217
  <trial_interval_length type="integer">0</trial_interval_length>
246
218
  <trial_interval_unit>months</trial_interval_unit>
247
- <created_at type="datetime">2010-09-18T11:15:35Z</created_at>
248
- </latest_version>
249
- </plan>
250
- <plan>
251
- <plan_code>someplan2</plan_code>
252
- <name>Some other test plan</name>
253
- <description></description>
254
- <created_at type="datetime">2010-09-19T02:15:41Z</created_at>
255
- <unit_amount_in_cents type="integer">0</unit_amount_in_cents>
256
- <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
257
- <plan_interval_length type="integer">1</plan_interval_length>
258
- <plan_interval_unit>months</plan_interval_unit>
259
- <trial_interval_length type="integer">0</trial_interval_length>
260
- <trial_interval_unit>days</trial_interval_unit>
261
- <latest_version depreciated="true">
262
- <version type="integer">1</version>
263
- <unit_amount_in_cents type="integer">0</unit_amount_in_cents>
264
- <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
265
- <plan_interval_length type="integer">1</plan_interval_length>
266
- <plan_interval_unit>months</plan_interval_unit>
267
- <trial_interval_length type="integer">0</trial_interval_length>
268
- <trial_interval_unit>days</trial_interval_unit>
269
- <created_at type="datetime">2010-09-19T02:15:41Z</created_at>
219
+ <created_at type="datetime">2011-02-02T21:02:59Z</created_at>
270
220
  </latest_version>
271
221
  </plan>
272
222
  <plan>
273
223
  <plan_code>test</plan_code>
274
224
  <name>Test Plan</name>
275
225
  <description></description>
276
- <created_at type="datetime">2010-09-19T01:31:33Z</created_at>
226
+ <created_at type="datetime">2011-02-02T21:10:47Z</created_at>
277
227
  <unit_amount_in_cents type="integer">200</unit_amount_in_cents>
278
228
  <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
279
229
  <plan_interval_length type="integer">1</plan_interval_length>
@@ -288,14 +238,14 @@
288
238
  <plan_interval_unit>months</plan_interval_unit>
289
239
  <trial_interval_length type="integer">0</trial_interval_length>
290
240
  <trial_interval_unit>months</trial_interval_unit>
291
- <created_at type="datetime">2010-09-19T01:36:06Z</created_at>
241
+ <created_at type="datetime">2011-02-02T21:10:51Z</created_at>
292
242
  </latest_version>
293
243
  </plan>
294
244
  <plan>
295
245
  <plan_code>trial</plan_code>
296
246
  <name>Trial</name>
297
- <description>a trial plan</description>
298
- <created_at type="datetime">2010-09-18T07:29:06Z</created_at>
247
+ <description></description>
248
+ <created_at type="datetime">2011-02-02T21:10:36Z</created_at>
299
249
  <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
300
250
  <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
301
251
  <plan_interval_length type="integer">1</plan_interval_length>
@@ -310,7 +260,7 @@
310
260
  <plan_interval_unit>months</plan_interval_unit>
311
261
  <trial_interval_length type="integer">1</trial_interval_length>
312
262
  <trial_interval_unit>months</trial_interval_unit>
313
- <created_at type="datetime">2010-09-18T11:29:08Z</created_at>
263
+ <created_at type="datetime">2011-02-02T21:10:36Z</created_at>
314
264
  </latest_version>
315
265
  </plan>
316
266
  </plans>
@@ -2,60 +2,62 @@
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/company/plans.xml
5
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/company/plans.xml
6
6
  body: |
7
7
  <?xml version="1.0" encoding="UTF-8"?>
8
8
  <plan>
9
- <name>Test Plan 1286677585</name>
10
- <plan-code>test_1286677585</plan-code>
11
- <trial-interval-length type="integer">0</trial-interval-length>
9
+ <plan-code>test_1296674173</plan-code>
10
+ <name>Test Plan 1296674173</name>
12
11
  <unit-amount-in-cents type="integer">100</unit-amount-in-cents>
13
- <plan-interval-unit>months</plan-interval-unit>
14
12
  <plan-interval-length type="integer">1</plan-interval-length>
13
+ <plan-interval-unit>months</plan-interval-unit>
14
+ <trial-interval-length type="integer">0</trial-interval-length>
15
15
  <trial-interval-unit>months</trial-interval-unit>
16
16
  </plan>
17
17
 
18
18
  headers:
19
+ authorization:
20
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
21
+ content-type:
22
+ - application/xml
19
23
  accept:
20
24
  - "*/*"
25
+ user-agent:
26
+ - Ruby
21
27
  connection:
22
28
  - close
23
- content-type:
24
- - application/xml
25
- authorization:
26
- - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
27
29
  response: !ruby/struct:VCR::Response
28
30
  status: !ruby/struct:VCR::ResponseStatus
29
31
  code: 201
30
- message: Created
32
+ message: "Created "
31
33
  headers:
34
+ cache-control:
35
+ - no-cache
32
36
  location:
33
- - https://recurlytest3-test.recurly.com/company/plans/test_1286677585
34
- connection:
35
- - close
37
+ - http://litle-test.recurly.local:3000/company/plans/test_1296674173
38
+ x-runtime:
39
+ - "241"
36
40
  content-type:
37
41
  - application/xml; charset=utf-8
38
- x-runtime:
39
- - "29"
40
- date:
41
- - Sat, 08 Jan 2011 08:05:19 GMT
42
- server:
43
- - nginx/0.8.53
44
42
  content-length:
45
43
  - "1175"
44
+ server:
45
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
46
+ date:
47
+ - Thu, 03 Feb 2011 22:21:01 GMT
48
+ connection:
49
+ - close
46
50
  set-cookie:
47
- - _recurly_session=1155ab89075953cb17f10a7013c6ded0; domain=.recurly.com; path=/; secure; HttpOnly
48
- cache-control:
49
- - no-cache
51
+ - _recurly_session=78095201d25b7997c5a4f115c528d8b9; domain=.recurly.local; path=/; HttpOnly
50
52
  body: |
51
53
  <?xml version="1.0" encoding="UTF-8"?>
52
54
  <plan>
53
- <plan_code>test_1286677585</plan_code>
54
- <name>Test Plan 1286677585</name>
55
+ <plan_code>test_1296674173</plan_code>
56
+ <name>Test Plan 1296674173</name>
55
57
  <description></description>
56
58
  <success_url></success_url>
57
59
  <cancel_url></cancel_url>
58
- <created_at type="datetime">2011-01-08T08:05:19Z</created_at>
60
+ <created_at type="datetime">2011-02-03T22:21:01Z</created_at>
59
61
  <unit_amount_in_cents type="integer">100</unit_amount_in_cents>
60
62
  <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
61
63
  <plan_interval_length type="integer">1</plan_interval_length>
@@ -70,7 +72,7 @@
70
72
  <plan_interval_unit>months</plan_interval_unit>
71
73
  <trial_interval_length type="integer">0</trial_interval_length>
72
74
  <trial_interval_unit>months</trial_interval_unit>
73
- <created_at type="datetime">2011-01-08T08:05:19Z</created_at>
75
+ <created_at type="datetime">2011-02-03T22:21:01Z</created_at>
74
76
  </latest_version>
75
77
  </plan>
76
78
 
@@ -78,49 +80,51 @@
78
80
  - !ruby/struct:VCR::HTTPInteraction
79
81
  request: !ruby/struct:VCR::Request
80
82
  method: :get
81
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/company/plans/test_1286677585.xml
83
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/company/plans/test_1296674173.xml
82
84
  body:
83
85
  headers:
86
+ authorization:
87
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
84
88
  accept:
85
89
  - application/xml
90
+ accept-encoding:
91
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
92
+ user-agent:
93
+ - Ruby
86
94
  connection:
87
95
  - close
88
- authorization:
89
- - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
90
96
  response: !ruby/struct:VCR::Response
91
97
  status: !ruby/struct:VCR::ResponseStatus
92
98
  code: 200
93
- message: OK
99
+ message: "OK "
94
100
  headers:
95
- x-ua-compatible:
96
- - IE=Edge
97
- etag:
98
- - "\"bdd05e0d4bd959ef158dfbeabe056a1c\""
99
- connection:
100
- - close
101
+ x-runtime:
102
+ - "204"
101
103
  content-type:
102
104
  - application/xml; charset=utf-8
103
- x-runtime:
104
- - "23"
105
- date:
106
- - Sat, 08 Jan 2011 08:05:20 GMT
107
- server:
108
- - nginx/0.8.53
105
+ etag:
106
+ - "\"849df91f38a22728cb40a45a0e77cddd\""
107
+ cache-control:
108
+ - private, max-age=0, must-revalidate
109
109
  content-length:
110
110
  - "1175"
111
+ server:
112
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
113
+ date:
114
+ - Thu, 03 Feb 2011 22:21:03 GMT
115
+ connection:
116
+ - close
111
117
  set-cookie:
112
- - _recurly_session=0f090924888c7243b10c999264a06bd2; domain=.recurly.com; path=/; secure; HttpOnly
113
- cache-control:
114
- - private, max-age=0, must-revalidate
118
+ - _recurly_session=c677cb9861276bca2f1797f643394bc0; domain=.recurly.local; path=/; HttpOnly
115
119
  body: |
116
120
  <?xml version="1.0" encoding="UTF-8"?>
117
121
  <plan>
118
- <plan_code>test_1286677585</plan_code>
119
- <name>Test Plan 1286677585</name>
122
+ <plan_code>test_1296674173</plan_code>
123
+ <name>Test Plan 1296674173</name>
120
124
  <description></description>
121
125
  <success_url></success_url>
122
126
  <cancel_url></cancel_url>
123
- <created_at type="datetime">2011-01-08T08:05:19Z</created_at>
127
+ <created_at type="datetime">2011-02-03T22:21:01Z</created_at>
124
128
  <unit_amount_in_cents type="integer">100</unit_amount_in_cents>
125
129
  <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
126
130
  <plan_interval_length type="integer">1</plan_interval_length>
@@ -135,7 +139,7 @@
135
139
  <plan_interval_unit>months</plan_interval_unit>
136
140
  <trial_interval_length type="integer">0</trial_interval_length>
137
141
  <trial_interval_unit>months</trial_interval_unit>
138
- <created_at type="datetime">2011-01-08T08:05:19Z</created_at>
142
+ <created_at type="datetime">2011-02-03T22:21:01Z</created_at>
139
143
  </latest_version>
140
144
  </plan>
141
145
 
@@ -143,71 +147,75 @@
143
147
  - !ruby/struct:VCR::HTTPInteraction
144
148
  request: !ruby/struct:VCR::Request
145
149
  method: :delete
146
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/company/plans/test_1286677585.xml
150
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/company/plans/test_1296674173.xml
147
151
  body:
148
152
  headers:
153
+ authorization:
154
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
149
155
  accept:
150
156
  - application/xml
157
+ user-agent:
158
+ - Ruby
151
159
  connection:
152
160
  - close
153
- authorization:
154
- - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
155
161
  response: !ruby/struct:VCR::Response
156
162
  status: !ruby/struct:VCR::ResponseStatus
157
163
  code: 200
158
- message: OK
164
+ message: "OK "
159
165
  headers:
160
- x-ua-compatible:
161
- - IE=Edge
162
- connection:
163
- - close
166
+ cache-control:
167
+ - no-cache
168
+ x-runtime:
169
+ - "263"
164
170
  content-type:
165
171
  - application/xml; charset=utf-8
166
- x-runtime:
167
- - "27"
168
- date:
169
- - Sat, 08 Jan 2011 08:05:21 GMT
170
- server:
171
- - nginx/0.8.53
172
172
  content-length:
173
173
  - "1"
174
+ server:
175
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
176
+ date:
177
+ - Thu, 03 Feb 2011 22:21:05 GMT
178
+ connection:
179
+ - close
174
180
  set-cookie:
175
- - _recurly_session=29a565fa989fb1b58ea844b9f47e04ae; domain=.recurly.com; path=/; secure; HttpOnly
176
- cache-control:
177
- - no-cache
181
+ - _recurly_session=234ace3f7cbd18aa9ce06a3c30a08685; domain=.recurly.local; path=/; HttpOnly
178
182
  body: " "
179
183
  http_version: "1.1"
180
184
  - !ruby/struct:VCR::HTTPInteraction
181
185
  request: !ruby/struct:VCR::Request
182
186
  method: :get
183
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/company/plans/test_1286677585.xml
187
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/company/plans/test_1296674173.xml
184
188
  body:
185
189
  headers:
190
+ authorization:
191
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
186
192
  accept:
187
193
  - application/xml
194
+ accept-encoding:
195
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
196
+ user-agent:
197
+ - Ruby
188
198
  connection:
189
199
  - close
190
- authorization:
191
- - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
192
200
  response: !ruby/struct:VCR::Response
193
201
  status: !ruby/struct:VCR::ResponseStatus
194
202
  code: 404
195
- message: Not Found
203
+ message: "Not Found "
196
204
  headers:
197
- connection:
198
- - close
205
+ cache-control:
206
+ - no-cache
199
207
  content-type:
200
208
  - application/xml; charset=utf-8
201
- date:
202
- - Sat, 08 Jan 2011 08:05:21 GMT
203
- server:
204
- - nginx/0.8.53
205
209
  content-length:
206
210
  - "90"
211
+ server:
212
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
213
+ date:
214
+ - Thu, 03 Feb 2011 22:21:07 GMT
215
+ connection:
216
+ - close
207
217
  set-cookie:
208
- - _recurly_session=8e0efd34ab44a9263de0494f6640bed1; domain=.recurly.com; path=/; secure; HttpOnly
209
- cache-control:
210
- - no-cache
218
+ - _recurly_session=f3e2b534bf89931ddddb9c231594c4b6; domain=.recurly.local; path=/; HttpOnly
211
219
  body: |
212
220
  <?xml version="1.0" encoding="UTF-8"?>
213
221
  <errors>