recurly 0.2.4 → 0.2.5

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