recurly 0.2.2 → 0.2.3

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 (72) hide show
  1. data/lib/recurly/subscription.rb +2 -3
  2. data/lib/recurly/version.rb +1 -1
  3. data/spec/integration/account_spec.rb +0 -2
  4. data/spec/integration/invoice_spec.rb +0 -1
  5. data/spec/integration/subscription_spec.rb +49 -10
  6. data/spec/integration/transaction_spec.rb +3 -2
  7. data/spec/support/factory.rb +2 -2
  8. data/spec/vcr/account/close/{1286666929.yml → 1287167046.yml} +23 -23
  9. data/spec/vcr/account/create/{1286666929.yml → 1287167046.yml} +10 -10
  10. data/spec/vcr/account/create-blank/{1286666929.yml → 1287167046.yml} +3 -3
  11. data/spec/vcr/account/create-duplicate/{1286666929.yml → 1287167046.yml} +27 -12
  12. data/spec/vcr/account/create-min/{1286666929.yml → 1287167046.yml} +10 -10
  13. data/spec/vcr/account/find/{1286666929.yml → 1287167046.yml} +67 -29
  14. data/spec/vcr/account/list/{1286666929.yml → 1287167046.yml} +201 -228
  15. data/spec/vcr/account/update/{1286666929.yml → 1287167046.yml} +41 -41
  16. data/spec/vcr/billing/create/1286682213.yml +15 -15
  17. data/spec/vcr/billing/destroy/1286682213.yml +24 -24
  18. data/spec/vcr/billing/find/1286682213.yml +20 -20
  19. data/spec/vcr/billing/update/1286682213.yml +21 -21
  20. data/spec/vcr/charge/create/1286681273.yml +25 -25
  21. data/spec/vcr/charge/list-all/1286681273.yml +37 -37
  22. data/spec/vcr/charge/list-invoiced/1286681273.yml +62 -62
  23. data/spec/vcr/charge/list-pending/1286681273.yml +37 -37
  24. data/spec/vcr/charge/lookup/1286681273.yml +20 -20
  25. data/spec/vcr/credit/create/1286681343.yml +20 -20
  26. data/spec/vcr/credit/list/1286681343.yml +37 -37
  27. data/spec/vcr/credit/lookup/1286681343.yml +20 -20
  28. data/spec/vcr/invoice/create/{1286679184.yml → 1287167121.yml} +49 -49
  29. data/spec/vcr/{transaction/refund/1286674805.yml → invoice/create-no-charges/1287167121.yml} +32 -57
  30. data/spec/vcr/invoice/list/{1286679184.yml → 1287167121.yml} +71 -71
  31. data/spec/vcr/invoice/lookup/{1286679184.yml → 1287167121.yml} +50 -50
  32. data/spec/vcr/plan/all.yml +8 -8
  33. data/spec/vcr/plan/delete/1286677585.yml +15 -15
  34. data/spec/vcr/plan/find.yml +8 -8
  35. data/spec/vcr/plan/update.yml +9 -9
  36. data/spec/vcr/subscription/cancel/{1287037363.yml → 1287439446.yml} +62 -62
  37. data/spec/vcr/subscription/cancel/{1287037325.yml → 1287442108.yml} +60 -60
  38. data/spec/vcr/subscription/cancel/{1287036910.yml → 1287442352.yml} +60 -60
  39. data/spec/vcr/subscription/change1/{1287037363.yml → 1287439446.yml} +58 -58
  40. data/spec/vcr/subscription/change1/{1287037152.yml → 1287442108.yml} +59 -59
  41. data/spec/vcr/subscription/change1/{1287036910.yml → 1287442352.yml} +56 -56
  42. data/spec/vcr/subscription/{change1/1287037325.yml → change2/1287439446.yml} +64 -64
  43. data/spec/vcr/subscription/change2/{1287036910.yml → 1287442108.yml} +55 -55
  44. data/spec/vcr/subscription/change2/{1287037363.yml → 1287442352.yml} +58 -58
  45. data/spec/vcr/subscription/create/{1287037363.yml → 1287439446.yml} +27 -27
  46. data/spec/vcr/subscription/create/{1287037325.yml → 1287442108.yml} +28 -28
  47. data/spec/vcr/subscription/create/{1287037152.yml → 1287442352.yml} +28 -28
  48. data/spec/vcr/subscription/find/{1287036910.yml → 1287439446.yml} +36 -36
  49. data/spec/vcr/subscription/find/{1287037152.yml → 1287442108.yml} +38 -38
  50. data/spec/vcr/subscription/find/{1287037325.yml → 1287442352.yml} +38 -38
  51. data/spec/vcr/subscription/{refund/1287037325.yml → refund-full/1287439446.yml} +56 -56
  52. data/spec/vcr/subscription/{refund/1287037363.yml → refund-full/1287442108.yml} +58 -58
  53. data/spec/vcr/subscription/{refund/1287036910.yml → refund-full/1287442352.yml} +55 -55
  54. data/spec/vcr/subscription/refund-none/1287439446.yml +382 -0
  55. data/spec/vcr/subscription/refund-none/1287442108.yml +382 -0
  56. data/spec/vcr/subscription/refund-none/1287442352.yml +382 -0
  57. data/spec/vcr/subscription/refund-partial/1287439446.yml +382 -0
  58. data/spec/vcr/subscription/refund-partial/1287442108.yml +382 -0
  59. data/spec/vcr/subscription/refund-partial/1287442352.yml +382 -0
  60. data/spec/vcr/transaction/all/{1286674805.yml → 1287186411.yml} +104 -104
  61. data/spec/vcr/transaction/create-no-account/{1286674805.yml → 1287186411.yml} +11 -11
  62. data/spec/vcr/transaction/create-with-account/{1286674805.yml → 1287186411.yml} +26 -26
  63. data/spec/vcr/transaction/list-empty/{1286674805.yml → 1287186411.yml} +26 -26
  64. data/spec/vcr/transaction/list-filled/{1286674805.yml → 1287186411.yml} +59 -59
  65. data/spec/vcr/transaction/lookup/{1286674805.yml → 1287186411.yml} +66 -66
  66. data/spec/vcr/transaction/refund/1287186411.yml +282 -0
  67. data/spec/vcr/transaction/void/{1286674805.yml → 1287186411.yml} +87 -155
  68. metadata +92 -86
  69. data/spec/vcr/subscription/change2/1287037152.yml +0 -283
  70. data/spec/vcr/subscription/change2/1287037325.yml +0 -283
  71. data/spec/vcr/subscription/create/1287036910.yml +0 -224
  72. data/spec/vcr/subscription/find/1287037363.yml +0 -283
