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.

Files changed (80) hide show
  1. data/lib/recurly.rb +1 -0
  2. data/lib/recurly/charge.rb +6 -0
  3. data/lib/recurly/subscription.rb +23 -5
  4. data/lib/recurly/version.rb +1 -1
  5. data/spec/integration/charge_spec.rb +45 -0
  6. data/spec/integration/credit_spec.rb +19 -0
  7. data/spec/integration/subscription_spec.rb +62 -9
  8. data/spec/vcr/account/close/1287167046.yml +15 -15
  9. data/spec/vcr/account/create-blank/1287167046.yml +3 -3
  10. data/spec/vcr/account/create-duplicate/1287167046.yml +8 -8
  11. data/spec/vcr/account/create-min/1287167046.yml +6 -6
  12. data/spec/vcr/account/create/1287167046.yml +6 -6
  13. data/spec/vcr/account/find/1287167046.yml +14 -14
  14. data/spec/vcr/account/list/1287167046.yml +101 -101
  15. data/spec/vcr/account/update/1287167046.yml +26 -26
  16. data/spec/vcr/billing/create/1286682213.yml +15 -15
  17. data/spec/vcr/billing/destroy/1286682213.yml +23 -23
  18. data/spec/vcr/billing/find/1286682213.yml +21 -21
  19. data/spec/vcr/billing/update/1286682213.yml +21 -21
  20. data/spec/vcr/charge/create/1286681273.yml +24 -24
  21. data/spec/vcr/charge/delete-uninvoiced/1287460783.yml +246 -0
  22. data/spec/vcr/charge/list-all/1286681273.yml +37 -37
  23. data/spec/vcr/charge/list-invoiced/1286681273.yml +62 -62
  24. data/spec/vcr/charge/list-pending/1286681273.yml +37 -37
  25. data/spec/vcr/charge/lookup/1286681273.yml +20 -20
  26. data/spec/vcr/credit/create/1286681343.yml +20 -20
  27. data/spec/vcr/credit/create/1287460732.yml +171 -0
  28. data/spec/vcr/credit/create/1287461340.yml +171 -0
  29. data/spec/vcr/credit/delete-invoiced/1287460732.yml +233 -0
  30. data/spec/vcr/credit/delete-invoiced/1287461340.yml +283 -0
  31. data/spec/vcr/credit/delete-uninvoiced/1287459796.yml +246 -0
  32. data/spec/vcr/credit/delete-uninvoiced/1287460732.yml +246 -0
  33. data/spec/vcr/credit/delete-uninvoiced/1287461340.yml +221 -0
  34. data/spec/vcr/credit/list/1286681343.yml +36 -36
  35. data/spec/vcr/credit/list/1287460732.yml +299 -0
  36. data/spec/vcr/credit/list/1287461340.yml +299 -0
  37. data/spec/vcr/credit/lookup/1286681343.yml +20 -20
  38. data/spec/vcr/credit/lookup/1287460732.yml +171 -0
  39. data/spec/vcr/credit/lookup/1287461340.yml +171 -0
  40. data/spec/vcr/invoice/create-no-charges/1287167121.yml +14 -14
  41. data/spec/vcr/invoice/create/1287167121.yml +36 -36
  42. data/spec/vcr/invoice/list/1287167121.yml +52 -52
  43. data/spec/vcr/invoice/lookup/1287167121.yml +38 -38
  44. data/spec/vcr/plan/all.yml +9 -9
  45. data/spec/vcr/plan/delete/1286677585.yml +16 -16
  46. data/spec/vcr/plan/find.yml +9 -9
  47. data/spec/vcr/plan/update.yml +9 -9
  48. data/spec/vcr/subscription/{cancel/1287442108.yml → cancel-with-code/1287455769.yml} +124 -65
  49. data/spec/vcr/subscription/cancel/{1287439446.yml → 1287455769.yml} +59 -59
  50. data/spec/vcr/subscription/change1/{1287442352.yml → 1287455769.yml} +56 -56
  51. data/spec/vcr/subscription/change2/{1287442352.yml → 1287455769.yml} +56 -56
  52. data/spec/vcr/subscription/create/{1287442352.yml → 1287455769.yml} +25 -25
  53. data/spec/vcr/subscription/find/{1287442108.yml → 1287455769.yml} +36 -36
  54. data/spec/vcr/subscription/{cancel/1287442352.yml → reactivate/1287455769.yml} +107 -66
  55. data/spec/vcr/subscription/refund-full/{1287442108.yml → 1287455769.yml} +50 -50
  56. data/spec/vcr/subscription/{refund-full/1287439446.yml → refund-none/1287455769.yml} +51 -51
  57. data/spec/vcr/subscription/refund-partial/{1287442108.yml → 1287455769.yml} +50 -50
  58. data/spec/vcr/transaction/all/1287186411.yml +80 -80
  59. data/spec/vcr/transaction/create-no-account/1287186411.yml +7 -7
  60. data/spec/vcr/transaction/create-with-account/1287186411.yml +17 -17
  61. data/spec/vcr/transaction/list-empty/1287186411.yml +17 -17
  62. data/spec/vcr/transaction/list-filled/1287186411.yml +41 -41
  63. data/spec/vcr/transaction/lookup/1287186411.yml +50 -50
  64. data/spec/vcr/transaction/refund/1287186411.yml +24 -24
  65. data/spec/vcr/transaction/void/1287186411.yml +60 -60
  66. metadata +67 -56
  67. data/spec/vcr/subscription/change1/1287439446.yml +0 -409
  68. data/spec/vcr/subscription/change1/1287442108.yml +0 -409
  69. data/spec/vcr/subscription/change2/1287439446.yml +0 -409
  70. data/spec/vcr/subscription/change2/1287442108.yml +0 -409
  71. data/spec/vcr/subscription/create/1287439446.yml +0 -224
  72. data/spec/vcr/subscription/create/1287442108.yml +0 -224
  73. data/spec/vcr/subscription/find/1287439446.yml +0 -283
  74. data/spec/vcr/subscription/find/1287442352.yml +0 -283
  75. data/spec/vcr/subscription/refund-full/1287442352.yml +0 -382
  76. data/spec/vcr/subscription/refund-none/1287439446.yml +0 -382
  77. data/spec/vcr/subscription/refund-none/1287442108.yml +0 -382
  78. data/spec/vcr/subscription/refund-none/1287442352.yml +0 -382
  79. data/spec/vcr/subscription/refund-partial/1287439446.yml +0 -382
  80. 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
