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>charge-list-pending-
|
9
|
+
<account-code>charge-list-pending-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-list-pending-1296674173
|
41
37
|
x-runtime:
|
42
|
-
- "
|
38
|
+
- "584"
|
43
39
|
content-type:
|
44
40
|
- application/xml; charset=utf-8
|
45
41
|
content-length:
|
46
42
|
- "593"
|
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:24 GMT
|
51
47
|
connection:
|
52
48
|
- close
|
53
49
|
set-cookie:
|
54
|
-
-
|
50
|
+
- account_credentials=f40298b64706e5b7415cf63a5cad3dddb98a5433b8f0e71c55f7e079fb71298a9b312349110fb8faf397404bdff113e918a6fb126c8a6f78471f729fa04224c9%3A%3A; domain=.recurly.local; path=/
|
51
|
+
- ""
|
52
|
+
- _recurly_session=cff62029aa8c2e54d96d3e861c5b8adf; domain=.recurly.local; path=/; HttpOnly
|
55
53
|
body: |
|
56
54
|
<?xml version="1.0" encoding="UTF-8"?>
|
57
55
|
<account>
|
58
|
-
<id>charge-list-pending-
|
59
|
-
<account_code>charge-list-pending-
|
56
|
+
<id>charge-list-pending-1296674173</id>
|
57
|
+
<account_code>charge-list-pending-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>f9a382cb40674a01a661fefdaef06446</hosted_login_token>
|
66
|
+
<created_at type="datetime">2011-02-03T22:18:24Z</created_at>
|
69
67
|
<state>active</state>
|
70
68
|
</account>
|
71
69
|
|
@@ -73,7 +71,7 @@
|
|
73
71
|
- !ruby/struct:VCR::HTTPInteraction
|
74
72
|
request: !ruby/struct:VCR::Request
|
75
73
|
method: :post
|
76
|
-
uri: http://
|
74
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/charge-list-pending-1296674173/charges.xml
|
77
75
|
body: |
|
78
76
|
<?xml version="1.0" encoding="UTF-8"?>
|
79
77
|
<charge>
|
@@ -83,13 +81,13 @@
|
|
83
81
|
|
84
82
|
headers:
|
85
83
|
authorization:
|
86
|
-
- Basic
|
87
|
-
user-agent:
|
88
|
-
- Recurly Ruby Client v0.4.6
|
84
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
89
85
|
content-type:
|
90
86
|
- application/xml
|
91
87
|
accept:
|
92
88
|
- "*/*"
|
89
|
+
user-agent:
|
90
|
+
- Ruby
|
93
91
|
connection:
|
94
92
|
- close
|
95
93
|
response: !ruby/struct:VCR::Response
|
@@ -100,39 +98,37 @@
|
|
100
98
|
cache-control:
|
101
99
|
- no-cache
|
102
100
|
x-runtime:
|
103
|
-
- "
|
101
|
+
- "404"
|
104
102
|
content-type:
|
105
103
|
- application/xml; charset=utf-8
|
106
104
|
content-length:
|
107
|
-
- "
|
105
|
+
- "524"
|
108
106
|
server:
|
109
|
-
- WEBrick/1.3.1 (Ruby/1.9.2/
|
107
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
110
108
|
date:
|
111
|
-
- Thu,
|
109
|
+
- Thu, 03 Feb 2011 22:18:26 GMT
|
112
110
|
connection:
|
113
111
|
- close
|
114
112
|
set-cookie:
|
115
|
-
- _recurly_session=
|
113
|
+
- _recurly_session=9a1fea509567f1bea8f112f01191dabf; domain=.recurly.local; path=/; HttpOnly
|
116
114
|
body: |
|
117
115
|
<?xml version="1.0" encoding="UTF-8"?>
|
118
116
|
<charge type="charge">
|
119
|
-
<id>
|
120
|
-
<account_code>charge-list-pending-
|
121
|
-
<quantity type="integer">1</quantity>
|
122
|
-
<unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
|
117
|
+
<id>883a591cc8ab4021af20a219ad6e116d</id>
|
118
|
+
<account_code>charge-list-pending-1296674173</account_code>
|
123
119
|
<amount_in_cents type="integer">1000</amount_in_cents>
|
124
|
-
<start_date type="datetime">2011-
|
120
|
+
<start_date type="datetime">2011-02-03T22:18:26Z</start_date>
|
125
121
|
<end_date nil="true" type="datetime"></end_date>
|
126
122
|
<invoice_number nil="true" type="integer"></invoice_number>
|
127
123
|
<description>charge description</description>
|
128
|
-
<created_at type="datetime">2011-
|
124
|
+
<created_at type="datetime">2011-02-03T22:18:26Z</created_at>
|
129
125
|
</charge>
|
130
126
|
|
131
127
|
http_version: "1.1"
|
132
128
|
- !ruby/struct:VCR::HTTPInteraction
|
133
129
|
request: !ruby/struct:VCR::Request
|
134
130
|
method: :post
|
135
|
-
uri: http://
|
131
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/charge-list-pending-1296674173/charges.xml
|
136
132
|
body: |
|
137
133
|
<?xml version="1.0" encoding="UTF-8"?>
|
138
134
|
<charge>
|
@@ -142,13 +138,13 @@
|
|
142
138
|
|
143
139
|
headers:
|
144
140
|
authorization:
|
145
|
-
- Basic
|
146
|
-
user-agent:
|
147
|
-
- Recurly Ruby Client v0.4.6
|
141
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
148
142
|
content-type:
|
149
143
|
- application/xml
|
150
144
|
accept:
|
151
145
|
- "*/*"
|
146
|
+
user-agent:
|
147
|
+
- Ruby
|
152
148
|
connection:
|
153
149
|
- close
|
154
150
|
response: !ruby/struct:VCR::Response
|
@@ -159,39 +155,37 @@
|
|
159
155
|
cache-control:
|
160
156
|
- no-cache
|
161
157
|
x-runtime:
|
162
|
-
- "
|
158
|
+
- "540"
|
163
159
|
content-type:
|
164
160
|
- application/xml; charset=utf-8
|
165
161
|
content-length:
|
166
|
-
- "
|
162
|
+
- "524"
|
167
163
|
server:
|
168
|
-
- WEBrick/1.3.1 (Ruby/1.9.2/
|
164
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
169
165
|
date:
|
170
|
-
- Thu,
|
166
|
+
- Thu, 03 Feb 2011 22:18:29 GMT
|
171
167
|
connection:
|
172
168
|
- close
|
173
169
|
set-cookie:
|
174
|
-
- _recurly_session=
|
170
|
+
- _recurly_session=265580f2615eea8757547035a1390fa8; domain=.recurly.local; path=/; HttpOnly
|
175
171
|
body: |
|
176
172
|
<?xml version="1.0" encoding="UTF-8"?>
|
177
173
|
<charge type="charge">
|
178
|
-
<id>
|
179
|
-
<account_code>charge-list-pending-
|
180
|
-
<quantity type="integer">1</quantity>
|
181
|
-
<unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
|
174
|
+
<id>63757f77c5e24c469287149f17f04e8b</id>
|
175
|
+
<account_code>charge-list-pending-1296674173</account_code>
|
182
176
|
<amount_in_cents type="integer">1000</amount_in_cents>
|
183
|
-
<start_date type="datetime">2011-
|
177
|
+
<start_date type="datetime">2011-02-03T22:18:28Z</start_date>
|
184
178
|
<end_date nil="true" type="datetime"></end_date>
|
185
179
|
<invoice_number nil="true" type="integer"></invoice_number>
|
186
180
|
<description>charge description</description>
|
187
|
-
<created_at type="datetime">2011-
|
181
|
+
<created_at type="datetime">2011-02-03T22:18:28Z</created_at>
|
188
182
|
</charge>
|
189
183
|
|
190
184
|
http_version: "1.1"
|
191
185
|
- !ruby/struct:VCR::HTTPInteraction
|
192
186
|
request: !ruby/struct:VCR::Request
|
193
187
|
method: :post
|
194
|
-
uri: http://
|
188
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/charge-list-pending-1296674173/charges.xml
|
195
189
|
body: |
|
196
190
|
<?xml version="1.0" encoding="UTF-8"?>
|
197
191
|
<charge>
|
@@ -201,13 +195,13 @@
|
|
201
195
|
|
202
196
|
headers:
|
203
197
|
authorization:
|
204
|
-
- Basic
|
205
|
-
user-agent:
|
206
|
-
- Recurly Ruby Client v0.4.6
|
198
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
207
199
|
content-type:
|
208
200
|
- application/xml
|
209
201
|
accept:
|
210
202
|
- "*/*"
|
203
|
+
user-agent:
|
204
|
+
- Ruby
|
211
205
|
connection:
|
212
206
|
- close
|
213
207
|
response: !ruby/struct:VCR::Response
|
@@ -218,49 +212,47 @@
|
|
218
212
|
cache-control:
|
219
213
|
- no-cache
|
220
214
|
x-runtime:
|
221
|
-
- "
|
215
|
+
- "610"
|
222
216
|
content-type:
|
223
217
|
- application/xml; charset=utf-8
|
224
218
|
content-length:
|
225
|
-
- "
|
219
|
+
- "524"
|
226
220
|
server:
|
227
|
-
- WEBrick/1.3.1 (Ruby/1.9.2/
|
221
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
228
222
|
date:
|
229
|
-
- Thu,
|
223
|
+
- Thu, 03 Feb 2011 22:18:31 GMT
|
230
224
|
connection:
|
231
225
|
- close
|
232
226
|
set-cookie:
|
233
|
-
- _recurly_session=
|
227
|
+
- _recurly_session=f9ba2166026326f3679bd3ae7a76fd86; domain=.recurly.local; path=/; HttpOnly
|
234
228
|
body: |
|
235
229
|
<?xml version="1.0" encoding="UTF-8"?>
|
236
230
|
<charge type="charge">
|
237
|
-
<id>
|
238
|
-
<account_code>charge-list-pending-
|
239
|
-
<quantity type="integer">1</quantity>
|
240
|
-
<unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
|
231
|
+
<id>8883770585bd4062a26ceafd72dffc40</id>
|
232
|
+
<account_code>charge-list-pending-1296674173</account_code>
|
241
233
|
<amount_in_cents type="integer">1000</amount_in_cents>
|
242
|
-
<start_date type="datetime">2011-
|
234
|
+
<start_date type="datetime">2011-02-03T22:18:30Z</start_date>
|
243
235
|
<end_date nil="true" type="datetime"></end_date>
|
244
236
|
<invoice_number nil="true" type="integer"></invoice_number>
|
245
237
|
<description>charge description</description>
|
246
|
-
<created_at type="datetime">2011-
|
238
|
+
<created_at type="datetime">2011-02-03T22:18:30Z</created_at>
|
247
239
|
</charge>
|
248
240
|
|
249
241
|
http_version: "1.1"
|
250
242
|
- !ruby/struct:VCR::HTTPInteraction
|
251
243
|
request: !ruby/struct:VCR::Request
|
252
244
|
method: :get
|
253
|
-
uri: http://
|
245
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/charge-list-pending-1296674173/charges.xml?show=pending
|
254
246
|
body:
|
255
247
|
headers:
|
256
248
|
authorization:
|
257
|
-
- Basic
|
258
|
-
user-agent:
|
259
|
-
- Recurly Ruby Client v0.4.6
|
249
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
260
250
|
accept:
|
261
251
|
- application/xml
|
262
252
|
accept-encoding:
|
263
253
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
254
|
+
user-agent:
|
255
|
+
- Ruby
|
264
256
|
connection:
|
265
257
|
- close
|
266
258
|
response: !ruby/struct:VCR::Response
|
@@ -269,61 +261,55 @@
|
|
269
261
|
message: "OK "
|
270
262
|
headers:
|
271
263
|
x-runtime:
|
272
|
-
- "
|
264
|
+
- "180"
|
273
265
|
content-type:
|
274
266
|
- application/xml; charset=utf-8
|
275
267
|
etag:
|
276
|
-
- "\"
|
268
|
+
- "\"ff5941d6d76602a00e120de39efd3d20\""
|
277
269
|
cache-control:
|
278
270
|
- private, max-age=0, must-revalidate
|
279
271
|
content-length:
|
280
|
-
- "
|
272
|
+
- "1588"
|
281
273
|
server:
|
282
|
-
- WEBrick/1.3.1 (Ruby/1.9.2/
|
274
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
283
275
|
date:
|
284
|
-
- Thu,
|
276
|
+
- Thu, 03 Feb 2011 22:18:33 GMT
|
285
277
|
connection:
|
286
278
|
- close
|
287
279
|
set-cookie:
|
288
|
-
- _recurly_session=
|
280
|
+
- _recurly_session=187e8811d275ae57d56430859c91fae8; domain=.recurly.local; path=/; HttpOnly
|
289
281
|
body: |
|
290
282
|
<?xml version="1.0" encoding="UTF-8"?>
|
291
283
|
<charges type="array">
|
292
284
|
<charge type="charge">
|
293
|
-
<id>
|
294
|
-
<account_code>charge-list-pending-
|
295
|
-
<quantity type="integer">1</quantity>
|
296
|
-
<unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
|
285
|
+
<id>8883770585bd4062a26ceafd72dffc40</id>
|
286
|
+
<account_code>charge-list-pending-1296674173</account_code>
|
297
287
|
<amount_in_cents type="integer">1000</amount_in_cents>
|
298
|
-
<start_date type="datetime">2011-
|
288
|
+
<start_date type="datetime">2011-02-03T22:18:30Z</start_date>
|
299
289
|
<end_date nil="true" type="datetime"></end_date>
|
300
290
|
<invoice_number nil="true" type="integer"></invoice_number>
|
301
291
|
<description>charge description</description>
|
302
|
-
<created_at type="datetime">2011-
|
292
|
+
<created_at type="datetime">2011-02-03T22:18:30Z</created_at>
|
303
293
|
</charge>
|
304
294
|
<charge type="charge">
|
305
|
-
<id>
|
306
|
-
<account_code>charge-list-pending-
|
307
|
-
<quantity type="integer">1</quantity>
|
308
|
-
<unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
|
295
|
+
<id>63757f77c5e24c469287149f17f04e8b</id>
|
296
|
+
<account_code>charge-list-pending-1296674173</account_code>
|
309
297
|
<amount_in_cents type="integer">1000</amount_in_cents>
|
310
|
-
<start_date type="datetime">2011-
|
298
|
+
<start_date type="datetime">2011-02-03T22:18:28Z</start_date>
|
311
299
|
<end_date nil="true" type="datetime"></end_date>
|
312
300
|
<invoice_number nil="true" type="integer"></invoice_number>
|
313
301
|
<description>charge description</description>
|
314
|
-
<created_at type="datetime">2011-
|
302
|
+
<created_at type="datetime">2011-02-03T22:18:28Z</created_at>
|
315
303
|
</charge>
|
316
304
|
<charge type="charge">
|
317
|
-
<id>
|
318
|
-
<account_code>charge-list-pending-
|
319
|
-
<quantity type="integer">1</quantity>
|
320
|
-
<unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
|
305
|
+
<id>883a591cc8ab4021af20a219ad6e116d</id>
|
306
|
+
<account_code>charge-list-pending-1296674173</account_code>
|
321
307
|
<amount_in_cents type="integer">1000</amount_in_cents>
|
322
|
-
<start_date type="datetime">2011-
|
308
|
+
<start_date type="datetime">2011-02-03T22:18:26Z</start_date>
|
323
309
|
<end_date nil="true" type="datetime"></end_date>
|
324
310
|
<invoice_number nil="true" type="integer"></invoice_number>
|
325
311
|
<description>charge description</description>
|
326
|
-
<created_at type="datetime">2011-
|
312
|
+
<created_at type="datetime">2011-02-03T22:18:26Z</created_at>
|
327
313
|
</charge>
|
328
314
|
</charges>
|
329
315
|
|
@@ -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-lookup-
|
9
|
+
<account-code>charge-lookup-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-lookup-1296674173
|
41
37
|
x-runtime:
|
42
|
-
- "
|
38
|
+
- "604"
|
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:19:02 GMT
|
51
47
|
connection:
|
52
48
|
- close
|
53
49
|
set-cookie:
|
54
|
-
-
|
50
|
+
- account_credentials=695bd49e3bd8fbc3ee7d4c629cb598a863d051e01de74ed47862491142c02363eae86c4f33ebd376aa114e9cdc5f088bbacdf4d617179c803eb757304b1702db%3A%3A; domain=.recurly.local; path=/
|
51
|
+
- ""
|
52
|
+
- _recurly_session=1ed8044ce7742aa7daa0631b9040f923; domain=.recurly.local; path=/; HttpOnly
|
55
53
|
body: |
|
56
54
|
<?xml version="1.0" encoding="UTF-8"?>
|
57
55
|
<account>
|
58
|
-
<id>charge-lookup-
|
59
|
-
<account_code>charge-lookup-
|
56
|
+
<id>charge-lookup-1296674173</id>
|
57
|
+
<account_code>charge-lookup-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>f1b330c0c1734759aea161f70c96d9e5</hosted_login_token>
|
66
|
+
<created_at type="datetime">2011-02-03T22:19:02Z</created_at>
|
69
67
|
<state>active</state>
|
70
68
|
</account>
|
71
69
|
|
@@ -73,7 +71,7 @@
|
|
73
71
|
- !ruby/struct:VCR::HTTPInteraction
|
74
72
|
request: !ruby/struct:VCR::Request
|
75
73
|
method: :post
|
76
|
-
uri: http://
|
74
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/charge-lookup-1296674173/charges.xml
|
77
75
|
body: |
|
78
76
|
<?xml version="1.0" encoding="UTF-8"?>
|
79
77
|
<charge>
|
@@ -83,13 +81,13 @@
|
|
83
81
|
|
84
82
|
headers:
|
85
83
|
authorization:
|
86
|
-
- Basic
|
87
|
-
user-agent:
|
88
|
-
- Recurly Ruby Client v0.4.6
|
84
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
89
85
|
content-type:
|
90
86
|
- application/xml
|
91
87
|
accept:
|
92
88
|
- "*/*"
|
89
|
+
user-agent:
|
90
|
+
- Ruby
|
93
91
|
connection:
|
94
92
|
- close
|
95
93
|
response: !ruby/struct:VCR::Response
|
@@ -100,49 +98,47 @@
|
|
100
98
|
cache-control:
|
101
99
|
- no-cache
|
102
100
|
x-runtime:
|
103
|
-
- "
|
101
|
+
- "421"
|
104
102
|
content-type:
|
105
103
|
- application/xml; charset=utf-8
|
106
104
|
content-length:
|
107
|
-
- "
|
105
|
+
- "517"
|
108
106
|
server:
|
109
|
-
- WEBrick/1.3.1 (Ruby/1.9.2/
|
107
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
110
108
|
date:
|
111
|
-
- Thu,
|
109
|
+
- Thu, 03 Feb 2011 22:19:04 GMT
|
112
110
|
connection:
|
113
111
|
- close
|
114
112
|
set-cookie:
|
115
|
-
- _recurly_session=
|
113
|
+
- _recurly_session=4218f9ebf181d8a6cde7a9d8d6be91eb; domain=.recurly.local; path=/; HttpOnly
|
116
114
|
body: |
|
117
115
|
<?xml version="1.0" encoding="UTF-8"?>
|
118
116
|
<charge type="charge">
|
119
|
-
<id>
|
120
|
-
<account_code>charge-lookup-
|
121
|
-
<quantity type="integer">1</quantity>
|
122
|
-
<unit_amount_in_cents type="integer">1315</unit_amount_in_cents>
|
117
|
+
<id>dcd06782bb1046448d18987729472b27</id>
|
118
|
+
<account_code>charge-lookup-1296674173</account_code>
|
123
119
|
<amount_in_cents type="integer">1315</amount_in_cents>
|
124
|
-
<start_date type="datetime">2011-
|
120
|
+
<start_date type="datetime">2011-02-03T22:19:04Z</start_date>
|
125
121
|
<end_date nil="true" type="datetime"></end_date>
|
126
122
|
<invoice_number nil="true" type="integer"></invoice_number>
|
127
123
|
<description>inconvenience fee</description>
|
128
|
-
<created_at type="datetime">2011-
|
124
|
+
<created_at type="datetime">2011-02-03T22:19:04Z</created_at>
|
129
125
|
</charge>
|
130
126
|
|
131
127
|
http_version: "1.1"
|
132
128
|
- !ruby/struct:VCR::HTTPInteraction
|
133
129
|
request: !ruby/struct:VCR::Request
|
134
130
|
method: :get
|
135
|
-
uri: http://
|
131
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/charge-lookup-1296674173/charges/dcd06782bb1046448d18987729472b27.xml
|
136
132
|
body:
|
137
133
|
headers:
|
138
134
|
authorization:
|
139
|
-
- Basic
|
140
|
-
user-agent:
|
141
|
-
- Recurly Ruby Client v0.4.6
|
135
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
142
136
|
accept:
|
143
137
|
- application/xml
|
144
138
|
accept-encoding:
|
145
139
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
140
|
+
user-agent:
|
141
|
+
- Ruby
|
146
142
|
connection:
|
147
143
|
- close
|
148
144
|
response: !ruby/struct:VCR::Response
|
@@ -151,36 +147,34 @@
|
|
151
147
|
message: "OK "
|
152
148
|
headers:
|
153
149
|
x-runtime:
|
154
|
-
- "
|
150
|
+
- "193"
|
155
151
|
content-type:
|
156
152
|
- application/xml; charset=utf-8
|
157
153
|
etag:
|
158
|
-
- "\"
|
154
|
+
- "\"76eb62e2b4cfa226e7902f57c32421fe\""
|
159
155
|
cache-control:
|
160
156
|
- private, max-age=0, must-revalidate
|
161
157
|
content-length:
|
162
|
-
- "
|
158
|
+
- "517"
|
163
159
|
server:
|
164
|
-
- WEBrick/1.3.1 (Ruby/1.9.2/
|
160
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
165
161
|
date:
|
166
|
-
- Thu,
|
162
|
+
- Thu, 03 Feb 2011 22:19:06 GMT
|
167
163
|
connection:
|
168
164
|
- close
|
169
165
|
set-cookie:
|
170
|
-
- _recurly_session=
|
166
|
+
- _recurly_session=3722886392ffb22b5f601c849e2e9bd0; domain=.recurly.local; path=/; HttpOnly
|
171
167
|
body: |
|
172
168
|
<?xml version="1.0" encoding="UTF-8"?>
|
173
169
|
<charge type="charge">
|
174
|
-
<id>
|
175
|
-
<account_code>charge-lookup-
|
176
|
-
<quantity type="integer">1</quantity>
|
177
|
-
<unit_amount_in_cents type="integer">1315</unit_amount_in_cents>
|
170
|
+
<id>dcd06782bb1046448d18987729472b27</id>
|
171
|
+
<account_code>charge-lookup-1296674173</account_code>
|
178
172
|
<amount_in_cents type="integer">1315</amount_in_cents>
|
179
|
-
<start_date type="datetime">2011-
|
173
|
+
<start_date type="datetime">2011-02-03T22:19:04Z</start_date>
|
180
174
|
<end_date nil="true" type="datetime"></end_date>
|
181
175
|
<invoice_number nil="true" type="integer"></invoice_number>
|
182
176
|
<description>inconvenience fee</description>
|
183
|
-
<created_at type="datetime">2011-
|
177
|
+
<created_at type="datetime">2011-02-03T22:19:04Z</created_at>
|
184
178
|
</charge>
|
185
179
|
|
186
180
|
http_version: "1.1"
|