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-list-invoiced-1296674173</account-code>
9
+ <account-code>charge-list-invoiced-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-invoiced-1296674173
40
+ - http://app.recurly.local:3000/accounts/charge-list-invoiced-1297746103
37
41
  x-runtime:
38
- - "696"
42
+ - "576"
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:36 GMT
50
+ - Fri, 11 Mar 2011 18:48:56 GMT
47
51
  connection:
48
52
  - close
49
53
  set-cookie:
50
- - account_credentials=4087ddbd0325bd4c05e06c315b870a04f7737c587fbc0af0dd085593a8c94ef4310cd0e004d475d91c71864efd3fb28ad77552c310289fba1d0b78c22515cbed%3A%3A; domain=.recurly.local; path=/
51
- - ""
52
- - _recurly_session=022b045e1932d8cff1cade2495e5739e; domain=.recurly.local; path=/; HttpOnly
54
+ - account_credentials=58be5ec53ce80de748d78efe183dfc827c1be9dddcc231c9b50a3d73cbd0ceb4b5cb56252ff52c1e60d4f65123b140e3346f6e63010b12d1830aaca1ae27133a%3A%3A; domain=.recurly.local; path=/
55
+ - _recurly_session=c54e11b4db1e4e416744035e66d26a2b; domain=.recurly.local; path=/; HttpOnly
53
56
  body: |
54
57
  <?xml version="1.0" encoding="UTF-8"?>
55
58
  <account>
56
- <id>charge-list-invoiced-1296674173</id>
57
- <account_code>charge-list-invoiced-1296674173</account_code>
59
+ <id>charge-list-invoiced-1297746103</id>
60
+ <account_code>charge-list-invoiced-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>54f6f17cf3e04e19a1af363523e5f757</hosted_login_token>
66
- <created_at type="datetime">2011-02-03T22:18:36Z</created_at>
68
+ <hosted_login_token>fcd7c3efe29c4a3999ed827c3ccb843a</hosted_login_token>
69
+ <created_at type="datetime">2011-03-11T18:48:55Z</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-invoiced-1296674173/charges.xml
77
+ uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/charge-list-invoiced-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
- - "414"
104
+ - "226"
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:38 GMT
112
+ - Fri, 11 Mar 2011 18:48:57 GMT
110
113
  connection:
111
114
  - close
112
115
  set-cookie:
113
- - _recurly_session=3a05c7471f94786758e92e6df2bd53a2; domain=.recurly.local; path=/; HttpOnly
116
+ - _recurly_session=56e98f848211c4fde8d540561e9aa2d8; domain=.recurly.local; path=/; HttpOnly
114
117
  body: |
115
118
  <?xml version="1.0" encoding="UTF-8"?>
116
119
  <charge type="charge">
117
- <id>bf3a2a356b8640158ec85161a935ac91</id>
118
- <account_code>charge-list-invoiced-1296674173</account_code>
120
+ <id>b322f540d58943f29edf1c2c6265f735</id>
121
+ <account_code>charge-list-invoiced-1297746103</account_code>
119
122
  <amount_in_cents type="integer">1000</amount_in_cents>
120
- <start_date type="datetime">2011-02-03T22:18:37Z</start_date>
123
+ <start_date type="datetime">2011-03-11T18:48:57Z</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:38Z</created_at>
127
+ <created_at type="datetime">2011-03-11T18:48:57Z</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-invoiced-1296674173/charges.xml
134
+ uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/charge-list-invoiced-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
- - "546"
161
+ - "212"
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:40 GMT
169
+ - Fri, 11 Mar 2011 18:49:00 GMT
167
170
  connection:
168
171
  - close
169
172
  set-cookie:
170
- - _recurly_session=4c93a2760771e2940efbb597b2d02973; domain=.recurly.local; path=/; HttpOnly
173
+ - _recurly_session=3fa206c2d365412dd1deba0bde8b7457; domain=.recurly.local; path=/; HttpOnly
171
174
  body: |
172
175
  <?xml version="1.0" encoding="UTF-8"?>
173
176
  <charge type="charge">
174
- <id>8379e1a5fe6d4ada979f3fbc366b31b0</id>
175
- <account_code>charge-list-invoiced-1296674173</account_code>
177
+ <id>6d54b5ca997244c28890614d665ab113</id>
178
+ <account_code>charge-list-invoiced-1297746103</account_code>
176
179
  <amount_in_cents type="integer">1000</amount_in_cents>
177
- <start_date type="datetime">2011-02-03T22:18:40Z</start_date>
180
+ <start_date type="datetime">2011-03-11T18:48:59Z</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:40Z</created_at>
184
+ <created_at type="datetime">2011-03-11T18:49:00Z</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-invoiced-1296674173/charges.xml
191
+ uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/charge-list-invoiced-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
- - "426"
218
+ - "208"
216
219
  content-type:
