recurly 0.4.2 → 0.4.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 (71) hide show
  1. data/lib/recurly.rb +1 -0
  2. data/lib/recurly/base.rb +92 -12
  3. data/lib/recurly/formats/xml_with_errors.rb +132 -0
  4. data/lib/recurly/version.rb +1 -1
  5. data/spec/config/recurly.yml +4 -4
  6. data/spec/integration/transaction_spec.rb +4 -3
  7. data/spec/vcr/account/accept-language-account/1297746103.yml +6 -6
  8. data/spec/vcr/account/close/1297746103.yml +17 -17
  9. data/spec/vcr/account/create-blank/1297746103.yml +4 -4
  10. data/spec/vcr/account/create-duplicate/1297746103.yml +10 -10
  11. data/spec/vcr/account/create-min/1297746103.yml +6 -6
  12. data/spec/vcr/account/create/1297746103.yml +6 -6
  13. data/spec/vcr/account/find/1297746103.yml +16 -16
  14. data/spec/vcr/account/list/1297746103.yml +204 -156
  15. data/spec/vcr/account/update/1297746103.yml +29 -29
  16. data/spec/vcr/billing/create/1298594128.yml +21 -21
  17. data/spec/vcr/billing/destroy/1298594128.yml +28 -28
  18. data/spec/vcr/billing/find/1298594128.yml +28 -28
  19. data/spec/vcr/billing/update/1298594128.yml +29 -29
  20. data/spec/vcr/charge/create/1297746103.yml +29 -29
  21. data/spec/vcr/charge/delete-uninvoiced/1297746103.yml +32 -32
  22. data/spec/vcr/charge/list-all/1297746103.yml +41 -41
  23. data/spec/vcr/charge/list-invoiced/1297746103.yml +68 -68
  24. data/spec/vcr/charge/list-pending/1297746103.yml +41 -41
  25. data/spec/vcr/charge/lookup/1297746103.yml +21 -21
  26. data/spec/vcr/coupon/create/1299714521.yml +25 -25
  27. data/spec/vcr/coupon/destroy/1299714521.yml +22 -22
  28. data/spec/vcr/credit/create/1299714599.yml +21 -21
  29. data/spec/vcr/credit/delete/1299714599.yml +28 -28
  30. data/spec/vcr/credit/list/1299714599.yml +41 -41
  31. data/spec/vcr/credit/lookup/1299714599.yml +21 -21
  32. data/spec/vcr/invoice/create-no-charges/1297746103.yml +18 -18
  33. data/spec/vcr/invoice/create/1297746103.yml +42 -42
  34. data/spec/vcr/invoice/list/1297746103.yml +61 -61
  35. data/spec/vcr/invoice/lookup/1297746103.yml +43 -43
  36. data/spec/vcr/plan/all.yml +65 -52
  37. data/spec/vcr/plan/find.yml +58 -34
  38. data/spec/vcr/plan/update.yml +28 -29
  39. data/spec/vcr/subscription/addons/add/1297746103.yml +293 -335
  40. data/spec/vcr/subscription/addons/add/1301884213.yml +480 -0
  41. data/spec/vcr/subscription/addons/create/1297746103.yml +134 -335
  42. data/spec/vcr/subscription/addons/create/1301884213.yml +321 -0
  43. data/spec/vcr/subscription/addons/remove/1297746103.yml +262 -335
  44. data/spec/vcr/subscription/addons/remove/1301884213.yml +449 -0
  45. data/spec/vcr/subscription/cancel-with-code/{1297746103.yml → 1301881900.yml} +104 -92
  46. data/spec/vcr/subscription/cancel/{1297746103.yml → 1301881900.yml} +90 -78
  47. data/spec/vcr/subscription/change1/{1297746103.yml → 1301881900.yml} +86 -74
  48. data/spec/vcr/subscription/change2/{1297746103.yml → 1301881900.yml} +86 -74
  49. data/spec/vcr/subscription/create/{1297746103.yml → 1301881900.yml} +50 -38
  50. data/spec/vcr/subscription/find/{1297746103.yml → 1301881900.yml} +62 -50
  51. data/spec/vcr/subscription/reactivate/{1297746103.yml → 1301881900.yml} +95 -83
  52. data/spec/vcr/subscription/refund-full/{1297746103.yml → 1301881900.yml} +79 -67
  53. data/spec/vcr/subscription/refund-none/{1297746103.yml → 1301881900.yml} +79 -67
  54. data/spec/vcr/subscription/refund-partial/{1297746103.yml → 1301881900.yml} +79 -67
  55. data/spec/vcr/transaction/all/1301883347.yml +387 -0
  56. data/spec/vcr/transaction/create-no-account/{1300473500.yml → 1301883347.yml} +18 -18
  57. data/spec/vcr/transaction/create-with-account/{1300473500.yml → 1301883347.yml} +37 -37
  58. data/spec/vcr/transaction/list-filled/{1300473500.yml → 1301883347.yml} +169 -169
  59. data/spec/vcr/transaction/list-initial/{1300473500.yml → 1301883347.yml} +39 -39
  60. data/spec/vcr/transaction/lookup/{1300473500.yml → 1301883347.yml} +119 -119
  61. data/spec/vcr/transaction/refund/{1300473500.yml → 1301883347.yml} +53 -53
  62. data/spec/vcr/transaction/void/1301883347.yml +365 -0
  63. data/spec/vcr/transparent/post-url/{1300476053.yml → 1301879142.yml} +19 -19
  64. metadata +66 -58
  65. data/spec/vcr/transaction/all/1300473500.yml +0 -387
  66. data/spec/vcr/transaction/void/1300473500.yml +0 -620
  67. data/spec/vcr/transparent/post-url/1300475927.yml +0 -41
  68. data/spec/vcr/transparent/post-url/1300475952.yml +0 -41
  69. data/spec/vcr/transparent/post-url/1300476034.yml +0 -125
  70. data/spec/vcr/transparent/post-url/1300476102.yml +0 -125
  71. data/spec/vcr/transparent/post-url/1300476126.yml +0 -125
@@ -2,7 +2,7 @@
2
2
  - !ruby/struct:VCR::HTTPInteraction
3
3
  request: !ruby/struct:VCR::Request
4
4
  method: :post
5
- uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts.xml
5
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts.xml
6
6
  body: |
7
7
  <?xml version="1.0" encoding="UTF-8"?>
8
8
  <account>
@@ -16,7 +16,7 @@
16
16
 
17
17
  headers:
18
18
  authorization:
19
- - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
19
+ - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
20
20
  content-type:
21
21
  - application/xml
22
22
  accept:
@@ -33,13 +33,13 @@
33
33
  cache-control:
34
34
  - no-cache
35
35
  x-runtime:
36
- - "371"
36
+ - "550"
37
37
  content-type:
38
38
  - application/xml; charset=utf-8
39
39
  content-length:
40
40
  - "186"
41
41
  set-cookie:
42
- - _recurly_session=bd077a070421d681c7485e8eef00715d; domain=.recurly.local; path=/; HttpOnly
42
+ - _recurly_session=81853a8d6839b45df8879d12298f500e; domain=.recurly.local; path=/; HttpOnly
43
43
  connection:
44
44
  - close
45
45
  server:
@@ -2,7 +2,7 @@
2
2
  - !ruby/struct:VCR::HTTPInteraction
3
3
  request: !ruby/struct:VCR::Request
4
4
  method: :post
5
- uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts.xml
5
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts.xml
6
6
  body: |
7
7
  <?xml version="1.0" encoding="UTF-8"?>
8
8
  <account>
@@ -16,7 +16,7 @@
16
16
 
17
17
  headers:
18
18
  authorization:
19
- - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
19
+ - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
20
20
  content-type:
21
21
  - application/xml
22
22
  accept:
@@ -35,13 +35,13 @@
35
35
  location:
36
36
  - http://app.recurly.local:3000/accounts/account-exists
37
37
  x-runtime:
38
- - "384"
38
+ - "350"
39
39
  content-type:
40
40
  - application/xml; charset=utf-8
41
41
  content-length:
42
42
  - "520"
43
43
  set-cookie:
44
- - _recurly_session=23879cef56d0b271a81ec227a113a1a0; domain=.recurly.local; path=/; HttpOnly
44
+ - _recurly_session=f70c5b8b194a8052482a53fbc6efbdde; domain=.recurly.local; path=/; HttpOnly
45
45
  connection:
46
46
  - close