- - "603"
37
+ - "626"
38
38
  date:
39
- - Mon, 18 Oct 2010 22:05:11 GMT
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=15485d7cc490cb3f73d9477baabbab907fe9dffc9a8798a223c58b507c9f578ad4014dfdc6d8a48f44bce3257261aa7db6b97f93269056baa073a5f037f24125%3A%3A; domain=.recurly.com; path=/; secure; HttpOnly
45
+ - account_credentials=13cf7f0d989850df6d21fbc693f00b49df59a8a33723ab50e3827da9107813308610497f947a099ececa46c8f07927aa9ae75061e6185342e6d09e9d38b6ecf8%3A%3A; domain=.recurly.com; path=/; secure; HttpOnly
46
46
  - ""
47
- - _recurly_session=6ac3f0ec5b09a0a6513858a866f9b508; domain=.recurly.com; path=/; Secure; HttpOnly
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>25a628c99c6c43e8b6b44a9897fafb74</hosted_login_token>
63
- <created_at type="datetime">2010-10-18T22:05:11Z</created_at>
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
- - "\"d466542b6ff45eab4eca9457d991a7cd\""
108
+ - "\"675f70c8940ccb58295d96f2293bdbce\""
109
109
  connection:
110
110
  - close
111
111
  content-type:
112
112
  - application/xml; charset=utf-8
113
113
  x-runtime:
114
- - "118"
114
+ - "58"
115
115
  date:
116
- - Mon, 18 Oct 2010 22:05:12 GMT
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=6a6e5c53764282ba405ea9ebad99089c; domain=.recurly.com; path=/; Secure; HttpOnly
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-18T22:05:12Z</updated_at>
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
- - "\"898345f772c60cc1568737ed7243563a\""
189
+ - "\"67f8849790e0564f067a4bcfc7b65f77\""
190
190
  connection:
191
191
  - close
192
192
  content-type:
193
193
  - application/xml; charset=utf-8
194
194
  x-runtime:
195
- - "65"
195
+ - "82"
196
196
  date:
197
- - Mon, 18 Oct 2010 22:05:12 GMT
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=bc2c3d7e34837f92479cdabe2fdd8dcb; domain=.recurly.com; path=/; Secure; HttpOnly
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-18T22:05:12Z</updated_at>
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
- - "\"898345f772c60cc1568737ed7243563a\""
251
+ - "\"67f8849790e0564f067a4bcfc7b65f77\""
252
252
  connection:
253
253
  - close
254
254
  content-type:
255
255
  - application/xml; charset=utf-8
256
256
  x-runtime:
257
- - "13"
257
+ - "23"
258
258
  date:
259
- - Mon, 18 Oct 2010 22:05:13 GMT
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=ba73dcba4aa5431e2ad272a55f37f643; domain=.recurly.com; path=/; Secure; HttpOnly
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-18T22:05:12Z</updated_at>
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
- - "766"
37
+ - "744"
38
38
  date:
39
- - Mon, 18 Oct 2010 22:05:36 GMT
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=0709f32778be5a870a027f201b8ae9535cee0bfde072b0f87cb35167580cf8b79325eb8b4c6c7edca656c7c98661a761b2d97b995832b7815e28c41a68e680e0%3A%3A; domain=.recurly.com; path=/; secure; HttpOnly
45
+ - account_credentials=1aed4db1b923298895303c6f97272774a19418df4895f355ab0cccfe81988d59324ff95ea92ec814ad6addc654719a9d4b68f8ad10d61d2faecbe18a2d0fd537%3A%3A; domain=.recurly.com; path=/; secure; HttpOnly
46
46
  - ""
47
- - _recurly_session=8bf4868355fd63b1f92f25e71219eae6; domain=.recurly.com; path=/; Secure; HttpOnly
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>ec535326dcfc4b18a8518282d0ba0b61</hosted_login_token>
63
- <created_at type="datetime">2010-10-18T22:05:36Z</created_at>
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
- - "\"8ae769dc6b5f39be15d93faa05c47df5\""
108
+ - "\"8df3fdb1e7ad60606575611fd66e80b9\""
109
109
  connection:
110
110
  - close
111
111
  content-type:
112
112
  - application/xml; charset=utf-8
113
113
  x-runtime:
114
- - "82"
114
+ - "58"
115
115
  date:
116
- - Mon, 18 Oct 2010 22:05:37 GMT
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=3b783851fe9fc7595ef9b415c5671ae5; domain=.recurly.com; path=/; Secure; HttpOnly
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-18T22:05:37Z</updated_at>
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
- - Mon, 18 Oct 2010 22:05:38 GMT
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=a26de32287b8d1ce67b384f7d60ff594; domain=.recurly.com; path=/; Secure; HttpOnly
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>fc42050f9ea9439dab20f33f894d223f</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-18T22:05:38Z</start_date>
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-18T22:05:38Z</created_at>
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/fc42050f9ea9439dab20f33f894d223f.xml
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
- - "\"0d5f13c301b86f91eee5fdecbbd620b3\""
224
+ - "\"0e262adcd558d201bc09be02ab31c171\""
225
225
  connection:
226
226
  - close
227
227
  content-type:
228
228
  - application/xml; charset=utf-8
229
229
  x-runtime:
230
- - "14"
230
+ - "23"
231
231
  date:
232
- - Mon, 18 Oct 2010 22:05:38 GMT
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=b1698159d6b59b5ca9cedc4361d6f00f; domain=.recurly.com; path=/; Secure; HttpOnly
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>fc42050f9ea9439dab20f33f894d223f</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-18T22:05:38Z</start_date>
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-18T22:05:38Z</created_at>
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"