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
@@ -1,225 +1,185 @@
|
|
1
|
-
---
|
2
|
-
- !ruby/struct:VCR::HTTPInteraction
|
3
|
-
request: !ruby/struct:VCR::Request
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
4
|
method: :post
|
5
|
-
uri: http://
|
6
|
-
body:
|
7
|
-
|
8
|
-
<
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
<accept-language type="yaml" nil="true"></accept-language>
|
15
|
-
</account>
|
16
|
-
|
17
|
-
headers:
|
18
|
-
authorization:
|
19
|
-
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
20
|
-
content-type:
|
5
|
+
uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts.xml
|
6
|
+
body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<account>\n <account-code>subscription-addons-create-1296674173</account-code>\n
|
7
|
+
\ <first-name>Verena</first-name>\n <last-name>Test</last-name>\n <email>verena@test.com</email>\n
|
8
|
+
\ <company-name>Recurly Ruby Gem</company-name>\n <billing-info>\n <credit-card>\n
|
9
|
+
\ </credit-card>\n </billing-info>\n <accept-language nil=\"true\"></accept-language>\n</account>\n"
|
10
|
+
headers:
|
11
|
+
user-agent:
|
12
|
+
- Recurly Ruby Client v0.4.10
|
13
|
+
content-type:
|
21
14
|
- application/xml
|
22
|
-
|
23
|
-
|
24
|
-
user-agent:
|
25
|
-
- Ruby
|
26
|
-
connection:
|
27
|
-
- close
|
28
|
-
response: !ruby/struct:VCR::Response
|
29
|
-
status: !ruby/struct:VCR::ResponseStatus
|
15
|
+
response: !ruby/struct:VCR::Response
|
16
|
+
status: !ruby/struct:VCR::ResponseStatus
|
30
17
|
code: 201
|
31
|
-
message:
|
32
|
-
headers:
|
33
|
-
|
34
|
-
-
|
35
|
-
|
36
|
-
- http://litle-test.recurly.local:3000/accounts/subscription-addons-create-1296674173
|
37
|
-
x-runtime:
|
38
|
-
- "559"
|
39
|
-
content-type:
|
18
|
+
message: Created
|
19
|
+
headers:
|
20
|
+
location:
|
21
|
+
- http://app.lvh.me:3000/accounts/subscription-addons-create-1296674173
|
22
|
+
content-type:
|
40
23
|
- application/xml; charset=utf-8
|
41
|
-
|
42
|
-
-
|
43
|
-
|
44
|
-
-
|
45
|
-
|
46
|
-
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
<account
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
<email>verena@test.com</email>
|
60
|
-
<first_name>Verena</first_name>
|
61
|
-
<last_name>Test</last_name>
|
62
|
-
<company_name>Recurly Ruby Gem</company_name>
|
63
|
-
<balance_in_cents type="integer">0</balance_in_cents>
|
64
|
-
<closed type="boolean">false</closed>
|
65
|
-
<hosted_login_token>56ae50cc980a415b89ea3d0dffda7bfc</hosted_login_token>
|
66
|
-
<created_at type="datetime">2011-02-03T22:17:16Z</created_at>
|
67
|
-
<state>active</state>
|
68
|
-
</account>
|
69
|
-
|
70
|
-
http_version: "1.1"
|
71
|
-
- !ruby/struct:VCR::HTTPInteraction
|
72
|
-
request: !ruby/struct:VCR::Request
|
24
|
+
cache-control:
|
25
|
+
- no-cache
|
26
|
+
x-ua-compatible:
|
27
|
+
- IE=Edge
|
28
|
+
set-cookie:
|
29
|
+
- _recurly_session=0994930519e4552ef2f6c12c70e2b440; domain=.lvh.me; path=/;
|
30
|
+
HttpOnly
|
31
|
+
server:
|
32
|
+
- thin 1.2.11 codename Bat-Shit Crazy
|
33
|
+
body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<account>\n <id>subscription-addons-create-1296674173</id>\n
|
34
|
+
\ <account_code>subscription-addons-create-1296674173</account_code>\n <username></username>\n
|
35
|
+
\ <email>verena@test.com</email>\n <first_name>Verena</first_name>\n <last_name>Test</last_name>\n
|
36
|
+
\ <company_name>Recurly Ruby Gem</company_name>\n <balance_in_cents type=\"integer\">0</balance_in_cents>\n
|
37
|
+
\ <closed type=\"boolean\">false</closed>\n <hosted_login_token>795e883067e04f1f9868bc4a6542f070</hosted_login_token>\n
|
38
|
+
\ <created_at type=\"datetime\">2011-08-19T20:01:08Z</created_at>\n <state>active</state>\n</account>\n"
|
39
|
+
http_version: '1.1'
|
40
|
+
- !ruby/struct:VCR::HTTPInteraction
|
41
|
+
request: !ruby/struct:VCR::Request
|
73
42
|
method: :get
|
74
|
-
uri: http://
|
75
|
-
body:
|
76
|
-
headers:
|
77
|
-
|
78
|
-
-
|
79
|
-
accept:
|
43
|
+
uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/site/plans/paid.xml
|
44
|
+
body: !!null
|
45
|
+
headers:
|
46
|
+
user-agent:
|
47
|
+
- Recurly Ruby Client v0.4.10
|
48
|
+
accept:
|
80
49
|
- application/xml
|
81
|
-
accept-encoding:
|
50
|
+
accept-encoding:
|
82
51
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
83
|
-
|
84
|
-
|
85
|
-
connection:
|
86
|
-
- close
|
87
|
-
response: !ruby/struct:VCR::Response
|
88
|
-
status: !ruby/struct:VCR::ResponseStatus
|
52
|
+
response: !ruby/struct:VCR::Response
|
53
|
+
status: !ruby/struct:VCR::ResponseStatus
|
89
54
|
code: 200
|
90
|
-
message:
|
91
|
-
headers:
|
92
|
-
|
93
|
-
- "191"
|
94
|
-
content-type:
|
55
|
+
message: OK
|
56
|
+
headers:
|
57
|
+
content-type:
|
95
58
|
- application/xml; charset=utf-8
|
96
|
-
etag:
|
97
|
-
- "
|
98
|
-
cache-control:
|
99
|
-
-
|
100
|
-
|
101
|
-
-
|
102
|
-
|
103
|
-
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
<
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
<trial_interval_length type="integer">0</trial_interval_length>
|
124
|
-
<trial_interval_unit>months</trial_interval_unit>
|
125
|
-
<latest_version depreciated="true">
|
126
|
-
<version type="integer">1</version>
|
127
|
-
<unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
|
128
|
-
<setup_fee_in_cents type="integer">0</setup_fee_in_cents>
|
129
|
-
<plan_interval_length type="integer">1</plan_interval_length>
|
130
|
-
<plan_interval_unit>months</plan_interval_unit>
|
131
|
-
<trial_interval_length type="integer">0</trial_interval_length>
|
132
|
-
<trial_interval_unit>months</trial_interval_unit>
|
133
|
-
<created_at type="datetime">2011-02-02T21:02:59Z</created_at>
|
134
|
-
</latest_version>
|
135
|
-
</plan>
|
136
|
-
|
137
|
-
http_version: "1.1"
|
138
|
-
- !ruby/struct:VCR::HTTPInteraction
|
139
|
-
request: !ruby/struct:VCR::Request
|
59
|
+
etag:
|
60
|
+
- ! '"30df1bac5befaf2f9fc4564c2103a07b"'
|
61
|
+
cache-control:
|
62
|
+
- max-age=0, private, must-revalidate
|
63
|
+
x-ua-compatible:
|
64
|
+
- IE=Edge
|
65
|
+
set-cookie:
|
66
|
+
- _recurly_session=bdbcedd29a628dafa1190b854cba6261; domain=.lvh.me; path=/;
|
67
|
+
HttpOnly
|
68
|
+
server:
|
69
|
+
- thin 1.2.11 codename Bat-Shit Crazy
|
70
|
+
body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<plan>\n <plan_code>paid</plan_code>\n
|
71
|
+
\ <name>Paid Plan</name>\n <description></description>\n <success_url></success_url>\n
|
72
|
+
\ <cancel_url></cancel_url>\n <created_at type=\"datetime\">2011-08-02T14:08:28Z</created_at>\n
|
73
|
+
\ <unit_amount_in_cents type=\"integer\">1200</unit_amount_in_cents>\n <setup_fee_in_cents
|
74
|
+
type=\"integer\">0</setup_fee_in_cents>\n <plan_interval_length type=\"integer\">1</plan_interval_length>\n
|
75
|
+
\ <plan_interval_unit>months</plan_interval_unit>\n <trial_interval_length
|
76
|
+
type=\"integer\">0</trial_interval_length>\n <trial_interval_unit>days</trial_interval_unit>\n
|
77
|
+
\ <add_ons type=\"array\">\n <add_on>\n <add_on_code>special</add_on_code>\n
|
78
|
+
\ <default_quantity type=\"integer\">1</default_quantity>\n <default_unit_amount_in_cents
|
79
|
+
type=\"integer\">400</default_unit_amount_in_cents>\n </add_on>\n <add_on>\n
|
80
|
+
\ <add_on_code>special2</add_on_code>\n <default_quantity type=\"integer\">1</default_quantity>\n
|
81
|
+
\ <default_unit_amount_in_cents type=\"integer\">1600</default_unit_amount_in_cents>\n
|
82
|
+
\ </add_on>\n </add_ons>\n</plan>\n"
|
83
|
+
http_version: '1.1'
|
84
|
+
- !ruby/struct:VCR::HTTPInteraction
|
85
|
+
request: !ruby/struct:VCR::Request
|
140
86
|
method: :post
|
141
|
-
uri: http://
|
142
|
-
body:
|
143
|
-
|
144
|
-
<
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
<city>San Francisco</city>
|
164
|
-
<state>CA</state>
|
165
|
-
<zip>94115</zip>
|
166
|
-
<country>US</country>
|
167
|
-
<credit-card>
|
168
|
-
<number>4111111111111111</number>
|
169
|
-
<year type="integer">2012</year>
|
170
|
-
<month type="integer">2</month>
|
171
|
-
<verification-value>123</verification-value>
|
172
|
-
</credit-card>
|
173
|
-
<first-name>Verena</first-name>
|
174
|
-
<last-name>Test</last-name>
|
175
|
-
</billing-info>
|
176
|
-
</account>
|
177
|
-
<add-ons type="array">
|
178
|
-
<add-on>
|
179
|
-
<add-on-code>special</add-on-code>
|
180
|
-
<quantity type="integer">1</quantity>
|
181
|
-
<unit-amount type="integer">10</unit-amount>
|
182
|
-
</add-on>
|
183
|
-
</add-ons>
|
184
|
-
</subscription>
|
185
|
-
|
186
|
-
headers:
|
187
|
-
authorization:
|
188
|
-
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
189
|
-
content-type:
|
87
|
+
uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/subscription-addons-create-1296674173/subscription.xml
|
88
|
+
body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<subscription>\n <plan-code>paid</plan-code>\n
|
89
|
+
\ <quantity type=\"integer\">1</quantity>\n <account>\n <account-code>subscription-addons-create-1296674173</account-code>\n
|
90
|
+
\ <first-name>Verena</first-name>\n <last-name>Test</last-name>\n <email>verena@test.com</email>\n
|
91
|
+
\ <company-name>Recurly Ruby Gem</company-name>\n <billing-info>\n <first-name>Verena</first-name>\n
|
92
|
+
\ <last-name>Test</last-name>\n <address1>123 Test St</address1>\n
|
93
|
+
\ <city>San Francisco</city>\n <state>CA</state>\n <zip>94115</zip>\n
|
94
|
+
\ <country>US</country>\n <credit-card>\n <number>4111111111111111</number>\n
|
95
|
+
\ <year type=\"integer\">2012</year>\n <month type=\"integer\">8</month>\n
|
96
|
+
\ <verification-value>123</verification-value>\n </credit-card>\n
|
97
|
+
\ </billing-info>\n <accept-language nil=\"true\"></accept-language>\n
|
98
|
+
\ <id>subscription-addons-create-1296674173</id>\n <username nil=\"true\"></username>\n
|
99
|
+
\ <balance-in-cents type=\"integer\">0</balance-in-cents>\n <closed type=\"boolean\">false</closed>\n
|
100
|
+
\ <hosted-login-token>795e883067e04f1f9868bc4a6542f070</hosted-login-token>\n
|
101
|
+
\ <created-at type=\"datetime\">2011-08-19T20:01:08Z</created-at>\n <state>active</state>\n
|
102
|
+
\ </account>\n <add-ons type=\"array\">\n <add-on>\n <add-on-code>special</add-on-code>\n
|
103
|
+
\ <quantity type=\"integer\">1</quantity>\n <unit-amount type=\"integer\">10</unit-amount>\n
|
104
|
+
\ </add-on>\n </add-ons>\n <addons type=\"array\"/>\n</subscription>\n"
|
105
|
+
headers:
|
106
|
+
user-agent:
|
107
|
+
- Recurly Ruby Client v0.4.10
|
108
|
+
content-type:
|
190
109
|
- application/xml
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
-
|
197
|
-
|
198
|
-
|
199
|
-
code: 422
|
200
|
-
message: ""
|
201
|
-
headers:
|
202
|
-
cache-control:
|
110
|
+
response: !ruby/struct:VCR::Response
|
111
|
+
status: !ruby/struct:VCR::ResponseStatus
|
112
|
+
code: 201
|
113
|
+
message: Created
|
114
|
+
headers:
|
115
|
+
content-type:
|
116
|
+
- application/xml; charset=utf-8
|
117
|
+
cache-control:
|
203
118
|
- no-cache
|
204
|
-
x-
|
205
|
-
-
|
206
|
-
|
119
|
+
x-ua-compatible:
|
120
|
+
- IE=Edge
|
121
|
+
set-cookie:
|
122
|
+
- _recurly_session=d104424fa87bb499a858886fa010cf22; domain=.lvh.me; path=/;
|
123
|
+
HttpOnly
|
124
|
+
server:
|
125
|
+
- thin 1.2.11 codename Bat-Shit Crazy
|
126
|
+
body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<subscription>\n <id>subscription-addons-create-1296674173</id>\n
|
127
|
+
\ <account_code>subscription-addons-create-1296674173</account_code>\n <plan>\n
|
128
|
+
\ <plan_code>paid</plan_code>\n <name>Paid Plan</name>\n </plan>\n <state>active</state>\n
|
129
|
+
\ <quantity type=\"integer\">1</quantity>\n <unit_amount_in_cents type=\"integer\">1200</unit_amount_in_cents>\n
|
130
|
+
\ <total_amount_in_cents type=\"integer\">2200</total_amount_in_cents>\n <activated_at
|
131
|
+
type=\"datetime\">2011-08-19T20:01:08Z</activated_at>\n <canceled_at nil=\"true\"
|
132
|
+
type=\"datetime\"></canceled_at>\n <expires_at nil=\"true\" type=\"datetime\"></expires_at>\n
|
133
|
+
\ <current_period_started_at type=\"datetime\">2011-08-19T20:01:08Z</current_period_started_at>\n
|
134
|
+
\ <current_period_ends_at type=\"datetime\">2011-09-19T20:01:08Z</current_period_ends_at>\n
|
135
|
+
\ <trial_started_at nil=\"true\" type=\"datetime\"></trial_started_at>\n <trial_ends_at
|
136
|
+
nil=\"true\" type=\"datetime\"></trial_ends_at>\n <add_ons type=\"array\">\n
|
137
|
+
\ <add_on>\n <add_on_code>special</add_on_code>\n <unit_amount_in_cents
|
138
|
+
type=\"integer\">1000</unit_amount_in_cents>\n <quantity type=\"integer\">1</quantity>\n
|
139
|
+
\ </add_on>\n </add_ons>\n</subscription>\n"
|
140
|
+
http_version: '1.1'
|
141
|
+
- !ruby/struct:VCR::HTTPInteraction
|
142
|
+
request: !ruby/struct:VCR::Request
|
143
|
+
method: :get
|
144
|
+
uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/subscription-addons-create-1296674173/subscription.xml
|
145
|
+
body: !!null
|
146
|
+
headers:
|
147
|
+
user-agent:
|
148
|
+
- Recurly Ruby Client v0.4.10
|
149
|
+
accept:
|
150
|
+
- application/xml
|
151
|
+
accept-encoding:
|
152
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
153
|
+
response: !ruby/struct:VCR::Response
|
154
|
+
status: !ruby/struct:VCR::ResponseStatus
|
155
|
+
code: 200
|
156
|
+
message: OK
|
157
|
+
headers:
|
158
|
+
content-type:
|
207
159
|
- application/xml; charset=utf-8
|
208
|
-
|
209
|
-
- "
|
210
|
-
|
211
|
-
-
|
212
|
-
|
213
|
-
-
|
214
|
-
|
215
|
-
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
<
|
221
|
-
|
222
|
-
|
223
|
-
</
|
224
|
-
|
225
|
-
|
160
|
+
etag:
|
161
|
+
- ! '"bf9fae64cbe5adf6b171c02c6d25cb55"'
|
162
|
+
cache-control:
|
163
|
+
- max-age=0, private, must-revalidate
|
164
|
+
x-ua-compatible:
|
165
|
+
- IE=Edge
|
166
|
+
set-cookie:
|
167
|
+
- _recurly_session=512e489d2a004ee42da845f3d2a9a92e; domain=.lvh.me; path=/;
|
168
|
+
HttpOnly
|
169
|
+
server:
|
170
|
+
- thin 1.2.11 codename Bat-Shit Crazy
|
171
|
+
body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<subscription>\n <id>subscription-addons-create-1296674173</id>\n
|
172
|
+
\ <account_code>subscription-addons-create-1296674173</account_code>\n <plan>\n
|
173
|
+
\ <plan_code>paid</plan_code>\n <name>Paid Plan</name>\n </plan>\n <state>active</state>\n
|
174
|
+
\ <quantity type=\"integer\">1</quantity>\n <unit_amount_in_cents type=\"integer\">1200</unit_amount_in_cents>\n
|
175
|
+
\ <total_amount_in_cents type=\"integer\">2200</total_amount_in_cents>\n <activated_at
|
176
|
+
type=\"datetime\">2011-08-19T20:01:08Z</activated_at>\n <canceled_at nil=\"true\"
|
177
|
+
type=\"datetime\"></canceled_at>\n <expires_at nil=\"true\" type=\"datetime\"></expires_at>\n
|
178
|
+
\ <current_period_started_at type=\"datetime\">2011-08-19T20:01:08Z</current_period_started_at>\n
|
179
|
+
\ <current_period_ends_at type=\"datetime\">2011-09-19T20:01:08Z</current_period_ends_at>\n
|
180
|
+
\ <trial_started_at nil=\"true\" type=\"datetime\"></trial_started_at>\n <trial_ends_at
|
181
|
+
nil=\"true\" type=\"datetime\"></trial_ends_at>\n <add_ons type=\"array\">\n
|
182
|
+
\ <add_on>\n <add_on_code>special</add_on_code>\n <unit_amount_in_cents
|
183
|
+
type=\"integer\">1000</unit_amount_in_cents>\n <quantity type=\"integer\">1</quantity>\n
|
184
|
+
\ </add_on>\n </add_ons>\n</subscription>\n"
|
185
|
+
http_version: '1.1'
|
@@ -1,225 +1,270 @@
|
|
1
|
-
---
|
2
|
-
- !ruby/struct:VCR::HTTPInteraction
|
3
|
-
request: !ruby/struct:VCR::Request
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
4
|
method: :post
|
5
|
-
uri: http://
|
6
|
-
body:
|
7
|
-
|
8
|
-
<
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
<accept-language type="yaml" nil="true"></accept-language>
|
15
|
-
</account>
|
16
|
-
|
17
|
-
headers:
|
18
|
-
authorization:
|
19
|
-
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
20
|
-
content-type:
|
5
|
+
uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts.xml
|
6
|
+
body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<account>\n <account-code>subscription-addons-remove-1296674173</account-code>\n
|
7
|
+
\ <first-name>Verena</first-name>\n <last-name>Test</last-name>\n <email>verena@test.com</email>\n
|
8
|
+
\ <company-name>Recurly Ruby Gem</company-name>\n <billing-info>\n <credit-card>\n
|
9
|
+
\ </credit-card>\n </billing-info>\n <accept-language nil=\"true\"></accept-language>\n</account>\n"
|
10
|
+
headers:
|
11
|
+
user-agent:
|
12
|
+
- Recurly Ruby Client v0.4.10
|
13
|
+
content-type:
|
21
14
|
- application/xml
|
22
|
-
|
23
|
-
|
24
|
-
user-agent:
|
25
|
-
- Ruby
|
26
|
-
connection:
|
27
|
-
- close
|
28
|
-
response: !ruby/struct:VCR::Response
|
29
|
-
status: !ruby/struct:VCR::ResponseStatus
|
15
|
+
response: !ruby/struct:VCR::Response
|
16
|
+
status: !ruby/struct:VCR::ResponseStatus
|
30
17
|
code: 201
|
31
|
-
message:
|
32
|
-
headers:
|
33
|
-
|
34
|
-
-
|
35
|
-
|
36
|
-
- http://litle-test.recurly.local:3000/accounts/subscription-addons-remove-1296674173
|
37
|
-
x-runtime:
|
38
|
-
- "610"
|
39
|
-
content-type:
|
18
|
+
message: Created
|
19
|
+
headers:
|
20
|
+
location:
|
21
|
+
- http://app.lvh.me:3000/accounts/subscription-addons-remove-1296674173
|
22
|
+
content-type:
|
40
23
|
- application/xml; charset=utf-8
|
41
|
-
|
42
|
-
-
|
43
|
-
|
44
|
-
-
|
45
|
-
|
46
|
-
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
<account
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
<email>verena@test.com</email>
|
60
|
-
<first_name>Verena</first_name>
|
61
|
-
<last_name>Test</last_name>
|
62
|
-
<company_name>Recurly Ruby Gem</company_name>
|
63
|
-
<balance_in_cents type="integer">0</balance_in_cents>
|
64
|
-
<closed type="boolean">false</closed>
|
65
|
-
<hosted_login_token>bd8d6edd4d5845d99f323432f9153e0e</hosted_login_token>
|
66
|
-
<created_at type="datetime">2011-02-03T22:17:28Z</created_at>
|
67
|
-
<state>active</state>
|
68
|
-
</account>
|
69
|
-
|
70
|
-
http_version: "1.1"
|
71
|
-
- !ruby/struct:VCR::HTTPInteraction
|
72
|
-
request: !ruby/struct:VCR::Request
|
24
|
+
cache-control:
|
25
|
+
- no-cache
|
26
|
+
x-ua-compatible:
|
27
|
+
- IE=Edge
|
28
|
+
set-cookie:
|
29
|
+
- _recurly_session=dfac8f1cc5a8c43f53e377f03bb36d84; domain=.lvh.me; path=/;
|
30
|
+
HttpOnly
|
31
|
+
server:
|
32
|
+
- thin 1.2.11 codename Bat-Shit Crazy
|
33
|
+
body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<account>\n <id>subscription-addons-remove-1296674173</id>\n
|
34
|
+
\ <account_code>subscription-addons-remove-1296674173</account_code>\n <username></username>\n
|
35
|
+
\ <email>verena@test.com</email>\n <first_name>Verena</first_name>\n <last_name>Test</last_name>\n
|
36
|
+
\ <company_name>Recurly Ruby Gem</company_name>\n <balance_in_cents type=\"integer\">0</balance_in_cents>\n
|
37
|
+
\ <closed type=\"boolean\">false</closed>\n <hosted_login_token>aab3d31efc3f429da83e5d56f9325e88</hosted_login_token>\n
|
38
|
+
\ <created_at type=\"datetime\">2011-08-19T20:01:16Z</created_at>\n <state>active</state>\n</account>\n"
|
39
|
+
http_version: '1.1'
|
40
|
+
- !ruby/struct:VCR::HTTPInteraction
|
41
|
+
request: !ruby/struct:VCR::Request
|
73
42
|
method: :get
|
74
|
-
uri: http://
|
75
|
-
body:
|
76
|
-
headers:
|
77
|
-
|
78
|
-
-
|
79
|
-
accept:
|
43
|
+
uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/site/plans/paid.xml
|
44
|
+
body: !!null
|
45
|
+
headers:
|
46
|
+
user-agent:
|
47
|
+
- Recurly Ruby Client v0.4.10
|
48
|
+
accept:
|
80
49
|
- application/xml
|
81
|
-
accept-encoding:
|
50
|
+
accept-encoding:
|
82
51
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
83
|
-
|
84
|
-
|
85
|
-
connection:
|
86
|
-
- close
|
87
|
-
response: !ruby/struct:VCR::Response
|
88
|
-
status: !ruby/struct:VCR::ResponseStatus
|
52
|
+
response: !ruby/struct:VCR::Response
|
53
|
+
status: !ruby/struct:VCR::ResponseStatus
|
89
54
|
code: 200
|
90
|
-
message:
|
91
|
-
headers:
|
92
|
-
|
93
|
-
- "182"
|
94
|
-
content-type:
|
55
|
+
message: OK
|
56
|
+
headers:
|
57
|
+
content-type:
|
95
58
|
- application/xml; charset=utf-8
|
96
|
-
etag:
|
97
|
-
- "
|
98
|
-
cache-control:
|
99
|
-
-
|
100
|
-
|
101
|
-
-
|
102
|
-
|
103
|
-
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
<
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
<trial_interval_length type="integer">0</trial_interval_length>
|
124
|
-
<trial_interval_unit>months</trial_interval_unit>
|
125
|
-
<latest_version depreciated="true">
|
126
|
-
<version type="integer">1</version>
|
127
|
-
<unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
|
128
|
-
<setup_fee_in_cents type="integer">0</setup_fee_in_cents>
|
129
|
-
<plan_interval_length type="integer">1</plan_interval_length>
|
130
|
-
<plan_interval_unit>months</plan_interval_unit>
|
131
|
-
<trial_interval_length type="integer">0</trial_interval_length>
|
132
|
-
<trial_interval_unit>months</trial_interval_unit>
|
133
|
-
<created_at type="datetime">2011-02-02T21:02:59Z</created_at>
|
134
|
-
</latest_version>
|
135
|
-
</plan>
|
136
|
-
|
137
|
-
http_version: "1.1"
|
138
|
-
- !ruby/struct:VCR::HTTPInteraction
|
139
|
-
request: !ruby/struct:VCR::Request
|
59
|
+
etag:
|
60
|
+
- ! '"30df1bac5befaf2f9fc4564c2103a07b"'
|
61
|
+
cache-control:
|
62
|
+
- max-age=0, private, must-revalidate
|
63
|
+
x-ua-compatible:
|
64
|
+
- IE=Edge
|
65
|
+
set-cookie:
|
66
|
+
- _recurly_session=25fb1bd8bc0bf91a56e3cc48f59daac6; domain=.lvh.me; path=/;
|
67
|
+
HttpOnly
|
68
|
+
server:
|
69
|
+
- thin 1.2.11 codename Bat-Shit Crazy
|
70
|
+
body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<plan>\n <plan_code>paid</plan_code>\n
|
71
|
+
\ <name>Paid Plan</name>\n <description></description>\n <success_url></success_url>\n
|
72
|
+
\ <cancel_url></cancel_url>\n <created_at type=\"datetime\">2011-08-02T14:08:28Z</created_at>\n
|
73
|
+
\ <unit_amount_in_cents type=\"integer\">1200</unit_amount_in_cents>\n <setup_fee_in_cents
|
74
|
+
type=\"integer\">0</setup_fee_in_cents>\n <plan_interval_length type=\"integer\">1</plan_interval_length>\n
|
75
|
+
\ <plan_interval_unit>months</plan_interval_unit>\n <trial_interval_length
|
76
|
+
type=\"integer\">0</trial_interval_length>\n <trial_interval_unit>days</trial_interval_unit>\n
|
77
|
+
\ <add_ons type=\"array\">\n <add_on>\n <add_on_code>special</add_on_code>\n
|
78
|
+
\ <default_quantity type=\"integer\">1</default_quantity>\n <default_unit_amount_in_cents
|
79
|
+
type=\"integer\">400</default_unit_amount_in_cents>\n </add_on>\n <add_on>\n
|
80
|
+
\ <add_on_code>special2</add_on_code>\n <default_quantity type=\"integer\">1</default_quantity>\n
|
81
|
+
\ <default_unit_amount_in_cents type=\"integer\">1600</default_unit_amount_in_cents>\n
|
82
|
+
\ </add_on>\n </add_ons>\n</plan>\n"
|
83
|
+
http_version: '1.1'
|
84
|
+
- !ruby/struct:VCR::HTTPInteraction
|
85
|
+
request: !ruby/struct:VCR::Request
|
140
86
|
method: :post
|
141
|
-
uri: http://
|
142
|
-
body:
|
143
|
-
|
144
|
-
<
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
<city>San Francisco</city>
|
164
|
-
<state>CA</state>
|
165
|
-
<zip>94115</zip>
|
166
|
-
<country>US</country>
|
167
|
-
<credit-card>
|
168
|
-
<number>4111111111111111</number>
|
169
|
-
<year type="integer">2012</year>
|
170
|
-
<month type="integer">2</month>
|
171
|
-
<verification-value>123</verification-value>
|
172
|
-
</credit-card>
|
173
|
-
<first-name>Verena</first-name>
|
174
|
-
<last-name>Test</last-name>
|
175
|
-
</billing-info>
|
176
|
-
</account>
|
177
|
-
<add-ons type="array">
|
178
|
-
<add-on>
|
179
|
-
<add-on-code>special</add-on-code>
|
180
|
-
<quantity type="integer">1</quantity>
|
181
|
-
<unit-amount type="integer">1000</unit-amount>
|
182
|
-
</add-on>
|
183
|
-
</add-ons>
|
184
|
-
</subscription>
|
185
|
-
|
186
|
-
headers:
|
187
|
-
authorization:
|
188
|
-
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
189
|
-
content-type:
|
87
|
+
uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/subscription-addons-remove-1296674173/subscription.xml
|
88
|
+
body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<subscription>\n <plan-code>paid</plan-code>\n
|
89
|
+
\ <quantity type=\"integer\">1</quantity>\n <account>\n <account-code>subscription-addons-remove-1296674173</account-code>\n
|
90
|
+
\ <first-name>Verena</first-name>\n <last-name>Test</last-name>\n <email>verena@test.com</email>\n
|
91
|
+
\ <company-name>Recurly Ruby Gem</company-name>\n <billing-info>\n <first-name>Verena</first-name>\n
|
92
|
+
\ <last-name>Test</last-name>\n <address1>123 Test St</address1>\n
|
93
|
+
\ <city>San Francisco</city>\n <state>CA</state>\n <zip>94115</zip>\n
|
94
|
+
\ <country>US</country>\n <credit-card>\n <number>4111111111111111</number>\n
|
95
|
+
\ <year type=\"integer\">2012</year>\n <month type=\"integer\">8</month>\n
|
96
|
+
\ <verification-value>123</verification-value>\n </credit-card>\n
|
97
|
+
\ </billing-info>\n <accept-language nil=\"true\"></accept-language>\n
|
98
|
+
\ <id>subscription-addons-remove-1296674173</id>\n <username nil=\"true\"></username>\n
|
99
|
+
\ <balance-in-cents type=\"integer\">0</balance-in-cents>\n <closed type=\"boolean\">false</closed>\n
|
100
|
+
\ <hosted-login-token>aab3d31efc3f429da83e5d56f9325e88</hosted-login-token>\n
|
101
|
+
\ <created-at type=\"datetime\">2011-08-19T20:01:16Z</created-at>\n <state>active</state>\n
|
102
|
+
\ </account>\n <add-ons type=\"array\">\n <add-on>\n <add-on-code>special</add-on-code>\n
|
103
|
+
\ <quantity type=\"integer\">1</quantity>\n <unit-amount type=\"integer\">1000</unit-amount>\n
|
104
|
+
\ </add-on>\n </add-ons>\n <addons type=\"array\"/>\n</subscription>\n"
|
105
|
+
headers:
|
106
|
+
user-agent:
|
107
|
+
- Recurly Ruby Client v0.4.10
|
108
|
+
content-type:
|
190
109
|
- application/xml
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
-
|
197
|
-
|
198
|
-
|
199
|
-
code: 422
|
200
|
-
message: ""
|
201
|
-
headers:
|
202
|
-
cache-control:
|
110
|
+
response: !ruby/struct:VCR::Response
|
111
|
+
status: !ruby/struct:VCR::ResponseStatus
|
112
|
+
code: 201
|
113
|
+
message: Created
|
114
|
+
headers:
|
115
|
+
content-type:
|
116
|
+
- application/xml; charset=utf-8
|
117
|
+
cache-control:
|
203
118
|
- no-cache
|
204
|
-
x-
|
205
|
-
-
|
206
|
-
|
119
|
+
x-ua-compatible:
|
120
|
+
- IE=Edge
|
121
|
+
set-cookie:
|
122
|
+
- _recurly_session=5dc3dba76f032ed47242037a2b8761df; domain=.lvh.me; path=/;
|
123
|
+
HttpOnly
|
124
|
+
server:
|
125
|
+
- thin 1.2.11 codename Bat-Shit Crazy
|
126
|
+
body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<subscription>\n <id>subscription-addons-remove-1296674173</id>\n
|
127
|
+
\ <account_code>subscription-addons-remove-1296674173</account_code>\n <plan>\n
|
128
|
+
\ <plan_code>paid</plan_code>\n <name>Paid Plan</name>\n </plan>\n <state>active</state>\n
|
129
|
+
\ <quantity type=\"integer\">1</quantity>\n <unit_amount_in_cents type=\"integer\">1200</unit_amount_in_cents>\n
|
130
|
+
\ <total_amount_in_cents type=\"integer\">101200</total_amount_in_cents>\n <activated_at
|
131
|
+
type=\"datetime\">2011-08-19T20:01:16Z</activated_at>\n <canceled_at nil=\"true\"
|
132
|
+
type=\"datetime\"></canceled_at>\n <expires_at nil=\"true\" type=\"datetime\"></expires_at>\n
|
133
|
+
\ <current_period_started_at type=\"datetime\">2011-08-19T20:01:16Z</current_period_started_at>\n
|
134
|
+
\ <current_period_ends_at type=\"datetime\">2011-09-19T20:01:16Z</current_period_ends_at>\n
|
135
|
+
\ <trial_started_at nil=\"true\" type=\"datetime\"></trial_started_at>\n <trial_ends_at
|
136
|
+
nil=\"true\" type=\"datetime\"></trial_ends_at>\n <add_ons type=\"array\">\n
|
137
|
+
\ <add_on>\n <add_on_code>special</add_on_code>\n <unit_amount_in_cents
|
138
|
+
type=\"integer\">100000</unit_amount_in_cents>\n <quantity type=\"integer\">1</quantity>\n
|
139
|
+
\ </add_on>\n </add_ons>\n</subscription>\n"
|
140
|
+
http_version: '1.1'
|
141
|
+
- !ruby/struct:VCR::HTTPInteraction
|
142
|
+
request: !ruby/struct:VCR::Request
|
143
|
+
method: :get
|
144
|
+
uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/subscription-addons-remove-1296674173/subscription.xml
|
145
|
+
body: !!null
|
146
|
+
headers:
|
147
|
+
user-agent:
|
148
|
+
- Recurly Ruby Client v0.4.10
|
149
|
+
accept:
|
150
|
+
- application/xml
|
151
|
+
accept-encoding:
|
152
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
153
|
+
response: !ruby/struct:VCR::Response
|
154
|
+
status: !ruby/struct:VCR::ResponseStatus
|
155
|
+
code: 200
|
156
|
+
message: OK
|
157
|
+
headers:
|
158
|
+
content-type:
|
159
|
+
- application/xml; charset=utf-8
|
160
|
+
etag:
|
161
|
+
- ! '"b7e7ed752140f295659977bfc78dbb38"'
|
162
|
+
cache-control:
|
163
|
+
- max-age=0, private, must-revalidate
|
164
|
+
x-ua-compatible:
|
165
|
+
- IE=Edge
|
166
|
+
set-cookie:
|
167
|
+
- _recurly_session=edb03eeca138c0b67051cc2c80e85def; domain=.lvh.me; path=/;
|
168
|
+
HttpOnly
|
169
|
+
server:
|
170
|
+
- thin 1.2.11 codename Bat-Shit Crazy
|
171
|
+
body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<subscription>\n <id>subscription-addons-remove-1296674173</id>\n
|
172
|
+
\ <account_code>subscription-addons-remove-1296674173</account_code>\n <plan>\n
|
173
|
+
\ <plan_code>paid</plan_code>\n <name>Paid Plan</name>\n </plan>\n <state>active</state>\n
|
174
|
+
\ <quantity type=\"integer\">1</quantity>\n <unit_amount_in_cents type=\"integer\">1200</unit_amount_in_cents>\n
|
175
|
+
\ <total_amount_in_cents type=\"integer\">101200</total_amount_in_cents>\n <activated_at
|
176
|
+
type=\"datetime\">2011-08-19T20:01:16Z</activated_at>\n <canceled_at nil=\"true\"
|
177
|
+
type=\"datetime\"></canceled_at>\n <expires_at nil=\"true\" type=\"datetime\"></expires_at>\n
|
178
|
+
\ <current_period_started_at type=\"datetime\">2011-08-19T20:01:16Z</current_period_started_at>\n
|
179
|
+
\ <current_period_ends_at type=\"datetime\">2011-09-19T20:01:16Z</current_period_ends_at>\n
|
180
|
+
\ <trial_started_at nil=\"true\" type=\"datetime\"></trial_started_at>\n <trial_ends_at
|
181
|
+
nil=\"true\" type=\"datetime\"></trial_ends_at>\n <add_ons type=\"array\">\n
|
182
|
+
\ <add_on>\n <add_on_code>special</add_on_code>\n <unit_amount_in_cents
|
183
|
+
type=\"integer\">100000</unit_amount_in_cents>\n <quantity type=\"integer\">1</quantity>\n
|
184
|
+
\ </add_on>\n </add_ons>\n</subscription>\n"
|
185
|
+
http_version: '1.1'
|
186
|
+
- !ruby/struct:VCR::HTTPInteraction
|
187
|
+
request: !ruby/struct:VCR::Request
|
188
|
+
method: :put
|
189
|
+
uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/subscription-addons-remove-1296674173/subscription.xml
|
190
|
+
body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<subscription>\n <add-ons
|
191
|
+
type=\"array\"/>\n <timeframe>now</timeframe>\n</subscription>\n"
|
192
|
+
headers:
|
193
|
+
user-agent:
|
194
|
+
- Recurly Ruby Client v0.4.10
|
195
|
+
content-type:
|
196
|
+
- application/xml
|
197
|
+
response: !ruby/struct:VCR::Response
|
198
|
+
status: !ruby/struct:VCR::ResponseStatus
|
199
|
+
code: 200
|
200
|
+
message: OK
|
201
|
+
headers:
|
202
|
+
content-type:
|
203
|
+
- application/xml; charset=utf-8
|
204
|
+
etag:
|
205
|
+
- ! '"b2014ad39c563982630bc6810fc3d15c"'
|
206
|
+
cache-control:
|
207
|
+
- max-age=0, private, must-revalidate
|
208
|
+
x-ua-compatible:
|
209
|
+
- IE=Edge
|
210
|
+
set-cookie:
|
211
|
+
- _recurly_session=84adce86cad17beb5e739dd98d6eef7c; domain=.lvh.me; path=/;
|
212
|
+
HttpOnly
|
213
|
+
server:
|
214
|
+
- thin 1.2.11 codename Bat-Shit Crazy
|
215
|
+
body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<subscription>\n <id>subscription-addons-remove-1296674173</id>\n
|
216
|
+
\ <account_code>subscription-addons-remove-1296674173</account_code>\n <plan>\n
|
217
|
+
\ <plan_code>paid</plan_code>\n <name>Paid Plan</name>\n </plan>\n <state>active</state>\n
|
218
|
+
\ <quantity type=\"integer\">1</quantity>\n <unit_amount_in_cents type=\"integer\">1200</unit_amount_in_cents>\n
|
219
|
+
\ <total_amount_in_cents type=\"integer\">1200</total_amount_in_cents>\n <activated_at
|
220
|
+
type=\"datetime\">2011-08-19T20:01:16Z</activated_at>\n <canceled_at nil=\"true\"
|
221
|
+
type=\"datetime\"></canceled_at>\n <expires_at nil=\"true\" type=\"datetime\"></expires_at>\n
|
222
|
+
\ <current_period_started_at type=\"datetime\">2011-08-19T20:01:16Z</current_period_started_at>\n
|
223
|
+
\ <current_period_ends_at type=\"datetime\">2011-09-19T20:01:16Z</current_period_ends_at>\n
|
224
|
+
\ <trial_started_at nil=\"true\" type=\"datetime\"></trial_started_at>\n <trial_ends_at
|
225
|
+
nil=\"true\" type=\"datetime\"></trial_ends_at>\n <add_ons type=\"array\">\n
|
226
|
+
\ </add_ons>\n</subscription>\n"
|
227
|
+
http_version: '1.1'
|
228
|
+
- !ruby/struct:VCR::HTTPInteraction
|
229
|
+
request: !ruby/struct:VCR::Request
|
230
|
+
method: :get
|
231
|
+
uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/subscription-addons-remove-1296674173/subscription.xml
|
232
|
+
body: !!null
|
233
|
+
headers:
|
234
|
+
user-agent:
|
235
|
+
- Recurly Ruby Client v0.4.10
|
236
|
+
accept:
|
237
|
+
- application/xml
|
238
|
+
accept-encoding:
|
239
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
240
|
+
response: !ruby/struct:VCR::Response
|
241
|
+
status: !ruby/struct:VCR::ResponseStatus
|
242
|
+
code: 200
|
243
|
+
message: OK
|
244
|
+
headers:
|
245
|
+
content-type:
|
207
246
|
- application/xml; charset=utf-8
|
208
|
-
|
209
|
-
- "
|
210
|
-
|
211
|
-
-
|
212
|
-
|
213
|
-
-
|
214
|
-
|
215
|
-
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
<
|
221
|
-
|
222
|
-
|
223
|
-
</
|
224
|
-
|
225
|
-
|
247
|
+
etag:
|
248
|
+
- ! '"b2014ad39c563982630bc6810fc3d15c"'
|
249
|
+
cache-control:
|
250
|
+
- max-age=0, private, must-revalidate
|
251
|
+
x-ua-compatible:
|
252
|
+
- IE=Edge
|
253
|
+
set-cookie:
|
254
|
+
- _recurly_session=ed141b5ef2d53333e412813cff0943fc; domain=.lvh.me; path=/;
|
255
|
+
HttpOnly
|
256
|
+
server:
|
257
|
+
- thin 1.2.11 codename Bat-Shit Crazy
|
258
|
+
body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<subscription>\n <id>subscription-addons-remove-1296674173</id>\n
|
259
|
+
\ <account_code>subscription-addons-remove-1296674173</account_code>\n <plan>\n
|
260
|
+
\ <plan_code>paid</plan_code>\n <name>Paid Plan</name>\n </plan>\n <state>active</state>\n
|
261
|
+
\ <quantity type=\"integer\">1</quantity>\n <unit_amount_in_cents type=\"integer\">1200</unit_amount_in_cents>\n
|
262
|
+
\ <total_amount_in_cents type=\"integer\">1200</total_amount_in_cents>\n <activated_at
|
263
|
+
type=\"datetime\">2011-08-19T20:01:16Z</activated_at>\n <canceled_at nil=\"true\"
|
264
|
+
type=\"datetime\"></canceled_at>\n <expires_at nil=\"true\" type=\"datetime\"></expires_at>\n
|
265
|
+
\ <current_period_started_at type=\"datetime\">2011-08-19T20:01:16Z</current_period_started_at>\n
|
266
|
+
\ <current_period_ends_at type=\"datetime\">2011-09-19T20:01:16Z</current_period_ends_at>\n
|
267
|
+
\ <trial_started_at nil=\"true\" type=\"datetime\"></trial_started_at>\n <trial_ends_at
|
268
|
+
nil=\"true\" type=\"datetime\"></trial_ends_at>\n <add_ons type=\"array\">\n
|
269
|
+
\ </add_ons>\n</subscription>\n"
|
270
|
+
http_version: '1.1'
|