47
47
  server:
@@ -58,8 +58,8 @@
58
58
  <company_name></company_name>
59
59
  <balance_in_cents type="integer">0</balance_in_cents>
60
60
  <closed type="boolean">false</closed>
61
- <hosted_login_token>23bcf23b07e24395a3555ce974c14dda</hosted_login_token>
62
- <created_at type="datetime">2011-03-18T18:47:31Z</created_at>
61
+ <hosted_login_token>53395a3557dd49b2af230901bb4cef90</hosted_login_token>
62
+ <created_at type="datetime">2011-04-04T02:17:52Z</created_at>
63
63
  <state>active</state>
64
64
  </account>
65
65
 
@@ -67,7 +67,7 @@
67
67
  - !ruby/struct:VCR::HTTPInteraction
68
68
  request: !ruby/struct:VCR::Request
69
69
  method: :post
70
- uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts.xml
70
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts.xml
71
71
  body: |
72
72
  <?xml version="1.0" encoding="UTF-8"?>
73
73
  <account>
@@ -81,7 +81,7 @@
81
81
 
82
82
  headers:
83
83
  authorization:
84
- - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
84
+ - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
85
85
  content-type:
86
86
  - application/xml
87
87
  accept:
@@ -98,13 +98,13 @@
98
98
  cache-control:
99
99
  - no-cache
100
100
  x-runtime:
101
- - "316"
101
+ - "369"
102
102
  content-type:
103
103
  - application/xml; charset=utf-8
104
104
  content-length:
105
105
  - "132"
106
106
  set-cookie:
107
- - _recurly_session=9c5a5f7417e1b30d65a610ec081797ff; domain=.recurly.local; path=/; HttpOnly
107
+ - _recurly_session=31d65199d5bbfad981aa3976259582e0; domain=.recurly.local; path=/; HttpOnly
108
108
  connection:
109
109
  - close
110
110
  server:
@@ -2,7 +2,7 @@
2
2
  - !ruby/struct:VCR::HTTPInteraction
3
3
  request: !ruby/struct:VCR::Request
4
4
  method: :post
5
- uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts.xml
5
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts.xml
6
6
  body: |
7
7
  <?xml version="1.0" encoding="UTF-8"?>
8
8
  <account>
@@ -16,7 +16,7 @@
16
16
 
17
17
  headers:
18
18
  authorization:
19
- - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
19
+ - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
20
20
  content-type:
21
21
  - application/xml
22
22
  accept:
@@ -35,13 +35,13 @@
35
35
  location:
36
36
  - http://app.recurly.local:3000/accounts/d00d-1297746103
37
37
  x-runtime:
38
- - "347"
38
+ - "367"
39
39
  content-type:
40
40
  - application/xml; charset=utf-8
41
41
  content-length:
42
42
  - "522"
43
43
  set-cookie:
44
- - _recurly_session=2050d2c84f769b6781b8c218e3a393d4; domain=.recurly.local; path=/; HttpOnly
44
+ - _recurly_session=68e1a25da69622bfe1830ece722706a2; domain=.recurly.local; path=/; HttpOnly
45
45
  connection:
46
46
  - close
47
47
  server:
@@ -58,8 +58,8 @@
58
58
  <company_name></company_name>
59
59
  <balance_in_cents type="integer">0</balance_in_cents>
60
60
  <closed type="boolean">false</closed>
61
- <hosted_login_token>df2b753ecc344ddda3d8006e5dc36d4e</hosted_login_token>
62
- <created_at type="datetime">2011-03-18T18:45:59Z</created_at>
61
+ <hosted_login_token>fd65042d226e47a985026d1792aa3e4c</hosted_login_token>
62
+ <created_at type="datetime">2011-04-04T02:16:22Z</created_at>
63
63
  <state>active</state>
64
64
  </account>
65
65
 
@@ -2,7 +2,7 @@
2
2
  - !ruby/struct:VCR::HTTPInteraction
3
3
  request: !ruby/struct:VCR::Request
4
4
  method: :post
5
- uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts.xml
5
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts.xml
6
6
  body: |
7
7
  <?xml version="1.0" encoding="UTF-8"?>
8
8
  <account>
@@ -20,7 +20,7 @@
20
20
 
21
21
  headers:
22
22
  authorization:
23
- - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
23
+ - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
24
24
  content-type:
25
25
  - application/xml
26
26
  accept:
@@ -39,13 +39,13 @@
39
39
  location:
40
40
  - http://app.recurly.local:3000/accounts/account-create-1297746103
41
41
  x-runtime:
42
- - "314"
42
+ - "504"
43
43
  content-type:
44
44
  - application/xml; charset=utf-8
45
45
  content-length:
46
46
  - "583"
47
47
  set-cookie:
48
- - _recurly_session=d03108b7097a27a0767e8aabf17714f3; domain=.recurly.local; path=/; HttpOnly
48
+ - _recurly_session=3be44aeebc093d43d059630241101ec5; domain=.recurly.local; path=/; HttpOnly
49
49
  connection:
50
50
  - close
51
51
  server:
@@ -62,8 +62,8 @@
62
62
  <company_name>Recurly Ruby Gem</company_name>
63
63
  <balance_in_cents type="integer">0</balance_in_cents>
64
64
  <closed type="boolean">false</closed>
65
- <hosted_login_token>7e2960f749fc4a7aa33e91f2ca7e9dff</hosted_login_token>
66
- <created_at type="datetime">2011-03-18T18:45:43Z</created_at>
65
+ <hosted_login_token>a21454ff6022446686ac375eb352d80f</hosted_login_token>
66
+ <created_at type="datetime">2011-04-04T02:16:19Z</created_at>
67
67
  <state>active</state>
68
68
  </account>
69
69
 
@@ -2,7 +2,7 @@
2
2
  - !ruby/struct:VCR::HTTPInteraction
3
3
  request: !ruby/struct:VCR::Request
4
4
  method: :post
5
- uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts.xml
5
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts.xml
6
6
  body: |
7
7
  <?xml version="1.0" encoding="UTF-8"?>
8
8
  <account>
@@ -20,7 +20,7 @@
20
20
 
21
21
  headers:
22
22
  authorization:
23
- - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
23
+ - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
24
24
  content-type:
25
25
  - application/xml
26
26
  accept:
@@ -39,13 +39,13 @@
39
39
  location:
40
40
  - http://app.recurly.local:3000/accounts/account-get-1297746103
41
41
  x-runtime:
42
- - "464"
42
+ - "346"
43
43
  content-type:
44
44
  - application/xml; charset=utf-8
45
45
  content-length:
46
46
  - "577"
47
47
  set-cookie:
48
- - _recurly_session=8dad887af61acd3ae6e1b64aca385875; domain=.recurly.local; path=/; HttpOnly
48
+ - _recurly_session=076b3fc204a227ffdbcbb5baa1b1e7bc; domain=.recurly.local; path=/; HttpOnly
49
49
  connection:
50
50
  - close
51
51
  server:
@@ -62,8 +62,8 @@
62
62
  <company_name>Recurly Ruby Gem</company_name>
63
63
  <balance_in_cents type="integer">0</balance_in_cents>
64
64
  <closed type="boolean">false</closed>
65
- <hosted_login_token>80ebc83e86b74e1abfec70c5001590d2</hosted_login_token>
66
- <created_at type="datetime">2011-03-18T18:46:01Z</created_at>
65
+ <hosted_login_token>b0bd6254184848b4a6089e319516ae57</hosted_login_token>
66
+ <created_at type="datetime">2011-04-04T02:16:25Z</created_at>
67
67
  <state>active</state>
68
68
  </account>
69
69
 
@@ -71,11 +71,11 @@
71
71
  - !ruby/struct:VCR::HTTPInteraction
72
72
  request: !ruby/struct:VCR::Request
73
73
  method: :get
74
- uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/account-get-1297746103.xml
74
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/account-get-1297746103.xml
75
75
  body:
76
76
  headers:
77
77
  authorization:
78
- - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
78
+ - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
79
79
  accept:
80
80
  - application/xml
81
81
  accept-encoding:
@@ -90,17 +90,17 @@
90
90
  message: OK
91
91
  headers:
92
92
  x-runtime:
93
- - "266"
93
+ - "304"
94
94
  content-type:
95
95
  - application/xml; charset=utf-8
96
96
  etag:
97
- - "\"3fb9d62c339c4ad9d9341948d31d58e5\""
97
+ - "\"bc219480f0261495ed1e391ccc8505de\""
98
98
  cache-control:
99
99
  - private, max-age=0, must-revalidate
100
100
  content-length:
101
101
  - "577"
102
102
  set-cookie:
103
- - _recurly_session=3dd92cbdfa692acad2821bf55cf65678; domain=.recurly.local; path=/; HttpOnly
103
+ - _recurly_session=83a9b11c6a791dd62d1a1cb35929e583; domain=.recurly.local; path=/; HttpOnly
104
104
  connection:
105
105
  - close
106
106
  server:
@@ -117,8 +117,8 @@
117
117
  <company_name>Recurly Ruby Gem</company_name>
118
118
  <balance_in_cents type="integer">0</balance_in_cents>
119
119
  <closed type="boolean">false</closed>
120
- <hosted_login_token>80ebc83e86b74e1abfec70c5001590d2</hosted_login_token>
121
- <created_at type="datetime">2011-03-18T18:46:01Z</created_at>
120
+ <hosted_login_token>b0bd6254184848b4a6089e319516ae57</hosted_login_token>
121
+ <created_at type="datetime">2011-04-04T02:16:25Z</created_at>
122
122
  <state>active</state>
123
123
  </account>
124
124
 
@@ -126,11 +126,11 @@
126
126
  - !ruby/struct:VCR::HTTPInteraction
127
127
  request: !ruby/struct:VCR::Request
128
128
  method: :get
129
- uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/account-that-doesnt-exist.xml
129
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/account-that-doesnt-exist.xml
130
130
  body:
131
131
  headers:
132
132
  authorization:
133
- - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
133
+ - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
134
134
  accept:
135
135
  - application/xml
136
136
  accept-encoding:
@@ -151,7 +151,7 @@
151
151
  content-length:
152
152
  - "93"
153
153
  set-cookie:
154
- - _recurly_session=6319a4e1b64f06415420291e8cbcec7a; domain=.recurly.local; path=/; HttpOnly
154
+ - _recurly_session=4472db93792a4d8d26a3c55e469d57bf; domain=.recurly.local; path=/; HttpOnly
155
155
  connection:
156
156
  - close
157
157
  server:
@@ -2,7 +2,7 @@
2
2
  - !ruby/struct:VCR::HTTPInteraction
3
3
  request: !ruby/struct:VCR::Request
4
4
  method: :post
5
- uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts.xml
5
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts.xml
6
6
  body: |
7
7
  <?xml version="1.0" encoding="UTF-8"?>
8
8
  <account>
@@ -20,7 +20,7 @@
20
20
 
21
21
  headers:
22
22
  authorization:
23
- - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
23
+ - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
24
24
  content-type:
25
25
  - application/xml
26
26
  accept:
@@ -39,13 +39,13 @@
39
39
  location:
40
40
  - http://app.recurly.local:3000/accounts/account-list-num-0-1297746103
41
41
  x-runtime:
42
- - "320"
42
+ - "526"
43
43
  content-type:
44
44
  - application/xml; charset=utf-8
45
45
  content-length:
46
46
  - "591"
47
47
  set-cookie:
48
- - _recurly_session=22d0beeff2f9a68acb46cc05550ee9f1; domain=.recurly.local; path=/; HttpOnly
48
+ - _recurly_session=e6409a4729bc5b22770608d9f58b3a6b; domain=.recurly.local; path=/; HttpOnly
49
49
  connection:
50
50
  - close
51
51
  server:
@@ -62,8 +62,8 @@
62
62
  <company_name>Recurly Ruby Gem</company_name>
63
63
  <balance_in_cents type="integer">0</balance_in_cents>
64
64
  <closed type="boolean">false</closed>
65
- <hosted_login_token>75b13bea9ee542dd94f25a1d00ca3632</hosted_login_token>
66
- <created_at type="datetime">2011-03-18T18:46:07Z</created_at>
65
+ <hosted_login_token>20dba91b1378453b884d793d26d9a0be</hosted_login_token>
66
+ <created_at type="datetime">2011-04-04T02:16:32Z</created_at>
67
67
  <state>active</state>
68
68
  </account>
69
69
 
@@ -71,7 +71,7 @@
71
71
  - !ruby/struct:VCR::HTTPInteraction
72
72
  request: !ruby/struct:VCR::Request
73
73
  method: :post
74
- uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts.xml
74
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts.xml
75
75
  body: |
76
76
  <?xml version="1.0" encoding="UTF-8"?>
77
77
  <account>
@@ -89,7 +89,7 @@
89
89
 
90
90
  headers:
91
91
  authorization:
92
- - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
92
+ - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
93
93
  content-type:
94
94
  - application/xml
95
95
  accept:
@@ -108,13 +108,13 @@
108
108
  location:
109
109
  - http://app.recurly.local:3000/accounts/account-list-num-1-1297746103
110
110
  x-runtime:
111
- - "486"
111
+ - "364"
112
112
  content-type:
113
113
  - application/xml; charset=utf-8
114
114
  content-length:
115
115
  - "591"
116
116
  set-cookie:
117
- - _recurly_session=9b5641771e09e88c793ad4be2a27d095; domain=.recurly.local; path=/; HttpOnly
117
+ - _recurly_session=9b441b824bbb20452902947638855398; domain=.recurly.local; path=/; HttpOnly
118
118
  connection:
119
119
  - close
120
120
  server:
@@ -131,8 +131,8 @@
131
131
  <company_name>Recurly Ruby Gem</company_name>
132
132
  <balance_in_cents type="integer">0</balance_in_cents>
133
133
  <closed type="boolean">false</closed>
134
- <hosted_login_token>d5170207a94944959eaaa6d3e2ab8b67</hosted_login_token>
135
- <created_at type="datetime">2011-03-18T18:46:09Z</created_at>
134
+ <hosted_login_token>0dc873dcd6f4481a8c2a838a38ac96b3</hosted_login_token>
135
+ <created_at type="datetime">2011-04-04T02:16:34Z</created_at>
136
136
  <state>active</state>
137
137
  </account>
138
138
 
@@ -140,7 +140,7 @@
140
140
  - !ruby/struct:VCR::HTTPInteraction
141
141
  request: !ruby/struct:VCR::Request
142
142
  method: :post
143
- uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts.xml
143
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts.xml
144
144
  body: |
145
145
  <?xml version="1.0" encoding="UTF-8"?>
146
146
  <account>
@@ -158,7 +158,7 @@
158
158
 
159
159
  headers:
160
160
  authorization:
161
- - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
161
+ - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
162
162
  content-type:
163
163
  - application/xml
164
164
  accept:
@@ -177,13 +177,13 @@
177
177
  location:
178
178
  - http://app.recurly.local:3000/accounts/account-list-num-2-1297746103
179
179
  x-runtime:
180
- - "427"
180
+ - "495"
181
181
  content-type:
182
182
  - application/xml; charset=utf-8
183
183
  content-length:
184
184
  - "591"
185
185
  set-cookie:
186
- - _recurly_session=106481790c035ea75f04ab81b15e5b0d; domain=.recurly.local; path=/; HttpOnly
186
+ - _recurly_session=67a9dd65eecc60cdf863a082be873452; domain=.recurly.local; path=/; HttpOnly
187
187
  connection:
188
188
  - close
189
189
  server:
@@ -200,8 +200,8 @@
200
200
  <company_name>Recurly Ruby Gem</company_name>
201
201
  <balance_in_cents type="integer">0</balance_in_cents>
202
202
  <closed type="boolean">false</closed>
203
- <hosted_login_token>b06d728c30ef4ac48add5c524b97838c</hosted_login_token>
204
- <created_at type="datetime">2011-03-18T18:46:12Z</created_at>
203
+ <hosted_login_token>562aa2f0d4444614bcfdb35b1dc8046e</hosted_login_token>
204
+ <created_at type="datetime">2011-04-04T02:16:37Z</created_at>
205
205
  <state>active</state>
206
206
  </account>
207
207
 
@@ -209,7 +209,7 @@
209
209
  - !ruby/struct:VCR::HTTPInteraction
210
210
  request: !ruby/struct:VCR::Request
211
211
  method: :post
212
- uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts.xml
212
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts.xml
213
213
  body: |
214
214
  <?xml version="1.0" encoding="UTF-8"?>
215
215
  <account>
@@ -227,7 +227,7 @@
227
227
 
228
228
  headers:
229
229
  authorization:
230
- - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
230
+ - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
231
231
  content-type:
232
232
  - application/xml
233
233
  accept:
@@ -246,13 +246,13 @@
246
246
  location:
247
247
  - http://app.recurly.local:3000/accounts/account-list-num-3-1297746103
248
248
  x-runtime:
249
- - "292"
249
+ - "321"
250
250
  content-type:
251
251
  - application/xml; charset=utf-8
252
252
  content-length:
253
253
  - "591"
254
254
  set-cookie:
255
- - _recurly_session=178af83ad76c44035770ff681f7b5989; domain=.recurly.local; path=/; HttpOnly
255
+ - _recurly_session=994c40d6d0f16f2b6dd5f886e14ce8f0; domain=.recurly.local; path=/; HttpOnly
256
256
  connection:
257
257
  - close
258
258
  server:
@@ -269,8 +269,8 @@
269
269
  <company_name>Recurly Ruby Gem</company_name>
270
270
  <balance_in_cents type="integer">0</balance_in_cents>
271
271
  <closed type="boolean">false</closed>
272
- <hosted_login_token>7379846a12814ca293129ea9da291c30</hosted_login_token>
273
- <created_at type="datetime">2011-03-18T18:46:14Z</created_at>
272
+ <hosted_login_token>80ac710da9f64604935a69595ff27290</hosted_login_token>
273
+ <created_at type="datetime">2011-04-04T02:16:39Z</created_at>
274
274
  <state>active</state>
275
275
  </account>
276
276
 
@@ -278,7 +278,7 @@
278
278
  - !ruby/struct:VCR::HTTPInteraction
279
279
  request: !ruby/struct:VCR::Request
280
280
  method: :post
281
- uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts.xml
281
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts.xml
282
282
  body: |
283
283
  <?xml version="1.0" encoding="UTF-8"?>
284
284
  <account>
@@ -296,7 +296,7 @@
296
296
 
297
297
  headers:
298
298
  authorization:
299
- - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
299
+ - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
300
300
  content-type:
301
301
  - application/xml
302
302
  accept:
@@ -315,13 +315,13 @@
315
315
  location:
316
316
  - http://app.recurly.local:3000/accounts/account-list-num-4-1297746103
317
317
  x-runtime:
318
- - "329"
318
+ - "334"
319
319
  content-type:
320
320
  - application/xml; charset=utf-8
321
321
  content-length:
322
322
  - "591"
323
323
  set-cookie:
324
- - _recurly_session=7a8140ab9cc50a6cb31e94419fe9ad7a; domain=.recurly.local; path=/; HttpOnly
324
+ - _recurly_session=7ddd446b96b77d6986707ff1729c967f; domain=.recurly.local; path=/; HttpOnly
325
325
  connection:
326
326
  - close
327
327
  server:
@@ -338,8 +338,8 @@
338
338
  <company_name>Recurly Ruby Gem</company_name>
339
339
  <balance_in_cents type="integer">0</balance_in_cents>
340
340
  <closed type="boolean">false</closed>
341
- <hosted_login_token>785030fd6194414aad6f3e580a3a1591</hosted_login_token>
342
- <created_at type="datetime">2011-03-18T18:46:16Z</created_at>
341
+ <hosted_login_token>1cbfdc62dde643af88947697bb261e38</hosted_login_token>
342
+ <created_at type="datetime">2011-04-04T02:16:42Z</created_at>
343
343
  <state>active</state>
344
344
  </account>
345
345
 
@@ -347,7 +347,7 @@
347
347
  - !ruby/struct:VCR::HTTPInteraction
348
348
  request: !ruby/struct:VCR::Request
349
349
  method: :post
350
- uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts.xml
350
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts.xml
351
351
  body: |
352
352
  <?xml version="1.0" encoding="UTF-8"?>
353
353
  <account>
@@ -365,7 +365,7 @@
365
365
 
366
366
  headers:
367
367
  authorization:
368
- - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
368
+ - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
369
369
  content-type:
370
370
  - application/xml
371
371
  accept:
@@ -384,13 +384,13 @@
384
384
  location:
385
385
  - http://app.recurly.local:3000/accounts/account-list-num-5-1297746103
386
386
  x-runtime:
387
- - "455"
387
+ - "340"
388
388
  content-type:
389
389
  - application/xml; charset=utf-8
390
390
  content-length:
391
391
  - "591"
392
392
  set-cookie:
393
- - _recurly_session=57a547e2db57101e798603a47a994674; domain=.recurly.local; path=/; HttpOnly
393
+ - _recurly_session=fb05270c959174fc79d2673e0a4b4814; domain=.recurly.local; path=/; HttpOnly
394
394
  connection:
395
395
  - close
396
396
  server:
@@ -407,8 +407,8 @@
407
407
  <company_name>Recurly Ruby Gem</company_name>
408
408
  <balance_in_cents type="integer">0</balance_in_cents>
409
409
  <closed type="boolean">false</closed>
410
- <hosted_login_token>f2c7899ff1804453a6de7bf07bf098b8</hosted_login_token>
411
- <created_at type="datetime">2011-03-18T18:46:18Z</created_at>
410
+ <hosted_login_token>e44d1077e70c464f9ecaf18664c1b3cd</hosted_login_token>
411
+ <created_at type="datetime">2011-04-04T02:16:44Z</created_at>
412
412
  <state>active</state>
413
413
  </account>
414
414
 
@@ -416,7 +416,7 @@
416
416
  - !ruby/struct:VCR::HTTPInteraction
417
417
  request: !ruby/struct:VCR::Request
418
418
  method: :post
419
- uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts.xml
419
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts.xml
420
420
  body: |
421
421
  <?xml version="1.0" encoding="UTF-8"?>
422
422
  <account>
@@ -434,7 +434,7 @@
434
434
 
435
435
  headers:
436
436
  authorization:
437
- - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
437
+ - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
438
438
  content-type:
439
439
  - application/xml
440
440
  accept:
@@ -453,13 +453,13 @@
453
453
  location:
454
454
  - http://app.recurly.local:3000/accounts/account-list-num-6-1297746103
455
455
  x-runtime:
456
- - "318"
456
+ - "629"
457
457
  content-type:
458
458
  - application/xml; charset=utf-8
459
459
  content-length:
460
460
  - "591"
461
461
  set-cookie:
462
- - _recurly_session=91fce57af1de9ff747db2b1b874be563; domain=.recurly.local; path=/; HttpOnly
462
+ - _recurly_session=b97523c126b541f2eb102ec454c374de; domain=.recurly.local; path=/; HttpOnly
463
463
  connection:
464
464
  - close
465
465
  server:
@@ -476,8 +476,8 @@
476
476
  <company_name>Recurly Ruby Gem</company_name>
477
477
  <balance_in_cents type="integer">0</balance_in_cents>
478
478
  <closed type="boolean">false</closed>
479
- <hosted_login_token>73183350288a405d9e026bf503315a13</hosted_login_token>
480
- <created_at type="datetime">2011-03-18T18:46:20Z</created_at>
479
+ <hosted_login_token>14e4c1f37a984a3c8da61628fc09c0cd</hosted_login_token>
480
+ <created_at type="datetime">2011-04-04T02:16:46Z</created_at>
481
481
  <state>active</state>
482
482
  </account>
483
483
 
@@ -485,7 +485,7 @@
485
485
  - !ruby/struct:VCR::HTTPInteraction
486
486
  request: !ruby/struct:VCR::Request
487
487
  method: :post
488
- uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts.xml
488
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts.xml
489
489
  body: |
490
490
  <?xml version="1.0" encoding="UTF-8"?>
491
491
  <account>
@@ -503,7 +503,7 @@
503
503
 
504
504
  headers:
505
505
  authorization:
506
- - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
506
+ - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
507
507
  content-type:
508
508
  - application/xml
509
509
  accept:
@@ -522,13 +522,13 @@
522
522
  location:
523
523
  - http://app.recurly.local:3000/accounts/account-list-num-7-1297746103
524
524
  x-runtime:
525
- - "302"
525
+ - "515"
526
526
  content-type:
527
527
  - application/xml; charset=utf-8
528
528
  content-length:
529
529
  - "591"
530
530
  set-cookie:
531
- - _recurly_session=a7ce665a28ca5d82b08681a92e2cf19e; domain=.recurly.local; path=/; HttpOnly
531
+ - _recurly_session=a852bfc7c7e2600abda0d95de194d58a; domain=.recurly.local; path=/; HttpOnly
532
532
  connection:
533
533
  - close
534
534
  server:
@@ -545,8 +545,8 @@
545
545
  <company_name>Recurly Ruby Gem</company_name>
546
546
  <balance_in_cents type="integer">0</balance_in_cents>
547
547
  <closed type="boolean">false</closed>
548
- <hosted_login_token>3cbdb3203ff944ebb7aee530d6b3d3ad</hosted_login_token>
549
- <created_at type="datetime">2011-03-18T18:46:22Z</created_at>
548
+ <hosted_login_token>2e76c5f8d5c24595a599c61501d8a37d</hosted_login_token>
549
+ <created_at type="datetime">2011-04-04T02:16:48Z</created_at>
550
550
  <state>active</state>
551
551
  </account>
552
552
 
@@ -554,11 +554,11 @@
554
554
  - !ruby/struct:VCR::HTTPInteraction
555
555
  request: !ruby/struct:VCR::Request
556
556
  method: :get
557
- uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/company/plans/paid.xml
557
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/company/plans/paid.xml
558
558
  body:
559
559
  headers:
560
560
  authorization:
561
- - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
561
+ - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
562
562
  accept:
563
563
  - application/xml
564
564
  accept-encoding:
@@ -573,17 +573,17 @@
573
573
  message: OK
574
574
  headers:
575
575
  x-runtime:
576
- - "256"
576
+ - "290"
577
577
  content-type:
578
578
  - application/xml; charset=utf-8
579
579
  etag:
580
- - "\"dc04fba13f15d49d04ca6692abb21ff9\""
580
+ - "\"eea146faf9def8e0ad1bce0a43411f13\""
581
581
  cache-control:
582
582
  - private, max-age=0, must-revalidate
583
583
  content-length:
584
- - "1146"
584
+ - "1558"
585
585
  set-cookie:
586
- - _recurly_session=1740b8cf5713712a2cfc9694493af00f; domain=.recurly.local; path=/; HttpOnly
586
+ - _recurly_session=b9d9454f4b003dbc6dc01ef00c5dccbd; domain=.recurly.local; path=/; HttpOnly
587
587
  connection:
588
588
  - close
589
589
  server:
@@ -596,30 +596,42 @@
596
596
  <description></description>
597
597
  <success_url></success_url>
598
598
  <cancel_url></cancel_url>
599
- <created_at type="datetime">2011-02-02T21:02:59Z</created_at>
600
- <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
599
+ <created_at type="datetime">2011-04-03T21:46:48Z</created_at>
600
+ <unit_amount_in_cents type="integer">200</unit_amount_in_cents>
601
601
  <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
602
602
  <plan_interval_length type="integer">1</plan_interval_length>
603
- <plan_interval_unit>days</plan_interval_unit>
603
+ <plan_interval_unit>months</plan_interval_unit>
604
604
  <trial_interval_length type="integer">0</trial_interval_length>
605
605
  <trial_interval_unit>months</trial_interval_unit>
606
606
  <latest_version depreciated="true">
607
607
  <version type="integer">1</version>
608
- <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
608
+ <unit_amount_in_cents type="integer">200</unit_amount_in_cents>
609
609
  <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
610
610
  <plan_interval_length type="integer">1</plan_interval_length>
611
- <plan_interval_unit>days</plan_interval_unit>
611
+ <plan_interval_unit>months</plan_interval_unit>
612
612
  <trial_interval_length type="integer">0</trial_interval_length>
613
613
  <trial_interval_unit>months</trial_interval_unit>
614
- <created_at type="datetime">2011-02-21T01:06:56Z</created_at>
614
+ <created_at type="datetime">2011-04-04T02:15:00Z</created_at>
615
615
  </latest_version>
616
+ <add_ons type="array">
617
+ <add_on>
618
+ <add_on_code>special</add_on_code>
619
+ <default_unit_amount_in_cents>1000</default_unit_amount_in_cents>
620
+ <default_quantity>1</default_quantity>
621
+ </add_on>
622
+ <add_on>
623
+ <add_on_code>special2</add_on_code>
624
+ <default_unit_amount_in_cents>50000</default_unit_amount_in_cents>
625
+ <default_quantity>1</default_quantity>
626
+ </add_on>
627
+ </add_ons>
616
628
  </plan>
617
629
 
618
630
  http_version: "1.1"
619
631
  - !ruby/struct:VCR::HTTPInteraction
620
632
  request: !ruby/struct:VCR::Request
621
633
  method: :post
622
- uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/account-list-num-0-1297746103/subscription.xml
634
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/account-list-num-0-1297746103/subscription.xml
623
635
  body: |
624
636
  <?xml version="1.0" encoding="UTF-8"?>
625
637
  <subscription>
@@ -642,7 +654,7 @@
642
654
  <credit-card>
643
655
  <number>4111111111111111</number>
644
656
  <year type="integer">2012</year>
645
- <month type="integer">3</month>
657
+ <month type="integer">4</month>
646
658
  <verification-value>123</verification-value>
647
659
  </credit-card>
648
660
  </billing-info>
@@ -651,8 +663,8 @@
651
663
  <username type="yaml" nil="true"></username>
652
664
  <balance-in-cents type="integer">0</balance-in-cents>
653
665
  <closed type="boolean">false</closed>
654
- <hosted-login-token>75b13bea9ee542dd94f25a1d00ca3632</hosted-login-token>
655
- <created-at type="datetime">2011-03-18T18:46:07Z</created-at>
666
+ <hosted-login-token>20dba91b1378453b884d793d26d9a0be</hosted-login-token>
667
+ <created-at type="datetime">2011-04-04T02:16:32Z</created-at>
656
668
  <state>active</state>
657
669
  </account>
658
670
  <addons type="array"/>
@@ -660,7 +672,7 @@
660
672
 
661
673
  headers:
662
674
  authorization:
663
- - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
675
+ - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
664
676
  content-type:
665
677
  - application/xml
666
678
  accept:
@@ -677,13 +689,13 @@
677
689
  cache-control:
678
690
  - no-cache
679
691
  x-runtime:
680
- - "7587"
692
+ - "3904"
681
693
  content-type:
682
694
  - application/xml; charset=utf-8
683
695
  content-length:
684
- - "906"
696
+ - "905"
685
697
  set-cookie:
686
- - _recurly_session=f526c7aeb5c28b98cb4f7c1088c3a85e; domain=.recurly.local; path=/; HttpOnly
698
+ - _recurly_session=3fb7003ce1634d0bc30727ad3517dc86; domain=.recurly.local; path=/; HttpOnly
687
699
  connection:
688
700
  - close
689
701
  server:
@@ -699,12 +711,12 @@
699
711
  </plan>
700
712
  <state>active</state>
701
713
  <quantity type="integer">1</quantity>
702
- <total_amount_in_cents type="integer">1000</total_amount_in_cents>
703
- <activated_at type="datetime">2011-03-18T18:46:26Z</activated_at>
714
+ <total_amount_in_cents type="integer">200</total_amount_in_cents>
715
+ <activated_at type="datetime">2011-04-04T02:16:53Z</activated_at>
704
716
  <canceled_at nil="true" type="datetime"></canceled_at>
705
717
  <expires_at nil="true" type="datetime"></expires_at>
706
- <current_period_started_at type="datetime">2011-03-18T18:46:26Z</current_period_started_at>
707
- <current_period_ends_at type="datetime">2011-03-19T18:46:26Z</current_period_ends_at>
718
+ <current_period_started_at type="datetime">2011-04-04T02:16:53Z</current_period_started_at>
719
+ <current_period_ends_at type="datetime">2011-05-04T02:16:53Z</current_period_ends_at>
708
720
  <trial_started_at nil="true" type="datetime"></trial_started_at>
709
721
  <trial_ends_at nil="true" type="datetime"></trial_ends_at>
710
722
  <add_ons type="array">
@@ -715,11 +727,11 @@
715
727
  - !ruby/struct:VCR::HTTPInteraction
716
728
  request: !ruby/struct:VCR::Request
717
729
  method: :get
718
- uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/company/plans/paid.xml
730
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/company/plans/paid.xml
719
731
  body:
720
732
  headers:
721
733
  authorization:
722
- - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
734
+ - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
723
735
  accept:
724
736
  - application/xml
725
737
  accept-encoding:
@@ -734,17 +746,17 @@
734
746
  message: OK
735
747
  headers:
736
748
  x-runtime:
737
- - "270"
749
+ - "351"
738
750
  content-type:
739
751
  - application/xml; charset=utf-8
740
752
  etag:
741
- - "\"dc04fba13f15d49d04ca6692abb21ff9\""
753
+ - "\"eea146faf9def8e0ad1bce0a43411f13\""
742
754
  cache-control:
743
755
  - private, max-age=0, must-revalidate
744
756
  content-length:
745
- - "1146"
757
+ - "1558"
746
758
  set-cookie:
747
- - _recurly_session=56c65367e1d5f5abf50e29074e986de5; domain=.recurly.local; path=/; HttpOnly
759
+ - _recurly_session=074e69bf53996da149a114fab7a058d5; domain=.recurly.local; path=/; HttpOnly
748
760
  connection:
749
761
  - close
750
762
  server:
@@ -757,30 +769,42 @@
757
769
  <description></description>
758
770
  <success_url></success_url>
759
771
  <cancel_url></cancel_url>
760
- <created_at type="datetime">2011-02-02T21:02:59Z</created_at>
761
- <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
772
+ <created_at type="datetime">2011-04-03T21:46:48Z</created_at>
773
+ <unit_amount_in_cents type="integer">200</unit_amount_in_cents>
762
774
  <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
763
775
  <plan_interval_length type="integer">1</plan_interval_length>
764
- <plan_interval_unit>days</plan_interval_unit>
776
+ <plan_interval_unit>months</plan_interval_unit>
765
777
  <trial_interval_length type="integer">0</trial_interval_length>
766
778
  <trial_interval_unit>months</trial_interval_unit>
767
779
  <latest_version depreciated="true">
768
780
  <version type="integer">1</version>
769
- <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
781
+ <unit_amount_in_cents type="integer">200</unit_amount_in_cents>
770
782
  <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
771
783
  <plan_interval_length type="integer">1</plan_interval_length>
772
- <plan_interval_unit>days</plan_interval_unit>
784
+ <plan_interval_unit>months</plan_interval_unit>
773
785
  <trial_interval_length type="integer">0</trial_interval_length>
774
786
  <trial_interval_unit>months</trial_interval_unit>
775
- <created_at type="datetime">2011-02-21T01:06:56Z</created_at>
787
+ <created_at type="datetime">2011-04-04T02:15:00Z</created_at>
776
788
  </latest_version>
789
+ <add_ons type="array">
790
+ <add_on>
791
+ <add_on_code>special</add_on_code>
792
+ <default_unit_amount_in_cents>1000</default_unit_amount_in_cents>
793
+ <default_quantity>1</default_quantity>
794
+ </add_on>
795
+ <add_on>
796
+ <add_on_code>special2</add_on_code>
797
+ <default_unit_amount_in_cents>50000</default_unit_amount_in_cents>
798
+ <default_quantity>1</default_quantity>
799
+ </add_on>
800
+ </add_ons>
777
801
  </plan>
778
802
 
779
803
  http_version: "1.1"
780
804
  - !ruby/struct:VCR::HTTPInteraction
781
805
  request: !ruby/struct:VCR::Request
782
806
  method: :post
783
- uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/account-list-num-1-1297746103/subscription.xml
807
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/account-list-num-1-1297746103/subscription.xml
784
808
  body: |
785
809
  <?xml version="1.0" encoding="UTF-8"?>
786
810
  <subscription>
@@ -803,7 +827,7 @@
803
827
  <credit-card>
804
828
  <number>4111111111111111</number>
805
829
  <year type="integer">2012</year>
806
- <month type="integer">3</month>
830
+ <month type="integer">4</month>
807
831
  <verification-value>123</verification-value>
808
832
  </credit-card>
809
833
  </billing-info>
@@ -812,8 +836,8 @@
812
836
  <username type="yaml" nil="true"></username>
813
837
  <balance-in-cents type="integer">0</balance-in-cents>
814
838
  <closed type="boolean">false</closed>
815
- <hosted-login-token>d5170207a94944959eaaa6d3e2ab8b67</hosted-login-token>
816
- <created-at type="datetime">2011-03-18T18:46:09Z</created-at>
839
+ <hosted-login-token>0dc873dcd6f4481a8c2a838a38ac96b3</hosted-login-token>
840
+ <created-at type="datetime">2011-04-04T02:16:34Z</created-at>
817
841
  <state>active</state>
818
842
  </account>
819
843
  <addons type="array"/>
@@ -821,7 +845,7 @@
821
845
 
822
846
  headers:
823
847
  authorization:
824
- - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
848
+ - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
825
849
  content-type:
826
850
  - application/xml
827
851
  accept:
@@ -838,13 +862,13 @@
838
862
  cache-control:
839
863
  - no-cache
840
864
  x-runtime:
841
- - "6959"
865
+ - "4018"
842
866
  content-type:
843
867
  - application/xml; charset=utf-8
844
868
  content-length:
845
- - "906"
869
+ - "905"
846
870
  set-cookie:
847
- - _recurly_session=f2d4b23e1e3874159398c3aee3b5a11d; domain=.recurly.local; path=/; HttpOnly
871
+ - _recurly_session=bdd77e74657a40bd8d01d69af3c66cdb; domain=.recurly.local; path=/; HttpOnly
848
872
  connection:
849
873
  - close
850
874
  server:
@@ -860,12 +884,12 @@
860
884
  </plan>
861
885
  <state>active</state>
862
886
  <quantity type="integer">1</quantity>
863
- <total_amount_in_cents type="integer">1000</total_amount_in_cents>
864
- <activated_at type="datetime">2011-03-18T18:46:37Z</activated_at>
887
+ <total_amount_in_cents type="integer">200</total_amount_in_cents>
888
+ <activated_at type="datetime">2011-04-04T02:17:01Z</activated_at>
865
889
  <canceled_at nil="true" type="datetime"></canceled_at>
866
890
  <expires_at nil="true" type="datetime"></expires_at>
867
- <current_period_started_at type="datetime">2011-03-18T18:46:37Z</current_period_started_at>
868
- <current_period_ends_at type="datetime">2011-03-19T18:46:37Z</current_period_ends_at>
891
+ <current_period_started_at type="datetime">2011-04-04T02:17:01Z</current_period_started_at>
892
+ <current_period_ends_at type="datetime">2011-05-04T02:17:01Z</current_period_ends_at>
869
893
  <trial_started_at nil="true" type="datetime"></trial_started_at>
870
894
  <trial_ends_at nil="true" type="datetime"></trial_ends_at>
871
895
  <add_ons type="array">
@@ -876,11 +900,11 @@
876
900
  - !ruby/struct:VCR::HTTPInteraction
877
901
  request: !ruby/struct:VCR::Request
878
902
  method: :get
879
- uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/company/plans/paid.xml
903
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/company/plans/paid.xml
880
904
  body:
881
905
  headers:
882
906
  authorization:
883
- - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
907
+ - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
884
908
  accept:
885
909
  - application/xml
886
910
  accept-encoding:
@@ -895,17 +919,17 @@
895
919
  message: OK
896
920
  headers:
897
921
  x-runtime:
898
- - "266"
922
+ - "347"
899
923
  content-type:
900
924
  - application/xml; charset=utf-8
901
925
  etag:
902
- - "\"dc04fba13f15d49d04ca6692abb21ff9\""
926
+ - "\"eea146faf9def8e0ad1bce0a43411f13\""
903
927
  cache-control:
904
928
  - private, max-age=0, must-revalidate
905
929
  content-length:
906
- - "1146"
930
+ - "1558"
907
931
  set-cookie:
908
- - _recurly_session=64abfab7848b86c5ea3211c123a8e049; domain=.recurly.local; path=/; HttpOnly
932
+ - _recurly_session=9291a2dc7c865100c45f7ec5dcd7eb3f; domain=.recurly.local; path=/; HttpOnly
909
933
  connection:
910
934
  - close
911
935
  server:
@@ -918,30 +942,42 @@
918
942
  <description></description>
919
943
  <success_url></success_url>
920
944
  <cancel_url></cancel_url>
921
- <created_at type="datetime">2011-02-02T21:02:59Z</created_at>
922
- <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
945
+ <created_at type="datetime">2011-04-03T21:46:48Z</created_at>
946
+ <unit_amount_in_cents type="integer">200</unit_amount_in_cents>
923
947
  <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
924
948
  <plan_interval_length type="integer">1</plan_interval_length>
