recurly 0.4.5 → 0.4.6
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/base.rb +11 -4
- data/lib/recurly/billing_info.rb +2 -1
- data/lib/recurly/charge.rb +3 -1
- data/lib/recurly/credit.rb +3 -1
- data/lib/recurly/subscription.rb +1 -1
- data/lib/recurly/version.rb +1 -1
- data/spec/config/recurly.yml +4 -4
- data/spec/unit/billing_info_spec.rb +1 -0
- data/spec/unit/charge_spec.rb +2 -0
- data/spec/unit/credit_spec.rb +2 -0
- data/spec/unit/subscription_spec.rb +1 -1
- data/spec/vcr/account/accept-language-account/1301979678.yml +14 -12
- data/spec/vcr/account/close/1301979678.yml +41 -35
- data/spec/vcr/account/create-blank/1301979678.yml +11 -9
- data/spec/vcr/account/create-duplicate/1301979678.yml +25 -21
- data/spec/vcr/account/create-min/1301979678.yml +14 -12
- data/spec/vcr/account/create/1301979678.yml +14 -12
- data/spec/vcr/account/find/1301979678.yml +40 -34
- data/spec/vcr/account/list/1301979678.yml +348 -341
- data/spec/vcr/account/update/1301979678.yml +61 -53
- data/spec/vcr/billing/create/1302025874.yml +42 -36
- data/spec/vcr/billing/destroy/1302025874.yml +65 -55
- data/spec/vcr/billing/errors/1302025874.yml +25 -21
- data/spec/vcr/billing/find/1302025874.yml +56 -48
- data/spec/vcr/billing/update/1302025874.yml +56 -48
- data/spec/vcr/charge/create/1297746103.yml +65 -53
- data/spec/vcr/charge/delete-uninvoiced/1297746103.yml +85 -69
- data/spec/vcr/charge/list-all/1297746103.yml +97 -75
- data/spec/vcr/charge/list-invoiced/1297746103.yml +143 -115
- data/spec/vcr/charge/list-pending/1297746103.yml +97 -75
- data/spec/vcr/charge/lookup/1297746103.yml +51 -41
- data/spec/vcr/coupon/create/1299714521.yml +28 -88
- data/spec/vcr/coupon/destroy/1299714521.yml +25 -107
- data/spec/vcr/credit/create/1299714599.yml +51 -41
- data/spec/vcr/credit/delete/1299714599.yml +74 -60
- data/spec/vcr/credit/list/1299714599.yml +97 -75
- data/spec/vcr/credit/lookup/1299714599.yml +51 -41
- data/spec/vcr/invoice/create-no-charges/1297746103.yml +39 -33
- data/spec/vcr/invoice/create/1297746103.yml +86 -72
- data/spec/vcr/invoice/list/1297746103.yml +121 -103
- data/spec/vcr/invoice/lookup/1297746103.yml +84 -72
- data/spec/vcr/plan/all.yml +108 -134
- data/spec/vcr/plan/find.yml +47 -95
- data/spec/vcr/plan/update.yml +152 -66
- data/spec/vcr/subscription/addons/add/1301885121.yml +48 -310
- data/spec/vcr/subscription/addons/create/1301885121.yml +48 -151
- data/spec/vcr/subscription/addons/remove/1301885121.yml +48 -279
- data/spec/vcr/subscription/cancel-with-code/1301881900.yml +132 -135
- data/spec/vcr/subscription/cancel/1301881900.yml +111 -117
- data/spec/vcr/subscription/change1/1301881900.yml +107 -113
- data/spec/vcr/subscription/change2/1301881900.yml +107 -113
- data/spec/vcr/subscription/create/1301881900.yml +50 -65
- data/spec/vcr/subscription/find/1301881900.yml +69 -81
- data/spec/vcr/subscription/reactivate/1301881900.yml +122 -126
- data/spec/vcr/subscription/refund-full/1301881900.yml +84 -153
- data/spec/vcr/subscription/refund-none/1301881900.yml +101 -108
- data/spec/vcr/subscription/refund-partial/1301881900.yml +84 -153
- data/spec/vcr/transaction/all/1301883347.yml +86 -84
- data/spec/vcr/transaction/create-no-account/1301883347.yml +15 -13
- data/spec/vcr/transaction/create-with-account/1301883347.yml +43 -37
- data/spec/vcr/transaction/list-filled/1301883347.yml +115 -101
- data/spec/vcr/transaction/list-initial/1301883347.yml +43 -37
- data/spec/vcr/transaction/lookup/1301883347.yml +118 -102
- data/spec/vcr/transaction/refund/1301883347.yml +58 -50
- data/spec/vcr/transaction/void/1301883347.yml +75 -82
- data/spec/vcr/transparent/post-url/1301879142.yml +29 -25
- metadata +3 -3
data/spec/vcr/plan/find.yml
CHANGED
@@ -2,40 +2,42 @@
|
|
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%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/company/plans/paid.xml
|
6
6
|
body:
|
7
7
|
headers:
|
8
8
|
authorization:
|
9
|
-
- Basic
|
9
|
+
- Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
|
10
|
+
user-agent:
|
11
|
+
- Recurly Ruby Client v0.4.6
|
10
12
|
accept:
|
11
13
|
- application/xml
|
12
14
|
accept-encoding:
|
13
15
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
-
user-agent:
|
15
|
-
- Ruby
|
16
16
|
connection:
|
17
17
|
- close
|
18
18
|
response: !ruby/struct:VCR::Response
|
19
19
|
status: !ruby/struct:VCR::ResponseStatus
|
20
20
|
code: 200
|
21
|
-
message: OK
|
21
|
+
message: "OK "
|
22
22
|
headers:
|
23
23
|
x-runtime:
|
24
|
-
- "
|
24
|
+
- "119"
|
25
25
|
content-type:
|
26
26
|
- application/xml; charset=utf-8
|
27
27
|
etag:
|
28
|
-
- "\"
|
28
|
+
- "\"3888306c167f105a4e165433ee427264\""
|
29
29
|
cache-control:
|
30
30
|
- private, max-age=0, must-revalidate
|
31
31
|
content-length:
|
32
|
-
- "
|
33
|
-
|
34
|
-
-
|
32
|
+
- "612"
|
33
|
+
server:
|
34
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
|
35
|
+
date:
|
36
|
+
- Thu, 21 Apr 2011 18:02:18 GMT
|
35
37
|
connection:
|
36
38
|
- close
|
37
|
-
|
38
|
-
-
|
39
|
+
set-cookie:
|
40
|
+
- _recurly_session=c9bce4e0b5b64ca8158fb52d7f78586c; domain=.recurly.local; path=/; HttpOnly
|
39
41
|
body: |
|
40
42
|
<?xml version="1.0" encoding="UTF-8"?>
|
41
43
|
<plan>
|
@@ -44,75 +46,55 @@
|
|
44
46
|
<description></description>
|
45
47
|
<success_url></success_url>
|
46
48
|
<cancel_url></cancel_url>
|
47
|
-
<created_at type="datetime">2011-04-
|
48
|
-
<unit_amount_in_cents type="integer">
|
49
|
+
<created_at type="datetime">2011-04-21T17:57:33Z</created_at>
|
50
|
+
<unit_amount_in_cents type="integer">0</unit_amount_in_cents>
|
49
51
|
<setup_fee_in_cents type="integer">0</setup_fee_in_cents>
|
50
52
|
<plan_interval_length type="integer">1</plan_interval_length>
|
51
53
|
<plan_interval_unit>months</plan_interval_unit>
|
52
54
|
<trial_interval_length type="integer">0</trial_interval_length>
|
53
55
|
<trial_interval_unit>months</trial_interval_unit>
|
54
|
-
<latest_version depreciated="true">
|
55
|
-
<version type="integer">1</version>
|
56
|
-
<unit_amount_in_cents type="integer">200</unit_amount_in_cents>
|
57
|
-
<setup_fee_in_cents type="integer">0</setup_fee_in_cents>
|
58
|
-
<plan_interval_length type="integer">1</plan_interval_length>
|
59
|
-
<plan_interval_unit>months</plan_interval_unit>
|
60
|
-
<trial_interval_length type="integer">0</trial_interval_length>
|
61
|
-
<trial_interval_unit>months</trial_interval_unit>
|
62
|
-
<created_at type="datetime">2011-04-04T02:15:00Z</created_at>
|
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>
|
76
56
|
</plan>
|
77
57
|
|
78
58
|
http_version: "1.1"
|
79
59
|
- !ruby/struct:VCR::HTTPInteraction
|
80
60
|
request: !ruby/struct:VCR::Request
|
81
61
|
method: :get
|
82
|
-
uri: http://api-test%
|
62
|
+
uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/company/plans/trial.xml
|
83
63
|
body:
|
84
64
|
headers:
|
85
65
|
authorization:
|
86
|
-
- Basic
|
66
|
+
- Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
|
67
|
+
user-agent:
|
68
|
+
- Recurly Ruby Client v0.4.6
|
87
69
|
accept:
|
88
70
|
- application/xml
|
89
71
|
accept-encoding:
|
90
72
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
91
|
-
user-agent:
|
92
|
-
- Ruby
|
93
73
|
connection:
|
94
74
|
- close
|
95
75
|
response: !ruby/struct:VCR::Response
|
96
76
|
status: !ruby/struct:VCR::ResponseStatus
|
97
77
|
code: 200
|
98
|
-
message: OK
|
78
|
+
message: "OK "
|
99
79
|
headers:
|
100
80
|
x-runtime:
|
101
|
-
- "
|
81
|
+
- "237"
|
102
82
|
content-type:
|
103
83
|
- application/xml; charset=utf-8
|
104
84
|
etag:
|
105
|
-
- "\"
|
85
|
+
- "\"5ff014c14e985410c6f77ef565d7553b\""
|
106
86
|
cache-control:
|
107
87
|
- private, max-age=0, must-revalidate
|
108
88
|
content-length:
|
109
|
-
- "
|
110
|
-
|
111
|
-
-
|
89
|
+
- "614"
|
90
|
+
server:
|
91
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
|
92
|
+
date:
|
93
|
+
- Thu, 21 Apr 2011 18:02:20 GMT
|
112
94
|
connection:
|
113
95
|
- close
|
114
|
-
|
115
|
-
-
|
96
|
+
set-cookie:
|
97
|
+
- _recurly_session=ae938c7b01bdbb998b399e21e81868f6; domain=.recurly.local; path=/; HttpOnly
|
116
98
|
body: |
|
117
99
|
<?xml version="1.0" encoding="UTF-8"?>
|
118
100
|
<plan>
|
@@ -121,63 +103,55 @@
|
|
121
103
|
<description></description>
|
122
104
|
<success_url></success_url>
|
123
105
|
<cancel_url></cancel_url>
|
124
|
-
<created_at type="datetime">2011-04-
|
106
|
+
<created_at type="datetime">2011-04-21T18:02:14Z</created_at>
|
125
107
|
<unit_amount_in_cents type="integer">0</unit_amount_in_cents>
|
126
108
|
<setup_fee_in_cents type="integer">0</setup_fee_in_cents>
|
127
109
|
<plan_interval_length type="integer">1</plan_interval_length>
|
128
110
|
<plan_interval_unit>months</plan_interval_unit>
|
129
111
|
<trial_interval_length type="integer">1</trial_interval_length>
|
130
112
|
<trial_interval_unit>months</trial_interval_unit>
|
131
|
-
<latest_version depreciated="true">
|
132
|
-
<version type="integer">1</version>
|
133
|
-
<unit_amount_in_cents type="integer">0</unit_amount_in_cents>
|
134
|
-
<setup_fee_in_cents type="integer">0</setup_fee_in_cents>
|
135
|
-
<plan_interval_length type="integer">1</plan_interval_length>
|
136
|
-
<plan_interval_unit>months</plan_interval_unit>
|
137
|
-
<trial_interval_length type="integer">1</trial_interval_length>
|
138
|
-
<trial_interval_unit>months</trial_interval_unit>
|
139
|
-
<created_at type="datetime">2011-04-03T21:51:32Z</created_at>
|
140
|
-
</latest_version>
|
141
113
|
</plan>
|
142
114
|
|
143
115
|
http_version: "1.1"
|
144
116
|
- !ruby/struct:VCR::HTTPInteraction
|
145
117
|
request: !ruby/struct:VCR::Request
|
146
118
|
method: :get
|
147
|
-
uri: http://api-test%
|
119
|
+
uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/company/plans/paid.xml
|
148
120
|
body:
|
149
121
|
headers:
|
150
122
|
authorization:
|
151
|
-
- Basic
|
123
|
+
- Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
|
124
|
+
user-agent:
|
125
|
+
- Recurly Ruby Client v0.4.6
|
152
126
|
accept:
|
153
127
|
- application/xml
|
154
128
|
accept-encoding:
|
155
129
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
156
|
-
user-agent:
|
157
|
-
- Ruby
|
158
130
|
connection:
|
159
131
|
- close
|
160
132
|
response: !ruby/struct:VCR::Response
|
161
133
|
status: !ruby/struct:VCR::ResponseStatus
|
162
134
|
code: 200
|
163
|
-
message: OK
|
135
|
+
message: "OK "
|
164
136
|
headers:
|
165
137
|
x-runtime:
|
166
|
-
- "
|
138
|
+
- "81"
|
167
139
|
content-type:
|
168
140
|
- application/xml; charset=utf-8
|
169
141
|
etag:
|
170
|
-
- "\"
|
142
|
+
- "\"3888306c167f105a4e165433ee427264\""
|
171
143
|
cache-control:
|
172
144
|
- private, max-age=0, must-revalidate
|
173
145
|
content-length:
|
174
|
-
- "
|
175
|
-
|
176
|
-
-
|
146
|
+
- "612"
|
147
|
+
server:
|
148
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
|
149
|
+
date:
|
150
|
+
- Thu, 21 Apr 2011 18:02:22 GMT
|
177
151
|
connection:
|
178
152
|
- close
|
179
|
-
|
180
|
-
-
|
153
|
+
set-cookie:
|
154
|
+
- _recurly_session=c12af1990d39f2cda10e43fa5cc5ad60; domain=.recurly.local; path=/; HttpOnly
|
181
155
|
body: |
|
182
156
|
<?xml version="1.0" encoding="UTF-8"?>
|
183
157
|
<plan>
|
@@ -186,35 +160,13 @@
|
|
186
160
|
<description></description>
|
187
161
|
<success_url></success_url>
|
188
162
|
<cancel_url></cancel_url>
|
189
|
-
<created_at type="datetime">2011-04-
|
190
|
-
<unit_amount_in_cents type="integer">
|
163
|
+
<created_at type="datetime">2011-04-21T17:57:33Z</created_at>
|
164
|
+
<unit_amount_in_cents type="integer">0</unit_amount_in_cents>
|
191
165
|
<setup_fee_in_cents type="integer">0</setup_fee_in_cents>
|
192
166
|
<plan_interval_length type="integer">1</plan_interval_length>
|
193
167
|
<plan_interval_unit>months</plan_interval_unit>
|
194
168
|
<trial_interval_length type="integer">0</trial_interval_length>
|
195
169
|
<trial_interval_unit>months</trial_interval_unit>
|
196
|
-
<latest_version depreciated="true">
|
197
|
-
<version type="integer">1</version>
|
198
|
-
<unit_amount_in_cents type="integer">200</unit_amount_in_cents>
|
199
|
-
<setup_fee_in_cents type="integer">0</setup_fee_in_cents>
|
200
|
-
<plan_interval_length type="integer">1</plan_interval_length>
|
201
|
-
<plan_interval_unit>months</plan_interval_unit>
|
202
|
-
<trial_interval_length type="integer">0</trial_interval_length>
|
203
|
-
<trial_interval_unit>months</trial_interval_unit>
|
204
|
-
<created_at type="datetime">2011-04-04T02:15:00Z</created_at>
|
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>
|
218
170
|
</plan>
|
219
171
|
|
220
172
|
http_version: "1.1"
|
data/spec/vcr/plan/update.yml
CHANGED
@@ -2,40 +2,152 @@
|
|
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%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/company/plans/test.xml
|
6
6
|
body:
|
7
7
|
headers:
|
8
8
|
authorization:
|
9
|
-
- Basic
|
9
|
+
- Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
|
10
|
+
user-agent:
|
11
|
+
- Recurly Ruby Client v0.4.6
|
10
12
|
accept:
|
11
13
|
- application/xml
|
12
14
|
accept-encoding:
|
13
15
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
|
+
connection:
|
17
|
+
- close
|
18
|
+
response: !ruby/struct:VCR::Response
|
19
|
+
status: !ruby/struct:VCR::ResponseStatus
|
20
|
+
code: 404
|
21
|
+
message: "Not Found "
|
22
|
+
headers:
|
23
|
+
cache-control:
|
24
|
+
- no-cache
|
25
|
+
content-type:
|
26
|
+
- application/xml; charset=utf-8
|
27
|
+
content-length:
|
28
|
+
- "90"
|
29
|
+
server:
|
30
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
|
31
|
+
date:
|
32
|
+
- Thu, 21 Apr 2011 18:02:24 GMT
|
33
|
+
connection:
|
34
|
+
- close
|
35
|
+
set-cookie:
|
36
|
+
- _recurly_session=ae72804ec761abfb2e00d5461af3b77c; domain=.recurly.local; path=/; HttpOnly
|
37
|
+
body: |
|
38
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
39
|
+
<errors>
|
40
|
+
<error>Plan not found</error>
|
41
|
+
</errors>
|
42
|
+
|
43
|
+
http_version: "1.1"
|
44
|
+
- !ruby/struct:VCR::HTTPInteraction
|
45
|
+
request: !ruby/struct:VCR::Request
|
46
|
+
method: :post
|
47
|
+
uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/company/plans.xml
|
48
|
+
body: |
|
49
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
50
|
+
<plan>
|
51
|
+
<plan-code>test</plan-code>
|
52
|
+
<name>Test Plan</name>
|
53
|
+
<amount-in-cents type="integer">100</amount-in-cents>
|
54
|
+
<plan-interval-length type="integer">1</plan-interval-length>
|
55
|
+
<plan-interval-unit>months</plan-interval-unit>
|
56
|
+
<trial-interval-length type="integer">0</trial-interval-length>
|
57
|
+
<trial-interval-unit>months</trial-interval-unit>
|
58
|
+
</plan>
|
59
|
+
|
60
|
+
headers:
|
61
|
+
authorization:
|
62
|
+
- Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
|
14
63
|
user-agent:
|
15
|
-
- Ruby
|
64
|
+
- Recurly Ruby Client v0.4.6
|
65
|
+
content-type:
|
66
|
+
- application/xml
|
67
|
+
accept:
|
68
|
+
- "*/*"
|
69
|
+
connection:
|
70
|
+
- close
|
71
|
+
response: !ruby/struct:VCR::Response
|
72
|
+
status: !ruby/struct:VCR::ResponseStatus
|
73
|
+
code: 201
|
74
|
+
message: "Created "
|
75
|
+
headers:
|
76
|
+
cache-control:
|
77
|
+
- no-cache
|
78
|
+
location:
|
79
|
+
- http://app.recurly.local:3000/company/plans/test
|
80
|
+
x-runtime:
|
81
|
+
- "257"
|
82
|
+
content-type:
|
83
|
+
- application/xml; charset=utf-8
|
84
|
+
content-length:
|
85
|
+
- "617"
|
86
|
+
server:
|
87
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
|
88
|
+
date:
|
89
|
+
- Thu, 21 Apr 2011 18:02:26 GMT
|
90
|
+
connection:
|
91
|
+
- close
|
92
|
+
set-cookie:
|
93
|
+
- _recurly_session=7c525c2b97f00dc59dd6aa38d5f3ef7c; domain=.recurly.local; path=/; HttpOnly
|
94
|
+
body: |
|
95
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
96
|
+
<plan>
|
97
|
+
<plan_code>test</plan_code>
|
98
|
+
<name>Test Plan</name>
|
99
|
+
<description></description>
|
100
|
+
<success_url></success_url>
|
101
|
+
<cancel_url></cancel_url>
|
102
|
+
<created_at type="datetime">2011-04-21T18:02:26Z</created_at>
|
103
|
+
<unit_amount_in_cents type="integer">0</unit_amount_in_cents>
|
104
|
+
<setup_fee_in_cents type="integer">0</setup_fee_in_cents>
|
105
|
+
<plan_interval_length type="integer">1</plan_interval_length>
|
106
|
+
<plan_interval_unit>months</plan_interval_unit>
|
107
|
+
<trial_interval_length type="integer">0</trial_interval_length>
|
108
|
+
<trial_interval_unit>months</trial_interval_unit>
|
109
|
+
</plan>
|
110
|
+
|
111
|
+
http_version: "1.1"
|
112
|
+
- !ruby/struct:VCR::HTTPInteraction
|
113
|
+
request: !ruby/struct:VCR::Request
|
114
|
+
method: :get
|
115
|
+
uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/company/plans/test.xml
|
116
|
+
body:
|
117
|
+
headers:
|
118
|
+
authorization:
|
119
|
+
- Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
|
120
|
+
user-agent:
|
121
|
+
- Recurly Ruby Client v0.4.6
|
122
|
+
accept:
|
123
|
+
- application/xml
|
124
|
+
accept-encoding:
|
125
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
126
|
connection:
|
17
127
|
- close
|
18
128
|
response: !ruby/struct:VCR::Response
|
19
129
|
status: !ruby/struct:VCR::ResponseStatus
|
20
130
|
code: 200
|
21
|
-
message: OK
|
131
|
+
message: "OK "
|
22
132
|
headers:
|
23
133
|
x-runtime:
|
24
|
-
- "
|
134
|
+
- "79"
|
25
135
|
content-type:
|
26
136
|
- application/xml; charset=utf-8
|
27
137
|
etag:
|
28
|
-
- "\"
|
138
|
+
- "\"15c14ce3b98aabfd04d405144710f461\""
|
29
139
|
cache-control:
|
30
140
|
- private, max-age=0, must-revalidate
|
31
141
|
content-length:
|
32
|
-
- "
|
33
|
-
|
34
|
-
-
|
142
|
+
- "617"
|
143
|
+
server:
|
144
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
|
145
|
+
date:
|
146
|
+
- Thu, 21 Apr 2011 18:02:27 GMT
|
35
147
|
connection:
|
36
148
|
- close
|
37
|
-
|
38
|
-
-
|
149
|
+
set-cookie:
|
150
|
+
- _recurly_session=0064dc64092d4c50b3b4c1bd910effc5; domain=.recurly.local; path=/; HttpOnly
|
39
151
|
body: |
|
40
152
|
<?xml version="1.0" encoding="UTF-8"?>
|
41
153
|
<plan>
|
@@ -44,30 +156,20 @@
|
|
44
156
|
<description></description>
|
45
157
|
<success_url></success_url>
|
46
158
|
<cancel_url></cancel_url>
|
47
|
-
<created_at type="datetime">2011-04-
|
159
|
+
<created_at type="datetime">2011-04-21T18:02:26Z</created_at>
|
48
160
|
<unit_amount_in_cents type="integer">0</unit_amount_in_cents>
|
49
161
|
<setup_fee_in_cents type="integer">0</setup_fee_in_cents>
|
50
162
|
<plan_interval_length type="integer">1</plan_interval_length>
|
51
163
|
<plan_interval_unit>months</plan_interval_unit>
|
52
164
|
<trial_interval_length type="integer">0</trial_interval_length>
|
53
165
|
<trial_interval_unit>months</trial_interval_unit>
|
54
|
-
<latest_version depreciated="true">
|
55
|
-
<version type="integer">1</version>
|
56
|
-
<unit_amount_in_cents type="integer">0</unit_amount_in_cents>
|
57
|
-
<setup_fee_in_cents type="integer">0</setup_fee_in_cents>
|
58
|
-
<plan_interval_length type="integer">1</plan_interval_length>
|
59
|
-
<plan_interval_unit>months</plan_interval_unit>
|
60
|
-
<trial_interval_length type="integer">0</trial_interval_length>
|
61
|
-
<trial_interval_unit>months</trial_interval_unit>
|
62
|
-
<created_at type="datetime">2011-04-03T21:51:42Z</created_at>
|
63
|
-
</latest_version>
|
64
166
|
</plan>
|
65
167
|
|
66
168
|
http_version: "1.1"
|
67
169
|
- !ruby/struct:VCR::HTTPInteraction
|
68
170
|
request: !ruby/struct:VCR::Request
|
69
171
|
method: :put
|
70
|
-
uri: http://api-test%
|
172
|
+
uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/company/plans/test.xml
|
71
173
|
body: |
|
72
174
|
<?xml version="1.0" encoding="UTF-8"?>
|
73
175
|
<plan>
|
@@ -76,95 +178,89 @@
|
|
76
178
|
<description type="yaml" nil="true"></description>
|
77
179
|
<success-url type="yaml" nil="true"></success-url>
|
78
180
|
<cancel-url type="yaml" nil="true"></cancel-url>
|
79
|
-
<created-at type="datetime">2011-04-
|
181
|
+
<created-at type="datetime">2011-04-21T18:02:26Z</created-at>
|
80
182
|
<unit-amount-in-cents type="integer">0</unit-amount-in-cents>
|
81
183
|
<setup-fee-in-cents type="integer">0</setup-fee-in-cents>
|
82
184
|
<plan-interval-length type="integer">1</plan-interval-length>
|
83
185
|
<plan-interval-unit>months</plan-interval-unit>
|
84
186
|
<trial-interval-length type="integer">0</trial-interval-length>
|
85
187
|
<trial-interval-unit>months</trial-interval-unit>
|
86
|
-
<latest-version>
|
87
|
-
<version type="integer">1</version>
|
88
|
-
<unit-amount-in-cents type="integer">0</unit-amount-in-cents>
|
89
|
-
<setup-fee-in-cents type="integer">0</setup-fee-in-cents>
|
90
|
-
<plan-interval-length type="integer">1</plan-interval-length>
|
91
|
-
<plan-interval-unit>months</plan-interval-unit>
|
92
|
-
<trial-interval-length type="integer">0</trial-interval-length>
|
93
|
-
<trial-interval-unit>months</trial-interval-unit>
|
94
|
-
<created-at type="datetime">2011-04-03T21:51:42Z</created-at>
|
95
|
-
</latest-version>
|
96
188
|
<amount-in-cents type="integer">200</amount-in-cents>
|
97
189
|
</plan>
|
98
190
|
|
99
191
|
headers:
|
100
192
|
authorization:
|
101
|
-
- Basic
|
193
|
+
- Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
|
194
|
+
user-agent:
|
195
|
+
- Recurly Ruby Client v0.4.6
|
102
196
|
content-type:
|
103
197
|
- application/xml
|
104
198
|
accept:
|
105
199
|
- "*/*"
|
106
|
-
user-agent:
|
107
|
-
- Ruby
|
108
200
|
connection:
|
109
201
|
- close
|
110
202
|
response: !ruby/struct:VCR::Response
|
111
203
|
status: !ruby/struct:VCR::ResponseStatus
|
112
204
|
code: 200
|
113
|
-
message: OK
|
205
|
+
message: "OK "
|
114
206
|
headers:
|
115
207
|
cache-control:
|
116
208
|
- no-cache
|
117
209
|
x-runtime:
|
118
|
-
- "
|
210
|
+
- "428"
|
119
211
|
content-type:
|
120
212
|
- application/xml; charset=utf-8
|
121
213
|
content-length:
|
122
214
|
- "1"
|
123
|
-
|
124
|
-
-
|
215
|
+
server:
|
216
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
|
217
|
+
date:
|
218
|
+
- Thu, 21 Apr 2011 18:02:29 GMT
|
125
219
|
connection:
|
126
220
|
- close
|
127
|
-
|
128
|
-
-
|
221
|
+
set-cookie:
|
222
|
+
- _recurly_session=cf992d11ddd1ee834dda00781628a4a9; domain=.recurly.local; path=/; HttpOnly
|
129
223
|
body: " "
|
130
224
|
http_version: "1.1"
|
131
225
|
- !ruby/struct:VCR::HTTPInteraction
|
132
226
|
request: !ruby/struct:VCR::Request
|
133
227
|
method: :get
|
134
|
-
uri: http://api-test%
|
228
|
+
uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/company/plans/test.xml
|
135
229
|
body:
|
136
230
|
headers:
|
137
231
|
authorization:
|
138
|
-
- Basic
|
232
|
+
- Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
|
233
|
+
user-agent:
|
234
|
+
- Recurly Ruby Client v0.4.6
|
139
235
|
accept:
|
140
236
|
- application/xml
|
141
237
|
accept-encoding:
|
142
238
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
143
|
-
user-agent:
|
144
|
-
- Ruby
|
145
239
|
connection:
|
146
240
|
- close
|
147
241
|
response: !ruby/struct:VCR::Response
|
148
242
|
status: !ruby/struct:VCR::ResponseStatus
|
149
243
|
code: 200
|
150
|
-
message: OK
|
244
|
+
message: "OK "
|
151
245
|
headers:
|
152
246
|
x-runtime:
|
153
|
-
- "
|
247
|
+
- "223"
|
154
248
|
content-type:
|
155
249
|
- application/xml; charset=utf-8
|
156
250
|
etag:
|
157
|
-
- "\"
|
251
|
+
- "\"15c14ce3b98aabfd04d405144710f461\""
|
158
252
|
cache-control:
|
159
253
|
- private, max-age=0, must-revalidate
|
160
254
|
content-length:
|
161
|
-
- "
|
162
|
-
|
163
|
-
-
|
255
|
+
- "617"
|
256
|
+
server:
|
257
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
|
258
|
+
date:
|
259
|
+
- Thu, 21 Apr 2011 18:02:31 GMT
|
164
260
|
connection:
|
165
261
|
- close
|
166
|
-
|
167
|
-
-
|
262
|
+
set-cookie:
|
263
|
+
- _recurly_session=b53eef0c05a9b113f08519ccc14dd3e7; domain=.recurly.local; path=/; HttpOnly
|
168
264
|
body: |
|
169
265
|
<?xml version="1.0" encoding="UTF-8"?>
|
170
266
|
<plan>
|
@@ -173,23 +269,13 @@
|
|
173
269
|
<description></description>
|
174
270
|
<success_url></success_url>
|
175
271
|
<cancel_url></cancel_url>
|
176
|
-
<created_at type="datetime">2011-04-
|
272
|
+
<created_at type="datetime">2011-04-21T18:02:26Z</created_at>
|
177
273
|
<unit_amount_in_cents type="integer">0</unit_amount_in_cents>
|
178
274
|
<setup_fee_in_cents type="integer">0</setup_fee_in_cents>
|
179
275
|
<plan_interval_length type="integer">1</plan_interval_length>
|
180
276
|
<plan_interval_unit>months</plan_interval_unit>
|
181
277
|
<trial_interval_length type="integer">0</trial_interval_length>
|
182
278
|
<trial_interval_unit>months</trial_interval_unit>
|
183
|
-
<latest_version depreciated="true">
|
184
|
-
<version type="integer">1</version>
|
185
|
-
<unit_amount_in_cents type="integer">0</unit_amount_in_cents>
|
186
|
-
<setup_fee_in_cents type="integer">0</setup_fee_in_cents>
|
187
|
-
<plan_interval_length type="integer">1</plan_interval_length>
|
188
|
-
<plan_interval_unit>months</plan_interval_unit>
|
189
|
-
<trial_interval_length type="integer">0</trial_interval_length>
|
190
|
-
<trial_interval_unit>months</trial_interval_unit>
|
191
|
-
<created_at type="datetime">2011-04-03T21:51:42Z</created_at>
|
192
|
-
</latest_version>
|
193
279
|
</plan>
|
194
280
|
|
195
281
|
http_version: "1.1"
|