recurly 0.4.7 → 0.4.8

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 (77) hide show
  1. data/README.md +6 -0
  2. data/lib/recurly/base.rb +15 -14
  3. data/lib/recurly/subscription.rb +2 -0
  4. data/lib/recurly/version.rb +1 -1
  5. data/spec/config/recurly.yml +4 -10
  6. data/spec/integration/transparent_spec.rb +72 -0
  7. data/spec/unit/transparent_spec.rb +6 -6
  8. data/spec/vcr/account/accept-language-account/{1301979678.yml → 1296674173.yml} +16 -18
  9. data/spec/vcr/account/close/{1301979678.yml → 1296674173.yml} +37 -39
  10. data/spec/vcr/account/create-blank/{1301979678.yml → 1296674173.yml} +8 -12
  11. data/spec/vcr/account/create-duplicate/{1301979678.yml → 1296674173.yml} +21 -27
  12. data/spec/vcr/account/create-min/{1301979678.yml → 1296674173.yml} +16 -18
  13. data/spec/vcr/account/create/{1301979678.yml → 1296674173.yml} +16 -18
  14. data/spec/vcr/account/find/{1301979678.yml → 1296674173.yml} +36 -38
  15. data/spec/vcr/account/list/1296674173.yml +55 -0
  16. data/spec/vcr/account/update/{1301979678.yml → 1296674173.yml} +59 -65
  17. data/spec/vcr/billing/create/{1302025874.yml → 1296690812.yml} +43 -45
  18. data/spec/vcr/billing/destroy/{1302025874.yml → 1296690812.yml} +58 -60
  19. data/spec/vcr/billing/find/{1302025874.yml → 1296690812.yml} +56 -58
  20. data/spec/vcr/billing/update/{1302025874.yml → 1296690812.yml} +59 -61
  21. data/spec/vcr/charge/create/{1297746103.yml → 1296674173.yml} +58 -64
  22. data/spec/vcr/charge/delete-uninvoiced/{1297746103.yml → 1296674173.yml} +66 -72
  23. data/spec/vcr/charge/list-all/{1297746103.yml → 1296674173.yml} +77 -91
  24. data/spec/vcr/charge/list-invoiced/{1297746103.yml → 1296674173.yml} +115 -131
  25. data/spec/vcr/charge/list-pending/{1297746103.yml → 1296674173.yml} +77 -91
  26. data/spec/vcr/charge/lookup/{1297746103.yml → 1296674173.yml} +43 -49
  27. data/spec/vcr/coupon/create/1296688818.yml +183 -0
  28. data/spec/vcr/coupon/create/1296774903.yml +183 -0
  29. data/spec/vcr/coupon/destroy/1296688818.yml +207 -0
  30. data/spec/vcr/coupon/destroy/1296774903.yml +207 -0
  31. data/spec/vcr/{coupon/create/1299714521.yml → credit/create/1296674173.yml} +34 -32
  32. data/spec/vcr/{billing/errors/1302025874.yml → credit/delete/1296674173.yml} +33 -42
  33. data/spec/vcr/{coupon/destroy/1299714521.yml → credit/list/1296674173.yml} +35 -33
  34. data/spec/vcr/credit/lookup/1296674173.yml +121 -0
  35. data/spec/vcr/invoice/create-no-charges/{1297746103.yml → 1296674173.yml} +40 -42
  36. data/spec/vcr/invoice/create/{1297746103.yml → 1296674173.yml} +77 -83
  37. data/spec/vcr/invoice/list/{1297746103.yml → 1296674173.yml} +107 -113
  38. data/spec/vcr/invoice/lookup/{1297746103.yml → 1296674173.yml} +77 -81
  39. data/spec/vcr/plan/all.yml +117 -98
  40. data/spec/vcr/plan/delete/1296674173.yml +225 -0
  41. data/spec/vcr/plan/find.yml +66 -36
  42. data/spec/vcr/plan/update.yml +64 -144
  43. data/spec/vcr/subscription/addons/add/{1301885121.yml → 1296674173.yml} +58 -51
  44. data/spec/vcr/subscription/addons/create/{1301885121.yml → 1296674173.yml} +58 -51
  45. data/spec/vcr/subscription/addons/remove/{1301885121.yml → 1296674173.yml} +58 -51
  46. data/spec/vcr/subscription/cancel-with-code/{1301881900.yml → 1296674173.yml} +135 -133
  47. data/spec/vcr/subscription/cancel/{1301881900.yml → 1296674173.yml} +117 -114
  48. data/spec/vcr/subscription/change1/{1301881900.yml → 1296674173.yml} +113 -110
  49. data/spec/vcr/subscription/change2/{1301881900.yml → 1296674173.yml} +112 -109
  50. data/spec/vcr/subscription/create/{1301881900.yml → 1296674173.yml} +65 -59
  51. data/spec/vcr/subscription/find/{1301881900.yml → 1296674173.yml} +81 -76
  52. data/spec/vcr/subscription/reactivate/{1301881900.yml → 1296674173.yml} +127 -124
  53. data/spec/vcr/subscription/refund-full/1296674173.yml +400 -0
  54. data/spec/vcr/subscription/refund-none/{1301881900.yml → 1296674173.yml} +106 -102
  55. data/spec/vcr/subscription/refund-partial/1296674173.yml +400 -0
  56. data/spec/vcr/transaction/all/{1301883347.yml → 1296674173.yml} +126 -126
  57. data/spec/vcr/transaction/create-no-account/{1301883347.yml → 1296674173.yml} +16 -16
  58. data/spec/vcr/transaction/create-with-account/{1301883347.yml → 1296674173.yml} +45 -51
  59. data/spec/vcr/transaction/list-filled/{1301883347.yml → 1296674173.yml} +91 -221
  60. data/spec/vcr/transaction/list-initial/{1301883347.yml → 1296674173.yml} +44 -46
  61. data/spec/vcr/transaction/lookup/{1301883347.yml → 1296674173.yml} +107 -121
  62. data/spec/vcr/transaction/refund/{1301883347.yml → 1296674173.yml} +57 -63
  63. data/spec/vcr/transaction/void/{1301883347.yml → 1296674173.yml} +69 -75
  64. data/spec/vcr/transparent/post-url/1311127536.yml +0 -0
  65. data/spec/vcr/transparent/post-url/1311127583.yml +0 -0
  66. data/spec/vcr/transparent/post-url/1311128042.yml +0 -0
  67. data/spec/vcr/transparent/post-url/1311128073.yml +0 -0
  68. data/spec/vcr/transparent/post-url/1311128087.yml +0 -0
  69. metadata +97 -155
  70. data/spec/vcr/account/list/1301979678.yml +0 -1588
  71. data/spec/vcr/credit/create/1299714599.yml +0 -186
  72. data/spec/vcr/credit/delete/1299714599.yml +0 -265
  73. data/spec/vcr/credit/list/1299714599.yml +0 -330
  74. data/spec/vcr/credit/lookup/1299714599.yml +0 -186
  75. data/spec/vcr/subscription/refund-full/1301881900.yml +0 -334
  76. data/spec/vcr/subscription/refund-partial/1301881900.yml +0 -334
  77. data/spec/vcr/transparent/post-url/1301879142.yml +0 -129
