recurly 0.4.8 → 0.4.10
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 +2 -2
- data/lib/recurly.rb +2 -1
- data/lib/recurly/account.rb +2 -2
- data/lib/recurly/base.rb +30 -12
- data/lib/recurly/billing_info.rb +2 -2
- data/lib/recurly/exceptions.rb +13 -0
- data/lib/recurly/plan.rb +1 -1
- data/lib/recurly/subscription.rb +2 -2
- data/lib/recurly/transaction.rb +2 -2
- data/lib/recurly/transparent.rb +1 -1
- data/lib/recurly/verification.rb +77 -0
- data/lib/recurly/version.rb +1 -1
- data/spec/config/recurly.yml +4 -4
- data/spec/integration/account_spec.rb +12 -0
- data/spec/integration/billing_info_spec.rb +2 -2
- data/spec/integration/charge_spec.rb +0 -1
- data/spec/integration/plan_spec.rb +2 -2
- data/spec/support/vcr.rb +2 -2
- data/spec/unit/verification_spec.rb +76 -0
- data/spec/vcr/account/accept-language-account/1313708721.yml +39 -0
- data/spec/vcr/account/close/1313708721.yml +104 -0
- data/spec/vcr/account/create-blank/1313708721.yml +33 -0
- data/spec/vcr/account/create-duplicate/1313708721.yml +69 -0
- data/spec/vcr/account/create-min/1313708721.yml +38 -0
- data/spec/vcr/account/create/1313708721.yml +39 -0
- data/spec/vcr/account/find/1313708721.yml +107 -0
- data/spec/vcr/account/list/1313708721.yml +878 -0
- data/spec/vcr/account/update/1313708721.yml +158 -0
- data/spec/vcr/billing/create/1313708721.yml +118 -0
- data/spec/vcr/billing/destroy/1313708721.yml +177 -0
- data/spec/vcr/billing/errors/1313708721.yml +71 -0
- data/spec/vcr/billing/find/1313708721.yml +156 -0
- data/spec/vcr/billing/update/1313708721.yml +159 -0
- data/spec/vcr/charge/create/1313708721.yml +153 -0
- data/spec/vcr/charge/delete-uninvoiced/1313708721.yml +206 -0
- data/spec/vcr/charge/list-all/1313708721.yml +198 -0
- data/spec/vcr/charge/list-invoiced/1313708721.yml +294 -0
- data/spec/vcr/charge/list-pending/1313708721.yml +200 -0
- data/spec/vcr/charge/lookup/1313708721.yml +112 -0
- data/spec/vcr/coupon/create/1296774903.yml +96 -170
- data/spec/vcr/coupon/destroy/1296774903.yml +114 -190
- data/spec/vcr/credit/create/1313708090.yml +112 -0
- data/spec/vcr/credit/delete/1313708090.yml +171 -0
- data/spec/vcr/credit/list/1313708090.yml +198 -0
- data/spec/vcr/credit/lookup/1313708090.yml +112 -0
- data/spec/vcr/invoice/create-no-charges/1296674173.yml +100 -185
- data/spec/vcr/invoice/create/1296674173.yml +182 -328
- data/spec/vcr/invoice/list/1296674173.yml +255 -442
- data/spec/vcr/invoice/lookup/1296674173.yml +187 -331
- data/spec/vcr/plan/all.yml +210 -253
- data/spec/vcr/plan/find.yml +115 -187
- data/spec/vcr/plan/update.yml +105 -187
- data/spec/vcr/subscription/addons/add/1296674173.yml +269 -212
- data/spec/vcr/subscription/addons/create/1296674173.yml +172 -212
- data/spec/vcr/subscription/addons/remove/1296674173.yml +257 -212
- data/spec/vcr/subscription/cancel-with-code/1296674173.yml +271 -452
- data/spec/vcr/subscription/cancel/1296674173.yml +234 -394
- data/spec/vcr/subscription/change1/1296674173.yml +237 -402
- data/spec/vcr/subscription/change2/1296674173.yml +238 -402
- data/spec/vcr/subscription/create/1296674173.yml +123 -221
- data/spec/vcr/subscription/find/1296674173.yml +161 -279
- data/spec/vcr/subscription/reactivate/1296674173.yml +261 -431
- data/spec/vcr/subscription/refund-full/1296674173.yml +223 -373
- data/spec/vcr/subscription/refund-none/1296674173.yml +223 -373
- data/spec/vcr/subscription/refund-partial/1296674173.yml +223 -373
- data/spec/vcr/transaction/all/1311126815.yml +215 -0
- data/spec/vcr/transaction/create-no-account/1311126815.yml +51 -0
- data/spec/vcr/transaction/create-with-account/1311126815.yml +125 -0
- data/spec/vcr/transaction/list-filled/1311126815.yml +349 -0
- data/spec/vcr/transaction/list-initial/1311126815.yml +123 -0
- data/spec/vcr/transaction/lookup/1311126815.yml +335 -0
- data/spec/vcr/transaction/refund/1311126815.yml +163 -0
- data/spec/vcr/transaction/void/1311126815.yml +215 -0
- data/spec/vcr/transparent/post-url/1311239470.yml +76 -0
- metadata +207 -154
- data/spec/vcr/account/accept-language-account/1296674173.yml +0 -70
- data/spec/vcr/account/close/1296674173.yml +0 -164
- data/spec/vcr/account/create-blank/1296674173.yml +0 -52
- data/spec/vcr/account/create-duplicate/1296674173.yml +0 -116
- data/spec/vcr/account/create-min/1296674173.yml +0 -66
- data/spec/vcr/account/create/1296674173.yml +0 -70
- data/spec/vcr/account/find/1296674173.yml +0 -169
- data/spec/vcr/account/list/1296674173.yml +0 -55
- data/spec/vcr/account/update/1296674173.yml +0 -258
- data/spec/vcr/billing/create/1296690812.yml +0 -215
- data/spec/vcr/billing/destroy/1296690812.yml +0 -294
- data/spec/vcr/billing/find/1296690812.yml +0 -280
- data/spec/vcr/billing/update/1296690812.yml +0 -297
- data/spec/vcr/charge/create/1296674173.yml +0 -262
- data/spec/vcr/charge/delete-uninvoiced/1296674173.yml +0 -307
- data/spec/vcr/charge/list-all/1296674173.yml +0 -316
- data/spec/vcr/charge/list-invoiced/1296674173.yml +0 -468
- data/spec/vcr/charge/list-pending/1296674173.yml +0 -316
- data/spec/vcr/charge/lookup/1296674173.yml +0 -180
- data/spec/vcr/coupon/create/1296688818.yml +0 -183
- data/spec/vcr/coupon/destroy/1296688818.yml +0 -207
- data/spec/vcr/credit/create/1296674173.yml +0 -121
- data/spec/vcr/credit/delete/1296674173.yml +0 -121
- data/spec/vcr/credit/list/1296674173.yml +0 -121
- data/spec/vcr/credit/lookup/1296674173.yml +0 -121
- data/spec/vcr/plan/delete/1296674173.yml +0 -225
- data/spec/vcr/transaction/all/1296674173.yml +0 -389
- data/spec/vcr/transaction/create-no-account/1296674173.yml +0 -93
- data/spec/vcr/transaction/create-with-account/1296674173.yml +0 -225
- data/spec/vcr/transaction/list-filled/1296674173.yml +0 -487
- data/spec/vcr/transaction/list-initial/1296674173.yml +0 -217
- data/spec/vcr/transaction/lookup/1296674173.yml +0 -563
- data/spec/vcr/transaction/refund/1296674173.yml +0 -287
- data/spec/vcr/transaction/void/1296674173.yml +0 -352
- 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
@@ -1,316 +0,0 @@
|
|
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>charge-list-pending-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: 201
|
31
|
-
message: "Created "
|
32
|
-
headers:
|
33
|
-
cache-control:
|
34
|
-
- no-cache
|
35
|
-
location:
|
36
|
-
- http://litle-test.recurly.local:3000/accounts/charge-list-pending-1296674173
|
37
|
-
x-runtime:
|
38
|
-
- "584"
|
39
|
-
content-type:
|
40
|
-
- application/xml; charset=utf-8
|
41
|
-
content-length:
|
42
|
-
- "593"
|
43
|
-
server:
|
44
|
-
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
45
|
-
date:
|
46
|
-
- Thu, 03 Feb 2011 22:18:24 GMT
|
47
|
-
connection:
|
48
|
-
- close
|
49
|
-
set-cookie:
|
50
|
-
- account_credentials=f40298b64706e5b7415cf63a5cad3dddb98a5433b8f0e71c55f7e079fb71298a9b312349110fb8faf397404bdff113e918a6fb126c8a6f78471f729fa04224c9%3A%3A; domain=.recurly.local; path=/
|
51
|
-
- ""
|
52
|
-
- _recurly_session=cff62029aa8c2e54d96d3e861c5b8adf; domain=.recurly.local; path=/; HttpOnly
|
53
|
-
body: |
|
54
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
55
|
-
<account>
|
56
|
-
<id>charge-list-pending-1296674173</id>
|
57
|
-
<account_code>charge-list-pending-1296674173</account_code>
|
58
|
-
<username></username>
|
59
|
-
<email>verena@test.com</email>
|
60
|
-
<first_name>Verena</first_name>
|
61
|
-
<last_name>Test</last_name>
|
62
|
-
<company_name>Recurly Ruby Gem</company_name>
|
63
|
-
<balance_in_cents type="integer">0</balance_in_cents>
|
64
|
-
<closed type="boolean">false</closed>
|
65
|
-
<hosted_login_token>f9a382cb40674a01a661fefdaef06446</hosted_login_token>
|
66
|
-
<created_at type="datetime">2011-02-03T22:18:24Z</created_at>
|
67
|
-
<state>active</state>
|
68
|
-
</account>
|
69
|
-
|
70
|
-
http_version: "1.1"
|
71
|
-
- !ruby/struct:VCR::HTTPInteraction
|
72
|
-
request: !ruby/struct:VCR::Request
|
73
|
-
method: :post
|
74
|
-
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/charge-list-pending-1296674173/charges.xml
|
75
|
-
body: |
|
76
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
77
|
-
<charge>
|
78
|
-
<amount type="float">10.0</amount>
|
79
|
-
<description>charge description</description>
|
80
|
-
</charge>
|
81
|
-
|
82
|
-
headers:
|
83
|
-
authorization:
|
84
|
-
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
85
|
-
content-type:
|
86
|
-
- application/xml
|
87
|
-
accept:
|
88
|
-
- "*/*"
|
89
|
-
user-agent:
|
90
|
-
- Ruby
|
91
|
-
connection:
|
92
|
-
- close
|
93
|
-
response: !ruby/struct:VCR::Response
|
94
|
-
status: !ruby/struct:VCR::ResponseStatus
|
95
|
-
code: 201
|
96
|
-
message: "Created "
|
97
|
-
headers:
|
98
|
-
cache-control:
|
99
|
-
- no-cache
|
100
|
-
x-runtime:
|
101
|
-
- "404"
|
102
|
-
content-type:
|
103
|
-
- application/xml; charset=utf-8
|
104
|
-
content-length:
|
105
|
-
- "524"
|
106
|
-
server:
|
107
|
-
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
108
|
-
date:
|
109
|
-
- Thu, 03 Feb 2011 22:18:26 GMT
|
110
|
-
connection:
|
111
|
-
- close
|
112
|
-
set-cookie:
|
113
|
-
- _recurly_session=9a1fea509567f1bea8f112f01191dabf; domain=.recurly.local; path=/; HttpOnly
|
114
|
-
body: |
|
115
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
116
|
-
<charge type="charge">
|
117
|
-
<id>883a591cc8ab4021af20a219ad6e116d</id>
|
118
|
-
<account_code>charge-list-pending-1296674173</account_code>
|
119
|
-
<amount_in_cents type="integer">1000</amount_in_cents>
|
120
|
-
<start_date type="datetime">2011-02-03T22:18:26Z</start_date>
|
121
|
-
<end_date nil="true" type="datetime"></end_date>
|
122
|
-
<invoice_number nil="true" type="integer"></invoice_number>
|
123
|
-
<description>charge description</description>
|
124
|
-
<created_at type="datetime">2011-02-03T22:18:26Z</created_at>
|
125
|
-
</charge>
|
126
|
-
|
127
|
-
http_version: "1.1"
|
128
|
-
- !ruby/struct:VCR::HTTPInteraction
|
129
|
-
request: !ruby/struct:VCR::Request
|
130
|
-
method: :post
|
131
|
-
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/charge-list-pending-1296674173/charges.xml
|
132
|
-
body: |
|
133
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
134
|
-
<charge>
|
135
|
-
<amount type="float">10.0</amount>
|
136
|
-
<description>charge description</description>
|
137
|
-
</charge>
|
138
|
-
|
139
|
-
headers:
|
140
|
-
authorization:
|
141
|
-
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
142
|
-
content-type:
|
143
|
-
- application/xml
|
144
|
-
accept:
|
145
|
-
- "*/*"
|
146
|
-
user-agent:
|
147
|
-
- Ruby
|
148
|
-
connection:
|
149
|
-
- close
|
150
|
-
response: !ruby/struct:VCR::Response
|
151
|
-
status: !ruby/struct:VCR::ResponseStatus
|
152
|
-
code: 201
|
153
|
-
message: "Created "
|
154
|
-
headers:
|
155
|
-
cache-control:
|
156
|
-
- no-cache
|
157
|
-
x-runtime:
|
158
|
-
- "540"
|
159
|
-
content-type:
|
160
|
-
- application/xml; charset=utf-8
|
161
|
-
content-length:
|
162
|
-
- "524"
|
163
|
-
server:
|
164
|
-
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
165
|
-
date:
|
166
|
-
- Thu, 03 Feb 2011 22:18:29 GMT
|
167
|
-
connection:
|
168
|
-
- close
|
169
|
-
set-cookie:
|
170
|
-
- _recurly_session=265580f2615eea8757547035a1390fa8; domain=.recurly.local; path=/; HttpOnly
|
171
|
-
body: |
|
172
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
173
|
-
<charge type="charge">
|
174
|
-
<id>63757f77c5e24c469287149f17f04e8b</id>
|
175
|
-
<account_code>charge-list-pending-1296674173</account_code>
|
176
|
-
<amount_in_cents type="integer">1000</amount_in_cents>
|
177
|
-
<start_date type="datetime">2011-02-03T22:18:28Z</start_date>
|
178
|
-
<end_date nil="true" type="datetime"></end_date>
|
179
|
-
<invoice_number nil="true" type="integer"></invoice_number>
|
180
|
-
<description>charge description</description>
|
181
|
-
<created_at type="datetime">2011-02-03T22:18:28Z</created_at>
|
182
|
-
</charge>
|
183
|
-
|
184
|
-
http_version: "1.1"
|
185
|
-
- !ruby/struct:VCR::HTTPInteraction
|
186
|
-
request: !ruby/struct:VCR::Request
|
187
|
-
method: :post
|
188
|
-
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/charge-list-pending-1296674173/charges.xml
|
189
|
-
body: |
|
190
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
191
|
-
<charge>
|
192
|
-
<amount type="float">10.0</amount>
|
193
|
-
<description>charge description</description>
|
194
|
-
</charge>
|
195
|
-
|
196
|
-
headers:
|
197
|
-
authorization:
|
198
|
-
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
199
|
-
content-type:
|
200
|
-
- application/xml
|
201
|
-
accept:
|
202
|
-
- "*/*"
|
203
|
-
user-agent:
|
204
|
-
- Ruby
|
205
|
-
connection:
|
206
|
-
- close
|
207
|
-
response: !ruby/struct:VCR::Response
|
208
|
-
status: !ruby/struct:VCR::ResponseStatus
|
209
|
-
code: 201
|
210
|
-
message: "Created "
|
211
|
-
headers:
|
212
|
-
cache-control:
|
213
|
-
- no-cache
|
214
|
-
x-runtime:
|
215
|
-
- "610"
|
216
|
-
content-type:
|
217
|
-
- application/xml; charset=utf-8
|
218
|
-
content-length:
|
219
|
-
- "524"
|
220
|
-
server:
|
221
|
-
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
222
|
-
date:
|
223
|
-
- Thu, 03 Feb 2011 22:18:31 GMT
|
224
|
-
connection:
|
225
|
-
- close
|
226
|
-
set-cookie:
|
227
|
-
- _recurly_session=f9ba2166026326f3679bd3ae7a76fd86; domain=.recurly.local; path=/; HttpOnly
|
228
|
-
body: |
|
229
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
230
|
-
<charge type="charge">
|
231
|
-
<id>8883770585bd4062a26ceafd72dffc40</id>
|
232
|
-
<account_code>charge-list-pending-1296674173</account_code>
|
233
|
-
<amount_in_cents type="integer">1000</amount_in_cents>
|
234
|
-
<start_date type="datetime">2011-02-03T22:18:30Z</start_date>
|
235
|
-
<end_date nil="true" type="datetime"></end_date>
|
236
|
-
<invoice_number nil="true" type="integer"></invoice_number>
|
237
|
-
<description>charge description</description>
|
238
|
-
<created_at type="datetime">2011-02-03T22:18:30Z</created_at>
|
239
|
-
</charge>
|
240
|
-
|
241
|
-
http_version: "1.1"
|
242
|
-
- !ruby/struct:VCR::HTTPInteraction
|
243
|
-
request: !ruby/struct:VCR::Request
|
244
|
-
method: :get
|
245
|
-
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/charge-list-pending-1296674173/charges.xml?show=pending
|
246
|
-
body:
|
247
|
-
headers:
|
248
|
-
authorization:
|
249
|
-
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
250
|
-
accept:
|
251
|
-
- application/xml
|
252
|
-
accept-encoding:
|
253
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
254
|
-
user-agent:
|
255
|
-
- Ruby
|
256
|
-
connection:
|
257
|
-
- close
|
258
|
-
response: !ruby/struct:VCR::Response
|
259
|
-
status: !ruby/struct:VCR::ResponseStatus
|
260
|
-
code: 200
|
261
|
-
message: "OK "
|
262
|
-
headers:
|
263
|
-
x-runtime:
|
264
|
-
- "180"
|
265
|
-
content-type:
|
266
|
-
- application/xml; charset=utf-8
|
267
|
-
etag:
|
268
|
-
- "\"ff5941d6d76602a00e120de39efd3d20\""
|
269
|
-
cache-control:
|
270
|
-
- private, max-age=0, must-revalidate
|
271
|
-
content-length:
|
272
|
-
- "1588"
|
273
|
-
server:
|
274
|
-
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
275
|
-
date:
|
276
|
-
- Thu, 03 Feb 2011 22:18:33 GMT
|
277
|
-
connection:
|
278
|
-
- close
|
279
|
-
set-cookie:
|
280
|
-
- _recurly_session=187e8811d275ae57d56430859c91fae8; domain=.recurly.local; path=/; HttpOnly
|
281
|
-
body: |
|
282
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
283
|
-
<charges type="array">
|
284
|
-
<charge type="charge">
|
285
|
-
<id>8883770585bd4062a26ceafd72dffc40</id>
|
286
|
-
<account_code>charge-list-pending-1296674173</account_code>
|
287
|
-
<amount_in_cents type="integer">1000</amount_in_cents>
|
288
|
-
<start_date type="datetime">2011-02-03T22:18:30Z</start_date>
|
289
|
-
<end_date nil="true" type="datetime"></end_date>
|
290
|
-
<invoice_number nil="true" type="integer"></invoice_number>
|
291
|
-
<description>charge description</description>
|
292
|
-
<created_at type="datetime">2011-02-03T22:18:30Z</created_at>
|
293
|
-
</charge>
|
294
|
-
<charge type="charge">
|
295
|
-
<id>63757f77c5e24c469287149f17f04e8b</id>
|
296
|
-
<account_code>charge-list-pending-1296674173</account_code>
|
297
|
-
<amount_in_cents type="integer">1000</amount_in_cents>
|
298
|
-
<start_date type="datetime">2011-02-03T22:18:28Z</start_date>
|
299
|
-
<end_date nil="true" type="datetime"></end_date>
|
300
|
-
<invoice_number nil="true" type="integer"></invoice_number>
|
301
|
-
<description>charge description</description>
|
302
|
-
<created_at type="datetime">2011-02-03T22:18:28Z</created_at>
|
303
|
-
</charge>
|
304
|
-
<charge type="charge">
|
305
|
-
<id>883a591cc8ab4021af20a219ad6e116d</id>
|
306
|
-
<account_code>charge-list-pending-1296674173</account_code>
|
307
|
-
<amount_in_cents type="integer">1000</amount_in_cents>
|
308
|
-
<start_date type="datetime">2011-02-03T22:18:26Z</start_date>
|
309
|
-
<end_date nil="true" type="datetime"></end_date>
|
310
|
-
<invoice_number nil="true" type="integer"></invoice_number>
|
311
|
-
<description>charge description</description>
|
312
|
-
<created_at type="datetime">2011-02-03T22:18:26Z</created_at>
|
313
|
-
</charge>
|
314
|
-
</charges>
|
315
|
-
|
316
|
-
http_version: "1.1"
|
@@ -1,180 +0,0 @@
|
|
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>charge-lookup-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: 201
|
31
|
-
message: "Created "
|
32
|
-
headers:
|
33
|
-
cache-control:
|
34
|
-
- no-cache
|
35
|
-
location:
|
36
|
-
- http://litle-test.recurly.local:3000/accounts/charge-lookup-1296674173
|
37
|
-
x-runtime:
|
38
|
-
- "604"
|
39
|
-
content-type:
|
40
|
-
- application/xml; charset=utf-8
|
41
|
-
content-length:
|
42
|
-
- "581"
|
43
|
-
server:
|
44
|
-
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
45
|
-
date:
|
46
|
-
- Thu, 03 Feb 2011 22:19:02 GMT
|
47
|
-
connection:
|
48
|
-
- close
|
49
|
-
set-cookie:
|
50
|
-
- account_credentials=695bd49e3bd8fbc3ee7d4c629cb598a863d051e01de74ed47862491142c02363eae86c4f33ebd376aa114e9cdc5f088bbacdf4d617179c803eb757304b1702db%3A%3A; domain=.recurly.local; path=/
|
51
|
-
- ""
|
52
|
-
- _recurly_session=1ed8044ce7742aa7daa0631b9040f923; domain=.recurly.local; path=/; HttpOnly
|
53
|
-
body: |
|
54
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
55
|
-
<account>
|
56
|
-
<id>charge-lookup-1296674173</id>
|
57
|
-
<account_code>charge-lookup-1296674173</account_code>
|
58
|
-
<username></username>
|
59
|
-
<email>verena@test.com</email>
|
60
|
-
<first_name>Verena</first_name>
|
61
|
-
<last_name>Test</last_name>
|
62
|
-
<company_name>Recurly Ruby Gem</company_name>
|
63
|
-
<balance_in_cents type="integer">0</balance_in_cents>
|
64
|
-
<closed type="boolean">false</closed>
|
65
|
-
<hosted_login_token>f1b330c0c1734759aea161f70c96d9e5</hosted_login_token>
|
66
|
-
<created_at type="datetime">2011-02-03T22:19:02Z</created_at>
|
67
|
-
<state>active</state>
|
68
|
-
</account>
|
69
|
-
|
70
|
-
http_version: "1.1"
|
71
|
-
- !ruby/struct:VCR::HTTPInteraction
|
72
|
-
request: !ruby/struct:VCR::Request
|
73
|
-
method: :post
|
74
|
-
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/charge-lookup-1296674173/charges.xml
|
75
|
-
body: |
|
76
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
77
|
-
<charge>
|
78
|
-
<amount type="float">13.15</amount>
|
79
|
-
<description>inconvenience fee</description>
|
80
|
-
</charge>
|
81
|
-
|
82
|
-
headers:
|
83
|
-
authorization:
|
84
|
-
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
85
|
-
content-type:
|
86
|
-
- application/xml
|
87
|
-
accept:
|
88
|
-
- "*/*"
|
89
|
-
user-agent:
|
90
|
-
- Ruby
|
91
|
-
connection:
|
92
|
-
- close
|
93
|
-
response: !ruby/struct:VCR::Response
|
94
|
-
status: !ruby/struct:VCR::ResponseStatus
|
95
|
-
code: 201
|
96
|
-
message: "Created "
|
97
|
-
headers:
|
98
|
-
cache-control:
|
99
|
-
- no-cache
|
100
|
-
x-runtime:
|
101
|
-
- "421"
|
102
|
-
content-type:
|
103
|
-
- application/xml; charset=utf-8
|
104
|
-
content-length:
|
105
|
-
- "517"
|
106
|
-
server:
|
107
|
-
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
108
|
-
date:
|
109
|
-
- Thu, 03 Feb 2011 22:19:04 GMT
|
110
|
-
connection:
|
111
|
-
- close
|
112
|
-
set-cookie:
|
113
|
-
- _recurly_session=4218f9ebf181d8a6cde7a9d8d6be91eb; domain=.recurly.local; path=/; HttpOnly
|
114
|
-
body: |
|
115
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
116
|
-
<charge type="charge">
|
117
|
-
<id>dcd06782bb1046448d18987729472b27</id>
|
118
|
-
<account_code>charge-lookup-1296674173</account_code>
|
119
|
-
<amount_in_cents type="integer">1315</amount_in_cents>
|
120
|
-
<start_date type="datetime">2011-02-03T22:19:04Z</start_date>
|
121
|
-
<end_date nil="true" type="datetime"></end_date>
|
122
|
-
<invoice_number nil="true" type="integer"></invoice_number>
|
123
|
-
<description>inconvenience fee</description>
|
124
|
-
<created_at type="datetime">2011-02-03T22:19:04Z</created_at>
|
125
|
-
</charge>
|
126
|
-
|
127
|
-
http_version: "1.1"
|
128
|
-
- !ruby/struct:VCR::HTTPInteraction
|
129
|
-
request: !ruby/struct:VCR::Request
|
130
|
-
method: :get
|
131
|
-
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/charge-lookup-1296674173/charges/dcd06782bb1046448d18987729472b27.xml
|
132
|
-
body:
|
133
|
-
headers:
|
134
|
-
authorization:
|
135
|
-
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
136
|
-
accept:
|
137
|
-
- application/xml
|
138
|
-
accept-encoding:
|
139
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
140
|
-
user-agent:
|
141
|
-
- Ruby
|
142
|
-
connection:
|
143
|
-
- close
|
144
|
-
response: !ruby/struct:VCR::Response
|
145
|
-
status: !ruby/struct:VCR::ResponseStatus
|
146
|
-
code: 200
|
147
|
-
message: "OK "
|
148
|
-
headers:
|
149
|
-
x-runtime:
|
150
|
-
- "193"
|
151
|
-
content-type:
|
152
|
-
- application/xml; charset=utf-8
|
153
|
-
etag:
|
154
|
-
- "\"76eb62e2b4cfa226e7902f57c32421fe\""
|
155
|
-
cache-control:
|
156
|
-
- private, max-age=0, must-revalidate
|
157
|
-
content-length:
|
158
|
-
- "517"
|
159
|
-
server:
|
160
|
-
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
161
|
-
date:
|
162
|
-
- Thu, 03 Feb 2011 22:19:06 GMT
|
163
|
-
connection:
|
164
|
-
- close
|
165
|
-
set-cookie:
|
166
|
-
- _recurly_session=3722886392ffb22b5f601c849e2e9bd0; domain=.recurly.local; path=/; HttpOnly
|
167
|
-
body: |
|
168
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
169
|
-
<charge type="charge">
|
170
|
-
<id>dcd06782bb1046448d18987729472b27</id>
|
171
|
-
<account_code>charge-lookup-1296674173</account_code>
|
172
|
-
<amount_in_cents type="integer">1315</amount_in_cents>
|
173
|
-
<start_date type="datetime">2011-02-03T22:19:04Z</start_date>
|
174
|
-
<end_date nil="true" type="datetime"></end_date>
|
175
|
-
<invoice_number nil="true" type="integer"></invoice_number>
|
176
|
-
<description>inconvenience fee</description>
|
177
|
-
<created_at type="datetime">2011-02-03T22:19:04Z</created_at>
|
178
|
-
</charge>
|
179
|
-
|
180
|
-
http_version: "1.1"
|