recurly 0.4.15 → 0.4.16

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 (65) hide show
  1. data/lib/patches/rails2/active_resource/base.rb +35 -0
  2. data/lib/patches/rails3/active_model/serializers/xml.rb +28 -0
  3. data/lib/recurly.rb +14 -4
  4. data/lib/recurly/account.rb +6 -3
  5. data/lib/recurly/base.rb +1 -2
  6. data/lib/recurly/subscription.rb +7 -0
  7. data/lib/recurly/version.rb +1 -1
  8. data/spec/config/recurly.yml +4 -4
  9. data/spec/integration/subscription_spec.rb +2 -1
  10. metadata +108 -220
  11. data/spec/vcr/account/accept-language-account/1313708721.yml +0 -60
  12. data/spec/vcr/account/close/1313708721.yml +0 -132
  13. data/spec/vcr/account/create-blank/1313708721.yml +0 -44
  14. data/spec/vcr/account/create-duplicate/1313708721.yml +0 -98
  15. data/spec/vcr/account/create-min/1313708721.yml +0 -56
  16. data/spec/vcr/account/create/1313708721.yml +0 -60
  17. data/spec/vcr/account/find/1313708721.yml +0 -137
  18. data/spec/vcr/account/list/1313708721.yml +0 -1307
  19. data/spec/vcr/account/update/1313708721.yml +0 -216
  20. data/spec/vcr/billing/create/1313708721.yml +0 -181
  21. data/spec/vcr/billing/destroy/1313708721.yml +0 -240
  22. data/spec/vcr/billing/errors/1313708721.yml +0 -106
  23. data/spec/vcr/billing/find/1313708721.yml +0 -234
  24. data/spec/vcr/billing/update/1313708721.yml +0 -251
  25. data/spec/vcr/charge/create/1313708721.yml +0 -222
  26. data/spec/vcr/charge/delete-uninvoiced/1313708721.yml +0 -247
  27. data/spec/vcr/charge/list-all/1313708721.yml +0 -276
  28. data/spec/vcr/charge/list-invoiced/1313708721.yml +0 -411
  29. data/spec/vcr/charge/list-pending/1313708721.yml +0 -276
  30. data/spec/vcr/charge/lookup/1313708721.yml +0 -152
  31. data/spec/vcr/coupon/create/1296774903.yml +0 -97
  32. data/spec/vcr/coupon/destroy/1296774903.yml +0 -97
  33. data/spec/vcr/credit/create/1313708090.yml +0 -152
  34. data/spec/vcr/credit/delete/1313708090.yml +0 -211
  35. data/spec/vcr/credit/list/1313708090.yml +0 -276
  36. data/spec/vcr/credit/lookup/1313708090.yml +0 -152
  37. data/spec/vcr/invoice/create-no-charges/1296674173.yml +0 -166
  38. data/spec/vcr/invoice/create/1296674173.yml +0 -302
  39. data/spec/vcr/invoice/list/1296674173.yml +0 -405
  40. data/spec/vcr/invoice/lookup/1296674173.yml +0 -304
  41. data/spec/vcr/plan/all.yml +0 -233
  42. data/spec/vcr/plan/find.yml +0 -136
  43. data/spec/vcr/plan/update.yml +0 -152
  44. data/spec/vcr/subscription/addons/add/1296674173.yml +0 -177
  45. data/spec/vcr/subscription/addons/create/1296674173.yml +0 -177
  46. data/spec/vcr/subscription/addons/remove/1296674173.yml +0 -177
  47. data/spec/vcr/subscription/cancel-with-code/1296674173.yml +0 -400
  48. data/spec/vcr/subscription/cancel/1296674173.yml +0 -348
  49. data/spec/vcr/subscription/change1/1296674173.yml +0 -354
  50. data/spec/vcr/subscription/change2/1296674173.yml +0 -354
  51. data/spec/vcr/subscription/create/1296674173.yml +0 -192
  52. data/spec/vcr/subscription/find/1296674173.yml +0 -244
  53. data/spec/vcr/subscription/reactivate/1296674173.yml +0 -377
  54. data/spec/vcr/subscription/refund-full/1296674173.yml +0 -328
  55. data/spec/vcr/subscription/refund-none/1296674173.yml +0 -328
  56. data/spec/vcr/subscription/refund-partial/1296674173.yml +0 -328
  57. data/spec/vcr/transaction/all/1311126815.yml +0 -397
  58. data/spec/vcr/transaction/create-no-account/1311126815.yml +0 -82
  59. data/spec/vcr/transaction/create-with-account/1311126815.yml +0 -196
  60. data/spec/vcr/transaction/list-filled/1311126815.yml +0 -544
  61. data/spec/vcr/transaction/list-initial/1311126815.yml +0 -184
  62. data/spec/vcr/transaction/lookup/1311126815.yml +0 -487
  63. data/spec/vcr/transaction/void/1311126815.yml +0 -321
  64. data/spec/vcr/transparent/post-url/1317063400.yml +0 -105
  65. data/spec/vcr/transparent/post-url/1317063474.yml +0 -105
