recurly 0.3.3 → 0.3.4
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 +15 -11
- data/lib/patches/active_resource/connection.rb +10 -0
- data/lib/recurly.rb +35 -9
- data/lib/recurly/account.rb +22 -1
- data/lib/recurly/account_base.rb +35 -0
- data/lib/recurly/base.rb +26 -39
- data/lib/recurly/billing_info.rb +40 -1
- data/lib/recurly/charge.rb +12 -1
- data/lib/recurly/coupon.rb +8 -0
- data/lib/recurly/credit.rb +12 -1
- data/lib/recurly/exceptions.rb +19 -0
- data/lib/recurly/invoice.rb +1 -1
- data/lib/recurly/plan.rb +13 -1
- data/lib/recurly/rails3/recurly.rake +5 -3
- data/lib/recurly/subscription.rb +21 -3
- data/lib/recurly/transaction.rb +29 -1
- data/lib/recurly/transparent.rb +140 -0
- data/lib/recurly/version.rb +1 -1
- data/spec/config/recurly.yml +12 -0
- data/spec/config/test1.yml +3 -1
- data/spec/config/test2.yml +4 -2
- data/spec/integration/credit_spec.rb +6 -6
- data/spec/integration/plan_spec.rb +2 -2
- data/spec/support/factory.rb +5 -3
- data/spec/unit/account_spec.rb +19 -0
- data/spec/unit/billing_info_spec.rb +38 -0
- data/spec/unit/charge_spec.rb +18 -0
- data/spec/unit/config_spec.rb +10 -6
- data/spec/unit/coupon_spec.rb +13 -0
- data/spec/unit/credit_spec.rb +18 -0
- data/spec/unit/plan_spec.rb +18 -0
- data/spec/unit/subscription_spec.rb +25 -0
- data/spec/unit/transaction_spec.rb +32 -0
- data/spec/unit/transparent_spec.rb +114 -0
- data/spec/vcr/account/accept-language-account/{1296674173.yml → 1297746103.yml} +16 -13
- data/spec/vcr/account/close/{1296674173.yml → 1297746103.yml} +31 -28
- data/spec/vcr/account/create-blank/{1296674173.yml → 1297746103.yml} +9 -5
- data/spec/vcr/account/create-duplicate/{1296674173.yml → 1297746103.yml} +22 -15
- data/spec/vcr/account/create-min/{1296674173.yml → 1297746103.yml} +16 -13
- data/spec/vcr/account/create/{1296674173.yml → 1297746103.yml} +16 -13
- data/spec/vcr/account/find/{1296674173.yml → 1297746103.yml} +29 -26
- data/spec/vcr/account/list/1297746103.yml +1579 -0
- data/spec/vcr/account/update/{1296674173.yml → 1297746103.yml} +54 -47
- data/spec/vcr/billing/create/{1296690812.yml → 1298594128.yml} +37 -34
- data/spec/vcr/billing/destroy/{1296690812.yml → 1298594128.yml} +46 -43
- data/spec/vcr/billing/find/{1296690812.yml → 1298594128.yml} +47 -44
- data/spec/vcr/billing/update/{1296690812.yml → 1298594128.yml} +50 -47
- data/spec/vcr/charge/create/{1296674173.yml → 1297746103.yml} +48 -45
- data/spec/vcr/charge/delete-uninvoiced/{1296674173.yml → 1297746103.yml} +49 -46
- data/spec/vcr/charge/list-all/{1296674173.yml → 1297746103.yml} +61 -58
- data/spec/vcr/charge/list-invoiced/{1296674173.yml → 1297746103.yml} +92 -89
- data/spec/vcr/charge/list-pending/{1296674173.yml → 1297746103.yml} +61 -58
- data/spec/vcr/charge/lookup/{1296674173.yml → 1297746103.yml} +34 -31
- data/spec/vcr/coupon/create/{1296774903.yml → 1299714521.yml} +35 -32
- data/spec/vcr/coupon/destroy/{1296688818.yml → 1299714521.yml} +34 -31
- data/spec/vcr/{coupon/create/1296688818.yml → credit/create/1299714599.yml} +53 -53
- data/spec/vcr/credit/delete/1299714599.yml +262 -0
- data/spec/vcr/credit/list/1299714599.yml +319 -0
- data/spec/vcr/credit/lookup/1299714599.yml +183 -0
- data/spec/vcr/invoice/create-no-charges/{1296674173.yml → 1297746103.yml} +34 -31
- data/spec/vcr/invoice/create/{1296674173.yml → 1297746103.yml} +63 -60
- data/spec/vcr/invoice/list/{1296674173.yml → 1297746103.yml} +87 -84
- data/spec/vcr/invoice/lookup/{1296674173.yml → 1297746103.yml} +64 -61
- data/spec/vcr/plan/all.yml +30 -30
- data/spec/vcr/plan/find.yml +25 -25
- data/spec/vcr/plan/update.yml +16 -15
- data/spec/vcr/subscription/addons/add/{1296674173.yml → 1297746103.yml} +44 -40
- data/spec/vcr/subscription/addons/create/{1296674173.yml → 1297746103.yml} +44 -40
- data/spec/vcr/subscription/addons/remove/{1296674173.yml → 1297746103.yml} +44 -40
- data/spec/vcr/subscription/cancel-with-code/{1296674173.yml → 1297746103.yml} +99 -95
- data/spec/vcr/subscription/cancel/{1296674173.yml → 1297746103.yml} +86 -82
- data/spec/vcr/subscription/change1/{1296674173.yml → 1297746103.yml} +82 -78
- data/spec/vcr/subscription/change2/{1296674173.yml → 1297746103.yml} +82 -78
- data/spec/vcr/subscription/create/{1296674173.yml → 1297746103.yml} +49 -45
- data/spec/vcr/subscription/find/{1296674173.yml → 1297746103.yml} +60 -56
- data/spec/vcr/subscription/reactivate/{1296674173.yml → 1297746103.yml} +93 -89
- data/spec/vcr/subscription/refund-full/{1296674173.yml → 1297746103.yml} +77 -73
- data/spec/vcr/subscription/refund-none/{1296674173.yml → 1297746103.yml} +77 -73
- data/spec/vcr/subscription/refund-partial/{1296674173.yml → 1297746103.yml} +77 -73
- data/spec/vcr/transaction/all/{1296674173.yml → 1297746103.yml} +107 -107
- data/spec/vcr/transaction/create-no-account/{1296674173.yml → 1297746103.yml} +14 -13
- data/spec/vcr/transaction/create-with-account/{1296674173.yml → 1297746103.yml} +46 -58
- data/spec/vcr/transaction/list-filled/1297746103.yml +213 -0
- data/spec/vcr/transaction/list-initial/{1296674173.yml → 1297746103.yml} +38 -35
- data/spec/vcr/transaction/lookup/1297746103.yml +213 -0
- data/spec/vcr/transaction/refund/1297746103.yml +213 -0
- data/spec/vcr/transaction/void/1297746103.yml +213 -0
- metadata +146 -139
- data/spec/vcr/account/list/1296674173.yml +0 -55
- data/spec/vcr/coupon/destroy/1296774903.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/list-filled/1296674173.yml +0 -487
- 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
@@ -2,21 +2,25 @@
|
|
2
2
|
- !ruby/struct:VCR::HTTPInteraction
|
3
3
|
request: !ruby/struct:VCR::Request
|
4
4
|
method: :post
|
5
|
-
uri: http://
|
5
|
+
uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts.xml
|
6
6
|
body: |
|
7
7
|
<?xml version="1.0" encoding="UTF-8"?>
|
8
8
|
<account>
|
9
|
-
<account-code>subscription-addons-create-
|
9
|
+
<account-code>subscription-addons-create-1297746103</account-code>
|
10
10
|
<first-name>Verena</first-name>
|
11
11
|
<last-name>Test</last-name>
|
12
12
|
<email>verena@test.com</email>
|
13
13
|
<company-name>Recurly Ruby Gem</company-name>
|
14
|
+
<billing-info>
|
15
|
+
<credit-card>
|
16
|
+
</credit-card>
|
17
|
+
</billing-info>
|
14
18
|
<accept-language type="yaml" nil="true"></accept-language>
|
15
19
|
</account>
|
16
20
|
|
17
21
|
headers:
|
18
22
|
authorization:
|
19
|
-
- Basic
|
23
|
+
- Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
|
20
24
|
content-type:
|
21
25
|
- application/xml
|
22
26
|
accept:
|
@@ -33,9 +37,9 @@
|
|
33
37
|
cache-control:
|
34
38
|
- no-cache
|
35
39
|
location:
|
36
|
-
- http://
|
40
|
+
- http://app.recurly.local:3000/accounts/subscription-addons-create-1297746103
|
37
41
|
x-runtime:
|
38
|
-
- "
|
42
|
+
- "422"
|
39
43
|
content-type:
|
40
44
|
- application/xml; charset=utf-8
|
41
45
|
content-length:
|
@@ -43,18 +47,17 @@
|
|
43
47
|
server:
|
44
48
|
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
45
49
|
date:
|
46
|
-
-
|
50
|
+
- Fri, 11 Mar 2011 18:47:30 GMT
|
47
51
|
connection:
|
48
52
|
- close
|
49
53
|
set-cookie:
|
50
|
-
- account_credentials=
|
51
|
-
-
|
52
|
-
- _recurly_session=fe47112405f2dbceb8685136f76796a9; domain=.recurly.local; path=/; HttpOnly
|
54
|
+
- account_credentials=23a60c88888934377b6f3eede23629ea8ca6a425c9f4ec5b014bd9558fd5b2ee8d0ffee7529c540236930fcc1a5546f83a4b623932a514fae7baaffe8dd5ce11%3A%3A; domain=.recurly.local; path=/
|
55
|
+
- _recurly_session=38b211de1c6fb18bdff7fe7d07793863; domain=.recurly.local; path=/; HttpOnly
|
53
56
|
body: |
|
54
57
|
<?xml version="1.0" encoding="UTF-8"?>
|
55
58
|
<account>
|
56
|
-
<id>subscription-addons-create-
|
57
|
-
<account_code>subscription-addons-create-
|
59
|
+
<id>subscription-addons-create-1297746103</id>
|
60
|
+
<account_code>subscription-addons-create-1297746103</account_code>
|
58
61
|
<username></username>
|
59
62
|
<email>verena@test.com</email>
|
60
63
|
<first_name>Verena</first_name>
|
@@ -62,8 +65,8 @@
|
|
62
65
|
<company_name>Recurly Ruby Gem</company_name>
|
63
66
|
<balance_in_cents type="integer">0</balance_in_cents>
|
64
67
|
<closed type="boolean">false</closed>
|
65
|
-
<hosted_login_token>
|
66
|
-
<created_at type="datetime">2011-
|
68
|
+
<hosted_login_token>7bb5d04ca9754a6593daab8bc29ba0e7</hosted_login_token>
|
69
|
+
<created_at type="datetime">2011-03-11T18:47:30Z</created_at>
|
67
70
|
<state>active</state>
|
68
71
|
</account>
|
69
72
|
|
@@ -71,11 +74,11 @@
|
|
71
74
|
- !ruby/struct:VCR::HTTPInteraction
|
72
75
|
request: !ruby/struct:VCR::Request
|
73
76
|
method: :get
|
74
|
-
uri: http://
|
77
|
+
uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/company/plans/paid.xml
|
75
78
|
body:
|
76
79
|
headers:
|
77
80
|
authorization:
|
78
|
-
- Basic
|
81
|
+
- Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
|
79
82
|
accept:
|
80
83
|
- application/xml
|
81
84
|
accept-encoding:
|
@@ -90,23 +93,23 @@
|
|
90
93
|
message: "OK "
|
91
94
|
headers:
|
92
95
|
x-runtime:
|
93
|
-
- "
|
96
|
+
- "170"
|
94
97
|
content-type:
|
95
98
|
- application/xml; charset=utf-8
|
96
99
|
etag:
|
97
|
-
- "\"
|
100
|
+
- "\"dc04fba13f15d49d04ca6692abb21ff9\""
|
98
101
|
cache-control:
|
99
102
|
- private, max-age=0, must-revalidate
|
100
103
|
content-length:
|
101
|
-
- "
|
104
|
+
- "1146"
|
102
105
|
server:
|
103
106
|
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
104
107
|
date:
|
105
|
-
-
|
108
|
+
- Fri, 11 Mar 2011 18:47:31 GMT
|
106
109
|
connection:
|
107
110
|
- close
|
108
111
|
set-cookie:
|
109
|
-
- _recurly_session=
|
112
|
+
- _recurly_session=66dbf0d6bb5cf6c814117ddc90c56da4; domain=.recurly.local; path=/; HttpOnly
|
110
113
|
body: |
|
111
114
|
<?xml version="1.0" encoding="UTF-8"?>
|
112
115
|
<plan>
|
@@ -119,7 +122,7 @@
|
|
119
122
|
<unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
|
120
123
|
<setup_fee_in_cents type="integer">0</setup_fee_in_cents>
|
121
124
|
<plan_interval_length type="integer">1</plan_interval_length>
|
122
|
-
<plan_interval_unit>
|
125
|
+
<plan_interval_unit>days</plan_interval_unit>
|
123
126
|
<trial_interval_length type="integer">0</trial_interval_length>
|
124
127
|
<trial_interval_unit>months</trial_interval_unit>
|
125
128
|
<latest_version depreciated="true">
|
@@ -127,10 +130,10 @@
|
|
127
130
|
<unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
|
128
131
|
<setup_fee_in_cents type="integer">0</setup_fee_in_cents>
|
129
132
|
<plan_interval_length type="integer">1</plan_interval_length>
|
130
|
-
<plan_interval_unit>
|
133
|
+
<plan_interval_unit>days</plan_interval_unit>
|
131
134
|
<trial_interval_length type="integer">0</trial_interval_length>
|
132
135
|
<trial_interval_unit>months</trial_interval_unit>
|
133
|
-
<created_at type="datetime">2011-02-
|
136
|
+
<created_at type="datetime">2011-02-21T01:06:56Z</created_at>
|
134
137
|
</latest_version>
|
135
138
|
</plan>
|
136
139
|
|
@@ -138,27 +141,21 @@
|
|
138
141
|
- !ruby/struct:VCR::HTTPInteraction
|
139
142
|
request: !ruby/struct:VCR::Request
|
140
143
|
method: :post
|
141
|
-
uri: http://
|
144
|
+
uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/subscription-addons-create-1297746103/subscription.xml
|
142
145
|
body: |
|
143
146
|
<?xml version="1.0" encoding="UTF-8"?>
|
144
147
|
<subscription>
|
145
148
|
<plan-code>paid</plan-code>
|
146
149
|
<quantity type="integer">1</quantity>
|
147
150
|
<account>
|
148
|
-
<account-code>subscription-addons-create-
|
151
|
+
<account-code>subscription-addons-create-1297746103</account-code>
|
149
152
|
<first-name>Verena</first-name>
|
150
153
|
<last-name>Test</last-name>
|
151
154
|
<email>verena@test.com</email>
|
152
155
|
<company-name>Recurly Ruby Gem</company-name>
|
153
|
-
<accept-language type="yaml" nil="true"></accept-language>
|
154
|
-
<id>subscription-addons-create-1296674173</id>
|
155
|
-
<username type="yaml" nil="true"></username>
|
156
|
-
<balance-in-cents type="integer">0</balance-in-cents>
|
157
|
-
<closed type="boolean">false</closed>
|
158
|
-
<hosted-login-token>56ae50cc980a415b89ea3d0dffda7bfc</hosted-login-token>
|
159
|
-
<created-at type="datetime">2011-02-03T22:17:16Z</created-at>
|
160
|
-
<state>active</state>
|
161
156
|
<billing-info>
|
157
|
+
<first-name>Verena</first-name>
|
158
|
+
<last-name>Test</last-name>
|
162
159
|
<address1>123 Test St</address1>
|
163
160
|
<city>San Francisco</city>
|
164
161
|
<state>CA</state>
|
@@ -167,12 +164,18 @@
|
|
167
164
|
<credit-card>
|
168
165
|
<number>4111111111111111</number>
|
169
166
|
<year type="integer">2012</year>
|
170
|
-
<month type="integer">
|
167
|
+
<month type="integer">3</month>
|
171
168
|
<verification-value>123</verification-value>
|
172
169
|
</credit-card>
|
173
|
-
<first-name>Verena</first-name>
|
174
|
-
<last-name>Test</last-name>
|
175
170
|
</billing-info>
|
171
|
+
<accept-language type="yaml" nil="true"></accept-language>
|
172
|
+
<id>subscription-addons-create-1297746103</id>
|
173
|
+
<username type="yaml" nil="true"></username>
|
174
|
+
<balance-in-cents type="integer">0</balance-in-cents>
|
175
|
+
<closed type="boolean">false</closed>
|
176
|
+
<hosted-login-token>7bb5d04ca9754a6593daab8bc29ba0e7</hosted-login-token>
|
177
|
+
<created-at type="datetime">2011-03-11T18:47:30Z</created-at>
|
178
|
+
<state>active</state>
|
176
179
|
</account>
|
177
180
|
<add-ons type="array">
|
178
181
|
<add-on>
|
@@ -181,11 +184,12 @@
|
|
181
184
|
<unit-amount type="integer">10</unit-amount>
|
182
185
|
</add-on>
|
183
186
|
</add-ons>
|
187
|
+
<addons type="array"/>
|
184
188
|
</subscription>
|
185
189
|
|
186
190
|
headers:
|
187
191
|
authorization:
|
188
|
-
- Basic
|
192
|
+
- Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
|
189
193
|
content-type:
|
190
194
|
- application/xml
|
191
195
|
accept:
|
@@ -202,7 +206,7 @@
|
|
202
206
|
cache-control:
|
203
207
|
- no-cache
|
204
208
|
x-runtime:
|
205
|
-
- "
|
209
|
+
- "538"
|
206
210
|
content-type:
|
207
211
|
- application/xml; charset=utf-8
|
208
212
|
content-length:
|
@@ -210,11 +214,11 @@
|
|
210
214
|
server:
|
211
215
|
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
212
216
|
date:
|
213
|
-
-
|
217
|
+
- Fri, 11 Mar 2011 18:47:34 GMT
|
214
218
|
connection:
|
215
219
|
- close
|
216
220
|
set-cookie:
|
217
|
-
- _recurly_session=
|
221
|
+
- _recurly_session=431abf0ece99fcbbd37ea2a25279024a; domain=.recurly.local; path=/; HttpOnly
|
218
222
|
body: |
|
219
223
|
<?xml version="1.0" encoding="UTF-8"?>
|
220
224
|
<errors>
|
@@ -2,21 +2,25 @@
|
|
2
2
|
- !ruby/struct:VCR::HTTPInteraction
|
3
3
|
request: !ruby/struct:VCR::Request
|
4
4
|
method: :post
|
5
|
-
uri: http://
|
5
|
+
uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts.xml
|
6
6
|
body: |
|
7
7
|
<?xml version="1.0" encoding="UTF-8"?>
|
8
8
|
<account>
|
9
|
-
<account-code>subscription-addons-remove-
|
9
|
+
<account-code>subscription-addons-remove-1297746103</account-code>
|
10
10
|
<first-name>Verena</first-name>
|
11
11
|
<last-name>Test</last-name>
|
12
12
|
<email>verena@test.com</email>
|
13
13
|
<company-name>Recurly Ruby Gem</company-name>
|
14
|
+
<billing-info>
|
15
|
+
<credit-card>
|
16
|
+
</credit-card>
|
17
|
+
</billing-info>
|
14
18
|
<accept-language type="yaml" nil="true"></accept-language>
|
15
19
|
</account>
|
16
20
|
|
17
21
|
headers:
|
18
22
|
authorization:
|
19
|
-
- Basic
|
23
|
+
- Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
|
20
24
|
content-type:
|
21
25
|
- application/xml
|
22
26
|
accept:
|
@@ -33,9 +37,9 @@
|
|
33
37
|
cache-control:
|
34
38
|
- no-cache
|
35
39
|
location:
|
36
|
-
- http://
|
40
|
+
- http://app.recurly.local:3000/accounts/subscription-addons-remove-1297746103
|
37
41
|
x-runtime:
|
38
|
-
- "
|
42
|
+
- "479"
|
39
43
|
content-type:
|
40
44
|
- application/xml; charset=utf-8
|
41
45
|
content-length:
|
@@ -43,18 +47,17 @@
|
|
43
47
|
server:
|
44
48
|
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
45
49
|
date:
|
46
|
-
-
|
50
|
+
- Fri, 11 Mar 2011 18:47:43 GMT
|
47
51
|
connection:
|
48
52
|
- close
|
49
53
|
set-cookie:
|
50
|
-
- account_credentials=
|
51
|
-
-
|
52
|
-
- _recurly_session=467817a5c53fdc04ccf2cec9d00020b3; domain=.recurly.local; path=/; HttpOnly
|
54
|
+
- account_credentials=50cd1b7e428344f080d79d3ee04c34e5caa601ec8f316238d92e27ce7bc79860392771f5d37384b0c5ceb92f10da1a666272607f764595402be3eaab0e8969d3%3A%3A; domain=.recurly.local; path=/
|
55
|
+
- _recurly_session=d8605a9e25dd8675b82628f3a86ca9a9; domain=.recurly.local; path=/; HttpOnly
|
53
56
|
body: |
|
54
57
|
<?xml version="1.0" encoding="UTF-8"?>
|
55
58
|
<account>
|
56
|
-
<id>subscription-addons-remove-
|
57
|
-
<account_code>subscription-addons-remove-
|
59
|
+
<id>subscription-addons-remove-1297746103</id>
|
60
|
+
<account_code>subscription-addons-remove-1297746103</account_code>
|
58
61
|
<username></username>
|
59
62
|
<email>verena@test.com</email>
|
60
63
|
<first_name>Verena</first_name>
|
@@ -62,8 +65,8 @@
|
|
62
65
|
<company_name>Recurly Ruby Gem</company_name>
|
63
66
|
<balance_in_cents type="integer">0</balance_in_cents>
|
64
67
|
<closed type="boolean">false</closed>
|
65
|
-
<hosted_login_token>
|
66
|
-
<created_at type="datetime">2011-
|
68
|
+
<hosted_login_token>60d2c3798c2349618c2fa03ca4a5ccc7</hosted_login_token>
|
69
|
+
<created_at type="datetime">2011-03-11T18:47:42Z</created_at>
|
67
70
|
<state>active</state>
|
68
71
|
</account>
|
69
72
|
|
@@ -71,11 +74,11 @@
|
|
71
74
|
- !ruby/struct:VCR::HTTPInteraction
|
72
75
|
request: !ruby/struct:VCR::Request
|
73
76
|
method: :get
|
74
|
-
uri: http://
|
77
|
+
uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/company/plans/paid.xml
|
75
78
|
body:
|
76
79
|
headers:
|
77
80
|
authorization:
|
78
|
-
- Basic
|
81
|
+
- Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
|
79
82
|
accept:
|
80
83
|
- application/xml
|
81
84
|
accept-encoding:
|
@@ -90,23 +93,23 @@
|
|
90
93
|
message: "OK "
|
91
94
|
headers:
|
92
95
|
x-runtime:
|
93
|
-
- "
|
96
|
+
- "176"
|
94
97
|
content-type:
|
95
98
|
- application/xml; charset=utf-8
|
96
99
|
etag:
|
97
|
-
- "\"
|
100
|
+
- "\"dc04fba13f15d49d04ca6692abb21ff9\""
|
98
101
|
cache-control:
|
99
102
|
- private, max-age=0, must-revalidate
|
100
103
|
content-length:
|
101
|
-
- "
|
104
|
+
- "1146"
|
102
105
|
server:
|
103
106
|
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
104
107
|
date:
|
105
|
-
-
|
108
|
+
- Fri, 11 Mar 2011 18:47:45 GMT
|
106
109
|
connection:
|
107
110
|
- close
|
108
111
|
set-cookie:
|
109
|
-
- _recurly_session=
|
112
|
+
- _recurly_session=c61f5e486a1525d50eea05e83fd1ff34; domain=.recurly.local; path=/; HttpOnly
|
110
113
|
body: |
|
111
114
|
<?xml version="1.0" encoding="UTF-8"?>
|
112
115
|
<plan>
|
@@ -119,7 +122,7 @@
|
|
119
122
|
<unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
|
120
123
|
<setup_fee_in_cents type="integer">0</setup_fee_in_cents>
|
121
124
|
<plan_interval_length type="integer">1</plan_interval_length>
|
122
|
-
<plan_interval_unit>
|
125
|
+
<plan_interval_unit>days</plan_interval_unit>
|
123
126
|
<trial_interval_length type="integer">0</trial_interval_length>
|
124
127
|
<trial_interval_unit>months</trial_interval_unit>
|
125
128
|
<latest_version depreciated="true">
|
@@ -127,10 +130,10 @@
|
|
127
130
|
<unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
|
128
131
|
<setup_fee_in_cents type="integer">0</setup_fee_in_cents>
|
129
132
|
<plan_interval_length type="integer">1</plan_interval_length>
|
130
|
-
<plan_interval_unit>
|
133
|
+
<plan_interval_unit>days</plan_interval_unit>
|
131
134
|
<trial_interval_length type="integer">0</trial_interval_length>
|
132
135
|
<trial_interval_unit>months</trial_interval_unit>
|
133
|
-
<created_at type="datetime">2011-02-
|
136
|
+
<created_at type="datetime">2011-02-21T01:06:56Z</created_at>
|
134
137
|
</latest_version>
|
135
138
|
</plan>
|
136
139
|
|
@@ -138,27 +141,21 @@
|
|
138
141
|
- !ruby/struct:VCR::HTTPInteraction
|
139
142
|
request: !ruby/struct:VCR::Request
|
140
143
|
method: :post
|
141
|
-
uri: http://
|
144
|
+
uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/subscription-addons-remove-1297746103/subscription.xml
|
142
145
|
body: |
|
143
146
|
<?xml version="1.0" encoding="UTF-8"?>
|
144
147
|
<subscription>
|
145
148
|
<plan-code>paid</plan-code>
|
146
149
|
<quantity type="integer">1</quantity>
|
147
150
|
<account>
|
148
|
-
<account-code>subscription-addons-remove-
|
151
|
+
<account-code>subscription-addons-remove-1297746103</account-code>
|
149
152
|
<first-name>Verena</first-name>
|
150
153
|
<last-name>Test</last-name>
|
151
154
|
<email>verena@test.com</email>
|
152
155
|
<company-name>Recurly Ruby Gem</company-name>
|
153
|
-
<accept-language type="yaml" nil="true"></accept-language>
|
154
|
-
<id>subscription-addons-remove-1296674173</id>
|
155
|
-
<username type="yaml" nil="true"></username>
|
156
|
-
<balance-in-cents type="integer">0</balance-in-cents>
|
157
|
-
<closed type="boolean">false</closed>
|
158
|
-
<hosted-login-token>bd8d6edd4d5845d99f323432f9153e0e</hosted-login-token>
|
159
|
-
<created-at type="datetime">2011-02-03T22:17:28Z</created-at>
|
160
|
-
<state>active</state>
|
161
156
|
<billing-info>
|
157
|
+
<first-name>Verena</first-name>
|
158
|
+
<last-name>Test</last-name>
|
162
159
|
<address1>123 Test St</address1>
|
163
160
|
<city>San Francisco</city>
|
164
161
|
<state>CA</state>
|
@@ -167,12 +164,18 @@
|
|
167
164
|
<credit-card>
|
168
165
|
<number>4111111111111111</number>
|
169
166
|
<year type="integer">2012</year>
|
170
|
-
<month type="integer">
|
167
|
+
<month type="integer">3</month>
|
171
168
|
<verification-value>123</verification-value>
|
172
169
|
</credit-card>
|
173
|
-
<first-name>Verena</first-name>
|
174
|
-
<last-name>Test</last-name>
|
175
170
|
</billing-info>
|
171
|
+
<accept-language type="yaml" nil="true"></accept-language>
|
172
|
+
<id>subscription-addons-remove-1297746103</id>
|
173
|
+
<username type="yaml" nil="true"></username>
|
174
|
+
<balance-in-cents type="integer">0</balance-in-cents>
|
175
|
+
<closed type="boolean">false</closed>
|
176
|
+
<hosted-login-token>60d2c3798c2349618c2fa03ca4a5ccc7</hosted-login-token>
|
177
|
+
<created-at type="datetime">2011-03-11T18:47:42Z</created-at>
|
178
|
+
<state>active</state>
|
176
179
|
</account>
|
177
180
|
<add-ons type="array">
|
178
181
|
<add-on>
|
@@ -181,11 +184,12 @@
|
|
181
184
|
<unit-amount type="integer">1000</unit-amount>
|
182
185
|
</add-on>
|
183
186
|
</add-ons>
|
187
|
+
<addons type="array"/>
|
184
188
|
</subscription>
|
185
189
|
|
186
190
|
headers:
|
187
191
|
authorization:
|
188
|
-
- Basic
|
192
|
+
- Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
|
189
193
|
content-type:
|
190
194
|
- application/xml
|
191
195
|
accept:
|
@@ -202,7 +206,7 @@
|
|
202
206
|
cache-control:
|
203
207
|
- no-cache
|
204
208
|
x-runtime:
|
205
|
-
- "
|
209
|
+
- "594"
|
206
210
|
content-type:
|
207
211
|
- application/xml; charset=utf-8
|
208
212
|
content-length:
|
@@ -210,11 +214,11 @@
|
|
210
214
|
server:
|
211
215
|
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
212
216
|
date:
|
213
|
-
-
|
217
|
+
- Fri, 11 Mar 2011 18:47:47 GMT
|
214
218
|
connection:
|
215
219
|
- close
|
216
220
|
set-cookie:
|
217
|
-
- _recurly_session=
|
221
|
+
- _recurly_session=e347226e420cd72a77a49944fcc54882; domain=.recurly.local; path=/; HttpOnly
|
218
222
|
body: |
|
219
223
|
<?xml version="1.0" encoding="UTF-8"?>
|
220
224
|
<errors>
|