recurly 0.2.1 → 0.2.2

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 (64) hide show
  1. data/README.md +3 -2
  2. data/lib/recurly/invoice.rb +1 -1
  3. data/lib/recurly/subscription.rb +1 -1
  4. data/lib/recurly/transaction.rb +1 -1
  5. data/lib/recurly/version.rb +1 -1
  6. data/spec/integration/subscription_spec.rb +29 -8
  7. data/spec/vcr/account/close/1286666929.yml +159 -0
  8. data/spec/vcr/account/create-blank/1286666929.yml +49 -0
  9. data/spec/vcr/account/create-duplicate/1286666929.yml +95 -0
  10. data/spec/vcr/account/create-min/1286666929.yml +63 -0
  11. data/spec/vcr/account/create/1286666929.yml +67 -0
  12. data/spec/vcr/account/find/1286666929.yml +122 -0
  13. data/spec/vcr/account/list/1286666929.yml +1565 -0
  14. data/spec/vcr/account/update/1286666929.yml +250 -0
  15. data/spec/vcr/billing/create/1286682213.yml +210 -0
  16. data/spec/vcr/billing/destroy/1286682213.yml +309 -0
  17. data/spec/vcr/billing/find/1286682213.yml +273 -0
  18. data/spec/vcr/billing/update/1286682213.yml +292 -0
  19. data/spec/vcr/charge/create/1286681273.yml +253 -0
  20. data/spec/vcr/charge/list-all/1286681273.yml +302 -0
  21. data/spec/vcr/charge/list-invoiced/1286681273.yml +445 -0
  22. data/spec/vcr/charge/list-pending/1286681273.yml +302 -0
  23. data/spec/vcr/charge/lookup/1286681273.yml +171 -0
  24. data/spec/vcr/credit/create/1286681343.yml +171 -0
  25. data/spec/vcr/credit/list/1286681343.yml +299 -0
  26. data/spec/vcr/credit/lookup/1286681343.yml +171 -0
  27. data/spec/vcr/invoice/create/1286679184.yml +337 -0
  28. data/spec/vcr/invoice/list/1286679184.yml +458 -0
  29. data/spec/vcr/invoice/lookup/1286679184.yml +341 -0
  30. data/spec/vcr/plan/all.yml +306 -0
  31. data/spec/vcr/plan/delete/1286677585.yml +217 -0
  32. data/spec/vcr/plan/find.yml +196 -0
  33. data/spec/vcr/plan/update.yml +197 -0
  34. data/spec/vcr/subscription/cancel/1287036910.yml +401 -0
  35. data/spec/vcr/subscription/cancel/1287037325.yml +401 -0
  36. data/spec/vcr/subscription/cancel/1287037363.yml +401 -0
  37. data/spec/vcr/subscription/change1/1287036910.yml +409 -0
  38. data/spec/vcr/subscription/change1/1287037152.yml +409 -0
  39. data/spec/vcr/subscription/change1/1287037325.yml +409 -0
  40. data/spec/vcr/subscription/change1/1287037363.yml +409 -0
  41. data/spec/vcr/subscription/change2/1287036910.yml +409 -0
  42. data/spec/vcr/subscription/change2/1287037152.yml +283 -0
  43. data/spec/vcr/subscription/change2/1287037325.yml +283 -0
  44. data/spec/vcr/subscription/change2/1287037363.yml +409 -0
  45. data/spec/vcr/subscription/create/1287036910.yml +224 -0
  46. data/spec/vcr/subscription/create/1287037152.yml +224 -0
  47. data/spec/vcr/subscription/create/1287037325.yml +224 -0
  48. data/spec/vcr/subscription/create/1287037363.yml +224 -0
  49. data/spec/vcr/subscription/find/1287036910.yml +283 -0
  50. data/spec/vcr/subscription/find/1287037152.yml +283 -0
  51. data/spec/vcr/subscription/find/1287037325.yml +283 -0
  52. data/spec/vcr/subscription/find/1287037363.yml +283 -0
  53. data/spec/vcr/subscription/refund/1287036910.yml +382 -0
  54. data/spec/vcr/subscription/refund/1287037325.yml +382 -0
  55. data/spec/vcr/subscription/refund/1287037363.yml +382 -0
  56. data/spec/vcr/transaction/all/1286674805.yml +387 -0
  57. data/spec/vcr/transaction/create-no-account/1286674805.yml +91 -0
  58. data/spec/vcr/transaction/create-with-account/1286674805.yml +220 -0
  59. data/spec/vcr/transaction/list-empty/1286674805.yml +212 -0
  60. data/spec/vcr/transaction/list-filled/1286674805.yml +476 -0
  61. data/spec/vcr/transaction/lookup/1286674805.yml +548 -0
  62. data/spec/vcr/transaction/refund/1286674805.yml +220 -0
  63. data/spec/vcr/transaction/void/1286674805.yml +668 -0
  64. metadata +118 -4