@@ -6,11 +6,11 @@
6
6
  body: |
7
7
  <?xml version="1.0" encoding="UTF-8"?>
8
8
  <account>
9
- <account-code>subscription-refund-1287037325</account-code>
10
9
  <company-name>Recurly Ruby Gem</company-name>
10
+ <account-code>subscription-refund-full-1287439446</account-code>
11
11
  <last-name>Test</last-name>
12
- <first-name>Verena</first-name>
13
12
  <email>verena@test.com</email>
13
+ <first-name>Verena</first-name>
14
14
  </account>
15
15
 
16
16
  headers:
@@ -28,30 +28,30 @@
28
28
  message: Created
29
29
  headers:
30
30
  location:
31
- - https://recurlytest3-test.recurly.com/accounts/subscription-refund-1287037325
31
+ - https://recurlytest3-test.recurly.com/accounts/subscription-refund-full-1287439446
32
32
  connection:
33
33
  - close
34
34
  content-type:
35
35
  - application/xml; charset=utf-8
36
36
  x-runtime:
37
- - "596"
37
+ - "611"
38
38
  date:
39
- - Thu, 14 Oct 2010 06:22:33 GMT
39
+ - Mon, 18 Oct 2010 22:06:39 GMT
40
40
  server:
41
41
  - nginx/0.7.65
42
42
  content-length:
43
- - "593"
43
+ - "603"
44
44
  set-cookie:
45
- - account_credentials=9387feb63d9890a165fbd5898b6956fd03348359027c1a136d182a9c24ac05ea13cfbab94ce4db6ec3269c644651c4cce1600cb414b88caaeb991e8ffe868672%3A%3A; domain=.recurly.com; path=/; secure; HttpOnly
45
+ - account_credentials=54a97aac19bc121d1d70755fe7a5c8e4834811648527fa897cc820455d716978ded1da4c372f2b3e6dcfd3b507b2b67db4d7baeffb56fa68e65634ccd1b1b945%3A%3A; domain=.recurly.com; path=/; secure; HttpOnly
46
46
  - ""
47
- - _recurly_session=ef4e29bec14579efb46fc4a15d4bbeed; domain=.recurly.com; path=/; Secure; HttpOnly
47
+ - _recurly_session=2469ebc446ecc9cbd596dd6774b5d790; 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>subscription-refund-1287037325</id>
54
- <account_code>subscription-refund-1287037325</account_code>
53
+ <id>subscription-refund-full-1287439446</id>
54
+ <account_code>subscription-refund-full-1287439446</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>13ae0ea3f1e541e9851d3e320913d4ae</hosted_login_token>
63
- <created_at type="datetime">2010-10-14T06:22:33Z</created_at>
62
+ <hosted_login_token>727ebaddd1074f7d9385e59f9ce11daf</hosted_login_token>
63
+ <created_at type="datetime">2010-10-18T22:06:39Z</created_at>
64
64
  <state>active</state>
65
65
  </account>
66
66
 
@@ -93,13 +93,13 @@
93
93
  x-runtime:
94
94
  - "13"
95
95
  date:
96
- - Thu, 14 Oct 2010 06:22:33 GMT
96
+ - Mon, 18 Oct 2010 22:06:40 GMT
97
97
  server:
98
98
  - nginx/0.7.65
99
99
  content-length:
100
100
  - "1150"
101
101
  set-cookie:
102
- - _recurly_session=0611ccbd683a220d05a7338e7db761e9; domain=.recurly.com; path=/; Secure; HttpOnly
102
+ - _recurly_session=802f42cd887fcbff4a6b958e69add9e1; domain=.recurly.com; path=/; Secure; HttpOnly
103
103
  cache-control:
104
104
  - private, max-age=0, must-revalidate
105
105
  body: |
@@ -133,20 +133,20 @@
133
133
  - !ruby/struct:VCR::HTTPInteraction
134
134
  request: !ruby/struct:VCR::Request
135
135
  method: :post
136
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/subscription-refund-1287037325/subscription.xml
136
+ uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/subscription-refund-full-1287439446/subscription.xml
137
137
  body: |
138
138
  <?xml version="1.0" encoding="UTF-8"?>
139
139
  <subscription>
140
140
  <quantity type="integer">1</quantity>
141
141
  <plan-code>paid</plan-code>
142
142
  <account>
143
- <created-at type="datetime">2010-10-14T06:22:33Z</created-at>
144
- <hosted-login-token>13ae0ea3f1e541e9851d3e320913d4ae</hosted-login-token>
145
- <account-code>subscription-refund-1287037325</account-code>
143
+ <created-at type="datetime">2010-10-18T22:06:39Z</created-at>
144
+ <hosted-login-token>727ebaddd1074f7d9385e59f9ce11daf</hosted-login-token>
146
145
  <company-name>Recurly Ruby Gem</company-name>
146
+ <account-code>subscription-refund-full-1287439446</account-code>
147
147
  <closed type="boolean">false</closed>
148
148
  <username type="yaml" nil="true"></username>
149
- <id>subscription-refund-1287037325</id>
149
+ <id>subscription-refund-full-1287439446</id>
150
150
  <last-name>Test</last-name>
151
151
  <billing-info>
152
152
  <city>San Francisco</city>
@@ -165,8 +165,8 @@
165
165
  </billing-info>
166
166
  <balance-in-cents type="integer">0</balance-in-cents>
167
167
  <state>active</state>
168
- <first-name>Verena</first-name>
169
168
  <email>verena@test.com</email>
169
+ <first-name>Verena</first-name>
170
170
  </account>
171
171
  </subscription>
172
172
 
@@ -189,22 +189,22 @@
189
189
  content-type:
190
190
  - application/xml; charset=utf-8
191
191
  x-runtime:
192
- - "566"
192
+ - "575"
193
193
  date:
194
- - Thu, 14 Oct 2010 06:22:35 GMT
194
+ - Mon, 18 Oct 2010 22:06:41 GMT
195
195
  server:
196
196
  - nginx/0.7.65
197
197
  content-length:
198
- - "870"
198
+ - "880"
199
199
  set-cookie:
200
- - _recurly_session=656aae11fdf3afac4998c173a96aee49; domain=.recurly.com; path=/; Secure; HttpOnly
200
+ - _recurly_session=7ac2197055b238a32419b225929748f8; domain=.recurly.com; path=/; Secure; HttpOnly
201
201
  cache-control:
202
202
  - no-cache
203
203
  body: |
204
204
  <?xml version="1.0" encoding="UTF-8"?>
205
205
  <subscription>
206
- <id>subscription-refund-1287037325</id>
207
- <account_code>subscription-refund-1287037325</account_code>
206
+ <id>subscription-refund-full-1287439446</id>
207
+ <account_code>subscription-refund-full-1287439446</account_code>
208
208
  <plan>
209
209
  <plan_code>paid</plan_code>
210
210
  <name>Paid</name>
@@ -212,11 +212,11 @@
212
212
  <state>active</state>
213
213
  <quantity type="integer">1</quantity>
214
214
  <total_amount_in_cents type="integer">1000</total_amount_in_cents>
215
- <activated_at type="datetime">2010-10-14T06:22:34Z</activated_at>
215
+ <activated_at type="datetime">2010-10-18T22:06:41Z</activated_at>
216
216
  <canceled_at nil="true" type="datetime"></canceled_at>
217
217
  <expires_at nil="true" type="datetime"></expires_at>
218
- <current_period_started_at type="datetime">2010-10-14T06:22:34Z</current_period_started_at>
219
- <current_period_ends_at type="datetime">2010-11-14T06:22:34Z</current_period_ends_at>
218
+ <current_period_started_at type="datetime">2010-10-18T22:06:41Z</current_period_started_at>
219
+ <current_period_ends_at type="datetime">2010-11-18T22:06:41Z</current_period_ends_at>
220
220
  <trial_started_at nil="true" type="datetime"></trial_started_at>
