recurly 0.4.2 → 0.4.3
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/recurly.rb +1 -0
- data/lib/recurly/base.rb +92 -12
- data/lib/recurly/formats/xml_with_errors.rb +132 -0
- data/lib/recurly/version.rb +1 -1
- data/spec/config/recurly.yml +4 -4
- data/spec/integration/transaction_spec.rb +4 -3
- data/spec/vcr/account/accept-language-account/1297746103.yml +6 -6
- data/spec/vcr/account/close/1297746103.yml +17 -17
- data/spec/vcr/account/create-blank/1297746103.yml +4 -4
- data/spec/vcr/account/create-duplicate/1297746103.yml +10 -10
- data/spec/vcr/account/create-min/1297746103.yml +6 -6
- data/spec/vcr/account/create/1297746103.yml +6 -6
- data/spec/vcr/account/find/1297746103.yml +16 -16
- data/spec/vcr/account/list/1297746103.yml +204 -156
- data/spec/vcr/account/update/1297746103.yml +29 -29
- data/spec/vcr/billing/create/1298594128.yml +21 -21
- data/spec/vcr/billing/destroy/1298594128.yml +28 -28
- data/spec/vcr/billing/find/1298594128.yml +28 -28
- data/spec/vcr/billing/update/1298594128.yml +29 -29
- data/spec/vcr/charge/create/1297746103.yml +29 -29
- data/spec/vcr/charge/delete-uninvoiced/1297746103.yml +32 -32
- data/spec/vcr/charge/list-all/1297746103.yml +41 -41
- data/spec/vcr/charge/list-invoiced/1297746103.yml +68 -68
- data/spec/vcr/charge/list-pending/1297746103.yml +41 -41
- data/spec/vcr/charge/lookup/1297746103.yml +21 -21
- data/spec/vcr/coupon/create/1299714521.yml +25 -25
- data/spec/vcr/coupon/destroy/1299714521.yml +22 -22
- data/spec/vcr/credit/create/1299714599.yml +21 -21
- data/spec/vcr/credit/delete/1299714599.yml +28 -28
- data/spec/vcr/credit/list/1299714599.yml +41 -41
- data/spec/vcr/credit/lookup/1299714599.yml +21 -21
- data/spec/vcr/invoice/create-no-charges/1297746103.yml +18 -18
- data/spec/vcr/invoice/create/1297746103.yml +42 -42
- data/spec/vcr/invoice/list/1297746103.yml +61 -61
- data/spec/vcr/invoice/lookup/1297746103.yml +43 -43
- data/spec/vcr/plan/all.yml +65 -52
- data/spec/vcr/plan/find.yml +58 -34
- data/spec/vcr/plan/update.yml +28 -29
- data/spec/vcr/subscription/addons/add/1297746103.yml +293 -335
- data/spec/vcr/subscription/addons/add/1301884213.yml +480 -0
- data/spec/vcr/subscription/addons/create/1297746103.yml +134 -335
- data/spec/vcr/subscription/addons/create/1301884213.yml +321 -0
- data/spec/vcr/subscription/addons/remove/1297746103.yml +262 -335
- data/spec/vcr/subscription/addons/remove/1301884213.yml +449 -0
- data/spec/vcr/subscription/cancel-with-code/{1297746103.yml → 1301881900.yml} +104 -92
- data/spec/vcr/subscription/cancel/{1297746103.yml → 1301881900.yml} +90 -78
- data/spec/vcr/subscription/change1/{1297746103.yml → 1301881900.yml} +86 -74
- data/spec/vcr/subscription/change2/{1297746103.yml → 1301881900.yml} +86 -74
- data/spec/vcr/subscription/create/{1297746103.yml → 1301881900.yml} +50 -38
- data/spec/vcr/subscription/find/{1297746103.yml → 1301881900.yml} +62 -50
- data/spec/vcr/subscription/reactivate/{1297746103.yml → 1301881900.yml} +95 -83
- data/spec/vcr/subscription/refund-full/{1297746103.yml → 1301881900.yml} +79 -67
- data/spec/vcr/subscription/refund-none/{1297746103.yml → 1301881900.yml} +79 -67
- data/spec/vcr/subscription/refund-partial/{1297746103.yml → 1301881900.yml} +79 -67
- data/spec/vcr/transaction/all/1301883347.yml +387 -0
- data/spec/vcr/transaction/create-no-account/{1300473500.yml → 1301883347.yml} +18 -18
- data/spec/vcr/transaction/create-with-account/{1300473500.yml → 1301883347.yml} +37 -37
- data/spec/vcr/transaction/list-filled/{1300473500.yml → 1301883347.yml} +169 -169
- data/spec/vcr/transaction/list-initial/{1300473500.yml → 1301883347.yml} +39 -39
- data/spec/vcr/transaction/lookup/{1300473500.yml → 1301883347.yml} +119 -119
- data/spec/vcr/transaction/refund/{1300473500.yml → 1301883347.yml} +53 -53
- data/spec/vcr/transaction/void/1301883347.yml +365 -0
- data/spec/vcr/transparent/post-url/{1300476053.yml → 1301879142.yml} +19 -19
- metadata +66 -58
- data/spec/vcr/transaction/all/1300473500.yml +0 -387
- data/spec/vcr/transaction/void/1300473500.yml +0 -620
- data/spec/vcr/transparent/post-url/1300475927.yml +0 -41
- data/spec/vcr/transparent/post-url/1300475952.yml +0 -41
- data/spec/vcr/transparent/post-url/1300476034.yml +0 -125
- data/spec/vcr/transparent/post-url/1300476102.yml +0 -125
- data/spec/vcr/transparent/post-url/1300476126.yml +0 -125
data/spec/vcr/plan/all.yml
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
- !ruby/struct:VCR::HTTPInteraction
|
3
3
|
request: !ruby/struct:VCR::Request
|
4
4
|
method: :get
|
5
|
-
uri: http://api-test-
|
5
|
+
uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/company/plans/paid.xml
|
6
6
|
body:
|
7
7
|
headers:
|
8
8
|
authorization:
|
9
|
-
- Basic
|
9
|
+
- Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
|
10
10
|
accept:
|
11
11
|
- application/xml
|
12
12
|
accept-encoding:
|
@@ -21,17 +21,17 @@
|
|
21
21
|
message: OK
|
22
22
|
headers:
|
23
23
|
x-runtime:
|
24
|
-
- "
|
24
|
+
- "255"
|
25
25
|
content-type:
|
26
26
|
- application/xml; charset=utf-8
|
27
27
|
etag:
|
28
|
-
- "\"
|
28
|
+
- "\"eea146faf9def8e0ad1bce0a43411f13\""
|
29
29
|
cache-control:
|
30
30
|
- private, max-age=0, must-revalidate
|
31
31
|
content-length:
|
32
|
-
- "
|
32
|
+
- "1558"
|
33
33
|
set-cookie:
|
34
|
-
- _recurly_session=
|
34
|
+
- _recurly_session=bdda74656d3139bfdb0f4567b9897a35; domain=.recurly.local; path=/; HttpOnly
|
35
35
|
connection:
|
36
36
|
- close
|
37
37
|
server:
|
@@ -44,34 +44,46 @@
|
|
44
44
|
<description></description>
|
45
45
|
<success_url></success_url>
|
46
46
|
<cancel_url></cancel_url>
|
47
|
-
<created_at type="datetime">2011-
|
48
|
-
<unit_amount_in_cents type="integer">
|
47
|
+
<created_at type="datetime">2011-04-03T21:46:48Z</created_at>
|
48
|
+
<unit_amount_in_cents type="integer">200</unit_amount_in_cents>
|
49
49
|
<setup_fee_in_cents type="integer">0</setup_fee_in_cents>
|
50
50
|
<plan_interval_length type="integer">1</plan_interval_length>
|
51
|
-
<plan_interval_unit>
|
51
|
+
<plan_interval_unit>months</plan_interval_unit>
|
52
52
|
<trial_interval_length type="integer">0</trial_interval_length>
|
53
53
|
<trial_interval_unit>months</trial_interval_unit>
|
54
54
|
<latest_version depreciated="true">
|
55
55
|
<version type="integer">1</version>
|
56
|
-
<unit_amount_in_cents type="integer">
|
56
|
+
<unit_amount_in_cents type="integer">200</unit_amount_in_cents>
|
57
57
|
<setup_fee_in_cents type="integer">0</setup_fee_in_cents>
|
58
58
|
<plan_interval_length type="integer">1</plan_interval_length>
|
59
|
-
<plan_interval_unit>
|
59
|
+
<plan_interval_unit>months</plan_interval_unit>
|
60
60
|
<trial_interval_length type="integer">0</trial_interval_length>
|
61
61
|
<trial_interval_unit>months</trial_interval_unit>
|
62
|
-
<created_at type="datetime">2011-
|
62
|
+
<created_at type="datetime">2011-04-04T02:15:00Z</created_at>
|
63
63
|
</latest_version>
|
64
|
+
<add_ons type="array">
|
65
|
+
<add_on>
|
66
|
+
<add_on_code>special</add_on_code>
|
67
|
+
<default_unit_amount_in_cents>1000</default_unit_amount_in_cents>
|
68
|
+
<default_quantity>1</default_quantity>
|
69
|
+
</add_on>
|
70
|
+
<add_on>
|
71
|
+
<add_on_code>special2</add_on_code>
|
72
|
+
<default_unit_amount_in_cents>50000</default_unit_amount_in_cents>
|
73
|
+
<default_quantity>1</default_quantity>
|
74
|
+
</add_on>
|
75
|
+
</add_ons>
|
64
76
|
</plan>
|
65
77
|
|
66
78
|
http_version: "1.1"
|
67
79
|
- !ruby/struct:VCR::HTTPInteraction
|
68
80
|
request: !ruby/struct:VCR::Request
|
69
81
|
method: :get
|
70
|
-
uri: http://api-test-
|
82
|
+
uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/company/plans/trial.xml
|
71
83
|
body:
|
72
84
|
headers:
|
73
85
|
authorization:
|
74
|
-
- Basic
|
86
|
+
- Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
|
75
87
|
accept:
|
76
88
|
- application/xml
|
77
89
|
accept-encoding:
|
@@ -86,17 +98,17 @@
|
|
86
98
|
message: OK
|
87
99
|
headers:
|
88
100
|
x-runtime:
|
89
|
-
- "
|
101
|
+
- "250"
|
90
102
|
content-type:
|
91
103
|
- application/xml; charset=utf-8
|
92
104
|
etag:
|
93
|
-
- "\"
|
105
|
+
- "\"995fca2f7808cee6e53965e86a9f24b9\""
|
94
106
|
cache-control:
|
95
107
|
- private, max-age=0, must-revalidate
|
96
108
|
content-length:
|
97
|
-
- "
|
109
|
+
- "1146"
|
98
110
|
set-cookie:
|
99
|
-
- _recurly_session=
|
111
|
+
- _recurly_session=a91c153ed90d3944bd41d4372f035372; domain=.recurly.local; path=/; HttpOnly
|
100
112
|
connection:
|
101
113
|
- close
|
102
114
|
server:
|
@@ -109,8 +121,8 @@
|
|
109
121
|
<description></description>
|
110
122
|
<success_url></success_url>
|
111
123
|
<cancel_url></cancel_url>
|
112
|
-
<created_at type="datetime">2011-
|
113
|
-
<unit_amount_in_cents type="integer">
|
124
|
+
<created_at type="datetime">2011-04-03T21:51:32Z</created_at>
|
125
|
+
<unit_amount_in_cents type="integer">0</unit_amount_in_cents>
|
114
126
|
<setup_fee_in_cents type="integer">0</setup_fee_in_cents>
|
115
127
|
<plan_interval_length type="integer">1</plan_interval_length>
|
116
128
|
<plan_interval_unit>months</plan_interval_unit>
|
@@ -118,13 +130,13 @@
|
|
118
130
|
<trial_interval_unit>months</trial_interval_unit>
|
119
131
|
<latest_version depreciated="true">
|
120
132
|
<version type="integer">1</version>
|
121
|
-
<unit_amount_in_cents type="integer">
|
133
|
+
<unit_amount_in_cents type="integer">0</unit_amount_in_cents>
|
122
134
|
<setup_fee_in_cents type="integer">0</setup_fee_in_cents>
|
123
135
|
<plan_interval_length type="integer">1</plan_interval_length>
|
124
136
|
<plan_interval_unit>months</plan_interval_unit>
|
125
137
|
<trial_interval_length type="integer">1</trial_interval_length>
|
126
138
|
<trial_interval_unit>months</trial_interval_unit>
|
127
|
-
<created_at type="datetime">2011-
|
139
|
+
<created_at type="datetime">2011-04-03T21:51:32Z</created_at>
|
128
140
|
</latest_version>
|
129
141
|
</plan>
|
130
142
|
|
@@ -132,11 +144,11 @@
|
|
132
144
|
- !ruby/struct:VCR::HTTPInteraction
|
133
145
|
request: !ruby/struct:VCR::Request
|
134
146
|
method: :get
|
135
|
-
uri: http://api-test-
|
147
|
+
uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/company/plans.xml
|
136
148
|
body:
|
137
149
|
headers:
|
138
150
|
authorization:
|
139
|
-
- Basic
|
151
|
+
- Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
|
140
152
|
accept:
|
141
153
|
- application/xml
|
142
154
|
accept-encoding:
|
@@ -151,17 +163,17 @@
|
|
151
163
|
message: OK
|
152
164
|
headers:
|
153
165
|
x-runtime:
|
154
|
-
- "
|
166
|
+
- "240"
|
155
167
|
content-type:
|
156
168
|
- application/xml; charset=utf-8
|
157
169
|
etag:
|
158
|
-
- "\"
|
170
|
+
- "\"118c086e4d129d6e77cff325f37e97b6\""
|
159
171
|
cache-control:
|
160
172
|
- private, max-age=0, must-revalidate
|
161
173
|
content-length:
|
162
|
-
- "
|
174
|
+
- "4454"
|
163
175
|
set-cookie:
|
164
|
-
- _recurly_session=
|
176
|
+
- _recurly_session=f77576ed9f5b802a22934e572420438d; domain=.recurly.local; path=/; HttpOnly
|
165
177
|
connection:
|
166
178
|
- close
|
167
179
|
server:
|
@@ -171,54 +183,55 @@
|
|
171
183
|
<plans type="array">
|
172
184
|
<plan>
|
173
185
|
<plan_code>gold</plan_code>
|
174
|
-
<name>
|
175
|
-
<description
|
176
|
-
|
177
|
-
<
|
178
|
-
<
|
186
|
+
<name>gold</name>
|
187
|
+
<description>
|
188
|
+
</description>
|
189
|
+
<created_at type="datetime">2011-02-10T05:56:45Z</created_at>
|
190
|
+
<unit_amount_in_cents type="integer">1500</unit_amount_in_cents>
|
191
|
+
<setup_fee_in_cents type="integer">1200</setup_fee_in_cents>
|
179
192
|
<plan_interval_length type="integer">1</plan_interval_length>
|
180
|
-
<plan_interval_unit>
|
193
|
+
<plan_interval_unit>months</plan_interval_unit>
|
181
194
|
<trial_interval_length type="integer">0</trial_interval_length>
|
182
195
|
<trial_interval_unit>days</trial_interval_unit>
|
183
196
|
<latest_version depreciated="true">
|
184
197
|
<version type="integer">1</version>
|
185
|
-
<unit_amount_in_cents type="integer">
|
186
|
-
<setup_fee_in_cents type="integer">
|
198
|
+
<unit_amount_in_cents type="integer">1500</unit_amount_in_cents>
|
199
|
+
<setup_fee_in_cents type="integer">1200</setup_fee_in_cents>
|
187
200
|
<plan_interval_length type="integer">1</plan_interval_length>
|
188
|
-
<plan_interval_unit>
|
201
|
+
<plan_interval_unit>months</plan_interval_unit>
|
189
202
|
<trial_interval_length type="integer">0</trial_interval_length>
|
190
203
|
<trial_interval_unit>days</trial_interval_unit>
|
191
|
-
<created_at type="datetime">2011-02-
|
204
|
+
<created_at type="datetime">2011-02-10T05:56:45Z</created_at>
|
192
205
|
</latest_version>
|
193
206
|
</plan>
|
194
207
|
<plan>
|
195
208
|
<plan_code>paid</plan_code>
|
196
209
|
<name>Paid</name>
|
197
210
|
<description></description>
|
198
|
-
<created_at type="datetime">2011-
|
199
|
-
<unit_amount_in_cents type="integer">
|
211
|
+
<created_at type="datetime">2011-04-03T21:46:48Z</created_at>
|
212
|
+
<unit_amount_in_cents type="integer">200</unit_amount_in_cents>
|
200
213
|
<setup_fee_in_cents type="integer">0</setup_fee_in_cents>
|
201
214
|
<plan_interval_length type="integer">1</plan_interval_length>
|
202
|
-
<plan_interval_unit>
|
215
|
+
<plan_interval_unit>months</plan_interval_unit>
|
203
216
|
<trial_interval_length type="integer">0</trial_interval_length>
|
204
217
|
<trial_interval_unit>months</trial_interval_unit>
|
205
218
|
<latest_version depreciated="true">
|
206
219
|
<version type="integer">1</version>
|
207
|
-
<unit_amount_in_cents type="integer">
|
220
|
+
<unit_amount_in_cents type="integer">200</unit_amount_in_cents>
|
208
221
|
<setup_fee_in_cents type="integer">0</setup_fee_in_cents>
|
209
222
|
<plan_interval_length type="integer">1</plan_interval_length>
|
210
|
-
<plan_interval_unit>
|
223
|
+
<plan_interval_unit>months</plan_interval_unit>
|
211
224
|
<trial_interval_length type="integer">0</trial_interval_length>
|
212
225
|
<trial_interval_unit>months</trial_interval_unit>
|
213
|
-
<created_at type="datetime">2011-
|
226
|
+
<created_at type="datetime">2011-04-04T02:15:00Z</created_at>
|
214
227
|
</latest_version>
|
215
228
|
</plan>
|
216
229
|
<plan>
|
217
230
|
<plan_code>test</plan_code>
|
218
231
|
<name>Test Plan</name>
|
219
232
|
<description></description>
|
220
|
-
<created_at type="datetime">2011-
|
221
|
-
<unit_amount_in_cents type="integer">
|
233
|
+
<created_at type="datetime">2011-04-03T21:51:42Z</created_at>
|
234
|
+
<unit_amount_in_cents type="integer">0</unit_amount_in_cents>
|
222
235
|
<setup_fee_in_cents type="integer">0</setup_fee_in_cents>
|
223
236
|
<plan_interval_length type="integer">1</plan_interval_length>
|
224
237
|
<plan_interval_unit>months</plan_interval_unit>
|
@@ -226,21 +239,21 @@
|
|
226
239
|
<trial_interval_unit>months</trial_interval_unit>
|
227
240
|
<latest_version depreciated="true">
|
228
241
|
<version type="integer">1</version>
|
229
|
-
<unit_amount_in_cents type="integer">
|
242
|
+
<unit_amount_in_cents type="integer">0</unit_amount_in_cents>
|
230
243
|
<setup_fee_in_cents type="integer">0</setup_fee_in_cents>
|
231
244
|
<plan_interval_length type="integer">1</plan_interval_length>
|
232
245
|
<plan_interval_unit>months</plan_interval_unit>
|
233
246
|
<trial_interval_length type="integer">0</trial_interval_length>
|
234
247
|
<trial_interval_unit>months</trial_interval_unit>
|
235
|
-
<created_at type="datetime">2011-
|
248
|
+
<created_at type="datetime">2011-04-03T21:51:42Z</created_at>
|
236
249
|
</latest_version>
|
237
250
|
</plan>
|
238
251
|
<plan>
|
239
252
|
<plan_code>trial</plan_code>
|
240
253
|
<name>Trial</name>
|
241
254
|
<description></description>
|
242
|
-
<created_at type="datetime">2011-
|
243
|
-
<unit_amount_in_cents type="integer">
|
255
|
+
<created_at type="datetime">2011-04-03T21:51:32Z</created_at>
|
256
|
+
<unit_amount_in_cents type="integer">0</unit_amount_in_cents>
|
244
257
|
<setup_fee_in_cents type="integer">0</setup_fee_in_cents>
|
245
258
|
<plan_interval_length type="integer">1</plan_interval_length>
|
246
259
|
<plan_interval_unit>months</plan_interval_unit>
|
@@ -248,13 +261,13 @@
|
|
248
261
|
<trial_interval_unit>months</trial_interval_unit>
|
249
262
|
<latest_version depreciated="true">
|
250
263
|
<version type="integer">1</version>
|
251
|
-
<unit_amount_in_cents type="integer">
|
264
|
+
<unit_amount_in_cents type="integer">0</unit_amount_in_cents>
|
252
265
|
<setup_fee_in_cents type="integer">0</setup_fee_in_cents>
|
253
266
|
<plan_interval_length type="integer">1</plan_interval_length>
|
254
267
|
<plan_interval_unit>months</plan_interval_unit>
|
255
268
|
<trial_interval_length type="integer">1</trial_interval_length>
|
256
269
|
<trial_interval_unit>months</trial_interval_unit>
|
257
|
-
<created_at type="datetime">2011-
|
270
|
+
<created_at type="datetime">2011-04-03T21:51:32Z</created_at>
|
258
271
|
</latest_version>
|
259
272
|
</plan>
|
260
273
|
</plans>
|
data/spec/vcr/plan/find.yml
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
- !ruby/struct:VCR::HTTPInteraction
|
3
3
|
request: !ruby/struct:VCR::Request
|
4
4
|
method: :get
|
5
|
-
uri: http://api-test-
|
5
|
+
uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/company/plans/paid.xml
|
6
6
|
body:
|
7
7
|
headers:
|
8
8
|
authorization:
|
9
|
-
- Basic
|
9
|
+
- Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
|
10
10
|
accept:
|
11
11
|
- application/xml
|
12
12
|
accept-encoding:
|
@@ -21,17 +21,17 @@
|
|
21
21
|
message: OK
|
22
22
|
headers:
|
23
23
|
x-runtime:
|
24
|
-
- "
|
24
|
+
- "256"
|
25
25
|
content-type:
|
26
26
|
- application/xml; charset=utf-8
|
27
27
|
etag:
|
28
|
-
- "\"
|
28
|
+
- "\"eea146faf9def8e0ad1bce0a43411f13\""
|
29
29
|
cache-control:
|
30
30
|
- private, max-age=0, must-revalidate
|
31
31
|
content-length:
|
32
|
-
- "
|
32
|
+
- "1558"
|
33
33
|
set-cookie:
|
34
|
-
- _recurly_session=
|
34
|
+
- _recurly_session=d75b47376a22fefce88202a1ca6bd661; domain=.recurly.local; path=/; HttpOnly
|
35
35
|
connection:
|
36
36
|
- close
|
37
37
|
server:
|
@@ -44,34 +44,46 @@
|
|
44
44
|
<description></description>
|
45
45
|
<success_url></success_url>
|
46
46
|
<cancel_url></cancel_url>
|
47
|
-
<created_at type="datetime">2011-
|
48
|
-
<unit_amount_in_cents type="integer">
|
47
|
+
<created_at type="datetime">2011-04-03T21:46:48Z</created_at>
|
48
|
+
<unit_amount_in_cents type="integer">200</unit_amount_in_cents>
|
49
49
|
<setup_fee_in_cents type="integer">0</setup_fee_in_cents>
|
50
50
|
<plan_interval_length type="integer">1</plan_interval_length>
|
51
|
-
<plan_interval_unit>
|
51
|
+
<plan_interval_unit>months</plan_interval_unit>
|
52
52
|
<trial_interval_length type="integer">0</trial_interval_length>
|
53
53
|
<trial_interval_unit>months</trial_interval_unit>
|
54
54
|
<latest_version depreciated="true">
|
55
55
|
<version type="integer">1</version>
|
56
|
-
<unit_amount_in_cents type="integer">
|
56
|
+
<unit_amount_in_cents type="integer">200</unit_amount_in_cents>
|
57
57
|
<setup_fee_in_cents type="integer">0</setup_fee_in_cents>
|
58
58
|
<plan_interval_length type="integer">1</plan_interval_length>
|
59
|
-
<plan_interval_unit>
|
59
|
+
<plan_interval_unit>months</plan_interval_unit>
|
60
60
|
<trial_interval_length type="integer">0</trial_interval_length>
|
61
61
|
<trial_interval_unit>months</trial_interval_unit>
|
62
|
-
<created_at type="datetime">2011-
|
62
|
+
<created_at type="datetime">2011-04-04T02:15:00Z</created_at>
|
63
63
|
</latest_version>
|
64
|
+
<add_ons type="array">
|
65
|
+
<add_on>
|
66
|
+
<add_on_code>special</add_on_code>
|
67
|
+
<default_unit_amount_in_cents>1000</default_unit_amount_in_cents>
|
68
|
+
<default_quantity>1</default_quantity>
|
69
|
+
</add_on>
|
70
|
+
<add_on>
|
71
|
+
<add_on_code>special2</add_on_code>
|
72
|
+
<default_unit_amount_in_cents>50000</default_unit_amount_in_cents>
|
73
|
+
<default_quantity>1</default_quantity>
|
74
|
+
</add_on>
|
75
|
+
</add_ons>
|
64
76
|
</plan>
|
65
77
|
|
66
78
|
http_version: "1.1"
|
67
79
|
- !ruby/struct:VCR::HTTPInteraction
|
68
80
|
request: !ruby/struct:VCR::Request
|
69
81
|
method: :get
|
70
|
-
uri: http://api-test-
|
82
|
+
uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/company/plans/trial.xml
|
71
83
|
body:
|
72
84
|
headers:
|
73
85
|
authorization:
|
74
|
-
- Basic
|
86
|
+
- Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
|
75
87
|
accept:
|
76
88
|
- application/xml
|
77
89
|
accept-encoding:
|
@@ -86,17 +98,17 @@
|
|
86
98
|
message: OK
|
87
99
|
headers:
|
88
100
|
x-runtime:
|
89
|
-
- "
|
101
|
+
- "253"
|
90
102
|
content-type:
|
91
103
|
- application/xml; charset=utf-8
|
92
104
|
etag:
|
93
|
-
- "\"
|
105
|
+
- "\"995fca2f7808cee6e53965e86a9f24b9\""
|
94
106
|
cache-control:
|
95
107
|
- private, max-age=0, must-revalidate
|
96
108
|
content-length:
|
97
|
-
- "
|
109
|
+
- "1146"
|
98
110
|
set-cookie:
|
99
|
-
- _recurly_session=
|
111
|
+
- _recurly_session=32e829d5940e0510a3a00dd0a6241e5a; domain=.recurly.local; path=/; HttpOnly
|
100
112
|
connection:
|
101
113
|
- close
|
102
114
|
server:
|
@@ -109,8 +121,8 @@
|
|
109
121
|
<description></description>
|
110
122
|
<success_url></success_url>
|
111
123
|
<cancel_url></cancel_url>
|
112
|
-
<created_at type="datetime">2011-
|
113
|
-
<unit_amount_in_cents type="integer">
|
124
|
+
<created_at type="datetime">2011-04-03T21:51:32Z</created_at>
|
125
|
+
<unit_amount_in_cents type="integer">0</unit_amount_in_cents>
|
114
126
|
<setup_fee_in_cents type="integer">0</setup_fee_in_cents>
|
115
127
|
<plan_interval_length type="integer">1</plan_interval_length>
|
116
128
|
<plan_interval_unit>months</plan_interval_unit>
|
@@ -118,13 +130,13 @@
|
|
118
130
|
<trial_interval_unit>months</trial_interval_unit>
|
119
131
|
<latest_version depreciated="true">
|
120
132
|
<version type="integer">1</version>
|
121
|
-
<unit_amount_in_cents type="integer">
|
133
|
+
<unit_amount_in_cents type="integer">0</unit_amount_in_cents>
|
122
134
|
<setup_fee_in_cents type="integer">0</setup_fee_in_cents>
|
123
135
|
<plan_interval_length type="integer">1</plan_interval_length>
|
124
136
|
<plan_interval_unit>months</plan_interval_unit>
|
125
137
|
<trial_interval_length type="integer">1</trial_interval_length>
|
126
138
|
<trial_interval_unit>months</trial_interval_unit>
|
127
|
-
<created_at type="datetime">2011-
|
139
|
+
<created_at type="datetime">2011-04-03T21:51:32Z</created_at>
|
128
140
|
</latest_version>
|
129
141
|
</plan>
|
130
142
|
|
@@ -132,11 +144,11 @@
|
|
132
144
|
- !ruby/struct:VCR::HTTPInteraction
|
133
145
|
request: !ruby/struct:VCR::Request
|
134
146
|
method: :get
|
135
|
-
uri: http://api-test-
|
147
|
+
uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/company/plans/paid.xml
|
136
148
|
body:
|
137
149
|
headers:
|
138
150
|
authorization:
|
139
|
-
- Basic
|
151
|
+
- Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
|
140
152
|
accept:
|
141
153
|
- application/xml
|
142
154
|
accept-encoding:
|
@@ -151,17 +163,17 @@
|
|
151
163
|
message: OK
|
152
164
|
headers:
|
153
165
|
x-runtime:
|
154
|
-
- "
|
166
|
+
- "83"
|
155
167
|
content-type:
|
156
168
|
- application/xml; charset=utf-8
|
157
169
|
etag:
|
158
|
-
- "\"
|
170
|
+
- "\"eea146faf9def8e0ad1bce0a43411f13\""
|
159
171
|
cache-control:
|
160
172
|
- private, max-age=0, must-revalidate
|
161
173
|
content-length:
|
162
|
-
- "
|
174
|
+
- "1558"
|
163
175
|
set-cookie:
|
164
|
-
- _recurly_session=
|
176
|
+
- _recurly_session=14e4075d7ce204345827c76b7aca477b; domain=.recurly.local; path=/; HttpOnly
|
165
177
|
connection:
|
166
178
|
- close
|
167
179
|
server:
|
@@ -174,23 +186,35 @@
|
|
174
186
|
<description></description>
|
175
187
|
<success_url></success_url>
|
176
188
|
<cancel_url></cancel_url>
|
177
|
-
<created_at type="datetime">2011-
|
178
|
-
<unit_amount_in_cents type="integer">
|
189
|
+
<created_at type="datetime">2011-04-03T21:46:48Z</created_at>
|
190
|
+
<unit_amount_in_cents type="integer">200</unit_amount_in_cents>
|
179
191
|
<setup_fee_in_cents type="integer">0</setup_fee_in_cents>
|
180
192
|
<plan_interval_length type="integer">1</plan_interval_length>
|
181
|
-
<plan_interval_unit>
|
193
|
+
<plan_interval_unit>months</plan_interval_unit>
|
182
194
|
<trial_interval_length type="integer">0</trial_interval_length>
|
183
195
|
<trial_interval_unit>months</trial_interval_unit>
|
184
196
|
<latest_version depreciated="true">
|
185
197
|
<version type="integer">1</version>
|
186
|
-
<unit_amount_in_cents type="integer">
|
198
|
+
<unit_amount_in_cents type="integer">200</unit_amount_in_cents>
|
187
199
|
<setup_fee_in_cents type="integer">0</setup_fee_in_cents>
|
188
200
|
<plan_interval_length type="integer">1</plan_interval_length>
|
189
|
-
<plan_interval_unit>
|
201
|
+
<plan_interval_unit>months</plan_interval_unit>
|
190
202
|
<trial_interval_length type="integer">0</trial_interval_length>
|
191
203
|
<trial_interval_unit>months</trial_interval_unit>
|
192
|
-
<created_at type="datetime">2011-
|
204
|
+
<created_at type="datetime">2011-04-04T02:15:00Z</created_at>
|
193
205
|
</latest_version>
|
206
|
+
<add_ons type="array">
|
207
|
+
<add_on>
|
208
|
+
<add_on_code>special</add_on_code>
|
209
|
+
<default_unit_amount_in_cents>1000</default_unit_amount_in_cents>
|
210
|
+
<default_quantity>1</default_quantity>
|
211
|
+
</add_on>
|
212
|
+
<add_on>
|
213
|
+
<add_on_code>special2</add_on_code>
|
214
|
+
<default_unit_amount_in_cents>50000</default_unit_amount_in_cents>
|
215
|
+
<default_quantity>1</default_quantity>
|
216
|
+
</add_on>
|
217
|
+
</add_ons>
|
194
218
|
</plan>
|
195
219
|
|
196
220
|
http_version: "1.1"
|