@@ -2,31 +2,27 @@
2
2
  - !ruby/struct:VCR::HTTPInteraction
3
3
  request: !ruby/struct:VCR::Request
4
4
  method: :post
5
- uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts.xml
5
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts.xml
6
6
  body: |
7
7
  <?xml version="1.0" encoding="UTF-8"?>
8
8
  <account>
9
- <account-code>invoice-create-1297746103</account-code>
9
+ <account-code>invoice-create-1296674173</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>
18
14
  <accept-language type="yaml" nil="true"></accept-language>
19
15
  </account>
20
16
 
21
17
  headers:
22
18
  authorization:
23
- - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
24
- user-agent:
25
- - Recurly Ruby Client v0.4.6
19
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
26
20
  content-type:
27
21
  - application/xml
28
22
  accept:
29
23
  - "*/*"
24
+ user-agent:
25
+ - Ruby
30
26
  connection:
31
27
  - close
32
28
  response: !ruby/struct:VCR::Response
@@ -37,26 +33,28 @@
37
33
  cache-control:
38
34
  - no-cache
39
35
  location:
40
- - http://app.recurly.local:3000/accounts/invoice-create-1297746103
36
+ - http://litle-test.recurly.local:3000/accounts/invoice-create-1296674173
41
37
  x-runtime:
42
- - "254"
38
+ - "625"
43
39
  content-type:
44
40
  - application/xml; charset=utf-8
45
41
  content-length:
46
42
  - "583"
47
43
  server:
48
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
44
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
49
45
  date:
50
- - Thu, 21 Apr 2011 18:01:27 GMT
46
+ - Thu, 03 Feb 2011 22:19:52 GMT
51
47
  connection:
52
48
  - close
53
49
  set-cookie:
54
- - _recurly_session=3228311a24b0d05385dc95f0480aea9c; domain=.recurly.local; path=/; HttpOnly
50
+ - account_credentials=3c7d095bba0c966730f1aeb3377803f2c1496ec7a1669fffb1cd846740f73e86f3cc6ee9ac52b60ede02aff7c9d6cfb9d50ebdf84cfdf37a48c2f9ada220c7dc%3A%3A; domain=.recurly.local; path=/
51
+ - ""
52
+ - _recurly_session=6a39a2297bacc140dba27348b11b1ee0; domain=.recurly.local; path=/; HttpOnly
55
53
  body: |
56
54
  <?xml version="1.0" encoding="UTF-8"?>
57
55
  <account>
58
- <id>invoice-create-1297746103</id>
59
- <account_code>invoice-create-1297746103</account_code>
56
+ <id>invoice-create-1296674173</id>
57
+ <account_code>invoice-create-1296674173</account_code>
60
58
  <username></username>
61
59
  <email>verena@test.com</email>
62
60
  <first_name>Verena</first_name>
@@ -64,8 +62,8 @@
64
62
  <company_name>Recurly Ruby Gem</company_name>
65
63
  <balance_in_cents type="integer">0</balance_in_cents>
66
64
  <closed type="boolean">false</closed>
67
- <hosted_login_token>d5b1bc1cb0e9480c83faa5af737d1b67</hosted_login_token>
68
- <created_at type="datetime">2011-04-21T18:01:27Z</created_at>
65
+ <hosted_login_token>3946a5d64eb54a8f86d0a0de554ad818</hosted_login_token>
66
+ <created_at type="datetime">2011-02-03T22:19:52Z</created_at>
69
67
  <state>active</state>
70
68
  </account>
71
69
 
@@ -73,12 +71,10 @@
73
71
  - !ruby/struct:VCR::HTTPInteraction
74
72
  request: !ruby/struct:VCR::Request
75
73
  method: :put
76
- uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/invoice-create-1297746103/billing_info.xml
74
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/invoice-create-1296674173/billing_info.xml
77
75
  body: |
78
76
  <?xml version="1.0" encoding="UTF-8"?>
79
77
  <billing-info>
80
- <first-name>Verena</first-name>
81
- <last-name>Test</last-name>
82
78
  <address1>123 Test St</address1>
83
79
  <city>San Francisco</city>
84
80
  <state>CA</state>
@@ -87,21 +83,23 @@
87
83
  <credit-card>
88
84
  <number>4111111111111111</number>
89
85
  <year type="integer">2012</year>
90
- <month type="integer">4</month>
86
+ <month type="integer">2</month>
91
87
  <verification-value>123</verification-value>
92
88
  </credit-card>
93
- <account-code>invoice-create-1297746103</account-code>
89
+ <account-code>invoice-create-1296674173</account-code>
90
+ <first-name>Verena</first-name>
91
+ <last-name>Test</last-name>
94
92
  </billing-info>
95
93
 
96
94
  headers:
97
95
  authorization:
98
- - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
99
- user-agent:
100
- - Recurly Ruby Client v0.4.6
96
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
101
97
  content-type:
102
98
  - application/xml