@@ -0,0 +1,341 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :post
5
+ uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts.xml
6
+ body: |
7
+ <?xml version="1.0" encoding="UTF-8"?>
8
+ <account>
9
+ <company-name>Recurly Ruby Gem</company-name>
10
+ <account-code>invoice-lookup-1286679184</account-code>
11
+ <last-name>Test</last-name>
12
+ <email>verena@test.com</email>
13
+ <first-name>Verena</first-name>
14
+ </account>
15
+
16
+ headers:
17
+ accept:
18
+ - "*/*"
19
+ connection:
20
+ - close
21
+ content-type:
22
+ - application/xml
23
+ authorization:
24
+ - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
25
+ response: !ruby/struct:VCR::Response
26
+ status: !ruby/struct:VCR::ResponseStatus
27
+ code: 201
28
+ message: Created
29
+ headers:
30
+ location:
31
+ - https://recurlytest3-test.recurly.com/accounts/invoice-lookup-1286679184
32
+ connection:
33
+ - close
34
+ content-type:
35
+ - application/xml; charset=utf-8
36
+ x-runtime:
37
+ - "579"
38
+ date:
39
+ - Thu, 14 Oct 2010 06:16:47 GMT
40
+ server:
41
+ - nginx/0.7.65
42
+ content-length:
43
+ - "583"
44
+ set-cookie:
45
+ - account_credentials=4d41d8bb9063cc0a288bc73b69c88fbfc4381ed5227d45e801df91c0701621193395e6bbf7edefdba1a0282eedf1f371b30c24c981268c99ac718cb9b3c25e87%3A%3A; domain=.recurly.com; path=/; secure; HttpOnly
46
+ - ""
47
+ - _recurly_session=9d2cd6200a892341e151a6b196db592e; domain=.recurly.com; path=/; Secure; HttpOnly
48
+ cache-control:
49
+ - no-cache
50
+ body: |
51
+ <?xml version="1.0" encoding="UTF-8"?>
52
+ <account>
53
+ <id>invoice-lookup-1286679184</id>
54
+ <account_code>invoice-lookup-1286679184</account_code>
55
+ <username></username>
56
+ <email>verena@test.com</email>
57
+ <first_name>Verena</first_name>
58
+ <last_name>Test</last_name>
59
+ <company_name>Recurly Ruby Gem</company_name>
60
+ <balance_in_cents type="integer">0</balance_in_cents>
61
+ <closed type="boolean">false</closed>
62
+ <hosted_login_token>bcbdf30dc884491e81e827921165205d</hosted_login_token>
63
+ <created_at type="datetime">2010-10-14T06:16:47Z</created_at>
64
+ <state>active</state>
65
+ </account>
66
+
67
+ http_version: "1.1"
68
+ - !ruby/struct:VCR::HTTPInteraction
69
+ request: !ruby/struct:VCR::Request
70
+ method: :put
71
+ uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/invoice-lookup-1286679184/billing_info.xml
72
+ body: |
73
+ <?xml version="1.0" encoding="UTF-8"?>
74
+ <billing-info>
75
+ <city>San Francisco</city>
76
+ <address1>123 Test St</address1>
77
+ <zip>94115</zip>
78
+ <account-code>invoice-lookup-1286679184</account-code>
79
+ <country>US</country>
80
+ <credit-card>
81
+ <number>1</number>
82
+ <month type="integer">10</month>
83
+ <year type="integer">2011</year>
84
+ <verification-value>123</verification-value>
85
+ </credit-card>
86
+ <last-name>Test</last-name>
87
+ <first-name>Verena</first-name>
88
+ <state>CA</state>
89
+ </billing-info>
90
+
91
+ headers:
92
+ accept:
93
+ - "*/*"
94
+ connection:
95
+ - close
96
+ content-type:
97
+ - application/xml
98
+ authorization:
99
+ - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
100
+ response: !ruby/struct:VCR::Response
101
+ status: !ruby/struct:VCR::ResponseStatus
102
+ code: 200
103
+ message: OK
104
+ headers:
105
+ x-ua-compatible:
106
+ - IE=Edge
107
+ etag:
108
+ - "\"1138771dc7c5081c6bc8bb437ee0042c\""
109
+ connection:
110
+ - close
111
+ content-type:
112
+ - application/xml; charset=utf-8
113
+ x-runtime:
114
+ - "56"
115
+ date:
116
+ - Thu, 14 Oct 2010 06:16:48 GMT
117
+ server:
118
+ - nginx/0.7.65
119
+ content-length:
120
+ - "639"
121
+ set-cookie:
122
+ - _recurly_session=92468392be076a25401b3da2cfbc1b54; domain=.recurly.com; path=/; Secure; HttpOnly
123
+ cache-control:
124
+ - private, max-age=0, must-revalidate
125
+ body: |
126
+ <?xml version="1.0" encoding="UTF-8"?>
127
+ <billing_info>
128
+ <account_code>invoice-lookup-1286679184</account_code>
129
+ <first_name>Verena</first_name>
130
+ <last_name>Test</last_name>
131
+ <address1>123 Test St</address1>
132
+ <address2></address2>
133
+ <city>San Francisco</city>
134
+ <state>CA</state>
135
+ <country>US</country>
136
+ <zip>94115</zip>
137
+ <phone></phone>
138
+ <vat_number></vat_number>
139
+ <ip_address></ip_address>
140
+ <credit_card>
141
+ <type>bogus</type>
142
+ <last_four>1</last_four>
143
+ <month type="integer">10</month>
144
+ <year type="integer">2011</year>
145
+ </credit_card>
146
+ <updated_at type="datetime">2010-10-14T06:16:48Z</updated_at>
147
+ </billing_info>
148
+
149
+ http_version: "1.1"
150
+ - !ruby/struct:VCR::HTTPInteraction
151
+ request: !ruby/struct:VCR::Request
152
+ method: :post
153
+ uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/invoice-lookup-1286679184/charges.xml
154
+ body: |
155
+ <?xml version="1.0" encoding="UTF-8"?>
156
+ <charge>
157
+ <amount type="float">15.0</amount>
158
+ <description>charge description</description>
159
+ </charge>
160
+
161
+ headers:
162
+ accept:
163
+ - "*/*"
164
+ connection:
165
+ - close
166
+ content-type:
167
+ - application/xml
168
+ authorization:
169
+ - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
170
+ response: !ruby/struct:VCR::Response
171
+ status: !ruby/struct:VCR::ResponseStatus
172
+ code: 201
173
+ message: Created
174
+ headers:
175
+ connection:
176
+ - close
177
+ content-type:
178
+ - application/xml; charset=utf-8
179
+ x-runtime:
180
+ - "60"
181
+ date:
182
+ - Thu, 14 Oct 2010 06:16:48 GMT
183
+ server:
184
+ - nginx/0.7.65
185
+ content-length:
186
+ - "457"
187
+ set-cookie:
188
+ - _recurly_session=accd524b5da1ed3925774550597b58cd; domain=.recurly.com; path=/; Secure; HttpOnly
189
+ cache-control:
190
+ - no-cache
191
+ body: |
192
+ <?xml version="1.0" encoding="UTF-8"?>
193
+ <charge type="charge">
194
+ <id>ac0cc043a9654075a5a68cfebb9a5141</id>
195
+ <account_code>invoice-lookup-1286679184</account_code>
196
+ <amount_in_cents type="integer">1500</amount_in_cents>
197
+ <start_date type="datetime">2010-10-14T06:16:48Z</start_date>
198
+ <end_date nil="true" type="datetime"></end_date>
199
+ <description>charge description</description>
200
+ <created_at type="datetime">2010-10-14T06:16:48Z</created_at>
201
+ </charge>
202
+
203
+ http_version: "1.1"
204
+ - !ruby/struct:VCR::HTTPInteraction
205
+ request: !ruby/struct:VCR::Request
206
+ method: :post
207
+ uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/invoice-lookup-1286679184/invoices.xml
208
+ body: |
209
+ <?xml version="1.0" encoding="UTF-8"?>
210
+ <invoice>
211
+ </invoice>
212
+
213
+ headers:
214
+ accept:
215
+ - "*/*"
216
+ connection:
217
+ - close
218
+ content-type:
219
+ - application/xml
220
+ authorization:
221
+ - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
222
+ response: !ruby/struct:VCR::Response
223
+ status: !ruby/struct:VCR::ResponseStatus
224
+ code: 201
225
+ message: Created
226
+ headers:
227
+ location:
228
+ - https://recurlytest3-test.recurly.com/invoices/63e22cd97e6a4922a9b40341820b1828
229
+ connection:
230
+ - close
231
+ content-type:
232
+ - application/xml; charset=utf-8
233
+ x-runtime:
234
+ - "61"
235
+ date:
236
+ - Thu, 14 Oct 2010 06:16:49 GMT
237
+ server:
238
+ - nginx/0.7.65
239
+ content-length:
240
+ - "1106"
241
+ set-cookie:
242
+ - _recurly_session=e51a9e9429fda9dfcf34a1d53995040e; domain=.recurly.com; path=/; Secure; HttpOnly
243
+ cache-control:
244
+ - no-cache
245
+ body: |
246
+ <?xml version="1.0" encoding="UTF-8"?>
247
+ <invoice>
248
+ <id>63e22cd97e6a4922a9b40341820b1828</id>
249
+ <account_code>invoice-lookup-1286679184</account_code>
250
+ <date type="datetime">2010-10-14T06:16:49Z</date>
251
+ <invoice_number type="integer">1737</invoice_number>
252
+ <vat_number></vat_number>
253
+ <status>open</status>
254
+ <subtotal_in_cents type="integer">1500</subtotal_in_cents>
255
+ <total_in_cents type="integer">1500</total_in_cents>
256
+ <vat_amount_in_cents type="integer">0</vat_amount_in_cents>
257
+ <paid_in_cents type="integer">0</paid_in_cents>
258
+ <total_due_in_cents type="integer">1500</total_due_in_cents>
259
+ <line_items type="array">
260
+ <line_item>
261
+ <id>ac0cc043a9654075a5a68cfebb9a5141</id>
262
+ <type>charge</type>
263
+ <amount_in_cents type="integer">1500</amount_in_cents>
264
+ <start_date type="datetime">2010-10-14T06:16:48Z</start_date>
265
+ <end_date nil="true" type="datetime"></end_date>
266
+ <description>charge description</description>
267
+ <created_at type="datetime">2010-10-14T06:16:48Z</created_at>
268
+ </line_item>
269
+ </line_items>
270
+ <payments type="array">
271
+ </payments>
272
+ </invoice>
273
+
274
+ http_version: "1.1"
275
+ - !ruby/struct:VCR::HTTPInteraction
276
+ request: !ruby/struct:VCR::Request
277
+ method: :get
278
+ uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/invoices/63e22cd97e6a4922a9b40341820b1828.xml
279
+ body:
280
+ headers:
281
+ accept:
282
+ - application/xml
283
+ connection:
284
+ - close
285
+ authorization:
286
+ - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
287
+ response: !ruby/struct:VCR::Response
288
+ status: !ruby/struct:VCR::ResponseStatus
289
+ code: 200
290
+ message: OK
291
+ headers:
292
+ x-ua-compatible:
293
+ - IE=Edge
294
+ etag:
295
+ - "\"3504ac36dd7a62fc21f2e034913509b2\""
296
+ connection:
297
+ - close
298
+ content-type:
299
+ - application/xml; charset=utf-8
300
+ x-runtime:
301
+ - "22"
302
+ date:
303
+ - Thu, 14 Oct 2010 06:16:50 GMT
304
+ server:
305
+ - nginx/0.7.65
306
+ content-length:
307
+ - "1106"
308
+ set-cookie:
309
+ - _recurly_session=abbaca42915358a03942ececf4b955c1; domain=.recurly.com; path=/; Secure; HttpOnly
310
+ cache-control:
311
+ - private, max-age=0, must-revalidate
312
+ body: |
313
+ <?xml version="1.0" encoding="UTF-8"?>
314
+ <invoice>
315
+ <id>63e22cd97e6a4922a9b40341820b1828</id>
316
+ <account_code>invoice-lookup-1286679184</account_code>
317
+ <date type="datetime">2010-10-14T06:16:49Z</date>
318
+ <invoice_number type="integer">1737</invoice_number>
319
+ <vat_number></vat_number>
320
+ <status>open</status>
321
+ <subtotal_in_cents type="integer">1500</subtotal_in_cents>
322
+ <total_in_cents type="integer">1500</total_in_cents>
323
+ <vat_amount_in_cents type="integer">0</vat_amount_in_cents>
324
+ <paid_in_cents type="integer">0</paid_in_cents>
325
+ <total_due_in_cents type="integer">1500</total_due_in_cents>
326
+ <line_items type="array">
327
+ <line_item>
328
+ <id>ac0cc043a9654075a5a68cfebb9a5141</id>
329
+ <type>charge</type>
330
+ <amount_in_cents type="integer">1500</amount_in_cents>
331
+ <start_date type="datetime">2010-10-14T06:16:48Z</start_date>
332
+ <end_date nil="true" type="datetime"></end_date>
333
+ <description>charge description</description>
334
+ <created_at type="datetime">2010-10-14T06:16:48Z</created_at>
335
+ </line_item>
336
+ </line_items>
337
+ <payments type="array">
338
+ </payments>
339
+ </invoice>
340
+
341
+ http_version: "1.1"
@@ -0,0 +1,306 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :get
5
+ uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/company/plans/paid.xml
6
+ body:
7
+ headers:
8
+ accept:
9
+ - application/xml
10
+ connection:
11
+ - close
12
+ authorization:
13
+ - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
14
+ response: !ruby/struct:VCR::Response
15
+ status: !ruby/struct:VCR::ResponseStatus
16
+ code: 200
17
+ message: OK
18
+ headers:
19
+ x-ua-compatible:
20
+ - IE=Edge
21
+ etag:
22
+ - "\"31910d9b30fecc5e62f25a1ce00278e0\""
23
+ connection:
24
+ - close
25
+ content-type:
26
+ - application/xml; charset=utf-8
27
+ x-runtime:
28
+ - "21"
29
+ date:
30
+ - Thu, 14 Oct 2010 06:16:51 GMT
31
+ server:
32
+ - nginx/0.7.65
33
+ content-length:
34
+ - "1150"
35
+ set-cookie:
36
+ - _recurly_session=48129351c0b459bae8ac65e227aadd65; domain=.recurly.com; path=/; Secure; HttpOnly
37
+ cache-control:
38
+ - private, max-age=0, must-revalidate
39
+ body: |
40
+ <?xml version="1.0" encoding="UTF-8"?>
41
+ <plan>
42
+ <plan_code>paid</plan_code>
43
+ <name>Paid</name>
44
+ <description></description>
45
+ <success_url></success_url>
46
+ <cancel_url></cancel_url>
47
+ <created_at type="datetime">2010-09-19T00:56:05Z</created_at>
48
+ <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
49
+ <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
50
+ <plan_interval_length type="integer">1</plan_interval_length>
51
+ <plan_interval_unit>months</plan_interval_unit>
52
+ <trial_interval_length type="integer">0</trial_interval_length>
53
+ <trial_interval_unit>months</trial_interval_unit>
54
+ <latest_version depreciated="true">
55
+ <version type="integer">1</version>
56
+ <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
57
+ <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
58
+ <plan_interval_length type="integer">1</plan_interval_length>
59
+ <plan_interval_unit>months</plan_interval_unit>
60
+ <trial_interval_length type="integer">0</trial_interval_length>
61
+ <trial_interval_unit>months</trial_interval_unit>
62
+ <created_at type="datetime">2010-09-19T00:56:05Z</created_at>
63
+ </latest_version>
64
+ </plan>
65
+
66
+ http_version: "1.1"
67
+ - !ruby/struct:VCR::HTTPInteraction
68
+ request: !ruby/struct:VCR::Request
69
+ method: :get
70
+ uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/company/plans/trial.xml
71
+ body:
72
+ headers:
73
+ accept:
74
+ - application/xml
75
+ connection:
76
+ - close
77
+ authorization:
78
+ - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
79
+ response: !ruby/struct:VCR::Response
80
+ status: !ruby/struct:VCR::ResponseStatus
81
+ code: 200
82
+ message: OK
83
+ headers:
84
+ x-ua-compatible:
85
+ - IE=Edge
86
+ etag:
87
+ - "\"d407cea7e325b47787bbd552110eb51a\""
88
+ connection:
89
+ - close
90
+ content-type:
91
+ - application/xml; charset=utf-8
92
+ x-runtime:
93
+ - "13"
94
+ date:
95
+ - Thu, 14 Oct 2010 06:16:51 GMT
96
+ server:
97
+ - nginx/0.7.65
98
+ content-length:
99
+ - "1164"
100
+ set-cookie:
101
+ - _recurly_session=41e3519ae0794c69325bb76a4b26c8de; domain=.recurly.com; path=/; Secure; HttpOnly
102
+ cache-control:
103
+ - private, max-age=0, must-revalidate
104
+ body: |
105
+ <?xml version="1.0" encoding="UTF-8"?>
106
+ <plan>
107
+ <plan_code>trial</plan_code>
108
+ <name>Trial</name>
109
+ <description>a trial plan</description>
110
+ <success_url></success_url>
111
+ <cancel_url></cancel_url>
112
+ <created_at type="datetime">2010-09-18T07:29:06Z</created_at>
113
+ <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
114
+ <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
115
+ <plan_interval_length type="integer">1</plan_interval_length>
116
+ <plan_interval_unit>months</plan_interval_unit>
117
+ <trial_interval_length type="integer">1</trial_interval_length>
118
+ <trial_interval_unit>months</trial_interval_unit>
119
+ <latest_version depreciated="true">
120
+ <version type="integer">1</version>
121
+ <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
122
+ <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
123
+ <plan_interval_length type="integer">1</plan_interval_length>
124
+ <plan_interval_unit>months</plan_interval_unit>
125
+ <trial_interval_length type="integer">1</trial_interval_length>
126
+ <trial_interval_unit>months</trial_interval_unit>
127
+ <created_at type="datetime">2010-09-18T11:29:08Z</created_at>
128
+ </latest_version>
129
+ </plan>
130
+
131
+ http_version: "1.1"
132
+ - !ruby/struct:VCR::HTTPInteraction
133
+ request: !ruby/struct:VCR::Request
134
+ method: :get
135
+ uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/company/plans.xml
136
+ body:
137
+ headers:
138
+ accept:
139
+ - application/xml
140
+ connection:
141
+ - close
142
+ authorization:
143
+ - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
144
+ response: !ruby/struct:VCR::Response
145
+ status: !ruby/struct:VCR::ResponseStatus
146
+ code: 200
147
+ message: OK
148
+ headers:
149
+ x-ua-compatible:
150
+ - IE=Edge
151
+ etag:
152
+ - "\"94bbce5f28a6663b34bf7e88860f06f4\""
153
+ connection:
154
+ - close
155
+ content-type:
156
+ - application/xml; charset=utf-8
157
+ x-runtime:
158
+ - "22"
159
+ date:
160
+ - Thu, 14 Oct 2010 06:16:52 GMT
161
+ server:
162
+ - nginx/0.7.65
163
+ content-length:
164
+ - "6675"
165
+ set-cookie:
166
+ - _recurly_session=e45c1bf10aecfd42a7a43ce1564cb877; domain=.recurly.com; path=/; Secure; HttpOnly
167
+ cache-control:
168
+ - private, max-age=0, must-revalidate
169
+ body: |
170
+ <?xml version="1.0" encoding="UTF-8"?>
171
+ <plans type="array">
172
+ <plan>
173
+ <plan_code>d00d</plan_code>
174
+ <name>d00d</name>
175
+ <description></description>
176
+ <created_at type="datetime">2010-09-19T02:12:34Z</created_at>
177
+ <unit_amount_in_cents type="integer">0</unit_amount_in_cents>
178
+ <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
179
+ <plan_interval_length type="integer">1</plan_interval_length>
180
+ <plan_interval_unit>months</plan_interval_unit>
181
+ <trial_interval_length type="integer">0</trial_interval_length>
182
+ <trial_interval_unit>days</trial_interval_unit>
183
+ <latest_version depreciated="true">
184
+ <version type="integer">1</version>
185
+ <unit_amount_in_cents type="integer">0</unit_amount_in_cents>
186
+ <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
187
+ <plan_interval_length type="integer">1</plan_interval_length>
188
+ <plan_interval_unit>months</plan_interval_unit>
189
+ <trial_interval_length type="integer">0</trial_interval_length>
190
+ <trial_interval_unit>days</trial_interval_unit>
191
+ <created_at type="datetime">2010-09-19T02:12:34Z</created_at>
192
+ </latest_version>
193
+ </plan>
194
+ <plan>
195
+ <plan_code>paid</plan_code>
196
+ <name>Paid</name>
197
+ <description></description>
198
+ <created_at type="datetime">2010-09-19T00:56:05Z</created_at>
199
+ <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
200
+ <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
201
+ <plan_interval_length type="integer">1</plan_interval_length>
202
+ <plan_interval_unit>months</plan_interval_unit>
203
+ <trial_interval_length type="integer">0</trial_interval_length>
204
+ <trial_interval_unit>months</trial_interval_unit>
205
+ <latest_version depreciated="true">
206
+ <version type="integer">1</version>
207
+ <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
208
+ <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
209
+ <plan_interval_length type="integer">1</plan_interval_length>
210
+ <plan_interval_unit>months</plan_interval_unit>
211
+ <trial_interval_length type="integer">0</trial_interval_length>
212
+ <trial_interval_unit>months</trial_interval_unit>
213
+ <created_at type="datetime">2010-09-19T00:56:05Z</created_at>
214
+ </latest_version>
215
+ </plan>
216
+ <plan>
217
+ <plan_code>regular</plan_code>
218
+ <name>Regular</name>
219
+ <description></description>
220
+ <created_at type="datetime">2010-09-18T11:15:35Z</created_at>
221
+ <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
222
+ <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
223
+ <plan_interval_length type="integer">1</plan_interval_length>
224
+ <plan_interval_unit>months</plan_interval_unit>
225
+ <trial_interval_length type="integer">0</trial_interval_length>
226
+ <trial_interval_unit>months</trial_interval_unit>
227
+ <latest_version depreciated="true">
228
+ <version type="integer">1</version>
229
+ <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
230
+ <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
231
+ <plan_interval_length type="integer">1</plan_interval_length>
232
+ <plan_interval_unit>months</plan_interval_unit>
233
+ <trial_interval_length type="integer">0</trial_interval_length>
234
+ <trial_interval_unit>months</trial_interval_unit>
235
+ <created_at type="datetime">2010-09-18T11:15:35Z</created_at>
236
+ </latest_version>
237
+ </plan>
238
+ <plan>
239
+ <plan_code>someplan2</plan_code>
240
+ <name>Some other test plan</name>
241
+ <description></description>
242
+ <created_at type="datetime">2010-09-19T02:15:41Z</created_at>
243
+ <unit_amount_in_cents type="integer">0</unit_amount_in_cents>
244
+ <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
245
+ <plan_interval_length type="integer">1</plan_interval_length>
246
+ <plan_interval_unit>months</plan_interval_unit>
247
+ <trial_interval_length type="integer">0</trial_interval_length>
248
+ <trial_interval_unit>days</trial_interval_unit>
249
+ <latest_version depreciated="true">
250
+ <version type="integer">1</version>
251
+ <unit_amount_in_cents type="integer">0</unit_amount_in_cents>
252
+ <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
253
+ <plan_interval_length type="integer">1</plan_interval_length>
254
+ <plan_interval_unit>months</plan_interval_unit>
255
+ <trial_interval_length type="integer">0</trial_interval_length>
256
+ <trial_interval_unit>days</trial_interval_unit>
257
+ <created_at type="datetime">2010-09-19T02:15:41Z</created_at>
258
+ </latest_version>
259
+ </plan>
260
+ <plan>
261
+ <plan_code>test</plan_code>
262
+ <name>Test Plan</name>
263
+ <description></description>
264
+ <created_at type="datetime">2010-09-19T01:31:33Z</created_at>
265
+ <unit_amount_in_cents type="integer">200</unit_amount_in_cents>
266
+ <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
267
+ <plan_interval_length type="integer">1</plan_interval_length>
268
+ <plan_interval_unit>months</plan_interval_unit>
269
+ <trial_interval_length type="integer">0</trial_interval_length>
270
+ <trial_interval_unit>months</trial_interval_unit>
271
+ <latest_version depreciated="true">
272
+ <version type="integer">1</version>
273
+ <unit_amount_in_cents type="integer">200</unit_amount_in_cents>
274
+ <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
275
+ <plan_interval_length type="integer">1</plan_interval_length>
276
+ <plan_interval_unit>months</plan_interval_unit>
277
+ <trial_interval_length type="integer">0</trial_interval_length>
278
+ <trial_interval_unit>months</trial_interval_unit>
279
+ <created_at type="datetime">2010-09-19T01:36:06Z</created_at>
280
+ </latest_version>
281
+ </plan>
282
+ <plan>
283
+ <plan_code>trial</plan_code>
284
+ <name>Trial</name>
285
+ <description>a trial plan</description>
286
+ <created_at type="datetime">2010-09-18T07:29:06Z</created_at>
287
+ <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
288
+ <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
289
+ <plan_interval_length type="integer">1</plan_interval_length>
290
+ <plan_interval_unit>months</plan_interval_unit>
291
+ <trial_interval_length type="integer">1</trial_interval_length>
292
+ <trial_interval_unit>months</trial_interval_unit>
293
+ <latest_version depreciated="true">
294
+ <version type="integer">1</version>
295
+ <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
296
+ <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
297
+ <plan_interval_length type="integer">1</plan_interval_length>
298
+ <plan_interval_unit>months</plan_interval_unit>
299
+ <trial_interval_length type="integer">1</trial_interval_length>
300
+ <trial_interval_unit>months</trial_interval_unit>
301
+ <created_at type="datetime">2010-09-18T11:29:08Z</created_at>
302
+ </latest_version>
303
+ </plan>
304
+ </plans>
305
+
306
+ http_version: "1.1"