recurly 0.4.4 → 0.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of recurly might be problematic. Click here for more details.
- data/lib/recurly/base.rb +4 -3
- data/lib/recurly/version.rb +1 -1
- data/spec/integration/billing_info_spec.rb +33 -0
- data/spec/vcr/account/accept-language-account/1301979678.yml +4 -4
- data/spec/vcr/account/close/1301979678.yml +11 -11
- data/spec/vcr/account/create/1301979678.yml +4 -4
- data/spec/vcr/account/create-blank/1301979678.yml +2 -2
- data/spec/vcr/account/create-duplicate/1301979678.yml +6 -6
- data/spec/vcr/account/create-min/1301979678.yml +4 -4
- data/spec/vcr/account/find/1301979678.yml +10 -10
- data/spec/vcr/account/list/1301979678.yml +74 -74
- data/spec/vcr/account/update/1301979678.yml +21 -21
- data/spec/vcr/billing/create/{1298594128.yml → 1302025874.yml} +20 -20
- data/spec/vcr/billing/destroy/{1298594128.yml → 1302025874.yml} +25 -25
- data/spec/vcr/billing/errors/1302025874.yml +126 -0
- data/spec/vcr/billing/find/{1298594128.yml → 1302025874.yml} +27 -27
- data/spec/vcr/billing/update/{1298594128.yml → 1302025874.yml} +27 -27
- data/spec/vcr/charge/create/1297746103.yml +20 -20
- data/spec/vcr/charge/delete-uninvoiced/1297746103.yml +23 -23
- data/spec/vcr/charge/list-all/1297746103.yml +31 -31
- data/spec/vcr/charge/list-invoiced/1297746103.yml +53 -53
- data/spec/vcr/charge/list-pending/1297746103.yml +31 -31
- data/spec/vcr/charge/lookup/1297746103.yml +16 -16
- data/spec/vcr/coupon/create/1299714521.yml +11 -11
- data/spec/vcr/coupon/destroy/1299714521.yml +10 -10
- data/spec/vcr/credit/create/1299714599.yml +16 -16
- data/spec/vcr/credit/delete/1299714599.yml +21 -21
- data/spec/vcr/credit/list/1299714599.yml +31 -31
- data/spec/vcr/credit/lookup/1299714599.yml +16 -16
- data/spec/vcr/invoice/create/1297746103.yml +30 -30
- data/spec/vcr/invoice/create-no-charges/1297746103.yml +10 -10
- data/spec/vcr/invoice/list/1297746103.yml +45 -45
- data/spec/vcr/invoice/lookup/1297746103.yml +32 -32
- data/spec/vcr/plan/all.yml +6 -6
- data/spec/vcr/plan/find.yml +6 -6
- data/spec/vcr/plan/update.yml +6 -6
- data/spec/vcr/subscription/addons/add/1301885121.yml +31 -31
- data/spec/vcr/subscription/addons/create/1301885121.yml +19 -19
- data/spec/vcr/subscription/addons/remove/1301885121.yml +31 -31
- data/spec/vcr/subscription/cancel/1301881900.yml +35 -35
- data/spec/vcr/subscription/cancel-with-code/1301881900.yml +43 -43
- data/spec/vcr/subscription/change1/1301881900.yml +31 -31
- data/spec/vcr/subscription/change2/1301881900.yml +31 -31
- data/spec/vcr/subscription/create/1301881900.yml +13 -13
- data/spec/vcr/subscription/find/1301881900.yml +19 -19
- data/spec/vcr/subscription/reactivate/1301881900.yml +36 -36
- data/spec/vcr/subscription/refund-full/1301881900.yml +28 -28
- data/spec/vcr/subscription/refund-none/1301881900.yml +28 -28
- data/spec/vcr/subscription/refund-partial/1301881900.yml +28 -28
- data/spec/vcr/transaction/all/1301883347.yml +55 -55
- data/spec/vcr/transaction/create-no-account/1301883347.yml +5 -5
- data/spec/vcr/transaction/create-with-account/1301883347.yml +13 -13
- data/spec/vcr/transaction/list-filled/1301883347.yml +45 -45
- data/spec/vcr/transaction/list-initial/1301883347.yml +13 -13
- data/spec/vcr/transaction/lookup/1301883347.yml +41 -41
- data/spec/vcr/transaction/refund/1301883347.yml +19 -19
- data/spec/vcr/transaction/void/1301883347.yml +26 -26
- data/spec/vcr/transparent/post-url/1301879142.yml +9 -9
- metadata +12 -10
@@ -6,7 +6,7 @@
|
|
6
6
|
body: |
|
7
7
|
<?xml version="1.0" encoding="UTF-8"?>
|
8
8
|
<account>
|
9
|
-
<account-code>billing-create-
|
9
|
+
<account-code>billing-create-1302025874</account-code>
|
10
10
|
<first-name>Verena</first-name>
|
11
11
|
<last-name>Test</last-name>
|
12
12
|
<email>verena@test.com</email>
|
@@ -37,15 +37,15 @@
|
|
37
37
|
cache-control:
|
38
38
|
- no-cache
|
39
39
|
location:
|
40
|
-
- http://app.recurly.local:3000/accounts/billing-create-
|
40
|
+
- http://app.recurly.local:3000/accounts/billing-create-1302025874
|
41
41
|
x-runtime:
|
42
|
-
- "
|
42
|
+
- "398"
|
43
43
|
content-type:
|
44
44
|
- application/xml; charset=utf-8
|
45
45
|
content-length:
|
46
46
|
- "583"
|
47
47
|
set-cookie:
|
48
|
-
- _recurly_session=
|
48
|
+
- _recurly_session=c09ea7a1cf1c27e01286a1f620332c9d; domain=.recurly.local; path=/; HttpOnly
|
49
49
|
connection:
|
50
50
|
- close
|
51
51
|
server:
|
@@ -53,8 +53,8 @@
|
|
53
53
|
body: |
|
54
54
|
<?xml version="1.0" encoding="UTF-8"?>
|
55
55
|
<account>
|
56
|
-
<id>billing-create-
|
57
|
-
<account_code>billing-create-
|
56
|
+
<id>billing-create-1302025874</id>
|
57
|
+
<account_code>billing-create-1302025874</account_code>
|
58
58
|
<username></username>
|
59
59
|
<email>verena@test.com</email>
|
60
60
|
<first_name>Verena</first_name>
|
@@ -62,8 +62,8 @@
|
|
62
62
|
<company_name>Recurly Ruby Gem</company_name>
|
63
63
|
<balance_in_cents type="integer">0</balance_in_cents>
|
64
64
|
<closed type="boolean">false</closed>
|
65
|
-
<hosted_login_token>
|
66
|
-
<created_at type="datetime">2011-04-
|
65
|
+
<hosted_login_token>0a6e51b0f170435b8c3721986de655f4</hosted_login_token>
|
66
|
+
<created_at type="datetime">2011-04-05T19:40:11Z</created_at>
|
67
67
|
<state>active</state>
|
68
68
|
</account>
|
69
69
|
|
@@ -71,7 +71,7 @@
|
|
71
71
|
- !ruby/struct:VCR::HTTPInteraction
|
72
72
|
request: !ruby/struct:VCR::Request
|
73
73
|
method: :put
|
74
|
-
uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/billing-create-
|
74
|
+
uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/billing-create-1302025874/billing_info.xml
|
75
75
|
body: |
|
76
76
|
<?xml version="1.0" encoding="UTF-8"?>
|
77
77
|
<billing-info>
|
@@ -107,17 +107,17 @@
|
|
107
107
|
message: OK
|
108
108
|
headers:
|
109
109
|
x-runtime:
|
110
|
-
- "
|
110
|
+
- "1797"
|
111
111
|
content-type:
|
112
112
|
- application/xml; charset=utf-8
|
113
113
|
etag:
|
114
|
-
- "\"
|
114
|
+
- "\"32a26c814c38f36faef639ac8fe18a0d\""
|
115
115
|
cache-control:
|
116
116
|
- private, max-age=0, must-revalidate
|
117
117
|
content-length:
|
118
118
|
- "640"
|
119
119
|
set-cookie:
|
120
|
-
- _recurly_session=
|
120
|
+
- _recurly_session=104432b981de5cfc7de77e6fd017836c; domain=.recurly.local; path=/; HttpOnly
|
121
121
|
connection:
|
122
122
|
- close
|
123
123
|
server:
|
@@ -125,7 +125,7 @@
|
|
125
125
|
body: |
|
126
126
|
<?xml version="1.0" encoding="UTF-8"?>
|
127
127
|
<billing_info>
|
128
|
-
<account_code>billing-create-
|
128
|
+
<account_code>billing-create-1302025874</account_code>
|
129
129
|
<first_name>Verena</first_name>
|
130
130
|
<last_name>Test</last_name>
|
131
131
|
<address1>123 Test St</address1>
|
@@ -143,14 +143,14 @@
|
|
143
143
|
<month type="integer">4</month>
|
144
144
|
<year type="integer">2012</year>
|
145
145
|
</credit_card>
|
146
|
-
<updated_at type="datetime">2011-04-
|
146
|
+
<updated_at type="datetime">2011-04-05T19:40:15Z</updated_at>
|
147
147
|
</billing_info>
|
148
148
|
|
149
149
|
http_version: "1.1"
|
150
150
|
- !ruby/struct:VCR::HTTPInteraction
|
151
151
|
request: !ruby/struct:VCR::Request
|
152
152
|
method: :get
|
153
|
-
uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/billing-create-
|
153
|
+
uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/billing-create-1302025874/billing_info.xml
|
154
154
|
body:
|
155
155
|
headers:
|
156
156
|
authorization:
|
@@ -169,17 +169,17 @@
|
|
169
169
|
message: OK
|
170
170
|
headers:
|
171
171
|
x-runtime:
|
172
|
-
- "
|
172
|
+
- "362"
|
173
173
|
content-type:
|
174
174
|
- application/xml; charset=utf-8
|
175
175
|
etag:
|
176
|
-
- "\"
|
176
|
+
- "\"32a26c814c38f36faef639ac8fe18a0d\""
|
177
177
|
cache-control:
|
178
178
|
- private, max-age=0, must-revalidate
|
179
179
|
content-length:
|
180
180
|
- "640"
|
181
181
|
set-cookie:
|
182
|
-
- _recurly_session=
|
182
|
+
- _recurly_session=18fd44813e79d18862e57a0e76d4b732; domain=.recurly.local; path=/; HttpOnly
|
183
183
|
connection:
|
184
184
|
- close
|
185
185
|
server:
|
@@ -187,7 +187,7 @@
|
|
187
187
|
body: |
|
188
188
|
<?xml version="1.0" encoding="UTF-8"?>
|
189
189
|
<billing_info>
|
190
|
-
<account_code>billing-create-
|
190
|
+
<account_code>billing-create-1302025874</account_code>
|
191
191
|
<first_name>Verena</first_name>
|
192
192
|
<last_name>Test</last_name>
|
193
193
|
<address1>123 Test St</address1>
|
@@ -205,7 +205,7 @@
|
|
205
205
|
<month type="integer">4</month>
|
206
206
|
<year type="integer">2012</year>
|
207
207
|
</credit_card>
|
208
|
-
<updated_at type="datetime">2011-04-
|
208
|
+
<updated_at type="datetime">2011-04-05T19:40:15Z</updated_at>
|
209
209
|
</billing_info>
|
210
210
|
|
211
211
|
http_version: "1.1"
|
@@ -6,7 +6,7 @@
|
|
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-1302025874</account-code>
|
10
10
|
<first-name>Verena</first-name>
|
11
11
|
<last-name>Test</last-name>
|
12
12
|
<email>verena@test.com</email>
|
@@ -37,15 +37,15 @@
|
|
37
37
|
cache-control:
|
38
38
|
- no-cache
|
39
39
|
location:
|
40
|
-
- http://app.recurly.local:3000/accounts/billing-destroy-
|
40
|
+
- http://app.recurly.local:3000/accounts/billing-destroy-1302025874
|
41
41
|
x-runtime:
|
42
|
-
- "
|
42
|
+
- "392"
|
43
43
|
content-type:
|
44
44
|
- application/xml; charset=utf-8
|
45
45
|
content-length:
|
46
46
|
- "585"
|
47
47
|
set-cookie:
|
48
|
-
- _recurly_session=
|
48
|
+
- _recurly_session=dc638412e526a9457056455bb17d263a; domain=.recurly.local; path=/; HttpOnly
|
49
49
|
connection:
|
50
50
|
- close
|
51
51
|
server:
|
@@ -53,8 +53,8 @@
|
|
53
53
|
body: |
|
54
54
|
<?xml version="1.0" encoding="UTF-8"?>
|
55
55
|
<account>
|
56
|
-
<id>billing-destroy-
|
57
|
-
<account_code>billing-destroy-
|
56
|
+
<id>billing-destroy-1302025874</id>
|
57
|
+
<account_code>billing-destroy-1302025874</account_code>
|
58
58
|
<username></username>
|
59
59
|
<email>verena@test.com</email>
|
60
60
|
<first_name>Verena</first_name>
|
@@ -62,8 +62,8 @@
|
|
62
62
|
<company_name>Recurly Ruby Gem</company_name>
|
63
63
|
<balance_in_cents type="integer">0</balance_in_cents>
|
64
64
|
<closed type="boolean">false</closed>
|
65
|
-
<hosted_login_token>
|
66
|
-
<created_at type="datetime">2011-04-
|
65
|
+
<hosted_login_token>36aec34152124afe9610381b2c19506c</hosted_login_token>
|
66
|
+
<created_at type="datetime">2011-04-05T19:40:46Z</created_at>
|
67
67
|
<state>active</state>
|
68
68
|
</account>
|
69
69
|
|
@@ -71,7 +71,7 @@
|
|
71
71
|
- !ruby/struct:VCR::HTTPInteraction
|
72
72
|
request: !ruby/struct:VCR::Request
|
73
73
|
method: :put
|
74
|
-
uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/billing-destroy-
|
74
|
+
uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/billing-destroy-1302025874/billing_info.xml
|
75
75
|
body: |
|
76
76
|
<?xml version="1.0" encoding="UTF-8"?>
|
77
77
|
<billing-info>
|
@@ -107,17 +107,17 @@
|
|
107
107
|
message: OK
|
108
108
|
headers:
|
109
109
|
x-runtime:
|
110
|
-
- "
|
110
|
+
- "1482"
|
111
111
|
content-type:
|
112
112
|
- application/xml; charset=utf-8
|
113
113
|
etag:
|
114
|
-
- "\"
|
114
|
+
- "\"5da95a208d5dbc5e5fca560fbf0f3589\""
|
115
115
|
cache-control:
|
116
116
|
- private, max-age=0, must-revalidate
|
117
117
|
content-length:
|
118
118
|
- "650"
|
119
119
|
set-cookie:
|
120
|
-
- _recurly_session=
|
120
|
+
- _recurly_session=189370751a4f798845ae78b94a93f642; domain=.recurly.local; path=/; HttpOnly
|
121
121
|
connection:
|
122
122
|
- close
|
123
123
|
server:
|
@@ -125,7 +125,7 @@
|
|
125
125
|
body: |
|
126
126
|
<?xml version="1.0" encoding="UTF-8"?>
|
127
127
|
<billing_info>
|
128
|
-
<account_code>billing-destroy-
|
128
|
+
<account_code>billing-destroy-1302025874</account_code>
|
129
129
|
<first_name>Verena</first_name>
|
130
130
|
<last_name>Test</last_name>
|
131
131
|
<address1>500 South Central Blvd</address1>
|
@@ -143,14 +143,14 @@
|
|
143
143
|
<month type="integer">4</month>
|
144
144
|
<year type="integer">2012</year>
|
145
145
|
</credit_card>
|
146
|
-
<updated_at type="datetime">2011-04-
|
146
|
+
<updated_at type="datetime">2011-04-05T19:40:50Z</updated_at>
|
147
147
|
</billing_info>
|
148
148
|
|
149
149
|
http_version: "1.1"
|
150
150
|
- !ruby/struct:VCR::HTTPInteraction
|
151
151
|
request: !ruby/struct:VCR::Request
|
152
152
|
method: :get
|
153
|
-
uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/billing-destroy-
|
153
|
+
uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/billing-destroy-1302025874/billing_info.xml
|
154
154
|
body:
|
155
155
|
headers:
|
156
156
|
authorization:
|
@@ -169,17 +169,17 @@
|
|
169
169
|
message: OK
|
170
170
|
headers:
|
171
171
|
x-runtime:
|
172
|
-
- "
|
172
|
+
- "364"
|
173
173
|
content-type:
|
174
174
|
- application/xml; charset=utf-8
|
175
175
|
etag:
|
176
|
-
- "\"
|
176
|
+
- "\"5da95a208d5dbc5e5fca560fbf0f3589\""
|
177
177
|
cache-control:
|
178
178
|
- private, max-age=0, must-revalidate
|
179
179
|
content-length:
|
180
180
|
- "650"
|
181
181
|
set-cookie:
|
182
|
-
- _recurly_session=
|
182
|
+
- _recurly_session=b9b348aed8506f97ba973c662ce904bb; domain=.recurly.local; path=/; HttpOnly
|
183
183
|
connection:
|
184
184
|
- close
|
185
185
|
server:
|
@@ -187,7 +187,7 @@
|
|
187
187
|
body: |
|
188
188
|
<?xml version="1.0" encoding="UTF-8"?>
|
189
189
|
<billing_info>
|
190
|
-
<account_code>billing-destroy-
|
190
|
+
<account_code>billing-destroy-1302025874</account_code>
|
191
191
|
<first_name>Verena</first_name>
|
192
192
|
<last_name>Test</last_name>
|
193
193
|
<address1>500 South Central Blvd</address1>
|
@@ -205,14 +205,14 @@
|
|
205
205
|
<month type="integer">4</month>
|
206
206
|
<year type="integer">2012</year>
|
207
207
|
</credit_card>
|
208
|
-
<updated_at type="datetime">2011-04-
|
208
|
+
<updated_at type="datetime">2011-04-05T19:40:50Z</updated_at>
|
209
209
|
</billing_info>
|
210
210
|
|
211
211
|
http_version: "1.1"
|
212
212
|
- !ruby/struct:VCR::HTTPInteraction
|
213
213
|
request: !ruby/struct:VCR::Request
|
214
214
|
method: :delete
|
215
|
-
uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/billing-destroy-
|
215
|
+
uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/billing-destroy-1302025874/billing_info.xml
|
216
216
|
body:
|
217
217
|
headers:
|
218
218
|
authorization:
|
@@ -231,13 +231,13 @@
|
|
231
231
|
cache-control:
|
232
232
|
- no-cache
|
233
233
|
x-runtime:
|
234
|
-
- "
|
234
|
+
- "363"
|
235
235
|
content-type:
|
236
236
|
- application/xml; charset=utf-8
|
237
237
|
content-length:
|
238
238
|
- "1"
|
239
239
|
set-cookie:
|
240
|
-
- _recurly_session=
|
240
|
+
- _recurly_session=fc1b0f65a525c2a118dbe43a39d146f6; domain=.recurly.local; path=/; HttpOnly
|
241
241
|
connection:
|
242
242
|
- close
|
243
243
|
server:
|
@@ -247,7 +247,7 @@
|
|
247
247
|
- !ruby/struct:VCR::HTTPInteraction
|
248
248
|
request: !ruby/struct:VCR::Request
|
249
249
|
method: :get
|
250
|
-
uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/billing-destroy-
|
250
|
+
uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/billing-destroy-1302025874/billing_info.xml
|
251
251
|
body:
|
252
252
|
headers:
|
253
253
|
authorization:
|
@@ -272,7 +272,7 @@
|
|
272
272
|
content-length:
|
273
273
|
- "98"
|
274
274
|
set-cookie:
|
275
|
-
- _recurly_session=
|
275
|
+
- _recurly_session=3de5a5a98016f998ea45e0f46647b2b8; domain=.recurly.local; path=/; HttpOnly
|
276
276
|
connection:
|
277
277
|
- close
|
278
278
|
server:
|
@@ -0,0 +1,126 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
|
+
method: :post
|
5
|
+
uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts.xml
|
6
|
+
body: |
|
7
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
8
|
+
<account>
|
9
|
+
<account-code>billing-errors-1302025874</account-code>
|
10
|
+
<first-name>Verena</first-name>
|
11
|
+
<last-name>Test</last-name>
|
12
|
+
<email>verena@test.com</email>
|
13
|
+
<company-name>Recurly Ruby Gem</company-name>
|
14
|
+
<billing-info>
|
15
|
+
<credit-card>
|
16
|
+
</credit-card>
|
17
|
+
</billing-info>
|
18
|
+
<accept-language type="yaml" nil="true"></accept-language>
|
19
|
+
</account>
|
20
|
+
|
21
|
+
headers:
|
22
|
+
authorization:
|
23
|
+
- Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
|
24
|
+
content-type:
|
25
|
+
- application/xml
|
26
|
+
accept:
|
27
|
+
- "*/*"
|
28
|
+
user-agent:
|
29
|
+
- Ruby
|
30
|
+
connection:
|
31
|
+
- close
|
32
|
+
response: !ruby/struct:VCR::Response
|
33
|
+
status: !ruby/struct:VCR::ResponseStatus
|
34
|
+
code: 201
|
35
|
+
message: Created
|
36
|
+
headers:
|
37
|
+
cache-control:
|
38
|
+
- no-cache
|
39
|
+
location:
|
40
|
+
- http://app.recurly.local:3000/accounts/billing-errors-1302025874
|
41
|
+
x-runtime:
|
42
|
+
- "395"
|
43
|
+
content-type:
|
44
|
+
- application/xml; charset=utf-8
|
45
|
+
content-length:
|
46
|
+
- "583"
|
47
|
+
set-cookie:
|
48
|
+
- _recurly_session=54510a52a5c58e2dd01a0abe21ba6027; domain=.recurly.local; path=/; HttpOnly
|
49
|
+
connection:
|
50
|
+
- close
|
51
|
+
server:
|
52
|
+
- thin 1.2.7 codename No Hup
|
53
|
+
body: |
|
54
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
55
|
+
<account>
|
56
|
+
<id>billing-errors-1302025874</id>
|
57
|
+
<account_code>billing-errors-1302025874</account_code>
|
58
|
+
<username></username>
|
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>aa2144bfc67f46d3a36c3adea8e2c12e</hosted_login_token>
|
66
|
+
<created_at type="datetime">2011-04-05T19:41:00Z</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
|
73
|
+
method: :put
|
74
|
+
uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/billing-errors-1302025874/billing_info.xml
|
75
|
+
body: |
|
76
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
77
|
+
<billing-info>
|
78
|
+
<first-name>Verena</first-name>
|
79
|
+
<last-name>Test</last-name>
|
80
|
+
<address1>123 Test St</address1>
|
81
|
+
<city>San Francisco</city>
|
82
|
+
<state>CA</state>
|
83
|
+
<zip>94115</zip>
|
84
|
+
<country>US</country>
|
85
|
+
<credit-card>
|
86
|
+
<number></number>
|
87
|
+
</credit-card>
|
88
|
+
</billing-info>
|
89
|
+
|
90
|
+
headers:
|
91
|
+
authorization:
|
92
|
+
- Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
|
93
|
+
content-type:
|
94
|
+
- application/xml
|
95
|
+
accept:
|
96
|
+
- "*/*"
|
97
|
+
user-agent:
|
98
|
+
- Ruby
|
99
|
+
connection:
|
100
|
+
- close
|
101
|
+
response: !ruby/struct:VCR::Response
|
102
|
+
status: !ruby/struct:VCR::ResponseStatus
|
103
|
+
code: 422
|
104
|
+
message: ""
|
105
|
+
headers:
|
106
|
+
cache-control:
|
107
|
+
- no-cache
|
108
|
+
x-runtime:
|
109
|
+
- "737"
|
110
|
+
content-type:
|
111
|
+
- application/xml; charset=utf-8
|
112
|
+
content-length:
|
113
|
+
- "183"
|
114
|
+
set-cookie:
|
115
|
+
- _recurly_session=accac18fba05be16b7f3ce81b05afb7f; domain=.recurly.local; path=/; HttpOnly
|
116
|
+
connection:
|
117
|
+
- close
|
118
|
+
server:
|
119
|
+
- thin 1.2.7 codename No Hup
|
120
|
+
body: |
|
121
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
122
|
+
<errors>
|
123
|
+
<error code="no_billing_information">Your billing information is not on file. Please add your billing information.</error>
|
124
|
+
</errors>
|
125
|
+
|
126
|
+
http_version: "1.1"
|
@@ -6,7 +6,7 @@
|
|
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-1302025874</account-code>
|
10
10
|
<first-name>Verena</first-name>
|
11
11
|
<last-name>Test</last-name>
|
12
12
|
<email>verena@test.com</email>
|
@@ -37,15 +37,15 @@
|
|
37
37
|
cache-control:
|
38
38
|
- no-cache
|
39
39
|
location:
|
40
|
-
- http://app.recurly.local:3000/accounts/billing-find-
|
40
|
+
- http://app.recurly.local:3000/accounts/billing-find-1302025874
|
41
41
|
x-runtime:
|
42
|
-
- "
|
42
|
+
- "404"
|
43
43
|
content-type:
|
44
44
|
- application/xml; charset=utf-8
|
45
45
|
content-length:
|
46
46
|
- "579"
|
47
47
|
set-cookie:
|
48
|
-
- _recurly_session=
|
48
|
+
- _recurly_session=42e4bf0e3c6488d307e3d610beaaae4a; domain=.recurly.local; path=/; HttpOnly
|
49
49
|
connection:
|
50
50
|
- close
|
51
51
|
server:
|
@@ -53,8 +53,8 @@
|
|
53
53
|
body: |
|
54
54
|
<?xml version="1.0" encoding="UTF-8"?>
|
55
55
|
<account>
|
56
|
-
<id>billing-find-
|
57
|
-
<account_code>billing-find-
|
56
|
+
<id>billing-find-1302025874</id>
|
57
|
+
<account_code>billing-find-1302025874</account_code>
|
58
58
|
<username></username>
|
59
59
|
<email>verena@test.com</email>
|
60
60
|
<first_name>Verena</first_name>
|
@@ -62,8 +62,8 @@
|
|
62
62
|
<company_name>Recurly Ruby Gem</company_name>
|
63
63
|
<balance_in_cents type="integer">0</balance_in_cents>
|
64
64
|
<closed type="boolean">false</closed>
|
65
|
-
<hosted_login_token>
|
66
|
-
<created_at type="datetime">2011-04-
|
65
|
+
<hosted_login_token>4729c1ba137c4845bf45e1f80da8f949</hosted_login_token>
|
66
|
+
<created_at type="datetime">2011-04-05T19:40:34Z</created_at>
|
67
67
|
<state>active</state>
|
68
68
|
</account>
|
69
69
|
|
@@ -71,7 +71,7 @@
|
|
71
71
|
- !ruby/struct:VCR::HTTPInteraction
|
72
72
|
request: !ruby/struct:VCR::Request
|
73
73
|
method: :put
|
74
|
-
uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/billing-find-
|
74
|
+
uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/billing-find-1302025874/billing_info.xml
|
75
75
|
body: |
|
76
76
|
<?xml version="1.0" encoding="UTF-8"?>
|
77
77
|
<billing-info>
|
@@ -88,7 +88,7 @@
|
|
88
88
|
<month type="integer">4</month>
|
89
89
|
<verification-value>123</verification-value>
|
90
90
|
</credit-card>
|
91
|
-
<account-code>billing-find-
|
91
|
+
<account-code>billing-find-1302025874</account-code>
|
92
92
|
</billing-info>
|
93
93
|
|
94
94
|
headers:
|
@@ -108,17 +108,17 @@
|
|
108
108
|
message: OK
|
109
109
|
headers:
|
110
110
|
x-runtime:
|
111
|
-
- "
|
111
|
+
- "1760"
|
112
112
|
content-type:
|
113
113
|
- application/xml; charset=utf-8
|
114
114
|
etag:
|
115
|
-
- "\"
|
115
|
+
- "\"4f4aa40795d59f5dbc7886c0d0e51074\""
|
116
116
|
cache-control:
|
117
117
|
- private, max-age=0, must-revalidate
|
118
118
|
content-length:
|
119
119
|
- "638"
|
120
120
|
set-cookie:
|
121
|
-
- _recurly_session=
|
121
|
+
- _recurly_session=5282ea3901fa742112ef2919d52a06b7; domain=.recurly.local; path=/; HttpOnly
|
122
122
|
connection:
|
123
123
|
- close
|
124
124
|
server:
|
@@ -126,7 +126,7 @@
|
|
126
126
|
body: |
|
127
127
|
<?xml version="1.0" encoding="UTF-8"?>
|
128
128
|
<billing_info>
|
129
|
-
<account_code>billing-find-
|
129
|
+
<account_code>billing-find-1302025874</account_code>
|
130
130
|
<first_name>Verena</first_name>
|
131
131
|
<last_name>Test</last_name>
|
132
132
|
<address1>123 Test St</address1>
|
@@ -144,14 +144,14 @@
|
|
144
144
|
<month type="integer">4</month>
|
145
145
|
<year type="integer">2012</year>
|
146
146
|
</credit_card>
|
147
|
-
<updated_at type="datetime">2011-04-
|
147
|
+
<updated_at type="datetime">2011-04-05T19:40:38Z</updated_at>
|
148
148
|
</billing_info>
|
149
149
|
|
150
150
|
http_version: "1.1"
|
151
151
|
- !ruby/struct:VCR::HTTPInteraction
|
152
152
|
request: !ruby/struct:VCR::Request
|
153
153
|
method: :get
|
154
|
-
uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/billing-find-
|
154
|
+
uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/billing-find-1302025874/billing_info.xml
|
155
155
|
body:
|
156
156
|
headers:
|
157
157
|
authorization:
|
@@ -170,17 +170,17 @@
|
|
170
170
|
message: OK
|
171
171
|
headers:
|
172
172
|
x-runtime:
|
173
|
-
- "
|
173
|
+
- "360"
|
174
174
|
content-type:
|
175
175
|
- application/xml; charset=utf-8
|
176
176
|
etag:
|
177
|
-
- "\"
|
177
|
+
- "\"4f4aa40795d59f5dbc7886c0d0e51074\""
|
178
178
|
cache-control:
|
179
179
|
- private, max-age=0, must-revalidate
|
180
180
|
content-length:
|
181
181
|
- "638"
|
182
182
|
set-cookie:
|
183
|
-
- _recurly_session=
|
183
|
+
- _recurly_session=02496d3138085654345bc5b75302b43f; domain=.recurly.local; path=/; HttpOnly
|
184
184
|
connection:
|
185
185
|
- close
|
186
186
|
server:
|
@@ -188,7 +188,7 @@
|
|
188
188
|
body: |
|
189
189
|
<?xml version="1.0" encoding="UTF-8"?>
|
190
190
|
<billing_info>
|
191
|
-
<account_code>billing-find-
|
191
|
+
<account_code>billing-find-1302025874</account_code>
|
192
192
|
<first_name>Verena</first_name>
|
193
193
|
<last_name>Test</last_name>
|
194
194
|
<address1>123 Test St</address1>
|
@@ -206,14 +206,14 @@
|
|
206
206
|
<month type="integer">4</month>
|
207
207
|
<year type="integer">2012</year>
|
208
208
|
</credit_card>
|
209
|
-
<updated_at type="datetime">2011-04-
|
209
|
+
<updated_at type="datetime">2011-04-05T19:40:38Z</updated_at>
|
210
210
|
</billing_info>
|
211
211
|
|
212
212
|
http_version: "1.1"
|
213
213
|
- !ruby/struct:VCR::HTTPInteraction
|
214
214
|
request: !ruby/struct:VCR::Request
|
215
215
|
method: :get
|
216
|
-
uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/billing-find-
|
216
|
+
uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/billing-find-1302025874/billing_info.xml
|
217
217
|
body:
|
218
218
|
headers:
|
219
219
|
authorization:
|
@@ -232,17 +232,17 @@
|
|
232
232
|
message: OK
|
233
233
|
headers:
|
234
234
|
x-runtime:
|
235
|
-
- "
|
235
|
+
- "358"
|
236
236
|
content-type:
|
237
237
|
- application/xml; charset=utf-8
|
238
238
|
etag:
|
239
|
-
- "\"
|
239
|
+
- "\"4f4aa40795d59f5dbc7886c0d0e51074\""
|
240
240
|
cache-control:
|
241
241
|
- private, max-age=0, must-revalidate
|
242
242
|
content-length:
|
243
243
|
- "638"
|
244
244
|
set-cookie:
|
245
|
-
- _recurly_session=
|
245
|
+
- _recurly_session=8525b291edfb65c4aeae5282e04c39c8; domain=.recurly.local; path=/; HttpOnly
|
246
246
|
connection:
|
247
247
|
- close
|
248
248
|
server:
|
@@ -250,7 +250,7 @@
|
|
250
250
|
body: |
|
251
251
|
<?xml version="1.0" encoding="UTF-8"?>
|
252
252
|
<billing_info>
|
253
|
-
<account_code>billing-find-
|
253
|
+
<account_code>billing-find-1302025874</account_code>
|
254
254
|
<first_name>Verena</first_name>
|
255
255
|
<last_name>Test</last_name>
|
256
256
|
<address1>123 Test St</address1>
|
@@ -268,7 +268,7 @@
|
|
268
268
|
<month type="integer">4</month>
|
269
269
|
<year type="integer">2012</year>
|
270
270
|
</credit_card>
|
271
|
-
<updated_at type="datetime">2011-04-
|
271
|
+
<updated_at type="datetime">2011-04-05T19:40:38Z</updated_at>
|
272
272
|
</billing_info>
|
273
273
|
|
274
274
|
http_version: "1.1"
|