@@ -1,137 +0,0 @@
1
- ---
2
- - !ruby/struct:VCR::HTTPInteraction
3
- request: !ruby/struct:VCR::Request
4
- method: :post
5
- uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts.xml
6
- body: |
7
- <?xml version="1.0" encoding="UTF-8"?>
8
- <account>
9
- <account-code>account-get-1313708721</account-code>
10
- <first-name>Verena</first-name>
11
- <last-name>Test</last-name>
12
- <email>verena@test.com</email>
13
- <company-name>Recurly Ruby Gem</company-name>
14
- <billing-info>
15
- <credit-card>
16
- </credit-card>
17
- </billing-info>
18
- <accept-language nil="true"></accept-language>
19
- </account>
20
-
21
- headers:
22
- user-agent:
23
- - Recurly Ruby Client v0.4.13
24
- content-type:
25
- - application/xml
26
- response: !ruby/struct:VCR::Response
27
- status: !ruby/struct:VCR::ResponseStatus
28
- code: 201
29
- message: Created
30
- headers:
31
- location:
32
- - http://api.lvh.me:3000/accounts/account-get-1313708721
33
- content-type:
34
- - application/xml; charset=utf-8
35
- cache-control:
36
- - no-cache
37
- x-ua-compatible:
38
- - IE=Edge
39
- set-cookie:
40
- - _recurly_session=db545fe55c56b120ab7d5c976ef1135f; domain=.lvh.me; path=/; HttpOnly
41
- server:
42
- - thin 1.2.11 codename Bat-Shit Crazy
43
- body: |
44
- <?xml version="1.0" encoding="UTF-8"?>
45
- <account>
46
- <id>account-get-1313708721</id>
47
- <account_code>account-get-1313708721</account_code>
48
- <username></username>
49
- <email>verena@test.com</email>
50
- <first_name>Verena</first_name>
51
- <last_name>Test</last_name>
52
- <company_name>Recurly Ruby Gem</company_name>
53
- <balance_in_cents type="integer">0</balance_in_cents>
54
- <closed type="boolean">false</closed>
55
- <hosted_login_token>572e1b9670a9498a83e7f1447a9f187e</hosted_login_token>
56
- <created_at type="datetime">2011-09-22T22:01:29Z</created_at>
57
- <state>active</state>
58
- </account>
59
-
60
- http_version: "1.1"
61
- - !ruby/struct:VCR::HTTPInteraction
62
- request: !ruby/struct:VCR::Request
63
- method: :get
64
- uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/account-get-1313708721.xml
65
- body:
66
- headers:
67
- user-agent:
68
- - Recurly Ruby Client v0.4.13
69
- accept:
70
- - application/xml
71
- accept-encoding:
72
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
73
- response: !ruby/struct:VCR::Response
74
- status: !ruby/struct:VCR::ResponseStatus
75
- code: 200
76
- message: OK
77
- headers:
78
- content-type:
79
- - application/xml; charset=utf-8
80
- etag:
81
- - "\"b891fe3135ba5d95bfd26fe446e306fb\""
82
- cache-control:
83
- - max-age=0, private, must-revalidate
84
- x-ua-compatible:
85
- - IE=Edge
86
- server:
87
- - thin 1.2.11 codename Bat-Shit Crazy
88
- body: |
89
- <?xml version="1.0" encoding="UTF-8"?>
90
- <account>
91
- <id>account-get-1313708721</id>
92
- <account_code>account-get-1313708721</account_code>
93
- <username></username>
94
- <email>verena@test.com</email>
95
- <first_name>Verena</first_name>
96
- <last_name>Test</last_name>
97
- <company_name>Recurly Ruby Gem</company_name>
98
- <balance_in_cents type="integer">0</balance_in_cents>
99
- <closed type="boolean">false</closed>
100
- <hosted_login_token>572e1b9670a9498a83e7f1447a9f187e</hosted_login_token>
101
- <created_at type="datetime">2011-09-22T22:01:29Z</created_at>
102
- <state>active</state>
103
- </account>
104
-
105
- http_version: "1.1"
106
- - !ruby/struct:VCR::HTTPInteraction
107
- request: !ruby/struct:VCR::Request
108
- method: :get
109
- uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/account-that-doesnt-exist.xml
110
- body:
111
- headers:
112
- user-agent:
113
- - Recurly Ruby Client v0.4.13
114
- accept:
115
- - application/xml
116
- accept-encoding:
117
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
118
- response: !ruby/struct:VCR::Response
119
- status: !ruby/struct:VCR::ResponseStatus
120
- code: 404
121
- message: Not Found
122
- headers:
123
- content-type:
124
- - application/xml; charset=utf-8
125
- cache-control:
126
- - no-cache
127
- x-ua-compatible:
128
- - IE=Edge
129
- server:
130
- - thin 1.2.11 codename Bat-Shit Crazy
131
- body: |
132
- <?xml version="1.0" encoding="UTF-8"?>
133
- <errors>
134
- <error>Account not found</error>
135
- </errors>
136
-
137
- http_version: "1.1"
@@ -1,1307 +0,0 @@
1
- ---
2
- - !ruby/struct:VCR::HTTPInteraction
3
- request: !ruby/struct:VCR::Request
4
- method: :post
5
- uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts.xml
6
- body: |
7
- <?xml version="1.0" encoding="UTF-8"?>
8
- <account>
9
- <account-code>account-list-num-0-1313708721</account-code>
10
- <first-name>Verena</first-name>
11
- <last-name>Test</last-name>
12
- <email>verena@test.com</email>
13
- <company-name>Recurly Ruby Gem</company-name>
14
- <billing-info>
15
- <credit-card>
16
- </credit-card>
17
- </billing-info>
18
- <accept-language nil="true"></accept-language>
19
- </account>
20
-
21
- headers:
22
- user-agent:
23
- - Recurly Ruby Client v0.4.13
24
- content-type:
25
- - application/xml
26
- response: !ruby/struct:VCR::Response
27
- status: !ruby/struct:VCR::ResponseStatus
28
- code: 201
29
- message: Created
30
- headers:
31
- location:
32
- - http://api.lvh.me:3000/accounts/account-list-num-0-1313708721
33
- content-type:
34
- - application/xml; charset=utf-8
35
- cache-control:
36
- - no-cache
37
- x-ua-compatible:
38
- - IE=Edge
39
- set-cookie:
40
- - _recurly_session=902225e219f1b2ab572b4eddc046a953; domain=.lvh.me; path=/; HttpOnly
41
- server:
42
- - thin 1.2.11 codename Bat-Shit Crazy
43
- body: |
44
- <?xml version="1.0" encoding="UTF-8"?>
45
- <account>
46
- <id>account-list-num-0-1313708721</id>
47
- <account_code>account-list-num-0-1313708721</account_code>
48
- <username></username>
49
- <email>verena@test.com</email>
50
- <first_name>Verena</first_name>
51
- <last_name>Test</last_name>
52
- <company_name>Recurly Ruby Gem</company_name>
53
- <balance_in_cents type="integer">0</balance_in_cents>
54
- <closed type="boolean">false</closed>
55
- <hosted_login_token>2a302fcfe682451381919f3797df211f</hosted_login_token>
56
- <created_at type="datetime">2011-09-22T22:01:29Z</created_at>
57
- <state>active</state>
58
- </account>
59
-
60
- http_version: "1.1"
61
- - !ruby/struct:VCR::HTTPInteraction
62
- request: !ruby/struct:VCR::Request
63
- method: :post
64
- uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts.xml
65
- body: |
66
- <?xml version="1.0" encoding="UTF-8"?>
67
- <account>
68
- <account-code>account-list-num-1-1313708721</account-code>
69
- <first-name>Verena</first-name>
70
- <last-name>Test</last-name>
71
- <email>verena@test.com</email>
72
- <company-name>Recurly Ruby Gem</company-name>
73
- <billing-info>
74
- <credit-card>
75
- </credit-card>
76
- </billing-info>
77
- <accept-language nil="true"></accept-language>
78
- </account>
79
-
80
- headers:
81
- user-agent:
82
- - Recurly Ruby Client v0.4.13
83
- content-type:
84
- - application/xml
85
- response: !ruby/struct:VCR::Response
86
- status: !ruby/struct:VCR::ResponseStatus
87
- code: 201
88
- message: Created
89
- headers:
90
- location:
91
- - http://api.lvh.me:3000/accounts/account-list-num-1-1313708721
92
- content-type:
93
- - application/xml; charset=utf-8
94
- cache-control:
95
- - no-cache
96
- x-ua-compatible:
97
- - IE=Edge
98
- set-cookie:
99
- - _recurly_session=ee0874d96af2d2e57dcbe1c25b291b53; domain=.lvh.me; path=/; HttpOnly
100
- server:
101
- - thin 1.2.11 codename Bat-Shit Crazy
102
- body: |
103
- <?xml version="1.0" encoding="UTF-8"?>
104
- <account>
105
- <id>account-list-num-1-1313708721</id>
106
- <account_code>account-list-num-1-1313708721</account_code>
107
- <username></username>
108
- <email>verena@test.com</email>
109
- <first_name>Verena</first_name>
110
- <last_name>Test</last_name>
111
- <company_name>Recurly Ruby Gem</company_name>
112
- <balance_in_cents type="integer">0</balance_in_cents>
113
- <closed type="boolean">false</closed>
114
- <hosted_login_token>d7c4f1f50bec43209243565f5a7f18e9</hosted_login_token>
115
- <created_at type="datetime">2011-09-22T22:01:29Z</created_at>
116
- <state>active</state>
117
- </account>
118
-
119
- http_version: "1.1"
120
- - !ruby/struct:VCR::HTTPInteraction
121
- request: !ruby/struct:VCR::Request
122
- method: :post
123
- uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts.xml
124
- body: |
125
- <?xml version="1.0" encoding="UTF-8"?>
126
- <account>
127
- <account-code>account-list-num-2-1313708721</account-code>
128
- <first-name>Verena</first-name>
129
- <last-name>Test</last-name>
130
- <email>verena@test.com</email>
131
- <company-name>Recurly Ruby Gem</company-name>
132
- <billing-info>
133
- <credit-card>
134
- </credit-card>
135
- </billing-info>
136
- <accept-language nil="true"></accept-language>
137
- </account>
138
-
139
- headers:
140
- user-agent:
141
- - Recurly Ruby Client v0.4.13
142
- content-type:
143
- - application/xml
144
- response: !ruby/struct:VCR::Response
145
- status: !ruby/struct:VCR::ResponseStatus
146
- code: 201
147
- message: Created
148
- headers:
149
- location:
150
- - http://api.lvh.me:3000/accounts/account-list-num-2-1313708721
151
- content-type:
152
- - application/xml; charset=utf-8
153
- cache-control:
154
- - no-cache
155
- x-ua-compatible:
156
- - IE=Edge
157
- set-cookie:
158
- - _recurly_session=39b0cb906d17946245f915ab2946ba6d; domain=.lvh.me; path=/; HttpOnly
159
- server:
160
- - thin 1.2.11 codename Bat-Shit Crazy
161
- body: |
162
- <?xml version="1.0" encoding="UTF-8"?>
163
- <account>
164
- <id>account-list-num-2-1313708721</id>
165
- <account_code>account-list-num-2-1313708721</account_code>
166
- <username></username>
167
- <email>verena@test.com</email>
168
- <first_name>Verena</first_name>
169
- <last_name>Test</last_name>
170
- <company_name>Recurly Ruby Gem</company_name>
171
- <balance_in_cents type="integer">0</balance_in_cents>
172
- <closed type="boolean">false</closed>
173
- <hosted_login_token>4ec147f2ba6b4cffb98b8ace3573e081</hosted_login_token>
174
- <created_at type="datetime">2011-09-22T22:01:29Z</created_at>
175
- <state>active</state>
176
- </account>
177
-
178
- http_version: "1.1"
179
- - !ruby/struct:VCR::HTTPInteraction
180
- request: !ruby/struct:VCR::Request
181
- method: :post
182
- uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts.xml
183
- body: |
184
- <?xml version="1.0" encoding="UTF-8"?>
185
- <account>
186
- <account-code>account-list-num-3-1313708721</account-code>
187
- <first-name>Verena</first-name>
188
- <last-name>Test</last-name>
189
- <email>verena@test.com</email>
190
- <company-name>Recurly Ruby Gem</company-name>
191
- <billing-info>
192
- <credit-card>
193
- </credit-card>
194
- </billing-info>
195
- <accept-language nil="true"></accept-language>
196
- </account>
197
-
198
- headers:
199
- user-agent:
200
- - Recurly Ruby Client v0.4.13
201
- content-type:
202
- - application/xml
203
- response: !ruby/struct:VCR::Response
204
- status: !ruby/struct:VCR::ResponseStatus
205
- code: 201
206
- message: Created
207
- headers:
208
- location:
209
- - http://api.lvh.me:3000/accounts/account-list-num-3-1313708721
210
- content-type:
211
- - application/xml; charset=utf-8
212
- cache-control:
213
- - no-cache
214
- x-ua-compatible:
215
- - IE=Edge
216
- set-cookie:
217
- - _recurly_session=65be0bad6322b1696cd509a888609561; domain=.lvh.me; path=/; HttpOnly
218
- server:
219
- - thin 1.2.11 codename Bat-Shit Crazy
220
- body: |
221
- <?xml version="1.0" encoding="UTF-8"?>
222
- <account>
223
- <id>account-list-num-3-1313708721</id>
224
- <account_code>account-list-num-3-1313708721</account_code>
225
- <username></username>
226
- <email>verena@test.com</email>
227
- <first_name>Verena</first_name>
228
- <last_name>Test</last_name>
229
- <company_name>Recurly Ruby Gem</company_name>
230
- <balance_in_cents type="integer">0</balance_in_cents>
231
- <closed type="boolean">false</closed>
232
- <hosted_login_token>4ce63e6677c342ffa7ec6440d764c1f0</hosted_login_token>
233
- <created_at type="datetime">2011-09-22T22:01:29Z</created_at>
234
- <state>active</state>
235
- </account>
236
-
237
- http_version: "1.1"
238
- - !ruby/struct:VCR::HTTPInteraction
239
- request: !ruby/struct:VCR::Request
240
- method: :post
241
- uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts.xml
242
- body: |
243
- <?xml version="1.0" encoding="UTF-8"?>
244
- <account>
245
- <account-code>account-list-num-4-1313708721</account-code>
246
- <first-name>Verena</first-name>
247
- <last-name>Test</last-name>
248
- <email>verena@test.com</email>
249
- <company-name>Recurly Ruby Gem</company-name>
250
- <billing-info>
251
- <credit-card>
252
- </credit-card>
253
- </billing-info>
254
- <accept-language nil="true"></accept-language>
255
- </account>
256
-
257
- headers:
258
- user-agent:
259
- - Recurly Ruby Client v0.4.13
260
- content-type:
261
- - application/xml
262
- response: !ruby/struct:VCR::Response
263
- status: !ruby/struct:VCR::ResponseStatus
264
- code: 201
265
- message: Created
266
- headers:
267
- location:
268
- - http://api.lvh.me:3000/accounts/account-list-num-4-1313708721
269
- content-type:
270
- - application/xml; charset=utf-8
271
- cache-control:
272
- - no-cache
273
- x-ua-compatible:
274
- - IE=Edge
275
- set-cookie:
276
- - _recurly_session=3aa6475f3a7796047581831578814ea4; domain=.lvh.me; path=/; HttpOnly
277
- server:
278
- - thin 1.2.11 codename Bat-Shit Crazy
279
- body: |
280
- <?xml version="1.0" encoding="UTF-8"?>
281
- <account>
282
- <id>account-list-num-4-1313708721</id>
283
- <account_code>account-list-num-4-1313708721</account_code>
284
- <username></username>
285
- <email>verena@test.com</email>
286
- <first_name>Verena</first_name>
287
- <last_name>Test</last_name>
288
- <company_name>Recurly Ruby Gem</company_name>
289
- <balance_in_cents type="integer">0</balance_in_cents>
290
- <closed type="boolean">false</closed>
291
- <hosted_login_token>63f070c035b44b45b9943da39931bcf0</hosted_login_token>
292
- <created_at type="datetime">2011-09-22T22:01:30Z</created_at>
293
- <state>active</state>
294
- </account>
295
-
296
- http_version: "1.1"
297
- - !ruby/struct:VCR::HTTPInteraction
298
- request: !ruby/struct:VCR::Request
299
- method: :post
300
- uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts.xml
301
- body: |
302
- <?xml version="1.0" encoding="UTF-8"?>
303
- <account>
304
- <account-code>account-list-num-5-1313708721</account-code>
305
- <first-name>Verena</first-name>
306
- <last-name>Test</last-name>
307
- <email>verena@test.com</email>
308
- <company-name>Recurly Ruby Gem</company-name>
309
- <billing-info>
310
- <credit-card>
311
- </credit-card>
312
- </billing-info>
313
- <accept-language nil="true"></accept-language>
314
- </account>
315
-
316
- headers:
317
- user-agent:
318
- - Recurly Ruby Client v0.4.13
319
- content-type:
320
- - application/xml
321
- response: !ruby/struct:VCR::Response
322
- status: !ruby/struct:VCR::ResponseStatus
323
- code: 201
324
- message: Created
325
- headers:
326
- location:
327
- - http://api.lvh.me:3000/accounts/account-list-num-5-1313708721
328
- content-type:
329
- - application/xml; charset=utf-8
330
- cache-control:
331
- - no-cache
332
- x-ua-compatible:
333
- - IE=Edge
334
- set-cookie:
335
- - _recurly_session=dde5995979e942c8577acbe79b481189; domain=.lvh.me; path=/; HttpOnly
336
- server:
337
- - thin 1.2.11 codename Bat-Shit Crazy
338
- body: |
339
- <?xml version="1.0" encoding="UTF-8"?>
340
- <account>
341
- <id>account-list-num-5-1313708721</id>
342
- <account_code>account-list-num-5-1313708721</account_code>
343
- <username></username>
344
- <email>verena@test.com</email>
345
- <first_name>Verena</first_name>
346
- <last_name>Test</last_name>
347
- <company_name>Recurly Ruby Gem</company_name>
348
- <balance_in_cents type="integer">0</balance_in_cents>
349
- <closed type="boolean">false</closed>
350
- <hosted_login_token>4b2ea07a6d614dfa8f36ef83f28e8872</hosted_login_token>
351
- <created_at type="datetime">2011-09-22T22:01:30Z</created_at>
352
- <state>active</state>
353
- </account>
354
-
355
- http_version: "1.1"
356
- - !ruby/struct:VCR::HTTPInteraction
357
- request: !ruby/struct:VCR::Request
358
- method: :post
359
- uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts.xml
360
- body: |
361
- <?xml version="1.0" encoding="UTF-8"?>
362
- <account>
363
- <account-code>account-list-num-6-1313708721</account-code>
364
- <first-name>Verena</first-name>
365
- <last-name>Test</last-name>
366
- <email>verena@test.com</email>
367
- <company-name>Recurly Ruby Gem</company-name>
368
- <billing-info>
369
- <credit-card>
370
- </credit-card>
371
- </billing-info>
372
- <accept-language nil="true"></accept-language>
373
- </account>
374
-
375
- headers:
376
- user-agent:
377
- - Recurly Ruby Client v0.4.13
378
- content-type:
379
- - application/xml
380
- response: !ruby/struct:VCR::Response
381
- status: !ruby/struct:VCR::ResponseStatus
382
- code: 201
383
- message: Created
384
- headers:
385
- location:
386
- - http://api.lvh.me:3000/accounts/account-list-num-6-1313708721
387
- content-type:
388
- - application/xml; charset=utf-8
389
- cache-control:
390
- - no-cache
391
- x-ua-compatible:
392
- - IE=Edge
393
- set-cookie:
394
- - _recurly_session=f21e70cb25fb5d7668479956e650786f; domain=.lvh.me; path=/; HttpOnly
395
- server:
396
- - thin 1.2.11 codename Bat-Shit Crazy
397
- body: |
398
- <?xml version="1.0" encoding="UTF-8"?>
399
- <account>
400
- <id>account-list-num-6-1313708721</id>
401
- <account_code>account-list-num-6-1313708721</account_code>
402
- <username></username>
403
- <email>verena@test.com</email>
404
- <first_name>Verena</first_name>
405
- <last_name>Test</last_name>
406
- <company_name>Recurly Ruby Gem</company_name>
407
- <balance_in_cents type="integer">0</balance_in_cents>
408
- <closed type="boolean">false</closed>
409
- <hosted_login_token>80d601f7f42744cf863832440355ed31</hosted_login_token>
410
- <created_at type="datetime">2011-09-22T22:01:30Z</created_at>
411
- <state>active</state>
412
- </account>
413
-
414
- http_version: "1.1"
415
- - !ruby/struct:VCR::HTTPInteraction
416
- request: !ruby/struct:VCR::Request
417
- method: :post
418
- uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts.xml
419
- body: |
420
- <?xml version="1.0" encoding="UTF-8"?>
421
- <account>
422
- <account-code>account-list-num-7-1313708721</account-code>
423
- <first-name>Verena</first-name>
424
- <last-name>Test</last-name>
425
- <email>verena@test.com</email>
426
- <company-name>Recurly Ruby Gem</company-name>
427
- <billing-info>
428
- <credit-card>
429
- </credit-card>
430
- </billing-info>
431
- <accept-language nil="true"></accept-language>
432
- </account>
433
-
434
- headers:
435
- user-agent:
436
- - Recurly Ruby Client v0.4.13
437
- content-type:
438
- - application/xml
439
- response: !ruby/struct:VCR::Response
440
- status: !ruby/struct:VCR::ResponseStatus
441
- code: 201
442
- message: Created
443
- headers:
444
- location:
445
- - http://api.lvh.me:3000/accounts/account-list-num-7-1313708721
446
- content-type:
447
- - application/xml; charset=utf-8
448
- cache-control:
449
- - no-cache
450
- x-ua-compatible:
451
- - IE=Edge
452
- set-cookie:
453
- - _recurly_session=74dbf542460325375c737441e02bf4d9; domain=.lvh.me; path=/; HttpOnly
454
- server:
455
- - thin 1.2.11 codename Bat-Shit Crazy
456
- body: |
457
- <?xml version="1.0" encoding="UTF-8"?>
458
- <account>
459
- <id>account-list-num-7-1313708721</id>
460
- <account_code>account-list-num-7-1313708721</account_code>
461
- <username></username>
462
- <email>verena@test.com</email>
463
- <first_name>Verena</first_name>
464
- <last_name>Test</last_name>
465
- <company_name>Recurly Ruby Gem</company_name>
466
- <balance_in_cents type="integer">0</balance_in_cents>
467
- <closed type="boolean">false</closed>
468
- <hosted_login_token>e0013127eb1d4472a3886920c1bf0e78</hosted_login_token>
469
- <created_at type="datetime">2011-09-22T22:01:30Z</created_at>
470
- <state>active</state>
471
- </account>
472
-
473
- http_version: "1.1"
474
- - !ruby/struct:VCR::HTTPInteraction
475
- request: !ruby/struct:VCR::Request
476
- method: :get
477
- uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/plans/paid.xml
478
- body:
479
- headers:
480
- user-agent:
481
- - Recurly Ruby Client v0.4.13
482
- accept:
483
- - application/xml
484
- accept-encoding:
485
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
486
- response: !ruby/struct:VCR::Response
487
- status: !ruby/struct:VCR::ResponseStatus
488
- code: 200
489
- message: OK
490
- headers:
491
- content-type:
492
- - application/xml; charset=utf-8
493
- etag:
494
- - "\"7487d065869e9c487e0a588e1edea5dc\""
495
- cache-control:
496
- - max-age=0, private, must-revalidate
497
- x-ua-compatible:
498
- - IE=Edge
499
- server:
500
- - thin 1.2.11 codename Bat-Shit Crazy
501
- body: |
502
- <?xml version="1.0" encoding="UTF-8"?>
503
- <plan>
504
- <plan_code>paid</plan_code>
505
- <name>paid</name>
506
- <description></description>
507
- <success_url></success_url>
508
- <cancel_url></cancel_url>
509
- <created_at type="datetime">2011-09-22T21:54:04Z</created_at>
510
- <unit_amount_in_cents type="integer">1400</unit_amount_in_cents>
511
- <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
512
- <plan_interval_length type="integer">1</plan_interval_length>
513
- <plan_interval_unit>months</plan_interval_unit>
514
- <trial_interval_length type="integer">0</trial_interval_length>
515
- <trial_interval_unit>days</trial_interval_unit>
516
- </plan>
517
-
518
- http_version: "1.1"
519
- - !ruby/struct:VCR::HTTPInteraction
520
- request: !ruby/struct:VCR::Request
521
- method: :post
522
- uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/account-list-num-0-1313708721/subscription.xml
523
- body: |
524
- <?xml version="1.0" encoding="UTF-8"?>
525
- <subscription>
526
- <plan-code>paid</plan-code>
527
- <quantity type="integer">1</quantity>
528
- <account>
529
- <account-code>account-list-num-0-1313708721</account-code>
530
- <first-name>Verena</first-name>
531
- <last-name>Test</last-name>
532
- <email>verena@test.com</email>
533
- <company-name>Recurly Ruby Gem</company-name>
534
- <billing-info>
535
- <first-name>Verena</first-name>
536
- <last-name>Test</last-name>
537
- <address1>123 Test St</address1>
538
- <city>San Francisco</city>
539
- <state>CA</state>
540
- <zip>94115</zip>
541
- <country>US</country>
542
- <credit-card>
543
- <number>4111111111111111</number>
544
- <year type="integer">2012</year>
545
- <month type="integer">9</month>
546
- <verification-value>123</verification-value>
547
- </credit-card>
548
- </billing-info>
549
- <accept-language nil="true"></accept-language>
550
- <id>account-list-num-0-1313708721</id>
551
- <username nil="true"></username>
552
- <balance-in-cents type="integer">0</balance-in-cents>
553
- <closed type="boolean">false</closed>
554
- <hosted-login-token>2a302fcfe682451381919f3797df211f</hosted-login-token>
555
- <created-at type="datetime">2011-09-22T22:01:29Z</created-at>
556
- <state>active</state>
557
- </account>
558
- <addons type="array"/>
559
- </subscription>
560
-
561
- headers:
562
- user-agent:
563
- - Recurly Ruby Client v0.4.13
564
- content-type:
565
- - application/xml
566
- response: !ruby/struct:VCR::Response
567
- status: !ruby/struct:VCR::ResponseStatus
568
- code: 201
569
- message: Created
570
- headers:
571
- content-type:
572
- - application/xml; charset=utf-8
573
- cache-control:
574
- - no-cache
575
- x-ua-compatible:
576
- - IE=Edge
577
- set-cookie:
578
- - _recurly_session=8d18b19ee4160632152a43841c6f0ab8; domain=.lvh.me; path=/; HttpOnly
579
- server:
580
- - thin 1.2.11 codename Bat-Shit Crazy
581
- body: |
582
- <?xml version="1.0" encoding="UTF-8"?>
583
- <subscription>
584
- <id>account-list-num-0-1313708721</id>
585
- <account_code>account-list-num-0-1313708721</account_code>
586
- <plan>
587
- <plan_code>paid</plan_code>
588
- <name>paid</name>
589
- </plan>
590
- <state>active</state>
591
- <quantity type="integer">1</quantity>
592
- <unit_amount_in_cents type="integer">1400</unit_amount_in_cents>
593
- <total_amount_in_cents type="integer">1400</total_amount_in_cents>
594
- <activated_at type="datetime">2011-09-22T22:01:30Z</activated_at>
595
- <canceled_at nil="true" type="datetime"></canceled_at>
596
- <expires_at nil="true" type="datetime"></expires_at>
597
- <current_period_started_at type="datetime">2011-09-22T22:01:30Z</current_period_started_at>
598
- <current_period_ends_at type="datetime">2011-10-22T22:01:30Z</current_period_ends_at>
599
- <trial_started_at nil="true" type="datetime"></trial_started_at>
600
- <trial_ends_at nil="true" type="datetime"></trial_ends_at>
601
- <add_ons type="array">
602
- </add_ons>
603
- </subscription>
604
-
605
- http_version: "1.1"
606
- - !ruby/struct:VCR::HTTPInteraction
607
- request: !ruby/struct:VCR::Request
608
- method: :get
609
- uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/plans/paid.xml
610
- body:
611
- headers:
612
- user-agent:
613
- - Recurly Ruby Client v0.4.13
614
- accept:
615
- - application/xml
616
- accept-encoding:
617
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
618
- response: !ruby/struct:VCR::Response
619
- status: !ruby/struct:VCR::ResponseStatus
620
- code: 200
621
- message: OK
622
- headers:
623
- content-type:
624
- - application/xml; charset=utf-8
625
- etag:
626
- - "\"7487d065869e9c487e0a588e1edea5dc\""
627
- cache-control:
628
- - max-age=0, private, must-revalidate
629
- x-ua-compatible:
630
- - IE=Edge
631
- server:
632
- - thin 1.2.11 codename Bat-Shit Crazy
633
- body: |
634
- <?xml version="1.0" encoding="UTF-8"?>
635
- <plan>
636
- <plan_code>paid</plan_code>
637
- <name>paid</name>
638
- <description></description>
639
- <success_url></success_url>
640
- <cancel_url></cancel_url>
641
- <created_at type="datetime">2011-09-22T21:54:04Z</created_at>
642
- <unit_amount_in_cents type="integer">1400</unit_amount_in_cents>
643
- <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
644
- <plan_interval_length type="integer">1</plan_interval_length>
645
- <plan_interval_unit>months</plan_interval_unit>
646
- <trial_interval_length type="integer">0</trial_interval_length>
647
- <trial_interval_unit>days</trial_interval_unit>
648
- </plan>
649
-
650
- http_version: "1.1"
651
- - !ruby/struct:VCR::HTTPInteraction
652
- request: !ruby/struct:VCR::Request
653
- method: :post
654
- uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/account-list-num-1-1313708721/subscription.xml
655
- body: |
656
- <?xml version="1.0" encoding="UTF-8"?>
657
- <subscription>
658
- <plan-code>paid</plan-code>
659
- <quantity type="integer">1</quantity>
660
- <account>
661
- <account-code>account-list-num-1-1313708721</account-code>
662
- <first-name>Verena</first-name>
663
- <last-name>Test</last-name>
664
- <email>verena@test.com</email>
665
- <company-name>Recurly Ruby Gem</company-name>
666
- <billing-info>
667
- <first-name>Verena</first-name>
668
- <last-name>Test</last-name>
669
- <address1>123 Test St</address1>
670
- <city>San Francisco</city>
671
- <state>CA</state>
672
- <zip>94115</zip>
673
- <country>US</country>
674
- <credit-card>
675
- <number>4111111111111111</number>
676
- <year type="integer">2012</year>
677
- <month type="integer">9</month>
678
- <verification-value>123</verification-value>
679
- </credit-card>
680
- </billing-info>
681
- <accept-language nil="true"></accept-language>
682
- <id>account-list-num-1-1313708721</id>
683
- <username nil="true"></username>
684
- <balance-in-cents type="integer">0</balance-in-cents>
685
- <closed type="boolean">false</closed>
686
- <hosted-login-token>d7c4f1f50bec43209243565f5a7f18e9</hosted-login-token>
687
- <created-at type="datetime">2011-09-22T22:01:29Z</created-at>
688
- <state>active</state>
689
- </account>
690
- <addons type="array"/>
691
- </subscription>
692
-
693
- headers:
694
- user-agent:
695
- - Recurly Ruby Client v0.4.13
696
- content-type:
697
- - application/xml
698
- response: !ruby/struct:VCR::Response
699
- status: !ruby/struct:VCR::ResponseStatus
700
- code: 201
701
- message: Created
702
- headers:
703
- content-type:
704
- - application/xml; charset=utf-8
705
- cache-control:
706
- - no-cache
707
- x-ua-compatible:
708
- - IE=Edge
709
- set-cookie:
710
- - _recurly_session=4402fd472429e7f1856e68c5ef2e70fd; domain=.lvh.me; path=/; HttpOnly
711
- server:
712
- - thin 1.2.11 codename Bat-Shit Crazy
713
- body: |
714
- <?xml version="1.0" encoding="UTF-8"?>
715
- <subscription>
716
- <id>account-list-num-1-1313708721</id>
717
- <account_code>account-list-num-1-1313708721</account_code>
718
- <plan>
719
- <plan_code>paid</plan_code>
720
- <name>paid</name>
721
- </plan>
722
- <state>active</state>
723
- <quantity type="integer">1</quantity>
724
- <unit_amount_in_cents type="integer">1400</unit_amount_in_cents>
725
- <total_amount_in_cents type="integer">1400</total_amount_in_cents>
726
- <activated_at type="datetime">2011-09-22T22:01:31Z</activated_at>
727
- <canceled_at nil="true" type="datetime"></canceled_at>
728
- <expires_at nil="true" type="datetime"></expires_at>
729
- <current_period_started_at type="datetime">2011-09-22T22:01:31Z</current_period_started_at>
730
- <current_period_ends_at type="datetime">2011-10-22T22:01:31Z</current_period_ends_at>
731
- <trial_started_at nil="true" type="datetime"></trial_started_at>
732
- <trial_ends_at nil="true" type="datetime"></trial_ends_at>
733
- <add_ons type="array">
734
- </add_ons>
735
- </subscription>
736
-
737
- http_version: "1.1"
738
- - !ruby/struct:VCR::HTTPInteraction
739
- request: !ruby/struct:VCR::Request
740
- method: :get
741
- uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/plans/paid.xml
742
- body:
743
- headers:
744
- user-agent:
745
- - Recurly Ruby Client v0.4.13
746
- accept:
747
- - application/xml
748
- accept-encoding:
749
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
750
- response: !ruby/struct:VCR::Response
751
- status: !ruby/struct:VCR::ResponseStatus
752
- code: 200
753
- message: OK
754
- headers:
755
- content-type:
756
- - application/xml; charset=utf-8
757
- etag:
758
- - "\"7487d065869e9c487e0a588e1edea5dc\""
759
- cache-control:
760
- - max-age=0, private, must-revalidate
761
- x-ua-compatible:
762
- - IE=Edge
763
- server:
764
- - thin 1.2.11 codename Bat-Shit Crazy
765
- body: |
766
- <?xml version="1.0" encoding="UTF-8"?>
767
- <plan>
768
- <plan_code>paid</plan_code>
769
- <name>paid</name>
770
- <description></description>
771
- <success_url></success_url>
772
- <cancel_url></cancel_url>
773
- <created_at type="datetime">2011-09-22T21:54:04Z</created_at>
774
- <unit_amount_in_cents type="integer">1400</unit_amount_in_cents>
775
- <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
776
- <plan_interval_length type="integer">1</plan_interval_length>
777
- <plan_interval_unit>months</plan_interval_unit>
778
- <trial_interval_length type="integer">0</trial_interval_length>
779
- <trial_interval_unit>days</trial_interval_unit>
780
- </plan>
781
-
782
- http_version: "1.1"
783
- - !ruby/struct:VCR::HTTPInteraction
784
- request: !ruby/struct:VCR::Request
785
- method: :post
786
- uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/account-list-num-2-1313708721/subscription.xml
787
- body: |
788
- <?xml version="1.0" encoding="UTF-8"?>
789
- <subscription>
790
- <plan-code>paid</plan-code>
791
- <quantity type="integer">1</quantity>
792
- <account>
793
- <account-code>account-list-num-2-1313708721</account-code>
794
- <first-name>Verena</first-name>
795
- <last-name>Test</last-name>
796
- <email>verena@test.com</email>
797
- <company-name>Recurly Ruby Gem</company-name>
798
- <billing-info>
799
- <first-name>Verena</first-name>
800
- <last-name>Test</last-name>
801
- <address1>123 Test St</address1>
802
- <city>San Francisco</city>
803
- <state>CA</state>
804
- <zip>94115</zip>
805
- <country>US</country>
806
- <credit-card>
807
- <number>4111111111111111</number>
808
- <year type="integer">2012</year>
809
- <month type="integer">9</month>
810
- <verification-value>123</verification-value>
811
- </credit-card>
812
- </billing-info>
813
- <accept-language nil="true"></accept-language>
814
- <id>account-list-num-2-1313708721</id>
815
- <username nil="true"></username>
816
- <balance-in-cents type="integer">0</balance-in-cents>
817
- <closed type="boolean">false</closed>
818
- <hosted-login-token>4ec147f2ba6b4cffb98b8ace3573e081</hosted-login-token>
819
- <created-at type="datetime">2011-09-22T22:01:29Z</created-at>
820
- <state>active</state>
821
- </account>
822
- <addons type="array"/>
823
- </subscription>
824
-
825
- headers:
826
- user-agent:
827
- - Recurly Ruby Client v0.4.13
828
- content-type:
829
- - application/xml
830
- response: !ruby/struct:VCR::Response
831
- status: !ruby/struct:VCR::ResponseStatus
832
- code: 201
833
- message: Created
834
- headers:
835
- content-type:
836
- - application/xml; charset=utf-8
837
- cache-control:
838
- - no-cache
839
- x-ua-compatible:
840
- - IE=Edge
841
- set-cookie:
842
- - _recurly_session=bba44a1cf8a2a06490e3339f5a57fbf8; domain=.lvh.me; path=/; HttpOnly
843
- server:
844
- - thin 1.2.11 codename Bat-Shit Crazy
845
- body: |
846
- <?xml version="1.0" encoding="UTF-8"?>
847
- <subscription>
848
- <id>account-list-num-2-1313708721</id>
849
- <account_code>account-list-num-2-1313708721</account_code>
850
- <plan>
851
- <plan_code>paid</plan_code>
852
- <name>paid</name>
853
- </plan>
854
- <state>active</state>
855
- <quantity type="integer">1</quantity>
856
- <unit_amount_in_cents type="integer">1400</unit_amount_in_cents>
857
- <total_amount_in_cents type="integer">1400</total_amount_in_cents>
858
- <activated_at type="datetime">2011-09-22T22:01:33Z</activated_at>
859
- <canceled_at nil="true" type="datetime"></canceled_at>
860
- <expires_at nil="true" type="datetime"></expires_at>
861
- <current_period_started_at type="datetime">2011-09-22T22:01:33Z</current_period_started_at>
862
- <current_period_ends_at type="datetime">2011-10-22T22:01:33Z</current_period_ends_at>
863
- <trial_started_at nil="true" type="datetime"></trial_started_at>
864
- <trial_ends_at nil="true" type="datetime"></trial_ends_at>
865
- <add_ons type="array">
866
- </add_ons>
867
- </subscription>
868
-
869
- http_version: "1.1"
870
- - !ruby/struct:VCR::HTTPInteraction
871
- request: !ruby/struct:VCR::Request
872
- method: :get
873
- uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/plans/paid.xml
874
- body:
875
- headers:
876
- user-agent:
877
- - Recurly Ruby Client v0.4.13
878
- accept:
879
- - application/xml
880
- accept-encoding:
881
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
882
- response: !ruby/struct:VCR::Response
883
- status: !ruby/struct:VCR::ResponseStatus
884
- code: 200
885
- message: OK
886
- headers:
887
- content-type:
888
- - application/xml; charset=utf-8
889
- etag:
890
- - "\"7487d065869e9c487e0a588e1edea5dc\""
891
- cache-control:
892
- - max-age=0, private, must-revalidate
893
- x-ua-compatible:
894
- - IE=Edge
895
- server:
896
- - thin 1.2.11 codename Bat-Shit Crazy
897
- body: |
898
- <?xml version="1.0" encoding="UTF-8"?>
899
- <plan>
900
- <plan_code>paid</plan_code>
901
- <name>paid</name>
902
- <description></description>
903
- <success_url></success_url>
904
- <cancel_url></cancel_url>
905
- <created_at type="datetime">2011-09-22T21:54:04Z</created_at>
906
- <unit_amount_in_cents type="integer">1400</unit_amount_in_cents>
907
- <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
908
- <plan_interval_length type="integer">1</plan_interval_length>
909
- <plan_interval_unit>months</plan_interval_unit>
910
- <trial_interval_length type="integer">0</trial_interval_length>
911
- <trial_interval_unit>days</trial_interval_unit>
912
- </plan>
913
-
914
- http_version: "1.1"
915
- - !ruby/struct:VCR::HTTPInteraction
916
- request: !ruby/struct:VCR::Request
917
- method: :post
918
- uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/account-list-num-3-1313708721/subscription.xml
919
- body: |
920
- <?xml version="1.0" encoding="UTF-8"?>
921
- <subscription>
922
- <plan-code>paid</plan-code>
923
- <quantity type="integer">1</quantity>
924
- <account>
925
- <account-code>account-list-num-3-1313708721</account-code>
926
- <first-name>Verena</first-name>
927
- <last-name>Test</last-name>
928
- <email>verena@test.com</email>
929
- <company-name>Recurly Ruby Gem</company-name>
930
- <billing-info>
931
- <first-name>Verena</first-name>
932
- <last-name>Test</last-name>
933
- <address1>123 Test St</address1>
934
- <city>San Francisco</city>
935
- <state>CA</state>
936
- <zip>94115</zip>
937
- <country>US</country>
938
- <credit-card>
939
- <number>4111111111111111</number>
940
- <year type="integer">2012</year>
941
- <month type="integer">9</month>
942
- <verification-value>123</verification-value>
943
- </credit-card>
944
- </billing-info>
945
- <accept-language nil="true"></accept-language>
946
- <id>account-list-num-3-1313708721</id>
947
- <username nil="true"></username>
948
- <balance-in-cents type="integer">0</balance-in-cents>
949
- <closed type="boolean">false</closed>
950
- <hosted-login-token>4ce63e6677c342ffa7ec6440d764c1f0</hosted-login-token>
951
- <created-at type="datetime">2011-09-22T22:01:29Z</created-at>
952
- <state>active</state>
953
- </account>
954
- <addons type="array"/>
955
- </subscription>
956
-
957
- headers:
958
- user-agent:
959
- - Recurly Ruby Client v0.4.13
960
- content-type:
961
- - application/xml
962
- response: !ruby/struct:VCR::Response
963
- status: !ruby/struct:VCR::ResponseStatus
964
- code: 201
965
- message: Created
966
- headers:
967
- content-type:
968
- - application/xml; charset=utf-8
969
- cache-control:
970
- - no-cache
971
- x-ua-compatible:
972
- - IE=Edge
973
- set-cookie:
974
- - _recurly_session=00475ea8ce2d66a745c13d3e676dba3e; domain=.lvh.me; path=/; HttpOnly
975
- server:
976
- - thin 1.2.11 codename Bat-Shit Crazy
977
- body: |
978
- <?xml version="1.0" encoding="UTF-8"?>
979
- <subscription>
980
- <id>account-list-num-3-1313708721</id>
981
- <account_code>account-list-num-3-1313708721</account_code>
982
- <plan>
983
- <plan_code>paid</plan_code>
984
- <name>paid</name>
985
- </plan>
986
- <state>active</state>
987
- <quantity type="integer">1</quantity>
988
- <unit_amount_in_cents type="integer">1400</unit_amount_in_cents>
989
- <total_amount_in_cents type="integer">1400</total_amount_in_cents>
990
- <activated_at type="datetime">2011-09-22T22:01:34Z</activated_at>
991
- <canceled_at nil="true" type="datetime"></canceled_at>
992
- <expires_at nil="true" type="datetime"></expires_at>
993
- <current_period_started_at type="datetime">2011-09-22T22:01:34Z</current_period_started_at>
994
- <current_period_ends_at type="datetime">2011-10-22T22:01:34Z</current_period_ends_at>
995
- <trial_started_at nil="true" type="datetime"></trial_started_at>
996
- <trial_ends_at nil="true" type="datetime"></trial_ends_at>
997
- <add_ons type="array">
998
- </add_ons>
999
- </subscription>
1000
-
1001
- http_version: "1.1"
1002
- - !ruby/struct:VCR::HTTPInteraction
1003
- request: !ruby/struct:VCR::Request
1004
- method: :get
1005
- uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts.xml
1006
- body:
1007
- headers:
1008
- user-agent:
1009
- - Recurly Ruby Client v0.4.13
1010
- accept:
1011
- - application/xml
1012
- accept-encoding:
1013
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
1014
- response: !ruby/struct:VCR::Response
1015
- status: !ruby/struct:VCR::ResponseStatus
1016
- code: 200
1017
- message: OK
1018
- headers:
1019
- content-type:
1020
- - application/xml; charset=utf-8
1021
- etag:
1022
- - "\"5936b2c577dee7cfed54da4040a5097e\""
1023
- cache-control:
1024
- - max-age=0, private, must-revalidate
1025
- x-ua-compatible:
1026
- - IE=Edge
1027
- server:
1028
- - thin 1.2.11 codename Bat-Shit Crazy
1029
- body: |
1030
- <?xml version="1.0" encoding="UTF-8"?>
1031
- <accounts type="collection">
1032
- <current_page type="integer">1</current_page>
1033
- <per_page type="integer">20</per_page>
1034
- <total_entries type="integer">11</total_entries>
1035
- <account>
1036
- <account_code>account-create-1313708721</account_code>
1037
- <username></username>
1038
- <email>verena@test.com</email>
1039
- <first_name>Verena</first_name>
1040
- <last_name>Test</last_name>
1041
- <company_name>Recurly Ruby Gem</company_name>
1042
- <balance_in_cents type="integer">0</balance_in_cents>
1043
- </account>
1044
- <account>
1045
- <account_code>account-get-1313708721</account_code>
1046
- <username></username>
1047
- <email>verena@test.com</email>
1048
- <first_name>Verena</first_name>
1049
- <last_name>Test</last_name>
1050
- <company_name>Recurly Ruby Gem</company_name>
1051
- <balance_in_cents type="integer">0</balance_in_cents>
1052
- </account>
1053
- <account>
1054
- <account_code>account-list-num-0-1313708721</account_code>
1055
- <username></username>
1056
- <email>verena@test.com</email>
1057
- <first_name>Verena</first_name>
1058
- <last_name>Test</last_name>
1059
- <company_name>Recurly Ruby Gem</company_name>
1060
- <balance_in_cents type="integer">0</balance_in_cents>
1061
- </account>
1062
- <account>
1063
- <account_code>account-list-num-1-1313708721</account_code>
1064
- <username></username>
1065
- <email>verena@test.com</email>
1066
- <first_name>Verena</first_name>
1067
- <last_name>Test</last_name>
1068
- <company_name>Recurly Ruby Gem</company_name>
1069
- <balance_in_cents type="integer">0</balance_in_cents>
1070
- </account>
1071
- <account>
1072
- <account_code>account-list-num-2-1313708721</account_code>
1073
- <username></username>
1074
- <email>verena@test.com</email>
1075
- <first_name>Verena</first_name>
1076
- <last_name>Test</last_name>
1077
- <company_name>Recurly Ruby Gem</company_name>
1078
- <balance_in_cents type="integer">0</balance_in_cents>
1079
- </account>
1080
- <account>
1081
- <account_code>account-list-num-3-1313708721</account_code>
1082
- <username></username>
1083
- <email>verena@test.com</email>
1084
- <first_name>Verena</first_name>
1085
- <last_name>Test</last_name>
1086
- <company_name>Recurly Ruby Gem</company_name>
1087
- <balance_in_cents type="integer">0</balance_in_cents>
1088
- </account>
1089
- <account>
1090
- <account_code>account-list-num-4-1313708721</account_code>
1091
- <username></username>
1092
- <email>verena@test.com</email>
1093
- <first_name>Verena</first_name>
1094
- <last_name>Test</last_name>
1095
- <company_name>Recurly Ruby Gem</company_name>
1096
- <balance_in_cents type="integer">0</balance_in_cents>
1097
- </account>
1098
- <account>
1099
- <account_code>account-list-num-5-1313708721</account_code>
1100
- <username></username>
1101
- <email>verena@test.com</email>
1102
- <first_name>Verena</first_name>
1103
- <last_name>Test</last_name>
1104
- <company_name>Recurly Ruby Gem</company_name>
1105
- <balance_in_cents type="integer">0</balance_in_cents>
1106
- </account>
1107
- <account>
1108
- <account_code>account-list-num-6-1313708721</account_code>
1109
- <username></username>
1110
- <email>verena@test.com</email>
1111
- <first_name>Verena</first_name>
1112
- <last_name>Test</last_name>
1113
- <company_name>Recurly Ruby Gem</company_name>
1114
- <balance_in_cents type="integer">0</balance_in_cents>
1115
- </account>
1116
- <account>
1117
- <account_code>account-list-num-7-1313708721</account_code>
1118
- <username></username>
1119
- <email>verena@test.com</email>
1120
- <first_name>Verena</first_name>
1121
- <last_name>Test</last_name>
1122
- <company_name>Recurly Ruby Gem</company_name>
1123
- <balance_in_cents type="integer">0</balance_in_cents>
1124
- </account>
1125
- <account>
1126
- <account_code>d00d-1313708721</account_code>
1127
- <username></username>
1128
- <email></email>
1129
- <first_name></first_name>
1130
- <last_name></last_name>
1131
- <company_name></company_name>
1132
- <balance_in_cents type="integer">0</balance_in_cents>
1133
- </account>
1134
- </accounts>
1135
-
1136
- http_version: "1.1"
1137
- - !ruby/struct:VCR::HTTPInteraction
1138
- request: !ruby/struct:VCR::Request
1139
- method: :get
1140
- uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts.xml?show=active_subscribers
1141
- body:
1142
- headers:
1143
- user-agent:
1144
- - Recurly Ruby Client v0.4.13
1145
- accept:
1146
- - application/xml
1147
- accept-encoding:
1148
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
1149
- response: !ruby/struct:VCR::Response
1150
- status: !ruby/struct:VCR::ResponseStatus
1151
- code: 200
1152
- message: OK
1153
- headers:
1154
- content-type:
1155
- - application/xml; charset=utf-8
1156
- etag:
1157
- - "\"cd71abe0bebbfcf74311c85546fde64d\""
1158
- cache-control:
1159
- - max-age=0, private, must-revalidate
1160
- x-ua-compatible:
1161
- - IE=Edge
1162
- server:
1163
- - thin 1.2.11 codename Bat-Shit Crazy
1164
- body: |
1165
- <?xml version="1.0" encoding="UTF-8"?>
1166
- <accounts type="collection">
1167
- <current_page type="integer">1</current_page>
1168
- <per_page type="integer">20</per_page>
1169
- <total_entries type="integer">4</total_entries>
1170
- <account>
1171
- <account_code>account-list-num-0-1313708721</account_code>
1172
- <username></username>
1173
- <email>verena@test.com</email>
1174
- <first_name>Verena</first_name>
1175
- <last_name>Test</last_name>
1176
- <company_name>Recurly Ruby Gem</company_name>
1177
- <balance_in_cents type="integer">0</balance_in_cents>
1178
- </account>
1179
- <account>
1180
- <account_code>account-list-num-1-1313708721</account_code>
1181
- <username></username>
1182
- <email>verena@test.com</email>
1183
- <first_name>Verena</first_name>
1184
- <last_name>Test</last_name>
1185
- <company_name>Recurly Ruby Gem</company_name>
1186
- <balance_in_cents type="integer">0</balance_in_cents>
1187
- </account>
1188
- <account>
1189
- <account_code>account-list-num-2-1313708721</account_code>
1190
- <username></username>
1191
- <email>verena@test.com</email>
1192
- <first_name>Verena</first_name>
1193
- <last_name>Test</last_name>
1194
- <company_name>Recurly Ruby Gem</company_name>
1195
- <balance_in_cents type="integer">0</balance_in_cents>
1196
- </account>
1197
- <account>
1198
- <account_code>account-list-num-3-1313708721</account_code>
1199
- <username></username>
1200
- <email>verena@test.com</email>
1201
- <first_name>Verena</first_name>
1202
- <last_name>Test</last_name>
1203
- <company_name>Recurly Ruby Gem</company_name>
1204
- <balance_in_cents type="integer">0</balance_in_cents>
1205
- </account>
1206
- </accounts>
1207
-
1208
- http_version: "1.1"
1209
- - !ruby/struct:VCR::HTTPInteraction
1210
- request: !ruby/struct:VCR::Request
1211
- method: :get
1212
- uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts.xml?show=non_subscribers
1213
- body:
1214
- headers:
1215
- user-agent:
1216
- - Recurly Ruby Client v0.4.13
1217
- accept:
1218
- - application/xml
1219
- accept-encoding:
1220
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
1221
- response: !ruby/struct:VCR::Response
1222
- status: !ruby/struct:VCR::ResponseStatus
1223
- code: 200
1224
- message: OK
1225
- headers:
1226
- content-type:
1227
- - application/xml; charset=utf-8
1228
- etag:
1229
- - "\"c9a3579b86e3ce686c3b34b8fe87f87d\""
1230
- cache-control:
1231
- - max-age=0, private, must-revalidate
1232
- x-ua-compatible:
1233
- - IE=Edge
1234
- server:
1235
- - thin 1.2.11 codename Bat-Shit Crazy
1236
- body: |
1237
- <?xml version="1.0" encoding="UTF-8"?>
1238
- <accounts type="collection">
1239
- <current_page type="integer">1</current_page>
1240
- <per_page type="integer">20</per_page>
1241
- <total_entries type="integer">7</total_entries>
1242
- <account>
1243
- <account_code>account-create-1313708721</account_code>
1244
- <username></username>
1245
- <email>verena@test.com</email>
1246
- <first_name>Verena</first_name>
1247
- <last_name>Test</last_name>
1248
- <company_name>Recurly Ruby Gem</company_name>
1249
- <balance_in_cents type="integer">0</balance_in_cents>
1250
- </account>
1251
- <account>
1252
- <account_code>account-get-1313708721</account_code>
1253
- <username></username>
1254
- <email>verena@test.com</email>
1255
- <first_name>Verena</first_name>
1256
- <last_name>Test</last_name>
1257
- <company_name>Recurly Ruby Gem</company_name>
1258
- <balance_in_cents type="integer">0</balance_in_cents>
1259
- </account>
1260
- <account>
1261
- <account_code>account-list-num-4-1313708721</account_code>
1262
- <username></username>
1263
- <email>verena@test.com</email>
1264
- <first_name>Verena</first_name>
1265
- <last_name>Test</last_name>
1266
- <company_name>Recurly Ruby Gem</company_name>
1267
- <balance_in_cents type="integer">0</balance_in_cents>
1268
- </account>
1269
- <account>
1270
- <account_code>account-list-num-5-1313708721</account_code>
1271
- <username></username>
1272
- <email>verena@test.com</email>
1273
- <first_name>Verena</first_name>
1274
- <last_name>Test</last_name>
1275
- <company_name>Recurly Ruby Gem</company_name>
1276
- <balance_in_cents type="integer">0</balance_in_cents>
1277
- </account>
1278
- <account>
1279
- <account_code>account-list-num-6-1313708721</account_code>
1280
- <username></username>
1281
- <email>verena@test.com</email>
1282
- <first_name>Verena</first_name>
1283
- <last_name>Test</last_name>
1284
- <company_name>Recurly Ruby Gem</company_name>
1285
- <balance_in_cents type="integer">0</balance_in_cents>
1286
- </account>
1287
- <account>
1288
- <account_code>account-list-num-7-1313708721</account_code>
1289
- <username></username>
1290
- <email>verena@test.com</email>
1291
- <first_name>Verena</first_name>
1292
- <last_name>Test</last_name>
1293
- <company_name>Recurly Ruby Gem</company_name>
1294
- <balance_in_cents type="integer">0</balance_in_cents>
1295
- </account>
1296
- <account>
1297
- <account_code>d00d-1313708721</account_code>
1298
- <username></username>
1299
- <email></email>
1300
- <first_name></first_name>
1301
- <last_name></last_name>
1302
- <company_name></company_name>
1303
- <balance_in_cents type="integer">0</balance_in_cents>
1304
- </account>
1305
- </accounts>
1306
-
1307
- http_version: "1.1"