103
99
  accept:
104
100
  - "*/*"
101
+ user-agent:
102
+ - Ruby
105
103
  connection:
106
104
  - close
107
105
  response: !ruby/struct:VCR::Response
@@ -110,27 +108,27 @@
110
108
  message: "OK "
111
109
  headers:
112
110
  x-runtime:
113
- - "1453"
111
+ - "1626"
114
112
  content-type:
115
113
  - application/xml; charset=utf-8
116
114
  etag:
117
- - "\"11ae01d06e85f70d85ee7476cb19d612\""
115
+ - "\"6e5eff467632476dcf82ce6e5f1448ef\""
118
116
  cache-control:
119
117
  - private, max-age=0, must-revalidate
120
118
  content-length:
121
119
  - "640"
122
120
  server:
123
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
121
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
124
122
  date:
125
- - Thu, 21 Apr 2011 18:01:30 GMT
123
+ - Thu, 03 Feb 2011 22:19:56 GMT
126
124
  connection:
127
125
  - close
128
126
  set-cookie:
129
- - _recurly_session=b031945e77c8fcca0898c031afe9ed7a; domain=.recurly.local; path=/; HttpOnly
127
+ - _recurly_session=16d8e55e8749bc490d840959a5e1e4c5; domain=.recurly.local; path=/; HttpOnly
130
128
  body: |
131
129
  <?xml version="1.0" encoding="UTF-8"?>
132
130
  <billing_info>
133
- <account_code>invoice-create-1297746103</account_code>
131
+ <account_code>invoice-create-1296674173</account_code>
134
132
  <first_name>Verena</first_name>
135
133
  <last_name>Test</last_name>
136
134
  <address1>123 Test St</address1>
@@ -145,17 +143,17 @@
145
143
  <credit_card>
146
144
  <type>visa</type>
147
145
  <last_four>1111</last_four>
148
- <month type="integer">4</month>
146
+ <month type="integer">2</month>
149
147
  <year type="integer">2012</year>
150
148
  </credit_card>
151
- <updated_at type="datetime">2011-04-21T18:01:30Z</updated_at>
149
+ <updated_at type="datetime">2011-02-03T22:19:56Z</updated_at>
152
150
  </billing_info>
153
151
 
154
152
  http_version: "1.1"
155
153
  - !ruby/struct:VCR::HTTPInteraction
156
154
  request: !ruby/struct:VCR::Request
157
155
  method: :post
158
- uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/invoice-create-1297746103/charges.xml
156
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/invoice-create-1296674173/charges.xml
159
157
  body: |
160
158
  <?xml version="1.0" encoding="UTF-8"?>
161
159
  <charge>
@@ -165,13 +163,13 @@
165
163
 
166
164
  headers:
167
165
  authorization:
168
- - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
169
- user-agent:
170
- - Recurly Ruby Client v0.4.6
166
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
171
167
  content-type:
172
168
  - application/xml
173
169
  accept:
174
170
  - "*/*"
171
+ user-agent:
172
+ - Ruby
175
173
  connection:
176
174
  - close
177
175
  response: !ruby/struct:VCR::Response
@@ -182,39 +180,37 @@
182
180
  cache-control:
183
181
  - no-cache
184
182
  x-runtime:
185
- - "230"
183
+ - "568"
186
184
  content-type:
187
185
  - application/xml; charset=utf-8
188
186
  content-length:
189
- - "626"
187
+ - "519"
190
188
  server:
191
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
189
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
192
190
  date:
193
- - Thu, 21 Apr 2011 18:01:32 GMT
191
+ - Thu, 03 Feb 2011 22:19:58 GMT
194
192
  connection:
195
193
  - close
196
194
  set-cookie:
197
- - _recurly_session=af3b32b1ae38bc6e274678d59ca5f3f5; domain=.recurly.local; path=/; HttpOnly
195
+ - _recurly_session=b817a3ae51328f451f746eba41a1b799; domain=.recurly.local; path=/; HttpOnly
198
196
  body: |
199
197
  <?xml version="1.0" encoding="UTF-8"?>
200
198
  <charge type="charge">
201
- <id>460c4da0a1fc4a85abecd7a038368916</id>
202
- <account_code>invoice-create-1297746103</account_code>
203
- <quantity type="integer">1</quantity>
204
- <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
199
+ <id>52486d42b875414e99059c4536e50dd2</id>
200
+ <account_code>invoice-create-1296674173</account_code>
205
201
  <amount_in_cents type="integer">1000</amount_in_cents>
206
- <start_date type="datetime">2011-04-21T18:01:32Z</start_date>
202
+ <start_date type="datetime">2011-02-03T22:19:58Z</start_date>
207
203
  <end_date nil="true" type="datetime"></end_date>
208
204
  <invoice_number nil="true" type="integer"></invoice_number>
209
205
  <description>charge description</description>
210
- <created_at type="datetime">2011-04-21T18:01:32Z</created_at>
206
+ <created_at type="datetime">2011-02-03T22:19:58Z</created_at>
211
207
  </charge>
212
208
 
213
209
  http_version: "1.1"
214
210
  - !ruby/struct:VCR::HTTPInteraction
215
211
  request: !ruby/struct:VCR::Request
216
212
  method: :post
217
- uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/invoice-create-1297746103/charges.xml
213
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/invoice-create-1296674173/charges.xml
218
214
  body: |
219
215
  <?xml version="1.0" encoding="UTF-8"?>
220
216
  <charge>
@@ -224,13 +220,13 @@
224
220
 
225
221
  headers:
226
222
  authorization:
227
- - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
228
- user-agent:
229
- - Recurly Ruby Client v0.4.6
223
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
230
224
  content-type:
231
225
  - application/xml
232
226
  accept:
233
227
  - "*/*"
228
+ user-agent:
229
+ - Ruby
234
230
  connection:
235
231
  - close
236
232
  response: !ruby/struct:VCR::Response
@@ -241,39 +237,37 @@
241
237
  cache-control:
242
238
  - no-cache
243
239
  x-runtime:
244
- - "231"
240
+ - "431"
245
241
  content-type:
246
242
  - application/xml; charset=utf-8
247
243
  content-length:
248
- - "626"
244
+ - "519"
249
245
  server:
250
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
246
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
251
247
  date:
252
- - Thu, 21 Apr 2011 18:01:34 GMT
248
+ - Thu, 03 Feb 2011 22:20:00 GMT
253
249
  connection:
254
250
  - close
255
251
  set-cookie:
256
- - _recurly_session=e6f520de3d50b34a1f11be4e2a4ab7d3; domain=.recurly.local; path=/; HttpOnly
252
+ - _recurly_session=f74b0dedf7030825cbd1a20fa21e6284; domain=.recurly.local; path=/; HttpOnly
257
253
  body: |
258
254
  <?xml version="1.0" encoding="UTF-8"?>
259
255
  <charge type="charge">
260
- <id>a2cb29599ab24764a0eac17f108b3b3a</id>
261
- <account_code>invoice-create-1297746103</account_code>
262
- <quantity type="integer">1</quantity>
263
- <unit_amount_in_cents type="integer">1500</unit_amount_in_cents>
256
+ <id>5ae82e2de5b247c68c2bd706b3e172ff</id>
257
+ <account_code>invoice-create-1296674173</account_code>
264
258
  <amount_in_cents type="integer">1500</amount_in_cents>
265
- <start_date type="datetime">2011-04-21T18:01:33Z</start_date>
259
+ <start_date type="datetime">2011-02-03T22:20:00Z</start_date>
266
260
  <end_date nil="true" type="datetime"></end_date>
267
261
  <invoice_number nil="true" type="integer"></invoice_number>
268
262
  <description>charge description</description>
269
- <created_at type="datetime">2011-04-21T18:01:34Z</created_at>
263
+ <created_at type="datetime">2011-02-03T22:20:00Z</created_at>
270
264
  </charge>
271
265
 
272
266
  http_version: "1.1"
273
267
  - !ruby/struct:VCR::HTTPInteraction
274
268
  request: !ruby/struct:VCR::Request
275
269
  method: :post
276
- uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/invoice-create-1297746103/invoices.xml
270
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/invoice-create-1296674173/invoices.xml
277
271
  body: |
278
272
  <?xml version="1.0" encoding="UTF-8"?>
279
273
  <invoice>
@@ -281,13 +275,13 @@
281
275
 
282
276
  headers:
283
277
  authorization:
284
- - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
285
- user-agent:
286
- - Recurly Ruby Client v0.4.6
278
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
287
279
  content-type:
288
280
  - application/xml
289
281
  accept:
290
282
  - "*/*"
283
+ user-agent:
284
+ - Ruby
291
285
  connection:
292
286
  - close
293
287
  response: !ruby/struct:VCR::Response
@@ -298,28 +292,28 @@
298
292
  cache-control:
299
293
  - no-cache
300
294
  location:
301
- - http://app.recurly.local:3000/invoices/54c4d130b4ea4a79a83f33fae831f8c3
295
+ - http://litle-test.recurly.local:3000/invoices/a8cfbbab41af409c877fbcf945712871
302
296
  x-runtime:
303
- - "508"
297
+ - "614"
304
298
  content-type:
305
299
  - application/xml; charset=utf-8
306
300
  content-length:
307
301
  - "1675"
308
302
  server:
309
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
303
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
310
304
  date:
311
- - Thu, 21 Apr 2011 18:01:36 GMT
305
+ - Thu, 03 Feb 2011 22:20:03 GMT
312
306
  connection:
313
307
  - close
314
308
  set-cookie:
315
- - _recurly_session=146e65bcbc6704166595c5bbd6c4d14f; domain=.recurly.local; path=/; HttpOnly
309
+ - _recurly_session=a0a41ff515b2614c6526317649f8c424; domain=.recurly.local; path=/; HttpOnly
316
310
  body: |
317
311
  <?xml version="1.0" encoding="UTF-8"?>
318
312
  <invoice>
319
- <id>54c4d130b4ea4a79a83f33fae831f8c3</id>
320
- <account_code>invoice-create-1297746103</account_code>
321
- <date type="datetime">2011-04-21T18:01:36Z</date>
322
- <invoice_number type="integer">1012</invoice_number>
313
+ <id>a8cfbbab41af409c877fbcf945712871</id>
314
+ <account_code>invoice-create-1296674173</account_code>
315
+ <date type="datetime">2011-02-03T22:20:02Z</date>
316
+ <invoice_number type="integer">1235</invoice_number>
323
317
  <vat_number></vat_number>
324
318
  <status>open</status>
325
319
  <subtotal_in_cents type="integer">2500</subtotal_in_cents>
@@ -330,23 +324,23 @@
330
324
  <discount_in_cents type="integer">0</discount_in_cents>
331
325
  <line_items type="array">
332
326
  <line_item>
333
- <id>460c4da0a1fc4a85abecd7a038368916</id>
327
+ <id>52486d42b875414e99059c4536e50dd2</id>
334
328
  <type>charge</type>
335
329
  <amount_in_cents type="integer">1000</amount_in_cents>
336
- <start_date type="datetime">2011-04-21T18:01:32Z</start_date>
330
+ <start_date type="datetime">2011-02-03T22:19:58Z</start_date>
337
331
  <end_date nil="true" type="datetime"></end_date>
338
332
  <description>charge description</description>
339
- <created_at type="datetime">2011-04-21T18:01:32Z</created_at>
333
+ <created_at type="datetime">2011-02-03T22:19:58Z</created_at>
340
334
  <applied_coupon_code></applied_coupon_code>
341
335
  </line_item>
342
336
  <line_item>
343
- <id>a2cb29599ab24764a0eac17f108b3b3a</id>
337
+ <id>5ae82e2de5b247c68c2bd706b3e172ff</id>
344
338
  <type>charge</type>
345
339
  <amount_in_cents type="integer">1500</amount_in_cents>
346
- <start_date type="datetime">2011-04-21T18:01:33Z</start_date>
340
+ <start_date type="datetime">2011-02-03T22:20:00Z</start_date>
347
341
  <end_date nil="true" type="datetime"></end_date>
