recurly 0.2.3 → 0.2.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/lib/recurly.rb +1 -0
- data/lib/recurly/charge.rb +6 -0
- data/lib/recurly/subscription.rb +23 -5
- data/lib/recurly/version.rb +1 -1
- data/spec/integration/charge_spec.rb +45 -0
- data/spec/integration/credit_spec.rb +19 -0
- data/spec/integration/subscription_spec.rb +62 -9
- data/spec/vcr/account/close/1287167046.yml +15 -15
- data/spec/vcr/account/create-blank/1287167046.yml +3 -3
- data/spec/vcr/account/create-duplicate/1287167046.yml +8 -8
- data/spec/vcr/account/create-min/1287167046.yml +6 -6
- data/spec/vcr/account/create/1287167046.yml +6 -6
- data/spec/vcr/account/find/1287167046.yml +14 -14
- data/spec/vcr/account/list/1287167046.yml +101 -101
- data/spec/vcr/account/update/1287167046.yml +26 -26
- data/spec/vcr/billing/create/1286682213.yml +15 -15
- data/spec/vcr/billing/destroy/1286682213.yml +23 -23
- data/spec/vcr/billing/find/1286682213.yml +21 -21
- data/spec/vcr/billing/update/1286682213.yml +21 -21
- data/spec/vcr/charge/create/1286681273.yml +24 -24
- data/spec/vcr/charge/delete-uninvoiced/1287460783.yml +246 -0
- data/spec/vcr/charge/list-all/1286681273.yml +37 -37
- data/spec/vcr/charge/list-invoiced/1286681273.yml +62 -62
- data/spec/vcr/charge/list-pending/1286681273.yml +37 -37
- data/spec/vcr/charge/lookup/1286681273.yml +20 -20
- data/spec/vcr/credit/create/1286681343.yml +20 -20
- data/spec/vcr/credit/create/1287460732.yml +171 -0
- data/spec/vcr/credit/create/1287461340.yml +171 -0
- data/spec/vcr/credit/delete-invoiced/1287460732.yml +233 -0
- data/spec/vcr/credit/delete-invoiced/1287461340.yml +283 -0
- data/spec/vcr/credit/delete-uninvoiced/1287459796.yml +246 -0
- data/spec/vcr/credit/delete-uninvoiced/1287460732.yml +246 -0
- data/spec/vcr/credit/delete-uninvoiced/1287461340.yml +221 -0
- data/spec/vcr/credit/list/1286681343.yml +36 -36
- data/spec/vcr/credit/list/1287460732.yml +299 -0
- data/spec/vcr/credit/list/1287461340.yml +299 -0
- data/spec/vcr/credit/lookup/1286681343.yml +20 -20
- data/spec/vcr/credit/lookup/1287460732.yml +171 -0
- data/spec/vcr/credit/lookup/1287461340.yml +171 -0
- data/spec/vcr/invoice/create-no-charges/1287167121.yml +14 -14
- data/spec/vcr/invoice/create/1287167121.yml +36 -36
- data/spec/vcr/invoice/list/1287167121.yml +52 -52
- data/spec/vcr/invoice/lookup/1287167121.yml +38 -38
- data/spec/vcr/plan/all.yml +9 -9
- data/spec/vcr/plan/delete/1286677585.yml +16 -16
- data/spec/vcr/plan/find.yml +9 -9
- data/spec/vcr/plan/update.yml +9 -9
- data/spec/vcr/subscription/{cancel/1287442108.yml → cancel-with-code/1287455769.yml} +124 -65
- data/spec/vcr/subscription/cancel/{1287439446.yml → 1287455769.yml} +59 -59
- data/spec/vcr/subscription/change1/{1287442352.yml → 1287455769.yml} +56 -56
- data/spec/vcr/subscription/change2/{1287442352.yml → 1287455769.yml} +56 -56
- data/spec/vcr/subscription/create/{1287442352.yml → 1287455769.yml} +25 -25
- data/spec/vcr/subscription/find/{1287442108.yml → 1287455769.yml} +36 -36
- data/spec/vcr/subscription/{cancel/1287442352.yml → reactivate/1287455769.yml} +107 -66
- data/spec/vcr/subscription/refund-full/{1287442108.yml → 1287455769.yml} +50 -50
- data/spec/vcr/subscription/{refund-full/1287439446.yml → refund-none/1287455769.yml} +51 -51
- data/spec/vcr/subscription/refund-partial/{1287442108.yml → 1287455769.yml} +50 -50
- data/spec/vcr/transaction/all/1287186411.yml +80 -80
- data/spec/vcr/transaction/create-no-account/1287186411.yml +7 -7
- data/spec/vcr/transaction/create-with-account/1287186411.yml +17 -17
- data/spec/vcr/transaction/list-empty/1287186411.yml +17 -17
- data/spec/vcr/transaction/list-filled/1287186411.yml +41 -41
- data/spec/vcr/transaction/lookup/1287186411.yml +50 -50
- data/spec/vcr/transaction/refund/1287186411.yml +24 -24
- data/spec/vcr/transaction/void/1287186411.yml +60 -60
- metadata +67 -56
- data/spec/vcr/subscription/change1/1287439446.yml +0 -409
- data/spec/vcr/subscription/change1/1287442108.yml +0 -409
- data/spec/vcr/subscription/change2/1287439446.yml +0 -409
- data/spec/vcr/subscription/change2/1287442108.yml +0 -409
- data/spec/vcr/subscription/create/1287439446.yml +0 -224
- data/spec/vcr/subscription/create/1287442108.yml +0 -224
- data/spec/vcr/subscription/find/1287439446.yml +0 -283
- data/spec/vcr/subscription/find/1287442352.yml +0 -283
- data/spec/vcr/subscription/refund-full/1287442352.yml +0 -382
- data/spec/vcr/subscription/refund-none/1287439446.yml +0 -382
- data/spec/vcr/subscription/refund-none/1287442108.yml +0 -382
- data/spec/vcr/subscription/refund-none/1287442352.yml +0 -382
- data/spec/vcr/subscription/refund-partial/1287439446.yml +0 -382
- data/spec/vcr/subscription/refund-partial/1287442352.yml +0 -382
@@ -34,17 +34,17 @@
|
|
34
34
|
content-type:
|
35
35
|
- application/xml; charset=utf-8
|
36
36
|
x-runtime:
|
37
|
-
- "
|
37
|
+
- "626"
|
38
38
|
date:
|
39
|
-
-
|
39
|
+
- Tue, 19 Oct 2010 03:19:06 GMT
|
40
40
|
server:
|
41
41
|
- nginx/0.7.65
|
42
42
|
content-length:
|
43
43
|
- "583"
|
44
44
|
set-cookie:
|
45
|
-
- account_credentials=
|
45
|
+
- account_credentials=13cf7f0d989850df6d21fbc693f00b49df59a8a33723ab50e3827da9107813308610497f947a099ececa46c8f07927aa9ae75061e6185342e6d09e9d38b6ecf8%3A%3A; domain=.recurly.com; path=/; secure; HttpOnly
|
46
46
|
- ""
|
47
|
-
- _recurly_session=
|
47
|
+
- _recurly_session=facedaa7835c10218a5985870af153e8; domain=.recurly.com; path=/; Secure; HttpOnly
|
48
48
|
cache-control:
|
49
49
|
- no-cache
|
50
50
|
body: |
|
@@ -59,8 +59,8 @@
|
|
59
59
|
<company_name>Recurly Ruby Gem</company_name>
|
60
60
|
<balance_in_cents type="integer">0</balance_in_cents>
|
61
61
|
<closed type="boolean">false</closed>
|
62
|
-
<hosted_login_token>
|
63
|
-
<created_at type="datetime">2010-10-
|
62
|
+
<hosted_login_token>59bc4242ec4f4dfa8b072cdecda8e07a</hosted_login_token>
|
63
|
+
<created_at type="datetime">2010-10-19T03:19:06Z</created_at>
|
64
64
|
<state>active</state>
|
65
65
|
</account>
|
66
66
|
|
@@ -105,21 +105,21 @@
|
|
105
105
|
x-ua-compatible:
|
106
106
|
- IE=Edge
|
107
107
|
etag:
|
108
|
-
- "\"
|
108
|
+
- "\"675f70c8940ccb58295d96f2293bdbce\""
|
109
109
|
connection:
|
110
110
|
- close
|
111
111
|
content-type:
|
112
112
|
- application/xml; charset=utf-8
|
113
113
|
x-runtime:
|
114
|
-
- "
|
114
|
+
- "58"
|
115
115
|
date:
|
116
|
-
-
|
116
|
+
- Tue, 19 Oct 2010 03:19:07 GMT
|
117
117
|
server:
|
118
118
|
- nginx/0.7.65
|
119
119
|
content-length:
|
120
120
|
- "639"
|
121
121
|
set-cookie:
|
122
|
-
- _recurly_session=
|
122
|
+
- _recurly_session=8381cc65266d7fb565ed80009e4a3298; domain=.recurly.com; path=/; Secure; HttpOnly
|
123
123
|
cache-control:
|
124
124
|
- private, max-age=0, must-revalidate
|
125
125
|
body: |
|
@@ -143,7 +143,7 @@
|
|
143
143
|
<month type="integer">10</month>
|
144
144
|
<year type="integer">2011</year>
|
145
145
|
</credit_card>
|
146
|
-
<updated_at type="datetime">2010-10-
|
146
|
+
<updated_at type="datetime">2010-10-19T03:19:07Z</updated_at>
|
147
147
|
</billing_info>
|
148
148
|
|
149
149
|
http_version: "1.1"
|
@@ -186,21 +186,21 @@
|
|
186
186
|
x-ua-compatible:
|
187
187
|
- IE=Edge
|
188
188
|
etag:
|
189
|
-
- "\"
|
189
|
+
- "\"67f8849790e0564f067a4bcfc7b65f77\""
|
190
190
|
connection:
|
191
191
|
- close
|
192
192
|
content-type:
|
193
193
|
- application/xml; charset=utf-8
|
194
194
|
x-runtime:
|
195
|
-
- "
|
195
|
+
- "82"
|
196
196
|
date:
|
197
|
-
-
|
197
|
+
- Tue, 19 Oct 2010 03:19:07 GMT
|
198
198
|
server:
|
199
199
|
- nginx/0.7.65
|
200
200
|
content-length:
|
201
201
|
- "651"
|
202
202
|
set-cookie:
|
203
|
-
- _recurly_session=
|
203
|
+
- _recurly_session=e7b48f70d7e64d47b5a7796019190347; domain=.recurly.com; path=/; Secure; HttpOnly
|
204
204
|
cache-control:
|
205
205
|
- private, max-age=0, must-revalidate
|
206
206
|
body: |
|
@@ -224,7 +224,7 @@
|
|
224
224
|
<month type="integer">10</month>
|
225
225
|
<year type="integer">2011</year>
|
226
226
|
</credit_card>
|
227
|
-
<updated_at type="datetime">2010-10-
|
227
|
+
<updated_at type="datetime">2010-10-19T03:19:07Z</updated_at>
|
228
228
|
</billing_info>
|
229
229
|
|
230
230
|
http_version: "1.1"
|
@@ -248,21 +248,21 @@
|
|
248
248
|
x-ua-compatible:
|
249
249
|
- IE=Edge
|
250
250
|
etag:
|
251
|
-
- "\"
|
251
|
+
- "\"67f8849790e0564f067a4bcfc7b65f77\""
|
252
252
|
connection:
|
253
253
|
- close
|
254
254
|
content-type:
|
255
255
|
- application/xml; charset=utf-8
|
256
256
|
x-runtime:
|
257
|
-
- "
|
257
|
+
- "23"
|
258
258
|
date:
|
259
|
-
-
|
259
|
+
- Tue, 19 Oct 2010 03:19:08 GMT
|
260
260
|
server:
|
261
261
|
- nginx/0.7.65
|
262
262
|
content-length:
|
263
263
|
- "651"
|
264
264
|
set-cookie:
|
265
|
-
- _recurly_session=
|
265
|
+
- _recurly_session=0a5c505230309f462ea9512c130ba7b3; domain=.recurly.com; path=/; Secure; HttpOnly
|
266
266
|
cache-control:
|
267
267
|
- private, max-age=0, must-revalidate
|
268
268
|
body: |
|
@@ -286,7 +286,7 @@
|
|
286
286
|
<month type="integer">10</month>
|
287
287
|
<year type="integer">2011</year>
|
288
288
|
</credit_card>
|
289
|
-
<updated_at type="datetime">2010-10-
|
289
|
+
<updated_at type="datetime">2010-10-19T03:19:07Z</updated_at>
|
290
290
|
</billing_info>
|
291
291
|
|
292
292
|
http_version: "1.1"
|
@@ -34,17 +34,17 @@
|
|
34
34
|
content-type:
|
35
35
|
- application/xml; charset=utf-8
|
36
36
|
x-runtime:
|
37
|
-
- "
|
37
|
+
- "744"
|
38
38
|
date:
|
39
|
-
-
|
39
|
+
- Tue, 19 Oct 2010 03:19:30 GMT
|
40
40
|
server:
|
41
41
|
- nginx/0.7.65
|
42
42
|
content-length:
|
43
43
|
- "581"
|
44
44
|
set-cookie:
|
45
|
-
- account_credentials=
|
45
|
+
- account_credentials=1aed4db1b923298895303c6f97272774a19418df4895f355ab0cccfe81988d59324ff95ea92ec814ad6addc654719a9d4b68f8ad10d61d2faecbe18a2d0fd537%3A%3A; domain=.recurly.com; path=/; secure; HttpOnly
|
46
46
|
- ""
|
47
|
-
- _recurly_session=
|
47
|
+
- _recurly_session=7c3346f522afd3800647a4ebcdb9bbb0; domain=.recurly.com; path=/; Secure; HttpOnly
|
48
48
|
cache-control:
|
49
49
|
- no-cache
|
50
50
|
body: |
|
@@ -59,8 +59,8 @@
|
|
59
59
|
<company_name>Recurly Ruby Gem</company_name>
|
60
60
|
<balance_in_cents type="integer">0</balance_in_cents>
|
61
61
|
<closed type="boolean">false</closed>
|
62
|
-
<hosted_login_token>
|
63
|
-
<created_at type="datetime">2010-10-
|
62
|
+
<hosted_login_token>e9b1d2af6df945628b6c295491f4f932</hosted_login_token>
|
63
|
+
<created_at type="datetime">2010-10-19T03:19:30Z</created_at>
|
64
64
|
<state>active</state>
|
65
65
|
</account>
|
66
66
|
|
@@ -105,21 +105,21 @@
|
|
105
105
|
x-ua-compatible:
|
106
106
|
- IE=Edge
|
107
107
|
etag:
|
108
|
-
- "\"
|
108
|
+
- "\"8df3fdb1e7ad60606575611fd66e80b9\""
|
109
109
|
connection:
|
110
110
|
- close
|
111
111
|
content-type:
|
112
112
|
- application/xml; charset=utf-8
|
113
113
|
x-runtime:
|
114
|
-
- "
|
114
|
+
- "58"
|
115
115
|
date:
|
116
|
-
-
|
116
|
+
- Tue, 19 Oct 2010 03:19:31 GMT
|
117
117
|
server:
|
118
118
|
- nginx/0.7.65
|
119
119
|
content-length:
|
120
120
|
- "638"
|
121
121
|
set-cookie:
|
122
|
-
- _recurly_session=
|
122
|
+
- _recurly_session=856caab5eb326fc6defef8d09d462e2c; domain=.recurly.com; path=/; Secure; HttpOnly
|
123
123
|
cache-control:
|
124
124
|
- private, max-age=0, must-revalidate
|
125
125
|
body: |
|
@@ -143,7 +143,7 @@
|
|
143
143
|
<month type="integer">10</month>
|
144
144
|
<year type="integer">2011</year>
|
145
145
|
</credit_card>
|
146
|
-
<updated_at type="datetime">2010-10-
|
146
|
+
<updated_at type="datetime">2010-10-19T03:19:31Z</updated_at>
|
147
147
|
</billing_info>
|
148
148
|
|
149
149
|
http_version: "1.1"
|
@@ -179,32 +179,32 @@
|
|
179
179
|
x-runtime:
|
180
180
|
- "46"
|
181
181
|
date:
|
182
|
-
-
|
182
|
+
- Tue, 19 Oct 2010 03:19:32 GMT
|
183
183
|
server:
|
184
184
|
- nginx/0.7.65
|
185
185
|
content-length:
|
186
186
|
- "462"
|
187
187
|
set-cookie:
|
188
|
-
- _recurly_session=
|
188
|
+
- _recurly_session=7d88ae6a6961fd63326d721691ca81f0; domain=.recurly.com; path=/; Secure; HttpOnly
|
189
189
|
cache-control:
|
190
190
|
- no-cache
|
191
191
|
body: |
|
192
192
|
<?xml version="1.0" encoding="UTF-8"?>
|
193
193
|
<charge type="charge">
|
194
|
-
<id>
|
194
|
+
<id>e07d36d56b1f4ea6bdb72462a50b6d9c</id>
|
195
195
|
<account_code>charge-create-1286681273</account_code>
|
196
196
|
<amount_in_cents type="integer">250</amount_in_cents>
|
197
|
-
<start_date type="datetime">2010-10-
|
197
|
+
<start_date type="datetime">2010-10-19T03:19:32Z</start_date>
|
198
198
|
<end_date nil="true" type="datetime"></end_date>
|
199
199
|
<description>virtual cow maintence fee</description>
|
200
|
-
<created_at type="datetime">2010-10-
|
200
|
+
<created_at type="datetime">2010-10-19T03:19:32Z</created_at>
|
201
201
|
</charge>
|
202
202
|
|
203
203
|
http_version: "1.1"
|
204
204
|
- !ruby/struct:VCR::HTTPInteraction
|
205
205
|
request: !ruby/struct:VCR::Request
|
206
206
|
method: :get
|
207
|
-
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/charge-create-1286681273/charges/
|
207
|
+
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/charge-create-1286681273/charges/e07d36d56b1f4ea6bdb72462a50b6d9c.xml
|
208
208
|
body:
|
209
209
|
headers:
|
210
210
|
accept:
|
@@ -221,33 +221,33 @@
|
|
221
221
|
x-ua-compatible:
|
222
222
|
- IE=Edge
|
223
223
|
etag:
|
224
|
-
- "\"
|
224
|
+
- "\"0e262adcd558d201bc09be02ab31c171\""
|
225
225
|
connection:
|
226
226
|
- close
|
227
227
|
content-type:
|
228
228
|
- application/xml; charset=utf-8
|
229
229
|
x-runtime:
|
230
|
-
- "
|
230
|
+
- "23"
|
231
231
|
date:
|
232
|
-
-
|
232
|
+
- Tue, 19 Oct 2010 03:19:32 GMT
|
233
233
|
server:
|
234
234
|
- nginx/0.7.65
|
235
235
|
content-length:
|
236
236
|
- "462"
|
237
237
|
set-cookie:
|
238
|
-
- _recurly_session=
|
238
|
+
- _recurly_session=12a8909bc4405b9b6316ae5500c98162; domain=.recurly.com; path=/; Secure; HttpOnly
|
239
239
|
cache-control:
|
240
240
|
- private, max-age=0, must-revalidate
|
241
241
|
body: |
|
242
242
|
<?xml version="1.0" encoding="UTF-8"?>
|
243
243
|
<charge type="charge">
|
244
|
-
<id>
|
244
|
+
<id>e07d36d56b1f4ea6bdb72462a50b6d9c</id>
|
245
245
|
<account_code>charge-create-1286681273</account_code>
|
246
246
|
<amount_in_cents type="integer">250</amount_in_cents>
|
247
|
-
<start_date type="datetime">2010-10-
|
247
|
+
<start_date type="datetime">2010-10-19T03:19:32Z</start_date>
|
248
248
|
<end_date nil="true" type="datetime"></end_date>
|
249
249
|
<description>virtual cow maintence fee</description>
|
250
|
-
<created_at type="datetime">2010-10-
|
250
|
+
<created_at type="datetime">2010-10-19T03:19:32Z</created_at>
|
251
251
|
</charge>
|
252
252
|
|
253
253
|
http_version: "1.1"
|
@@ -0,0 +1,246 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
|
+
method: :post
|
5
|
+
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts.xml
|
6
|
+
body: |
|
7
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
8
|
+
<account>
|
9
|
+
<company-name>Recurly Ruby Gem</company-name>
|
10
|
+
<account-code>charge-delete-uinvoiced-1287460783</account-code>
|
11
|
+
<last-name>Test</last-name>
|
12
|
+
<email>verena@test.com</email>
|
13
|
+
<first-name>Verena</first-name>
|
14
|
+
</account>
|
15
|
+
|
16
|
+
headers:
|
17
|
+
accept:
|
18
|
+
- "*/*"
|
19
|
+
connection:
|
20
|
+
- close
|
21
|
+
content-type:
|
22
|
+
- application/xml
|
23
|
+
authorization:
|
24
|
+
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
25
|
+
response: !ruby/struct:VCR::Response
|
26
|
+
status: !ruby/struct:VCR::ResponseStatus
|
27
|
+
code: 201
|
28
|
+
message: Created
|
29
|
+
headers:
|
30
|
+
location:
|
31
|
+
- https://recurlytest3-test.recurly.com/accounts/charge-delete-uinvoiced-1287460783
|
32
|
+
connection:
|
33
|
+
- close
|
34
|
+
content-type:
|
35
|
+
- application/xml; charset=utf-8
|
36
|
+
x-runtime:
|
37
|
+
- "591"
|
38
|
+
date:
|
39
|
+
- Tue, 19 Oct 2010 04:00:00 GMT
|
40
|
+
server:
|
41
|
+
- nginx/0.7.65
|
42
|
+
content-length:
|
43
|
+
- "601"
|
44
|
+
set-cookie:
|
45
|
+
- account_credentials=d43d5a05a2fbf8f0303044593431aeecd6efd79abedb18b41bc851b1c62223454a051b20f8e9e98b8fb0dc38455b4644b7f12b37b848ecbcb55c1213d593ee98%3A%3A; domain=.recurly.com; path=/; secure; HttpOnly
|
46
|
+
- ""
|
47
|
+
- _recurly_session=b78a8fea22aa6bbfd01e3b640f33969e; domain=.recurly.com; path=/; Secure; HttpOnly
|
48
|
+
cache-control:
|
49
|
+
- no-cache
|
50
|
+
body: |
|
51
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
52
|
+
<account>
|
53
|
+
<id>charge-delete-uinvoiced-1287460783</id>
|
54
|
+
<account_code>charge-delete-uinvoiced-1287460783</account_code>
|
55
|
+
<username></username>
|
56
|
+
<email>verena@test.com</email>
|
57
|
+
<first_name>Verena</first_name>
|
58
|
+
<last_name>Test</last_name>
|
59
|
+
<company_name>Recurly Ruby Gem</company_name>
|
60
|
+
<balance_in_cents type="integer">0</balance_in_cents>
|
61
|
+
<closed type="boolean">false</closed>
|
62
|
+
<hosted_login_token>c4acfeb4879c4b50b99060bd27dbae85</hosted_login_token>
|
63
|
+
<created_at type="datetime">2010-10-19T04:00:00Z</created_at>
|
64
|
+
<state>active</state>
|
65
|
+
</account>
|
66
|
+
|
67
|
+
http_version: "1.1"
|
68
|
+
- !ruby/struct:VCR::HTTPInteraction
|
69
|
+
request: !ruby/struct:VCR::Request
|
70
|
+
method: :post
|
71
|
+
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/charge-delete-uinvoiced-1287460783/charges.xml
|
72
|
+
body: |
|
73
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
74
|
+
<charge>
|
75
|
+
<amount type="float">13.15</amount>
|
76
|
+
<description>inconvenience fee</description>
|
77
|
+
</charge>
|
78
|
+
|
79
|
+
headers:
|
80
|
+
accept:
|
81
|
+
- "*/*"
|
82
|
+
connection:
|
83
|
+
- close
|
84
|
+
content-type:
|
85
|
+
- application/xml
|
86
|
+
authorization:
|
87
|
+
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
88
|
+
response: !ruby/struct:VCR::Response
|
89
|
+
status: !ruby/struct:VCR::ResponseStatus
|
90
|
+
code: 201
|
91
|
+
message: Created
|
92
|
+
headers:
|
93
|
+
connection:
|
94
|
+
- close
|
95
|
+
content-type:
|
96
|
+
- application/xml; charset=utf-8
|
97
|
+
x-runtime:
|
98
|
+
- "48"
|
99
|
+
date:
|
100
|
+
- Tue, 19 Oct 2010 04:00:01 GMT
|
101
|
+
server:
|
102
|
+
- nginx/0.7.65
|
103
|
+
content-length:
|
104
|
+
- "465"
|
105
|
+
set-cookie:
|
106
|
+
- _recurly_session=6a250b6c4258c065afaf47f218cd1f41; domain=.recurly.com; path=/; Secure; HttpOnly
|
107
|
+
cache-control:
|
108
|
+
- no-cache
|
109
|
+
body: |
|
110
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
111
|
+
<charge type="charge">
|
112
|
+
<id>f4362037074d4ccfab0f83bfe44b62b5</id>
|
113
|
+
<account_code>charge-delete-uinvoiced-1287460783</account_code>
|
114
|
+
<amount_in_cents type="integer">1315</amount_in_cents>
|
115
|
+
<start_date type="datetime">2010-10-19T04:00:01Z</start_date>
|
116
|
+
<end_date nil="true" type="datetime"></end_date>
|
117
|
+
<description>inconvenience fee</description>
|
118
|
+
<created_at type="datetime">2010-10-19T04:00:01Z</created_at>
|
119
|
+
</charge>
|
120
|
+
|
121
|
+
http_version: "1.1"
|
122
|
+
- !ruby/struct:VCR::HTTPInteraction
|
123
|
+
request: !ruby/struct:VCR::Request
|
124
|
+
method: :get
|
125
|
+
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/charge-delete-uinvoiced-1287460783/charges/f4362037074d4ccfab0f83bfe44b62b5.xml
|
126
|
+
body:
|
127
|
+
headers:
|
128
|
+
accept:
|
129
|
+
- application/xml
|
130
|
+
connection:
|
131
|
+
- close
|
132
|
+
authorization:
|
133
|
+
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
134
|
+
response: !ruby/struct:VCR::Response
|
135
|
+
status: !ruby/struct:VCR::ResponseStatus
|
136
|
+
code: 200
|
137
|
+
message: OK
|
138
|
+
headers:
|
139
|
+
x-ua-compatible:
|
140
|
+
- IE=Edge
|
141
|
+
etag:
|
142
|
+
- "\"927837ff63c4e20d5184750061d009b1\""
|
143
|
+
connection:
|
144
|
+
- close
|
145
|
+
content-type:
|
146
|
+
- application/xml; charset=utf-8
|
147
|
+
x-runtime:
|
148
|
+
- "23"
|
149
|
+
date:
|
150
|
+
- Tue, 19 Oct 2010 04:00:01 GMT
|
151
|
+
server:
|
152
|
+
- nginx/0.7.65
|
153
|
+
content-length:
|
154
|
+
- "465"
|
155
|
+
set-cookie:
|
156
|
+
- _recurly_session=773a72425d047ec0ea742a973974cd0b; domain=.recurly.com; path=/; Secure; HttpOnly
|
157
|
+
cache-control:
|
158
|
+
- private, max-age=0, must-revalidate
|
159
|
+
body: |
|
160
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
161
|
+
<charge type="charge">
|
162
|
+
<id>f4362037074d4ccfab0f83bfe44b62b5</id>
|
163
|
+
<account_code>charge-delete-uinvoiced-1287460783</account_code>
|
164
|
+
<amount_in_cents type="integer">1315</amount_in_cents>
|
165
|
+
<start_date type="datetime">2010-10-19T04:00:01Z</start_date>
|
166
|
+
<end_date nil="true" type="datetime"></end_date>
|
167
|
+
<description>inconvenience fee</description>
|
168
|
+
<created_at type="datetime">2010-10-19T04:00:01Z</created_at>
|
169
|
+
</charge>
|
170
|
+
|
171
|
+
http_version: "1.1"
|
172
|
+
- !ruby/struct:VCR::HTTPInteraction
|
173
|
+
request: !ruby/struct:VCR::Request
|
174
|
+
method: :delete
|
175
|
+
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/charge-delete-uinvoiced-1287460783/charges/f4362037074d4ccfab0f83bfe44b62b5.xml
|
176
|
+
body:
|
177
|
+
headers:
|
178
|
+
accept:
|
179
|
+
- application/xml
|
180
|
+
connection:
|
181
|
+
- close
|
182
|
+
authorization:
|
183
|
+
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
184
|
+
response: !ruby/struct:VCR::Response
|
185
|
+
status: !ruby/struct:VCR::ResponseStatus
|
186
|
+
code: 200
|
187
|
+
message: OK
|
188
|
+
headers:
|
189
|
+
x-ua-compatible:
|
190
|
+
- IE=Edge
|
191
|
+
connection:
|
192
|
+
- close
|
193
|
+
content-type:
|
194
|
+
- application/xml; charset=utf-8
|
195
|
+
x-runtime:
|
196
|
+
- "43"
|
197
|
+
date:
|
198
|
+
- Tue, 19 Oct 2010 04:00:02 GMT
|
199
|
+
server:
|
200
|
+
- nginx/0.7.65
|
201
|
+
content-length:
|
202
|
+
- "1"
|
203
|
+
set-cookie:
|
204
|
+
- _recurly_session=6592f7f85eb31220ec25e48ea9363d4c; domain=.recurly.com; path=/; Secure; HttpOnly
|
205
|
+
cache-control:
|
206
|
+
- no-cache
|
207
|
+
body: " "
|
208
|
+
http_version: "1.1"
|
209
|
+
- !ruby/struct:VCR::HTTPInteraction
|
210
|
+
request: !ruby/struct:VCR::Request
|
211
|
+
method: :get
|
212
|
+
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/charge-delete-uinvoiced-1287460783/charges/f4362037074d4ccfab0f83bfe44b62b5.xml
|
213
|
+
body:
|
214
|
+
headers:
|
215
|
+
accept:
|
216
|
+
- application/xml
|
217
|
+
connection:
|
218
|
+
- close
|
219
|
+
authorization:
|
220
|
+
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
221
|
+
response: !ruby/struct:VCR::Response
|
222
|
+
status: !ruby/struct:VCR::ResponseStatus
|
223
|
+
code: 404
|
224
|
+
message: Not Found
|
225
|
+
headers:
|
226
|
+
connection:
|
227
|
+
- close
|
228
|
+
content-type:
|
229
|
+
- application/xml; charset=utf-8
|
230
|
+
date:
|
231
|
+
- Tue, 19 Oct 2010 04:00:02 GMT
|
232
|
+
server:
|
233
|
+
- nginx/0.7.65
|
234
|
+
content-length:
|
235
|
+
- "92"
|
236
|
+
set-cookie:
|
237
|
+
- _recurly_session=be0fdb71c97c51be1e0ed15771d34029; domain=.recurly.com; path=/; Secure; HttpOnly
|
238
|
+
cache-control:
|
239
|
+
- no-cache
|
240
|
+
body: |
|
241
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
242
|
+
<errors>
|
243
|
+
<error>Charge not found</error>
|
244
|
+
</errors>
|
245
|
+
|
246
|
+
http_version: "1.1"
|