221
221
  <trial_ends_at nil="true" type="datetime"></trial_ends_at>
222
222
  </subscription>
@@ -225,7 +225,7 @@
225
225
  - !ruby/struct:VCR::HTTPInteraction
226
226
  request: !ruby/struct:VCR::Request
227
227
  method: :get
228
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/subscription-refund-1287037325/subscription.xml
228
+ uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/subscription-refund-full-1287439446/subscription.xml
229
229
  body:
230
230
  headers:
231
231
  accept:
@@ -242,7 +242,7 @@
242
242
  x-ua-compatible:
243
243
  - IE=Edge
244
244
  etag:
245
- - "\"c4e86283783a15518aaad37cab07e94c\""
245
+ - "\"9bbc4ea107ca63770784e7fb2e8ccdb7\""
246
246
  connection:
247
247
  - close
248
248
  content-type:
@@ -250,20 +250,20 @@
250
250
  x-runtime:
251
251
  - "29"
252
252
  date:
253
- - Thu, 14 Oct 2010 06:22:35 GMT
253
+ - Mon, 18 Oct 2010 22:06:42 GMT
254
254
  server:
255
255
  - nginx/0.7.65
256
256
  content-length:
257
- - "870"
257
+ - "880"
258
258
  set-cookie:
259
- - _recurly_session=71c054760c9b55e9e469f7d5b34f54c5; domain=.recurly.com; path=/; Secure; HttpOnly
259
+ - _recurly_session=9730c95aaab9642c81151c6f2714ba74; domain=.recurly.com; path=/; Secure; HttpOnly
260
260
  cache-control:
261
261
  - private, max-age=0, must-revalidate
262
262
  body: |
263
263
  <?xml version="1.0" encoding="UTF-8"?>
264
264
  <subscription>
265
- <id>subscription-refund-1287037325</id>
266
- <account_code>subscription-refund-1287037325</account_code>
265
+ <id>subscription-refund-full-1287439446</id>
266
+ <account_code>subscription-refund-full-1287439446</account_code>
267
267
  <plan>
268
268
  <plan_code>paid</plan_code>
269
269
  <name>Paid</name>
@@ -271,11 +271,11 @@
271
271
  <state>active</state>
272
272
  <quantity type="integer">1</quantity>
273
273
  <total_amount_in_cents type="integer">1000</total_amount_in_cents>
274
- <activated_at type="datetime">2010-10-14T06:22:34Z</activated_at>
274
+ <activated_at type="datetime">2010-10-18T22:06:41Z</activated_at>
275
275
  <canceled_at nil="true" type="datetime"></canceled_at>
276
276
  <expires_at nil="true" type="datetime"></expires_at>
277
- <current_period_started_at type="datetime">2010-10-14T06:22:34Z</current_period_started_at>
278
- <current_period_ends_at type="datetime">2010-11-14T06:22:34Z</current_period_ends_at>
277
+ <current_period_started_at type="datetime">2010-10-18T22:06:41Z</current_period_started_at>
278
+ <current_period_ends_at type="datetime">2010-11-18T22:06:41Z</current_period_ends_at>
279
279
  <trial_started_at nil="true" type="datetime"></trial_started_at>
280
280
  <trial_ends_at nil="true" type="datetime"></trial_ends_at>
281
281
  </subscription>
@@ -284,7 +284,7 @@
284
284
  - !ruby/struct:VCR::HTTPInteraction
285
285
  request: !ruby/struct:VCR::Request
286
286
  method: :delete
287
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/subscription-refund-1287037325/subscription.xml?refund=full
287
+ uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/subscription-refund-full-1287439446/subscription.xml?refund=partial
288
288
  body:
289
289
  headers:
290
290
  accept:
@@ -301,28 +301,28 @@
301
301
  x-ua-compatible:
302
302
  - IE=Edge
303
303
  etag:
304
- - "\"69a0436e1cbd7ce2d7276235a3cde09f\""
304
+ - "\"e9e67907fe4ff0994fa6c18b8a394a15\""
305
305
  connection:
306
306
  - close
307
307
  content-type:
308
308
  - application/xml; charset=utf-8
309
309
  x-runtime:
310
- - "372"
310
+ - "231"
311
311
  date:
312
- - Thu, 14 Oct 2010 06:22:36 GMT
312
+ - Mon, 18 Oct 2010 22:06:42 GMT
313
313
  server:
314
314
  - nginx/0.7.65
315
315
  content-length:
316
- - "889"
316
+ - "899"
317
317
  set-cookie:
318
- - _recurly_session=e2bce5aa09cc6b7afb5434a3c36ee15e; domain=.recurly.com; path=/; Secure; HttpOnly
318
+ - _recurly_session=b90531df0253adb46082bcd82dd77b1b; domain=.recurly.com; path=/; Secure; HttpOnly
319
319
  cache-control:
320
320
  - private, max-age=0, must-revalidate
321
321
  body: |
322
322
  <?xml version="1.0" encoding="UTF-8"?>
323
323
  <subscription>
324
- <id>subscription-refund-1287037325</id>
325
- <account_code>subscription-refund-1287037325</account_code>
324
+ <id>subscription-refund-full-1287439446</id>
325
+ <account_code>subscription-refund-full-1287439446</account_code>
326
326
  <plan>
327
327
  <plan_code>paid</plan_code>
328
328
  <name>Paid</name>
@@ -330,11 +330,11 @@
330
330
  <state>expired</state>
331
331
  <quantity type="integer">1</quantity>
332
332
  <total_amount_in_cents type="integer">1000</total_amount_in_cents>
333
- <activated_at type="datetime">2010-10-14T06:22:34Z</activated_at>
334
- <canceled_at type="datetime">2010-10-14T06:22:36Z</canceled_at>
335
- <expires_at type="datetime">2010-11-14T06:22:34Z</expires_at>
336
- <current_period_started_at type="datetime">2010-10-14T06:22:34Z</current_period_started_at>
337
- <current_period_ends_at type="datetime">2010-11-14T06:22:34Z</current_period_ends_at>
333
+ <activated_at type="datetime">2010-10-18T22:06:41Z</activated_at>
334
+ <canceled_at type="datetime">2010-10-18T22:06:42Z</canceled_at>
335
+ <expires_at type="datetime">2010-11-18T22:06:41Z</expires_at>
336
+ <current_period_started_at type="datetime">2010-10-18T22:06:41Z</current_period_started_at>
337
+ <current_period_ends_at type="datetime">2010-11-18T22:06:41Z</current_period_ends_at>
338
338
  <trial_started_at nil="true" type="datetime"></trial_started_at>
339
339
  <trial_ends_at nil="true" type="datetime"></trial_ends_at>
340
340
  </subscription>
@@ -343,7 +343,7 @@
343
343
  - !ruby/struct:VCR::HTTPInteraction
344
344
  request: !ruby/struct:VCR::Request
345
345
  method: :get
346
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/subscription-refund-1287037325/subscription.xml
346
+ uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/subscription-refund-full-1287439446/subscription.xml
347
347
  body:
348
348
  headers:
349
349
  accept:
@@ -362,15 +362,15 @@
362
362
  content-type:
363
363
  - application/xml; charset=utf-8
364
364
  x-runtime:
365
- - "13"
365
+ - "12"
366
366
  date:
367
- - Thu, 14 Oct 2010 06:22:37 GMT
367
+ - Mon, 18 Oct 2010 22:06:43 GMT
368
368
  server:
369
369
  - nginx/0.7.65
370
370
  content-length:
371
371
  - "98"
372
372
  set-cookie:
373
- - _recurly_session=122c1a8a152bd545f960567d2dce123b; domain=.recurly.com; path=/; Secure; HttpOnly
373
+ - _recurly_session=a38507a7301c01172aaa9ef1d30276d3; domain=.recurly.com; path=/; Secure; HttpOnly
374
374
  cache-control:
375
375
  - no-cache
376
376
  body: |
@@ -6,11 +6,11 @@
6
6
  body: |
7
7
  <?xml version="1.0" encoding="UTF-8"?>
8
8
  <account>
9
- <account-code>subscription-refund-1287037363</account-code>
10
9
  <company-name>Recurly Ruby Gem</company-name>
10
+ <account-code>subscription-refund-full-1287442108</account-code>
11
11
  <last-name>Test</last-name>
12
- <first-name>Verena</first-name>
13
12
  <email>verena@test.com</email>
13
+ <first-name>Verena</first-name>
14
14
  </account>
15
15
 
16
16
  headers:
@@ -28,30 +28,30 @@
28
28
  message: Created
29
29
  headers:
30
30
  location:
31
- - https://recurlytest3-test.recurly.com/accounts/subscription-refund-1287037363
31
+ - https://recurlytest3-test.recurly.com/accounts/subscription-refund-full-1287442108
32
32
  connection:
33
33
  - close
34
34
  content-type:
35
35
  - application/xml; charset=utf-8
36
36
  x-runtime:
37
- - "573"
37
+ - "611"
38
38
  date:
39
- - Thu, 14 Oct 2010 06:23:59 GMT
39
+ - Mon, 18 Oct 2010 22:49:03 GMT
40
40
  server:
41
41
  - nginx/0.7.65
42
42
  content-length:
43
- - "593"
43
+ - "603"
44
44
  set-cookie:
45
- - account_credentials=7d10189f503e595c9542f025bbe7ca9d862991afd693df5943b35268f38b0b73ed2156a54be954acb343cd23afcf644e04fc8eba0290a55506cc00ea2633e6df%3A%3A; domain=.recurly.com; path=/; secure; HttpOnly
45
+ - account_credentials=5460d8cbf8a8ac4e464dbf71d63afbf88e859f996351054a9073ece6741503c1ad753749ae6f01c242014630677254c062a877a0cab7318f61e34f5c6c427b42%3A%3A; domain=.recurly.com; path=/; secure; HttpOnly
46
46
  - ""
47
- - _recurly_session=2969dd5af5ab37b6e750569483fc61e4; domain=.recurly.com; path=/; Secure; HttpOnly
47
+ - _recurly_session=3602d5f7ecab91f38e5367603f612891; 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>subscription-refund-1287037363</id>
54
- <account_code>subscription-refund-1287037363</account_code>
53
+ <id>subscription-refund-full-1287442108</id>
54
+ <account_code>subscription-refund-full-1287442108</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>fbb02dab0aab4ba2a1a767ca9eff56ec</hosted_login_token>
63
- <created_at type="datetime">2010-10-14T06:23:59Z</created_at>
62
+ <hosted_login_token>c9d9fdb93c1c4ac3a4a9d4580ea47670</hosted_login_token>
63
+ <created_at type="datetime">2010-10-18T22:49:03Z</created_at>
64
64
  <state>active</state>
65
65
  </account>
66
66
 
@@ -91,15 +91,15 @@
91
91
  content-type:
92
92
  - application/xml; charset=utf-8
93
93
  x-runtime:
94
- - "13"
94
+ - "14"
95
95
  date:
96
- - Thu, 14 Oct 2010 06:24:00 GMT
96
+ - Mon, 18 Oct 2010 22:49:03 GMT
97
97
  server:
98
98
  - nginx/0.7.65
99
99
  content-length:
100
100
  - "1150"
101
101
  set-cookie:
102
- - _recurly_session=ac66b5f78c5617d67211d9b78c1ad044; domain=.recurly.com; path=/; Secure; HttpOnly
102
+ - _recurly_session=bd7853fe1b06a19134889415391a6c29; domain=.recurly.com; path=/; Secure; HttpOnly
103
103
  cache-control:
104
104
  - private, max-age=0, must-revalidate
105
105
  body: |
@@ -133,20 +133,20 @@
133
133
  - !ruby/struct:VCR::HTTPInteraction
134
134
  request: !ruby/struct:VCR::Request
135
135
  method: :post
136
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/subscription-refund-1287037363/subscription.xml
136
+ uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/subscription-refund-full-1287442108/subscription.xml
137
137
  body: |
138
138
  <?xml version="1.0" encoding="UTF-8"?>
139
139
  <subscription>
140
140
  <quantity type="integer">1</quantity>
141
141
  <plan-code>paid</plan-code>
142
142
  <account>
143
- <created-at type="datetime">2010-10-14T06:23:59Z</created-at>
144
- <hosted-login-token>fbb02dab0aab4ba2a1a767ca9eff56ec</hosted-login-token>
145
- <account-code>subscription-refund-1287037363</account-code>
143
+ <created-at type="datetime">2010-10-18T22:49:03Z</created-at>
144
+ <hosted-login-token>c9d9fdb93c1c4ac3a4a9d4580ea47670</hosted-login-token>
146
145
  <company-name>Recurly Ruby Gem</company-name>
146
+ <account-code>subscription-refund-full-1287442108</account-code>
147
147
  <closed type="boolean">false</closed>
148
148
  <username type="yaml" nil="true"></username>
149
- <id>subscription-refund-1287037363</id>
149
+ <id>subscription-refund-full-1287442108</id>
150
150
  <last-name>Test</last-name>
151
151
  <billing-info>
152
152
  <city>San Francisco</city>
@@ -165,8 +165,8 @@
165
165
  </billing-info>
166
166
  <balance-in-cents type="integer">0</balance-in-cents>
167
167
  <state>active</state>
168
- <first-name>Verena</first-name>
169
168
  <email>verena@test.com</email>
169
+ <first-name>Verena</first-name>
170
170
  </account>
171
171
  </subscription>
172
172
 
@@ -189,22 +189,22 @@
189
189
  content-type:
190
190
  - application/xml; charset=utf-8
191
191
  x-runtime:
192
- - "588"
192
+ - "605"
193
193
  date:
194
- - Thu, 14 Oct 2010 06:24:01 GMT
194
+ - Mon, 18 Oct 2010 22:49:05 GMT
195
195
  server:
196
196
  - nginx/0.7.65
197
197
  content-length:
198
- - "870"
198
+ - "880"
199
199
  set-cookie:
200
- - _recurly_session=adfa03a6e30a79020b38d025e00436e5; domain=.recurly.com; path=/; Secure; HttpOnly
200
+ - _recurly_session=b90f287aa2303c32123d9ea7b1c68712; domain=.recurly.com; path=/; Secure; HttpOnly
201
201
  cache-control:
