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-update-
|
9
|
+
<account-code>billing-update-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-update-1296690812
|
41
37
|
x-runtime:
|
42
|
-
- "
|
38
|
+
- "571"
|
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:42 GMT
|
51
47
|
connection:
|
52
48
|
- close
|
53
49
|
set-cookie:
|
54
|
-
-
|
50
|
+
- account_credentials=ca1bc2a7db5c0adebc913fcceaf5067325526889751bb9f5ae90130b62e808a7b4d28e7936863967610fdf0c47a7667aa9202de29ff2243f5f0f88b1b8fa238b%3A%3A; domain=.recurly.local; path=/
|
51
|
+
- ""
|
52
|
+
- _recurly_session=537b709b2fbbf7c87376e456b05831f3; domain=.recurly.local; path=/; HttpOnly
|
55
53
|
body: |
|
56
54
|
<?xml version="1.0" encoding="UTF-8"?>
|
57
55
|
<account>
|
58
|
-
<id>billing-update-
|
59
|
-
<account_code>billing-update-
|
56
|
+
<id>billing-update-1296690812</id>
|
57
|
+
<account_code>billing-update-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>ddf65b6b20e94a99ae41c128b4523e34</hosted_login_token>
|
66
|
+
<created_at type="datetime">2011-02-03T22:17:42Z</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-update-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-update-
|
89
|
+
<account-code>billing-update-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
|
+
- "1559"
|
114
112
|
content-type:
|
115
113
|
- application/xml; charset=utf-8
|
116
114
|
etag:
|
117
|
-
- "\"
|
115
|
+
- "\"b5499bcd45b7f6f045575a212799805c\""
|
118
116
|
cache-control:
|
119
117
|
- private, max-age=0, must-revalidate
|
120
118
|
content-length:
|
121
119
|
- "640"
|
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:45 GMT
|
126
124
|
connection:
|
127
125
|
- close
|
128
126
|
set-cookie:
|
129
|
-
- _recurly_session=
|
127
|
+
- _recurly_session=5e91140311ec8c5366449955bba2e1c7; 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-update-
|
131
|
+
<account_code>billing-update-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,22 +143,20 @@
|
|
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:45Z</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: :put
|
158
|
-
uri: http://
|
156
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/billing-update-1296690812/billing_info.xml
|
159
157
|
body: |
|
160
158
|
<?xml version="1.0" encoding="UTF-8"?>
|
161
159
|
<billing-info>
|
162
|
-
<first-name>Verena</first-name>
|
163
|
-
<last-name>Test</last-name>
|
164
160
|
<address1>1st Ave South, Apt 5001</address1>
|
165
161
|
<city>San Francisco</city>
|
166
162
|
<state>CA</state>
|
@@ -169,20 +165,22 @@
|
|
169
165
|
<credit-card>
|
170
166
|
<number>4111111111111111</number>
|
171
167
|
<year type="integer">2012</year>
|
172
|
-
<month type="integer">
|
168
|
+
<month type="integer">2</month>
|
173
169
|
<verification-value>123</verification-value>
|
174
170
|
</credit-card>
|
171
|
+
<first-name>Verena</first-name>
|
172
|
+
<last-name>Test</last-name>
|
175
173
|
</billing-info>
|
176
174
|
|
177
175
|
headers:
|
178
176
|
authorization:
|
179
|
-
- Basic
|
180
|
-
user-agent:
|
181
|
-
- Recurly Ruby Client v0.4.6
|
177
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
182
178
|
content-type:
|
183
179
|
- application/xml
|
184
180
|
accept:
|
185
181
|
- "*/*"
|
182
|
+
user-agent:
|
183
|
+
- Ruby
|
186
184
|
connection:
|
187
185
|
- close
|
188
186
|
response: !ruby/struct:VCR::Response
|
@@ -191,27 +189,27 @@
|
|
191
189
|
message: "OK "
|
192
190
|
headers:
|
193
191
|
x-runtime:
|
194
|
-
- "
|
192
|
+
- "1979"
|
195
193
|
content-type:
|
196
194
|
- application/xml; charset=utf-8
|
197
195
|
etag:
|
198
|
-
- "\"
|
196
|
+
- "\"b5da767b374f03be98a084a190d101cc\""
|
199
197
|
cache-control:
|
200
198
|
- private, max-age=0, must-revalidate
|
201
199
|
content-length:
|
202
200
|
- "652"
|
203
201
|
server:
|
204
|
-
- WEBrick/1.3.1 (Ruby/1.9.2/
|
202
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
205
203
|
date:
|
206
|
-
- Thu,
|
204
|
+
- Thu, 03 Feb 2011 22:17:49 GMT
|
207
205
|
connection:
|
208
206
|
- close
|
209
207
|
set-cookie:
|
210
|
-
- _recurly_session=
|
208
|
+
- _recurly_session=b1185c29f260f871d91f9a4fadd8f0f2; domain=.recurly.local; path=/; HttpOnly
|
211
209
|
body: |
|
212
210
|
<?xml version="1.0" encoding="UTF-8"?>
|
213
211
|
<billing_info>
|
214
|
-
<account_code>billing-update-
|
212
|
+
<account_code>billing-update-1296690812</account_code>
|
215
213
|
<first_name>Verena</first_name>
|
216
214
|
<last_name>Test</last_name>
|
217
215
|
<address1>1st Ave South, Apt 5001</address1>
|
@@ -226,27 +224,27 @@
|
|
226
224
|
<credit_card>
|
227
225
|
<type>visa</type>
|
228
226
|
<last_four>1111</last_four>
|
229
|
-
<month type="integer">
|
227
|
+
<month type="integer">2</month>
|
230
228
|
<year type="integer">2012</year>
|
231
229
|
</credit_card>
|
232
|
-
<updated_at type="datetime">2011-
|
230
|
+
<updated_at type="datetime">2011-02-03T22:17:49Z</updated_at>
|
233
231
|
</billing_info>
|
234
232
|
|
235
233
|
http_version: "1.1"
|
236
234
|
- !ruby/struct:VCR::HTTPInteraction
|
237
235
|
request: !ruby/struct:VCR::Request
|
238
236
|
method: :get
|
239
|
-
uri: http://
|
237
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/billing-update-1296690812/billing_info.xml
|
240
238
|
body:
|
241
239
|
headers:
|
242
240
|
authorization:
|
243
|
-
- Basic
|
244
|
-
user-agent:
|
245
|
-
- Recurly Ruby Client v0.4.6
|
241
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
246
242
|
accept:
|
247
243
|
- application/xml
|
248
244
|
accept-encoding:
|
249
245
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
246
|
+
user-agent:
|
247
|
+
- Ruby
|
250
248
|
connection:
|
251
249
|
- close
|
252
250
|
response: !ruby/struct:VCR::Response
|
@@ -255,27 +253,27 @@
|
|
255
253
|
message: "OK "
|
256
254
|
headers:
|
257
255
|
x-runtime:
|
258
|
-
- "
|
256
|
+
- "194"
|
259
257
|
content-type:
|
260
258
|
- application/xml; charset=utf-8
|
261
259
|
etag:
|
262
|
-
- "\"
|
260
|
+
- "\"b5da767b374f03be98a084a190d101cc\""
|
263
261
|
cache-control:
|
264
262
|
- private, max-age=0, must-revalidate
|
265
263
|
content-length:
|
266
264
|
- "652"
|
267
265
|
server:
|
268
|
-
- WEBrick/1.3.1 (Ruby/1.9.2/
|
266
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
269
267
|
date:
|
270
|
-
- Thu,
|
268
|
+
- Thu, 03 Feb 2011 22:17:51 GMT
|
271
269
|
connection:
|
272
270
|
- close
|
273
271
|
set-cookie:
|
274
|
-
- _recurly_session=
|
272
|
+
- _recurly_session=21ced1f6e0594169c7c507fe325d5735; domain=.recurly.local; path=/; HttpOnly
|
275
273
|
body: |
|
276
274
|
<?xml version="1.0" encoding="UTF-8"?>
|
277
275
|
<billing_info>
|
278
|
-
<account_code>billing-update-
|
276
|
+
<account_code>billing-update-1296690812</account_code>
|
279
277
|
<first_name>Verena</first_name>
|
280
278
|
<last_name>Test</last_name>
|
281
279
|
<address1>1st Ave South, Apt 5001</address1>
|
@@ -290,10 +288,10 @@
|
|
290
288
|
<credit_card>
|
291
289
|
<type>visa</type>
|
292
290
|
<last_four>1111</last_four>
|
293
|
-
<month type="integer">
|
291
|
+
<month type="integer">2</month>
|
294
292
|
<year type="integer">2012</year>
|
295
293
|
</credit_card>
|
296
|
-
<updated_at type="datetime">2011-
|
294
|
+
<updated_at type="datetime">2011-02-03T22:17:49Z</updated_at>
|
297
295
|
</billing_info>
|
298
296
|
|
299
297
|
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>charge-create-
|
9
|
+
<account-code>charge-create-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/charge-create-1296674173
|
41
37
|
x-runtime:
|
42
|
-
- "
|
38
|
+
- "617"
|
43
39
|
content-type:
|
44
40
|
- application/xml; charset=utf-8
|
45
41
|
content-length:
|
46
42
|
- "581"
|
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:52 GMT
|
51
47
|
connection:
|
52
48
|
- close
|
53
49
|
set-cookie:
|
54
|
-
-
|
50
|
+
- account_credentials=ac2d3ff26a5cc9fbce9ab7db67e65967f2a39283fa32485f57d48e13e6ef18c57f1bbf3011f920f70e7812006be532b30449ed01321226803b75a439107324ab%3A%3A; domain=.recurly.local; path=/
|
51
|
+
- ""
|
52
|
+
- _recurly_session=113f5be12cb23c0fd167532d10b249a9; domain=.recurly.local; path=/; HttpOnly
|
55
53
|
body: |
|
56
54
|
<?xml version="1.0" encoding="UTF-8"?>
|
57
55
|
<account>
|
58
|
-
<id>charge-create-
|
59
|
-
<account_code>charge-create-
|
56
|
+
<id>charge-create-1296674173</id>
|
57
|
+
<account_code>charge-create-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>27ecd1988c45454083103fd7b342eaa1</hosted_login_token>
|
66
|
+
<created_at type="datetime">2011-02-03T22:18:52Z</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/charge-create-1296674173/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>charge-create-
|
89
|
+
<account-code>charge-create-1296674173</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
|
+
- "1617"
|
114
112
|
content-type:
|
115
113
|
- application/xml; charset=utf-8
|
116
114
|
etag:
|
117
|
-
- "\"
|
115
|
+
- "\"071e9bdb8fbbd9648ed0d753efae29f6\""
|
118
116
|
cache-control:
|
119
117
|
- private, max-age=0, must-revalidate
|
120
118
|
content-length:
|
121
119
|
- "639"
|
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:18:55 GMT
|
126
124
|
connection:
|
127
125
|
- close
|
128
126
|
set-cookie:
|
129
|
-
- _recurly_session=
|
127
|
+
- _recurly_session=b11382935805a828d264b7aa8220f6a4; domain=.recurly.local; path=/; HttpOnly
|
130
128
|
body: |
|
131
129
|
<?xml version="1.0" encoding="UTF-8"?>
|
132
130
|
<billing_info>
|
133
|
-
<account_code>charge-create-
|
131
|
+
<account_code>charge-create-1296674173</account_code>
|
134
132
|
<first_name>Verena</first_name>
|
135
133
|
<last_name>Test</last_name>
|
136
134
|
<address1>123 Test St</address1>
|
@@ -145,17 +143,17 @@
|
|
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:18:55Z</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: :post
|
158
|
-
uri: http://
|
156
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/charge-create-1296674173/charges.xml
|
159
157
|
body: |
|
160
158
|
<?xml version="1.0" encoding="UTF-8"?>
|
161
159
|
<charge>
|
@@ -165,13 +163,13 @@
|
|
165
163
|
|
166
164
|
headers:
|
167
165
|
authorization:
|
168
|
-
- Basic
|
169
|
-
user-agent:
|
170
|
-
- Recurly Ruby Client v0.4.6
|
166
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
171
167
|
content-type:
|
172
168
|
- application/xml
|
173
169
|
accept:
|
174
170
|
- "*/*"
|
171
|
+
user-agent:
|
172
|
+
- Ruby
|
175
173
|
connection:
|
176
174
|
- close
|
177
175
|
response: !ruby/struct:VCR::Response
|
@@ -182,49 +180,47 @@
|
|
182
180
|
cache-control:
|
183
181
|
- no-cache
|
184
182
|
x-runtime:
|
185
|
-
- "
|
183
|
+
- "529"
|
186
184
|
content-type:
|
187
185
|
- application/xml; charset=utf-8
|
188
186
|
content-length:
|
189
|
-
- "
|
187
|
+
- "524"
|
190
188
|
server:
|
191
|
-
- WEBrick/1.3.1 (Ruby/1.9.2/
|
189
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
192
190
|
date:
|
193
|
-
- Thu,
|
191
|
+
- Thu, 03 Feb 2011 22:18:57 GMT
|
194
192
|
connection:
|
195
193
|
- close
|
196
194
|
set-cookie:
|
197
|
-
- _recurly_session=
|
195
|
+
- _recurly_session=4815ded9fb580deec6d468c20b2d1137; domain=.recurly.local; path=/; HttpOnly
|
198
196
|
body: |
|
199
197
|
<?xml version="1.0" encoding="UTF-8"?>
|
200
198
|
<charge type="charge">
|
201
|
-
<id>
|
202
|
-
<account_code>charge-create-
|
203
|
-
<quantity type="integer">1</quantity>
|
204
|
-
<unit_amount_in_cents type="integer">250</unit_amount_in_cents>
|
199
|
+
<id>d6a8833fc6d144ccb2f35bf55d29df6c</id>
|
200
|
+
<account_code>charge-create-1296674173</account_code>
|
205
201
|
<amount_in_cents type="integer">250</amount_in_cents>
|
206
|
-
<start_date type="datetime">2011-
|
202
|
+
<start_date type="datetime">2011-02-03T22:18:57Z</start_date>
|
207
203
|
<end_date nil="true" type="datetime"></end_date>
|
208
204
|
<invoice_number nil="true" type="integer"></invoice_number>
|
209
205
|
<description>virtual cow maintence fee</description>
|
210
|
-
<created_at type="datetime">2011-
|
206
|
+
<created_at type="datetime">2011-02-03T22:18:57Z</created_at>
|
211
207
|
</charge>
|
212
208
|
|
213
209
|
http_version: "1.1"
|
214
210
|
- !ruby/struct:VCR::HTTPInteraction
|
215
211
|
request: !ruby/struct:VCR::Request
|
216
212
|
method: :get
|
217
|
-
uri: http://
|
213
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/charge-create-1296674173/charges/d6a8833fc6d144ccb2f35bf55d29df6c.xml
|
218
214
|
body:
|
219
215
|
headers:
|
220
216
|
authorization:
|
221
|
-
- Basic
|
222
|
-
user-agent:
|
223
|
-
- Recurly Ruby Client v0.4.6
|
217
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
224
218
|
accept:
|
225
219
|
- application/xml
|
226
220
|
accept-encoding:
|
227
221
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
222
|
+
user-agent:
|
223
|
+
- Ruby
|
228
224
|
connection:
|
229
225
|
- close
|
230
226
|
response: !ruby/struct:VCR::Response
|
@@ -237,32 +233,30 @@
|
|
237
233
|
content-type:
|
238
234
|
- application/xml; charset=utf-8
|
239
235
|
etag:
|
240
|
-
- "\"
|
236
|
+
- "\"6fae388c9450f5a26c1bee90a16cafc8\""
|
241
237
|
cache-control:
|
242
238
|
- private, max-age=0, must-revalidate
|
243
239
|
content-length:
|
244
|
-
- "
|
240
|
+
- "524"
|
245
241
|
server:
|
246
|
-
- WEBrick/1.3.1 (Ruby/1.9.2/
|
242
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
247
243
|
date:
|
248
|
-
- Thu,
|
244
|
+
- Thu, 03 Feb 2011 22:18:59 GMT
|
249
245
|
connection:
|
250
246
|
- close
|
251
247
|
set-cookie:
|
252
|
-
- _recurly_session=
|
248
|
+
- _recurly_session=f7c2a16179c7e89abb4bb839c1fd30c8; domain=.recurly.local; path=/; HttpOnly
|
253
249
|
body: |
|
254
250
|
<?xml version="1.0" encoding="UTF-8"?>
|
255
251
|
<charge type="charge">
|
256
|
-
<id>
|
257
|
-
<account_code>charge-create-
|
258
|
-
<quantity type="integer">1</quantity>
|
259
|
-
<unit_amount_in_cents type="integer">250</unit_amount_in_cents>
|
252
|
+
<id>d6a8833fc6d144ccb2f35bf55d29df6c</id>
|
253
|
+
<account_code>charge-create-1296674173</account_code>
|
260
254
|
<amount_in_cents type="integer">250</amount_in_cents>
|
261
|
-
<start_date type="datetime">2011-
|
255
|
+
<start_date type="datetime">2011-02-03T22:18:57Z</start_date>
|
262
256
|
<end_date nil="true" type="datetime"></end_date>
|
263
257
|
<invoice_number nil="true" type="integer"></invoice_number>
|
264
258
|
<description>virtual cow maintence fee</description>
|
265
|
-
<created_at type="datetime">2011-
|
259
|
+
<created_at type="datetime">2011-02-03T22:18:57Z</created_at>
|
266
260
|
</charge>
|
267
261
|
|
268
262
|
http_version: "1.1"
|