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.
- data/lib/patches/rails2/active_resource/base.rb +35 -0
- data/lib/patches/rails3/active_model/serializers/xml.rb +28 -0
- data/lib/recurly.rb +14 -4
- data/lib/recurly/account.rb +6 -3
- data/lib/recurly/base.rb +1 -2
- data/lib/recurly/subscription.rb +7 -0
- data/lib/recurly/version.rb +1 -1
- data/spec/config/recurly.yml +4 -4
- data/spec/integration/subscription_spec.rb +2 -1
- metadata +108 -220
- data/spec/vcr/account/accept-language-account/1313708721.yml +0 -60
- data/spec/vcr/account/close/1313708721.yml +0 -132
- data/spec/vcr/account/create-blank/1313708721.yml +0 -44
- data/spec/vcr/account/create-duplicate/1313708721.yml +0 -98
- data/spec/vcr/account/create-min/1313708721.yml +0 -56
- data/spec/vcr/account/create/1313708721.yml +0 -60
- data/spec/vcr/account/find/1313708721.yml +0 -137
- data/spec/vcr/account/list/1313708721.yml +0 -1307
- data/spec/vcr/account/update/1313708721.yml +0 -216
- data/spec/vcr/billing/create/1313708721.yml +0 -181
- data/spec/vcr/billing/destroy/1313708721.yml +0 -240
- data/spec/vcr/billing/errors/1313708721.yml +0 -106
- data/spec/vcr/billing/find/1313708721.yml +0 -234
- data/spec/vcr/billing/update/1313708721.yml +0 -251
- data/spec/vcr/charge/create/1313708721.yml +0 -222
- data/spec/vcr/charge/delete-uninvoiced/1313708721.yml +0 -247
- data/spec/vcr/charge/list-all/1313708721.yml +0 -276
- data/spec/vcr/charge/list-invoiced/1313708721.yml +0 -411
- data/spec/vcr/charge/list-pending/1313708721.yml +0 -276
- data/spec/vcr/charge/lookup/1313708721.yml +0 -152
- data/spec/vcr/coupon/create/1296774903.yml +0 -97
- data/spec/vcr/coupon/destroy/1296774903.yml +0 -97
- data/spec/vcr/credit/create/1313708090.yml +0 -152
- data/spec/vcr/credit/delete/1313708090.yml +0 -211
- data/spec/vcr/credit/list/1313708090.yml +0 -276
- data/spec/vcr/credit/lookup/1313708090.yml +0 -152
- data/spec/vcr/invoice/create-no-charges/1296674173.yml +0 -166
- data/spec/vcr/invoice/create/1296674173.yml +0 -302
- data/spec/vcr/invoice/list/1296674173.yml +0 -405
- data/spec/vcr/invoice/lookup/1296674173.yml +0 -304
- data/spec/vcr/plan/all.yml +0 -233
- data/spec/vcr/plan/find.yml +0 -136
- data/spec/vcr/plan/update.yml +0 -152
- data/spec/vcr/subscription/addons/add/1296674173.yml +0 -177
- data/spec/vcr/subscription/addons/create/1296674173.yml +0 -177
- data/spec/vcr/subscription/addons/remove/1296674173.yml +0 -177
- data/spec/vcr/subscription/cancel-with-code/1296674173.yml +0 -400
- data/spec/vcr/subscription/cancel/1296674173.yml +0 -348
- data/spec/vcr/subscription/change1/1296674173.yml +0 -354
- data/spec/vcr/subscription/change2/1296674173.yml +0 -354
- data/spec/vcr/subscription/create/1296674173.yml +0 -192
- data/spec/vcr/subscription/find/1296674173.yml +0 -244
- data/spec/vcr/subscription/reactivate/1296674173.yml +0 -377
- data/spec/vcr/subscription/refund-full/1296674173.yml +0 -328
- data/spec/vcr/subscription/refund-none/1296674173.yml +0 -328
- data/spec/vcr/subscription/refund-partial/1296674173.yml +0 -328
- data/spec/vcr/transaction/all/1311126815.yml +0 -397
- data/spec/vcr/transaction/create-no-account/1311126815.yml +0 -82
- data/spec/vcr/transaction/create-with-account/1311126815.yml +0 -196
- data/spec/vcr/transaction/list-filled/1311126815.yml +0 -544
- data/spec/vcr/transaction/list-initial/1311126815.yml +0 -184
- data/spec/vcr/transaction/lookup/1311126815.yml +0 -487
- data/spec/vcr/transaction/void/1311126815.yml +0 -321
- data/spec/vcr/transparent/post-url/1317063400.yml +0 -105
- data/spec/vcr/transparent/post-url/1317063474.yml +0 -105
@@ -1,304 +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>invoice-lookup-1296674173</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/invoice-lookup-1296674173
|
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=8dc236e34709d870eb13e7d6ae274d8f; 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>invoice-lookup-1296674173</id>
|
47
|
-
<account_code>invoice-lookup-1296674173</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>37a1fc4334f7420bbbc0dd6439acd662</hosted_login_token>
|
56
|
-
<created_at type="datetime">2011-09-22T22:01:53Z</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: :put
|
64
|
-
uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/invoice-lookup-1296674173/billing_info.xml
|
65
|
-
body: |
|
66
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
67
|
-
<billing-info>
|
68
|
-
<first-name>Verena</first-name>
|
69
|
-
<last-name>Test</last-name>
|
70
|
-
<address1>123 Test St</address1>
|
71
|
-
<city>San Francisco</city>
|
72
|
-
<state>CA</state>
|
73
|
-
<zip>94115</zip>
|
74
|
-
<country>US</country>
|
75
|
-
<credit-card>
|
76
|
-
<number>4111111111111111</number>
|
77
|
-
<year type="integer">2012</year>
|
78
|
-
<month type="integer">9</month>
|
79
|
-
<verification-value>123</verification-value>
|
80
|
-
</credit-card>
|
81
|
-
<account-code>invoice-lookup-1296674173</account-code>
|
82
|
-
</billing-info>
|
83
|
-
|
84
|
-
headers:
|
85
|
-
user-agent:
|
86
|
-
- Recurly Ruby Client v0.4.13
|
87
|
-
content-type:
|
88
|
-
- application/xml
|
89
|
-
response: !ruby/struct:VCR::Response
|
90
|
-
status: !ruby/struct:VCR::ResponseStatus
|
91
|
-
code: 200
|
92
|
-
message: OK
|
93
|
-
headers:
|
94
|
-
content-type:
|
95
|
-
- application/xml; charset=utf-8
|
96
|
-
etag:
|
97
|
-
- "\"8a7c79dcba4d1e9b5dfe23658f055be2\""
|
98
|
-
cache-control:
|
99
|
-
- max-age=0, private, must-revalidate
|
100
|
-
x-ua-compatible:
|
101
|
-
- IE=Edge
|
102
|
-
set-cookie:
|
103
|
-
- _recurly_session=aecda2d6793d58b85e70eab8c062ac06; domain=.lvh.me; path=/; HttpOnly
|
104
|
-
server:
|
105
|
-
- thin 1.2.11 codename Bat-Shit Crazy
|
106
|
-
body: |
|
107
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
108
|
-
<billing_info>
|
109
|
-
<account_code>invoice-lookup-1296674173</account_code>
|
110
|
-
<first_name>Verena</first_name>
|
111
|
-
<last_name>Test</last_name>
|
112
|
-
<address1>123 Test St</address1>
|
113
|
-
<address2></address2>
|
114
|
-
<city>San Francisco</city>
|
115
|
-
<state>CA</state>
|
116
|
-
<country>US</country>
|
117
|
-
<zip>94115</zip>
|
118
|
-
<phone></phone>
|
119
|
-
<vat_number></vat_number>
|
120
|
-
<ip_address></ip_address>
|
121
|
-
<credit_card>
|
122
|
-
<type>visa</type>
|
123
|
-
<last_four>1111</last_four>
|
124
|
-
<month type="integer">9</month>
|
125
|
-
<year type="integer">2012</year>
|
126
|
-
</credit_card>
|
127
|
-
<updated_at type="datetime">2011-09-22T22:01:54Z</updated_at>
|
128
|
-
</billing_info>
|
129
|
-
|
130
|
-
http_version: "1.1"
|
131
|
-
- !ruby/struct:VCR::HTTPInteraction
|
132
|
-
request: !ruby/struct:VCR::Request
|
133
|
-
method: :post
|
134
|
-
uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/invoice-lookup-1296674173/charges.xml
|
135
|
-
body: |
|
136
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
137
|
-
<charge>
|
138
|
-
<amount type="float">15.0</amount>
|
139
|
-
<description>charge description</description>
|
140
|
-
</charge>
|
141
|
-
|
142
|
-
headers:
|
143
|
-
user-agent:
|
144
|
-
- Recurly Ruby Client v0.4.13
|
145
|
-
content-type:
|
146
|
-
- application/xml
|
147
|
-
response: !ruby/struct:VCR::Response
|
148
|
-
status: !ruby/struct:VCR::ResponseStatus
|
149
|
-
code: 201
|
150
|
-
message: Created
|
151
|
-
headers:
|
152
|
-
content-type:
|
153
|
-
- application/xml; charset=utf-8
|
154
|
-
cache-control:
|
155
|
-
- no-cache
|
156
|
-
x-ua-compatible:
|
157
|
-
- IE=Edge
|
158
|
-
set-cookie:
|
159
|
-
- _recurly_session=dc8feda72fceef101a56d7793579426e; domain=.lvh.me; path=/; HttpOnly
|
160
|
-
server:
|
161
|
-
- thin 1.2.11 codename Bat-Shit Crazy
|
162
|
-
body: |
|
163
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
164
|
-
<charge type="charge">
|
165
|
-
<id>e6dd072602394bf98ad3bece4eb2885f</id>
|
166
|
-
<account_code>invoice-lookup-1296674173</account_code>
|
167
|
-
<quantity type="integer">1</quantity>
|
168
|
-
<unit_amount_in_cents type="integer">1500</unit_amount_in_cents>
|
169
|
-
<amount_in_cents type="integer">1500</amount_in_cents>
|
170
|
-
<currency>USD</currency>
|
171
|
-
<start_date type="datetime">2011-09-22T22:01:54Z</start_date>
|
172
|
-
<end_date nil="true" type="datetime"></end_date>
|
173
|
-
<invoice_number nil="true" type="integer"></invoice_number>
|
174
|
-
<description>charge description</description>
|
175
|
-
<created_at type="datetime">2011-09-22T22:01:54Z</created_at>
|
176
|
-
</charge>
|
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/invoice-lookup-1296674173/invoices.xml
|
183
|
-
body: |
|
184
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
185
|
-
<invoice>
|
186
|
-
</invoice>
|
187
|
-
|
188
|
-
headers:
|
189
|
-
user-agent:
|
190
|
-
- Recurly Ruby Client v0.4.13
|
191
|
-
content-type:
|
192
|
-
- application/xml
|
193
|
-
response: !ruby/struct:VCR::Response
|
194
|
-
status: !ruby/struct:VCR::ResponseStatus
|
195
|
-
code: 201
|
196
|
-
message: Created
|
197
|
-
headers:
|
198
|
-
location:
|
199
|
-
- http://api.lvh.me:3000/invoices/4c3e5cef9ab24565b61be9605f4dd6fc
|
200
|
-
content-type:
|
201
|
-
- application/xml; charset=utf-8
|
202
|
-
cache-control:
|
203
|
-
- no-cache
|
204
|
-
x-ua-compatible:
|
205
|
-
- IE=Edge
|
206
|
-
set-cookie:
|
207
|
-
- _recurly_session=6389cbc039cd9ad2b42dccfc8adcde3e; domain=.lvh.me; path=/; HttpOnly
|
208
|
-
server:
|
209
|
-
- thin 1.2.11 codename Bat-Shit Crazy
|
210
|
-
body: |
|
211
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
212
|
-
<invoice>
|
213
|
-
<id>4c3e5cef9ab24565b61be9605f4dd6fc</id>
|
214
|
-
<account_code>invoice-lookup-1296674173</account_code>
|
215
|
-
<date type="datetime">2011-09-22T22:01:54Z</date>
|
216
|
-
<invoice_number type="integer">1072</invoice_number>
|
217
|
-
<vat_number></vat_number>
|
218
|
-
<status>open</status>
|
219
|
-
<subtotal_in_cents type="integer">1500</subtotal_in_cents>
|
220
|
-
<total_in_cents type="integer">1500</total_in_cents>
|
221
|
-
<vat_amount_in_cents type="integer">0</vat_amount_in_cents>
|
222
|
-
<paid_in_cents type="integer">0</paid_in_cents>
|
223
|
-
<total_due_in_cents type="integer">1500</total_due_in_cents>
|
224
|
-
<discount_in_cents type="integer">0</discount_in_cents>
|
225
|
-
<currency>USD</currency>
|
226
|
-
<line_items type="array">
|
227
|
-
<line_item>
|
228
|
-
<id>e6dd072602394bf98ad3bece4eb2885f</id>
|
229
|
-
<type>charge</type>
|
230
|
-
<amount_in_cents type="integer">1500</amount_in_cents>
|
231
|
-
<currency>USD</currency>
|
232
|
-
<start_date type="datetime">2011-09-22T22:01:54Z</start_date>
|
233
|
-
<end_date nil="true" type="datetime"></end_date>
|
234
|
-
<description>charge description</description>
|
235
|
-
<created_at type="datetime">2011-09-22T22:01:54Z</created_at>
|
236
|
-
<applied_coupon_code></applied_coupon_code>
|
237
|
-
</line_item>
|
238
|
-
</line_items>
|
239
|
-
<payments type="array">
|
240
|
-
</payments>
|
241
|
-
</invoice>
|
242
|
-
|
243
|
-
http_version: "1.1"
|
244
|
-
- !ruby/struct:VCR::HTTPInteraction
|
245
|
-
request: !ruby/struct:VCR::Request
|
246
|
-
method: :get
|
247
|
-
uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/invoices/4c3e5cef9ab24565b61be9605f4dd6fc.xml
|
248
|
-
body:
|
249
|
-
headers:
|
250
|
-
user-agent:
|
251
|
-
- Recurly Ruby Client v0.4.13
|
252
|
-
accept:
|
253
|
-
- application/xml
|
254
|
-
accept-encoding:
|
255
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
256
|
-
response: !ruby/struct:VCR::Response
|
257
|
-
status: !ruby/struct:VCR::ResponseStatus
|
258
|
-
code: 200
|
259
|
-
message: OK
|
260
|
-
headers:
|
261
|
-
content-type:
|
262
|
-
- application/xml; charset=utf-8
|
263
|
-
etag:
|
264
|
-
- "\"e7c4fb36c34e75844a0cff5619461b5e\""
|
265
|
-
cache-control:
|
266
|
-
- max-age=0, private, must-revalidate
|
267
|
-
x-ua-compatible:
|
268
|
-
- IE=Edge
|
269
|
-
server:
|
270
|
-
- thin 1.2.11 codename Bat-Shit Crazy
|
271
|
-
body: |
|
272
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
273
|
-
<invoice>
|
274
|
-
<id>4c3e5cef9ab24565b61be9605f4dd6fc</id>
|
275
|
-
<account_code>invoice-lookup-1296674173</account_code>
|
276
|
-
<date type="datetime">2011-09-22T22:01:54Z</date>
|
277
|
-
<invoice_number type="integer">1072</invoice_number>
|
278
|
-
<vat_number></vat_number>
|
279
|
-
<status>open</status>
|
280
|
-
<subtotal_in_cents type="integer">1500</subtotal_in_cents>
|
281
|
-
<total_in_cents type="integer">1500</total_in_cents>
|
282
|
-
<vat_amount_in_cents type="integer">0</vat_amount_in_cents>
|
283
|
-
<paid_in_cents type="integer">0</paid_in_cents>
|
284
|
-
<total_due_in_cents type="integer">1500</total_due_in_cents>
|
285
|
-
<discount_in_cents type="integer">0</discount_in_cents>
|
286
|
-
<currency>USD</currency>
|
287
|
-
<line_items type="array">
|
288
|
-
<line_item>
|
289
|
-
<id>e6dd072602394bf98ad3bece4eb2885f</id>
|
290
|
-
<type>charge</type>
|
291
|
-
<amount_in_cents type="integer">1500</amount_in_cents>
|
292
|
-
<currency>USD</currency>
|
293
|
-
<start_date type="datetime">2011-09-22T22:01:54Z</start_date>
|
294
|
-
<end_date nil="true" type="datetime"></end_date>
|
295
|
-
<description>charge description</description>
|
296
|
-
<created_at type="datetime">2011-09-22T22:01:54Z</created_at>
|
297
|
-
<applied_coupon_code></applied_coupon_code>
|
298
|
-
</line_item>
|
299
|
-
</line_items>
|
300
|
-
<payments type="array">
|
301
|
-
</payments>
|
302
|
-
</invoice>
|
303
|
-
|
304
|
-
http_version: "1.1"
|
data/spec/vcr/plan/all.yml
DELETED
@@ -1,233 +0,0 @@
|
|
1
|
-
---
|
2
|
-
- !ruby/struct:VCR::HTTPInteraction
|
3
|
-
request: !ruby/struct:VCR::Request
|
4
|
-
method: :get
|
5
|
-
uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/plans/paid.xml
|
6
|
-
body:
|
7
|
-
headers:
|
8
|
-
user-agent:
|
9
|
-
- Recurly Ruby Client v0.4.13
|
10
|
-
accept:
|
11
|
-
- application/xml
|
12
|
-
accept-encoding:
|
13
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
-
response: !ruby/struct:VCR::Response
|
15
|
-
status: !ruby/struct:VCR::ResponseStatus
|
16
|
-
code: 200
|
17
|
-
message: OK
|
18
|
-
headers:
|
19
|
-
content-type:
|
20
|
-
- application/xml; charset=utf-8
|
21
|
-
etag:
|
22
|
-
- "\"7487d065869e9c487e0a588e1edea5dc\""
|
23
|
-
cache-control:
|
24
|
-
- max-age=0, private, must-revalidate
|
25
|
-
x-ua-compatible:
|
26
|
-
- IE=Edge
|
27
|
-
server:
|
28
|
-
- thin 1.2.11 codename Bat-Shit Crazy
|
29
|
-
body: |
|
30
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
31
|
-
<plan>
|
32
|
-
<plan_code>paid</plan_code>
|
33
|
-
<name>paid</name>
|
34
|
-
<description></description>
|
35
|
-
<success_url></success_url>
|
36
|
-
<cancel_url></cancel_url>
|
37
|
-
<created_at type="datetime">2011-09-22T21:54:04Z</created_at>
|
38
|
-
<unit_amount_in_cents type="integer">1400</unit_amount_in_cents>
|
39
|
-
<setup_fee_in_cents type="integer">0</setup_fee_in_cents>
|
40
|
-
<plan_interval_length type="integer">1</plan_interval_length>
|
41
|
-
<plan_interval_unit>months</plan_interval_unit>
|
42
|
-
<trial_interval_length type="integer">0</trial_interval_length>
|
43
|
-
<trial_interval_unit>days</trial_interval_unit>
|
44
|
-
</plan>
|
45
|
-
|
46
|
-
http_version: "1.1"
|
47
|
-
- !ruby/struct:VCR::HTTPInteraction
|
48
|
-
request: !ruby/struct:VCR::Request
|
49
|
-
method: :get
|
50
|
-
uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/plans/trial.xml
|
51
|
-
body:
|
52
|
-
headers:
|
53
|
-
user-agent:
|
54
|
-
- Recurly Ruby Client v0.4.13
|
55
|
-
accept:
|
56
|
-
- application/xml
|
57
|
-
accept-encoding:
|
58
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
59
|
-
response: !ruby/struct:VCR::Response
|
60
|
-
status: !ruby/struct:VCR::ResponseStatus
|
61
|
-
code: 200
|
62
|
-
message: OK
|
63
|
-
headers:
|
64
|
-
content-type:
|
65
|
-
- application/xml; charset=utf-8
|
66
|
-
etag:
|
67
|
-
- "\"30194122ddc8b67ae0416d6254a14cb0\""
|
68
|
-
cache-control:
|
69
|
-
- max-age=0, private, must-revalidate
|
70
|
-
x-ua-compatible:
|
71
|
-
- IE=Edge
|
72
|
-
server:
|
73
|
-
- thin 1.2.11 codename Bat-Shit Crazy
|
74
|
-
body: |
|
75
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
76
|
-
<plan>
|
77
|
-
<plan_code>trial</plan_code>
|
78
|
-
<name>Trial</name>
|
79
|
-
<description></description>
|
80
|
-
<success_url></success_url>
|
81
|
-
<cancel_url></cancel_url>
|
82
|
-
<created_at type="datetime">2011-09-22T21:58:23Z</created_at>
|
83
|
-
<unit_amount_in_cents type="integer"></unit_amount_in_cents>
|
84
|
-
<setup_fee_in_cents type="integer"></setup_fee_in_cents>
|
85
|
-
<plan_interval_length type="integer">1</plan_interval_length>
|
86
|
-
<plan_interval_unit>months</plan_interval_unit>
|
87
|
-
<trial_interval_length type="integer">1</trial_interval_length>
|
88
|
-
<trial_interval_unit>months</trial_interval_unit>
|
89
|
-
</plan>
|
90
|
-
|
91
|
-
http_version: "1.1"
|
92
|
-
- !ruby/struct:VCR::HTTPInteraction
|
93
|
-
request: !ruby/struct:VCR::Request
|
94
|
-
method: :get
|
95
|
-
uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/plans.xml
|
96
|
-
body:
|
97
|
-
headers:
|
98
|
-
user-agent:
|
99
|
-
- Recurly Ruby Client v0.4.13
|
100
|
-
accept:
|
101
|
-
- application/xml
|
102
|
-
accept-encoding:
|
103
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
104
|
-
response: !ruby/struct:VCR::Response
|
105
|
-
status: !ruby/struct:VCR::ResponseStatus
|
106
|
-
code: 200
|
107
|
-
message: OK
|
108
|
-
headers:
|
109
|
-
content-type:
|
110
|
-
- application/xml; charset=utf-8
|
111
|
-
etag:
|
112
|
-
- "\"cb1e8859959a6bd90e38cf0a22bcafe8\""
|
113
|
-
cache-control:
|
114
|
-
- max-age=0, private, must-revalidate
|
115
|
-
x-ua-compatible:
|
116
|
-
- IE=Edge
|
117
|
-
server:
|
118
|
-
- thin 1.2.11 codename Bat-Shit Crazy
|
119
|
-
body: |
|
120
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
121
|
-
<plans type="array">
|
122
|
-
<plan>
|
123
|
-
<plan_code>bronze</plan_code>
|
124
|
-
<name>Bronze</name>
|
125
|
-
<description></description>
|
126
|
-
<created_at type="datetime">2011-01-22T00:06:38Z</created_at>
|
127
|
-
<plan_interval_length type="integer">1</plan_interval_length>
|
128
|
-
<plan_interval_unit>months</plan_interval_unit>
|
129
|
-
<trial_interval_length type="integer">0</trial_interval_length>
|
130
|
-
<trial_interval_unit>days</trial_interval_unit>
|
131
|
-
<unit_amount_in_cents type="integer" depreciated="true">100</unit_amount_in_cents>
|
132
|
-
<setup_fee_in_cents type="integer" depreciated="true">0</setup_fee_in_cents>
|
133
|
-
<currencies type="array">
|
134
|
-
<currency>
|
135
|
-
<currency_code>USD</currency_code>
|
136
|
-
<unit_amount_in_cents type="integer">100</unit_amount_in_cents>
|
137
|
-
<setup_fee_in_cents type="integer">0</setup_fee_in_cents>
|
138
|
-
</currency>
|
139
|
-
</currencies>
|
140
|
-
</plan>
|
141
|
-
<plan>
|
142
|
-
<plan_code>gold</plan_code>
|
143
|
-
<name>Gold</name>
|
144
|
-
<description></description>
|
145
|
-
<created_at type="datetime">2011-05-05T22:27:14Z</created_at>
|
146
|
-
<plan_interval_length type="integer">1</plan_interval_length>
|
147
|
-
<plan_interval_unit>months</plan_interval_unit>
|
148
|
-
<trial_interval_length type="integer">0</trial_interval_length>
|
149
|
-
<trial_interval_unit>days</trial_interval_unit>
|
150
|
-
<unit_amount_in_cents type="integer" depreciated="true">1200</unit_amount_in_cents>
|
151
|
-
<setup_fee_in_cents type="integer" depreciated="true">0</setup_fee_in_cents>
|
152
|
-
<currencies type="array">
|
153
|
-
<currency>
|
154
|
-
<currency_code>USD</currency_code>
|
155
|
-
<unit_amount_in_cents type="integer">1200</unit_amount_in_cents>
|
156
|
-
<setup_fee_in_cents type="integer">0</setup_fee_in_cents>
|
157
|
-
</currency>
|
158
|
-
</currencies>
|
159
|
-
</plan>
|
160
|
-
<plan>
|
161
|
-
<plan_code>paid</plan_code>
|
162
|
-
<name>paid</name>
|
163
|
-
<description></description>
|
164
|
-
<created_at type="datetime">2011-09-22T21:54:04Z</created_at>
|
165
|
-
<plan_interval_length type="integer">1</plan_interval_length>
|
166
|
-
<plan_interval_unit>months</plan_interval_unit>
|
167
|
-
<trial_interval_length type="integer">0</trial_interval_length>
|
168
|
-
<trial_interval_unit>days</trial_interval_unit>
|
169
|
-
<unit_amount_in_cents type="integer" depreciated="true">1400</unit_amount_in_cents>
|
170
|
-
<setup_fee_in_cents type="integer" depreciated="true">0</setup_fee_in_cents>
|
171
|
-
<currencies type="array">
|
172
|
-
<currency>
|
173
|
-
<currency_code>USD</currency_code>
|
174
|
-
<unit_amount_in_cents type="integer">1400</unit_amount_in_cents>
|
175
|
-
<setup_fee_in_cents type="integer">0</setup_fee_in_cents>
|
176
|
-
</currency>
|
177
|
-
</currencies>
|
178
|
-
</plan>
|
179
|
-
<plan>
|
180
|
-
<plan_code>platinum</plan_code>
|
181
|
-
<name>Platinum</name>
|
182
|
-
<description></description>
|
183
|
-
<created_at type="datetime">2011-03-02T19:23:33Z</created_at>
|
184
|
-
<plan_interval_length type="integer">3</plan_interval_length>
|
185
|
-
<plan_interval_unit>months</plan_interval_unit>
|
186
|
-
<trial_interval_length type="integer">7</trial_interval_length>
|
187
|
-
<trial_interval_unit>days</trial_interval_unit>
|
188
|
-
<unit_amount_in_cents type="integer" depreciated="true">5500</unit_amount_in_cents>
|
189
|
-
<setup_fee_in_cents type="integer" depreciated="true">0</setup_fee_in_cents>
|
190
|
-
<currencies type="array">
|
191
|
-
<currency>
|
192
|
-
<currency_code>USD</currency_code>
|
193
|
-
<unit_amount_in_cents type="integer">5500</unit_amount_in_cents>
|
194
|
-
<setup_fee_in_cents type="integer">0</setup_fee_in_cents>
|
195
|
-
</currency>
|
196
|
-
</currencies>
|
197
|
-
</plan>
|
198
|
-
<plan>
|
199
|
-
<plan_code>test</plan_code>
|
200
|
-
<name>Test Plan</name>
|
201
|
-
<description></description>
|
202
|
-
<created_at type="datetime">2011-09-22T21:58:24Z</created_at>
|
203
|
-
<plan_interval_length type="integer">1</plan_interval_length>
|
204
|
-
<plan_interval_unit>months</plan_interval_unit>
|
205
|
-
<trial_interval_length type="integer">0</trial_interval_length>
|
206
|
-
<trial_interval_unit>months</trial_interval_unit>
|
207
|
-
<unit_amount_in_cents type="integer" depreciated="true">200</unit_amount_in_cents>
|
208
|
-
<setup_fee_in_cents type="integer" depreciated="true">0</setup_fee_in_cents>
|
209
|
-
<currencies type="array">
|
210
|
-
<currency>
|
211
|
-
<currency_code>USD</currency_code>
|
212
|
-
<unit_amount_in_cents type="integer">200</unit_amount_in_cents>
|
213
|
-
<setup_fee_in_cents type="integer">0</setup_fee_in_cents>
|
214
|
-
</currency>
|
215
|
-
</currencies>
|
216
|
-
</plan>
|
217
|
-
<plan>
|
218
|
-
<plan_code>trial</plan_code>
|
219
|
-
<name>Trial</name>
|
220
|
-
<description></description>
|
221
|
-
<created_at type="datetime">2011-09-22T21:58:23Z</created_at>
|
222
|
-
<plan_interval_length type="integer">1</plan_interval_length>
|
223
|
-
<plan_interval_unit>months</plan_interval_unit>
|
224
|
-
<trial_interval_length type="integer">1</trial_interval_length>
|
225
|
-
<trial_interval_unit>months</trial_interval_unit>
|
226
|
-
<unit_amount_in_cents type="integer" depreciated="true"></unit_amount_in_cents>
|
227
|
-
<setup_fee_in_cents type="integer" depreciated="true"></setup_fee_in_cents>
|
228
|
-
<currencies type="array">
|
229
|
-
</currencies>
|
230
|
-
</plan>
|
231
|
-
</plans>
|
232
|
-
|
233
|
-
http_version: "1.1"
|