925
- <plan_interval_unit>days</plan_interval_unit>
949
+ <plan_interval_unit>months</plan_interval_unit>
926
950
  <trial_interval_length type="integer">0</trial_interval_length>
927
951
  <trial_interval_unit>months</trial_interval_unit>
928
952
  <latest_version depreciated="true">
929
953
  <version type="integer">1</version>
930
- <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
954
+ <unit_amount_in_cents type="integer">200</unit_amount_in_cents>
931
955
  <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
932
956
  <plan_interval_length type="integer">1</plan_interval_length>
933
- <plan_interval_unit>days</plan_interval_unit>
957
+ <plan_interval_unit>months</plan_interval_unit>
934
958
  <trial_interval_length type="integer">0</trial_interval_length>
935
959
  <trial_interval_unit>months</trial_interval_unit>
936
- <created_at type="datetime">2011-02-21T01:06:56Z</created_at>
960
+ <created_at type="datetime">2011-04-04T02:15:00Z</created_at>
937
961
  </latest_version>
962
+ <add_ons type="array">
963
+ <add_on>
964
+ <add_on_code>special</add_on_code>
965
+ <default_unit_amount_in_cents>1000</default_unit_amount_in_cents>
966
+ <default_quantity>1</default_quantity>
967
+ </add_on>
968
+ <add_on>
969
+ <add_on_code>special2</add_on_code>
970
+ <default_unit_amount_in_cents>50000</default_unit_amount_in_cents>
971
+ <default_quantity>1</default_quantity>
972
+ </add_on>
973
+ </add_ons>
938
974
  </plan>
939
975
 
940
976
  http_version: "1.1"
941
977
  - !ruby/struct:VCR::HTTPInteraction
942
978
  request: !ruby/struct:VCR::Request
943
979
  method: :post
944
- uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/account-list-num-2-1297746103/subscription.xml
980
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/account-list-num-2-1297746103/subscription.xml
945
981
  body: |
946
982
  <?xml version="1.0" encoding="UTF-8"?>
947
983
  <subscription>
@@ -964,7 +1000,7 @@
964
1000
  <credit-card>
965
1001
  <number>4111111111111111</number>
966
1002
  <year type="integer">2012</year>
967
- <month type="integer">3</month>
1003
+ <month type="integer">4</month>
968
1004
  <verification-value>123</verification-value>
969
1005
  </credit-card>
970
1006
  </billing-info>
@@ -973,8 +1009,8 @@
973
1009
  <username type="yaml" nil="true"></username>
974
1010
  <balance-in-cents type="integer">0</balance-in-cents>
975
1011
  <closed type="boolean">false</closed>
976
- <hosted-login-token>b06d728c30ef4ac48add5c524b97838c</hosted-login-token>
977
- <created-at type="datetime">2011-03-18T18:46:12Z</created-at>
1012
+ <hosted-login-token>562aa2f0d4444614bcfdb35b1dc8046e</hosted-login-token>
1013
+ <created-at type="datetime">2011-04-04T02:16:37Z</created-at>
978
1014
  <state>active</state>
979
1015
  </account>
980
1016
  <addons type="array"/>
@@ -982,7 +1018,7 @@
982
1018
 
983
1019
  headers:
984
1020
  authorization:
985
- - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
1021
+ - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
986
1022
  content-type:
987
1023
  - application/xml
988
1024
  accept:
@@ -999,13 +1035,13 @@
999
1035
  cache-control:
1000
1036
  - no-cache
1001
1037
  x-runtime:
1002
- - "7010"
1038
+ - "4502"
1003
1039
  content-type:
1004
1040
  - application/xml; charset=utf-8
1005
1041
  content-length:
1006
- - "906"
1042
+ - "905"
1007
1043
  set-cookie:
1008
- - _recurly_session=658047e9ff7d17e41fd9640224f3328a; domain=.recurly.local; path=/; HttpOnly
1044
+ - _recurly_session=e79076d25494c207165c06fa0af7fdf7; domain=.recurly.local; path=/; HttpOnly
1009
1045
  connection:
1010
1046
  - close
1011
1047
  server:
@@ -1021,12 +1057,12 @@
1021
1057
  </plan>
1022
1058
  <state>active</state>
1023
1059
  <quantity type="integer">1</quantity>
1024
- <total_amount_in_cents type="integer">1000</total_amount_in_cents>
1025
- <activated_at type="datetime">2011-03-18T18:46:47Z</activated_at>
1060
+ <total_amount_in_cents type="integer">200</total_amount_in_cents>
1061
+ <activated_at type="datetime">2011-04-04T02:17:11Z</activated_at>
1026
1062
  <canceled_at nil="true" type="datetime"></canceled_at>
1027
1063
  <expires_at nil="true" type="datetime"></expires_at>
1028
- <current_period_started_at type="datetime">2011-03-18T18:46:47Z</current_period_started_at>
1029
- <current_period_ends_at type="datetime">2011-03-19T18:46:47Z</current_period_ends_at>
1064
+ <current_period_started_at type="datetime">2011-04-04T02:17:11Z</current_period_started_at>
1065
+ <current_period_ends_at type="datetime">2011-05-04T02:17:11Z</current_period_ends_at>
1030
1066
  <trial_started_at nil="true" type="datetime"></trial_started_at>
1031
1067
  <trial_ends_at nil="true" type="datetime"></trial_ends_at>
1032
1068
  <add_ons type="array">
@@ -1037,11 +1073,11 @@
1037
1073
  - !ruby/struct:VCR::HTTPInteraction
1038
1074
  request: !ruby/struct:VCR::Request
1039
1075
  method: :get
1040
- uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/company/plans/paid.xml
1076
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/company/plans/paid.xml
1041
1077
  body:
1042
1078
  headers:
1043
1079
  authorization:
1044
- - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
1080
+ - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
1045
1081
  accept:
1046
1082
  - application/xml
1047
1083
  accept-encoding:
@@ -1056,17 +1092,17 @@
1056
1092
  message: OK
1057
1093
  headers:
1058
1094
  x-runtime:
1059
- - "376"
1095
+ - "395"
1060
1096
  content-type:
1061
1097
  - application/xml; charset=utf-8
1062
1098
  etag:
1063
- - "\"dc04fba13f15d49d04ca6692abb21ff9\""
1099
+ - "\"eea146faf9def8e0ad1bce0a43411f13\""
1064
1100
  cache-control:
1065
1101
  - private, max-age=0, must-revalidate
1066
1102
  content-length:
1067
- - "1146"
1103
+ - "1558"
1068
1104
  set-cookie:
1069
- - _recurly_session=c3afd13a83bd3ee910ba29688e0a2b25; domain=.recurly.local; path=/; HttpOnly
1105
+ - _recurly_session=b4193c03249a2737f7573281b1a613d9; domain=.recurly.local; path=/; HttpOnly
1070
1106
  connection:
1071
1107
  - close
1072
1108
  server:
@@ -1079,30 +1115,42 @@
1079
1115
  <description></description>
1080
1116
  <success_url></success_url>
1081
1117
  <cancel_url></cancel_url>
1082
- <created_at type="datetime">2011-02-02T21:02:59Z</created_at>
1083
- <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
1118
+ <created_at type="datetime">2011-04-03T21:46:48Z</created_at>
1119
+ <unit_amount_in_cents type="integer">200</unit_amount_in_cents>
1084
1120
  <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
1085
1121
  <plan_interval_length type="integer">1</plan_interval_length>
1086
- <plan_interval_unit>days</plan_interval_unit>
1122
+ <plan_interval_unit>months</plan_interval_unit>
1087
1123
  <trial_interval_length type="integer">0</trial_interval_length>
1088
1124
  <trial_interval_unit>months</trial_interval_unit>
1089
1125
  <latest_version depreciated="true">
1090
1126
  <version type="integer">1</version>
1091
- <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
1127
+ <unit_amount_in_cents type="integer">200</unit_amount_in_cents>
1092
1128
  <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
1093
1129
  <plan_interval_length type="integer">1</plan_interval_length>
1094
- <plan_interval_unit>days</plan_interval_unit>
1130
+ <plan_interval_unit>months</plan_interval_unit>
1095
1131
  <trial_interval_length type="integer">0</trial_interval_length>
1096
1132
  <trial_interval_unit>months</trial_interval_unit>
1097
- <created_at type="datetime">2011-02-21T01:06:56Z</created_at>
1133
+ <created_at type="datetime">2011-04-04T02:15:00Z</created_at>
1098
1134
  </latest_version>
