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
@@ -0,0 +1,55 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
|
+
method: :post
|
5
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts.xml
|
6
|
+
body: |
|
7
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
8
|
+
<account>
|
9
|
+
<account-code>account-list-num-0-1296674173</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
|
+
<accept-language type="yaml" nil="true"></accept-language>
|
15
|
+
</account>
|
16
|
+
|
17
|
+
headers:
|
18
|
+
authorization:
|
19
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
20
|
+
content-type:
|
21
|
+
- application/xml
|
22
|
+
accept:
|
23
|
+
- "*/*"
|
24
|
+
user-agent:
|
25
|
+
- Ruby
|
26
|
+
connection:
|
27
|
+
- close
|
28
|
+
response: !ruby/struct:VCR::Response
|
29
|
+
status: !ruby/struct:VCR::ResponseStatus
|
30
|
+
code: 422
|
31
|
+
message: ""
|
32
|
+
headers:
|
33
|
+
cache-control:
|
34
|
+
- no-cache
|
35
|
+
x-runtime:
|
36
|
+
- "231"
|
37
|
+
content-type:
|
38
|
+
- application/xml; charset=utf-8
|
39
|
+
content-length:
|
40
|
+
- "132"
|
41
|
+
server:
|
42
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
43
|
+
date:
|
44
|
+
- Thu, 03 Feb 2011 22:16:52 GMT
|
45
|
+
connection:
|
46
|
+
- close
|
47
|
+
set-cookie:
|
48
|
+
- _recurly_session=059de0eda578e161e399bc15211f0985; domain=.recurly.local; path=/; HttpOnly
|
49
|
+
body: |
|
50
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
51
|
+
<errors>
|
52
|
+
<error field="account_code">account code has already been taken</error>
|
53
|
+
</errors>
|
54
|
+
|
55
|
+
http_version: "1.1"
|
@@ -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>account-update-
|
9
|
+
<account-code>account-update-1296674173</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/account-update-1296674173
|
41
37
|
x-runtime:
|
42
|
-
- "
|
38
|
+
- "536"
|
43
39
|
content-type:
|
44
40
|
- application/xml; charset=utf-8
|
45
41
|
content-length:
|
46
42
|
- "583"
|
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:16:54 GMT
|
51
47
|
connection:
|
52
48
|
- close
|
53
49
|
set-cookie:
|
54
|
-
-
|
50
|
+
- account_credentials=4dede9519c2622503ee70b1f7dac15ffc1ee26dc1bc26ffdf4dfcad5d29368f271dc9b018e24724ad025b70cd2880298eb27195b4f2a1910562587472719d3e2%3A%3A; domain=.recurly.local; path=/
|
51
|
+
- ""
|
52
|
+
- _recurly_session=e4ec180344371bf896569dd2c08892ed; domain=.recurly.local; path=/; HttpOnly
|
55
53
|
body: |
|
56
54
|
<?xml version="1.0" encoding="UTF-8"?>
|
57
55
|
<account>
|
58
|
-
<id>account-update-
|
59
|
-
<account_code>account-update-
|
56
|
+
<id>account-update-1296674173</id>
|
57
|
+
<account_code>account-update-1296674173</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>8684435f0f6c4b759b9860be7555b84e</hosted_login_token>
|
66
|
+
<created_at type="datetime">2011-02-03T22:16:54Z</created_at>
|
69
67
|
<state>active</state>
|
70
68
|
</account>
|
71
69
|
|
@@ -73,17 +71,17 @@
|
|
73
71
|
- !ruby/struct:VCR::HTTPInteraction
|
74
72
|
request: !ruby/struct:VCR::Request
|
75
73
|
method: :get
|
76
|
-
uri: http://
|
74
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/account-update-1296674173.xml
|
77
75
|
body:
|
78
76
|
headers:
|
79
77
|
authorization:
|
80
|
-
- Basic
|
81
|
-
user-agent:
|
82
|
-
- Recurly Ruby Client v0.4.6
|
78
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
83
79
|
accept:
|
84
80
|
- application/xml
|
85
81
|
accept-encoding:
|
86
82
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
83
|
+
user-agent:
|
84
|
+
- Ruby
|
87
85
|
connection:
|
88
86
|
- close
|
89
87
|
response: !ruby/struct:VCR::Response
|
@@ -92,28 +90,28 @@
|
|
92
90
|
message: "OK "
|
93
91
|
headers:
|
94
92
|
x-runtime:
|
95
|
-
- "
|
93
|
+
- "172"
|
96
94
|
content-type:
|
97
95
|
- application/xml; charset=utf-8
|
98
96
|
etag:
|
99
|
-
- "\"
|
97
|
+
- "\"5160ee9dd2cbcec96e15bc05ab49eb7b\""
|
100
98
|
cache-control:
|
101
99
|
- private, max-age=0, must-revalidate
|
102
100
|
content-length:
|
103
101
|
- "583"
|
104
102
|
server:
|
105
|
-
- WEBrick/1.3.1 (Ruby/1.9.2/
|
103
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
106
104
|
date:
|
107
|
-
- Thu,
|
105
|
+
- Thu, 03 Feb 2011 22:16:56 GMT
|
108
106
|
connection:
|
109
107
|
- close
|
110
108
|
set-cookie:
|
111
|
-
- _recurly_session=
|
109
|
+
- _recurly_session=ec4be8a0c89bdae3619cdf65c129001c; domain=.recurly.local; path=/; HttpOnly
|
112
110
|
body: |
|
113
111
|
<?xml version="1.0" encoding="UTF-8"?>
|
114
112
|
<account>
|
115
|
-
<id>account-update-
|
116
|
-
<account_code>account-update-
|
113
|
+
<id>account-update-1296674173</id>
|
114
|
+
<account_code>account-update-1296674173</account_code>
|
117
115
|
<username></username>
|
118
116
|
<email>verena@test.com</email>
|
119
117
|
<first_name>Verena</first_name>
|
@@ -121,8 +119,8 @@
|
|
121
119
|
<company_name>Recurly Ruby Gem</company_name>
|
122
120
|
<balance_in_cents type="integer">0</balance_in_cents>
|
123
121
|
<closed type="boolean">false</closed>
|
124
|
-
<hosted_login_token>
|
125
|
-
<created_at type="datetime">2011-
|
122
|
+
<hosted_login_token>8684435f0f6c4b759b9860be7555b84e</hosted_login_token>
|
123
|
+
<created_at type="datetime">2011-02-03T22:16:54Z</created_at>
|
126
124
|
<state>active</state>
|
127
125
|
</account>
|
128
126
|
|
@@ -130,12 +128,12 @@
|
|
130
128
|
- !ruby/struct:VCR::HTTPInteraction
|
131
129
|
request: !ruby/struct:VCR::Request
|
132
130
|
method: :put
|
133
|
-
uri: http://
|
131
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/account-update-1296674173.xml
|
134
132
|
body: |
|
135
133
|
<?xml version="1.0" encoding="UTF-8"?>
|
136
134
|
<account>
|
137
|
-
<id>account-update-
|
138
|
-
<account-code>account-update-
|
135
|
+
<id>account-update-1296674173</id>
|
136
|
+
<account-code>account-update-1296674173</account-code>
|
139
137
|
<username type="yaml" nil="true"></username>
|
140
138
|
<email>verena@test.com</email>
|
141
139
|
<first-name>Verena</first-name>
|
@@ -143,25 +141,21 @@
|
|
143
141
|
<company-name>Recurly Ruby Gem -- Update</company-name>
|
144
142
|
<balance-in-cents type="integer">0</balance-in-cents>
|
145
143
|
<closed type="boolean">false</closed>
|
146
|
-
<hosted-login-token>
|
147
|
-
<created-at type="datetime">2011-
|
144
|
+
<hosted-login-token>8684435f0f6c4b759b9860be7555b84e</hosted-login-token>
|
145
|
+
<created-at type="datetime">2011-02-03T22:16:54Z</created-at>
|
148
146
|
<state>active</state>
|
149
|
-
<billing-info>
|
150
|
-
<credit-card>
|
151
|
-
</credit-card>
|
152
|
-
</billing-info>
|
153
147
|
<accept-language type="yaml" nil="true"></accept-language>
|
154
148
|
</account>
|
155
149
|
|
156
150
|
headers:
|
157
151
|
authorization:
|
158
|
-
- Basic
|
159
|
-
user-agent:
|
160
|
-
- Recurly Ruby Client v0.4.6
|
152
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
161
153
|
content-type:
|
162
154
|
- application/xml
|
163
155
|
accept:
|
164
156
|
- "*/*"
|
157
|
+
user-agent:
|
158
|
+
- Ruby
|
165
159
|
connection:
|
166
160
|
- close
|
167
161
|
response: !ruby/struct:VCR::Response
|
@@ -170,28 +164,28 @@
|
|
170
164
|
message: "OK "
|
171
165
|
headers:
|
172
166
|
x-runtime:
|
173
|
-
- "
|
167
|
+
- "318"
|
174
168
|
content-type:
|
175
169
|
- application/xml; charset=utf-8
|
176
170
|
etag:
|
177
|
-
- "\"
|
171
|
+
- "\"679edca58ee6f6f8a43456f7cb298f94\""
|
178
172
|
cache-control:
|
179
173
|
- private, max-age=0, must-revalidate
|
180
174
|
content-length:
|
181
175
|
- "600"
|
182
176
|
server:
|
183
|
-
- WEBrick/1.3.1 (Ruby/1.9.2/
|
177
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
184
178
|
date:
|
185
|
-
- Thu,
|
179
|
+
- Thu, 03 Feb 2011 22:16:57 GMT
|
186
180
|
connection:
|
187
181
|
- close
|
188
182
|
set-cookie:
|
189
|
-
- _recurly_session=
|
183
|
+
- _recurly_session=e35d8243afb00fde2075d4a6528c8f6e; domain=.recurly.local; path=/; HttpOnly
|
190
184
|
body: |
|
191
185
|
<?xml version="1.0" encoding="UTF-8"?>
|
192
186
|
<account>
|
193
|
-
<id>account-update-
|
194
|
-
<account_code>account-update-
|
187
|
+
<id>account-update-1296674173</id>
|
188
|
+
<account_code>account-update-1296674173</account_code>
|
195
189
|
<username></username>
|
196
190
|
<email>verena@test.com</email>
|
197
191
|
<first_name>Verena</first_name>
|
@@ -199,8 +193,8 @@
|
|
199
193
|
<company_name>Recurly Ruby Gem -- Update</company_name>
|
200
194
|
<balance_in_cents type="integer">0</balance_in_cents>
|
201
195
|
<closed type="boolean">false</closed>
|
202
|
-
<hosted_login_token>
|
203
|
-
<created_at type="datetime">2011-
|
196
|
+
<hosted_login_token>8684435f0f6c4b759b9860be7555b84e</hosted_login_token>
|
197
|
+
<created_at type="datetime">2011-02-03T22:16:54Z</created_at>
|
204
198
|
<state>active</state>
|
205
199
|
</account>
|
206
200
|
|
@@ -208,17 +202,17 @@
|
|
208
202
|
- !ruby/struct:VCR::HTTPInteraction
|
209
203
|
request: !ruby/struct:VCR::Request
|
210
204
|
method: :get
|
211
|
-
uri: http://
|
205
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/account-update-1296674173.xml
|
212
206
|
body:
|
213
207
|
headers:
|
214
208
|
authorization:
|
215
|
-
- Basic
|
216
|
-
user-agent:
|
217
|
-
- Recurly Ruby Client v0.4.6
|
209
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
218
210
|
accept:
|
219
211
|
- application/xml
|
220
212
|
accept-encoding:
|
221
213
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
214
|
+
user-agent:
|
215
|
+
- Ruby
|
222
216
|
connection:
|
223
217
|
- close
|
224
218
|
response: !ruby/struct:VCR::Response
|
@@ -227,28 +221,28 @@
|
|
227
221
|
message: "OK "
|
228
222
|
headers:
|
229
223
|
x-runtime:
|
230
|
-
- "
|
224
|
+
- "178"
|
231
225
|
content-type:
|
232
226
|
- application/xml; charset=utf-8
|
233
227
|
etag:
|
234
|
-
- "\"
|
228
|
+
- "\"679edca58ee6f6f8a43456f7cb298f94\""
|
235
229
|
cache-control:
|
236
230
|
- private, max-age=0, must-revalidate
|
237
231
|
content-length:
|
238
232
|
- "600"
|
239
233
|
server:
|
240
|
-
- WEBrick/1.3.1 (Ruby/1.9.2/
|
234
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
241
235
|
date:
|
242
|
-
- Thu,
|
236
|
+
- Thu, 03 Feb 2011 22:16:59 GMT
|
243
237
|
connection:
|
244
238
|
- close
|
245
239
|
set-cookie:
|
246
|
-
- _recurly_session=
|
240
|
+
- _recurly_session=3df2421545148921ffc3c3703df2ddf9; domain=.recurly.local; path=/; HttpOnly
|
247
241
|
body: |
|
248
242
|
<?xml version="1.0" encoding="UTF-8"?>
|
249
243
|
<account>
|
250
|
-
<id>account-update-
|
251
|
-
<account_code>account-update-
|
244
|
+
<id>account-update-1296674173</id>
|
245
|
+
<account_code>account-update-1296674173</account_code>
|
252
246
|
<username></username>
|
253
247
|
<email>verena@test.com</email>
|
254
248
|
<first_name>Verena</first_name>
|
@@ -256,8 +250,8 @@
|
|
256
250
|
<company_name>Recurly Ruby Gem -- Update</company_name>
|
257
251
|
<balance_in_cents type="integer">0</balance_in_cents>
|
258
252
|
<closed type="boolean">false</closed>
|
259
|
-
<hosted_login_token>
|
260
|
-
<created_at type="datetime">2011-
|
253
|
+
<hosted_login_token>8684435f0f6c4b759b9860be7555b84e</hosted_login_token>
|
254
|
+
<created_at type="datetime">2011-02-03T22:16:54Z</created_at>
|
261
255
|
<state>active</state>
|
262
256
|
</account>
|
263
257
|
|
@@ -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-create-
|
9
|
+
<account-code>billing-create-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-create-1296690812
|
41
37
|
x-runtime:
|
42
|
-
- "
|
38
|
+
- "567"
|
43
39
|
content-type:
|
44
40
|
- application/xml; charset=utf-8
|
45
41
|
content-length:
|
46
42
|
- "583"
|
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:35 GMT
|
51
47
|
connection:
|
52
48
|
- close
|
53
49
|
set-cookie:
|
54
|
-
-
|
50
|
+
- account_credentials=77dcf8ab494a55d7b3636364e614969e304c8e2997790d887bf7ca34815b2112fa69d41325f3d59c7a8242fedc00d1a6ea3c4a2f17066d21d97573685c34766c%3A%3A; domain=.recurly.local; path=/
|
51
|
+
- ""
|
52
|
+
- _recurly_session=f16a0de60d6c3ea515d2f891bd1f4238; domain=.recurly.local; path=/; HttpOnly
|
55
53
|
body: |
|
56
54
|
<?xml version="1.0" encoding="UTF-8"?>
|
57
55
|
<account>
|
58
|
-
<id>billing-create-
|
59
|
-
<account_code>billing-create-
|
56
|
+
<id>billing-create-1296690812</id>
|
57
|
+
<account_code>billing-create-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>75ccfa5806c24a72a9c2903d3d388704</hosted_login_token>
|
66
|
+
<created_at type="datetime">2011-02-03T22:17:35Z</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-create-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,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
|
+
- "1948"
|
113
111
|
content-type:
|
114
112
|
- application/xml; charset=utf-8
|
115
113
|
etag:
|
116
|
-
- "\"
|
114
|
+
- "\"10ff1483237e6a5ba6858791ad9022f5\""
|
117
115
|
cache-control:
|
118
116
|
- private, max-age=0, must-revalidate
|
119
117
|
content-length:
|
120
118
|
- "640"
|
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:17:38 GMT
|
125
123
|
connection:
|
126
124
|
- close
|
127
125
|
set-cookie:
|
128
|
-
- _recurly_session=
|
126
|
+
- _recurly_session=7f6ddd47fdecd10f30b736a022f82099; 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-create-
|
130
|
+
<account_code>billing-create-1296690812</account_code>
|
133
131
|
<first_name>Verena</first_name>
|
134
132
|
<last_name>Test</last_name>
|
135
133
|
<address1>123 Test St</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:17:38Z</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-create-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
|
+
- "190"
|
177
175
|
content-type:
|
178
176
|
- application/xml; charset=utf-8
|
179
177
|
etag:
|
180
|
-
- "\"
|
178
|
+
- "\"10ff1483237e6a5ba6858791ad9022f5\""
|
181
179
|
cache-control:
|
182
180
|
- private, max-age=0, must-revalidate
|
183
181
|
content-length:
|
184
182
|
- "640"
|
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:17:40 GMT
|
189
187
|
connection:
|
190
188
|
- close
|
191
189
|
set-cookie:
|
192
|
-
- _recurly_session=
|
190
|
+
- _recurly_session=2c73c7e77fc44905c47ddb066a2f0baa; 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-create-
|
194
|
+
<account_code>billing-create-1296690812</account_code>
|
197
195
|
<first_name>Verena</first_name>
|
198
196
|
<last_name>Test</last_name>
|
199
197
|
<address1>123 Test St</address1>
|
@@ -208,10 +206,10 @@
|
|
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:17:38Z</updated_at>
|
215
213
|
</billing_info>
|
216
214
|
|
217
215
|
http_version: "1.1"
|