recurly 0.3.3 → 0.3.4

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of recurly might be problematic. Click here for more details.

Files changed (99) hide show
  1. data/README.md +15 -11
  2. data/lib/patches/active_resource/connection.rb +10 -0
  3. data/lib/recurly.rb +35 -9
  4. data/lib/recurly/account.rb +22 -1
  5. data/lib/recurly/account_base.rb +35 -0
  6. data/lib/recurly/base.rb +26 -39
  7. data/lib/recurly/billing_info.rb +40 -1
  8. data/lib/recurly/charge.rb +12 -1
  9. data/lib/recurly/coupon.rb +8 -0
  10. data/lib/recurly/credit.rb +12 -1
  11. data/lib/recurly/exceptions.rb +19 -0
  12. data/lib/recurly/invoice.rb +1 -1
  13. data/lib/recurly/plan.rb +13 -1
  14. data/lib/recurly/rails3/recurly.rake +5 -3
  15. data/lib/recurly/subscription.rb +21 -3
  16. data/lib/recurly/transaction.rb +29 -1
  17. data/lib/recurly/transparent.rb +140 -0
  18. data/lib/recurly/version.rb +1 -1
  19. data/spec/config/recurly.yml +12 -0
  20. data/spec/config/test1.yml +3 -1
  21. data/spec/config/test2.yml +4 -2
  22. data/spec/integration/credit_spec.rb +6 -6
  23. data/spec/integration/plan_spec.rb +2 -2
  24. data/spec/support/factory.rb +5 -3
  25. data/spec/unit/account_spec.rb +19 -0
  26. data/spec/unit/billing_info_spec.rb +38 -0
  27. data/spec/unit/charge_spec.rb +18 -0
  28. data/spec/unit/config_spec.rb +10 -6
  29. data/spec/unit/coupon_spec.rb +13 -0
  30. data/spec/unit/credit_spec.rb +18 -0
  31. data/spec/unit/plan_spec.rb +18 -0
  32. data/spec/unit/subscription_spec.rb +25 -0
  33. data/spec/unit/transaction_spec.rb +32 -0
  34. data/spec/unit/transparent_spec.rb +114 -0
  35. data/spec/vcr/account/accept-language-account/{1296674173.yml → 1297746103.yml} +16 -13
  36. data/spec/vcr/account/close/{1296674173.yml → 1297746103.yml} +31 -28
  37. data/spec/vcr/account/create-blank/{1296674173.yml → 1297746103.yml} +9 -5
  38. data/spec/vcr/account/create-duplicate/{1296674173.yml → 1297746103.yml} +22 -15
  39. data/spec/vcr/account/create-min/{1296674173.yml → 1297746103.yml} +16 -13
  40. data/spec/vcr/account/create/{1296674173.yml → 1297746103.yml} +16 -13
  41. data/spec/vcr/account/find/{1296674173.yml → 1297746103.yml} +29 -26
  42. data/spec/vcr/account/list/1297746103.yml +1579 -0
  43. data/spec/vcr/account/update/{1296674173.yml → 1297746103.yml} +54 -47
  44. data/spec/vcr/billing/create/{1296690812.yml → 1298594128.yml} +37 -34
  45. data/spec/vcr/billing/destroy/{1296690812.yml → 1298594128.yml} +46 -43
  46. data/spec/vcr/billing/find/{1296690812.yml → 1298594128.yml} +47 -44
  47. data/spec/vcr/billing/update/{1296690812.yml → 1298594128.yml} +50 -47
  48. data/spec/vcr/charge/create/{1296674173.yml → 1297746103.yml} +48 -45
  49. data/spec/vcr/charge/delete-uninvoiced/{1296674173.yml → 1297746103.yml} +49 -46
  50. data/spec/vcr/charge/list-all/{1296674173.yml → 1297746103.yml} +61 -58
  51. data/spec/vcr/charge/list-invoiced/{1296674173.yml → 1297746103.yml} +92 -89
  52. data/spec/vcr/charge/list-pending/{1296674173.yml → 1297746103.yml} +61 -58
  53. data/spec/vcr/charge/lookup/{1296674173.yml → 1297746103.yml} +34 -31
  54. data/spec/vcr/coupon/create/{1296774903.yml → 1299714521.yml} +35 -32
  55. data/spec/vcr/coupon/destroy/{1296688818.yml → 1299714521.yml} +34 -31
  56. data/spec/vcr/{coupon/create/1296688818.yml → credit/create/1299714599.yml} +53 -53
  57. data/spec/vcr/credit/delete/1299714599.yml +262 -0
  58. data/spec/vcr/credit/list/1299714599.yml +319 -0
  59. data/spec/vcr/credit/lookup/1299714599.yml +183 -0
  60. data/spec/vcr/invoice/create-no-charges/{1296674173.yml → 1297746103.yml} +34 -31
  61. data/spec/vcr/invoice/create/{1296674173.yml → 1297746103.yml} +63 -60
  62. data/spec/vcr/invoice/list/{1296674173.yml → 1297746103.yml} +87 -84
  63. data/spec/vcr/invoice/lookup/{1296674173.yml → 1297746103.yml} +64 -61
  64. data/spec/vcr/plan/all.yml +30 -30
  65. data/spec/vcr/plan/find.yml +25 -25
  66. data/spec/vcr/plan/update.yml +16 -15
  67. data/spec/vcr/subscription/addons/add/{1296674173.yml → 1297746103.yml} +44 -40
  68. data/spec/vcr/subscription/addons/create/{1296674173.yml → 1297746103.yml} +44 -40
  69. data/spec/vcr/subscription/addons/remove/{1296674173.yml → 1297746103.yml} +44 -40
  70. data/spec/vcr/subscription/cancel-with-code/{1296674173.yml → 1297746103.yml} +99 -95
  71. data/spec/vcr/subscription/cancel/{1296674173.yml → 1297746103.yml} +86 -82
  72. data/spec/vcr/subscription/change1/{1296674173.yml → 1297746103.yml} +82 -78
  73. data/spec/vcr/subscription/change2/{1296674173.yml → 1297746103.yml} +82 -78
  74. data/spec/vcr/subscription/create/{1296674173.yml → 1297746103.yml} +49 -45
  75. data/spec/vcr/subscription/find/{1296674173.yml → 1297746103.yml} +60 -56
  76. data/spec/vcr/subscription/reactivate/{1296674173.yml → 1297746103.yml} +93 -89
  77. data/spec/vcr/subscription/refund-full/{1296674173.yml → 1297746103.yml} +77 -73
  78. data/spec/vcr/subscription/refund-none/{1296674173.yml → 1297746103.yml} +77 -73
  79. data/spec/vcr/subscription/refund-partial/{1296674173.yml → 1297746103.yml} +77 -73
  80. data/spec/vcr/transaction/all/{1296674173.yml → 1297746103.yml} +107 -107
  81. data/spec/vcr/transaction/create-no-account/{1296674173.yml → 1297746103.yml} +14 -13
  82. data/spec/vcr/transaction/create-with-account/{1296674173.yml → 1297746103.yml} +46 -58
  83. data/spec/vcr/transaction/list-filled/1297746103.yml +213 -0
  84. data/spec/vcr/transaction/list-initial/{1296674173.yml → 1297746103.yml} +38 -35
  85. data/spec/vcr/transaction/lookup/1297746103.yml +213 -0
  86. data/spec/vcr/transaction/refund/1297746103.yml +213 -0
  87. data/spec/vcr/transaction/void/1297746103.yml +213 -0
  88. metadata +146 -139
  89. data/spec/vcr/account/list/1296674173.yml +0 -55
  90. data/spec/vcr/coupon/destroy/1296774903.yml +0 -207
  91. data/spec/vcr/credit/create/1296674173.yml +0 -121
  92. data/spec/vcr/credit/delete/1296674173.yml +0 -121
  93. data/spec/vcr/credit/list/1296674173.yml +0 -121
  94. data/spec/vcr/credit/lookup/1296674173.yml +0 -121
  95. data/spec/vcr/plan/delete/1296674173.yml +0 -225
  96. data/spec/vcr/transaction/list-filled/1296674173.yml +0 -487
  97. data/spec/vcr/transaction/lookup/1296674173.yml +0 -563
  98. data/spec/vcr/transaction/refund/1296674173.yml +0 -287
  99. data/spec/vcr/transaction/void/1296674173.yml +0 -352