217
220
  - application/xml; charset=utf-8
218
221
  content-length:
@@ -220,29 +223,29 @@
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:42 GMT
226
+ - Fri, 11 Mar 2011 18:49:02 GMT
224
227
  connection:
225
228
  - close
226
229
  set-cookie:
227
- - _recurly_session=e82e3773619012bbb294b8edf5e75a91; domain=.recurly.local; path=/; HttpOnly
230
+ - _recurly_session=0771d99dadd529452a9e97d2a602f6ff; domain=.recurly.local; path=/; HttpOnly
228
231
  body: |
229
232
  <?xml version="1.0" encoding="UTF-8"?>
230
233
  <charge type="charge">
231
- <id>6e3838fdbe96424785a617143a8b7c3e</id>
232
- <account_code>charge-list-invoiced-1296674173</account_code>
234
+ <id>d2c4249143f24c3d9f926a150a00aa97</id>
235
+ <account_code>charge-list-invoiced-1297746103</account_code>
233
236
  <amount_in_cents type="integer">1000</amount_in_cents>
234
- <start_date type="datetime">2011-02-03T22:18:42Z</start_date>
237
+ <start_date type="datetime">2011-03-11T18:49:01Z</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:42Z</created_at>
241
+ <created_at type="datetime">2011-03-11T18:49:02Z</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: :post
245
- uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/charge-list-invoiced-1296674173/invoices.xml
248
+ uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/charge-list-invoiced-1297746103/invoices.xml
246
249
  body: |
247
250
  <?xml version="1.0" encoding="UTF-8"?>
248
251
  <invoice>
@@ -250,7 +253,7 @@
250
253
 
251
254
  headers:
252
255
  authorization:
253
- - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
256
+ - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
254
257
  content-type:
255
258
  - application/xml
256
259
  accept:
@@ -267,9 +270,9 @@
267
270
  cache-control:
268
271
  - no-cache
269
272
  location:
270
- - http://litle-test.recurly.local:3000/invoices/cc12d2655f42489fa334d2ae6d811f0f
273
+ - http://app.recurly.local:3000/invoices/ec30bfdd1f14411d90209f24df4743a1
271
274
  x-runtime:
272
- - "776"
275
+ - "683"
273
276
  content-type:
274
277
  - application/xml; charset=utf-8
275
278
  content-length:
@@ -277,18 +280,18 @@
277
280
  server:
278
281
  - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
279
282
  date:
280
- - Thu, 03 Feb 2011 22:18:45 GMT
283
+ - Fri, 11 Mar 2011 18:49:04 GMT
281
284
  connection:
282
285
  - close
283
286
  set-cookie:
284
- - _recurly_session=b1e283914c28445cadea137e64af4be2; domain=.recurly.local; path=/; HttpOnly
287
+ - _recurly_session=f7e4e63f19a21a819d61a57fcb5937ab; domain=.recurly.local; path=/; HttpOnly
285
288
  body: |
286
289
  <?xml version="1.0" encoding="UTF-8"?>
287
290
  <invoice>
288
- <id>cc12d2655f42489fa334d2ae6d811f0f</id>
289
- <account_code>charge-list-invoiced-1296674173</account_code>
290
- <date type="datetime">2011-02-03T22:18:45Z</date>
291
- <invoice_number type="integer">1234</invoice_number>
291
+ <id>ec30bfdd1f14411d90209f24df4743a1</id>
292
+ <account_code>charge-list-invoiced-1297746103</account_code>
293
+ <date type="datetime">2011-03-11T18:49:04Z</date>
294
+ <invoice_number type="integer">1526</invoice_number>
292
295
  <vat_number></vat_number>
293
296
  <status>open</status>
294
297
  <subtotal_in_cents type="integer">3000</subtotal_in_cents>
@@ -299,33 +302,33 @@
299
302
  <discount_in_cents type="integer">0</discount_in_cents>
300
303
  <line_items type="array">
301
304
  <line_item>
302
- <id>bf3a2a356b8640158ec85161a935ac91</id>
305
+ <id>b322f540d58943f29edf1c2c6265f735</id>
303
306
  <type>charge</type>
304
307
  <amount_in_cents type="integer">1000</amount_in_cents>
305
- <start_date type="datetime">2011-02-03T22:18:37Z</start_date>
308
+ <start_date type="datetime">2011-03-11T18:48:57Z</start_date>
306
309
  <end_date nil="true" type="datetime"></end_date>
307
310
  <description>charge description</description>