1135
+ <add_ons type="array">
1136
+ <add_on>
1137
+ <add_on_code>special</add_on_code>
1138
+ <default_unit_amount_in_cents>1000</default_unit_amount_in_cents>
1139
+ <default_quantity>1</default_quantity>
1140
+ </add_on>
1141
+ <add_on>
1142
+ <add_on_code>special2</add_on_code>
1143
+ <default_unit_amount_in_cents>50000</default_unit_amount_in_cents>
1144
+ <default_quantity>1</default_quantity>
1145
+ </add_on>
1146
+ </add_ons>
1099
1147
  </plan>
1100
1148
 
1101
1149
  http_version: "1.1"
1102
1150
  - !ruby/struct:VCR::HTTPInteraction
1103
1151
  request: !ruby/struct:VCR::Request
1104
1152
  method: :post
1105
- uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/account-list-num-3-1297746103/subscription.xml
1153
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/account-list-num-3-1297746103/subscription.xml
1106
1154
  body: |
1107
1155
  <?xml version="1.0" encoding="UTF-8"?>
1108
1156
  <subscription>
@@ -1125,7 +1173,7 @@
1125
1173
  <credit-card>
1126
1174
  <number>4111111111111111</number>
1127
1175
  <year type="integer">2012</year>
1128
- <month type="integer">3</month>
1176
+ <month type="integer">4</month>
1129
1177
  <verification-value>123</verification-value>
1130
1178
  </credit-card>
1131
1179
  </billing-info>
@@ -1134,8 +1182,8 @@
1134
1182
  <username type="yaml" nil="true"></username>
1135
1183
  <balance-in-cents type="integer">0</balance-in-cents>
1136
1184
  <closed type="boolean">false</closed>
1137
- <hosted-login-token>7379846a12814ca293129ea9da291c30</hosted-login-token>
1138
- <created-at type="datetime">2011-03-18T18:46:14Z</created-at>
1185
+ <hosted-login-token>80ac710da9f64604935a69595ff27290</hosted-login-token>
1186
+ <created-at type="datetime">2011-04-04T02:16:39Z</created-at>
1139
1187
  <state>active</state>
1140
1188
  </account>
1141
1189
  <addons type="array"/>
@@ -1143,7 +1191,7 @@
1143
1191
 
1144
1192
  headers:
1145
1193
  authorization:
1146
- - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
1194
+ - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
1147
1195
  content-type:
1148
1196
  - application/xml
1149
1197
  accept:
@@ -1160,13 +1208,13 @@
1160
1208
  cache-control:
1161
1209
  - no-cache
1162
1210
  x-runtime:
1163
- - "7153"
1211
+ - "3812"
1164
1212
  content-type:
1165
1213
  - application/xml; charset=utf-8
1166
1214
  content-length:
1167
- - "906"
1215
+ - "905"
1168
1216
  set-cookie:
1169
- - _recurly_session=5a16c7570da219986cc8f7b31d86e086; domain=.recurly.local; path=/; HttpOnly
1217
+ - _recurly_session=8b2ad67b0fbdf18e29a0d5e6824d8403; domain=.recurly.local; path=/; HttpOnly
1170
1218
  connection:
1171
1219
  - close
1172
1220
  server:
@@ -1182,12 +1230,12 @@
1182
1230
  </plan>
1183
1231
  <state>active</state>
1184
1232
  <quantity type="integer">1</quantity>
1185
- <total_amount_in_cents type="integer">1000</total_amount_in_cents>
1186
- <activated_at type="datetime">2011-03-18T18:46:58Z</activated_at>
1233
+ <total_amount_in_cents type="integer">200</total_amount_in_cents>
1234
+ <activated_at type="datetime">2011-04-04T02:17:19Z</activated_at>
1187
1235
  <canceled_at nil="true" type="datetime"></canceled_at>
1188
1236
  <expires_at nil="true" type="datetime"></expires_at>
1189
- <current_period_started_at type="datetime">2011-03-18T18:46:58Z</current_period_started_at>
1190
- <current_period_ends_at type="datetime">2011-03-19T18:46:58Z</current_period_ends_at>
1237
+ <current_period_started_at type="datetime">2011-04-04T02:17:19Z</current_period_started_at>
1238
+ <current_period_ends_at type="datetime">2011-05-04T02:17:19Z</current_period_ends_at>
1191
1239
  <trial_started_at nil="true" type="datetime"></trial_started_at>
1192
1240
  <trial_ends_at nil="true" type="datetime"></trial_ends_at>
1193
1241
  <add_ons type="array">
@@ -1198,11 +1246,11 @@
1198
1246
  - !ruby/struct:VCR::HTTPInteraction
1199
1247
  request: !ruby/struct:VCR::Request
1200
1248
  method: :get
1201
- uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts.xml
1249
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts.xml
1202
1250
  body:
1203
1251
  headers:
1204
1252
  authorization:
1205
- - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
1253
+ - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
1206
1254
  accept:
1207
1255
  - application/xml
1208
1256
  accept-encoding:
@@ -1217,7 +1265,7 @@
1217
1265
  message: OK
1218
1266
  headers:
1219
1267
  x-runtime:
1220
- - "549"
1268
+ - "331"
1221
1269
  content-type:
1222
1270
  - application/xml; charset=utf-8
1223
1271
  etag:
@@ -1227,7 +1275,7 @@
1227
1275
  content-length:
1228
1276
  - "3729"
1229
1277
  set-cookie:
1230
- - _recurly_session=53bbaf3dade0b956bcec392f5012cca1; domain=.recurly.local; path=/; HttpOnly
1278
+ - _recurly_session=bdd283c01e5552bac8b2a5271321f7ea; domain=.recurly.local; path=/; HttpOnly
1231
1279
  connection:
1232
1280
  - close
1233
1281
  server:
@@ -1343,11 +1391,11 @@
1343
1391
  - !ruby/struct:VCR::HTTPInteraction
1344
1392
  request: !ruby/struct:VCR::Request
1345
1393
  method: :get
1346
- uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts.xml?show=active_subscribers
1394
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts.xml?show=active_subscribers
1347
1395
  body:
1348
1396
  headers:
1349
1397
  authorization:
1350
- - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
1398
+ - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
1351
1399
  accept:
1352
1400
  - application/xml
1353
1401
  accept-encoding:
@@ -1362,7 +1410,7 @@
1362
1410
  message: OK
1363
1411
  headers:
1364
1412
  x-runtime:
1365
- - "339"
1413
+ - "303"
1366
1414
  content-type:
1367
1415
  - application/xml; charset=utf-8
1368
1416
  etag:
@@ -1372,7 +1420,7 @@
1372
1420
  content-length:
1373
1421
  - "1519"
1374
1422
  set-cookie:
1375
- - _recurly_session=0082c83f9548d658db135dc874f87a35; domain=.recurly.local; path=/; HttpOnly
1423
+ - _recurly_session=9b4e0c9e7258da6991d19303878b4319; domain=.recurly.local; path=/; HttpOnly
1376
1424
  connection:
1377
1425
  - close
1378
1426
  server:
@@ -1425,11 +1473,11 @@
1425
1473
  - !ruby/struct:VCR::HTTPInteraction
1426
1474
  request: !ruby/struct:VCR::Request
1427
1475
  method: :get
1428
- uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts.xml?show=non_subscribers
1476
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts.xml?show=non_subscribers
1429
1477
  body:
1430
1478
  headers:
1431
1479
  authorization:
1432
- - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
1480
+ - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
1433
1481
  accept:
1434
1482
  - application/xml
1435
1483
  accept-encoding:
@@ -1444,7 +1492,7 @@
1444
1492
  message: OK
1445
1493
  headers:
1446
1494
  x-runtime:
1447
- - "447"
1495
+ - "286"
1448
1496
  content-type:
1449
1497
  - application/xml; charset=utf-8
1450
1498
  etag:
@@ -1454,7 +1502,7 @@
1454
1502
  content-length:
1455
1503
  - "2428"
1456
1504
  set-cookie:
1457
- - _recurly_session=af6181abda17e65bc668e3460ff655b1; domain=.recurly.local; path=/; HttpOnly
1505
+ - _recurly_session=5f6b11f56da0a4ecd6b1f55e5c53568a; domain=.recurly.local; path=/; HttpOnly
1458
1506
  connection:
1459
1507
  - close
1460
1508
  server: