recurly 0.4.8 → 0.4.10
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 +2 -2
- data/lib/recurly.rb +2 -1
- data/lib/recurly/account.rb +2 -2
- data/lib/recurly/base.rb +30 -12
- data/lib/recurly/billing_info.rb +2 -2
- data/lib/recurly/exceptions.rb +13 -0
- data/lib/recurly/plan.rb +1 -1
- data/lib/recurly/subscription.rb +2 -2
- data/lib/recurly/transaction.rb +2 -2
- data/lib/recurly/transparent.rb +1 -1
- data/lib/recurly/verification.rb +77 -0
- data/lib/recurly/version.rb +1 -1
- data/spec/config/recurly.yml +4 -4
- data/spec/integration/account_spec.rb +12 -0
- data/spec/integration/billing_info_spec.rb +2 -2
- data/spec/integration/charge_spec.rb +0 -1
- data/spec/integration/plan_spec.rb +2 -2
- data/spec/support/vcr.rb +2 -2
- data/spec/unit/verification_spec.rb +76 -0
- data/spec/vcr/account/accept-language-account/1313708721.yml +39 -0
- data/spec/vcr/account/close/1313708721.yml +104 -0
- data/spec/vcr/account/create-blank/1313708721.yml +33 -0
- data/spec/vcr/account/create-duplicate/1313708721.yml +69 -0
- data/spec/vcr/account/create-min/1313708721.yml +38 -0
- data/spec/vcr/account/create/1313708721.yml +39 -0
- data/spec/vcr/account/find/1313708721.yml +107 -0
- data/spec/vcr/account/list/1313708721.yml +878 -0
- data/spec/vcr/account/update/1313708721.yml +158 -0
- data/spec/vcr/billing/create/1313708721.yml +118 -0
- data/spec/vcr/billing/destroy/1313708721.yml +177 -0
- data/spec/vcr/billing/errors/1313708721.yml +71 -0
- data/spec/vcr/billing/find/1313708721.yml +156 -0
- data/spec/vcr/billing/update/1313708721.yml +159 -0
- data/spec/vcr/charge/create/1313708721.yml +153 -0
- data/spec/vcr/charge/delete-uninvoiced/1313708721.yml +206 -0
- data/spec/vcr/charge/list-all/1313708721.yml +198 -0
- data/spec/vcr/charge/list-invoiced/1313708721.yml +294 -0
- data/spec/vcr/charge/list-pending/1313708721.yml +200 -0
- data/spec/vcr/charge/lookup/1313708721.yml +112 -0
- data/spec/vcr/coupon/create/1296774903.yml +96 -170
- data/spec/vcr/coupon/destroy/1296774903.yml +114 -190
- data/spec/vcr/credit/create/1313708090.yml +112 -0
- data/spec/vcr/credit/delete/1313708090.yml +171 -0
- data/spec/vcr/credit/list/1313708090.yml +198 -0
- data/spec/vcr/credit/lookup/1313708090.yml +112 -0
- data/spec/vcr/invoice/create-no-charges/1296674173.yml +100 -185
- data/spec/vcr/invoice/create/1296674173.yml +182 -328
- data/spec/vcr/invoice/list/1296674173.yml +255 -442
- data/spec/vcr/invoice/lookup/1296674173.yml +187 -331
- data/spec/vcr/plan/all.yml +210 -253
- data/spec/vcr/plan/find.yml +115 -187
- data/spec/vcr/plan/update.yml +105 -187
- data/spec/vcr/subscription/addons/add/1296674173.yml +269 -212
- data/spec/vcr/subscription/addons/create/1296674173.yml +172 -212
- data/spec/vcr/subscription/addons/remove/1296674173.yml +257 -212
- data/spec/vcr/subscription/cancel-with-code/1296674173.yml +271 -452
- data/spec/vcr/subscription/cancel/1296674173.yml +234 -394
- data/spec/vcr/subscription/change1/1296674173.yml +237 -402
- data/spec/vcr/subscription/change2/1296674173.yml +238 -402
- data/spec/vcr/subscription/create/1296674173.yml +123 -221
- data/spec/vcr/subscription/find/1296674173.yml +161 -279
- data/spec/vcr/subscription/reactivate/1296674173.yml +261 -431
- data/spec/vcr/subscription/refund-full/1296674173.yml +223 -373
- data/spec/vcr/subscription/refund-none/1296674173.yml +223 -373
- data/spec/vcr/subscription/refund-partial/1296674173.yml +223 -373
- data/spec/vcr/transaction/all/1311126815.yml +215 -0
- data/spec/vcr/transaction/create-no-account/1311126815.yml +51 -0
- data/spec/vcr/transaction/create-with-account/1311126815.yml +125 -0
- data/spec/vcr/transaction/list-filled/1311126815.yml +349 -0
- data/spec/vcr/transaction/list-initial/1311126815.yml +123 -0
- data/spec/vcr/transaction/lookup/1311126815.yml +335 -0
- data/spec/vcr/transaction/refund/1311126815.yml +163 -0
- data/spec/vcr/transaction/void/1311126815.yml +215 -0
- data/spec/vcr/transparent/post-url/1311239470.yml +76 -0
- metadata +207 -154
- data/spec/vcr/account/accept-language-account/1296674173.yml +0 -70
- data/spec/vcr/account/close/1296674173.yml +0 -164
- data/spec/vcr/account/create-blank/1296674173.yml +0 -52
- data/spec/vcr/account/create-duplicate/1296674173.yml +0 -116
- data/spec/vcr/account/create-min/1296674173.yml +0 -66
- data/spec/vcr/account/create/1296674173.yml +0 -70
- data/spec/vcr/account/find/1296674173.yml +0 -169
- data/spec/vcr/account/list/1296674173.yml +0 -55
- data/spec/vcr/account/update/1296674173.yml +0 -258
- data/spec/vcr/billing/create/1296690812.yml +0 -215
- data/spec/vcr/billing/destroy/1296690812.yml +0 -294
- data/spec/vcr/billing/find/1296690812.yml +0 -280
- data/spec/vcr/billing/update/1296690812.yml +0 -297
- data/spec/vcr/charge/create/1296674173.yml +0 -262
- data/spec/vcr/charge/delete-uninvoiced/1296674173.yml +0 -307
- data/spec/vcr/charge/list-all/1296674173.yml +0 -316
- data/spec/vcr/charge/list-invoiced/1296674173.yml +0 -468
- data/spec/vcr/charge/list-pending/1296674173.yml +0 -316
- data/spec/vcr/charge/lookup/1296674173.yml +0 -180
- data/spec/vcr/coupon/create/1296688818.yml +0 -183
- data/spec/vcr/coupon/destroy/1296688818.yml +0 -207
- data/spec/vcr/credit/create/1296674173.yml +0 -121
- data/spec/vcr/credit/delete/1296674173.yml +0 -121
- data/spec/vcr/credit/list/1296674173.yml +0 -121
- data/spec/vcr/credit/lookup/1296674173.yml +0 -121
- data/spec/vcr/plan/delete/1296674173.yml +0 -225
- data/spec/vcr/transaction/all/1296674173.yml +0 -389
- data/spec/vcr/transaction/create-no-account/1296674173.yml +0 -93
- data/spec/vcr/transaction/create-with-account/1296674173.yml +0 -225
- data/spec/vcr/transaction/list-filled/1296674173.yml +0 -487
- data/spec/vcr/transaction/list-initial/1296674173.yml +0 -217
- data/spec/vcr/transaction/lookup/1296674173.yml +0 -563
- data/spec/vcr/transaction/refund/1296674173.yml +0 -287
- data/spec/vcr/transaction/void/1296674173.yml +0 -352
- data/spec/vcr/transparent/post-url/1311127536.yml +0 -0
- data/spec/vcr/transparent/post-url/1311127583.yml +0 -0
- data/spec/vcr/transparent/post-url/1311128042.yml +0 -0
- data/spec/vcr/transparent/post-url/1311128073.yml +0 -0
- data/spec/vcr/transparent/post-url/1311128087.yml +0 -0
data/spec/vcr/plan/find.yml
CHANGED
@@ -1,202 +1,130 @@
|
|
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://
|
6
|
-
body:
|
7
|
-
headers:
|
8
|
-
|
9
|
-
-
|
10
|
-
accept:
|
5
|
+
uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/site/plans/paid.xml
|
6
|
+
body: !!null
|
7
|
+
headers:
|
8
|
+
user-agent:
|
9
|
+
- Recurly Ruby Client v0.4.10
|
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
|
-
|
15
|
-
|
16
|
-
connection:
|
17
|
-
- close
|
18
|
-
response: !ruby/struct:VCR::Response
|
19
|
-
status: !ruby/struct:VCR::ResponseStatus
|
14
|
+
response: !ruby/struct:VCR::Response
|
15
|
+
status: !ruby/struct:VCR::ResponseStatus
|
20
16
|
code: 200
|
21
|
-
message:
|
22
|
-
headers:
|
23
|
-
|
24
|
-
- "70"
|
25
|
-
content-type:
|
17
|
+
message: OK
|
18
|
+
headers:
|
19
|
+
content-type:
|
26
20
|
- application/xml; charset=utf-8
|
27
|
-
etag:
|
28
|
-
- "
|
29
|
-
cache-control:
|
30
|
-
-
|
31
|
-
|
32
|
-
-
|
33
|
-
|
34
|
-
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
<
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
<trial_interval_length type="integer">0</trial_interval_length>
|
55
|
-
<trial_interval_unit>months</trial_interval_unit>
|
56
|
-
<latest_version depreciated="true">
|
57
|
-
<version type="integer">1</version>
|
58
|
-
<unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
|
59
|
-
<setup_fee_in_cents type="integer">0</setup_fee_in_cents>
|
60
|
-
<plan_interval_length type="integer">1</plan_interval_length>
|
61
|
-
<plan_interval_unit>months</plan_interval_unit>
|
62
|
-
<trial_interval_length type="integer">0</trial_interval_length>
|
63
|
-
<trial_interval_unit>months</trial_interval_unit>
|
64
|
-
<created_at type="datetime">2011-02-02T21:02:59Z</created_at>
|
65
|
-
</latest_version>
|
66
|
-
</plan>
|
67
|
-
|
68
|
-
http_version: "1.1"
|
69
|
-
- !ruby/struct:VCR::HTTPInteraction
|
70
|
-
request: !ruby/struct:VCR::Request
|
21
|
+
etag:
|
22
|
+
- ! '"30df1bac5befaf2f9fc4564c2103a07b"'
|
23
|
+
cache-control:
|
24
|
+
- max-age=0, private, must-revalidate
|
25
|
+
x-ua-compatible:
|
26
|
+
- IE=Edge
|
27
|
+
set-cookie:
|
28
|
+
- _recurly_session=3643c8ab3450be051149e45eadab0d15; domain=.lvh.me; path=/;
|
29
|
+
HttpOnly
|
30
|
+
server:
|
31
|
+
- thin 1.2.11 codename Bat-Shit Crazy
|
32
|
+
body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<plan>\n <plan_code>paid</plan_code>\n
|
33
|
+
\ <name>Paid Plan</name>\n <description></description>\n <success_url></success_url>\n
|
34
|
+
\ <cancel_url></cancel_url>\n <created_at type=\"datetime\">2011-08-02T14:08:28Z</created_at>\n
|
35
|
+
\ <unit_amount_in_cents type=\"integer\">1200</unit_amount_in_cents>\n <setup_fee_in_cents
|
36
|
+
type=\"integer\">0</setup_fee_in_cents>\n <plan_interval_length type=\"integer\">1</plan_interval_length>\n
|
37
|
+
\ <plan_interval_unit>months</plan_interval_unit>\n <trial_interval_length
|
38
|
+
type=\"integer\">0</trial_interval_length>\n <trial_interval_unit>days</trial_interval_unit>\n
|
39
|
+
\ <add_ons type=\"array\">\n <add_on>\n <add_on_code>special</add_on_code>\n
|
40
|
+
\ <default_quantity type=\"integer\">1</default_quantity>\n <default_unit_amount_in_cents
|
41
|
+
type=\"integer\">400</default_unit_amount_in_cents>\n </add_on>\n <add_on>\n
|
42
|
+
\ <add_on_code>special2</add_on_code>\n <default_quantity type=\"integer\">1</default_quantity>\n
|
43
|
+
\ <default_unit_amount_in_cents type=\"integer\">1600</default_unit_amount_in_cents>\n
|
44
|
+
\ </add_on>\n </add_ons>\n</plan>\n"
|
45
|
+
http_version: '1.1'
|
46
|
+
- !ruby/struct:VCR::HTTPInteraction
|
47
|
+
request: !ruby/struct:VCR::Request
|
71
48
|
method: :get
|
72
|
-
uri: http://
|
73
|
-
body:
|
74
|
-
headers:
|
75
|
-
|
76
|
-
-
|
77
|
-
accept:
|
49
|
+
uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/site/plans/trial.xml
|
50
|
+
body: !!null
|
51
|
+
headers:
|
52
|
+
user-agent:
|
53
|
+
- Recurly Ruby Client v0.4.10
|
54
|
+
accept:
|
78
55
|
- application/xml
|
79
|
-
accept-encoding:
|
56
|
+
accept-encoding:
|
80
57
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
81
|
-
|
82
|
-
|
83
|
-
connection:
|
84
|
-
- close
|
85
|
-
response: !ruby/struct:VCR::Response
|
86
|
-
status: !ruby/struct:VCR::ResponseStatus
|
58
|
+
response: !ruby/struct:VCR::Response
|
59
|
+
status: !ruby/struct:VCR::ResponseStatus
|
87
60
|
code: 200
|
88
|
-
message:
|
89
|
-
headers:
|
90
|
-
|
91
|
-
- "268"
|
92
|
-
content-type:
|
61
|
+
message: OK
|
62
|
+
headers:
|
63
|
+
content-type:
|
93
64
|
- application/xml; charset=utf-8
|
94
|
-
etag:
|
95
|
-
- "
|
96
|
-
cache-control:
|
97
|
-
-
|
98
|
-
|
99
|
-
-
|
100
|
-
|
101
|
-
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
<
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
<setup_fee_in_cents type="integer">0</setup_fee_in_cents>
|
119
|
-
<plan_interval_length type="integer">1</plan_interval_length>
|
120
|
-
<plan_interval_unit>months</plan_interval_unit>
|
121
|
-
<trial_interval_length type="integer">1</trial_interval_length>
|
122
|
-
<trial_interval_unit>months</trial_interval_unit>
|
123
|
-
<latest_version depreciated="true">
|
124
|
-
<version type="integer">1</version>
|
125
|
-
<unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
|
126
|
-
<setup_fee_in_cents type="integer">0</setup_fee_in_cents>
|
127
|
-
<plan_interval_length type="integer">1</plan_interval_length>
|
128
|
-
<plan_interval_unit>months</plan_interval_unit>
|
129
|
-
<trial_interval_length type="integer">1</trial_interval_length>
|
130
|
-
<trial_interval_unit>months</trial_interval_unit>
|
131
|
-
<created_at type="datetime">2011-02-02T21:10:36Z</created_at>
|
132
|
-
</latest_version>
|
133
|
-
</plan>
|
134
|
-
|
135
|
-
http_version: "1.1"
|
136
|
-
- !ruby/struct:VCR::HTTPInteraction
|
137
|
-
request: !ruby/struct:VCR::Request
|
65
|
+
etag:
|
66
|
+
- ! '"59cde5d8005c9fb406f30e3b3e4a776d"'
|
67
|
+
cache-control:
|
68
|
+
- max-age=0, private, must-revalidate
|
69
|
+
x-ua-compatible:
|
70
|
+
- IE=Edge
|
71
|
+
set-cookie:
|
72
|
+
- _recurly_session=d266e38e7a8156e14dc271db8848b26a; domain=.lvh.me; path=/;
|
73
|
+
HttpOnly
|
74
|
+
server:
|
75
|
+
- thin 1.2.11 codename Bat-Shit Crazy
|
76
|
+
body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<plan>\n <plan_code>trial</plan_code>\n
|
77
|
+
\ <name>Trial</name>\n <description></description>\n <success_url></success_url>\n
|
78
|
+
\ <cancel_url></cancel_url>\n <created_at type=\"datetime\">2011-08-02T14:08:28Z</created_at>\n
|
79
|
+
\ <unit_amount_in_cents type=\"integer\">500</unit_amount_in_cents>\n <setup_fee_in_cents
|
80
|
+
type=\"integer\">0</setup_fee_in_cents>\n <plan_interval_length type=\"integer\">1</plan_interval_length>\n
|
81
|
+
\ <plan_interval_unit>months</plan_interval_unit>\n <trial_interval_length
|
82
|
+
type=\"integer\">1</trial_interval_length>\n <trial_interval_unit>months</trial_interval_unit>\n
|
83
|
+
\ <add_ons type=\"array\">\n <add_on>\n <add_on_code>coffee</add_on_code>\n
|
84
|
+
\ <default_quantity type=\"integer\">1</default_quantity>\n <default_unit_amount_in_cents
|
85
|
+
type=\"integer\">100</default_unit_amount_in_cents>\n </add_on>\n </add_ons>\n</plan>\n"
|
86
|
+
http_version: '1.1'
|
87
|
+
- !ruby/struct:VCR::HTTPInteraction
|
88
|
+
request: !ruby/struct:VCR::Request
|
138
89
|
method: :get
|
139
|
-
uri: http://
|
140
|
-
body:
|
141
|
-
headers:
|
142
|
-
|
143
|
-
-
|
144
|
-
accept:
|
90
|
+
uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/site/plans/paid.xml
|
91
|
+
body: !!null
|
92
|
+
headers:
|
93
|
+
user-agent:
|
94
|
+
- Recurly Ruby Client v0.4.10
|
95
|
+
accept:
|
145
96
|
- application/xml
|
146
|
-
accept-encoding:
|
97
|
+
accept-encoding:
|
147
98
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
148
|
-
|
149
|
-
|
150
|
-
connection:
|
151
|
-
- close
|
152
|
-
response: !ruby/struct:VCR::Response
|
153
|
-
status: !ruby/struct:VCR::ResponseStatus
|
99
|
+
response: !ruby/struct:VCR::Response
|
100
|
+
status: !ruby/struct:VCR::ResponseStatus
|
154
101
|
code: 200
|
155
|
-
message:
|
156
|
-
headers:
|
157
|
-
|
158
|
-
- "207"
|
159
|
-
content-type:
|
102
|
+
message: OK
|
103
|
+
headers:
|
104
|
+
content-type:
|
160
105
|
- application/xml; charset=utf-8
|
161
|
-
etag:
|
162
|
-
- "
|
163
|
-
cache-control:
|
164
|
-
-
|
165
|
-
|
166
|
-
-
|
167
|
-
|
168
|
-
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
<
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
<plan_interval_length type="integer">1</plan_interval_length>
|
187
|
-
<plan_interval_unit>months</plan_interval_unit>
|
188
|
-
<trial_interval_length type="integer">0</trial_interval_length>
|
189
|
-
<trial_interval_unit>months</trial_interval_unit>
|
190
|
-
<latest_version depreciated="true">
|
191
|
-
<version type="integer">1</version>
|
192
|
-
<unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
|
193
|
-
<setup_fee_in_cents type="integer">0</setup_fee_in_cents>
|
194
|
-
<plan_interval_length type="integer">1</plan_interval_length>
|
195
|
-
<plan_interval_unit>months</plan_interval_unit>
|
196
|
-
<trial_interval_length type="integer">0</trial_interval_length>
|
197
|
-
<trial_interval_unit>months</trial_interval_unit>
|
198
|
-
<created_at type="datetime">2011-02-02T21:02:59Z</created_at>
|
199
|
-
</latest_version>
|
200
|
-
</plan>
|
201
|
-
|
202
|
-
http_version: "1.1"
|
106
|
+
etag:
|
107
|
+
- ! '"30df1bac5befaf2f9fc4564c2103a07b"'
|
108
|
+
cache-control:
|
109
|
+
- max-age=0, private, must-revalidate
|
110
|
+
x-ua-compatible:
|
111
|
+
- IE=Edge
|
112
|
+
set-cookie:
|
113
|
+
- _recurly_session=b9274a09d589568c9cf06ecbd9a3f904; domain=.lvh.me; path=/;
|
114
|
+
HttpOnly
|
115
|
+
server:
|
116
|
+
- thin 1.2.11 codename Bat-Shit Crazy
|
117
|
+
body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<plan>\n <plan_code>paid</plan_code>\n
|
118
|
+
\ <name>Paid Plan</name>\n <description></description>\n <success_url></success_url>\n
|
119
|
+
\ <cancel_url></cancel_url>\n <created_at type=\"datetime\">2011-08-02T14:08:28Z</created_at>\n
|
120
|
+
\ <unit_amount_in_cents type=\"integer\">1200</unit_amount_in_cents>\n <setup_fee_in_cents
|
121
|
+
type=\"integer\">0</setup_fee_in_cents>\n <plan_interval_length type=\"integer\">1</plan_interval_length>\n
|
122
|
+
\ <plan_interval_unit>months</plan_interval_unit>\n <trial_interval_length
|
123
|
+
type=\"integer\">0</trial_interval_length>\n <trial_interval_unit>days</trial_interval_unit>\n
|
124
|
+
\ <add_ons type=\"array\">\n <add_on>\n <add_on_code>special</add_on_code>\n
|
125
|
+
\ <default_quantity type=\"integer\">1</default_quantity>\n <default_unit_amount_in_cents
|
126
|
+
type=\"integer\">400</default_unit_amount_in_cents>\n </add_on>\n <add_on>\n
|
127
|
+
\ <add_on_code>special2</add_on_code>\n <default_quantity type=\"integer\">1</default_quantity>\n
|
128
|
+
\ <default_unit_amount_in_cents type=\"integer\">1600</default_unit_amount_in_cents>\n
|
129
|
+
\ </add_on>\n </add_ons>\n</plan>\n"
|
130
|
+
http_version: '1.1'
|
data/spec/vcr/plan/update.yml
CHANGED
@@ -1,201 +1,119 @@
|
|
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://
|
6
|
-
body:
|
7
|
-
headers:
|
8
|
-
|
9
|
-
-
|
10
|
-
accept:
|
5
|
+
uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/site/plans/test.xml
|
6
|
+
body: !!null
|
7
|
+
headers:
|
8
|
+
user-agent:
|
9
|
+
- Recurly Ruby Client v0.4.10
|
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
|
-
|
15
|
-
|
16
|
-
connection:
|
17
|
-
- close
|
18
|
-
response: !ruby/struct:VCR::Response
|
19
|
-
status: !ruby/struct:VCR::ResponseStatus
|
14
|
+
response: !ruby/struct:VCR::Response
|
15
|
+
status: !ruby/struct:VCR::ResponseStatus
|
20
16
|
code: 200
|
21
|
-
message:
|
22
|
-
headers:
|
23
|
-
|
24
|
-
- "214"
|
25
|
-
content-type:
|
17
|
+
message: OK
|
18
|
+
headers:
|
19
|
+
content-type:
|
26
20
|
- application/xml; charset=utf-8
|
27
|
-
etag:
|
28
|
-
- "
|
29
|
-
cache-control:
|
30
|
-
-
|
31
|
-
|
32
|
-
-
|
33
|
-
|
34
|
-
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
<
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
<cancel_url></cancel_url>
|
49
|
-
<created_at type="datetime">2011-02-02T21:10:47Z</created_at>
|
50
|
-
<unit_amount_in_cents type="integer">200</unit_amount_in_cents>
|
51
|
-
<setup_fee_in_cents type="integer">0</setup_fee_in_cents>
|
52
|
-
<plan_interval_length type="integer">1</plan_interval_length>
|
53
|
-
<plan_interval_unit>months</plan_interval_unit>
|
54
|
-
<trial_interval_length type="integer">0</trial_interval_length>
|
55
|
-
<trial_interval_unit>months</trial_interval_unit>
|
56
|
-
<latest_version depreciated="true">
|
57
|
-
<version type="integer">1</version>
|
58
|
-
<unit_amount_in_cents type="integer">200</unit_amount_in_cents>
|
59
|
-
<setup_fee_in_cents type="integer">0</setup_fee_in_cents>
|
60
|
-
<plan_interval_length type="integer">1</plan_interval_length>
|
61
|
-
<plan_interval_unit>months</plan_interval_unit>
|
62
|
-
<trial_interval_length type="integer">0</trial_interval_length>
|
63
|
-
<trial_interval_unit>months</trial_interval_unit>
|
64
|
-
<created_at type="datetime">2011-02-02T21:10:51Z</created_at>
|
65
|
-
</latest_version>
|
66
|
-
</plan>
|
67
|
-
|
68
|
-
http_version: "1.1"
|
69
|
-
- !ruby/struct:VCR::HTTPInteraction
|
70
|
-
request: !ruby/struct:VCR::Request
|
21
|
+
etag:
|
22
|
+
- ! '"dafe33cb9edb7dee5277e875786e0443"'
|
23
|
+
cache-control:
|
24
|
+
- max-age=0, private, must-revalidate
|
25
|
+
x-ua-compatible:
|
26
|
+
- IE=Edge
|
27
|
+
set-cookie:
|
28
|
+
- _recurly_session=c378d616f949f7be2b07ba1d133a20a0; domain=.lvh.me; path=/;
|
29
|
+
HttpOnly
|
30
|
+
server:
|
31
|
+
- thin 1.2.11 codename Bat-Shit Crazy
|
32
|
+
body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<plan>\n <plan_code>test</plan_code>\n
|
33
|
+
\ <name>Test Plan</name>\n <description></description>\n <success_url></success_url>\n
|
34
|
+
\ <cancel_url></cancel_url>\n <created_at type=\"datetime\">2011-08-17T23:23:17Z</created_at>\n
|
35
|
+
\ <unit_amount_in_cents type=\"integer\">200</unit_amount_in_cents>\n <setup_fee_in_cents
|
36
|
+
type=\"integer\">0</setup_fee_in_cents>\n <plan_interval_length type=\"integer\">1</plan_interval_length>\n
|
37
|
+
\ <plan_interval_unit>months</plan_interval_unit>\n <trial_interval_length
|
38
|
+
type=\"integer\">0</trial_interval_length>\n <trial_interval_unit>months</trial_interval_unit>\n</plan>\n"
|
39
|
+
http_version: '1.1'
|
40
|
+
- !ruby/struct:VCR::HTTPInteraction
|
41
|
+
request: !ruby/struct:VCR::Request
|
71
42
|
method: :put
|
72
|
-
uri: http://
|
73
|
-
body:
|
74
|
-
|
75
|
-
<
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
<plan-interval-length type="integer">1</plan-interval-length>
|
85
|
-
<plan-interval-unit>months</plan-interval-unit>
|
86
|
-
<trial-interval-length type="integer">0</trial-interval-length>
|
87
|
-
<trial-interval-unit>months</trial-interval-unit>
|
88
|
-
<latest-version>
|
89
|
-
<depreciated>true</depreciated>
|
90
|
-
<version type="integer">1</version>
|
91
|
-
<unit-amount-in-cents type="integer">200</unit-amount-in-cents>
|
92
|
-
<setup-fee-in-cents type="integer">0</setup-fee-in-cents>
|
93
|
-
<plan-interval-length type="integer">1</plan-interval-length>
|
94
|
-
<plan-interval-unit>months</plan-interval-unit>
|
95
|
-
<trial-interval-length type="integer">0</trial-interval-length>
|
96
|
-
<trial-interval-unit>months</trial-interval-unit>
|
97
|
-
<created-at type="datetime">2011-02-02T21:10:51Z</created-at>
|
98
|
-
</latest-version>
|
99
|
-
</plan>
|
100
|
-
|
101
|
-
headers:
|
102
|
-
authorization:
|
103
|
-
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
104
|
-
content-type:
|
43
|
+
uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/site/plans/test.xml
|
44
|
+
body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<plan>\n <plan-code>test</plan-code>\n
|
45
|
+
\ <name>Test Plan</name>\n <description nil=\"true\"></description>\n <success-url
|
46
|
+
nil=\"true\"></success-url>\n <cancel-url nil=\"true\"></cancel-url>\n <created-at
|
47
|
+
type=\"datetime\">2011-08-17T23:23:17Z</created-at>\n <unit-amount-in-cents
|
48
|
+
type=\"integer\">200</unit-amount-in-cents>\n <setup-fee-in-cents type=\"integer\">0</setup-fee-in-cents>\n
|
49
|
+
\ <plan-interval-length type=\"integer\">1</plan-interval-length>\n <plan-interval-unit>months</plan-interval-unit>\n
|
50
|
+
\ <trial-interval-length type=\"integer\">0</trial-interval-length>\n <trial-interval-unit>months</trial-interval-unit>\n</plan>\n"
|
51
|
+
headers:
|
52
|
+
user-agent:
|
53
|
+
- Recurly Ruby Client v0.4.10
|
54
|
+
content-type:
|
105
55
|
- application/xml
|
106
|
-
|
107
|
-
|
108
|
-
user-agent:
|
109
|
-
- Ruby
|
110
|
-
connection:
|
111
|
-
- close
|
112
|
-
response: !ruby/struct:VCR::Response
|
113
|
-
status: !ruby/struct:VCR::ResponseStatus
|
56
|
+
response: !ruby/struct:VCR::Response
|
57
|
+
status: !ruby/struct:VCR::ResponseStatus
|
114
58
|
code: 200
|
115
|
-
message:
|
116
|
-
headers:
|
117
|
-
|
118
|
-
- no-cache
|
119
|
-
x-runtime:
|
120
|
-
- "254"
|
121
|
-
content-type:
|
59
|
+
message: OK
|
60
|
+
headers:
|
61
|
+
content-type:
|
122
62
|
- application/xml; charset=utf-8
|
123
|
-
|
124
|
-
- "
|
125
|
-
|
126
|
-
-
|
127
|
-
|
128
|
-
-
|
129
|
-
|
130
|
-
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
63
|
+
etag:
|
64
|
+
- ! '"dafe33cb9edb7dee5277e875786e0443"'
|
65
|
+
cache-control:
|
66
|
+
- max-age=0, private, must-revalidate
|
67
|
+
x-ua-compatible:
|
68
|
+
- IE=Edge
|
69
|
+
set-cookie:
|
70
|
+
- _recurly_session=9831a42716f42fc603e1b5aff75ffd2b; domain=.lvh.me; path=/;
|
71
|
+
HttpOnly
|
72
|
+
server:
|
73
|
+
- thin 1.2.11 codename Bat-Shit Crazy
|
74
|
+
body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<plan>\n <plan_code>test</plan_code>\n
|
75
|
+
\ <name>Test Plan</name>\n <description></description>\n <success_url></success_url>\n
|
76
|
+
\ <cancel_url></cancel_url>\n <created_at type=\"datetime\">2011-08-17T23:23:17Z</created_at>\n
|
77
|
+
\ <unit_amount_in_cents type=\"integer\">200</unit_amount_in_cents>\n <setup_fee_in_cents
|
78
|
+
type=\"integer\">0</setup_fee_in_cents>\n <plan_interval_length type=\"integer\">1</plan_interval_length>\n
|
79
|
+
\ <plan_interval_unit>months</plan_interval_unit>\n <trial_interval_length
|
80
|
+
type=\"integer\">0</trial_interval_length>\n <trial_interval_unit>months</trial_interval_unit>\n</plan>\n"
|
81
|
+
http_version: '1.1'
|
82
|
+
- !ruby/struct:VCR::HTTPInteraction
|
83
|
+
request: !ruby/struct:VCR::Request
|
137
84
|
method: :get
|
138
|
-
uri: http://
|
139
|
-
body:
|
140
|
-
headers:
|
141
|
-
|
142
|
-
-
|
143
|
-
accept:
|
85
|
+
uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/site/plans/test.xml
|
86
|
+
body: !!null
|
87
|
+
headers:
|
88
|
+
user-agent:
|
89
|
+
- Recurly Ruby Client v0.4.10
|
90
|
+
accept:
|
144
91
|
- application/xml
|
145
|
-
accept-encoding:
|
92
|
+
accept-encoding:
|
146
93
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
147
|
-
|
148
|
-
|
149
|
-
connection:
|
150
|
-
- close
|
151
|
-
response: !ruby/struct:VCR::Response
|
152
|
-
status: !ruby/struct:VCR::ResponseStatus
|
94
|
+
response: !ruby/struct:VCR::Response
|
95
|
+
status: !ruby/struct:VCR::ResponseStatus
|
153
96
|
code: 200
|
154
|
-
message:
|
155
|
-
headers:
|
156
|
-
|
157
|
-
- "208"
|
158
|
-
content-type:
|
97
|
+
message: OK
|
98
|
+
headers:
|
99
|
+
content-type:
|
159
100
|
- application/xml; charset=utf-8
|
160
|
-
etag:
|
161
|
-
- "
|
162
|
-
cache-control:
|
163
|
-
-
|
164
|
-
|
165
|
-
-
|
166
|
-
|
167
|
-
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
<
|
177
|
-
|
178
|
-
|
179
|
-
<description></description>
|
180
|
-
<success_url></success_url>
|
181
|
-
<cancel_url></cancel_url>
|
182
|
-
<created_at type="datetime">2011-02-02T21:10:47Z</created_at>
|
183
|
-
<unit_amount_in_cents type="integer">200</unit_amount_in_cents>
|
184
|
-
<setup_fee_in_cents type="integer">0</setup_fee_in_cents>
|
185
|
-
<plan_interval_length type="integer">1</plan_interval_length>
|
186
|
-
<plan_interval_unit>months</plan_interval_unit>
|
187
|
-
<trial_interval_length type="integer">0</trial_interval_length>
|
188
|
-
<trial_interval_unit>months</trial_interval_unit>
|
189
|
-
<latest_version depreciated="true">
|
190
|
-
<version type="integer">1</version>
|
191
|
-
<unit_amount_in_cents type="integer">200</unit_amount_in_cents>
|
192
|
-
<setup_fee_in_cents type="integer">0</setup_fee_in_cents>
|
193
|
-
<plan_interval_length type="integer">1</plan_interval_length>
|
194
|
-
<plan_interval_unit>months</plan_interval_unit>
|
195
|
-
<trial_interval_length type="integer">0</trial_interval_length>
|
196
|
-
<trial_interval_unit>months</trial_interval_unit>
|
197
|
-
<created_at type="datetime">2011-02-02T21:10:51Z</created_at>
|
198
|
-
</latest_version>
|
199
|
-
</plan>
|
200
|
-
|
201
|
-
http_version: "1.1"
|
101
|
+
etag:
|
102
|
+
- ! '"dafe33cb9edb7dee5277e875786e0443"'
|
103
|
+
cache-control:
|
104
|
+
- max-age=0, private, must-revalidate
|
105
|
+
x-ua-compatible:
|
106
|
+
- IE=Edge
|
107
|
+
set-cookie:
|
108
|
+
- _recurly_session=cfdac8f12dcc825c9ace442dab9d77e9; domain=.lvh.me; path=/;
|
109
|
+
HttpOnly
|
110
|
+
server:
|
111
|
+
- thin 1.2.11 codename Bat-Shit Crazy
|
112
|
+
body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<plan>\n <plan_code>test</plan_code>\n
|
113
|
+
\ <name>Test Plan</name>\n <description></description>\n <success_url></success_url>\n
|
114
|
+
\ <cancel_url></cancel_url>\n <created_at type=\"datetime\">2011-08-17T23:23:17Z</created_at>\n
|
115
|
+
\ <unit_amount_in_cents type=\"integer\">200</unit_amount_in_cents>\n <setup_fee_in_cents
|
116
|
+
type=\"integer\">0</setup_fee_in_cents>\n <plan_interval_length type=\"integer\">1</plan_interval_length>\n
|
117
|
+
\ <plan_interval_unit>months</plan_interval_unit>\n <trial_interval_length
|
118
|
+
type=\"integer\">0</trial_interval_length>\n <trial_interval_unit>months</trial_interval_unit>\n</plan>\n"
|
119
|
+
http_version: '1.1'
|