recurly 0.4.11 → 0.4.13
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/README.md +4 -8
- data/lib/recurly.rb +10 -19
- data/lib/recurly/config_parser.rb +5 -2
- data/lib/recurly/plan.rb +0 -1
- data/lib/recurly/rails3/recurly.rake +10 -26
- data/lib/recurly/transparent.rb +2 -0
- data/lib/recurly/verification.rb +14 -8
- data/lib/recurly/version.rb +1 -1
- data/spec/config/recurly.yml +3 -3
- data/spec/config/test1.yml +1 -3
- data/spec/config/test2.yml +2 -6
- data/spec/unit/config_spec.rb +9 -16
- data/spec/unit/transparent_spec.rb +0 -20
- data/spec/unit/verification_spec.rb +15 -9
- data/spec/vcr/account/accept-language-account/1313708721.yml +52 -31
- data/spec/vcr/account/close/1313708721.yml +107 -79
- data/spec/vcr/account/create-blank/1313708721.yml +37 -26
- data/spec/vcr/account/create-duplicate/1313708721.yml +83 -54
- data/spec/vcr/account/create-min/1313708721.yml +48 -30
- data/spec/vcr/account/create/1313708721.yml +52 -31
- data/spec/vcr/account/find/1313708721.yml +111 -81
- data/spec/vcr/account/list/1313708721.yml +1148 -719
- data/spec/vcr/account/update/1313708721.yml +182 -124
- data/spec/vcr/billing/create/1313708721.yml +156 -93
- data/spec/vcr/billing/destroy/1313708721.yml +198 -135
- data/spec/vcr/billing/errors/1313708721.yml +91 -56
- data/spec/vcr/billing/find/1313708721.yml +200 -122
- data/spec/vcr/billing/update/1313708721.yml +218 -126
- data/spec/vcr/charge/create/1313708721.yml +189 -120
- data/spec/vcr/charge/delete-uninvoiced/1313708721.yml +195 -154
- data/spec/vcr/charge/list-all/1313708721.yml +235 -157
- data/spec/vcr/charge/list-invoiced/1313708721.yml +351 -234
- data/spec/vcr/charge/list-pending/1313708721.yml +235 -159
- data/spec/vcr/charge/lookup/1313708721.yml +127 -87
- data/spec/vcr/coupon/create/1296774903.yml +83 -95
- data/spec/vcr/coupon/destroy/1296774903.yml +81 -115
- data/spec/vcr/credit/create/1313708090.yml +127 -87
- data/spec/vcr/credit/delete/1313708090.yml +169 -129
- data/spec/vcr/credit/list/1313708090.yml +235 -157
- data/spec/vcr/credit/lookup/1313708090.yml +127 -87
- data/spec/vcr/invoice/create-no-charges/1296674173.yml +140 -89
- data/spec/vcr/invoice/create/1296674173.yml +259 -162
- data/spec/vcr/invoice/list/1296674173.yml +342 -227
- data/spec/vcr/invoice/lookup/1296674173.yml +260 -167
- data/spec/vcr/plan/all.yml +206 -198
- data/spec/vcr/plan/find.yml +109 -103
- data/spec/vcr/plan/update.yml +126 -93
- data/spec/vcr/subscription/addons/add/1296674173.yml +156 -261
- data/spec/vcr/subscription/addons/create/1296674173.yml +156 -164
- data/spec/vcr/subscription/addons/remove/1296674173.yml +156 -249
- data/spec/vcr/subscription/cancel-with-code/1296674173.yml +340 -243
- data/spec/vcr/subscription/cancel/1296674173.yml +297 -210
- data/spec/vcr/subscription/change1/1296674173.yml +303 -213
- data/spec/vcr/subscription/change2/1296674173.yml +303 -214
- data/spec/vcr/subscription/create/1296674173.yml +167 -111
- data/spec/vcr/subscription/find/1296674173.yml +210 -145
- data/spec/vcr/subscription/reactivate/1296674173.yml +318 -233
- data/spec/vcr/subscription/refund-full/1296674173.yml +277 -199
- data/spec/vcr/subscription/refund-none/1296674173.yml +277 -199
- data/spec/vcr/subscription/refund-partial/1296674173.yml +277 -199
- data/spec/vcr/transaction/all/1311126815.yml +388 -206
- data/spec/vcr/transaction/create-no-account/1311126815.yml +74 -43
- data/spec/vcr/transaction/create-with-account/1311126815.yml +172 -101
- data/spec/vcr/transaction/list-filled/1311126815.yml +486 -291
- data/spec/vcr/transaction/list-initial/1311126815.yml +159 -98
- data/spec/vcr/transaction/lookup/1311126815.yml +420 -268
- data/spec/vcr/transaction/void/1311126815.yml +280 -174
- metadata +109 -77
- data/spec/vcr/transaction/refund/1311126815.yml +0 -163
- data/spec/vcr/transparent/post-url/1311239470.yml +0 -76
@@ -1,265 +1,354 @@
|
|
1
|
-
---
|
2
|
-
- !ruby/struct:VCR::HTTPInteraction
|
3
|
-
request: !ruby/struct:VCR::Request
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
4
|
method: :post
|
5
|
-
uri: http://api
|
6
|
-
body:
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
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 type="integer">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:
|
15
25
|
- application/xml
|
16
|
-
response: !ruby/struct:VCR::Response
|
17
|
-
status: !ruby/struct:VCR::ResponseStatus
|
26
|
+
response: !ruby/struct:VCR::Response
|
27
|
+
status: !ruby/struct:VCR::ResponseStatus
|
18
28
|
code: 201
|
19
29
|
message: Created
|
20
|
-
headers:
|
21
|
-
location:
|
22
|
-
- http://
|
23
|
-
content-type:
|
30
|
+
headers:
|
31
|
+
location:
|
32
|
+
- http://api.lvh.me:3000/accounts/1296674173
|
33
|
+
content-type:
|
24
34
|
- application/xml; charset=utf-8
|
25
|
-
cache-control:
|
35
|
+
cache-control:
|
26
36
|
- no-cache
|
27
|
-
x-ua-compatible:
|
37
|
+
x-ua-compatible:
|
28
38
|
- IE=Edge
|
29
|
-
set-cookie:
|
30
|
-
- _recurly_session=
|
31
|
-
|
32
|
-
server:
|
39
|
+
set-cookie:
|
40
|
+
- _recurly_session=be7fcec79e946a5e9eb8248c5a38d273; domain=.lvh.me; path=/; HttpOnly
|
41
|
+
server:
|
33
42
|
- thin 1.2.11 codename Bat-Shit Crazy
|
34
|
-
body:
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
+
body: |
|
44
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
45
|
+
<account>
|
46
|
+
<id>1296674173</id>
|
47
|
+
<account_code>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>b148870ffa1146adafe42abf4c4f3787</hosted_login_token>
|
56
|
+
<created_at type="datetime">2011-09-22T22:01:59Z</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
|
43
63
|
method: :get
|
44
|
-
uri: http://api
|
45
|
-
body:
|
46
|
-
headers:
|
47
|
-
user-agent:
|
48
|
-
- Recurly Ruby Client v0.4.
|
49
|
-
accept:
|
64
|
+
uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/plans/paid.xml
|
65
|
+
body:
|
66
|
+
headers:
|
67
|
+
user-agent:
|
68
|
+
- Recurly Ruby Client v0.4.13
|
69
|
+
accept:
|
50
70
|
- application/xml
|
51
|
-
accept-encoding:
|
71
|
+
accept-encoding:
|
52
72
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
53
|
-
response: !ruby/struct:VCR::Response
|
54
|
-
status: !ruby/struct:VCR::ResponseStatus
|
73
|
+
response: !ruby/struct:VCR::Response
|
74
|
+
status: !ruby/struct:VCR::ResponseStatus
|
55
75
|
code: 200
|
56
76
|
message: OK
|
57
|
-
headers:
|
58
|
-
content-type:
|
77
|
+
headers:
|
78
|
+
content-type:
|
59
79
|
- application/xml; charset=utf-8
|
60
|
-
etag:
|
61
|
-
-
|
62
|
-
cache-control:
|
80
|
+
etag:
|
81
|
+
- "\"7487d065869e9c487e0a588e1edea5dc\""
|
82
|
+
cache-control:
|
63
83
|
- max-age=0, private, must-revalidate
|
64
|
-
x-ua-compatible:
|
84
|
+
x-ua-compatible:
|
65
85
|
- IE=Edge
|
66
|
-
|
67
|
-
- _recurly_session=c0427fbeb8183990d81867039b9b6e0e; domain=.lvh.me; path=/;
|
68
|
-
HttpOnly
|
69
|
-
server:
|
86
|
+
server:
|
70
87
|
- thin 1.2.11 codename Bat-Shit Crazy
|
71
|
-
body:
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
88
|
+
body: |
|
89
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
90
|
+
<plan>
|
91
|
+
<plan_code>paid</plan_code>
|
92
|
+
<name>paid</name>
|
93
|
+
<description></description>
|
94
|
+
<success_url></success_url>
|
95
|
+
<cancel_url></cancel_url>
|
96
|
+
<created_at type="datetime">2011-09-22T21:54:04Z</created_at>
|
97
|
+
<unit_amount_in_cents type="integer">1400</unit_amount_in_cents>
|
98
|
+
<setup_fee_in_cents type="integer">0</setup_fee_in_cents>
|
99
|
+
<plan_interval_length type="integer">1</plan_interval_length>
|
100
|
+
<plan_interval_unit>months</plan_interval_unit>
|
101
|
+
<trial_interval_length type="integer">0</trial_interval_length>
|
102
|
+
<trial_interval_unit>days</trial_interval_unit>
|
103
|
+
</plan>
|
104
|
+
|
105
|
+
http_version: "1.1"
|
106
|
+
- !ruby/struct:VCR::HTTPInteraction
|
107
|
+
request: !ruby/struct:VCR::Request
|
87
108
|
method: :post
|
88
|
-
uri: http://api
|
89
|
-
body:
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
109
|
+
uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/1296674173/subscription.xml
|
110
|
+
body: |
|
111
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
112
|
+
<subscription>
|
113
|
+
<plan-code>paid</plan-code>
|
114
|
+
<quantity type="integer">1</quantity>
|
115
|
+
<account>
|
116
|
+
<account-code>1296674173</account-code>
|
117
|
+
<first-name>Verena</first-name>
|
118
|
+
<last-name>Test</last-name>
|
119
|
+
<email>verena@test.com</email>
|
120
|
+
<company-name>Recurly Ruby Gem</company-name>
|
121
|
+
<billing-info>
|
122
|
+
<first-name>Verena</first-name>
|
123
|
+
<last-name>Test</last-name>
|
124
|
+
<address1>123 Test St</address1>
|
125
|
+
<city>San Francisco</city>
|
126
|
+
<state>CA</state>
|
127
|
+
<zip>94115</zip>
|
128
|
+
<country>US</country>
|
129
|
+
<credit-card>
|
130
|
+
<number>4111111111111111</number>
|
131
|
+
<year type="integer">2012</year>
|
132
|
+
<month type="integer">9</month>
|
133
|
+
<verification-value>123</verification-value>
|
134
|
+
</credit-card>
|
135
|
+
</billing-info>
|
136
|
+
<accept-language nil="true"></accept-language>
|
137
|
+
<id>1296674173</id>
|
138
|
+
<username nil="true"></username>
|
139
|
+
<balance-in-cents type="integer">0</balance-in-cents>
|
140
|
+
<closed type="boolean">false</closed>
|
141
|
+
<hosted-login-token>b148870ffa1146adafe42abf4c4f3787</hosted-login-token>
|
142
|
+
<created-at type="datetime">2011-09-22T22:01:59Z</created-at>
|
143
|
+
<state>active</state>
|
144
|
+
</account>
|
145
|
+
<addons type="array"/>
|
146
|
+
</subscription>
|
147
|
+
|
148
|
+
headers:
|
149
|
+
user-agent:
|
150
|
+
- Recurly Ruby Client v0.4.13
|
151
|
+
content-type:
|
108
152
|
- application/xml
|
109
|
-
response: !ruby/struct:VCR::Response
|
110
|
-
status: !ruby/struct:VCR::ResponseStatus
|
153
|
+
response: !ruby/struct:VCR::Response
|
154
|
+
status: !ruby/struct:VCR::ResponseStatus
|
111
155
|
code: 201
|
112
156
|
message: Created
|
113
|
-
headers:
|
114
|
-
content-type:
|
157
|
+
headers:
|
158
|
+
content-type:
|
115
159
|
- application/xml; charset=utf-8
|
116
|
-
cache-control:
|
160
|
+
cache-control:
|
117
161
|
- no-cache
|
118
|
-
x-ua-compatible:
|
162
|
+
x-ua-compatible:
|
119
163
|
- IE=Edge
|
120
|
-
set-cookie:
|
121
|
-
- _recurly_session=
|
122
|
-
|
123
|
-
server:
|
164
|
+
set-cookie:
|
165
|
+
- _recurly_session=2a962692e20bc098395aa1fedf165806; domain=.lvh.me; path=/; HttpOnly
|
166
|
+
server:
|
124
167
|
- thin 1.2.11 codename Bat-Shit Crazy
|
125
|
-
body:
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
-
|
139
|
-
|
168
|
+
body: |
|
169
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
170
|
+
<subscription>
|
171
|
+
<id>1296674173</id>
|
172
|
+
<account_code>1296674173</account_code>
|
173
|
+
<plan>
|
174
|
+
<plan_code>paid</plan_code>
|
175
|
+
<name>paid</name>
|
176
|
+
</plan>
|
177
|
+
<state>active</state>
|
178
|
+
<quantity type="integer">1</quantity>
|
179
|
+
<unit_amount_in_cents type="integer">1400</unit_amount_in_cents>
|
180
|
+
<total_amount_in_cents type="integer">1400</total_amount_in_cents>
|
181
|
+
<activated_at type="datetime">2011-09-22T22:01:59Z</activated_at>
|
182
|
+
<canceled_at nil="true" type="datetime"></canceled_at>
|
183
|
+
<expires_at nil="true" type="datetime"></expires_at>
|
184
|
+
<current_period_started_at type="datetime">2011-09-22T22:01:59Z</current_period_started_at>
|
185
|
+
<current_period_ends_at type="datetime">2011-10-22T22:01:59Z</current_period_ends_at>
|
186
|
+
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
187
|
+
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
188
|
+
<add_ons type="array">
|
189
|
+
</add_ons>
|
190
|
+
</subscription>
|
191
|
+
|
192
|
+
http_version: "1.1"
|
193
|
+
- !ruby/struct:VCR::HTTPInteraction
|
194
|
+
request: !ruby/struct:VCR::Request
|
140
195
|
method: :get
|
141
|
-
uri: http://api
|
142
|
-
body:
|
143
|
-
headers:
|
144
|
-
user-agent:
|
145
|
-
- Recurly Ruby Client v0.4.
|
146
|
-
accept:
|
196
|
+
uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/1296674173/subscription.xml
|
197
|
+
body:
|
198
|
+
headers:
|
199
|
+
user-agent:
|
200
|
+
- Recurly Ruby Client v0.4.13
|
201
|
+
accept:
|
147
202
|
- application/xml
|
148
|
-
accept-encoding:
|
203
|
+
accept-encoding:
|
149
204
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
150
|
-
response: !ruby/struct:VCR::Response
|
151
|
-
status: !ruby/struct:VCR::ResponseStatus
|
205
|
+
response: !ruby/struct:VCR::Response
|
206
|
+
status: !ruby/struct:VCR::ResponseStatus
|
152
207
|
code: 200
|
153
208
|
message: OK
|
154
|
-
headers:
|
155
|
-
content-type:
|
209
|
+
headers:
|
210
|
+
content-type:
|
156
211
|
- application/xml; charset=utf-8
|
157
|
-
etag:
|
158
|
-
-
|
159
|
-
cache-control:
|
212
|
+
etag:
|
213
|
+
- "\"84d2667d61525c3d989af4d6a369fc83\""
|
214
|
+
cache-control:
|
160
215
|
- max-age=0, private, must-revalidate
|
161
|
-
x-ua-compatible:
|
216
|
+
x-ua-compatible:
|
162
217
|
- IE=Edge
|
163
|
-
|
164
|
-
- _recurly_session=bd4f73cd0da24509b7281208f44e200f; domain=.lvh.me; path=/;
|
165
|
-
HttpOnly
|
166
|
-
server:
|
218
|
+
server:
|
167
219
|
- thin 1.2.11 codename Bat-Shit Crazy
|
168
|
-
body:
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
-
|
182
|
-
|
220
|
+
body: |
|
221
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
222
|
+
<subscription>
|
223
|
+
<id>1296674173</id>
|
224
|
+
<account_code>1296674173</account_code>
|
225
|
+
<plan>
|
226
|
+
<plan_code>paid</plan_code>
|
227
|
+
<name>paid</name>
|
228
|
+
</plan>
|
229
|
+
<state>active</state>
|
230
|
+
<quantity type="integer">1</quantity>
|
231
|
+
<unit_amount_in_cents type="integer">1400</unit_amount_in_cents>
|
232
|
+
<total_amount_in_cents type="integer">1400</total_amount_in_cents>
|
233
|
+
<activated_at type="datetime">2011-09-22T22:01:59Z</activated_at>
|
234
|
+
<canceled_at nil="true" type="datetime"></canceled_at>
|
235
|
+
<expires_at nil="true" type="datetime"></expires_at>
|
236
|
+
<current_period_started_at type="datetime">2011-09-22T22:01:59Z</current_period_started_at>
|
237
|
+
<current_period_ends_at type="datetime">2011-10-22T22:01:59Z</current_period_ends_at>
|
238
|
+
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
239
|
+
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
240
|
+
<add_ons type="array">
|
241
|
+
</add_ons>
|
242
|
+
</subscription>
|
243
|
+
|
244
|
+
http_version: "1.1"
|
245
|
+
- !ruby/struct:VCR::HTTPInteraction
|
246
|
+
request: !ruby/struct:VCR::Request
|
183
247
|
method: :put
|
184
|
-
uri: http://api
|
185
|
-
body:
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
248
|
+
uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/1296674173/subscription.xml
|
249
|
+
body: |
|
250
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
251
|
+
<subscription>
|
252
|
+
<quantity type="integer">2</quantity>
|
253
|
+
<timeframe>now</timeframe>
|
254
|
+
</subscription>
|
255
|
+
|
256
|
+
headers:
|
257
|
+
user-agent:
|
258
|
+
- Recurly Ruby Client v0.4.13
|
259
|
+
content-type:
|
191
260
|
- application/xml
|
192
|
-
response: !ruby/struct:VCR::Response
|
193
|
-
status: !ruby/struct:VCR::ResponseStatus
|
261
|
+
response: !ruby/struct:VCR::Response
|
262
|
+
status: !ruby/struct:VCR::ResponseStatus
|
194
263
|
code: 200
|
195
264
|
message: OK
|
196
|
-
headers:
|
197
|
-
content-type:
|
265
|
+
headers:
|
266
|
+
content-type:
|
198
267
|
- application/xml; charset=utf-8
|
199
|
-
etag:
|
200
|
-
-
|
201
|
-
cache-control:
|
268
|
+
etag:
|
269
|
+
- "\"c4e448073d5ad475d11a94617fa20192\""
|
270
|
+
cache-control:
|
202
271
|
- max-age=0, private, must-revalidate
|
203
|
-
x-ua-compatible:
|
272
|
+
x-ua-compatible:
|
204
273
|
- IE=Edge
|
205
|
-
set-cookie:
|
206
|
-
- _recurly_session=
|
207
|
-
|
208
|
-
server:
|
274
|
+
set-cookie:
|
275
|
+
- _recurly_session=726221e649e6ce77b8fdfa8d60256533; domain=.lvh.me; path=/; HttpOnly
|
276
|
+
server:
|
209
277
|
- thin 1.2.11 codename Bat-Shit Crazy
|
210
|
-
body:
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
-
|
224
|
-
|
278
|
+
body: |
|
279
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
280
|
+
<subscription>
|
281
|
+
<id>1296674173</id>
|
282
|
+
<account_code>1296674173</account_code>
|
283
|
+
<plan>
|
284
|
+
<plan_code>paid</plan_code>
|
285
|
+
<name>paid</name>
|
286
|
+
</plan>
|
287
|
+
<state>active</state>
|
288
|
+
<quantity type="integer">2</quantity>
|
289
|
+
<unit_amount_in_cents type="integer">1400</unit_amount_in_cents>
|
290
|
+
<total_amount_in_cents type="integer">2800</total_amount_in_cents>
|
291
|
+
<activated_at type="datetime">2011-09-22T22:01:59Z</activated_at>
|
292
|
+
<canceled_at nil="true" type="datetime"></canceled_at>
|
293
|
+
<expires_at nil="true" type="datetime"></expires_at>
|
294
|
+
<current_period_started_at type="datetime">2011-09-22T22:01:59Z</current_period_started_at>
|
295
|
+
<current_period_ends_at type="datetime">2011-10-22T22:01:59Z</current_period_ends_at>
|
296
|
+
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
297
|
+
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
298
|
+
<add_ons type="array">
|
299
|
+
</add_ons>
|
300
|
+
</subscription>
|
301
|
+
|
302
|
+
http_version: "1.1"
|
303
|
+
- !ruby/struct:VCR::HTTPInteraction
|
304
|
+
request: !ruby/struct:VCR::Request
|
225
305
|
method: :get
|
226
|
-
uri: http://api
|
227
|
-
body:
|
228
|
-
headers:
|
229
|
-
user-agent:
|
230
|
-
- Recurly Ruby Client v0.4.
|
231
|
-
accept:
|
306
|
+
uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/1296674173/subscription.xml
|
307
|
+
body:
|
308
|
+
headers:
|
309
|
+
user-agent:
|
310
|
+
- Recurly Ruby Client v0.4.13
|
311
|
+
accept:
|
232
312
|
- application/xml
|
233
|
-
accept-encoding:
|
313
|
+
accept-encoding:
|
234
314
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
235
|
-
response: !ruby/struct:VCR::Response
|
236
|
-
status: !ruby/struct:VCR::ResponseStatus
|
315
|
+
response: !ruby/struct:VCR::Response
|
316
|
+
status: !ruby/struct:VCR::ResponseStatus
|
237
317
|
code: 200
|
238
318
|
message: OK
|
239
|
-
headers:
|
240
|
-
content-type:
|
319
|
+
headers:
|
320
|
+
content-type:
|
241
321
|
- application/xml; charset=utf-8
|
242
|
-
etag:
|
243
|
-
-
|
244
|
-
cache-control:
|
322
|
+
etag:
|
323
|
+
- "\"c4e448073d5ad475d11a94617fa20192\""
|
324
|
+
cache-control:
|
245
325
|
- max-age=0, private, must-revalidate
|
246
|
-
x-ua-compatible:
|
326
|
+
x-ua-compatible:
|
247
327
|
- IE=Edge
|
248
|
-
|
249
|
-
- _recurly_session=7deb008ee398b2746d03d2513d658e8b; domain=.lvh.me; path=/;
|
250
|
-
HttpOnly
|
251
|
-
server:
|
328
|
+
server:
|
252
329
|
- thin 1.2.11 codename Bat-Shit Crazy
|
253
|
-
body:
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
330
|
+
body: |
|
331
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
332
|
+
<subscription>
|
333
|
+
<id>1296674173</id>
|
334
|
+
<account_code>1296674173</account_code>
|
335
|
+
<plan>
|
336
|
+
<plan_code>paid</plan_code>
|
337
|
+
<name>paid</name>
|
338
|
+
</plan>
|
339
|
+
<state>active</state>
|
340
|
+
<quantity type="integer">2</quantity>
|
341
|
+
<unit_amount_in_cents type="integer">1400</unit_amount_in_cents>
|
342
|
+
<total_amount_in_cents type="integer">2800</total_amount_in_cents>
|
343
|
+
<activated_at type="datetime">2011-09-22T22:01:59Z</activated_at>
|
344
|
+
<canceled_at nil="true" type="datetime"></canceled_at>
|
345
|
+
<expires_at nil="true" type="datetime"></expires_at>
|
346
|
+
<current_period_started_at type="datetime">2011-09-22T22:01:59Z</current_period_started_at>
|
347
|
+
<current_period_ends_at type="datetime">2011-10-22T22:01:59Z</current_period_ends_at>
|
348
|
+
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
349
|
+
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
350
|
+
<add_ons type="array">
|
351
|
+
</add_ons>
|
352
|
+
</subscription>
|
353
|
+
|
354
|
+
http_version: "1.1"
|