recurly 0.4.2 → 0.4.3
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/lib/recurly.rb +1 -0
- data/lib/recurly/base.rb +92 -12
- data/lib/recurly/formats/xml_with_errors.rb +132 -0
- data/lib/recurly/version.rb +1 -1
- data/spec/config/recurly.yml +4 -4
- data/spec/integration/transaction_spec.rb +4 -3
- data/spec/vcr/account/accept-language-account/1297746103.yml +6 -6
- data/spec/vcr/account/close/1297746103.yml +17 -17
- data/spec/vcr/account/create-blank/1297746103.yml +4 -4
- data/spec/vcr/account/create-duplicate/1297746103.yml +10 -10
- data/spec/vcr/account/create-min/1297746103.yml +6 -6
- data/spec/vcr/account/create/1297746103.yml +6 -6
- data/spec/vcr/account/find/1297746103.yml +16 -16
- data/spec/vcr/account/list/1297746103.yml +204 -156
- data/spec/vcr/account/update/1297746103.yml +29 -29
- data/spec/vcr/billing/create/1298594128.yml +21 -21
- data/spec/vcr/billing/destroy/1298594128.yml +28 -28
- data/spec/vcr/billing/find/1298594128.yml +28 -28
- data/spec/vcr/billing/update/1298594128.yml +29 -29
- data/spec/vcr/charge/create/1297746103.yml +29 -29
- data/spec/vcr/charge/delete-uninvoiced/1297746103.yml +32 -32
- data/spec/vcr/charge/list-all/1297746103.yml +41 -41
- data/spec/vcr/charge/list-invoiced/1297746103.yml +68 -68
- data/spec/vcr/charge/list-pending/1297746103.yml +41 -41
- data/spec/vcr/charge/lookup/1297746103.yml +21 -21
- data/spec/vcr/coupon/create/1299714521.yml +25 -25
- data/spec/vcr/coupon/destroy/1299714521.yml +22 -22
- data/spec/vcr/credit/create/1299714599.yml +21 -21
- data/spec/vcr/credit/delete/1299714599.yml +28 -28
- data/spec/vcr/credit/list/1299714599.yml +41 -41
- data/spec/vcr/credit/lookup/1299714599.yml +21 -21
- data/spec/vcr/invoice/create-no-charges/1297746103.yml +18 -18
- data/spec/vcr/invoice/create/1297746103.yml +42 -42
- data/spec/vcr/invoice/list/1297746103.yml +61 -61
- data/spec/vcr/invoice/lookup/1297746103.yml +43 -43
- data/spec/vcr/plan/all.yml +65 -52
- data/spec/vcr/plan/find.yml +58 -34
- data/spec/vcr/plan/update.yml +28 -29
- data/spec/vcr/subscription/addons/add/1297746103.yml +293 -335
- data/spec/vcr/subscription/addons/add/1301884213.yml +480 -0
- data/spec/vcr/subscription/addons/create/1297746103.yml +134 -335
- data/spec/vcr/subscription/addons/create/1301884213.yml +321 -0
- data/spec/vcr/subscription/addons/remove/1297746103.yml +262 -335
- data/spec/vcr/subscription/addons/remove/1301884213.yml +449 -0
- data/spec/vcr/subscription/cancel-with-code/{1297746103.yml → 1301881900.yml} +104 -92
- data/spec/vcr/subscription/cancel/{1297746103.yml → 1301881900.yml} +90 -78
- data/spec/vcr/subscription/change1/{1297746103.yml → 1301881900.yml} +86 -74
- data/spec/vcr/subscription/change2/{1297746103.yml → 1301881900.yml} +86 -74
- data/spec/vcr/subscription/create/{1297746103.yml → 1301881900.yml} +50 -38
- data/spec/vcr/subscription/find/{1297746103.yml → 1301881900.yml} +62 -50
- data/spec/vcr/subscription/reactivate/{1297746103.yml → 1301881900.yml} +95 -83
- data/spec/vcr/subscription/refund-full/{1297746103.yml → 1301881900.yml} +79 -67
- data/spec/vcr/subscription/refund-none/{1297746103.yml → 1301881900.yml} +79 -67
- data/spec/vcr/subscription/refund-partial/{1297746103.yml → 1301881900.yml} +79 -67
- data/spec/vcr/transaction/all/1301883347.yml +387 -0
- data/spec/vcr/transaction/create-no-account/{1300473500.yml → 1301883347.yml} +18 -18
- data/spec/vcr/transaction/create-with-account/{1300473500.yml → 1301883347.yml} +37 -37
- data/spec/vcr/transaction/list-filled/{1300473500.yml → 1301883347.yml} +169 -169
- data/spec/vcr/transaction/list-initial/{1300473500.yml → 1301883347.yml} +39 -39
- data/spec/vcr/transaction/lookup/{1300473500.yml → 1301883347.yml} +119 -119
- data/spec/vcr/transaction/refund/{1300473500.yml → 1301883347.yml} +53 -53
- data/spec/vcr/transaction/void/1301883347.yml +365 -0
- data/spec/vcr/transparent/post-url/{1300476053.yml → 1301879142.yml} +19 -19
- metadata +66 -58
- data/spec/vcr/transaction/all/1300473500.yml +0 -387
- data/spec/vcr/transaction/void/1300473500.yml +0 -620
- data/spec/vcr/transparent/post-url/1300475927.yml +0 -41
- data/spec/vcr/transparent/post-url/1300475952.yml +0 -41
- data/spec/vcr/transparent/post-url/1300476034.yml +0 -125
- data/spec/vcr/transparent/post-url/1300476102.yml +0 -125
- data/spec/vcr/transparent/post-url/1300476126.yml +0 -125
@@ -2,7 +2,7 @@
|
|
2
2
|
- !ruby/struct:VCR::HTTPInteraction
|
3
3
|
request: !ruby/struct:VCR::Request
|
4
4
|
method: :post
|
5
|
-
uri: http://api-test-
|
5
|
+
uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts.xml
|
6
6
|
body: |
|
7
7
|
<?xml version="1.0" encoding="UTF-8"?>
|
8
8
|
<account>
|
@@ -20,7 +20,7 @@
|
|
20
20
|
|
21
21
|
headers:
|
22
22
|
authorization:
|
23
|
-
- Basic
|
23
|
+
- Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
|
24
24
|
content-type:
|
25
25
|
- application/xml
|
26
26
|
accept:
|
@@ -39,13 +39,13 @@
|
|
39
39
|
location:
|
40
40
|
- http://app.recurly.local:3000/accounts/account-update-1297746103
|
41
41
|
x-runtime:
|
42
|
-
- "
|
42
|
+
- "412"
|
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=88cad29bb2a1a6ba5a61a52a6cb0935d; domain=.recurly.local; path=/; HttpOnly
|
49
49
|
connection:
|
50
50
|
- close
|
51
51
|
server:
|
@@ -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-
|
65
|
+
<hosted_login_token>d0e2f08837f44160b15fac054e4ee702</hosted_login_token>
|
66
|
+
<created_at type="datetime">2011-04-04T02:17:31Z</created_at>
|
67
67
|
<state>active</state>
|
68
68
|
</account>
|
69
69
|
|
@@ -71,11 +71,11 @@
|
|
71
71
|
- !ruby/struct:VCR::HTTPInteraction
|
72
72
|
request: !ruby/struct:VCR::Request
|
73
73
|
method: :get
|
74
|
-
uri: http://api-test-
|
74
|
+
uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/account-update-1297746103.xml
|
75
75
|
body:
|
76
76
|
headers:
|
77
77
|
authorization:
|
78
|
-
- Basic
|
78
|
+
- Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
|
79
79
|
accept:
|
80
80
|
- application/xml
|
81
81
|
accept-encoding:
|
@@ -90,17 +90,17 @@
|
|
90
90
|
message: OK
|
91
91
|
headers:
|
92
92
|
x-runtime:
|
93
|
-
- "
|
93
|
+
- "311"
|
94
94
|
content-type:
|
95
95
|
- application/xml; charset=utf-8
|
96
96
|
etag:
|
97
|
-
- "\"
|
97
|
+
- "\"927e535b3d07cc9bc9fa474de28cade2\""
|
98
98
|
cache-control:
|
99
99
|
- private, max-age=0, must-revalidate
|
100
100
|
content-length:
|
101
101
|
- "583"
|
102
102
|
set-cookie:
|
103
|
-
- _recurly_session=
|
103
|
+
- _recurly_session=41040e11e0dc1acc33d3c5b38ed7e427; domain=.recurly.local; path=/; HttpOnly
|
104
104
|
connection:
|
105
105
|
- close
|
106
106
|
server:
|
@@ -117,8 +117,8 @@
|
|
117
117
|
<company_name>Recurly Ruby Gem</company_name>
|
118
118
|
<balance_in_cents type="integer">0</balance_in_cents>
|
119
119
|
<closed type="boolean">false</closed>
|
120
|
-
<hosted_login_token>
|
121
|
-
<created_at type="datetime">2011-
|
120
|
+
<hosted_login_token>d0e2f08837f44160b15fac054e4ee702</hosted_login_token>
|
121
|
+
<created_at type="datetime">2011-04-04T02:17:31Z</created_at>
|
122
122
|
<state>active</state>
|
123
123
|
</account>
|
124
124
|
|
@@ -126,7 +126,7 @@
|
|
126
126
|
- !ruby/struct:VCR::HTTPInteraction
|
127
127
|
request: !ruby/struct:VCR::Request
|
128
128
|
method: :put
|
129
|
-
uri: http://api-test-
|
129
|
+
uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/account-update-1297746103.xml
|
130
130
|
body: |
|
131
131
|
<?xml version="1.0" encoding="UTF-8"?>
|
132
132
|
<account>
|
@@ -139,8 +139,8 @@
|
|
139
139
|
<company-name>Recurly Ruby Gem -- Update</company-name>
|
140
140
|
<balance-in-cents type="integer">0</balance-in-cents>
|
141
141
|
<closed type="boolean">false</closed>
|
142
|
-
<hosted-login-token>
|
143
|
-
<created-at type="datetime">2011-
|
142
|
+
<hosted-login-token>d0e2f08837f44160b15fac054e4ee702</hosted-login-token>
|
143
|
+
<created-at type="datetime">2011-04-04T02:17:31Z</created-at>
|
144
144
|
<state>active</state>
|
145
145
|
<billing-info>
|
146
146
|
<credit-card>
|
@@ -151,7 +151,7 @@
|
|
151
151
|
|
152
152
|
headers:
|
153
153
|
authorization:
|
154
|
-
- Basic
|
154
|
+
- Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
|
155
155
|
content-type:
|
156
156
|
- application/xml
|
157
157
|
accept:
|
@@ -166,17 +166,17 @@
|
|
166
166
|
message: OK
|
167
167
|
headers:
|
168
168
|
x-runtime:
|
169
|
-
- "
|
169
|
+
- "491"
|
170
170
|
content-type:
|
171
171
|
- application/xml; charset=utf-8
|
172
172
|
etag:
|
173
|
-
- "\"
|
173
|
+
- "\"e4c3deedc262e68fcb0815e8e10a26b8\""
|
174
174
|
cache-control:
|
175
175
|
- private, max-age=0, must-revalidate
|
176
176
|
content-length:
|
177
177
|
- "600"
|
178
178
|
set-cookie:
|
179
|
-
- _recurly_session=
|
179
|
+
- _recurly_session=4bb882a50ac3d07ecbb0a629726a8ef4; domain=.recurly.local; path=/; HttpOnly
|
180
180
|
connection:
|
181
181
|
- close
|
182
182
|
server:
|
@@ -193,8 +193,8 @@
|
|
193
193
|
<company_name>Recurly Ruby Gem -- Update</company_name>
|
194
194
|
<balance_in_cents type="integer">0</balance_in_cents>
|
195
195
|
<closed type="boolean">false</closed>
|
196
|
-
<hosted_login_token>
|
197
|
-
<created_at type="datetime">2011-
|
196
|
+
<hosted_login_token>d0e2f08837f44160b15fac054e4ee702</hosted_login_token>
|
197
|
+
<created_at type="datetime">2011-04-04T02:17:31Z</created_at>
|
198
198
|
<state>active</state>
|
199
199
|
</account>
|
200
200
|
|
@@ -202,11 +202,11 @@
|
|
202
202
|
- !ruby/struct:VCR::HTTPInteraction
|
203
203
|
request: !ruby/struct:VCR::Request
|
204
204
|
method: :get
|
205
|
-
uri: http://api-test-
|
205
|
+
uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/account-update-1297746103.xml
|
206
206
|
body:
|
207
207
|
headers:
|
208
208
|
authorization:
|
209
|
-
- Basic
|
209
|
+
- Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
|
210
210
|
accept:
|
211
211
|
- application/xml
|
212
212
|
accept-encoding:
|
@@ -221,17 +221,17 @@
|
|
221
221
|
message: OK
|
222
222
|
headers:
|
223
223
|
x-runtime:
|
224
|
-
- "
|
224
|
+
- "340"
|
225
225
|
content-type:
|
226
226
|
- application/xml; charset=utf-8
|
227
227
|
etag:
|
228
|
-
- "\"
|
228
|
+
- "\"e4c3deedc262e68fcb0815e8e10a26b8\""
|
229
229
|
cache-control:
|
230
230
|
- private, max-age=0, must-revalidate
|
231
231
|
content-length:
|
232
232
|
- "600"
|
233
233
|
set-cookie:
|
234
|
-
- _recurly_session=
|
234
|
+
- _recurly_session=ace38a9ec616f88bcb362cbf83e997fe; domain=.recurly.local; path=/; HttpOnly
|
235
235
|
connection:
|
236
236
|
- close
|
237
237
|
server:
|
@@ -248,8 +248,8 @@
|
|
248
248
|
<company_name>Recurly Ruby Gem -- Update</company_name>
|
249
249
|
<balance_in_cents type="integer">0</balance_in_cents>
|
250
250
|
<closed type="boolean">false</closed>
|
251
|
-
<hosted_login_token>
|
252
|
-
<created_at type="datetime">2011-
|
251
|
+
<hosted_login_token>d0e2f08837f44160b15fac054e4ee702</hosted_login_token>
|
252
|
+
<created_at type="datetime">2011-04-04T02:17:31Z</created_at>
|
253
253
|
<state>active</state>
|
254
254
|
</account>
|
255
255
|
|
@@ -2,7 +2,7 @@
|
|
2
2
|
- !ruby/struct:VCR::HTTPInteraction
|
3
3
|
request: !ruby/struct:VCR::Request
|
4
4
|
method: :post
|
5
|
-
uri: http://api-test-
|
5
|
+
uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts.xml
|
6
6
|
body: |
|
7
7
|
<?xml version="1.0" encoding="UTF-8"?>
|
8
8
|
<account>
|
@@ -20,7 +20,7 @@
|
|
20
20
|
|
21
21
|
headers:
|
22
22
|
authorization:
|
23
|
-
- Basic
|
23
|
+
- Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
|
24
24
|
content-type:
|
25
25
|
- application/xml
|
26
26
|
accept:
|
@@ -39,13 +39,13 @@
|
|
39
39
|
location:
|
40
40
|
- http://app.recurly.local:3000/accounts/billing-create-1298594128
|
41
41
|
x-runtime:
|
42
|
-
- "
|
42
|
+
- "339"
|
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=e89dc4f852a0438d9868268fe4d82c37; domain=.recurly.local; path=/; HttpOnly
|
49
49
|
connection:
|
50
50
|
- close
|
51
51
|
server:
|
@@ -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-
|
65
|
+
<hosted_login_token>8835713e68bb4a7b93ea620c979579ef</hosted_login_token>
|
66
|
+
<created_at type="datetime">2011-04-04T02:18:57Z</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-
|
74
|
+
uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/billing-create-1298594128/billing_info.xml
|
75
75
|
body: |
|
76
76
|
<?xml version="1.0" encoding="UTF-8"?>
|
77
77
|
<billing-info>
|
@@ -85,14 +85,14 @@
|
|
85
85
|
<credit-card>
|
86
86
|
<number>4111111111111111</number>
|
87
87
|
<year type="integer">2012</year>
|
88
|
-
<month type="integer">
|
88
|
+
<month type="integer">4</month>
|
89
89
|
<verification-value>123</verification-value>
|
90
90
|
</credit-card>
|
91
91
|
</billing-info>
|
92
92
|
|
93
93
|
headers:
|
94
94
|
authorization:
|
95
|
-
- Basic
|
95
|
+
- Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
|
96
96
|
content-type:
|
97
97
|
- application/xml
|
98
98
|
accept:
|
@@ -107,17 +107,17 @@
|
|
107
107
|
message: OK
|
108
108
|
headers:
|
109
109
|
x-runtime:
|
110
|
-
- "
|
110
|
+
- "1823"
|
111
111
|
content-type:
|
112
112
|
- application/xml; charset=utf-8
|
113
113
|
etag:
|
114
|
-
- "\"
|
114
|
+
- "\"7c72f80b69d2fc06e2b992406e49978c\""
|
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=9c874db61eda69e1064cb61d1b91c519; domain=.recurly.local; path=/; HttpOnly
|
121
121
|
connection:
|
122
122
|
- close
|
123
123
|
server:
|
@@ -140,21 +140,21 @@
|
|
140
140
|
<credit_card>
|
141
141
|
<type>visa</type>
|
142
142
|
<last_four>1111</last_four>
|
143
|
-
<month type="integer">
|
143
|
+
<month type="integer">4</month>
|
144
144
|
<year type="integer">2012</year>
|
145
145
|
</credit_card>
|
146
|
-
<updated_at type="datetime">2011-
|
146
|
+
<updated_at type="datetime">2011-04-04T02:19:01Z</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-
|
153
|
+
uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/billing-create-1298594128/billing_info.xml
|
154
154
|
body:
|
155
155
|
headers:
|
156
156
|
authorization:
|
157
|
-
- Basic
|
157
|
+
- Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
|
158
158
|
accept:
|
159
159
|
- application/xml
|
160
160
|
accept-encoding:
|
@@ -169,17 +169,17 @@
|
|
169
169
|
message: OK
|
170
170
|
headers:
|
171
171
|
x-runtime:
|
172
|
-
- "
|
172
|
+
- "301"
|
173
173
|
content-type:
|
174
174
|
- application/xml; charset=utf-8
|
175
175
|
etag:
|
176
|
-
- "\"
|
176
|
+
- "\"7c72f80b69d2fc06e2b992406e49978c\""
|
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=fde10ceaf57d641013859595be659b9f; domain=.recurly.local; path=/; HttpOnly
|
183
183
|
connection:
|
184
184
|
- close
|
185
185
|
server:
|
@@ -202,10 +202,10 @@
|
|
202
202
|
<credit_card>
|
203
203
|
<type>visa</type>
|
204
204
|
<last_four>1111</last_four>
|
205
|
-
<month type="integer">
|
205
|
+
<month type="integer">4</month>
|
206
206
|
<year type="integer">2012</year>
|
207
207
|
</credit_card>
|
208
|
-
<updated_at type="datetime">2011-
|
208
|
+
<updated_at type="datetime">2011-04-04T02:19:01Z</updated_at>
|
209
209
|
</billing_info>
|
210
210
|
|
211
211
|
http_version: "1.1"
|
@@ -2,7 +2,7 @@
|
|
2
2
|
- !ruby/struct:VCR::HTTPInteraction
|
3
3
|
request: !ruby/struct:VCR::Request
|
4
4
|
method: :post
|
5
|
-
uri: http://api-test-
|
5
|
+
uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts.xml
|
6
6
|
body: |
|
7
7
|
<?xml version="1.0" encoding="UTF-8"?>
|
8
8
|
<account>
|
@@ -20,7 +20,7 @@
|
|
20
20
|
|
21
21
|
headers:
|
22
22
|
authorization:
|
23
|
-
- Basic
|
23
|
+
- Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
|
24
24
|
content-type:
|
25
25
|
- application/xml
|
26
26
|
accept:
|
@@ -39,13 +39,13 @@
|
|
39
39
|
location:
|
40
40
|
- http://app.recurly.local:3000/accounts/billing-destroy-1298594128
|
41
41
|
x-runtime:
|
42
|
-
- "
|
42
|
+
- "368"
|
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=ec7ac1c5875063a1ebb99fde8dcaca57; domain=.recurly.local; path=/; HttpOnly
|
49
49
|
connection:
|
50
50
|
- close
|
51
51
|
server:
|
@@ -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-
|
65
|
+
<hosted_login_token>46292bb4a4b7430e89b61b3bfa03a99b</hosted_login_token>
|
66
|
+
<created_at type="datetime">2011-04-04T02:19:32Z</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-
|
74
|
+
uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/billing-destroy-1298594128/billing_info.xml
|
75
75
|
body: |
|
76
76
|
<?xml version="1.0" encoding="UTF-8"?>
|
77
77
|
<billing-info>
|
@@ -85,14 +85,14 @@
|
|
85
85
|
<credit-card>
|
86
86
|
<number>4111111111111111</number>
|
87
87
|
<year type="integer">2012</year>
|
88
|
-
<month type="integer">
|
88
|
+
<month type="integer">4</month>
|
89
89
|
<verification-value>123</verification-value>
|
90
90
|
</credit-card>
|
91
91
|
</billing-info>
|
92
92
|
|
93
93
|
headers:
|
94
94
|
authorization:
|
95
|
-
- Basic
|
95
|
+
- Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
|
96
96
|
content-type:
|
97
97
|
- application/xml
|
98
98
|
accept:
|
@@ -107,17 +107,17 @@
|
|
107
107
|
message: OK
|
108
108
|
headers:
|
109
109
|
x-runtime:
|
110
|
-
- "
|
110
|
+
- "1822"
|
111
111
|
content-type:
|
112
112
|
- application/xml; charset=utf-8
|
113
113
|
etag:
|
114
|
-
- "\"
|
114
|
+
- "\"7380ee758975aad1983b063587279aaf\""
|
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=1be79f70332ecafdbe3c7d44920ef285; domain=.recurly.local; path=/; HttpOnly
|
121
121
|
connection:
|
122
122
|
- close
|
123
123
|
server:
|
@@ -140,21 +140,21 @@
|
|
140
140
|
<credit_card>
|
141
141
|
<type>visa</type>
|
142
142
|
<last_four>1111</last_four>
|
143
|
-
<month type="integer">
|
143
|
+
<month type="integer">4</month>
|
144
144
|
<year type="integer">2012</year>
|
145
145
|
</credit_card>
|
146
|
-
<updated_at type="datetime">2011-
|
146
|
+
<updated_at type="datetime">2011-04-04T02:19:37Z</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-
|
153
|
+
uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/billing-destroy-1298594128/billing_info.xml
|
154
154
|
body:
|
155
155
|
headers:
|
156
156
|
authorization:
|
157
|
-
- Basic
|
157
|
+
- Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
|
158
158
|
accept:
|
159
159
|
- application/xml
|
160
160
|
accept-encoding:
|
@@ -169,17 +169,17 @@
|
|
169
169
|
message: OK
|
170
170
|
headers:
|
171
171
|
x-runtime:
|
172
|
-
- "
|
172
|
+
- "303"
|
173
173
|
content-type:
|
174
174
|
- application/xml; charset=utf-8
|
175
175
|
etag:
|
176
|
-
- "\"
|
176
|
+
- "\"7380ee758975aad1983b063587279aaf\""
|
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=5e591dea1d0b78179c88a9ee6465e0e8; domain=.recurly.local; path=/; HttpOnly
|
183
183
|
connection:
|
184
184
|
- close
|
185
185
|
server:
|
@@ -202,21 +202,21 @@
|
|
202
202
|
<credit_card>
|
203
203
|
<type>visa</type>
|
204
204
|
<last_four>1111</last_four>
|
205
|
-
<month type="integer">
|
205
|
+
<month type="integer">4</month>
|
206
206
|
<year type="integer">2012</year>
|
207
207
|
</credit_card>
|
208
|
-
<updated_at type="datetime">2011-
|
208
|
+
<updated_at type="datetime">2011-04-04T02:19:37Z</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-
|
215
|
+
uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/billing-destroy-1298594128/billing_info.xml
|
216
216
|
body:
|
217
217
|
headers:
|
218
218
|
authorization:
|
219
|
-
- Basic
|
219
|
+
- Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
|
220
220
|
accept:
|
221
221
|
- application/xml
|
222
222
|
user-agent:
|
@@ -231,13 +231,13 @@
|
|
231
231
|
cache-control:
|
232
232
|
- no-cache
|
233
233
|
x-runtime:
|
234
|
-
- "
|
234
|
+
- "332"
|
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=851c2c8b372cc6bc6206c4dc9e13967b; domain=.recurly.local; path=/; HttpOnly
|
241
241
|
connection:
|
242
242
|
- close
|
243
243
|
server:
|
@@ -247,11 +247,11 @@
|
|
247
247
|
- !ruby/struct:VCR::HTTPInteraction
|
248
248
|
request: !ruby/struct:VCR::Request
|
249
249
|
method: :get
|
250
|
-
uri: http://api-test-
|
250
|
+
uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/billing-destroy-1298594128/billing_info.xml
|
251
251
|
body:
|
252
252
|
headers:
|
253
253
|
authorization:
|
254
|
-
- Basic
|
254
|
+
- Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
|
255
255
|
accept:
|
256
256
|
- application/xml
|
257
257
|
accept-encoding:
|
@@ -272,7 +272,7 @@
|
|
272
272
|
content-length:
|
273
273
|
- "98"
|
274
274
|
set-cookie:
|
275
|
-
- _recurly_session=
|
275
|
+
- _recurly_session=e477df22b034668dc01cb03cddf6f81e; domain=.recurly.local; path=/; HttpOnly
|
276
276
|
connection:
|
277
277
|
- close
|
278
278
|
server:
|