@@ -2,21 +2,25 @@
2
2
  - !ruby/struct:VCR::HTTPInteraction
3
3
  request: !ruby/struct:VCR::Request
4
4
  method: :post
5
- uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts.xml
5
+ uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts.xml
6
6
  body: |
7
7
  <?xml version="1.0" encoding="UTF-8"?>
8
8
  <account>
9
- <account-code>charge-delete-uinvoiced-1296674173</account-code>
9
+ <account-code>charge-delete-uinvoiced-1297746103</account-code>
10
10
  <first-name>Verena</first-name>
11
11
  <last-name>Test</last-name>
12
12
  <email>verena@test.com</email>
13
13
  <company-name>Recurly Ruby Gem</company-name>
14
+ <billing-info>
15
+ <credit-card>
16
+ </credit-card>
17
+ </billing-info>
14
18
  <accept-language type="yaml" nil="true"></accept-language>
15
19
  </account>
16
20
 
17
21
  headers:
18
22
  authorization:
19
- - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
23
+ - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
20
24
  content-type:
21
25
  - application/xml
22
26
  accept:
@@ -33,9 +37,9 @@
33
37
  cache-control:
34
38
  - no-cache
35
39
  location:
36
- - http://litle-test.recurly.local:3000/accounts/charge-delete-uinvoiced-1296674173
40
+ - http://app.recurly.local:3000/accounts/charge-delete-uinvoiced-1297746103
37
41
  x-runtime:
38
- - "612"
42
+ - "451"
39
43
  content-type:
40
44
  - application/xml; charset=utf-8
41
45
  content-length:
@@ -43,18 +47,17 @@
43
47
  server:
44
48
  - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
45
49
  date:
46
- - Thu, 03 Feb 2011 22:19:08 GMT
50
+ - Fri, 11 Mar 2011 18:49:28 GMT
47
51
  connection:
48
52
  - close
49
53
  set-cookie:
50
- - account_credentials=67c52e2238a94f049ce9067dd0e5e40155d98b8b736ff5b50d2eff0d94c39f046aad16baddac437ac3e9048cf15c3c362a523413d1bd04004458952e65640421%3A%3A; domain=.recurly.local; path=/
51
- - ""
52
- - _recurly_session=bf44f7b5ddd11b8752428837ce3ed346; domain=.recurly.local; path=/; HttpOnly
54
+ - account_credentials=38acc33bd20e437bcbc11b3e00f4b13fba86ff9647106f5de356687e7738d855d5c3b2d1bb729cfaf50e2c8c0d24966a951fd8f55946540a59de96744b33b7ef%3A%3A; domain=.recurly.local; path=/
55
+ - _recurly_session=33ae2b1d4d2bfee537f0204f45910af2; domain=.recurly.local; path=/; HttpOnly
53
56
  body: |
54
57
  <?xml version="1.0" encoding="UTF-8"?>
55
58
  <account>
56
- <id>charge-delete-uinvoiced-1296674173</id>
57
- <account_code>charge-delete-uinvoiced-1296674173</account_code>
59
+ <id>charge-delete-uinvoiced-1297746103</id>
60
+ <account_code>charge-delete-uinvoiced-1297746103</account_code>
58
61
  <username></username>
59
62
  <email>verena@test.com</email>
60
63
  <first_name>Verena</first_name>
@@ -62,8 +65,8 @@
62
65
  <company_name>Recurly Ruby Gem</company_name>
63
66
  <balance_in_cents type="integer">0</balance_in_cents>
64
67
  <closed type="boolean">false</closed>
65
- <hosted_login_token>501b55e9573f462d9a65f899d7ca02f4</hosted_login_token>
66
- <created_at type="datetime">2011-02-03T22:19:08Z</created_at>
68
+ <hosted_login_token>5d7ab0ff9f1148f38a1d2e0422ca0c59</hosted_login_token>
69
+ <created_at type="datetime">2011-03-11T18:49:28Z</created_at>
67
70
  <state>active</state>
68
71
  </account>
69
72
 
@@ -71,7 +74,7 @@
71
74
  - !ruby/struct:VCR::HTTPInteraction
72
75
  request: !ruby/struct:VCR::Request
73
76
  method: :post
74
- uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/charge-delete-uinvoiced-1296674173/charges.xml
77
+ uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/charge-delete-uinvoiced-1297746103/charges.xml
75
78
  body: |
76
79
  <?xml version="1.0" encoding="UTF-8"?>
77
80
  <charge>
@@ -81,7 +84,7 @@
81
84
 
82
85
  headers:
83
86
  authorization:
84
- - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
87
+ - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
85
88
  content-type:
86
89
  - application/xml
87
90
  accept:
@@ -98,7 +101,7 @@
98
101
  cache-control:
99
102
  - no-cache
100
103
  x-runtime:
101
- - "423"
104
+ - "239"
102
105
  content-type:
103
106
  - application/xml; charset=utf-8
104
107
  content-length:
@@ -106,33 +109,33 @@
106
109
  server:
107
110
  - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
108
111
  date:
109
- - Thu, 03 Feb 2011 22:19:10 GMT
112
+ - Fri, 11 Mar 2011 18:49:30 GMT
110
113
  connection:
111
114
  - close
112
115
  set-cookie:
113
- - _recurly_session=0e4d67aae671c0a295a3135409cbe0b2; domain=.recurly.local; path=/; HttpOnly
116
+ - _recurly_session=9d4f4228c24650b29fe69f7fa5d6472b; domain=.recurly.local; path=/; HttpOnly
114
117
  body: |
115
118
  <?xml version="1.0" encoding="UTF-8"?>
116
119
  <charge type="charge">
117
- <id>7f2acc12bc5b43d08bcf779ea97fd6fd</id>
118
- <account_code>charge-delete-uinvoiced-1296674173</account_code>
120
+ <id>965409bc74124ab4833a69bc00c24930</id>
121
+ <account_code>charge-delete-uinvoiced-1297746103</account_code>
119
122
  <amount_in_cents type="integer">1315</amount_in_cents>
