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,429 +1,265 @@
|
|
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
|
-
|
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
|
7
|
+
type=\"integer\">1296674173</account-code>\n <first-name>Verena</first-name>\n
|
8
|
+
\ <last-name>Test</last-name>\n <email>verena@test.com</email>\n <company-name>Recurly
|
9
|
+
Ruby Gem</company-name>\n <billing-info>\n <credit-card>\n </credit-card>\n
|
10
|
+
\ </billing-info>\n <accept-language nil=\"true\"></accept-language>\n</account>\n"
|
11
|
+
headers:
|
12
|
+
user-agent:
|
13
|
+
- Recurly Ruby Client v0.4.10
|
14
|
+
content-type:
|
21
15
|
- 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
|
16
|
+
response: !ruby/struct:VCR::Response
|
17
|
+
status: !ruby/struct:VCR::ResponseStatus
|
30
18
|
code: 201
|
31
|
-
message:
|
32
|
-
headers:
|
33
|
-
|
34
|
-
-
|
35
|
-
|
36
|
-
- http://litle-test.recurly.local:3000/accounts/1296674173
|
37
|
-
x-runtime:
|
38
|
-
- "773"
|
39
|
-
content-type:
|
19
|
+
message: Created
|
20
|
+
headers:
|
21
|
+
location:
|
22
|
+
- http://app.lvh.me:3000/accounts/1296674173
|
23
|
+
content-type:
|
40
24
|
- 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>c4ea13ba80ee4c4397f80234fd237da4</hosted_login_token>
|
66
|
-
<created_at type="datetime">2011-02-03T22:21:54Z</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
|
25
|
+
cache-control:
|
26
|
+
- no-cache
|
27
|
+
x-ua-compatible:
|
28
|
+
- IE=Edge
|
29
|
+
set-cookie:
|
30
|
+
- _recurly_session=d6afa0cc4a728f7ef068e690003c945e; domain=.lvh.me; path=/;
|
31
|
+
HttpOnly
|
32
|
+
server:
|
33
|
+
- thin 1.2.11 codename Bat-Shit Crazy
|
34
|
+
body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<account>\n <id>1296674173</id>\n
|
35
|
+
\ <account_code>1296674173</account_code>\n <username></username>\n <email>verena@test.com</email>\n
|
36
|
+
\ <first_name>Verena</first_name>\n <last_name>Test</last_name>\n <company_name>Recurly
|
37
|
+
Ruby Gem</company_name>\n <balance_in_cents type=\"integer\">0</balance_in_cents>\n
|
38
|
+
\ <closed type=\"boolean\">false</closed>\n <hosted_login_token>a9acfb7456134567986b0078a770cd45</hosted_login_token>\n
|
39
|
+
\ <created_at type=\"datetime\">2011-08-19T20:02:13Z</created_at>\n <state>active</state>\n</account>\n"
|
40
|
+
http_version: '1.1'
|
41
|
+
- !ruby/struct:VCR::HTTPInteraction
|
42
|
+
request: !ruby/struct:VCR::Request
|
73
43
|
method: :get
|
74
|
-
uri: http://
|
75
|
-
body:
|
76
|
-
headers:
|
77
|
-
|
78
|
-
-
|
79
|
-
accept:
|
44
|
+
uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/site/plans/paid.xml
|
45
|
+
body: !!null
|
46
|
+
headers:
|
47
|
+
user-agent:
|
48
|
+
- Recurly Ruby Client v0.4.10
|
49
|
+
accept:
|
80
50
|
- application/xml
|
81
|
-
accept-encoding:
|
51
|
+
accept-encoding:
|
82
52
|
- 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
|
53
|
+
response: !ruby/struct:VCR::Response
|
54
|
+
status: !ruby/struct:VCR::ResponseStatus
|
89
55
|
code: 200
|
90
|
-
message:
|
91
|
-
headers:
|
92
|
-
|
93
|
-
- "255"
|
94
|
-
content-type:
|
56
|
+
message: OK
|
57
|
+
headers:
|
58
|
+
content-type:
|
95
59
|
- 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
|
60
|
+
etag:
|
61
|
+
- ! '"30df1bac5befaf2f9fc4564c2103a07b"'
|
62
|
+
cache-control:
|
63
|
+
- max-age=0, private, must-revalidate
|
64
|
+
x-ua-compatible:
|
65
|
+
- IE=Edge
|
66
|
+
set-cookie:
|
67
|
+
- _recurly_session=c0427fbeb8183990d81867039b9b6e0e; domain=.lvh.me; path=/;
|
68
|
+
HttpOnly
|
69
|
+
server:
|
70
|
+
- thin 1.2.11 codename Bat-Shit Crazy
|
71
|
+
body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<plan>\n <plan_code>paid</plan_code>\n
|
72
|
+
\ <name>Paid Plan</name>\n <description></description>\n <success_url></success_url>\n
|
73
|
+
\ <cancel_url></cancel_url>\n <created_at type=\"datetime\">2011-08-02T14:08:28Z</created_at>\n
|
74
|
+
\ <unit_amount_in_cents type=\"integer\">1200</unit_amount_in_cents>\n <setup_fee_in_cents
|
75
|
+
type=\"integer\">0</setup_fee_in_cents>\n <plan_interval_length type=\"integer\">1</plan_interval_length>\n
|
76
|
+
\ <plan_interval_unit>months</plan_interval_unit>\n <trial_interval_length
|
77
|
+
type=\"integer\">0</trial_interval_length>\n <trial_interval_unit>days</trial_interval_unit>\n
|
78
|
+
\ <add_ons type=\"array\">\n <add_on>\n <add_on_code>special</add_on_code>\n
|
79
|
+
\ <default_quantity type=\"integer\">1</default_quantity>\n <default_unit_amount_in_cents
|
80
|
+
type=\"integer\">400</default_unit_amount_in_cents>\n </add_on>\n <add_on>\n
|
81
|
+
\ <add_on_code>special2</add_on_code>\n <default_quantity type=\"integer\">1</default_quantity>\n
|
82
|
+
\ <default_unit_amount_in_cents type=\"integer\">1600</default_unit_amount_in_cents>\n
|
83
|
+
\ </add_on>\n </add_ons>\n</plan>\n"
|
84
|
+
http_version: '1.1'
|
85
|
+
- !ruby/struct:VCR::HTTPInteraction
|
86
|
+
request: !ruby/struct:VCR::Request
|
140
87
|
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
|
-
<billing-info>
|
162
|
-
<address1>123 Test St</address1>
|
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
|
-
</subscription>
|
178
|
-
|
179
|
-
headers:
|
180
|
-
authorization:
|
181
|
-
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
182
|
-
content-type:
|
88
|
+
uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/1296674173/subscription.xml
|
89
|
+
body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<subscription>\n <plan-code>paid</plan-code>\n
|
90
|
+
\ <quantity type=\"integer\">1</quantity>\n <account>\n <account-code>1296674173</account-code>\n
|
91
|
+
\ <first-name>Verena</first-name>\n <last-name>Test</last-name>\n <email>verena@test.com</email>\n
|
92
|
+
\ <company-name>Recurly Ruby Gem</company-name>\n <billing-info>\n <first-name>Verena</first-name>\n
|
93
|
+
\ <last-name>Test</last-name>\n <address1>123 Test St</address1>\n
|
94
|
+
\ <city>San Francisco</city>\n <state>CA</state>\n <zip>94115</zip>\n
|
95
|
+
\ <country>US</country>\n <credit-card>\n <number>4111111111111111</number>\n
|
96
|
+
\ <year type=\"integer\">2012</year>\n <month type=\"integer\">8</month>\n
|
97
|
+
\ <verification-value>123</verification-value>\n </credit-card>\n
|
98
|
+
\ </billing-info>\n <accept-language nil=\"true\"></accept-language>\n
|
99
|
+
\ <id>1296674173</id>\n <username nil=\"true\"></username>\n <balance-in-cents
|
100
|
+
type=\"integer\">0</balance-in-cents>\n <closed type=\"boolean\">false</closed>\n
|
101
|
+
\ <hosted-login-token>a9acfb7456134567986b0078a770cd45</hosted-login-token>\n
|
102
|
+
\ <created-at type=\"datetime\">2011-08-19T20:02:13Z</created-at>\n <state>active</state>\n
|
103
|
+
\ </account>\n <addons type=\"array\"/>\n</subscription>\n"
|
104
|
+
headers:
|
105
|
+
user-agent:
|
106
|
+
- Recurly Ruby Client v0.4.10
|
107
|
+
content-type:
|
183
108
|
- application/xml
|
184
|
-
|
185
|
-
|
186
|
-
user-agent:
|
187
|
-
- Ruby
|
188
|
-
connection:
|
189
|
-
- close
|
190
|
-
response: !ruby/struct:VCR::Response
|
191
|
-
status: !ruby/struct:VCR::ResponseStatus
|
109
|
+
response: !ruby/struct:VCR::Response
|
110
|
+
status: !ruby/struct:VCR::ResponseStatus
|
192
111
|
code: 201
|
193
|
-
message:
|
194
|
-
headers:
|
195
|
-
|
196
|
-
- no-cache
|
197
|
-
x-runtime:
|
198
|
-
- "4302"
|
199
|
-
content-type:
|
112
|
+
message: Created
|
113
|
+
headers:
|
114
|
+
content-type:
|
200
115
|
- application/xml; charset=utf-8
|
201
|
-
|
202
|
-
-
|
203
|
-
|
204
|
-
-
|
205
|
-
|
206
|
-
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
<
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
<expires_at nil="true" type="datetime"></expires_at>
|
226
|
-
<current_period_started_at type="datetime">2011-02-03T22:21:59Z</current_period_started_at>
|
227
|
-
<current_period_ends_at type="datetime">2011-03-03T22:21:59Z</current_period_ends_at>
|
228
|
-
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
229
|
-
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
230
|
-
<add_ons type="array">
|
231
|
-
</add_ons>
|
232
|
-
</subscription>
|
233
|
-
|
234
|
-
http_version: "1.1"
|
235
|
-
- !ruby/struct:VCR::HTTPInteraction
|
236
|
-
request: !ruby/struct:VCR::Request
|
116
|
+
cache-control:
|
117
|
+
- no-cache
|
118
|
+
x-ua-compatible:
|
119
|
+
- IE=Edge
|
120
|
+
set-cookie:
|
121
|
+
- _recurly_session=6cba9826fba42e61aca3c09afd177f90; domain=.lvh.me; path=/;
|
122
|
+
HttpOnly
|
123
|
+
server:
|
124
|
+
- thin 1.2.11 codename Bat-Shit Crazy
|
125
|
+
body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<subscription>\n <id>1296674173</id>\n
|
126
|
+
\ <account_code>1296674173</account_code>\n <plan>\n <plan_code>paid</plan_code>\n
|
127
|
+
\ <name>Paid Plan</name>\n </plan>\n <state>active</state>\n <quantity
|
128
|
+
type=\"integer\">1</quantity>\n <unit_amount_in_cents type=\"integer\">1200</unit_amount_in_cents>\n
|
129
|
+
\ <total_amount_in_cents type=\"integer\">1200</total_amount_in_cents>\n <activated_at
|
130
|
+
type=\"datetime\">2011-08-19T20:02:13Z</activated_at>\n <canceled_at nil=\"true\"
|
131
|
+
type=\"datetime\"></canceled_at>\n <expires_at nil=\"true\" type=\"datetime\"></expires_at>\n
|
132
|
+
\ <current_period_started_at type=\"datetime\">2011-08-19T20:02:13Z</current_period_started_at>\n
|
133
|
+
\ <current_period_ends_at type=\"datetime\">2011-09-19T20:02:13Z</current_period_ends_at>\n
|
134
|
+
\ <trial_started_at nil=\"true\" type=\"datetime\"></trial_started_at>\n <trial_ends_at
|
135
|
+
nil=\"true\" type=\"datetime\"></trial_ends_at>\n <add_ons type=\"array\">\n
|
136
|
+
\ </add_ons>\n</subscription>\n"
|
137
|
+
http_version: '1.1'
|
138
|
+
- !ruby/struct:VCR::HTTPInteraction
|
139
|
+
request: !ruby/struct:VCR::Request
|
237
140
|
method: :get
|
238
|
-
uri: http://
|
239
|
-
body:
|
240
|
-
headers:
|
241
|
-
|
242
|
-
-
|
243
|
-
accept:
|
141
|
+
uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/1296674173/subscription.xml
|
142
|
+
body: !!null
|
143
|
+
headers:
|
144
|
+
user-agent:
|
145
|
+
- Recurly Ruby Client v0.4.10
|
146
|
+
accept:
|
244
147
|
- application/xml
|
245
|
-
accept-encoding:
|
148
|
+
accept-encoding:
|
246
149
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
247
|
-
|
248
|
-
|
249
|
-
connection:
|
250
|
-
- close
|
251
|
-
response: !ruby/struct:VCR::Response
|
252
|
-
status: !ruby/struct:VCR::ResponseStatus
|
150
|
+
response: !ruby/struct:VCR::Response
|
151
|
+
status: !ruby/struct:VCR::ResponseStatus
|
253
152
|
code: 200
|
254
|
-
message:
|
255
|
-
headers:
|
256
|
-
|
257
|
-
- "259"
|
258
|
-
content-type:
|
153
|
+
message: OK
|
154
|
+
headers:
|
155
|
+
content-type:
|
259
156
|
- application/xml; charset=utf-8
|
260
|
-
etag:
|
261
|
-
- "
|
262
|
-
cache-control:
|
263
|
-
-
|
264
|
-
|
265
|
-
-
|
266
|
-
|
267
|
-
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
<
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
<activated_at type="datetime">2011-02-03T22:21:59Z</activated_at>
|
287
|
-
<canceled_at nil="true" type="datetime"></canceled_at>
|
288
|
-
<expires_at nil="true" type="datetime"></expires_at>
|
289
|
-
<current_period_started_at type="datetime">2011-02-03T22:21:59Z</current_period_started_at>
|
290
|
-
<current_period_ends_at type="datetime">2011-03-03T22:21:59Z</current_period_ends_at>
|
291
|
-
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
292
|
-
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
293
|
-
<add_ons type="array">
|
294
|
-
</add_ons>
|
295
|
-
</subscription>
|
296
|
-
|
297
|
-
http_version: "1.1"
|
298
|
-
- !ruby/struct:VCR::HTTPInteraction
|
299
|
-
request: !ruby/struct:VCR::Request
|
157
|
+
etag:
|
158
|
+
- ! '"8fb058f1bb2100c742cabd0df235b1b8"'
|
159
|
+
cache-control:
|
160
|
+
- max-age=0, private, must-revalidate
|
161
|
+
x-ua-compatible:
|
162
|
+
- IE=Edge
|
163
|
+
set-cookie:
|
164
|
+
- _recurly_session=bd4f73cd0da24509b7281208f44e200f; domain=.lvh.me; path=/;
|
165
|
+
HttpOnly
|
166
|
+
server:
|
167
|
+
- thin 1.2.11 codename Bat-Shit Crazy
|
168
|
+
body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<subscription>\n <id>1296674173</id>\n
|
169
|
+
\ <account_code>1296674173</account_code>\n <plan>\n <plan_code>paid</plan_code>\n
|
170
|
+
\ <name>Paid Plan</name>\n </plan>\n <state>active</state>\n <quantity
|
171
|
+
type=\"integer\">1</quantity>\n <unit_amount_in_cents type=\"integer\">1200</unit_amount_in_cents>\n
|
172
|
+
\ <total_amount_in_cents type=\"integer\">1200</total_amount_in_cents>\n <activated_at
|
173
|
+
type=\"datetime\">2011-08-19T20:02:13Z</activated_at>\n <canceled_at nil=\"true\"
|
174
|
+
type=\"datetime\"></canceled_at>\n <expires_at nil=\"true\" type=\"datetime\"></expires_at>\n
|
175
|
+
\ <current_period_started_at type=\"datetime\">2011-08-19T20:02:13Z</current_period_started_at>\n
|
176
|
+
\ <current_period_ends_at type=\"datetime\">2011-09-19T20:02:13Z</current_period_ends_at>\n
|
177
|
+
\ <trial_started_at nil=\"true\" type=\"datetime\"></trial_started_at>\n <trial_ends_at
|
178
|
+
nil=\"true\" type=\"datetime\"></trial_ends_at>\n <add_ons type=\"array\">\n
|
179
|
+
\ </add_ons>\n</subscription>\n"
|
180
|
+
http_version: '1.1'
|
181
|
+
- !ruby/struct:VCR::HTTPInteraction
|
182
|
+
request: !ruby/struct:VCR::Request
|
300
183
|
method: :put
|
301
|
-
uri: http://
|
302
|
-
body:
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
headers:
|
310
|
-
authorization:
|
311
|
-
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
312
|
-
content-type:
|
184
|
+
uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/1296674173/subscription.xml
|
185
|
+
body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<subscription>\n <quantity
|
186
|
+
type=\"integer\">2</quantity>\n <timeframe>now</timeframe>\n</subscription>\n"
|
187
|
+
headers:
|
188
|
+
user-agent:
|
189
|
+
- Recurly Ruby Client v0.4.10
|
190
|
+
content-type:
|
313
191
|
- application/xml
|
314
|
-
|
315
|
-
|
316
|
-
user-agent:
|
317
|
-
- Ruby
|
318
|
-
connection:
|
319
|
-
- close
|
320
|
-
response: !ruby/struct:VCR::Response
|
321
|
-
status: !ruby/struct:VCR::ResponseStatus
|
192
|
+
response: !ruby/struct:VCR::Response
|
193
|
+
status: !ruby/struct:VCR::ResponseStatus
|
322
194
|
code: 200
|
323
|
-
message:
|
324
|
-
headers:
|
325
|
-
|
326
|
-
- "4446"
|
327
|
-
content-type:
|
195
|
+
message: OK
|
196
|
+
headers:
|
197
|
+
content-type:
|
328
198
|
- application/xml; charset=utf-8
|
329
|
-
etag:
|
330
|
-
- "
|
331
|
-
cache-control:
|
332
|
-
-
|
333
|
-
|
334
|
-
-
|
335
|
-
|
336
|
-
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
<
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
<activated_at type="datetime">2011-02-03T22:22:07Z</activated_at>
|
356
|
-
<canceled_at nil="true" type="datetime"></canceled_at>
|
357
|
-
<expires_at nil="true" type="datetime"></expires_at>
|
358
|
-
<current_period_started_at type="datetime">2011-02-03T22:21:59Z</current_period_started_at>
|
359
|
-
<current_period_ends_at type="datetime">2011-03-03T22:21:59Z</current_period_ends_at>
|
360
|
-
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
361
|
-
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
362
|
-
<add_ons type="array">
|
363
|
-
</add_ons>
|
364
|
-
</subscription>
|
365
|
-
|
366
|
-
http_version: "1.1"
|
367
|
-
- !ruby/struct:VCR::HTTPInteraction
|
368
|
-
request: !ruby/struct:VCR::Request
|
199
|
+
etag:
|
200
|
+
- ! '"a604bd935aa0bc3906f50abadd4631d9"'
|
201
|
+
cache-control:
|
202
|
+
- max-age=0, private, must-revalidate
|
203
|
+
x-ua-compatible:
|
204
|
+
- IE=Edge
|
205
|
+
set-cookie:
|
206
|
+
- _recurly_session=3753a438762685a401dc4d9eeab92e52; domain=.lvh.me; path=/;
|
207
|
+
HttpOnly
|
208
|
+
server:
|
209
|
+
- thin 1.2.11 codename Bat-Shit Crazy
|
210
|
+
body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<subscription>\n <id>1296674173</id>\n
|
211
|
+
\ <account_code>1296674173</account_code>\n <plan>\n <plan_code>paid</plan_code>\n
|
212
|
+
\ <name>Paid Plan</name>\n </plan>\n <state>active</state>\n <quantity
|
213
|
+
type=\"integer\">2</quantity>\n <unit_amount_in_cents type=\"integer\">1200</unit_amount_in_cents>\n
|
214
|
+
\ <total_amount_in_cents type=\"integer\">2400</total_amount_in_cents>\n <activated_at
|
215
|
+
type=\"datetime\">2011-08-19T20:02:13Z</activated_at>\n <canceled_at nil=\"true\"
|
216
|
+
type=\"datetime\"></canceled_at>\n <expires_at nil=\"true\" type=\"datetime\"></expires_at>\n
|
217
|
+
\ <current_period_started_at type=\"datetime\">2011-08-19T20:02:13Z</current_period_started_at>\n
|
218
|
+
\ <current_period_ends_at type=\"datetime\">2011-09-19T20:02:13Z</current_period_ends_at>\n
|
219
|
+
\ <trial_started_at nil=\"true\" type=\"datetime\"></trial_started_at>\n <trial_ends_at
|
220
|
+
nil=\"true\" type=\"datetime\"></trial_ends_at>\n <add_ons type=\"array\">\n
|
221
|
+
\ </add_ons>\n</subscription>\n"
|
222
|
+
http_version: '1.1'
|
223
|
+
- !ruby/struct:VCR::HTTPInteraction
|
224
|
+
request: !ruby/struct:VCR::Request
|
369
225
|
method: :get
|
370
|
-
uri: http://
|
371
|
-
body:
|
372
|
-
headers:
|
373
|
-
|
374
|
-
-
|
375
|
-
accept:
|
226
|
+
uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/1296674173/subscription.xml
|
227
|
+
body: !!null
|
228
|
+
headers:
|
229
|
+
user-agent:
|
230
|
+
- Recurly Ruby Client v0.4.10
|
231
|
+
accept:
|
376
232
|
- application/xml
|
377
|
-
accept-encoding:
|
233
|
+
accept-encoding:
|
378
234
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
379
|
-
|
380
|
-
|
381
|
-
connection:
|
382
|
-
- close
|
383
|
-
response: !ruby/struct:VCR::Response
|
384
|
-
status: !ruby/struct:VCR::ResponseStatus
|
235
|
+
response: !ruby/struct:VCR::Response
|
236
|
+
status: !ruby/struct:VCR::ResponseStatus
|
385
237
|
code: 200
|
386
|
-
message:
|
387
|
-
headers:
|
388
|
-
|
389
|
-
- "263"
|
390
|
-
content-type:
|
238
|
+
message: OK
|
239
|
+
headers:
|
240
|
+
content-type:
|
391
241
|
- application/xml; charset=utf-8
|
392
|
-
etag:
|
393
|
-
- "
|
394
|
-
cache-control:
|
395
|
-
-
|
396
|
-
|
397
|
-
-
|
398
|
-
|
399
|
-
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
<
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
<quantity type="integer">2</quantity>
|
417
|
-
<total_amount_in_cents type="integer">2000</total_amount_in_cents>
|
418
|
-
<activated_at type="datetime">2011-02-03T22:22:07Z</activated_at>
|
419
|
-
<canceled_at nil="true" type="datetime"></canceled_at>
|
420
|
-
<expires_at nil="true" type="datetime"></expires_at>
|
421
|
-
<current_period_started_at type="datetime">2011-02-03T22:21:59Z</current_period_started_at>
|
422
|
-
<current_period_ends_at type="datetime">2011-03-03T22:21:59Z</current_period_ends_at>
|
423
|
-
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
424
|
-
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
425
|
-
<add_ons type="array">
|
426
|
-
</add_ons>
|
427
|
-
</subscription>
|
428
|
-
|
429
|
-
http_version: "1.1"
|
242
|
+
etag:
|
243
|
+
- ! '"a604bd935aa0bc3906f50abadd4631d9"'
|
244
|
+
cache-control:
|
245
|
+
- max-age=0, private, must-revalidate
|
246
|
+
x-ua-compatible:
|
247
|
+
- IE=Edge
|
248
|
+
set-cookie:
|
249
|
+
- _recurly_session=7deb008ee398b2746d03d2513d658e8b; domain=.lvh.me; path=/;
|
250
|
+
HttpOnly
|
251
|
+
server:
|
252
|
+
- thin 1.2.11 codename Bat-Shit Crazy
|
253
|
+
body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<subscription>\n <id>1296674173</id>\n
|
254
|
+
\ <account_code>1296674173</account_code>\n <plan>\n <plan_code>paid</plan_code>\n
|
255
|
+
\ <name>Paid Plan</name>\n </plan>\n <state>active</state>\n <quantity
|
256
|
+
type=\"integer\">2</quantity>\n <unit_amount_in_cents type=\"integer\">1200</unit_amount_in_cents>\n
|
257
|
+
\ <total_amount_in_cents type=\"integer\">2400</total_amount_in_cents>\n <activated_at
|
258
|
+
type=\"datetime\">2011-08-19T20:02:13Z</activated_at>\n <canceled_at nil=\"true\"
|
259
|
+
type=\"datetime\"></canceled_at>\n <expires_at nil=\"true\" type=\"datetime\"></expires_at>\n
|
260
|
+
\ <current_period_started_at type=\"datetime\">2011-08-19T20:02:13Z</current_period_started_at>\n
|
261
|
+
\ <current_period_ends_at type=\"datetime\">2011-09-19T20:02:13Z</current_period_ends_at>\n
|
262
|
+
\ <trial_started_at nil=\"true\" type=\"datetime\"></trial_started_at>\n <trial_ends_at
|
263
|
+
nil=\"true\" type=\"datetime\"></trial_ends_at>\n <add_ons type=\"array\">\n
|
264
|
+
\ </add_ons>\n</subscription>\n"
|
265
|
+
http_version: '1.1'
|