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>billing-destroy-
|
9
|
+
<account-code>billing-destroy-1298594128</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/billing-destroy-1298594128
|
37
41
|
x-runtime:
|
38
|
-
- "
|
42
|
+
- "449"
|
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:48:20 GMT
|
47
51
|
connection:
|
48
52
|
- close
|
49
53
|
set-cookie:
|
50
|
-
- account_credentials=
|
51
|
-
-
|
52
|
-
- _recurly_session=ae4ca057d8a9d9a1178f524b0b033e58; domain=.recurly.local; path=/; HttpOnly
|
54
|
+
- account_credentials=4cb983c8826fbd271c57df99b5ecba08a86492f99296b685cc5f392df1919cdff50c8539cb9d21d6bb7c73ea92fcd6b4c5f6f59192f8a32ea1d1c6b926ffc427%3A%3A; domain=.recurly.local; path=/
|
55
|
+
- _recurly_session=331801ce345ec6c4c3bb6123d15e061d; domain=.recurly.local; path=/; HttpOnly
|
53
56
|
body: |
|
54
57
|
<?xml version="1.0" encoding="UTF-8"?>
|
55
58
|
<account>
|
56
|
-
<id>billing-destroy-
|
57
|
-
<account_code>billing-destroy-
|
59
|
+
<id>billing-destroy-1298594128</id>
|
60
|
+
<account_code>billing-destroy-1298594128</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>5293370ab1b14fd895815eea5c739ff2</hosted_login_token>
|
69
|
+
<created_at type="datetime">2011-03-11T18:48:20Z</created_at>
|
67
70
|
<state>active</state>
|
68
71
|
</account>
|
69
72
|
|
@@ -71,10 +74,12 @@
|
|
71
74
|
- !ruby/struct:VCR::HTTPInteraction
|
72
75
|
request: !ruby/struct:VCR::Request
|
73
76
|
method: :put
|
74
|
-
uri: http://
|
77
|
+
uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/billing-destroy-1298594128/billing_info.xml
|
75
78
|
body: |
|
76
79
|
<?xml version="1.0" encoding="UTF-8"?>
|
77
80
|
<billing-info>
|
81
|
+
<first-name>Verena</first-name>
|
82
|
+
<last-name>Test</last-name>
|
78
83
|
<address1>500 South Central Blvd</address1>
|
79
84
|
<city>Los Angeles</city>
|
80
85
|
<state>CA</state>
|
@@ -83,16 +88,14 @@
|
|
83
88
|
<credit-card>
|
84
89
|
<number>4111111111111111</number>
|
85
90
|
<year type="integer">2012</year>
|
86
|
-
<month type="integer">
|
91
|
+
<month type="integer">3</month>
|
87
92
|
<verification-value>123</verification-value>
|
88
93
|
</credit-card>
|
89
|
-
<first-name>Verena</first-name>
|
90
|
-
<last-name>Test</last-name>
|
91
94
|
</billing-info>
|
92
95
|
|
93
96
|
headers:
|
94
97
|
authorization:
|
95
|
-
- Basic
|
98
|
+
- Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
|
96
99
|
content-type:
|
97
100
|
- application/xml
|
98
101
|
accept:
|
@@ -107,11 +110,11 @@
|
|
107
110
|
message: "OK "
|
108
111
|
headers:
|
109
112
|
x-runtime:
|
110
|
-
- "
|
113
|
+
- "1901"
|
111
114
|
content-type:
|
112
115
|
- application/xml; charset=utf-8
|
113
116
|
etag:
|
114
|
-
- "\"
|
117
|
+
- "\"7ec98a8aab465534888535e28e56e8bd\""
|
115
118
|
cache-control:
|
116
119
|
- private, max-age=0, must-revalidate
|
117
120
|
content-length:
|
@@ -119,15 +122,15 @@
|
|
119
122
|
server:
|
120
123
|
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
121
124
|
date:
|
122
|
-
-
|
125
|
+
- Fri, 11 Mar 2011 18:48:24 GMT
|
123
126
|
connection:
|
124
127
|
- close
|
125
128
|
set-cookie:
|
126
|
-
- _recurly_session=
|
129
|
+
- _recurly_session=1de6a2fbac39372cca1380177e38b323; domain=.recurly.local; path=/; HttpOnly
|
127
130
|
body: |
|
128
131
|
<?xml version="1.0" encoding="UTF-8"?>
|
129
132
|
<billing_info>
|
130
|
-
<account_code>billing-destroy-
|
133
|
+
<account_code>billing-destroy-1298594128</account_code>
|
131
134
|
<first_name>Verena</first_name>
|
132
135
|
<last_name>Test</last_name>
|
133
136
|
<address1>500 South Central Blvd</address1>
|
@@ -142,21 +145,21 @@
|
|
142
145
|
<credit_card>
|
143
146
|
<type>visa</type>
|
144
147
|
<last_four>1111</last_four>
|
145
|
-
<month type="integer">
|
148
|
+
<month type="integer">3</month>
|
146
149
|
<year type="integer">2012</year>
|
147
150
|
</credit_card>
|
148
|
-
<updated_at type="datetime">2011-
|
151
|
+
<updated_at type="datetime">2011-03-11T18:48:24Z</updated_at>
|
149
152
|
</billing_info>
|
150
153
|
|
151
154
|
http_version: "1.1"
|
152
155
|
- !ruby/struct:VCR::HTTPInteraction
|
153
156
|
request: !ruby/struct:VCR::Request
|
154
157
|
method: :get
|
155
|
-
uri: http://
|
158
|
+
uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/billing-destroy-1298594128/billing_info.xml
|
156
159
|
body:
|
157
160
|
headers:
|
158
161
|
authorization:
|
159
|
-
- Basic
|
162
|
+
- Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
|
160
163
|
accept:
|
161
164
|
- application/xml
|
162
165
|
accept-encoding:
|
@@ -171,11 +174,11 @@
|
|
171
174
|
message: "OK "
|
172
175
|
headers:
|
173
176
|
x-runtime:
|
174
|
-
- "
|
177
|
+
- "201"
|
175
178
|
content-type:
|
176
179
|
- application/xml; charset=utf-8
|
177
180
|
etag:
|
178
|
-
- "\"
|
181
|
+
- "\"7ec98a8aab465534888535e28e56e8bd\""
|
179
182
|
cache-control:
|
180
183
|
- private, max-age=0, must-revalidate
|
181
184
|
content-length:
|
@@ -183,15 +186,15 @@
|
|
183
186
|
server:
|
184
187
|
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
185
188
|
date:
|
186
|
-
-
|
189
|
+
- Fri, 11 Mar 2011 18:48:26 GMT
|
187
190
|
connection:
|
188
191
|
- close
|
189
192
|
set-cookie:
|
190
|
-
- _recurly_session=
|
193
|
+
- _recurly_session=5568c81bcb43fa1f141f5331f6c93405; domain=.recurly.local; path=/; HttpOnly
|
191
194
|
body: |
|
192
195
|
<?xml version="1.0" encoding="UTF-8"?>
|
193
196
|
<billing_info>
|
194
|
-
<account_code>billing-destroy-
|
197
|
+
<account_code>billing-destroy-1298594128</account_code>
|
195
198
|
<first_name>Verena</first_name>
|
196
199
|
<last_name>Test</last_name>
|
197
200
|
<address1>500 South Central Blvd</address1>
|
@@ -206,21 +209,21 @@
|
|
206
209
|
<credit_card>
|
207
210
|
<type>visa</type>
|
208
211
|
<last_four>1111</last_four>
|
209
|
-
<month type="integer">
|
212
|
+
<month type="integer">3</month>
|
210
213
|
<year type="integer">2012</year>
|
211
214
|
</credit_card>
|
212
|
-
<updated_at type="datetime">2011-
|
215
|
+
<updated_at type="datetime">2011-03-11T18:48:24Z</updated_at>
|
213
216
|
</billing_info>
|
214
217
|
|
215
218
|
http_version: "1.1"
|
216
219
|
- !ruby/struct:VCR::HTTPInteraction
|
217
220
|
request: !ruby/struct:VCR::Request
|
218
221
|
method: :delete
|
219
|
-
uri: http://
|
222
|
+
uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/billing-destroy-1298594128/billing_info.xml
|
220
223
|
body:
|
221
224
|
headers:
|
222
225
|
authorization:
|
223
|
-
- Basic
|
226
|
+
- Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
|
224
227
|
accept:
|
225
228
|
- application/xml
|
226
229
|
user-agent:
|
@@ -235,7 +238,7 @@
|
|
235
238
|
cache-control:
|
236
239
|
- no-cache
|
237
240
|
x-runtime:
|
238
|
-
- "
|
241
|
+
- "211"
|
239
242
|
content-type:
|
240
243
|
- application/xml; charset=utf-8
|
241
244
|
content-length:
|
@@ -243,21 +246,21 @@
|
|
243
246
|
server:
|
244
247
|
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
245
248
|
date:
|
246
|
-
-
|
249
|
+
- Fri, 11 Mar 2011 18:48:28 GMT
|
247
250
|
connection:
|
248
251
|
- close
|
249
252
|
set-cookie:
|
250
|
-
- _recurly_session=
|
253
|
+
- _recurly_session=3d46d6e730da9e35491d01512bd6691c; domain=.recurly.local; path=/; HttpOnly
|
251
254
|
body: " "
|
252
255
|
http_version: "1.1"
|
253
256
|
- !ruby/struct:VCR::HTTPInteraction
|
254
257
|
request: !ruby/struct:VCR::Request
|
255
258
|
method: :get
|
256
|
-
uri: http://
|
259
|
+
uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/billing-destroy-1298594128/billing_info.xml
|
257
260
|
body:
|
258
261
|
headers:
|
259
262
|
authorization:
|
260
|
-
- Basic
|
263
|
+
- Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
|
261
264
|
accept:
|
262
265
|
- application/xml
|
263
266
|
accept-encoding:
|
@@ -280,11 +283,11 @@
|
|
280
283
|
server:
|
281
284
|
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
282
285
|
date:
|
283
|
-
-
|
286
|
+
- Fri, 11 Mar 2011 18:48:30 GMT
|
284
287
|
connection:
|
285
288
|
- close
|
286
289
|
set-cookie:
|
287
|
-
- _recurly_session=
|
290
|
+
- _recurly_session=14f0ac5521ea039a61335abeba578de1; domain=.recurly.local; path=/; HttpOnly
|
288
291
|
body: |
|
289
292
|
<?xml version="1.0" encoding="UTF-8"?>
|
290
293
|
<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>billing-find-
|
9
|
+
<account-code>billing-find-1298594128</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/billing-find-1298594128
|
37
41
|
x-runtime:
|
38
|
-
- "
|
42
|
+
- "504"
|
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:48:10 GMT
|
47
51
|
connection:
|
48
52
|
- close
|
49
53
|
set-cookie:
|
50
|
-
- account_credentials=
|
51
|
-
-
|
52
|
-
- _recurly_session=5d89afebae174e05d5c84681f22f274f; domain=.recurly.local; path=/; HttpOnly
|
54
|
+
- account_credentials=0b5ac3e51b25d65306e7dd1b57e81c76d44aa8a47f3836149ea24088eaf27ea5c5748212910109ffb548a7b732fd958e1260a2727bab78366679e2688e36396c%3A%3A; domain=.recurly.local; path=/
|
55
|
+
- _recurly_session=abab0e65ef84e6269c138a24726759e8; domain=.recurly.local; path=/; HttpOnly
|
53
56
|
body: |
|
54
57
|
<?xml version="1.0" encoding="UTF-8"?>
|
55
58
|
<account>
|
56
|
-
<id>billing-find-
|
57
|
-
<account_code>billing-find-
|
59
|
+
<id>billing-find-1298594128</id>
|
60
|
+
<account_code>billing-find-1298594128</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>1f518c0bc03b4121ab2df967f059374a</hosted_login_token>
|
69
|
+
<created_at type="datetime">2011-03-11T18:48:09Z</created_at>
|
67
70
|
<state>active</state>
|
68
71
|
</account>
|
69
72
|
|
@@ -71,10 +74,12 @@
|
|
71
74
|
- !ruby/struct:VCR::HTTPInteraction
|
72
75
|
request: !ruby/struct:VCR::Request
|
73
76
|
method: :put
|
74
|
-
uri: http://
|
77
|
+
uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/billing-find-1298594128/billing_info.xml
|
75
78
|
body: |
|
76
79
|
<?xml version="1.0" encoding="UTF-8"?>
|
77
80
|
<billing-info>
|
81
|
+
<first-name>Verena</first-name>
|
82
|
+
<last-name>Test</last-name>
|
78
83
|
<address1>123 Test St</address1>
|
79
84
|
<city>San Francisco</city>
|
80
85
|
<state>CA</state>
|
@@ -83,17 +88,15 @@
|
|
83
88
|
<credit-card>
|
84
89
|
<number>4111111111111111</number>
|
85
90
|
<year type="integer">2012</year>
|
86
|
-
<month type="integer">
|
91
|
+
<month type="integer">3</month>
|
87
92
|
<verification-value>123</verification-value>
|
88
93
|
</credit-card>
|
89
|
-
<account-code>billing-find-
|
90
|
-
<first-name>Verena</first-name>
|
91
|
-
<last-name>Test</last-name>
|
94
|
+
<account-code>billing-find-1298594128</account-code>
|
92
95
|
</billing-info>
|
93
96
|
|
94
97
|
headers:
|
95
98
|
authorization:
|
96
|
-
- Basic
|
99
|
+
- Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
|
97
100
|
content-type:
|
98
101
|
- application/xml
|
99
102
|
accept:
|
@@ -108,11 +111,11 @@
|
|
108
111
|
message: "OK "
|
109
112
|
headers:
|
110
113
|
x-runtime:
|
111
|
-
- "
|
114
|
+
- "2482"
|
112
115
|
content-type:
|
113
116
|
- application/xml; charset=utf-8
|
114
117
|
etag:
|
115
|
-
- "\"
|
118
|
+
- "\"38b856336558c33a93ffd298a31af13b\""
|
116
119
|
cache-control:
|
117
120
|
- private, max-age=0, must-revalidate
|
118
121
|
content-length:
|
@@ -120,15 +123,15 @@
|
|
120
123
|
server:
|
121
124
|
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
122
125
|
date:
|
123
|
-
-
|
126
|
+
- Fri, 11 Mar 2011 18:48:14 GMT
|
124
127
|
connection:
|
125
128
|
- close
|
126
129
|
set-cookie:
|
127
|
-
- _recurly_session=
|
130
|
+
- _recurly_session=eaf49675f163f18d7314a316b12b1ea6; domain=.recurly.local; path=/; HttpOnly
|
128
131
|
body: |
|
129
132
|
<?xml version="1.0" encoding="UTF-8"?>
|
130
133
|
<billing_info>
|
131
|
-
<account_code>billing-find-
|
134
|
+
<account_code>billing-find-1298594128</account_code>
|
132
135
|
<first_name>Verena</first_name>
|
133
136
|
<last_name>Test</last_name>
|
134
137
|
<address1>123 Test St</address1>
|
@@ -143,21 +146,21 @@
|
|
143
146
|
<credit_card>
|
144
147
|
<type>visa</type>
|
145
148
|
<last_four>1111</last_four>
|
146
|
-
<month type="integer">
|
149
|
+
<month type="integer">3</month>
|
147
150
|
<year type="integer">2012</year>
|
148
151
|
</credit_card>
|
149
|
-
<updated_at type="datetime">2011-
|
152
|
+
<updated_at type="datetime">2011-03-11T18:48:14Z</updated_at>
|
150
153
|
</billing_info>
|
151
154
|
|
152
155
|
http_version: "1.1"
|
153
156
|
- !ruby/struct:VCR::HTTPInteraction
|
154
157
|
request: !ruby/struct:VCR::Request
|
155
158
|
method: :get
|
156
|
-
uri: http://
|
159
|
+
uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/billing-find-1298594128/billing_info.xml
|
157
160
|
body:
|
158
161
|
headers:
|
159
162
|
authorization:
|
160
|
-
- Basic
|
163
|
+
- Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
|
161
164
|
accept:
|
162
165
|
- application/xml
|
163
166
|
accept-encoding:
|
@@ -172,11 +175,11 @@
|
|
172
175
|
message: "OK "
|
173
176
|
headers:
|
174
177
|
x-runtime:
|
175
|
-
- "
|
178
|
+
- "195"
|
176
179
|
content-type:
|
177
180
|
- application/xml; charset=utf-8
|
178
181
|
etag:
|
179
|
-
- "\"
|
182
|
+
- "\"38b856336558c33a93ffd298a31af13b\""
|
180
183
|
cache-control:
|
181
184
|
- private, max-age=0, must-revalidate
|
182
185
|
content-length:
|
@@ -184,15 +187,15 @@
|
|
184
187
|
server:
|
185
188
|
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
186
189
|
date:
|
187
|
-
-
|
190
|
+
- Fri, 11 Mar 2011 18:48:16 GMT
|
188
191
|
connection:
|
189
192
|
- close
|
190
193
|
set-cookie:
|
191
|
-
- _recurly_session=
|
194
|
+
- _recurly_session=bff78a2dec5bf85762ec584359f2de7f; domain=.recurly.local; path=/; HttpOnly
|
192
195
|
body: |
|
193
196
|
<?xml version="1.0" encoding="UTF-8"?>
|
194
197
|
<billing_info>
|
195
|
-
<account_code>billing-find-
|
198
|
+
<account_code>billing-find-1298594128</account_code>
|
196
199
|
<first_name>Verena</first_name>
|
197
200
|
<last_name>Test</last_name>
|
198
201
|
<address1>123 Test St</address1>
|
@@ -207,21 +210,21 @@
|
|
207
210
|
<credit_card>
|
208
211
|
<type>visa</type>
|
209
212
|
<last_four>1111</last_four>
|
210
|
-
<month type="integer">
|
213
|
+
<month type="integer">3</month>
|
211
214
|
<year type="integer">2012</year>
|
212
215
|
</credit_card>
|
213
|
-
<updated_at type="datetime">2011-
|
216
|
+
<updated_at type="datetime">2011-03-11T18:48:14Z</updated_at>
|
214
217
|
</billing_info>
|
215
218
|
|
216
219
|
http_version: "1.1"
|
217
220
|
- !ruby/struct:VCR::HTTPInteraction
|
218
221
|
request: !ruby/struct:VCR::Request
|
219
222
|
method: :get
|
220
|
-
uri: http://
|
223
|
+
uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/billing-find-1298594128/billing_info.xml
|
221
224
|
body:
|
222
225
|
headers:
|
223
226
|
authorization:
|
224
|
-
- Basic
|
227
|
+
- Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
|
225
228
|
accept:
|
226
229
|
- application/xml
|
227
230
|
accept-encoding:
|
@@ -236,11 +239,11 @@
|
|
236
239
|
message: "OK "
|
237
240
|
headers:
|
238
241
|
x-runtime:
|
239
|
-
- "
|
242
|
+
- "201"
|
240
243
|
content-type:
|
241
244
|
- application/xml; charset=utf-8
|
242
245
|
etag:
|
243
|
-
- "\"
|
246
|
+
- "\"38b856336558c33a93ffd298a31af13b\""
|
244
247
|
cache-control:
|
245
248
|
- private, max-age=0, must-revalidate
|
246
249
|
content-length:
|
@@ -248,15 +251,15 @@
|
|
248
251
|
server:
|
249
252
|
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
250
253
|
date:
|
251
|
-
-
|
254
|
+
- Fri, 11 Mar 2011 18:48:18 GMT
|
252
255
|
connection:
|
253
256
|
- close
|
254
257
|
set-cookie:
|
255
|
-
- _recurly_session=
|
258
|
+
- _recurly_session=d045f7e01a2339a81fb7bd3757752033; domain=.recurly.local; path=/; HttpOnly
|
256
259
|
body: |
|
257
260
|
<?xml version="1.0" encoding="UTF-8"?>
|
258
261
|
<billing_info>
|
259
|
-
<account_code>billing-find-
|
262
|
+
<account_code>billing-find-1298594128</account_code>
|
260
263
|
<first_name>Verena</first_name>
|
261
264
|
<last_name>Test</last_name>
|
262
265
|
<address1>123 Test St</address1>
|
@@ -271,10 +274,10 @@
|
|
271
274
|
<credit_card>
|
272
275
|
<type>visa</type>
|
273
276
|
<last_four>1111</last_four>
|
274
|
-
<month type="integer">
|
277
|
+
<month type="integer">3</month>
|
275
278
|
<year type="integer">2012</year>
|
276
279
|
</credit_card>
|
277
|
-
<updated_at type="datetime">2011-
|
280
|
+
<updated_at type="datetime">2011-03-11T18:48:14Z</updated_at>
|
278
281
|
</billing_info>
|
279
282
|
|
280
283
|
http_version: "1.1"
|