120
- <start_date type="datetime">2011-02-03T22:19:10Z</start_date>
123
+ <start_date type="datetime">2011-03-11T18:49:30Z</start_date>
121
124
  <end_date nil="true" type="datetime"></end_date>
122
125
  <invoice_number nil="true" type="integer"></invoice_number>
123
126
  <description>inconvenience fee</description>
124
- <created_at type="datetime">2011-02-03T22:19:10Z</created_at>
127
+ <created_at type="datetime">2011-03-11T18:49:30Z</created_at>
125
128
  </charge>
126
129
 
127
130
  http_version: "1.1"
128
131
  - !ruby/struct:VCR::HTTPInteraction
129
132
  request: !ruby/struct:VCR::Request
130
133
  method: :get
131
- uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/charge-delete-uinvoiced-1296674173/charges/7f2acc12bc5b43d08bcf779ea97fd6fd.xml
134
+ uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/charge-delete-uinvoiced-1297746103/charges/965409bc74124ab4833a69bc00c24930.xml
132
135
  body:
133
136
  headers:
134
137
  authorization:
135
- - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
138
+ - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
136
139
  accept:
137
140
  - application/xml
138
141
  accept-encoding:
@@ -147,11 +150,11 @@
147
150
  message: "OK "
148
151
  headers:
149
152
  x-runtime:
150
- - "192"
153
+ - "211"
151
154
  content-type:
152
155
  - application/xml; charset=utf-8
153
156
  etag:
154
- - "\"293c3c813870537a99089933db7fc977\""
157
+ - "\"7fc95325f952d7096ee98e86330f7fbe\""
155
158
  cache-control:
156
159
  - private, max-age=0, must-revalidate
157
160
  content-length:
@@ -159,33 +162,33 @@
159
162
  server:
160
163
  - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
161
164
  date:
162
- - Thu, 03 Feb 2011 22:19:12 GMT
165
+ - Fri, 11 Mar 2011 18:49:32 GMT
163
166
  connection:
164
167
  - close
165
168
  set-cookie:
166
- - _recurly_session=192c6d2a2bdcfecc85d05b0829c9bf1c; domain=.recurly.local; path=/; HttpOnly
169
+ - _recurly_session=289f03ae0b7837a5a6485c60050feabf; domain=.recurly.local; path=/; HttpOnly
167
170
  body: |
168
171
  <?xml version="1.0" encoding="UTF-8"?>
169
172
  <charge type="charge">
170
- <id>7f2acc12bc5b43d08bcf779ea97fd6fd</id>
171
- <account_code>charge-delete-uinvoiced-1296674173</account_code>
173
+ <id>965409bc74124ab4833a69bc00c24930</id>
174
+ <account_code>charge-delete-uinvoiced-1297746103</account_code>
172
175
  <amount_in_cents type="integer">1315</amount_in_cents>
173
- <start_date type="datetime">2011-02-03T22:19:10Z</start_date>
176
+ <start_date type="datetime">2011-03-11T18:49:30Z</start_date>
174
177
  <end_date nil="true" type="datetime"></end_date>
175
178
  <invoice_number nil="true" type="integer"></invoice_number>
176
179
  <description>inconvenience fee</description>
177
- <created_at type="datetime">2011-02-03T22:19:10Z</created_at>
180
+ <created_at type="datetime">2011-03-11T18:49:30Z</created_at>
178
181
  </charge>
179
182
 
180
183
  http_version: "1.1"
181
184
  - !ruby/struct:VCR::HTTPInteraction
182
185
  request: !ruby/struct:VCR::Request
183
186
  method: :delete
184
- uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/charge-delete-uinvoiced-1296674173/charges/7f2acc12bc5b43d08bcf779ea97fd6fd.xml
187
+ uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/charge-delete-uinvoiced-1297746103/charges/965409bc74124ab4833a69bc00c24930.xml
185
188
  body:
186
189
  headers:
187
190
  authorization:
188
- - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
191
+ - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
189
192
  accept:
190
193
  - application/xml
191
194
  user-agent:
@@ -200,7 +203,7 @@
200
203
  cache-control:
201
204
  - no-cache
202
205
  x-runtime:
203
- - "400"
206
+ - "203"
204
207
  content-type:
205
208
  - application/xml; charset=utf-8
206
209
  content-length:
@@ -208,21 +211,21 @@
208
211
  server:
209
212
  - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
210
213
  date:
211
- - Thu, 03 Feb 2011 22:19:14 GMT
214
+ - Fri, 11 Mar 2011 18:49:34 GMT
212
215
  connection:
213
216
  - close
214
217
  set-cookie:
215
- - _recurly_session=6130797c0f8bfd1f9e8d88925e921fce; domain=.recurly.local; path=/; HttpOnly
218
+ - _recurly_session=fa51a26ad2cc9e323c44428c689abde0; domain=.recurly.local; path=/; HttpOnly
216
219
  body: " "
217
220
  http_version: "1.1"
218
221
  - !ruby/struct:VCR::HTTPInteraction
219
222
  request: !ruby/struct:VCR::Request
220
223
  method: :get
221
- uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/charge-delete-uinvoiced-1296674173/charges/7f2acc12bc5b43d08bcf779ea97fd6fd.xml
224
+ uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/charge-delete-uinvoiced-1297746103/charges/965409bc74124ab4833a69bc00c24930.xml
222
225
  body:
223
226
  headers:
224
227
  authorization:
225
- - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
228
+ - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
226
229
  accept:
227
230
  - application/xml
228
231
  accept-encoding:
@@ -245,11 +248,11 @@
245
248
  server:
246
249
  - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
247
250
  date:
248
- - Thu, 03 Feb 2011 22:19:16 GMT
251
+ - Fri, 11 Mar 2011 18:49:36 GMT
249
252
  connection:
250
253
  - close
251
254
  set-cookie:
252
- - _recurly_session=39b21e6b931a36d5c4f58fe12159b30b; domain=.recurly.local; path=/; HttpOnly
255
+ - _recurly_session=941b2360324b34e8d2a925dc6bde6055; domain=.recurly.local; path=/; HttpOnly
253
256
  body: |
254
257
  <?xml version="1.0" encoding="UTF-8"?>
255
258
  <errors>
@@ -260,7 +263,7 @@
260
263
  - !ruby/struct:VCR::HTTPInteraction
261
264
  request: !ruby/struct:VCR::Request
262
265
  method: :post
263
- uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/charge-delete-uinvoiced-1296674173/invoices.xml
266
+ uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/charge-delete-uinvoiced-1297746103/invoices.xml
264
267
  body: |
265
268
  <?xml version="1.0" encoding="UTF-8"?>
266
269
  <invoice>
@@ -268,7 +271,7 @@
268
271
 
269
272
  headers:
270
273
  authorization:
271
- - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
274
+ - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
272
275
  content-type:
273
276
  - application/xml
274
277
  accept:
@@ -285,7 +288,7 @@
285
288
  cache-control:
286
289
  - no-cache
287
290
  x-runtime:
288
- - "53"
291
+ - "181"
289
292
  content-type:
290
293
  - application/xml; charset=utf-8
291
294
  content-length:
@@ -293,11 +296,11 @@
293
296
  server:
294
297
  - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
295
298
  date:
296
- - Thu, 03 Feb 2011 22:19:18 GMT
299
+ - Fri, 11 Mar 2011 18:49:39 GMT
297
300
  connection:
298
301
  - close
299
302
  set-cookie:
300
- - _recurly_session=c1278f0d4182588ca84fac1777a95e87; domain=.recurly.local; path=/; HttpOnly
303
+ - _recurly_session=450d82321fce61a705008d11ba1b311e; domain=.recurly.local; path=/; HttpOnly
301
304
  body: |
302
305
  <?xml version="1.0" encoding="UTF-8"?>
303
306
  <errors>
@@ -2,21 +2,25 @@
2
2
  - !ruby/struct:VCR::HTTPInteraction
3
3
  request: !ruby/struct:VCR::Request
4
4
  method: :post
5
- uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts.xml
5
+ uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts.xml
6
6
  body: |
7
7
  <?xml version="1.0" encoding="UTF-8"?>
8
8
  <account>
9
- <account-code>charge-list-all-1296674173</account-code>
9
+ <account-code>charge-list-all-1297746103</account-code>
10
10
  <first-name>Verena</first-name>
11
11
  <last-name>Test</last-name>
12
12
  <email>verena@test.com</email>
13
13
  <company-name>Recurly Ruby Gem</company-name>
14
+ <billing-info>
15
+ <credit-card>
16
+ </credit-card>
17
+ </billing-info>
14
18
  <accept-language type="yaml" nil="true"></accept-language>
15
19
  </account>
16
20
 
17
21
  headers:
18
22
  authorization:
19
- - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
23
+ - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
20
24
  content-type:
21
25
  - application/xml
22
26
  accept:
@@ -33,9 +37,9 @@
33
37
  cache-control:
34
38
  - no-cache
35
39
  location:
36
- - http://litle-test.recurly.local:3000/accounts/charge-list-all-1296674173
40
+ - http://app.recurly.local:3000/accounts/charge-list-all-1297746103
37
41
  x-runtime:
38
- - "584"
42
+ - "523"
39
43
  content-type:
40
44
  - application/xml; charset=utf-8
41
45
  content-length:
@@ -43,18 +47,17 @@
43
47
  server:
44
48
  - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
45
49
  date:
46
- - Thu, 03 Feb 2011 22:18:14 GMT
50
+ - Fri, 11 Mar 2011 18:48:32 GMT
47
51
  connection:
48
52
  - close
49
53
  set-cookie:
50
- - account_credentials=46c62bf884c90f7de1505e10fd730db5e351ad264ffdb46477c4374c36122b2ac1fad5f0c83808d86ae0c1a532c4d950dad8473dbd48c82a1e6c7807a44a7c1d%3A%3A; domain=.recurly.local; path=/
51
- - ""
52
- - _recurly_session=a7db7b9987b5b28e622c7d5acda24499; domain=.recurly.local; path=/; HttpOnly
54
+ - account_credentials=9396979f6cf1a0e1410073ccd29bee706682effd326e07e2fe3a9ab87f12ef93bf0953eefd7a543dfdaf03aeaa377e9b3ef5eff811d0cdff483b5ead5770853d%3A%3A; domain=.recurly.local; path=/
55
+ - _recurly_session=ab792add02fd1d7baf77b32acedded39; domain=.recurly.local; path=/; HttpOnly
53
56
  body: |
54
57
  <?xml version="1.0" encoding="UTF-8"?>
55
58
  <account>
56
- <id>charge-list-all-1296674173</id>
57
- <account_code>charge-list-all-1296674173</account_code>
59
+ <id>charge-list-all-1297746103</id>
60
+ <account_code>charge-list-all-1297746103</account_code>
58
61
  <username></username>
59
62
  <email>verena@test.com</email>
60
63
  <first_name>Verena</first_name>
@@ -62,8 +65,8 @@
62
65
  <company_name>Recurly Ruby Gem</company_name>
63
66
  <balance_in_cents type="integer">0</balance_in_cents>
64
67
  <closed type="boolean">false</closed>
65
- <hosted_login_token>9875f451d6494d24a349d5ca6f39d468</hosted_login_token>
66
- <created_at type="datetime">2011-02-03T22:18:14Z</created_at>
68
+ <hosted_login_token>4bcbb2bf0fc848259149cdcb635d5ed9</hosted_login_token>
69
+ <created_at type="datetime">2011-03-11T18:48:32Z</created_at>
67
70
  <state>active</state>
68
71
  </account>
69
72
 
@@ -71,7 +74,7 @@
71
74
  - !ruby/struct:VCR::HTTPInteraction
72
75
  request: !ruby/struct:VCR::Request
73
76
  method: :post
74
- uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/charge-list-all-1296674173/charges.xml
77
+ uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/charge-list-all-1297746103/charges.xml
75
78
  body: |
76
79
  <?xml version="1.0" encoding="UTF-8"?>
77
80
  <charge>
@@ -81,7 +84,7 @@
81
84
 
82
85
  headers:
83
86
  authorization:
84
- - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
87
+ - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
85
88
  content-type:
86
89
  - application/xml
87
90
  accept:
@@ -98,7 +101,7 @@
98
101
  cache-control:
99
102
  - no-cache
100
103
  x-runtime:
101
- - "412"
104
+ - "227"
102
105
  content-type:
103
106
  - application/xml; charset=utf-8
104
107
  content-length:
@@ -106,29 +109,29 @@
106
109
  server:
107
110
  - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
108
111
  date:
109
- - Thu, 03 Feb 2011 22:18:16 GMT
112
+ - Fri, 11 Mar 2011 18:48:35 GMT
110
113
  connection:
111
114
  - close
112
115
  set-cookie:
113
- - _recurly_session=ad6b1b152a840aaf19b61039e633aff8; domain=.recurly.local; path=/; HttpOnly
116
+ - _recurly_session=d042a96146e2f0577bf71f15e3130d17; domain=.recurly.local; path=/; HttpOnly
114
117
  body: |
115
118
  <?xml version="1.0" encoding="UTF-8"?>
116
119
  <charge type="charge">
117
- <id>e0891709cf1041298754ba1212aa3d39</id>
118
- <account_code>charge-list-all-1296674173</account_code>
120
+ <id>4f25de6a2ef94d0d90882d6150b7c58f</id>
121
+ <account_code>charge-list-all-1297746103</account_code>
119
122
  <amount_in_cents type="integer">1000</amount_in_cents>
120
- <start_date type="datetime">2011-02-03T22:18:15Z</start_date>
123
+ <start_date type="datetime">2011-03-11T18:48:35Z</start_date>
121
124
  <end_date nil="true" type="datetime"></end_date>
122
125
  <invoice_number nil="true" type="integer"></invoice_number>
123
126
  <description>charge description</description>
124
- <created_at type="datetime">2011-02-03T22:18:15Z</created_at>
127
+ <created_at type="datetime">2011-03-11T18:48:35Z</created_at>
125
128
  </charge>
126
129
 