308
- <created_at type="datetime">2011-02-03T22:18:38Z</created_at>
311
+ <created_at type="datetime">2011-03-11T18:48:57Z</created_at>
309
312
  <applied_coupon_code></applied_coupon_code>
310
313
  </line_item>
311
314
  <line_item>
312
- <id>8379e1a5fe6d4ada979f3fbc366b31b0</id>
315
+ <id>6d54b5ca997244c28890614d665ab113</id>
313
316
  <type>charge</type>
314
317
  <amount_in_cents type="integer">1000</amount_in_cents>
315
- <start_date type="datetime">2011-02-03T22:18:40Z</start_date>
318
+ <start_date type="datetime">2011-03-11T18:48:59Z</start_date>
316
319
  <end_date nil="true" type="datetime"></end_date>
317
320
  <description>charge description</description>
318
- <created_at type="datetime">2011-02-03T22:18:40Z</created_at>
321
+ <created_at type="datetime">2011-03-11T18:49:00Z</created_at>
319
322
  <applied_coupon_code></applied_coupon_code>
320
323
  </line_item>
321
324
  <line_item>
322
- <id>6e3838fdbe96424785a617143a8b7c3e</id>
325
+ <id>d2c4249143f24c3d9f926a150a00aa97</id>
323
326
  <type>charge</type>
324
327
  <amount_in_cents type="integer">1000</amount_in_cents>
325
- <start_date type="datetime">2011-02-03T22:18:42Z</start_date>
328
+ <start_date type="datetime">2011-03-11T18:49:01Z</start_date>
326
329
  <end_date nil="true" type="datetime"></end_date>
327
330
  <description>charge description</description>
328
- <created_at type="datetime">2011-02-03T22:18:42Z</created_at>
331
+ <created_at type="datetime">2011-03-11T18:49:02Z</created_at>
329
332
  <applied_coupon_code></applied_coupon_code>
330
333
  </line_item>
331
334
  </line_items>
@@ -337,7 +340,7 @@
337
340
  - !ruby/struct:VCR::HTTPInteraction
338
341
  request: !ruby/struct:VCR::Request
339
342
  method: :post
340
- uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/charge-list-invoiced-1296674173/charges.xml
343
+ uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/charge-list-invoiced-1297746103/charges.xml
341
344
  body: |
342
345
  <?xml version="1.0" encoding="UTF-8"?>
343
346
  <charge>
@@ -347,7 +350,7 @@
347
350
 
348
351
  headers:
349
352
  authorization:
350
- - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
353
+ - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
351
354
  content-type:
352
355
  - application/xml
353
356
  accept:
@@ -364,7 +367,7 @@
364
367
  cache-control:
365
368
  - no-cache
366
369
  x-runtime:
367
- - "612"
370
+ - "207"
368
371
  content-type:
369
372
  - application/xml; charset=utf-8
370
373
  content-length:
@@ -372,33 +375,33 @@
372
375
  server:
373
376
  - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
374
377
  date:
375
- - Thu, 03 Feb 2011 22:18:47 GMT
378
+ - Fri, 11 Mar 2011 18:49:06 GMT
376
379
  connection:
377
380
  - close
378
381
  set-cookie:
379
- - _recurly_session=95c9fe1d3e2494e3ccc938cfbc8a7356; domain=.recurly.local; path=/; HttpOnly
382
+ - _recurly_session=a2de2a6904634874683de7e894781e89; domain=.recurly.local; path=/; HttpOnly
380
383
  body: |
381
384
  <?xml version="1.0" encoding="UTF-8"?>
382
385
  <charge type="charge">
383
- <id>a10fba2153044725b5ca1d9f9a44731f</id>
384
- <account_code>charge-list-invoiced-1296674173</account_code>
386
+ <id>852d75de4a294e2ba2d6be49b7fce178</id>
387
+ <account_code>charge-list-invoiced-1297746103</account_code>
385
388
  <amount_in_cents type="integer">1000</amount_in_cents>
386
- <start_date type="datetime">2011-02-03T22:18:47Z</start_date>
389
+ <start_date type="datetime">2011-03-11T18:49:06Z</start_date>
387
390
  <end_date nil="true" type="datetime"></end_date>
388
391
  <invoice_number nil="true" type="integer"></invoice_number>
389
392
  <description>charge description</description>
390
- <created_at type="datetime">2011-02-03T22:18:47Z</created_at>
393
+ <created_at type="datetime">2011-03-11T18:49:06Z</created_at>
391
394
  </charge>
392
395
 
393
396
  http_version: "1.1"
394
397
  - !ruby/struct:VCR::HTTPInteraction
395
398
  request: !ruby/struct:VCR::Request