348
342
  <description>charge description</description>
349
- <created_at type="datetime">2011-04-21T18:01:34Z</created_at>
343
+ <created_at type="datetime">2011-02-03T22:20:00Z</created_at>
350
344
  <applied_coupon_code></applied_coupon_code>
351
345
  </line_item>
352
346
  </line_items>
@@ -2,31 +2,27 @@
2
2
  - !ruby/struct:VCR::HTTPInteraction
3
3
  request: !ruby/struct:VCR::Request
4
4
  method: :post
5
- uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts.xml
5
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts.xml
6
6
  body: |
7
7
  <?xml version="1.0" encoding="UTF-8"?>
8
8
  <account>
9
- <account-code>invoice-list-1297746103</account-code>
9
+ <account-code>invoice-list-1296674173</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>
18
14
  <accept-language type="yaml" nil="true"></accept-language>
19
15
  </account>
20
16
 
21
17
  headers:
22
18
  authorization:
23
- - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
24
- user-agent:
25
- - Recurly Ruby Client v0.4.6
19
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
26
20
  content-type:
27
21
  - application/xml
28
22
  accept:
29
23
  - "*/*"
24
+ user-agent:
25
+ - Ruby
30
26
  connection:
31
27
  - close
32
28
  response: !ruby/struct:VCR::Response
@@ -37,26 +33,28 @@
37
33
  cache-control:
38
34
  - no-cache
39
35
  location:
40
- - http://app.recurly.local:3000/accounts/invoice-list-1297746103
36
+ - http://litle-test.recurly.local:3000/accounts/invoice-list-1296674173
41
37
  x-runtime:
42
- - "262"
38
+ - "626"
43
39
  content-type:
44
40
  - application/xml; charset=utf-8
45
41
  content-length:
46
42
  - "579"
47
43
  server:
48
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
44
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
49
45
  date:
50
- - Thu, 21 Apr 2011 18:01:45 GMT
46
+ - Thu, 03 Feb 2011 22:20:12 GMT
51
47
  connection:
52
48
  - close
53
49
  set-cookie:
54
- - _recurly_session=d8702cb5d74bc17b702ff935ff3ccb75; domain=.recurly.local; path=/; HttpOnly
50
+ - account_credentials=524dbf37d7a21679f7e9d4ad27d0b9ce181205fcecd7865062eca081aa2d96a2ab0f1ed63109b091ae2e3d56e7d94df9ed4793ba6c04b4b61ddc6fc54f787a30%3A%3A; domain=.recurly.local; path=/
51
+ - ""
52
+ - _recurly_session=60b45d00477f83e5e427cb3f2cf716fb; domain=.recurly.local; path=/; HttpOnly
55
53
  body: |
56
54
  <?xml version="1.0" encoding="UTF-8"?>
57
55
  <account>
58
- <id>invoice-list-1297746103</id>
59
- <account_code>invoice-list-1297746103</account_code>
56
+ <id>invoice-list-1296674173</id>
57
+ <account_code>invoice-list-1296674173</account_code>
60
58
  <username></username>
61
59
  <email>verena@test.com</email>
62
60
  <first_name>Verena</first_name>
@@ -64,8 +62,8 @@
64
62
  <company_name>Recurly Ruby Gem</company_name>
65
63
  <balance_in_cents type="integer">0</balance_in_cents>
66
64
  <closed type="boolean">false</closed>
67
- <hosted_login_token>66a458d1234a498a80637292f63b4a6f</hosted_login_token>
68
- <created_at type="datetime">2011-04-21T18:01:45Z</created_at>
65
+ <hosted_login_token>0f1c909f94c04a01a3c9ce2edbe18dec</hosted_login_token>
66
+ <created_at type="datetime">2011-02-03T22:20:12Z</created_at>
69
67
  <state>active</state>
70
68
  </account>
71
69
 
@@ -73,12 +71,10 @@
73
71
  - !ruby/struct:VCR::HTTPInteraction
74
72
  request: !ruby/struct:VCR::Request
75
73
  method: :put
76
- uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/invoice-list-1297746103/billing_info.xml
74
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/invoice-list-1296674173/billing_info.xml
77
75
  body: |
78
76
  <?xml version="1.0" encoding="UTF-8"?>
79
77
  <billing-info>
80
- <first-name>Verena</first-name>
81
- <last-name>Test</last-name>
82
78
  <address1>123 Test St</address1>
83
79
  <city>San Francisco</city>
84
80
  <state>CA</state>
@@ -87,21 +83,23 @@
87
83
  <credit-card>
88
84
  <number>4111111111111111</number>
89
85
  <year type="integer">2012</year>
90
- <month type="integer">4</month>
86
+ <month type="integer">2</month>
91
87
  <verification-value>123</verification-value>
92
88
  </credit-card>
93
- <account-code>invoice-list-1297746103</account-code>
89
+ <account-code>invoice-list-1296674173</account-code>
90
+ <first-name>Verena</first-name>
91
+ <last-name>Test</last-name>
94
92
  </billing-info>
95
93
 
96
94
  headers:
97
95
  authorization:
98
- - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
99
- user-agent:
100
- - Recurly Ruby Client v0.4.6
96
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
101
97
  content-type:
102
98
  - application/xml
103
99
  accept:
104
100
  - "*/*"
101
+ user-agent:
102
+ - Ruby
105
103
  connection:
106
104
  - close
107
105
  response: !ruby/struct:VCR::Response
@@ -110,27 +108,27 @@
110
108
  message: "OK "
111
109
  headers:
112
110
  x-runtime:
113
- - "1433"
111
+ - "1560"
114
112
  content-type:
115
113
  - application/xml; charset=utf-8
116
114
  etag:
117
- - "\"741d100de5960f30d086f7641364c903\""
115
+ - "\"d8eed4f110865c67bc8a74ccdb3594e0\""
118
116
  cache-control:
119
117
  - private, max-age=0, must-revalidate
120
118
  content-length:
121
119
  - "638"
122
120
  server:
123
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
121
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
124
122
  date:
125
- - Thu, 21 Apr 2011 18:01:48 GMT
123
+ - Thu, 03 Feb 2011 22:20:16 GMT
126
124
  connection:
127
125
  - close
128
126
  set-cookie:
129
- - _recurly_session=b41f2a1a9f460eacb59dc3813bd84a21; domain=.recurly.local; path=/; HttpOnly
127
+ - _recurly_session=9657c43a9744bcf3c488d61d7264f6ec; domain=.recurly.local; path=/; HttpOnly
130
128
  body: |
131
129
  <?xml version="1.0" encoding="UTF-8"?>
132
130
  <billing_info>
133
- <account_code>invoice-list-1297746103</account_code>
131
+ <account_code>invoice-list-1296674173</account_code>
134
132
  <first_name>Verena</first_name>
135
133
  <last_name>Test</last_name>
136
134
  <address1>123 Test St</address1>
@@ -145,17 +143,17 @@
145
143
  <credit_card>
146
144
  <type>visa</type>
147
145
  <last_four>1111</last_four>
148
- <month type="integer">4</month>
146
+ <month type="integer">2</month>
149
147
  <year type="integer">2012</year>
150
148
  </credit_card>
151
- <updated_at type="datetime">2011-04-21T18:01:48Z</updated_at>
149
+ <updated_at type="datetime">2011-02-03T22:20:16Z</updated_at>
152
150
  </billing_info>
153
151
 
154
152
  http_version: "1.1"
155
153
  - !ruby/struct:VCR::HTTPInteraction
156
154
  request: !ruby/struct:VCR::Request
157
155
  method: :post
158
- uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/invoice-list-1297746103/charges.xml
156
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/invoice-list-1296674173/charges.xml
159
157
  body: |
160
158
  <?xml version="1.0" encoding="UTF-8"?>
161
159
  <charge>
@@ -165,13 +163,13 @@
165
163
 
166
164
  headers:
167
165
  authorization:
168
- - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
169
- user-agent:
170
- - Recurly Ruby Client v0.4.6
166
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
171
167
  content-type:
172
168
  - application/xml
173
169
  accept:
174
170
  - "*/*"
171
+ user-agent:
172
+ - Ruby
175
173
  connection:
176
174
  - close
177
175
  response: !ruby/struct:VCR::Response
@@ -182,39 +180,37 @@
182
180
  cache-control:
183
181
  - no-cache
184
182
  x-runtime:
185
- - "241"
183
+ - "434"
186
184
  content-type:
187
185
  - application/xml; charset=utf-8
188
186
  content-length:
189
- - "622"
187
+ - "516"
190
188
  server:
191
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
189
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
192
190
  date:
193
- - Thu, 21 Apr 2011 18:01:50 GMT
191
+ - Thu, 03 Feb 2011 22:20:18 GMT
194
192
  connection:
195
193
  - close
196
194
  set-cookie:
197
- - _recurly_session=031626953b2d37017d09eb9ce3c8c0f2; domain=.recurly.local; path=/; HttpOnly
195
+ - _recurly_session=1ac581dd18ec152154017c1ea1aacc6a; domain=.recurly.local; path=/; HttpOnly
198
196
  body: |
199
197
  <?xml version="1.0" encoding="UTF-8"?>
200
198
  <charge type="charge">
201
- <id>387bc51bc35f40989d429239c5e3af7e</id>
202
- <account_code>invoice-list-1297746103</account_code>
203
- <quantity type="integer">1</quantity>
204
- <unit_amount_in_cents type="integer">100</unit_amount_in_cents>
199
+ <id>6adc381d8c7944a688abb7edf5e4b2af</id>
200
+ <account_code>invoice-list-1296674173</account_code>
205
201
  <amount_in_cents type="integer">100</amount_in_cents>
206
- <start_date type="datetime">2011-04-21T18:01:50Z</start_date>
202
+ <start_date type="datetime">2011-02-03T22:20:18Z</start_date>
207
203
  <end_date nil="true" type="datetime"></end_date>
208
204
  <invoice_number nil="true" type="integer"></invoice_number>
209
205
  <description>charge description</description>
210
- <created_at type="datetime">2011-04-21T18:01:50Z</created_at>
206
+ <created_at type="datetime">2011-02-03T22:20:18Z</created_at>
211
207
  </charge>
212
208
 
213
209
  http_version: "1.1"
214
210
  - !ruby/struct:VCR::HTTPInteraction
215
211
  request: !ruby/struct:VCR::Request
216
212
  method: :post
217
- uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/invoice-list-1297746103/invoices.xml
213
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/invoice-list-1296674173/invoices.xml
218
214
  body: |
219
215
  <?xml version="1.0" encoding="UTF-8"?>
220
216
  <invoice>
@@ -222,13 +218,13 @@
222
218
 
223
219
  headers:
224
220
  authorization:
225
- - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
226
- user-agent:
227
- - Recurly Ruby Client v0.4.6
221
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
228
222
  content-type:
229
223
  - application/xml
230
224
  accept:
231
225
  - "*/*"
226
+ user-agent:
227
+ - Ruby
232
228
  connection:
233
229
  - close
234
230
  response: !ruby/struct:VCR::Response
@@ -239,28 +235,28 @@
239
235
  cache-control:
240
236
  - no-cache
241
237
  location:
242
- - http://app.recurly.local:3000/invoices/f285c90b9d0440ae94d578b5e7038637
238
+ - http://litle-test.recurly.local:3000/invoices/ea18bb3d1e1241968104da9c4ed1bdbf
243
239
  x-runtime:
244
- - "508"
240
+ - "656"
245
241
  content-type:
246
242
  - application/xml; charset=utf-8
247
243
  content-length:
248
244
  - "1208"
249
245
  server:
250
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
246
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
251
247
  date:
252
- - Thu, 21 Apr 2011 18:01:52 GMT
248
+ - Thu, 03 Feb 2011 22:20:20 GMT
253
249
  connection:
254
250
  - close
255
251
  set-cookie:
256
- - _recurly_session=474640c514028f929ec5f6f2f405dd6f; domain=.recurly.local; path=/; HttpOnly
252
+ - _recurly_session=79a3ae12d0952dd9be8a113ee49c684d; domain=.recurly.local; path=/; HttpOnly
257
253
  body: |
258
254
  <?xml version="1.0" encoding="UTF-8"?>
259
255
  <invoice>
260
- <id>f285c90b9d0440ae94d578b5e7038637</id>
261
- <account_code>invoice-list-1297746103</account_code>
262
- <date type="datetime">2011-04-21T18:01:52Z</date>
263
- <invoice_number type="integer">1013</invoice_number>
256
+ <id>ea18bb3d1e1241968104da9c4ed1bdbf</id>
257
+ <account_code>invoice-list-1296674173</account_code>
258
+ <date type="datetime">2011-02-03T22:20:20Z</date>
259
+ <invoice_number type="integer">1236</invoice_number>
264
260
  <vat_number></vat_number>
265
261
  <status>open</status>
266
262
  <subtotal_in_cents type="integer">100</subtotal_in_cents>
@@ -271,13 +267,13 @@
271
267
  <discount_in_cents type="integer">0</discount_in_cents>
272
268
  <line_items type="array">
273
269
  <line_item>
274
- <id>387bc51bc35f40989d429239c5e3af7e</id>
270
+ <id>6adc381d8c7944a688abb7edf5e4b2af</id>
275
271
  <type>charge</type>
276
272
  <amount_in_cents type="integer">100</amount_in_cents>
277
- <start_date type="datetime">2011-04-21T18:01:50Z</start_date>
273
+ <start_date type="datetime">2011-02-03T22:20:18Z</start_date>
278
274
  <end_date nil="true" type="datetime"></end_date>
279
275
  <description>charge description</description>
280
- <created_at type="datetime">2011-04-21T18:01:50Z</created_at>
276
+ <created_at type="datetime">2011-02-03T22:20:18Z</created_at>
281
277
  <applied_coupon_code></applied_coupon_code>
282
278
  </line_item>
283
279
  </line_items>
@@ -289,7 +285,7 @@
289
285
  - !ruby/struct:VCR::HTTPInteraction
290
286
  request: !ruby/struct:VCR::Request
291
287
  method: :post
292
- uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/invoice-list-1297746103/charges.xml
288
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/invoice-list-1296674173/charges.xml
293
289
  body: |
294
290
  <?xml version="1.0" encoding="UTF-8"?>
295
291
  <charge>
@@ -299,13 +295,13 @@
299
295
 
300
296
  headers:
301
297
  authorization:
302
- - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
303
- user-agent:
304
- - Recurly Ruby Client v0.4.6
298
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
305
299
  content-type:
306
300
  - application/xml
307
301
  accept:
308
302
  - "*/*"
303
+ user-agent:
304
+ - Ruby
309
305
  connection:
310
306
  - close
311
307
  response: !ruby/struct:VCR::Response
@@ -316,39 +312,37 @@
316
312
  cache-control:
317
313
  - no-cache
318
314
  x-runtime:
319
- - "236"
315
+ - "442"
320
316
  content-type:
321
317
  - application/xml; charset=utf-8
322
318
  content-length:
323
- - "622"
319
+ - "516"
324
320
  server:
325
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
321
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
326
322
  date:
327
- - Thu, 21 Apr 2011 18:01:54 GMT
323
+ - Thu, 03 Feb 2011 22:20:23 GMT
328
324
  connection:
329
325
  - close
330
326
  set-cookie:
331
- - _recurly_session=aabdb2e0251643df1a28df302eb15a1d; domain=.recurly.local; path=/; HttpOnly
327
+ - _recurly_session=ab97d5621a9ba264ee6f563ac52cb918; domain=.recurly.local; path=/; HttpOnly
332
328
  body: |
333
329
  <?xml version="1.0" encoding="UTF-8"?>
334
330
  <charge type="charge">
335
- <id>52499fa56f2f41c79929c2251b7e8376</id>
336
- <account_code>invoice-list-1297746103</account_code>
337
- <quantity type="integer">1</quantity>
338
- <unit_amount_in_cents type="integer">300</unit_amount_in_cents>
331
+ <id>8381a84d9767432894206a5450ee3eab</id>
332
+ <account_code>invoice-list-1296674173</account_code>
339
333
  <amount_in_cents type="integer">300</amount_in_cents>
340
- <start_date type="datetime">2011-04-21T18:01:54Z</start_date>
334
+ <start_date type="datetime">2011-02-03T22:20:22Z</start_date>
341
335
  <end_date nil="true" type="datetime"></end_date>
342
336
  <invoice_number nil="true" type="integer"></invoice_number>
343
337
  <description>charge description</description>
344
- <created_at type="datetime">2011-04-21T18:01:54Z</created_at>
338
+ <created_at type="datetime">2011-02-03T22:20:22Z</created_at>
345
339
  </charge>
346
340
 
347
341
  http_version: "1.1"
348
342
  - !ruby/struct:VCR::HTTPInteraction
349
343
  request: !ruby/struct:VCR::Request
350
344
  method: :post
351
- uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/invoice-list-1297746103/invoices.xml
345
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/invoice-list-1296674173/invoices.xml
352
346
  body: |
353
347
  <?xml version="1.0" encoding="UTF-8"?>
354
348
  <invoice>
@@ -356,13 +350,13 @@
356
350
 
357
351
  headers:
358
352
  authorization:
359
- - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
360
- user-agent:
361
- - Recurly Ruby Client v0.4.6
353
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
362
354
  content-type:
363
355
  - application/xml
364
356
  accept:
365
357
  - "*/*"
358
+ user-agent:
359
+ - Ruby
366
360
  connection:
367
361
  - close
368
362
  response: !ruby/struct:VCR::Response
@@ -373,28 +367,28 @@
373
367
  cache-control:
374
368
  - no-cache
375
369
  location:
376
- - http://app.recurly.local:3000/invoices/b5c683e31bc74d799b0459717e31c585
370
+ - http://litle-test.recurly.local:3000/invoices/b7635a7c7ce4494999d1ba0c80be897f
377
371
  x-runtime:
378
- - "478"
372
+ - "454"
379
373
  content-type:
380
374
  - application/xml; charset=utf-8
381
375
  content-length:
382
376
  - "1208"
383
377
  server:
384
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
378
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
385
379
  date:
386
- - Thu, 21 Apr 2011 18:01:57 GMT
380
+ - Thu, 03 Feb 2011 22:20:25 GMT
387
381
  connection:
388
382
  - close
389
383
  set-cookie:
390
- - _recurly_session=70ce585759d8ffdd372e22c2930b9417; domain=.recurly.local; path=/; HttpOnly
384
+ - _recurly_session=5ce0ca6bf324aefcce399234aa6d1ce3; domain=.recurly.local; path=/; HttpOnly
391
385
  body: |
392
386
  <?xml version="1.0" encoding="UTF-8"?>
393
387
  <invoice>
394
- <id>b5c683e31bc74d799b0459717e31c585</id>
395
- <account_code>invoice-list-1297746103</account_code>
396
- <date type="datetime">2011-04-21T18:01:56Z</date>
397
- <invoice_number type="integer">1014</invoice_number>
388
+ <id>b7635a7c7ce4494999d1ba0c80be897f</id>
389
+ <account_code>invoice-list-1296674173</account_code>
390
+ <date type="datetime">2011-02-03T22:20:25Z</date>
391
+ <invoice_number type="integer">1237</invoice_number>
398
392
  <vat_number></vat_number>
399
393
  <status>open</status>
400
394
  <subtotal_in_cents type="integer">300</subtotal_in_cents>
@@ -405,13 +399,13 @@
405
399
  <discount_in_cents type="integer">0</discount_in_cents>
406
400
  <line_items type="array">
407
401
  <line_item>
408
- <id>52499fa56f2f41c79929c2251b7e8376</id>
402
+ <id>8381a84d9767432894206a5450ee3eab</id>
409
403
  <type>charge</type>
410
404
  <amount_in_cents type="integer">300</amount_in_cents>
411
- <start_date type="datetime">2011-04-21T18:01:54Z</start_date>
405
+ <start_date type="datetime">2011-02-03T22:20:22Z</start_date>
412
406
  <end_date nil="true" type="datetime"></end_date>
413
407
  <description>charge description</description>
414
- <created_at type="datetime">2011-04-21T18:01:54Z</created_at>
408
+ <created_at type="datetime">2011-02-03T22:20:22Z</created_at>
415
409
  <applied_coupon_code></applied_coupon_code>
416
410
  </line_item>
417
411
  </line_items>
@@ -423,17 +417,17 @@
423
417
  - !ruby/struct:VCR::HTTPInteraction
424
418
  request: !ruby/struct:VCR::Request
425
419
  method: :get
426
- uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/invoice-list-1297746103/invoices.xml
420
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/invoice-list-1296674173/invoices.xml
427
421
  body:
428
422
  headers:
429
423
  authorization:
430
- - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
431
- user-agent:
432
- - Recurly Ruby Client v0.4.6
424
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
433
425
  accept:
434
426
  - application/xml
435
427
  accept-encoding:
436
428
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
429
+ user-agent:
430
+ - Ruby
437
431
  connection:
438
432
  - close
439
433
  response: !ruby/struct:VCR::Response
@@ -442,39 +436,39 @@
442
436
  message: "OK "
443
437
  headers:
444
438
  x-runtime:
445
- - "224"
439
+ - "208"
446
440
  content-type:
447
441
  - application/xml; charset=utf-8
448
442
  etag:
449
- - "\"dcc35425876fd9774c8800daed1ad9a5\""
443
+ - "\"977c6fdc2299bd4f77cfb9cdbeaa9ee5\""
450
444
  cache-control:
451
445
  - private, max-age=0, must-revalidate
452
446
  content-length:
453
447
  - "789"
454
448
  server:
455
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
449
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
456
450
  date:
457
- - Thu, 21 Apr 2011 18:01:58 GMT
451
+ - Thu, 03 Feb 2011 22:20:27 GMT
458
452
  connection:
459
453
  - close
460
454
  set-cookie:
461
- - _recurly_session=928ef2d90f17d60e917d489567a2b977; domain=.recurly.local; path=/; HttpOnly
455
+ - _recurly_session=0cdf208431238478880593313d31b15f; domain=.recurly.local; path=/; HttpOnly
462
456
  body: |
463
457
  <?xml version="1.0" encoding="UTF-8"?>
464
458
  <invoices type="array">
465
459
  <invoice>
466
- <id>b5c683e31bc74d799b0459717e31c585</id>
467
- <account_code>invoice-list-1297746103</account_code>
468
- <date type="datetime">2011-04-21T18:01:56Z</date>
469
- <invoice_number type="integer">1014</invoice_number>
460
+ <id>b7635a7c7ce4494999d1ba0c80be897f</id>
461
+ <account_code>invoice-list-1296674173</account_code>
462
+ <date type="datetime">2011-02-03T22:20:25Z</date>
463
+ <invoice_number type="integer">1237</invoice_number>
470
464
  <subtotal_in_cents type="integer">300</subtotal_in_cents>
471
465
  <total_in_cents type="integer">300</total_in_cents>
472
466
  </invoice>
473
467
  <invoice>
474
- <id>f285c90b9d0440ae94d578b5e7038637</id>
475
- <account_code>invoice-list-1297746103</account_code>
476
- <date type="datetime">2011-04-21T18:01:52Z</date>
477
- <invoice_number type="integer">1013</invoice_number>
468
+ <id>ea18bb3d1e1241968104da9c4ed1bdbf</id>
469
+ <account_code>invoice-list-1296674173</account_code>
470
+ <date type="datetime">2011-02-03T22:20:20Z</date>
471
+ <invoice_number type="integer">1236</invoice_number>
478
472
  <subtotal_in_cents type="integer">100</subtotal_in_cents>
479
473
  <total_in_cents type="integer">100</total_in_cents>
480
474
  </invoice>