127
130
  http_version: "1.1"
128
131
  - !ruby/struct:VCR::HTTPInteraction
129
132
  request: !ruby/struct:VCR::Request
130
133
  method: :post
131
- uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/charge-list-all-1296674173/charges.xml
134
+ uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/charge-list-all-1297746103/charges.xml
132
135
  body: |
133
136
  <?xml version="1.0" encoding="UTF-8"?>
134
137
  <charge>
@@ -138,7 +141,7 @@
138
141
 
139
142
  headers:
140
143
  authorization:
141
- - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
144
+ - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
142
145
  content-type:
143
146
  - application/xml
144
147
  accept:
@@ -155,7 +158,7 @@
155
158
  cache-control:
156
159
  - no-cache
157
160
  x-runtime:
158
- - "397"
161
+ - "206"
159
162
  content-type:
160
163
  - application/xml; charset=utf-8
161
164
  content-length:
@@ -163,29 +166,29 @@
163
166
  server:
164
167
  - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
165
168
  date:
166
- - Thu, 03 Feb 2011 22:18:18 GMT
169
+ - Fri, 11 Mar 2011 18:48:37 GMT
167
170
  connection:
168
171
  - close
169
172
  set-cookie:
170
- - _recurly_session=94bc7acf0b1e113247d80cf356538fc2; domain=.recurly.local; path=/; HttpOnly
173
+ - _recurly_session=e2d662efcb26d7bfaade0be9b9826859; domain=.recurly.local; path=/; HttpOnly
171
174
  body: |
172
175
  <?xml version="1.0" encoding="UTF-8"?>
173
176
  <charge type="charge">
174
- <id>088a6c2fc44b4c3fb530518d1bff639e</id>
175
- <account_code>charge-list-all-1296674173</account_code>
177
+ <id>e037acd89e2649058afe633d90b44b08</id>
178
+ <account_code>charge-list-all-1297746103</account_code>
176
179
  <amount_in_cents type="integer">1000</amount_in_cents>
177
- <start_date type="datetime">2011-02-03T22:18:17Z</start_date>
180
+ <start_date type="datetime">2011-03-11T18:48:37Z</start_date>
178
181
  <end_date nil="true" type="datetime"></end_date>
179
182
  <invoice_number nil="true" type="integer"></invoice_number>
180
183
  <description>charge description</description>
181
- <created_at type="datetime">2011-02-03T22:18:18Z</created_at>
184
+ <created_at type="datetime">2011-03-11T18:48:37Z</created_at>
182
185
  </charge>
183
186
 
184
187
  http_version: "1.1"
185
188
  - !ruby/struct:VCR::HTTPInteraction
186
189
  request: !ruby/struct:VCR::Request
187
190
  method: :post
188
- uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/charge-list-all-1296674173/charges.xml
191
+ uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/charge-list-all-1297746103/charges.xml
189
192
  body: |
190
193
  <?xml version="1.0" encoding="UTF-8"?>
191
194
  <charge>
@@ -195,7 +198,7 @@
195
198
 
196
199
  headers:
197
200
  authorization:
198
- - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
201
+ - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
199
202
  content-type:
200
203
  - application/xml
201
204
  accept:
@@ -212,7 +215,7 @@
212
215
  cache-control:
213
216
  - no-cache
214
217
  x-runtime:
215
- - "399"
218
+ - "225"
216
219
  content-type:
217
220
  - application/xml; charset=utf-8
218
221
  content-length:
@@ -220,33 +223,33 @@
220
223
  server:
221
224
  - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
222
225
  date:
223
- - Thu, 03 Feb 2011 22:18:20 GMT
226
+ - Fri, 11 Mar 2011 18:48:39 GMT
224
227
  connection:
225
228
  - close
226
229
  set-cookie:
227
- - _recurly_session=e3c9bfbe1820d82b4cad61c8c9b5a0a9; domain=.recurly.local; path=/; HttpOnly
230
+ - _recurly_session=06a77b3a77917c10b537e8776f09ab13; domain=.recurly.local; path=/; HttpOnly
228
231
  body: |
229
232
  <?xml version="1.0" encoding="UTF-8"?>
230
233
  <charge type="charge">
231
- <id>e83ca6220d694443852943b682f7eda9</id>
232
- <account_code>charge-list-all-1296674173</account_code>
234
+ <id>6c9efcef4bed4a33aa815005c9a84af4</id>
235
+ <account_code>charge-list-all-1297746103</account_code>
233
236
  <amount_in_cents type="integer">1000</amount_in_cents>
234
- <start_date type="datetime">2011-02-03T22:18:20Z</start_date>
237
+ <start_date type="datetime">2011-03-11T18:48:39Z</start_date>
235
238
  <end_date nil="true" type="datetime"></end_date>
236
239
  <invoice_number nil="true" type="integer"></invoice_number>