202
202
  - no-cache
203
203
  body: |
204
204
  <?xml version="1.0" encoding="UTF-8"?>
205
205
  <subscription>
206
- <id>subscription-refund-1287037363</id>
207
- <account_code>subscription-refund-1287037363</account_code>
206
+ <id>subscription-refund-full-1287442108</id>
207
+ <account_code>subscription-refund-full-1287442108</account_code>
208
208
  <plan>
209
209
  <plan_code>paid</plan_code>
210
210
  <name>Paid</name>
@@ -212,11 +212,11 @@
212
212
  <state>active</state>
213
213
  <quantity type="integer">1</quantity>
214
214
  <total_amount_in_cents type="integer">1000</total_amount_in_cents>
215
- <activated_at type="datetime">2010-10-14T06:24:01Z</activated_at>
215
+ <activated_at type="datetime">2010-10-18T22:49:04Z</activated_at>
216
216
  <canceled_at nil="true" type="datetime"></canceled_at>
217
217
  <expires_at nil="true" type="datetime"></expires_at>
218
- <current_period_started_at type="datetime">2010-10-14T06:24:01Z</current_period_started_at>
219
- <current_period_ends_at type="datetime">2010-11-14T06:24:01Z</current_period_ends_at>
218
+ <current_period_started_at type="datetime">2010-10-18T22:49:04Z</current_period_started_at>
219
+ <current_period_ends_at type="datetime">2010-11-18T22:49:04Z</current_period_ends_at>
220
220
  <trial_started_at nil="true" type="datetime"></trial_started_at>
221
221
  <trial_ends_at nil="true" type="datetime"></trial_ends_at>
222
222
  </subscription>
@@ -225,7 +225,7 @@
225
225
  - !ruby/struct:VCR::HTTPInteraction
226
226
  request: !ruby/struct:VCR::Request
227
227
  method: :get
228
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/subscription-refund-1287037363/subscription.xml
228
+ uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/subscription-refund-full-1287442108/subscription.xml
229
229
  body:
230
230
  headers:
231
231
  accept:
@@ -242,28 +242,28 @@
242
242
  x-ua-compatible:
243
243
  - IE=Edge
244
244
  etag:
245
- - "\"f0440980741f014a15e9db30cdc0a8f5\""
245
+ - "\"01a67dcbf43b9d519668fd5ca910b99a\""
246
246
  connection:
247
247
  - close
248
248
  content-type:
249
249
  - application/xml; charset=utf-8
250
250
  x-runtime:
251
- - "16"
251
+ - "30"
252
252
  date:
253
- - Thu, 14 Oct 2010 06:24:02 GMT
253
+ - Mon, 18 Oct 2010 22:49:05 GMT
254
254
  server:
255
255
  - nginx/0.7.65
256
256
  content-length:
257
- - "870"
257
+ - "880"
258
258
  set-cookie:
259
- - _recurly_session=c05687fb4d1097b9d46664cc8bcd6831; domain=.recurly.com; path=/; Secure; HttpOnly
259
+ - _recurly_session=4be1035e695114b0be9f25bd61861b36; domain=.recurly.com; path=/; Secure; HttpOnly
260
260
  cache-control:
261
261
  - private, max-age=0, must-revalidate
262
262
  body: |
263
263
  <?xml version="1.0" encoding="UTF-8"?>
264
264
  <subscription>
265
- <id>subscription-refund-1287037363</id>
266
- <account_code>subscription-refund-1287037363</account_code>
265
+ <id>subscription-refund-full-1287442108</id>
266
+ <account_code>subscription-refund-full-1287442108</account_code>
267
267
  <plan>
268
268
  <plan_code>paid</plan_code>
269
269
  <name>Paid</name>
@@ -271,11 +271,11 @@
271
271
  <state>active</state>
272
272
  <quantity type="integer">1</quantity>
273
273
  <total_amount_in_cents type="integer">1000</total_amount_in_cents>
274
- <activated_at type="datetime">2010-10-14T06:24:01Z</activated_at>
274
+ <activated_at type="datetime">2010-10-18T22:49:04Z</activated_at>
275
275
  <canceled_at nil="true" type="datetime"></canceled_at>
276
276
  <expires_at nil="true" type="datetime"></expires_at>
277
- <current_period_started_at type="datetime">2010-10-14T06:24:01Z</current_period_started_at>
278
- <current_period_ends_at type="datetime">2010-11-14T06:24:01Z</current_period_ends_at>
277
+ <current_period_started_at type="datetime">2010-10-18T22:49:04Z</current_period_started_at>
278
+ <current_period_ends_at type="datetime">2010-11-18T22:49:04Z</current_period_ends_at>
279
279
  <trial_started_at nil="true" type="datetime"></trial_started_at>
