recurly 0.4.7 → 0.4.8
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 +6 -0
- data/lib/recurly/base.rb +15 -14
- data/lib/recurly/subscription.rb +2 -0
- data/lib/recurly/version.rb +1 -1
- data/spec/config/recurly.yml +4 -10
- data/spec/integration/transparent_spec.rb +72 -0
- data/spec/unit/transparent_spec.rb +6 -6
- data/spec/vcr/account/accept-language-account/{1301979678.yml → 1296674173.yml} +16 -18
- data/spec/vcr/account/close/{1301979678.yml → 1296674173.yml} +37 -39
- data/spec/vcr/account/create-blank/{1301979678.yml → 1296674173.yml} +8 -12
- data/spec/vcr/account/create-duplicate/{1301979678.yml → 1296674173.yml} +21 -27
- data/spec/vcr/account/create-min/{1301979678.yml → 1296674173.yml} +16 -18
- data/spec/vcr/account/create/{1301979678.yml → 1296674173.yml} +16 -18
- data/spec/vcr/account/find/{1301979678.yml → 1296674173.yml} +36 -38
- data/spec/vcr/account/list/1296674173.yml +55 -0
- data/spec/vcr/account/update/{1301979678.yml → 1296674173.yml} +59 -65
- data/spec/vcr/billing/create/{1302025874.yml → 1296690812.yml} +43 -45
- data/spec/vcr/billing/destroy/{1302025874.yml → 1296690812.yml} +58 -60
- data/spec/vcr/billing/find/{1302025874.yml → 1296690812.yml} +56 -58
- data/spec/vcr/billing/update/{1302025874.yml → 1296690812.yml} +59 -61
- data/spec/vcr/charge/create/{1297746103.yml → 1296674173.yml} +58 -64
- data/spec/vcr/charge/delete-uninvoiced/{1297746103.yml → 1296674173.yml} +66 -72
- data/spec/vcr/charge/list-all/{1297746103.yml → 1296674173.yml} +77 -91
- data/spec/vcr/charge/list-invoiced/{1297746103.yml → 1296674173.yml} +115 -131
- data/spec/vcr/charge/list-pending/{1297746103.yml → 1296674173.yml} +77 -91
- data/spec/vcr/charge/lookup/{1297746103.yml → 1296674173.yml} +43 -49
- data/spec/vcr/coupon/create/1296688818.yml +183 -0
- data/spec/vcr/coupon/create/1296774903.yml +183 -0
- data/spec/vcr/coupon/destroy/1296688818.yml +207 -0
- data/spec/vcr/coupon/destroy/1296774903.yml +207 -0
- data/spec/vcr/{coupon/create/1299714521.yml → credit/create/1296674173.yml} +34 -32
- data/spec/vcr/{billing/errors/1302025874.yml → credit/delete/1296674173.yml} +33 -42
- data/spec/vcr/{coupon/destroy/1299714521.yml → credit/list/1296674173.yml} +35 -33
- data/spec/vcr/credit/lookup/1296674173.yml +121 -0
- data/spec/vcr/invoice/create-no-charges/{1297746103.yml → 1296674173.yml} +40 -42
- data/spec/vcr/invoice/create/{1297746103.yml → 1296674173.yml} +77 -83
- data/spec/vcr/invoice/list/{1297746103.yml → 1296674173.yml} +107 -113
- data/spec/vcr/invoice/lookup/{1297746103.yml → 1296674173.yml} +77 -81
- data/spec/vcr/plan/all.yml +117 -98
- data/spec/vcr/plan/delete/1296674173.yml +225 -0
- data/spec/vcr/plan/find.yml +66 -36
- data/spec/vcr/plan/update.yml +64 -144
- data/spec/vcr/subscription/addons/add/{1301885121.yml → 1296674173.yml} +58 -51
- data/spec/vcr/subscription/addons/create/{1301885121.yml → 1296674173.yml} +58 -51
- data/spec/vcr/subscription/addons/remove/{1301885121.yml → 1296674173.yml} +58 -51
- data/spec/vcr/subscription/cancel-with-code/{1301881900.yml → 1296674173.yml} +135 -133
- data/spec/vcr/subscription/cancel/{1301881900.yml → 1296674173.yml} +117 -114
- data/spec/vcr/subscription/change1/{1301881900.yml → 1296674173.yml} +113 -110
- data/spec/vcr/subscription/change2/{1301881900.yml → 1296674173.yml} +112 -109
- data/spec/vcr/subscription/create/{1301881900.yml → 1296674173.yml} +65 -59
- data/spec/vcr/subscription/find/{1301881900.yml → 1296674173.yml} +81 -76
- data/spec/vcr/subscription/reactivate/{1301881900.yml → 1296674173.yml} +127 -124
- data/spec/vcr/subscription/refund-full/1296674173.yml +400 -0
- data/spec/vcr/subscription/refund-none/{1301881900.yml → 1296674173.yml} +106 -102
- data/spec/vcr/subscription/refund-partial/1296674173.yml +400 -0
- data/spec/vcr/transaction/all/{1301883347.yml → 1296674173.yml} +126 -126
- data/spec/vcr/transaction/create-no-account/{1301883347.yml → 1296674173.yml} +16 -16
- data/spec/vcr/transaction/create-with-account/{1301883347.yml → 1296674173.yml} +45 -51
- data/spec/vcr/transaction/list-filled/{1301883347.yml → 1296674173.yml} +91 -221
- data/spec/vcr/transaction/list-initial/{1301883347.yml → 1296674173.yml} +44 -46
- data/spec/vcr/transaction/lookup/{1301883347.yml → 1296674173.yml} +107 -121
- data/spec/vcr/transaction/refund/{1301883347.yml → 1296674173.yml} +57 -63
- data/spec/vcr/transaction/void/{1301883347.yml → 1296674173.yml} +69 -75
- data/spec/vcr/transparent/post-url/1311127536.yml +0 -0
- data/spec/vcr/transparent/post-url/1311127583.yml +0 -0
- data/spec/vcr/transparent/post-url/1311128042.yml +0 -0
- data/spec/vcr/transparent/post-url/1311128073.yml +0 -0
- data/spec/vcr/transparent/post-url/1311128087.yml +0 -0
- metadata +97 -155
- data/spec/vcr/account/list/1301979678.yml +0 -1588
- data/spec/vcr/credit/create/1299714599.yml +0 -186
- data/spec/vcr/credit/delete/1299714599.yml +0 -265
- data/spec/vcr/credit/list/1299714599.yml +0 -330
- data/spec/vcr/credit/lookup/1299714599.yml +0 -186
- data/spec/vcr/subscription/refund-full/1301881900.yml +0 -334
- data/spec/vcr/subscription/refund-partial/1301881900.yml +0 -334
- data/spec/vcr/transparent/post-url/1301879142.yml +0 -129
@@ -2,31 +2,27 @@
|
|
2
2
|
- !ruby/struct:VCR::HTTPInteraction
|
3
3
|
request: !ruby/struct:VCR::Request
|
4
4
|
method: :post
|
5
|
-
uri: http://
|
5
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.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-1296690812</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>
|
18
14
|
<accept-language type="yaml" nil="true"></accept-language>
|
19
15
|
</account>
|
20
16
|
|
21
17
|
headers:
|
22
18
|
authorization:
|
23
|
-
- Basic
|
24
|
-
user-agent:
|
25
|
-
- Recurly Ruby Client v0.4.6
|
19
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
26
20
|
content-type:
|
27
21
|
- application/xml
|
28
22
|
accept:
|
29
23
|
- "*/*"
|
24
|
+
user-agent:
|
25
|
+
- Ruby
|
30
26
|
connection:
|
31
27
|
- close
|
32
28
|
response: !ruby/struct:VCR::Response
|
@@ -37,26 +33,28 @@
|
|
37
33
|
cache-control:
|
38
34
|
- no-cache
|
39
35
|
location:
|
40
|
-
- http://
|
36
|
+
- http://litle-test.recurly.local:3000/accounts/billing-destroy-1296690812
|
41
37
|
x-runtime:
|
42
|
-
- "
|
38
|
+
- "595"
|
43
39
|
content-type:
|
44
40
|
- application/xml; charset=utf-8
|
45
41
|
content-length:
|
46
42
|
- "585"
|
47
43
|
server:
|
48
|
-
- WEBrick/1.3.1 (Ruby/1.9.2/
|
44
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
49
45
|
date:
|
50
|
-
- Thu,
|
46
|
+
- Thu, 03 Feb 2011 22:18:03 GMT
|
51
47
|
connection:
|
52
48
|
- close
|
53
49
|
set-cookie:
|
54
|
-
-
|
50
|
+
- account_credentials=93e6f6c32d955929f0859c3f38eac91f30183a7905867e0cce05547cba192f5f2898e59c627b477ab4d4bd73987cb0fa3bbbece9f91a2c8cf074f4acb2831766%3A%3A; domain=.recurly.local; path=/
|
51
|
+
- ""
|
52
|
+
- _recurly_session=ae4ca057d8a9d9a1178f524b0b033e58; domain=.recurly.local; path=/; HttpOnly
|
55
53
|
body: |
|
56
54
|
<?xml version="1.0" encoding="UTF-8"?>
|
57
55
|
<account>
|
58
|
-
<id>billing-destroy-
|
59
|
-
<account_code>billing-destroy-
|
56
|
+
<id>billing-destroy-1296690812</id>
|
57
|
+
<account_code>billing-destroy-1296690812</account_code>
|
60
58
|
<username></username>
|
61
59
|
<email>verena@test.com</email>
|
62
60
|
<first_name>Verena</first_name>
|
@@ -64,8 +62,8 @@
|
|
64
62
|
<company_name>Recurly Ruby Gem</company_name>
|
65
63
|
<balance_in_cents type="integer">0</balance_in_cents>
|
66
64
|
<closed type="boolean">false</closed>
|
67
|
-
<hosted_login_token>
|
68
|
-
<created_at type="datetime">2011-
|
65
|
+
<hosted_login_token>67a96ce98c214a668110df8578f8db3d</hosted_login_token>
|
66
|
+
<created_at type="datetime">2011-02-03T22:18:02Z</created_at>
|
69
67
|
<state>active</state>
|
70
68
|
</account>
|
71
69
|
|
@@ -73,12 +71,10 @@
|
|
73
71
|
- !ruby/struct:VCR::HTTPInteraction
|
74
72
|
request: !ruby/struct:VCR::Request
|
75
73
|
method: :put
|
76
|
-
uri: http://
|
74
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/billing-destroy-1296690812/billing_info.xml
|
77
75
|
body: |
|
78
76
|
<?xml version="1.0" encoding="UTF-8"?>
|
79
77
|
<billing-info>
|
80
|
-
<first-name>Verena</first-name>
|
81
|
-
<last-name>Test</last-name>
|
82
78
|
<address1>500 South Central Blvd</address1>
|
83
79
|
<city>Los Angeles</city>
|
84
80
|
<state>CA</state>
|
@@ -87,20 +83,22 @@
|
|
87
83
|
<credit-card>
|
88
84
|
<number>4111111111111111</number>
|
89
85
|
<year type="integer">2012</year>
|
90
|
-
<month type="integer">
|
86
|
+
<month type="integer">2</month>
|
91
87
|
<verification-value>123</verification-value>
|
92
88
|
</credit-card>
|
89
|
+
<first-name>Verena</first-name>
|
90
|
+
<last-name>Test</last-name>
|
93
91
|
</billing-info>
|
94
92
|
|
95
93
|
headers:
|
96
94
|
authorization:
|
97
|
-
- Basic
|
98
|
-
user-agent:
|
99
|
-
- Recurly Ruby Client v0.4.6
|
95
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
100
96
|
content-type:
|
101
97
|
- application/xml
|
102
98
|
accept:
|
103
99
|
- "*/*"
|
100
|
+
user-agent:
|
101
|
+
- Ruby
|
104
102
|
connection:
|
105
103
|
- close
|
106
104
|
response: !ruby/struct:VCR::Response
|
@@ -109,27 +107,27 @@
|
|
109
107
|
message: "OK "
|
110
108
|
headers:
|
111
109
|
x-runtime:
|
112
|
-
- "
|
110
|
+
- "1605"
|
113
111
|
content-type:
|
114
112
|
- application/xml; charset=utf-8
|
115
113
|
etag:
|
116
|
-
- "\"
|
114
|
+
- "\"bb1a681a4f4acadcbc37d7ad16a40435\""
|
117
115
|
cache-control:
|
118
116
|
- private, max-age=0, must-revalidate
|
119
117
|
content-length:
|
120
118
|
- "650"
|
121
119
|
server:
|
122
|
-
- WEBrick/1.3.1 (Ruby/1.9.2/
|
120
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
123
121
|
date:
|
124
|
-
- Thu,
|
122
|
+
- Thu, 03 Feb 2011 22:18:06 GMT
|
125
123
|
connection:
|
126
124
|
- close
|
127
125
|
set-cookie:
|
128
|
-
- _recurly_session=
|
126
|
+
- _recurly_session=ee7cd3d81974c875e96f6d601f8dab42; domain=.recurly.local; path=/; HttpOnly
|
129
127
|
body: |
|
130
128
|
<?xml version="1.0" encoding="UTF-8"?>
|
131
129
|
<billing_info>
|
132
|
-
<account_code>billing-destroy-
|
130
|
+
<account_code>billing-destroy-1296690812</account_code>
|
133
131
|
<first_name>Verena</first_name>
|
134
132
|
<last_name>Test</last_name>
|
135
133
|
<address1>500 South Central Blvd</address1>
|
@@ -144,27 +142,27 @@
|
|
144
142
|
<credit_card>
|
145
143
|
<type>visa</type>
|
146
144
|
<last_four>1111</last_four>
|
147
|
-
<month type="integer">
|
145
|
+
<month type="integer">2</month>
|
148
146
|
<year type="integer">2012</year>
|
149
147
|
</credit_card>
|
150
|
-
<updated_at type="datetime">2011-
|
148
|
+
<updated_at type="datetime">2011-02-03T22:18:06Z</updated_at>
|
151
149
|
</billing_info>
|
152
150
|
|
153
151
|
http_version: "1.1"
|
154
152
|
- !ruby/struct:VCR::HTTPInteraction
|
155
153
|
request: !ruby/struct:VCR::Request
|
156
154
|
method: :get
|
157
|
-
uri: http://
|
155
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/billing-destroy-1296690812/billing_info.xml
|
158
156
|
body:
|
159
157
|
headers:
|
160
158
|
authorization:
|
161
|
-
- Basic
|
162
|
-
user-agent:
|
163
|
-
- Recurly Ruby Client v0.4.6
|
159
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
164
160
|
accept:
|
165
161
|
- application/xml
|
166
162
|
accept-encoding:
|
167
163
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
164
|
+
user-agent:
|
165
|
+
- Ruby
|
168
166
|
connection:
|
169
167
|
- close
|
170
168
|
response: !ruby/struct:VCR::Response
|
@@ -173,27 +171,27 @@
|
|
173
171
|
message: "OK "
|
174
172
|
headers:
|
175
173
|
x-runtime:
|
176
|
-
- "
|
174
|
+
- "196"
|
177
175
|
content-type:
|
178
176
|
- application/xml; charset=utf-8
|
179
177
|
etag:
|
180
|
-
- "\"
|
178
|
+
- "\"bb1a681a4f4acadcbc37d7ad16a40435\""
|
181
179
|
cache-control:
|
182
180
|
- private, max-age=0, must-revalidate
|
183
181
|
content-length:
|
184
182
|
- "650"
|
185
183
|
server:
|
186
|
-
- WEBrick/1.3.1 (Ruby/1.9.2/
|
184
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
187
185
|
date:
|
188
|
-
- Thu,
|
186
|
+
- Thu, 03 Feb 2011 22:18:08 GMT
|
189
187
|
connection:
|
190
188
|
- close
|
191
189
|
set-cookie:
|
192
|
-
- _recurly_session=
|
190
|
+
- _recurly_session=143d5f0b58665853add2731a45150ac4; domain=.recurly.local; path=/; HttpOnly
|
193
191
|
body: |
|
194
192
|
<?xml version="1.0" encoding="UTF-8"?>
|
195
193
|
<billing_info>
|
196
|
-
<account_code>billing-destroy-
|
194
|
+
<account_code>billing-destroy-1296690812</account_code>
|
197
195
|
<first_name>Verena</first_name>
|
198
196
|
<last_name>Test</last_name>
|
199
197
|
<address1>500 South Central Blvd</address1>
|
@@ -208,25 +206,25 @@
|
|
208
206
|
<credit_card>
|
209
207
|
<type>visa</type>
|
210
208
|
<last_four>1111</last_four>
|
211
|
-
<month type="integer">
|
209
|
+
<month type="integer">2</month>
|
212
210
|
<year type="integer">2012</year>
|
213
211
|
</credit_card>
|
214
|
-
<updated_at type="datetime">2011-
|
212
|
+
<updated_at type="datetime">2011-02-03T22:18:06Z</updated_at>
|
215
213
|
</billing_info>
|
216
214
|
|
217
215
|
http_version: "1.1"
|
218
216
|
- !ruby/struct:VCR::HTTPInteraction
|
219
217
|
request: !ruby/struct:VCR::Request
|
220
218
|
method: :delete
|
221
|
-
uri: http://
|
219
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/billing-destroy-1296690812/billing_info.xml
|
222
220
|
body:
|
223
221
|
headers:
|
224
222
|
authorization:
|
225
|
-
- Basic
|
226
|
-
user-agent:
|
227
|
-
- Recurly Ruby Client v0.4.6
|
223
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
228
224
|
accept:
|
229
225
|
- application/xml
|
226
|
+
user-agent:
|
227
|
+
- Ruby
|
230
228
|
connection:
|
231
229
|
- close
|
232
230
|
response: !ruby/struct:VCR::Response
|
@@ -237,35 +235,35 @@
|
|
237
235
|
cache-control:
|
238
236
|
- no-cache
|
239
237
|
x-runtime:
|
240
|
-
- "
|
238
|
+
- "190"
|
241
239
|
content-type:
|
242
240
|
- application/xml; charset=utf-8
|
243
241
|
content-length:
|
244
242
|
- "1"
|
245
243
|
server:
|
246
|
-
- WEBrick/1.3.1 (Ruby/1.9.2/
|
244
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
247
245
|
date:
|
248
|
-
- Thu,
|
246
|
+
- Thu, 03 Feb 2011 22:18:10 GMT
|
249
247
|
connection:
|
250
248
|
- close
|
251
249
|
set-cookie:
|
252
|
-
- _recurly_session=
|
250
|
+
- _recurly_session=219cd71e1be898c6ff7315a4b5c25b04; domain=.recurly.local; path=/; HttpOnly
|
253
251
|
body: " "
|
254
252
|
http_version: "1.1"
|
255
253
|
- !ruby/struct:VCR::HTTPInteraction
|
256
254
|
request: !ruby/struct:VCR::Request
|
257
255
|
method: :get
|
258
|
-
uri: http://
|
256
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/billing-destroy-1296690812/billing_info.xml
|
259
257
|
body:
|
260
258
|
headers:
|
261
259
|
authorization:
|
262
|
-
- Basic
|
263
|
-
user-agent:
|
264
|
-
- Recurly Ruby Client v0.4.6
|
260
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
265
261
|
accept:
|
266
262
|
- application/xml
|
267
263
|
accept-encoding:
|
268
264
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
265
|
+
user-agent:
|
266
|
+
- Ruby
|
269
267
|
connection:
|
270
268
|
- close
|
271
269
|
response: !ruby/struct:VCR::Response
|
@@ -280,13 +278,13 @@
|
|
280
278
|
content-length:
|
281
279
|
- "98"
|
282
280
|
server:
|
283
|
-
- WEBrick/1.3.1 (Ruby/1.9.2/
|
281
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
284
282
|
date:
|
285
|
-
- Thu,
|
283
|
+
- Thu, 03 Feb 2011 22:18:11 GMT
|
286
284
|
connection:
|
287
285
|
- close
|
288
286
|
set-cookie:
|
289
|
-
- _recurly_session=
|
287
|
+
- _recurly_session=b95c4c1ecaca97e519eb1296da39c410; domain=.recurly.local; path=/; HttpOnly
|
290
288
|
body: |
|
291
289
|
<?xml version="1.0" encoding="UTF-8"?>
|
292
290
|
<errors>
|
@@ -2,31 +2,27 @@
|
|
2
2
|
- !ruby/struct:VCR::HTTPInteraction
|
3
3
|
request: !ruby/struct:VCR::Request
|
4
4
|
method: :post
|
5
|
-
uri: http://
|
5
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.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-1296690812</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>
|
18
14
|
<accept-language type="yaml" nil="true"></accept-language>
|
19
15
|
</account>
|
20
16
|
|
21
17
|
headers:
|
22
18
|
authorization:
|
23
|
-
- Basic
|
24
|
-
user-agent:
|
25
|
-
- Recurly Ruby Client v0.4.6
|
19
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
26
20
|
content-type:
|
27
21
|
- application/xml
|
28
22
|
accept:
|
29
23
|
- "*/*"
|
24
|
+
user-agent:
|
25
|
+
- Ruby
|
30
26
|
connection:
|
31
27
|
- close
|
32
28
|
response: !ruby/struct:VCR::Response
|
@@ -37,26 +33,28 @@
|
|
37
33
|
cache-control:
|
38
34
|
- no-cache
|
39
35
|
location:
|
40
|
-
- http://
|
36
|
+
- http://litle-test.recurly.local:3000/accounts/billing-find-1296690812
|
41
37
|
x-runtime:
|
42
|
-
- "
|
38
|
+
- "630"
|
43
39
|
content-type:
|
44
40
|
- application/xml; charset=utf-8
|
45
41
|
content-length:
|
46
42
|
- "579"
|
47
43
|
server:
|
48
|
-
- WEBrick/1.3.1 (Ruby/1.9.2/
|
44
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
49
45
|
date:
|
50
|
-
- Thu,
|
46
|
+
- Thu, 03 Feb 2011 22:17:53 GMT
|
51
47
|
connection:
|
52
48
|
- close
|
53
49
|
set-cookie:
|
54
|
-
-
|
50
|
+
- account_credentials=0cd5909a62abe85ef618f92afb16967f99a123ddb24bb60c666636148a4ebfdbce2e4f697570572ea6242df3b7ec611d89eeaac7d5330aaf1f224077543c9d5b%3A%3A; domain=.recurly.local; path=/
|
51
|
+
- ""
|
52
|
+
- _recurly_session=5d89afebae174e05d5c84681f22f274f; domain=.recurly.local; path=/; HttpOnly
|
55
53
|
body: |
|
56
54
|
<?xml version="1.0" encoding="UTF-8"?>
|
57
55
|
<account>
|
58
|
-
<id>billing-find-
|
59
|
-
<account_code>billing-find-
|
56
|
+
<id>billing-find-1296690812</id>
|
57
|
+
<account_code>billing-find-1296690812</account_code>
|
60
58
|
<username></username>
|
61
59
|
<email>verena@test.com</email>
|
62
60
|
<first_name>Verena</first_name>
|
@@ -64,8 +62,8 @@
|
|
64
62
|
<company_name>Recurly Ruby Gem</company_name>
|
65
63
|
<balance_in_cents type="integer">0</balance_in_cents>
|
66
64
|
<closed type="boolean">false</closed>
|
67
|
-
<hosted_login_token>
|
68
|
-
<created_at type="datetime">2011-
|
65
|
+
<hosted_login_token>13c39c85eef344f2ad86ae6b3a79f52d</hosted_login_token>
|
66
|
+
<created_at type="datetime">2011-02-03T22:17:53Z</created_at>
|
69
67
|
<state>active</state>
|
70
68
|
</account>
|
71
69
|
|
@@ -73,12 +71,10 @@
|
|
73
71
|
- !ruby/struct:VCR::HTTPInteraction
|
74
72
|
request: !ruby/struct:VCR::Request
|
75
73
|
method: :put
|
76
|
-
uri: http://
|
74
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/billing-find-1296690812/billing_info.xml
|
77
75
|
body: |
|
78
76
|
<?xml version="1.0" encoding="UTF-8"?>
|
79
77
|
<billing-info>
|
80
|
-
<first-name>Verena</first-name>
|
81
|
-
<last-name>Test</last-name>
|
82
78
|
<address1>123 Test St</address1>
|
83
79
|
<city>San Francisco</city>
|
84
80
|
<state>CA</state>
|
@@ -87,21 +83,23 @@
|
|
87
83
|
<credit-card>
|
88
84
|
<number>4111111111111111</number>
|
89
85
|
<year type="integer">2012</year>
|
90
|
-
<month type="integer">
|
86
|
+
<month type="integer">2</month>
|
91
87
|
<verification-value>123</verification-value>
|
92
88
|
</credit-card>
|
93
|
-
<account-code>billing-find-
|
89
|
+
<account-code>billing-find-1296690812</account-code>
|
90
|
+
<first-name>Verena</first-name>
|
91
|
+
<last-name>Test</last-name>
|
94
92
|
</billing-info>
|
95
93
|
|
96
94
|
headers:
|
97
95
|
authorization:
|
98
|
-
- Basic
|
99
|
-
user-agent:
|
100
|
-
- Recurly Ruby Client v0.4.6
|
96
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
101
97
|
content-type:
|
102
98
|
- application/xml
|
103
99
|
accept:
|
104
100
|
- "*/*"
|
101
|
+
user-agent:
|
102
|
+
- Ruby
|
105
103
|
connection:
|
106
104
|
- close
|
107
105
|
response: !ruby/struct:VCR::Response
|
@@ -110,27 +108,27 @@
|
|
110
108
|
message: "OK "
|
111
109
|
headers:
|
112
110
|
x-runtime:
|
113
|
-
- "
|
111
|
+
- "1466"
|
114
112
|
content-type:
|
115
113
|
- application/xml; charset=utf-8
|
116
114
|
etag:
|
117
|
-
- "\"
|
115
|
+
- "\"72b1fbf237062feb38cba92d8cd01930\""
|
118
116
|
cache-control:
|
119
117
|
- private, max-age=0, must-revalidate
|
120
118
|
content-length:
|
121
119
|
- "638"
|
122
120
|
server:
|
123
|
-
- WEBrick/1.3.1 (Ruby/1.9.2/
|
121
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
124
122
|
date:
|
125
|
-
- Thu,
|
123
|
+
- Thu, 03 Feb 2011 22:17:56 GMT
|
126
124
|
connection:
|
127
125
|
- close
|
128
126
|
set-cookie:
|
129
|
-
- _recurly_session=
|
127
|
+
- _recurly_session=8fc23cef06dd74269860cdb10008bf28; domain=.recurly.local; path=/; HttpOnly
|
130
128
|
body: |
|
131
129
|
<?xml version="1.0" encoding="UTF-8"?>
|
132
130
|
<billing_info>
|
133
|
-
<account_code>billing-find-
|
131
|
+
<account_code>billing-find-1296690812</account_code>
|
134
132
|
<first_name>Verena</first_name>
|
135
133
|
<last_name>Test</last_name>
|
136
134
|
<address1>123 Test St</address1>
|
@@ -145,27 +143,27 @@
|
|
145
143
|
<credit_card>
|
146
144
|
<type>visa</type>
|
147
145
|
<last_four>1111</last_four>
|
148
|
-
<month type="integer">
|
146
|
+
<month type="integer">2</month>
|
149
147
|
<year type="integer">2012</year>
|
150
148
|
</credit_card>
|
151
|
-
<updated_at type="datetime">2011-
|
149
|
+
<updated_at type="datetime">2011-02-03T22:17:56Z</updated_at>
|
152
150
|
</billing_info>
|
153
151
|
|
154
152
|
http_version: "1.1"
|
155
153
|
- !ruby/struct:VCR::HTTPInteraction
|
156
154
|
request: !ruby/struct:VCR::Request
|
157
155
|
method: :get
|
158
|
-
uri: http://
|
156
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/billing-find-1296690812/billing_info.xml
|
159
157
|
body:
|
160
158
|
headers:
|
161
159
|
authorization:
|
162
|
-
- Basic
|
163
|
-
user-agent:
|
164
|
-
- Recurly Ruby Client v0.4.6
|
160
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
165
161
|
accept:
|
166
162
|
- application/xml
|
167
163
|
accept-encoding:
|
168
164
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
165
|
+
user-agent:
|
166
|
+
- Ruby
|
169
167
|
connection:
|
170
168
|
- close
|
171
169
|
response: !ruby/struct:VCR::Response
|
@@ -174,27 +172,27 @@
|
|
174
172
|
message: "OK "
|
175
173
|
headers:
|
176
174
|
x-runtime:
|
177
|
-
- "
|
175
|
+
- "80"
|
178
176
|
content-type:
|
179
177
|
- application/xml; charset=utf-8
|
180
178
|
etag:
|
181
|
-
- "\"
|
179
|
+
- "\"72b1fbf237062feb38cba92d8cd01930\""
|
182
180
|
cache-control:
|
183
181
|
- private, max-age=0, must-revalidate
|
184
182
|
content-length:
|
185
183
|
- "638"
|
186
184
|
server:
|
187
|
-
- WEBrick/1.3.1 (Ruby/1.9.2/
|
185
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
188
186
|
date:
|
189
|
-
- Thu,
|
187
|
+
- Thu, 03 Feb 2011 22:17:58 GMT
|
190
188
|
connection:
|
191
189
|
- close
|
192
190
|
set-cookie:
|
193
|
-
- _recurly_session=
|
191
|
+
- _recurly_session=9b66ed7036209b06f77131dfe6ac8e47; domain=.recurly.local; path=/; HttpOnly
|
194
192
|
body: |
|
195
193
|
<?xml version="1.0" encoding="UTF-8"?>
|
196
194
|
<billing_info>
|
197
|
-
<account_code>billing-find-
|
195
|
+
<account_code>billing-find-1296690812</account_code>
|
198
196
|
<first_name>Verena</first_name>
|
199
197
|
<last_name>Test</last_name>
|
200
198
|
<address1>123 Test St</address1>
|
@@ -209,27 +207,27 @@
|
|
209
207
|
<credit_card>
|
210
208
|
<type>visa</type>
|
211
209
|
<last_four>1111</last_four>
|
212
|
-
<month type="integer">
|
210
|
+
<month type="integer">2</month>
|
213
211
|
<year type="integer">2012</year>
|
214
212
|
</credit_card>
|
215
|
-
<updated_at type="datetime">2011-
|
213
|
+
<updated_at type="datetime">2011-02-03T22:17:56Z</updated_at>
|
216
214
|
</billing_info>
|
217
215
|
|
218
216
|
http_version: "1.1"
|
219
217
|
- !ruby/struct:VCR::HTTPInteraction
|
220
218
|
request: !ruby/struct:VCR::Request
|
221
219
|
method: :get
|
222
|
-
uri: http://
|
220
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/billing-find-1296690812/billing_info.xml
|
223
221
|
body:
|
224
222
|
headers:
|
225
223
|
authorization:
|
226
|
-
- Basic
|
227
|
-
user-agent:
|
228
|
-
- Recurly Ruby Client v0.4.6
|
224
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
229
225
|
accept:
|
230
226
|
- application/xml
|
231
227
|
accept-encoding:
|
232
228
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
229
|
+
user-agent:
|
230
|
+
- Ruby
|
233
231
|
connection:
|
234
232
|
- close
|
235
233
|
response: !ruby/struct:VCR::Response
|
@@ -238,27 +236,27 @@
|
|
238
236
|
message: "OK "
|
239
237
|
headers:
|
240
238
|
x-runtime:
|
241
|
-
- "
|
239
|
+
- "87"
|
242
240
|
content-type:
|
243
241
|
- application/xml; charset=utf-8
|
244
242
|
etag:
|
245
|
-
- "\"
|
243
|
+
- "\"72b1fbf237062feb38cba92d8cd01930\""
|
246
244
|
cache-control:
|
247
245
|
- private, max-age=0, must-revalidate
|
248
246
|
content-length:
|
249
247
|
- "638"
|
250
248
|
server:
|
251
|
-
- WEBrick/1.3.1 (Ruby/1.9.2/
|
249
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
252
250
|
date:
|
253
|
-
- Thu,
|
251
|
+
- Thu, 03 Feb 2011 22:18:00 GMT
|
254
252
|
connection:
|
255
253
|
- close
|
256
254
|
set-cookie:
|
257
|
-
- _recurly_session=
|
255
|
+
- _recurly_session=3ac8a08622d7e004c979871db5ec2086; domain=.recurly.local; path=/; HttpOnly
|
258
256
|
body: |
|
259
257
|
<?xml version="1.0" encoding="UTF-8"?>
|
260
258
|
<billing_info>
|
261
|
-
<account_code>billing-find-
|
259
|
+
<account_code>billing-find-1296690812</account_code>
|
262
260
|
<first_name>Verena</first_name>
|
263
261
|
<last_name>Test</last_name>
|
264
262
|
<address1>123 Test St</address1>
|
@@ -273,10 +271,10 @@
|
|
273
271
|
<credit_card>
|
274
272
|
<type>visa</type>
|
275
273
|
<last_four>1111</last_four>
|
276
|
-
<month type="integer">
|
274
|
+
<month type="integer">2</month>
|
277
275
|
<year type="integer">2012</year>
|
278
276
|
</credit_card>
|
279
|
-
<updated_at type="datetime">2011-
|
277
|
+
<updated_at type="datetime">2011-02-03T22:17:56Z</updated_at>
|
280
278
|
</billing_info>
|
281
279
|
|
282
280
|
http_version: "1.1"
|