237
240
  <description>charge description</description>
238
- <created_at type="datetime">2011-02-03T22:18:20Z</created_at>
241
+ <created_at type="datetime">2011-03-11T18:48:39Z</created_at>
239
242
  </charge>
240
243
 
241
244
  http_version: "1.1"
242
245
  - !ruby/struct:VCR::HTTPInteraction
243
246
  request: !ruby/struct:VCR::Request
244
247
  method: :get
245
- uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/charge-list-all-1296674173/charges.xml
248
+ uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/charge-list-all-1297746103/charges.xml
246
249
  body:
247
250
  headers:
248
251
  authorization:
249
- - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
252
+ - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
250
253
  accept:
251
254
  - application/xml
252
255
  accept-encoding:
@@ -261,11 +264,11 @@
261
264
  message: "OK "
262
265
  headers:
263
266
  x-runtime:
264
- - "75"
267
+ - "234"
265
268
  content-type:
266
269
  - application/xml; charset=utf-8
267
270
  etag:
268
- - "\"c578f5f32688fc3bd46bd29630a6e05a\""
271
+ - "\"85595073ba0a46d2494d43814249d4ac\""
269
272
  cache-control:
270
273
  - private, max-age=0, must-revalidate
271
274
  content-length:
@@ -273,43 +276,43 @@
273
276
  server:
274
277
  - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
275
278
  date:
276
- - Thu, 03 Feb 2011 22:18:22 GMT
279
+ - Fri, 11 Mar 2011 18:48:42 GMT
277
280
  connection:
278
281
  - close
279
282
  set-cookie:
280
- - _recurly_session=4d2e91ee8767725148c3bc91473c8bec; domain=.recurly.local; path=/; HttpOnly
283
+ - _recurly_session=31c149d7f982fae0de90a51eaff6ca0b; domain=.recurly.local; path=/; HttpOnly
281
284
  body: |
282
285
  <?xml version="1.0" encoding="UTF-8"?>
283
286
  <charges type="array">
284
287
  <charge type="charge">
285
- <id>e83ca6220d694443852943b682f7eda9</id>
286
- <account_code>charge-list-all-1296674173</account_code>
288
+ <id>6c9efcef4bed4a33aa815005c9a84af4</id>
289
+ <account_code>charge-list-all-1297746103</account_code>
287
290
  <amount_in_cents type="integer">1000</amount_in_cents>
288
- <start_date type="datetime">2011-02-03T22:18:20Z</start_date>
291
+ <start_date type="datetime">2011-03-11T18:48:39Z</start_date>
289
292
  <end_date nil="true" type="datetime"></end_date>
290
293
  <invoice_number nil="true" type="integer"></invoice_number>
291
294
  <description>charge description</description>
292
- <created_at type="datetime">2011-02-03T22:18:20Z</created_at>
295
+ <created_at type="datetime">2011-03-11T18:48:39Z</created_at>
293
296
  </charge>
294
297
  <charge type="charge">
295
- <id>088a6c2fc44b4c3fb530518d1bff639e</id>
296
- <account_code>charge-list-all-1296674173</account_code>
298
+ <id>e037acd89e2649058afe633d90b44b08</id>
299
+ <account_code>charge-list-all-1297746103</account_code>
297
300
  <amount_in_cents type="integer">1000</amount_in_cents>
298
- <start_date type="datetime">2011-02-03T22:18:17Z</start_date>
301
+ <start_date type="datetime">2011-03-11T18:48:37Z</start_date>
299
302
  <end_date nil="true" type="datetime"></end_date>
300
303
  <invoice_number nil="true" type="integer"></invoice_number>
301
304
  <description>charge description</description>
302
- <created_at type="datetime">2011-02-03T22:18:18Z</created_at>
305
+ <created_at type="datetime">2011-03-11T18:48:37Z</created_at>
303
306
  </charge>
304
307
  <charge type="charge">
305
- <id>e0891709cf1041298754ba1212aa3d39</id>
306
- <account_code>charge-list-all-1296674173</account_code>
308
+ <id>4f25de6a2ef94d0d90882d6150b7c58f</id>
309
+ <account_code>charge-list-all-1297746103</account_code>
307
310
  <amount_in_cents type="integer">1000</amount_in_cents>
308
- <start_date type="datetime">2011-02-03T22:18:15Z</start_date>
311
+ <start_date type="datetime">2011-03-11T18:48:35Z</start_date>
309
312
  <end_date nil="true" type="datetime"></end_date>
310
313
  <invoice_number nil="true" type="integer"></invoice_number>
311
314
  <description>charge description</description>
312
- <created_at type="datetime">2011-02-03T22:18:15Z</created_at>
315
+ <created_at type="datetime">2011-03-11T18:48:35Z</created_at>
313
316
  </charge>
314
317
  </charges>
315
318