280
280
  <trial_ends_at nil="true" type="datetime"></trial_ends_at>
281
281
  </subscription>
@@ -284,7 +284,7 @@
284
284
  - !ruby/struct:VCR::HTTPInteraction
285
285
  request: !ruby/struct:VCR::Request
286
286
  method: :delete
287
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/subscription-refund-1287037363/subscription.xml?refund=full
287
+ uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/subscription-refund-full-1287442108/subscription.xml?refund=partial
288
288
  body:
289
289
  headers:
290
290
  accept:
@@ -301,28 +301,28 @@
301
301
  x-ua-compatible:
302
302
  - IE=Edge
303
303
  etag:
304
- - "\"80f12f6c9d08a3a37cb083d5b4db0d26\""
304
+ - "\"97f1c32b217d994e18e8b648041bdc3e\""
305
305
  connection:
306
306
  - close
307
307
  content-type:
308
308
  - application/xml; charset=utf-8
309
309
  x-runtime:
310
- - "224"
310
+ - "418"
311
311
  date:
312
- - Thu, 14 Oct 2010 06:24:03 GMT
312
+ - Mon, 18 Oct 2010 22:49:06 GMT
313
313
  server:
314
314
  - nginx/0.7.65
315
315
  content-length:
316
- - "889"
316
+ - "899"
317
317
  set-cookie:
318
- - _recurly_session=29a8d811bd0164c78840a87c1d04fc93; domain=.recurly.com; path=/; Secure; HttpOnly
318
+ - _recurly_session=0ddb4f144d2ccefc9fd67adffe5c2750; domain=.recurly.com; path=/; Secure; HttpOnly
319
319
  cache-control:
320
320
  - private, max-age=0, must-revalidate
321
321
  body: |
322
322
  <?xml version="1.0" encoding="UTF-8"?>
323
323
  <subscription>
324
- <id>subscription-refund-1287037363</id>
325
- <account_code>subscription-refund-1287037363</account_code>
324
+ <id>subscription-refund-full-1287442108</id>
325
+ <account_code>subscription-refund-full-1287442108</account_code>
326
326
  <plan>
327
327
  <plan_code>paid</plan_code>
328
328
  <name>Paid</name>
@@ -330,11 +330,11 @@
330
330
  <state>expired</state>
331
331
  <quantity type="integer">1</quantity>
332
332
  <total_amount_in_cents type="integer">1000</total_amount_in_cents>
333
- <activated_at type="datetime">2010-10-14T06:24:01Z</activated_at>
334
- <canceled_at type="datetime">2010-10-14T06:24:03Z</canceled_at>
335
- <expires_at type="datetime">2010-11-14T06:24:01Z</expires_at>
336
- <current_period_started_at type="datetime">2010-10-14T06:24:01Z</current_period_started_at>
337
- <current_period_ends_at type="datetime">2010-11-14T06:24:01Z</current_period_ends_at>
333
+ <activated_at type="datetime">2010-10-18T22:49:04Z</activated_at>
334
+ <canceled_at type="datetime">2010-10-18T22:49:06Z</canceled_at>
335
+ <expires_at type="datetime">2010-11-18T22:49:04Z</expires_at>
336
+ <current_period_started_at type="datetime">2010-10-18T22:49:04Z</current_period_started_at>
337
+ <current_period_ends_at type="datetime">2010-11-18T22:49:04Z</current_period_ends_at>
338
338
  <trial_started_at nil="true" type="datetime"></trial_started_at>
339
339
  <trial_ends_at nil="true" type="datetime"></trial_ends_at>
340
340
  </subscription>
@@ -343,7 +343,7 @@
343
343
  - !ruby/struct:VCR::HTTPInteraction
344
344
  request: !ruby/struct:VCR::Request
345
345
  method: :get
346
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/subscription-refund-1287037363/subscription.xml
346
+ uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/subscription-refund-full-1287442108/subscription.xml
347
347
  body:
348
348
  headers:
349
349
  accept:
@@ -362,15 +362,15 @@
362
362
  content-type:
363
363
  - application/xml; charset=utf-8
364
364
  x-runtime:
365
- - "20"
365
+ - "13"
366
366
  date:
367
- - Thu, 14 Oct 2010 06:24:03 GMT
367
+ - Mon, 18 Oct 2010 22:49:07 GMT
368
368
  server:
369
369
  - nginx/0.7.65
370
370
  content-length:
371
371
  - "98"
372
372
  set-cookie:
373
- - _recurly_session=5a1da04006a34605151e3934dd646fdf; domain=.recurly.com; path=/; Secure; HttpOnly
373
+ - _recurly_session=5c95f751e8429950bb2636a311929a4e; domain=.recurly.com; path=/; Secure; HttpOnly
374
374
  cache-control:
375
375
  - no-cache
376
376
  body: |