recurly 0.3.3 → 0.3.4
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 +15 -11
- data/lib/patches/active_resource/connection.rb +10 -0
- data/lib/recurly.rb +35 -9
- data/lib/recurly/account.rb +22 -1
- data/lib/recurly/account_base.rb +35 -0
- data/lib/recurly/base.rb +26 -39
- data/lib/recurly/billing_info.rb +40 -1
- data/lib/recurly/charge.rb +12 -1
- data/lib/recurly/coupon.rb +8 -0
- data/lib/recurly/credit.rb +12 -1
- data/lib/recurly/exceptions.rb +19 -0
- data/lib/recurly/invoice.rb +1 -1
- data/lib/recurly/plan.rb +13 -1
- data/lib/recurly/rails3/recurly.rake +5 -3
- data/lib/recurly/subscription.rb +21 -3
- data/lib/recurly/transaction.rb +29 -1
- data/lib/recurly/transparent.rb +140 -0
- data/lib/recurly/version.rb +1 -1
- data/spec/config/recurly.yml +12 -0
- data/spec/config/test1.yml +3 -1
- data/spec/config/test2.yml +4 -2
- data/spec/integration/credit_spec.rb +6 -6
- data/spec/integration/plan_spec.rb +2 -2
- data/spec/support/factory.rb +5 -3
- data/spec/unit/account_spec.rb +19 -0
- data/spec/unit/billing_info_spec.rb +38 -0
- data/spec/unit/charge_spec.rb +18 -0
- data/spec/unit/config_spec.rb +10 -6
- data/spec/unit/coupon_spec.rb +13 -0
- data/spec/unit/credit_spec.rb +18 -0
- data/spec/unit/plan_spec.rb +18 -0
- data/spec/unit/subscription_spec.rb +25 -0
- data/spec/unit/transaction_spec.rb +32 -0
- data/spec/unit/transparent_spec.rb +114 -0
- data/spec/vcr/account/accept-language-account/{1296674173.yml → 1297746103.yml} +16 -13
- data/spec/vcr/account/close/{1296674173.yml → 1297746103.yml} +31 -28
- data/spec/vcr/account/create-blank/{1296674173.yml → 1297746103.yml} +9 -5
- data/spec/vcr/account/create-duplicate/{1296674173.yml → 1297746103.yml} +22 -15
- data/spec/vcr/account/create-min/{1296674173.yml → 1297746103.yml} +16 -13
- data/spec/vcr/account/create/{1296674173.yml → 1297746103.yml} +16 -13
- data/spec/vcr/account/find/{1296674173.yml → 1297746103.yml} +29 -26
- data/spec/vcr/account/list/1297746103.yml +1579 -0
- data/spec/vcr/account/update/{1296674173.yml → 1297746103.yml} +54 -47
- data/spec/vcr/billing/create/{1296690812.yml → 1298594128.yml} +37 -34
- data/spec/vcr/billing/destroy/{1296690812.yml → 1298594128.yml} +46 -43
- data/spec/vcr/billing/find/{1296690812.yml → 1298594128.yml} +47 -44
- data/spec/vcr/billing/update/{1296690812.yml → 1298594128.yml} +50 -47
- data/spec/vcr/charge/create/{1296674173.yml → 1297746103.yml} +48 -45
- data/spec/vcr/charge/delete-uninvoiced/{1296674173.yml → 1297746103.yml} +49 -46
- data/spec/vcr/charge/list-all/{1296674173.yml → 1297746103.yml} +61 -58
- data/spec/vcr/charge/list-invoiced/{1296674173.yml → 1297746103.yml} +92 -89
- data/spec/vcr/charge/list-pending/{1296674173.yml → 1297746103.yml} +61 -58
- data/spec/vcr/charge/lookup/{1296674173.yml → 1297746103.yml} +34 -31
- data/spec/vcr/coupon/create/{1296774903.yml → 1299714521.yml} +35 -32
- data/spec/vcr/coupon/destroy/{1296688818.yml → 1299714521.yml} +34 -31
- data/spec/vcr/{coupon/create/1296688818.yml → credit/create/1299714599.yml} +53 -53
- data/spec/vcr/credit/delete/1299714599.yml +262 -0
- data/spec/vcr/credit/list/1299714599.yml +319 -0
- data/spec/vcr/credit/lookup/1299714599.yml +183 -0
- data/spec/vcr/invoice/create-no-charges/{1296674173.yml → 1297746103.yml} +34 -31
- data/spec/vcr/invoice/create/{1296674173.yml → 1297746103.yml} +63 -60
- data/spec/vcr/invoice/list/{1296674173.yml → 1297746103.yml} +87 -84
- data/spec/vcr/invoice/lookup/{1296674173.yml → 1297746103.yml} +64 -61
- data/spec/vcr/plan/all.yml +30 -30
- data/spec/vcr/plan/find.yml +25 -25
- data/spec/vcr/plan/update.yml +16 -15
- data/spec/vcr/subscription/addons/add/{1296674173.yml → 1297746103.yml} +44 -40
- data/spec/vcr/subscription/addons/create/{1296674173.yml → 1297746103.yml} +44 -40
- data/spec/vcr/subscription/addons/remove/{1296674173.yml → 1297746103.yml} +44 -40
- data/spec/vcr/subscription/cancel-with-code/{1296674173.yml → 1297746103.yml} +99 -95
- data/spec/vcr/subscription/cancel/{1296674173.yml → 1297746103.yml} +86 -82
- data/spec/vcr/subscription/change1/{1296674173.yml → 1297746103.yml} +82 -78
- data/spec/vcr/subscription/change2/{1296674173.yml → 1297746103.yml} +82 -78
- data/spec/vcr/subscription/create/{1296674173.yml → 1297746103.yml} +49 -45
- data/spec/vcr/subscription/find/{1296674173.yml → 1297746103.yml} +60 -56
- data/spec/vcr/subscription/reactivate/{1296674173.yml → 1297746103.yml} +93 -89
- data/spec/vcr/subscription/refund-full/{1296674173.yml → 1297746103.yml} +77 -73
- data/spec/vcr/subscription/refund-none/{1296674173.yml → 1297746103.yml} +77 -73
- data/spec/vcr/subscription/refund-partial/{1296674173.yml → 1297746103.yml} +77 -73
- data/spec/vcr/transaction/all/{1296674173.yml → 1297746103.yml} +107 -107
- data/spec/vcr/transaction/create-no-account/{1296674173.yml → 1297746103.yml} +14 -13
- data/spec/vcr/transaction/create-with-account/{1296674173.yml → 1297746103.yml} +46 -58
- data/spec/vcr/transaction/list-filled/1297746103.yml +213 -0
- data/spec/vcr/transaction/list-initial/{1296674173.yml → 1297746103.yml} +38 -35
- data/spec/vcr/transaction/lookup/1297746103.yml +213 -0
- data/spec/vcr/transaction/refund/1297746103.yml +213 -0
- data/spec/vcr/transaction/void/1297746103.yml +213 -0
- metadata +146 -139
- data/spec/vcr/account/list/1296674173.yml +0 -55
- data/spec/vcr/coupon/destroy/1296774903.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/list-filled/1296674173.yml +0 -487
- 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
@@ -2,21 +2,25 @@
|
|
2
2
|
- !ruby/struct:VCR::HTTPInteraction
|
3
3
|
request: !ruby/struct:VCR::Request
|
4
4
|
method: :post
|
5
|
-
uri: http://
|
5
|
+
uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.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-1297746103</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>
|
14
18
|
<accept-language type="yaml" nil="true"></accept-language>
|
15
19
|
</account>
|
16
20
|
|
17
21
|
headers:
|
18
22
|
authorization:
|
19
|
-
- Basic
|
23
|
+
- Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
|
20
24
|
content-type:
|
21
25
|
- application/xml
|
22
26
|
accept:
|
@@ -33,9 +37,9 @@
|
|
33
37
|
cache-control:
|
34
38
|
- no-cache
|
35
39
|
location:
|
36
|
-
- http://
|
40
|
+
- http://app.recurly.local:3000/accounts/charge-list-pending-1297746103
|
37
41
|
x-runtime:
|
38
|
-
- "
|
42
|
+
- "523"
|
39
43
|
content-type:
|
40
44
|
- application/xml; charset=utf-8
|
41
45
|
content-length:
|
@@ -43,18 +47,17 @@
|
|
43
47
|
server:
|
44
48
|
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
45
49
|
date:
|
46
|
-
-
|
50
|
+
- Fri, 11 Mar 2011 18:48:44 GMT
|
47
51
|
connection:
|
48
52
|
- close
|
49
53
|
set-cookie:
|
50
|
-
- account_credentials=
|
51
|
-
-
|
52
|
-
- _recurly_session=cff62029aa8c2e54d96d3e861c5b8adf; domain=.recurly.local; path=/; HttpOnly
|
54
|
+
- account_credentials=ee0b5d172e4e1ad0c00ef0b880c021ab3529ff6329cd4ae11eddd25143c0ac13e07bec9e346db5bd3d3b2d6ef88e29e0d3630a37dd59f04fde356418809d0364%3A%3A; domain=.recurly.local; path=/
|
55
|
+
- _recurly_session=3dd171dc96f33c1267c83dcd5b882a26; domain=.recurly.local; path=/; HttpOnly
|
53
56
|
body: |
|
54
57
|
<?xml version="1.0" encoding="UTF-8"?>
|
55
58
|
<account>
|
56
|
-
<id>charge-list-pending-
|
57
|
-
<account_code>charge-list-pending-
|
59
|
+
<id>charge-list-pending-1297746103</id>
|
60
|
+
<account_code>charge-list-pending-1297746103</account_code>
|
58
61
|
<username></username>
|
59
62
|
<email>verena@test.com</email>
|
60
63
|
<first_name>Verena</first_name>
|
@@ -62,8 +65,8 @@
|
|
62
65
|
<company_name>Recurly Ruby Gem</company_name>
|
63
66
|
<balance_in_cents type="integer">0</balance_in_cents>
|
64
67
|
<closed type="boolean">false</closed>
|
65
|
-
<hosted_login_token>
|
66
|
-
<created_at type="datetime">2011-
|
68
|
+
<hosted_login_token>a54853a307cf499193aebe1e77f37662</hosted_login_token>
|
69
|
+
<created_at type="datetime">2011-03-11T18:48:44Z</created_at>
|
67
70
|
<state>active</state>
|
68
71
|
</account>
|
69
72
|
|
@@ -71,7 +74,7 @@
|
|
71
74
|
- !ruby/struct:VCR::HTTPInteraction
|
72
75
|
request: !ruby/struct:VCR::Request
|
73
76
|
method: :post
|
74
|
-
uri: http://
|
77
|
+
uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/charge-list-pending-1297746103/charges.xml
|
75
78
|
body: |
|
76
79
|
<?xml version="1.0" encoding="UTF-8"?>
|
77
80
|
<charge>
|
@@ -81,7 +84,7 @@
|
|
81
84
|
|
82
85
|
headers:
|
83
86
|
authorization:
|
84
|
-
- Basic
|
87
|
+
- Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
|
85
88
|
content-type:
|
86
89
|
- application/xml
|
87
90
|
accept:
|
@@ -98,7 +101,7 @@
|
|
98
101
|
cache-control:
|
99
102
|
- no-cache
|
100
103
|
x-runtime:
|
101
|
-
- "
|
104
|
+
- "214"
|
102
105
|
content-type:
|
103
106
|
- application/xml; charset=utf-8
|
104
107
|
content-length:
|
@@ -106,29 +109,29 @@
|
|
106
109
|
server:
|
107
110
|
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
108
111
|
date:
|
109
|
-
-
|
112
|
+
- Fri, 11 Mar 2011 18:48:46 GMT
|
110
113
|
connection:
|
111
114
|
- close
|
112
115
|
set-cookie:
|
113
|
-
- _recurly_session=
|
116
|
+
- _recurly_session=636da3ef7d89d94371d16ab91c7bd203; domain=.recurly.local; path=/; HttpOnly
|
114
117
|
body: |
|
115
118
|
<?xml version="1.0" encoding="UTF-8"?>
|
116
119
|
<charge type="charge">
|
117
|
-
<id>
|
118
|
-
<account_code>charge-list-pending-
|
120
|
+
<id>5392881b785d4d97a0bce59faf344fc7</id>
|
121
|
+
<account_code>charge-list-pending-1297746103</account_code>
|
119
122
|
<amount_in_cents type="integer">1000</amount_in_cents>
|
120
|
-
<start_date type="datetime">2011-
|
123
|
+
<start_date type="datetime">2011-03-11T18:48:46Z</start_date>
|
121
124
|
<end_date nil="true" type="datetime"></end_date>
|
122
125
|
<invoice_number nil="true" type="integer"></invoice_number>
|
123
126
|
<description>charge description</description>
|
124
|
-
<created_at type="datetime">2011-
|
127
|
+
<created_at type="datetime">2011-03-11T18:48:46Z</created_at>
|
125
128
|
</charge>
|
126
129
|
|
127
130
|
http_version: "1.1"
|
128
131
|
- !ruby/struct:VCR::HTTPInteraction
|
129
132
|
request: !ruby/struct:VCR::Request
|
130
133
|
method: :post
|
131
|
-
uri: http://
|
134
|
+
uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/charge-list-pending-1297746103/charges.xml
|
132
135
|
body: |
|
133
136
|
<?xml version="1.0" encoding="UTF-8"?>
|
134
137
|
<charge>
|
@@ -138,7 +141,7 @@
|
|
138
141
|
|
139
142
|
headers:
|
140
143
|
authorization:
|
141
|
-
- Basic
|
144
|
+
- Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
|
142
145
|
content-type:
|
143
146
|
- application/xml
|
144
147
|
accept:
|
@@ -155,7 +158,7 @@
|
|
155
158
|
cache-control:
|
156
159
|
- no-cache
|
157
160
|
x-runtime:
|
158
|
-
- "
|
161
|
+
- "207"
|
159
162
|
content-type:
|
160
163
|
- application/xml; charset=utf-8
|
161
164
|
content-length:
|
@@ -163,29 +166,29 @@
|
|
163
166
|
server:
|
164
167
|
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
165
168
|
date:
|
166
|
-
-
|
169
|
+
- Fri, 11 Mar 2011 18:48:48 GMT
|
167
170
|
connection:
|
168
171
|
- close
|
169
172
|
set-cookie:
|
170
|
-
- _recurly_session=
|
173
|
+
- _recurly_session=ffe1163bfd73163578be725578a8ebc1; domain=.recurly.local; path=/; HttpOnly
|
171
174
|
body: |
|
172
175
|
<?xml version="1.0" encoding="UTF-8"?>
|
173
176
|
<charge type="charge">
|
174
|
-
<id>
|
175
|
-
<account_code>charge-list-pending-
|
177
|
+
<id>c102d16bf6b547029b8de13a5ff531aa</id>
|
178
|
+
<account_code>charge-list-pending-1297746103</account_code>
|
176
179
|
<amount_in_cents type="integer">1000</amount_in_cents>
|
177
|
-
<start_date type="datetime">2011-
|
180
|
+
<start_date type="datetime">2011-03-11T18:48:48Z</start_date>
|
178
181
|
<end_date nil="true" type="datetime"></end_date>
|
179
182
|
<invoice_number nil="true" type="integer"></invoice_number>
|
180
183
|
<description>charge description</description>
|
181
|
-
<created_at type="datetime">2011-
|
184
|
+
<created_at type="datetime">2011-03-11T18:48:48Z</created_at>
|
182
185
|
</charge>
|
183
186
|
|
184
187
|
http_version: "1.1"
|
185
188
|
- !ruby/struct:VCR::HTTPInteraction
|
186
189
|
request: !ruby/struct:VCR::Request
|
187
190
|
method: :post
|
188
|
-
uri: http://
|
191
|
+
uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/charge-list-pending-1297746103/charges.xml
|
189
192
|
body: |
|
190
193
|
<?xml version="1.0" encoding="UTF-8"?>
|
191
194
|
<charge>
|
@@ -195,7 +198,7 @@
|
|
195
198
|
|
196
199
|
headers:
|
197
200
|
authorization:
|
198
|
-
- Basic
|
201
|
+
- Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
|
199
202
|
content-type:
|
200
203
|
- application/xml
|
201
204
|
accept:
|
@@ -212,7 +215,7 @@
|
|
212
215
|
cache-control:
|
213
216
|
- no-cache
|
214
217
|
x-runtime:
|
215
|
-
- "
|
218
|
+
- "214"
|
216
219
|
content-type:
|
217
220
|
- application/xml; charset=utf-8
|
218
221
|
content-length:
|
@@ -220,33 +223,33 @@
|
|
220
223
|
server:
|
221
224
|
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
222
225
|
date:
|
223
|
-
-
|
226
|
+
- Fri, 11 Mar 2011 18:48:51 GMT
|
224
227
|
connection:
|
225
228
|
- close
|
226
229
|
set-cookie:
|
227
|
-
- _recurly_session=
|
230
|
+
- _recurly_session=b3c4d2959ddff2f2a1052ddd0c995041; domain=.recurly.local; path=/; HttpOnly
|
228
231
|
body: |
|
229
232
|
<?xml version="1.0" encoding="UTF-8"?>
|
230
233
|
<charge type="charge">
|
231
|
-
<id>
|
232
|
-
<account_code>charge-list-pending-
|
234
|
+
<id>42e45d2656a04a2eb1c6c37cddb34717</id>
|
235
|
+
<account_code>charge-list-pending-1297746103</account_code>
|
233
236
|
<amount_in_cents type="integer">1000</amount_in_cents>
|
234
|
-
<start_date type="datetime">2011-
|
237
|
+
<start_date type="datetime">2011-03-11T18:48:51Z</start_date>
|
235
238
|
<end_date nil="true" type="datetime"></end_date>
|
236
239
|
<invoice_number nil="true" type="integer"></invoice_number>
|
237
240
|
<description>charge description</description>
|
238
|
-
<created_at type="datetime">2011-
|
241
|
+
<created_at type="datetime">2011-03-11T18:48:51Z</created_at>
|
239
242
|
</charge>
|
240
243
|
|
241
244
|
http_version: "1.1"
|
242
245
|
- !ruby/struct:VCR::HTTPInteraction
|
243
246
|
request: !ruby/struct:VCR::Request
|
244
247
|
method: :get
|
245
|
-
uri: http://
|
248
|
+
uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/charge-list-pending-1297746103/charges.xml?show=pending
|
246
249
|
body:
|
247
250
|
headers:
|
248
251
|
authorization:
|
249
|
-
- Basic
|
252
|
+
- Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
|
250
253
|
accept:
|
251
254
|
- application/xml
|
252
255
|
accept-encoding:
|
@@ -261,11 +264,11 @@
|
|
261
264
|
message: "OK "
|
262
265
|
headers:
|
263
266
|
x-runtime:
|
264
|
-
- "
|
267
|
+
- "191"
|
265
268
|
content-type:
|
266
269
|
- application/xml; charset=utf-8
|
267
270
|
etag:
|
268
|
-
- "\"
|
271
|
+
- "\"5128a1a2bd5c6aed3dd27f0c0dba8805\""
|
269
272
|
cache-control:
|
270
273
|
- private, max-age=0, must-revalidate
|
271
274
|
content-length:
|
@@ -273,43 +276,43 @@
|
|
273
276
|
server:
|
274
277
|
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
275
278
|
date:
|
276
|
-
-
|
279
|
+
- Fri, 11 Mar 2011 18:48:53 GMT
|
277
280
|
connection:
|
278
281
|
- close
|
279
282
|
set-cookie:
|
280
|
-
- _recurly_session=
|
283
|
+
- _recurly_session=6910fa60a0a5fc825561f895ff26a138; domain=.recurly.local; path=/; HttpOnly
|
281
284
|
body: |
|
282
285
|
<?xml version="1.0" encoding="UTF-8"?>
|
283
286
|
<charges type="array">
|
284
287
|
<charge type="charge">
|
285
|
-
<id>
|
286
|
-
<account_code>charge-list-pending-
|
288
|
+
<id>42e45d2656a04a2eb1c6c37cddb34717</id>
|
289
|
+
<account_code>charge-list-pending-1297746103</account_code>
|
287
290
|
<amount_in_cents type="integer">1000</amount_in_cents>
|
288
|
-
<start_date type="datetime">2011-
|
291
|
+
<start_date type="datetime">2011-03-11T18:48:51Z</start_date>
|
289
292
|
<end_date nil="true" type="datetime"></end_date>
|
290
293
|
<invoice_number nil="true" type="integer"></invoice_number>
|
291
294
|
<description>charge description</description>
|
292
|
-
<created_at type="datetime">2011-
|
295
|
+
<created_at type="datetime">2011-03-11T18:48:51Z</created_at>
|
293
296
|
</charge>
|
294
297
|
<charge type="charge">
|
295
|
-
<id>
|
296
|
-
<account_code>charge-list-pending-
|
298
|
+
<id>c102d16bf6b547029b8de13a5ff531aa</id>
|
299
|
+
<account_code>charge-list-pending-1297746103</account_code>
|
297
300
|
<amount_in_cents type="integer">1000</amount_in_cents>
|
298
|
-
<start_date type="datetime">2011-
|
301
|
+
<start_date type="datetime">2011-03-11T18:48:48Z</start_date>
|
299
302
|
<end_date nil="true" type="datetime"></end_date>
|
300
303
|
<invoice_number nil="true" type="integer"></invoice_number>
|
301
304
|
<description>charge description</description>
|
302
|
-
<created_at type="datetime">2011-
|
305
|
+
<created_at type="datetime">2011-03-11T18:48:48Z</created_at>
|
303
306
|
</charge>
|
304
307
|
<charge type="charge">
|
305
|
-
<id>
|
306
|
-
<account_code>charge-list-pending-
|
308
|
+
<id>5392881b785d4d97a0bce59faf344fc7</id>
|
309
|
+
<account_code>charge-list-pending-1297746103</account_code>
|
307
310
|
<amount_in_cents type="integer">1000</amount_in_cents>
|
308
|
-
<start_date type="datetime">2011-
|
311
|
+
<start_date type="datetime">2011-03-11T18:48:46Z</start_date>
|
309
312
|
<end_date nil="true" type="datetime"></end_date>
|
310
313
|
<invoice_number nil="true" type="integer"></invoice_number>
|
311
314
|
<description>charge description</description>
|
312
|
-
<created_at type="datetime">2011-
|
315
|
+
<created_at type="datetime">2011-03-11T18:48:46Z</created_at>
|
313
316
|
</charge>
|
314
317
|
</charges>
|
315
318
|
|
@@ -2,21 +2,25 @@
|
|
2
2
|
- !ruby/struct:VCR::HTTPInteraction
|
3
3
|
request: !ruby/struct:VCR::Request
|
4
4
|
method: :post
|
5
|
-
uri: http://
|
5
|
+
uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.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-1297746103</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>
|
14
18
|
<accept-language type="yaml" nil="true"></accept-language>
|
15
19
|
</account>
|
16
20
|
|
17
21
|
headers:
|
18
22
|
authorization:
|
19
|
-
- Basic
|
23
|
+
- Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
|
20
24
|
content-type:
|
21
25
|
- application/xml
|
22
26
|
accept:
|
@@ -33,9 +37,9 @@
|
|
33
37
|
cache-control:
|
34
38
|
- no-cache
|
35
39
|
location:
|
36
|
-
- http://
|
40
|
+
- http://app.recurly.local:3000/accounts/charge-lookup-1297746103
|
37
41
|
x-runtime:
|
38
|
-
- "
|
42
|
+
- "437"
|
39
43
|
content-type:
|
40
44
|
- application/xml; charset=utf-8
|
41
45
|
content-length:
|
@@ -43,18 +47,17 @@
|
|
43
47
|
server:
|
44
48
|
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
45
49
|
date:
|
46
|
-
-
|
50
|
+
- Fri, 11 Mar 2011 18:49:22 GMT
|
47
51
|
connection:
|
48
52
|
- close
|
49
53
|
set-cookie:
|
50
|
-
- account_credentials=
|
51
|
-
-
|
52
|
-
- _recurly_session=1ed8044ce7742aa7daa0631b9040f923; domain=.recurly.local; path=/; HttpOnly
|
54
|
+
- account_credentials=cefcc5eb3e571c3fafbaae2afe195d1e2c6636f88742eeb2c1dcfcab0e9751c2fe4f418eb11bbb277effcbe3f2af1aea337483fcb39ae63432b21efbe5aec280%3A%3A; domain=.recurly.local; path=/
|
55
|
+
- _recurly_session=952e2b12ba4c18a9064f67e930840b5a; domain=.recurly.local; path=/; HttpOnly
|
53
56
|
body: |
|
54
57
|
<?xml version="1.0" encoding="UTF-8"?>
|
55
58
|
<account>
|
56
|
-
<id>charge-lookup-
|
57
|
-
<account_code>charge-lookup-
|
59
|
+
<id>charge-lookup-1297746103</id>
|
60
|
+
<account_code>charge-lookup-1297746103</account_code>
|
58
61
|
<username></username>
|
59
62
|
<email>verena@test.com</email>
|
60
63
|
<first_name>Verena</first_name>
|
@@ -62,8 +65,8 @@
|
|
62
65
|
<company_name>Recurly Ruby Gem</company_name>
|
63
66
|
<balance_in_cents type="integer">0</balance_in_cents>
|
64
67
|
<closed type="boolean">false</closed>
|
65
|
-
<hosted_login_token>
|
66
|
-
<created_at type="datetime">2011-
|
68
|
+
<hosted_login_token>77053eb1dbd74050b7362d981562a502</hosted_login_token>
|
69
|
+
<created_at type="datetime">2011-03-11T18:49:22Z</created_at>
|
67
70
|
<state>active</state>
|
68
71
|
</account>
|
69
72
|
|
@@ -71,7 +74,7 @@
|
|
71
74
|
- !ruby/struct:VCR::HTTPInteraction
|
72
75
|
request: !ruby/struct:VCR::Request
|
73
76
|
method: :post
|
74
|
-
uri: http://
|
77
|
+
uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/charge-lookup-1297746103/charges.xml
|
75
78
|
body: |
|
76
79
|
<?xml version="1.0" encoding="UTF-8"?>
|
77
80
|
<charge>
|
@@ -81,7 +84,7 @@
|
|
81
84
|
|
82
85
|
headers:
|
83
86
|
authorization:
|
84
|
-
- Basic
|
87
|
+
- Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
|
85
88
|
content-type:
|
86
89
|
- application/xml
|
87
90
|
accept:
|
@@ -98,7 +101,7 @@
|
|
98
101
|
cache-control:
|
99
102
|
- no-cache
|
100
103
|
x-runtime:
|
101
|
-
- "
|
104
|
+
- "246"
|
102
105
|
content-type:
|
103
106
|
- application/xml; charset=utf-8
|
104
107
|
content-length:
|
@@ -106,33 +109,33 @@
|
|
106
109
|
server:
|
107
110
|
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
108
111
|
date:
|
109
|
-
-
|
112
|
+
- Fri, 11 Mar 2011 18:49:24 GMT
|
110
113
|
connection:
|
111
114
|
- close
|
112
115
|
set-cookie:
|
113
|
-
- _recurly_session=
|
116
|
+
- _recurly_session=291d18787a0fa468be66531f0a11c526; domain=.recurly.local; path=/; HttpOnly
|
114
117
|
body: |
|
115
118
|
<?xml version="1.0" encoding="UTF-8"?>
|
116
119
|
<charge type="charge">
|
117
|
-
<id>
|
118
|
-
<account_code>charge-lookup-
|
120
|
+
<id>d2eee537ec79476695a4e1bf8bbf7d8d</id>
|
121
|
+
<account_code>charge-lookup-1297746103</account_code>
|
119
122
|
<amount_in_cents type="integer">1315</amount_in_cents>
|
120
|
-
<start_date type="datetime">2011-
|
123
|
+
<start_date type="datetime">2011-03-11T18:49:23Z</start_date>
|
121
124
|
<end_date nil="true" type="datetime"></end_date>
|
122
125
|
<invoice_number nil="true" type="integer"></invoice_number>
|
123
126
|
<description>inconvenience fee</description>
|
124
|
-
<created_at type="datetime">2011-
|
127
|
+
<created_at type="datetime">2011-03-11T18:49:24Z</created_at>
|
125
128
|
</charge>
|
126
129
|
|
127
130
|
http_version: "1.1"
|
128
131
|
- !ruby/struct:VCR::HTTPInteraction
|
129
132
|
request: !ruby/struct:VCR::Request
|
130
133
|
method: :get
|
131
|
-
uri: http://
|
134
|
+
uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/charge-lookup-1297746103/charges/d2eee537ec79476695a4e1bf8bbf7d8d.xml
|
132
135
|
body:
|
133
136
|
headers:
|
134
137
|
authorization:
|
135
|
-
- Basic
|
138
|
+
- Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
|
136
139
|
accept:
|
137
140
|
- application/xml
|
138
141
|
accept-encoding:
|
@@ -151,7 +154,7 @@
|
|
151
154
|
content-type:
|
152
155
|
- application/xml; charset=utf-8
|
153
156
|
etag:
|
154
|
-
- "\"
|
157
|
+
- "\"b7d6fc8e32eeadfa879379ad3b113209\""
|
155
158
|
cache-control:
|
156
159
|
- private, max-age=0, must-revalidate
|
157
160
|
content-length:
|
@@ -159,22 +162,22 @@
|
|
159
162
|
server:
|
160
163
|
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
161
164
|
date:
|
162
|
-
-
|
165
|
+
- Fri, 11 Mar 2011 18:49:26 GMT
|
163
166
|
connection:
|
164
167
|
- close
|
165
168
|
set-cookie:
|
166
|
-
- _recurly_session=
|
169
|
+
- _recurly_session=fa3495760547666389e3adf0ccc40d6d; domain=.recurly.local; path=/; HttpOnly
|
167
170
|
body: |
|
168
171
|
<?xml version="1.0" encoding="UTF-8"?>
|
169
172
|
<charge type="charge">
|
170
|
-
<id>
|
171
|
-
<account_code>charge-lookup-
|
173
|
+
<id>d2eee537ec79476695a4e1bf8bbf7d8d</id>
|
174
|
+
<account_code>charge-lookup-1297746103</account_code>
|
172
175
|
<amount_in_cents type="integer">1315</amount_in_cents>
|
173
|
-
<start_date type="datetime">2011-
|
176
|
+
<start_date type="datetime">2011-03-11T18:49:23Z</start_date>
|
174
177
|
<end_date nil="true" type="datetime"></end_date>
|
175
178
|
<invoice_number nil="true" type="integer"></invoice_number>
|
176
179
|
<description>inconvenience fee</description>
|
177
|
-
<created_at type="datetime">2011-
|
180
|
+
<created_at type="datetime">2011-03-11T18:49:24Z</created_at>
|
178
181
|
</charge>
|
179
182
|
|
180
183
|
http_version: "1.1"
|