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
data/spec/vcr/plan/all.yml
CHANGED
@@ -1,225 +1,233 @@
|
|
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: :get
|
5
|
-
uri: http://api
|
6
|
-
body:
|
7
|
-
headers:
|
8
|
-
user-agent:
|
9
|
-
- Recurly Ruby Client v0.4.
|
10
|
-
accept:
|
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
11
|
- application/xml
|
12
|
-
accept-encoding:
|
12
|
+
accept-encoding:
|
13
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
|
14
|
+
response: !ruby/struct:VCR::Response
|
15
|
+
status: !ruby/struct:VCR::ResponseStatus
|
16
16
|
code: 200
|
17
17
|
message: OK
|
18
|
-
headers:
|
19
|
-
content-type:
|
18
|
+
headers:
|
19
|
+
content-type:
|
20
20
|
- application/xml; charset=utf-8
|
21
|
-
etag:
|
22
|
-
-
|
23
|
-
cache-control:
|
21
|
+
etag:
|
22
|
+
- "\"7487d065869e9c487e0a588e1edea5dc\""
|
23
|
+
cache-control:
|
24
24
|
- max-age=0, private, must-revalidate
|
25
|
-
x-ua-compatible:
|
25
|
+
x-ua-compatible:
|
26
26
|
- IE=Edge
|
27
|
-
|
28
|
-
- _recurly_session=d9e4f503bb5122012f5e5adc517272e3; domain=.lvh.me; path=/;
|
29
|
-
HttpOnly
|
30
|
-
server:
|
27
|
+
server:
|
31
28
|
- thin 1.2.11 codename Bat-Shit Crazy
|
32
|
-
body:
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
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
|
48
49
|
method: :get
|
49
|
-
uri: http://api
|
50
|
-
body:
|
51
|
-
headers:
|
52
|
-
user-agent:
|
53
|
-
- Recurly Ruby Client v0.4.
|
54
|
-
accept:
|
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:
|
55
56
|
- application/xml
|
56
|
-
accept-encoding:
|
57
|
+
accept-encoding:
|
57
58
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
58
|
-
response: !ruby/struct:VCR::Response
|
59
|
-
status: !ruby/struct:VCR::ResponseStatus
|
59
|
+
response: !ruby/struct:VCR::Response
|
60
|
+
status: !ruby/struct:VCR::ResponseStatus
|
60
61
|
code: 200
|
61
62
|
message: OK
|
62
|
-
headers:
|
63
|
-
content-type:
|
63
|
+
headers:
|
64
|
+
content-type:
|
64
65
|
- application/xml; charset=utf-8
|
65
|
-
etag:
|
66
|
-
-
|
67
|
-
cache-control:
|
66
|
+
etag:
|
67
|
+
- "\"30194122ddc8b67ae0416d6254a14cb0\""
|
68
|
+
cache-control:
|
68
69
|
- max-age=0, private, must-revalidate
|
69
|
-
x-ua-compatible:
|
70
|
+
x-ua-compatible:
|
70
71
|
- IE=Edge
|
71
|
-
|
72
|
-
- _recurly_session=7401cd2b61acf4b58290cb0cb623d819; domain=.lvh.me; path=/;
|
73
|
-
HttpOnly
|
74
|
-
server:
|
72
|
+
server:
|
75
73
|
- thin 1.2.11 codename Bat-Shit Crazy
|
76
|
-
body:
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
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
|
89
94
|
method: :get
|
90
|
-
uri: http://api
|
91
|
-
body:
|
92
|
-
headers:
|
93
|
-
user-agent:
|
94
|
-
- Recurly Ruby Client v0.4.
|
95
|
-
accept:
|
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:
|
96
101
|
- application/xml
|
97
|
-
accept-encoding:
|
102
|
+
accept-encoding:
|
98
103
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
99
|
-
response: !ruby/struct:VCR::Response
|
100
|
-
status: !ruby/struct:VCR::ResponseStatus
|
104
|
+
response: !ruby/struct:VCR::Response
|
105
|
+
status: !ruby/struct:VCR::ResponseStatus
|
101
106
|
code: 200
|
102
107
|
message: OK
|
103
|
-
headers:
|
104
|
-
content-type:
|
108
|
+
headers:
|
109
|
+
content-type:
|
105
110
|
- application/xml; charset=utf-8
|
106
|
-
etag:
|
107
|
-
-
|
108
|
-
cache-control:
|
111
|
+
etag:
|
112
|
+
- "\"cb1e8859959a6bd90e38cf0a22bcafe8\""
|
113
|
+
cache-control:
|
109
114
|
- max-age=0, private, must-revalidate
|
110
|
-
x-ua-compatible:
|
115
|
+
x-ua-compatible:
|
111
116
|
- IE=Edge
|
112
|
-
|
113
|
-
- _recurly_session=2ce8c5ad5812131e5b42d06dc3089e66; domain=.lvh.me; path=/;
|
114
|
-
HttpOnly
|
115
|
-
server:
|
117
|
+
server:
|
116
118
|
- thin 1.2.11 codename Bat-Shit Crazy
|
117
|
-
body:
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
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"
|
data/spec/vcr/plan/find.yml
CHANGED
@@ -1,130 +1,136 @@
|
|
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: :get
|
5
|
-
uri: http://api
|
6
|
-
body:
|
7
|
-
headers:
|
8
|
-
user-agent:
|
9
|
-
- Recurly Ruby Client v0.4.
|
10
|
-
accept:
|
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
11
|
- application/xml
|
12
|
-
accept-encoding:
|
12
|
+
accept-encoding:
|
13
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
|
14
|
+
response: !ruby/struct:VCR::Response
|
15
|
+
status: !ruby/struct:VCR::ResponseStatus
|
16
16
|
code: 200
|
17
17
|
message: OK
|
18
|
-
headers:
|
19
|
-
content-type:
|
18
|
+
headers:
|
19
|
+
content-type:
|
20
20
|
- application/xml; charset=utf-8
|
21
|
-
etag:
|
22
|
-
-
|
23
|
-
cache-control:
|
21
|
+
etag:
|
22
|
+
- "\"7487d065869e9c487e0a588e1edea5dc\""
|
23
|
+
cache-control:
|
24
24
|
- max-age=0, private, must-revalidate
|
25
|
-
x-ua-compatible:
|
25
|
+
x-ua-compatible:
|
26
26
|
- IE=Edge
|
27
|
-
|
28
|
-
- _recurly_session=3643c8ab3450be051149e45eadab0d15; domain=.lvh.me; path=/;
|
29
|
-
HttpOnly
|
30
|
-
server:
|
27
|
+
server:
|
31
28
|
- thin 1.2.11 codename Bat-Shit Crazy
|
32
|
-
body:
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
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
|
48
49
|
method: :get
|
49
|
-
uri: http://api
|
50
|
-
body:
|
51
|
-
headers:
|
52
|
-
user-agent:
|
53
|
-
- Recurly Ruby Client v0.4.
|
54
|
-
accept:
|
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:
|
55
56
|
- application/xml
|
56
|
-
accept-encoding:
|
57
|
+
accept-encoding:
|
57
58
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
58
|
-
response: !ruby/struct:VCR::Response
|
59
|
-
status: !ruby/struct:VCR::ResponseStatus
|
59
|
+
response: !ruby/struct:VCR::Response
|
60
|
+
status: !ruby/struct:VCR::ResponseStatus
|
60
61
|
code: 200
|
61
62
|
message: OK
|
62
|
-
headers:
|
63
|
-
content-type:
|
63
|
+
headers:
|
64
|
+
content-type:
|
64
65
|
- application/xml; charset=utf-8
|
65
|
-
etag:
|
66
|
-
-
|
67
|
-
cache-control:
|
66
|
+
etag:
|
67
|
+
- "\"30194122ddc8b67ae0416d6254a14cb0\""
|
68
|
+
cache-control:
|
68
69
|
- max-age=0, private, must-revalidate
|
69
|
-
x-ua-compatible:
|
70
|
+
x-ua-compatible:
|
70
71
|
- IE=Edge
|
71
|
-
|
72
|
-
- _recurly_session=d266e38e7a8156e14dc271db8848b26a; domain=.lvh.me; path=/;
|
73
|
-
HttpOnly
|
74
|
-
server:
|
72
|
+
server:
|
75
73
|
- thin 1.2.11 codename Bat-Shit Crazy
|
76
|
-
body:
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
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
|
89
94
|
method: :get
|
90
|
-
uri: http://api
|
91
|
-
body:
|
92
|
-
headers:
|
93
|
-
user-agent:
|
94
|
-
- Recurly Ruby Client v0.4.
|
95
|
-
accept:
|
95
|
+
uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/plans/paid.xml
|
96
|
+
body:
|
97
|
+
headers:
|
98
|
+
user-agent:
|
99
|
+
- Recurly Ruby Client v0.4.13
|
100
|
+
accept:
|
96
101
|
- application/xml
|
97
|
-
accept-encoding:
|
102
|
+
accept-encoding:
|
98
103
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
99
|
-
response: !ruby/struct:VCR::Response
|
100
|
-
status: !ruby/struct:VCR::ResponseStatus
|
104
|
+
response: !ruby/struct:VCR::Response
|
105
|
+
status: !ruby/struct:VCR::ResponseStatus
|
101
106
|
code: 200
|
102
107
|
message: OK
|
103
|
-
headers:
|
104
|
-
content-type:
|
108
|
+
headers:
|
109
|
+
content-type:
|
105
110
|
- application/xml; charset=utf-8
|
106
|
-
etag:
|
107
|
-
-
|
108
|
-
cache-control:
|
111
|
+
etag:
|
112
|
+
- "\"7487d065869e9c487e0a588e1edea5dc\""
|
113
|
+
cache-control:
|
109
114
|
- max-age=0, private, must-revalidate
|
110
|
-
x-ua-compatible:
|
115
|
+
x-ua-compatible:
|
111
116
|
- IE=Edge
|
112
|
-
|
113
|
-
- _recurly_session=b9274a09d589568c9cf06ecbd9a3f904; domain=.lvh.me; path=/;
|
114
|
-
HttpOnly
|
115
|
-
server:
|
117
|
+
server:
|
116
118
|
- thin 1.2.11 codename Bat-Shit Crazy
|
117
|
-
body:
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
119
|
+
body: |
|
120
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
121
|
+
<plan>
|
122
|
+
<plan_code>paid</plan_code>
|
123
|
+
<name>paid</name>
|
124
|
+
<description></description>
|
125
|
+
<success_url></success_url>
|
126
|
+
<cancel_url></cancel_url>
|
127
|
+
<created_at type="datetime">2011-09-22T21:54:04Z</created_at>
|
128
|
+
<unit_amount_in_cents type="integer">1400</unit_amount_in_cents>
|
129
|
+
<setup_fee_in_cents type="integer">0</setup_fee_in_cents>
|
130
|
+
<plan_interval_length type="integer">1</plan_interval_length>
|
131
|
+
<plan_interval_unit>months</plan_interval_unit>
|
132
|
+
<trial_interval_length type="integer">0</trial_interval_length>
|
133
|
+
<trial_interval_unit>days</trial_interval_unit>
|
134
|
+
</plan>
|
135
|
+
|
136
|
+
http_version: "1.1"
|