396
399
  method: :get
397
- uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/charge-list-invoiced-1296674173/charges.xml?show=invoiced
400
+ uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/charge-list-invoiced-1297746103/charges.xml?show=invoiced
398
401
  body:
399
402
  headers:
400
403
  authorization:
401
- - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
404
+ - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
402
405
  accept:
403
406
  - application/xml
404
407
  accept-encoding:
@@ -413,11 +416,11 @@
413
416
  message: "OK "
414
417
  headers:
415
418
  x-runtime:
416
- - "89"
419
+ - "198"
417
420
  content-type:
418
421
  - application/xml; charset=utf-8
419
422
  etag:
420
- - "\"92aaa73a344da4a7e795008f0667420f\""
423
+ - "\"21a94c7dd73a4ddccc708cf74dfaf80e\""
421
424
  cache-control:
422
425
  - private, max-age=0, must-revalidate
423
426
  content-length:
@@ -425,43 +428,43 @@
425
428
  server:
426
429
  - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
427
430
  date:
428
- - Thu, 03 Feb 2011 22:18:49 GMT
431
+ - Fri, 11 Mar 2011 18:49:08 GMT
429
432
  connection:
430
433
  - close
431
434
  set-cookie:
432
- - _recurly_session=fca52c32f80e982da0cf256075901000; domain=.recurly.local; path=/; HttpOnly
435
+ - _recurly_session=ff7daecab7166f7f78ddfcf4427d64a1; domain=.recurly.local; path=/; HttpOnly
433
436
  body: |
434
437
  <?xml version="1.0" encoding="UTF-8"?>
435
438
  <charges type="array">
436
439
  <charge type="charge">
437
- <id>6e3838fdbe96424785a617143a8b7c3e</id>
438
- <account_code>charge-list-invoiced-1296674173</account_code>
440
+ <id>d2c4249143f24c3d9f926a150a00aa97</id>
441
+ <account_code>charge-list-invoiced-1297746103</account_code>
439
442
  <amount_in_cents type="integer">1000</amount_in_cents>
440
- <start_date type="datetime">2011-02-03T22:18:42Z</start_date>
443
+ <start_date type="datetime">2011-03-11T18:49:01Z</start_date>
441
444
  <end_date nil="true" type="datetime"></end_date>
442
- <invoice_number type="integer">1234</invoice_number>
445
+ <invoice_number type="integer">1526</invoice_number>
443
446
  <description>charge description</description>
444
- <created_at type="datetime">2011-02-03T22:18:42Z</created_at>
447
+ <created_at type="datetime">2011-03-11T18:49:02Z</created_at>
445
448
  </charge>
446
449
  <charge type="charge">
447
- <id>8379e1a5fe6d4ada979f3fbc366b31b0</id>
448
- <account_code>charge-list-invoiced-1296674173</account_code>
450
+ <id>6d54b5ca997244c28890614d665ab113</id>
451
+ <account_code>charge-list-invoiced-1297746103</account_code>
449
452
  <amount_in_cents type="integer">1000</amount_in_cents>
450
- <start_date type="datetime">2011-02-03T22:18:40Z</start_date>
453
+ <start_date type="datetime">2011-03-11T18:48:59Z</start_date>
451
454
  <end_date nil="true" type="datetime"></end_date>
452
- <invoice_number type="integer">1234</invoice_number>
455
+ <invoice_number type="integer">1526</invoice_number>
453
456
  <description>charge description</description>
454
- <created_at type="datetime">2011-02-03T22:18:40Z</created_at>
457
+ <created_at type="datetime">2011-03-11T18:49:00Z</created_at>
455
458
  </charge>
456
459
  <charge type="charge">
457
- <id>bf3a2a356b8640158ec85161a935ac91</id>
458
- <account_code>charge-list-invoiced-1296674173</account_code>
460
+ <id>b322f540d58943f29edf1c2c6265f735</id>
461
+ <account_code>charge-list-invoiced-1297746103</account_code>
459
462
  <amount_in_cents type="integer">1000</amount_in_cents>
460
- <start_date type="datetime">2011-02-03T22:18:37Z</start_date>
463
+ <start_date type="datetime">2011-03-11T18:48:57Z</start_date>
461
464
  <end_date nil="true" type="datetime"></end_date>
462
- <invoice_number type="integer">1234</invoice_number>
465
+ <invoice_number type="integer">1526</invoice_number>
463
466
  <description>charge description</description>
464
- <created_at type="datetime">2011-02-03T22:18:38Z</created_at>
467
+ <created_at type="datetime">2011-03-11T18:48:57Z</created_at>
465
468
  </charge>
466
469
  </charges>
467
470