recurly 0.4.5 → 0.4.6

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 (67) hide show
  1. data/lib/recurly/base.rb +11 -4
  2. data/lib/recurly/billing_info.rb +2 -1
  3. data/lib/recurly/charge.rb +3 -1
  4. data/lib/recurly/credit.rb +3 -1
  5. data/lib/recurly/subscription.rb +1 -1
  6. data/lib/recurly/version.rb +1 -1
  7. data/spec/config/recurly.yml +4 -4
  8. data/spec/unit/billing_info_spec.rb +1 -0
  9. data/spec/unit/charge_spec.rb +2 -0
  10. data/spec/unit/credit_spec.rb +2 -0
  11. data/spec/unit/subscription_spec.rb +1 -1
  12. data/spec/vcr/account/accept-language-account/1301979678.yml +14 -12
  13. data/spec/vcr/account/close/1301979678.yml +41 -35
  14. data/spec/vcr/account/create-blank/1301979678.yml +11 -9
  15. data/spec/vcr/account/create-duplicate/1301979678.yml +25 -21
  16. data/spec/vcr/account/create-min/1301979678.yml +14 -12
  17. data/spec/vcr/account/create/1301979678.yml +14 -12
  18. data/spec/vcr/account/find/1301979678.yml +40 -34
  19. data/spec/vcr/account/list/1301979678.yml +348 -341
  20. data/spec/vcr/account/update/1301979678.yml +61 -53
  21. data/spec/vcr/billing/create/1302025874.yml +42 -36
  22. data/spec/vcr/billing/destroy/1302025874.yml +65 -55
  23. data/spec/vcr/billing/errors/1302025874.yml +25 -21
  24. data/spec/vcr/billing/find/1302025874.yml +56 -48
  25. data/spec/vcr/billing/update/1302025874.yml +56 -48
  26. data/spec/vcr/charge/create/1297746103.yml +65 -53
  27. data/spec/vcr/charge/delete-uninvoiced/1297746103.yml +85 -69
  28. data/spec/vcr/charge/list-all/1297746103.yml +97 -75
  29. data/spec/vcr/charge/list-invoiced/1297746103.yml +143 -115
  30. data/spec/vcr/charge/list-pending/1297746103.yml +97 -75
  31. data/spec/vcr/charge/lookup/1297746103.yml +51 -41
  32. data/spec/vcr/coupon/create/1299714521.yml +28 -88
  33. data/spec/vcr/coupon/destroy/1299714521.yml +25 -107
  34. data/spec/vcr/credit/create/1299714599.yml +51 -41
  35. data/spec/vcr/credit/delete/1299714599.yml +74 -60
  36. data/spec/vcr/credit/list/1299714599.yml +97 -75
  37. data/spec/vcr/credit/lookup/1299714599.yml +51 -41
  38. data/spec/vcr/invoice/create-no-charges/1297746103.yml +39 -33
  39. data/spec/vcr/invoice/create/1297746103.yml +86 -72
  40. data/spec/vcr/invoice/list/1297746103.yml +121 -103
  41. data/spec/vcr/invoice/lookup/1297746103.yml +84 -72
  42. data/spec/vcr/plan/all.yml +108 -134
  43. data/spec/vcr/plan/find.yml +47 -95
  44. data/spec/vcr/plan/update.yml +152 -66
  45. data/spec/vcr/subscription/addons/add/1301885121.yml +48 -310
  46. data/spec/vcr/subscription/addons/create/1301885121.yml +48 -151
  47. data/spec/vcr/subscription/addons/remove/1301885121.yml +48 -279
  48. data/spec/vcr/subscription/cancel-with-code/1301881900.yml +132 -135
  49. data/spec/vcr/subscription/cancel/1301881900.yml +111 -117
  50. data/spec/vcr/subscription/change1/1301881900.yml +107 -113
  51. data/spec/vcr/subscription/change2/1301881900.yml +107 -113
  52. data/spec/vcr/subscription/create/1301881900.yml +50 -65
  53. data/spec/vcr/subscription/find/1301881900.yml +69 -81
  54. data/spec/vcr/subscription/reactivate/1301881900.yml +122 -126
  55. data/spec/vcr/subscription/refund-full/1301881900.yml +84 -153
  56. data/spec/vcr/subscription/refund-none/1301881900.yml +101 -108
  57. data/spec/vcr/subscription/refund-partial/1301881900.yml +84 -153
  58. data/spec/vcr/transaction/all/1301883347.yml +86 -84
  59. data/spec/vcr/transaction/create-no-account/1301883347.yml +15 -13
  60. data/spec/vcr/transaction/create-with-account/1301883347.yml +43 -37
  61. data/spec/vcr/transaction/list-filled/1301883347.yml +115 -101
  62. data/spec/vcr/transaction/list-initial/1301883347.yml +43 -37
  63. data/spec/vcr/transaction/lookup/1301883347.yml +118 -102
  64. data/spec/vcr/transaction/refund/1301883347.yml +58 -50
  65. data/spec/vcr/transaction/void/1301883347.yml +75 -82
  66. data/spec/vcr/transparent/post-url/1301879142.yml +29 -25
  67. metadata +3 -3
@@ -2,7 +2,7 @@
2
2
  - !ruby/struct:VCR::HTTPInteraction
3
3
  request: !ruby/struct:VCR::Request
4
4
  method: :post
5
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts.xml
5
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts.xml
6
6
  body: |
7
7
  <?xml version="1.0" encoding="UTF-8"?>
8
8
  <account>
@@ -20,36 +20,38 @@
20
20
 
21
21
  headers:
22
22
  authorization:
23
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
23
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
24
+ user-agent:
25
+ - Recurly Ruby Client v0.4.6
24
26
  content-type:
25
27
  - application/xml
26
28
  accept:
27
29
  - "*/*"
28
- user-agent:
29
- - Ruby
30
30
  connection:
31
31
  - close
32
32
  response: !ruby/struct:VCR::Response
33
33
  status: !ruby/struct:VCR::ResponseStatus
34
34
  code: 201
35
- message: Created
35
+ message: "Created "
36
36
  headers:
37
37
  cache-control:
38
38
  - no-cache
39
39
  location:
40
40
  - http://app.recurly.local:3000/accounts/charge-list-invoiced-1297746103
41
41
  x-runtime:
42
- - "399"
42
+ - "242"
43
43
  content-type:
44
44
  - application/xml; charset=utf-8
45
45
  content-length:
46
46
  - "595"
47
- set-cookie:
48
- - _recurly_session=8399f11231032701d42671f6211baa40; domain=.recurly.local; path=/; HttpOnly
47
+ server:
48
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
49
+ date:
50
+ - Thu, 21 Apr 2011 18:00:10 GMT
49
51
  connection:
50
52
  - close
51
- server:
52
- - thin 1.2.7 codename No Hup
53
+ set-cookie:
54
+ - _recurly_session=79a4c5d7c02ab0f7235e58d848a87f3f; domain=.recurly.local; path=/; HttpOnly
53
55
  body: |
54
56
  <?xml version="1.0" encoding="UTF-8"?>
55
57
  <account>
@@ -62,8 +64,8 @@
62
64
  <company_name>Recurly Ruby Gem</company_name>
63
65
  <balance_in_cents type="integer">0</balance_in_cents>
64
66
  <closed type="boolean">false</closed>
65
- <hosted_login_token>cde9bef5133547198991fd3c634550e9</hosted_login_token>
66
- <created_at type="datetime">2011-04-05T19:41:32Z</created_at>
67
+ <hosted_login_token>96e955cb84bc43e8b47ae64d7e6c9e93</hosted_login_token>
68
+ <created_at type="datetime">2011-04-21T18:00:10Z</created_at>
67
69
  <state>active</state>
68
70
  </account>
69
71
 
@@ -71,7 +73,7 @@
71
73
  - !ruby/struct:VCR::HTTPInteraction
72
74
  request: !ruby/struct:VCR::Request
73
75
  method: :post
74
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/charge-list-invoiced-1297746103/charges.xml
76
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/charge-list-invoiced-1297746103/charges.xml
75
77
  body: |
76
78
  <?xml version="1.0" encoding="UTF-8"?>
77
79
  <charge>
@@ -81,52 +83,56 @@
81
83
 
82
84
  headers:
83
85
  authorization:
84
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
86
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
87
+ user-agent:
88
+ - Recurly Ruby Client v0.4.6
85
89
  content-type:
86
90
  - application/xml
87
91
  accept:
88
92
  - "*/*"
89
- user-agent:
90
- - Ruby
91
93
  connection:
92
94
  - close
93
95
  response: !ruby/struct:VCR::Response
94
96
  status: !ruby/struct:VCR::ResponseStatus
95
97
  code: 201
96
- message: Created
98
+ message: "Created "
97
99
  headers:
98
100
  cache-control:
99
101
  - no-cache
100
102
  x-runtime:
101
- - "365"
103
+ - "210"
102
104
  content-type:
103
105
  - application/xml; charset=utf-8
104
106
  content-length:
105
- - "525"
106
- set-cookie:
107
- - _recurly_session=508be2309ef4e1b80873c85602679f8e; domain=.recurly.local; path=/; HttpOnly
107
+ - "632"
108
+ server:
109
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
110
+ date:
111
+ - Thu, 21 Apr 2011 18:00:12 GMT
108
112
  connection:
109
113
  - close
110
- server:
111
- - thin 1.2.7 codename No Hup
114
+ set-cookie:
115
+ - _recurly_session=bd60f55404a7dcd2c59b8cb00e880a70; domain=.recurly.local; path=/; HttpOnly
112
116
  body: |
113
117
  <?xml version="1.0" encoding="UTF-8"?>
114
118
  <charge type="charge">
115
- <id>d149e401cb754794a8ae765ae8dc9f5d</id>
119
+ <id>38fd570a1cca462592a532274cac2c2e</id>
116
120
  <account_code>charge-list-invoiced-1297746103</account_code>
121
+ <quantity type="integer">1</quantity>
122
+ <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
117
123
  <amount_in_cents type="integer">1000</amount_in_cents>
118
- <start_date type="datetime">2011-04-05T19:41:34Z</start_date>
124
+ <start_date type="datetime">2011-04-21T18:00:12Z</start_date>
119
125
  <end_date nil="true" type="datetime"></end_date>
120
126
  <invoice_number nil="true" type="integer"></invoice_number>
121
127
  <description>charge description</description>
122
- <created_at type="datetime">2011-04-05T19:41:34Z</created_at>
128
+ <created_at type="datetime">2011-04-21T18:00:12Z</created_at>
123
129
  </charge>
124
130
 
125
131
  http_version: "1.1"
126
132
  - !ruby/struct:VCR::HTTPInteraction
127
133
  request: !ruby/struct:VCR::Request
128
134
  method: :post
129
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/charge-list-invoiced-1297746103/charges.xml
135
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/charge-list-invoiced-1297746103/charges.xml
130
136
  body: |
131
137
  <?xml version="1.0" encoding="UTF-8"?>
132
138
  <charge>
@@ -136,52 +142,56 @@
136
142
 
137
143
  headers:
138
144
  authorization:
139
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
145
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
146
+ user-agent:
147
+ - Recurly Ruby Client v0.4.6
140
148
  content-type:
141
149
  - application/xml
142
150
  accept:
143
151
  - "*/*"
144
- user-agent:
145
- - Ruby
146
152
  connection:
147
153
  - close
148
154
  response: !ruby/struct:VCR::Response
149
155
  status: !ruby/struct:VCR::ResponseStatus
150
156
  code: 201
151
- message: Created
157
+ message: "Created "
152
158
  headers:
153
159
  cache-control:
154
160
  - no-cache
155
161
  x-runtime:
156
- - "84"
162
+ - "219"
157
163
  content-type:
158
164
  - application/xml; charset=utf-8
159
165
  content-length:
160
- - "525"
161
- set-cookie:
162
- - _recurly_session=15e6defb325eaa07e3bca37714a855ca; domain=.recurly.local; path=/; HttpOnly
166
+ - "632"
167
+ server:
168
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
169
+ date:
170
+ - Thu, 21 Apr 2011 18:00:14 GMT
163
171
  connection:
164
172
  - close
165
- server:
166
- - thin 1.2.7 codename No Hup
173
+ set-cookie:
174
+ - _recurly_session=a40ee64793c2952fe8d2156da0a88c27; domain=.recurly.local; path=/; HttpOnly
167
175
  body: |
168
176
  <?xml version="1.0" encoding="UTF-8"?>
169
177
  <charge type="charge">
170
- <id>2622726622a14ddab5fdcc56e5d370fa</id>
178
+ <id>b2fb9b95131247a3a0465489add787ae</id>
171
179
  <account_code>charge-list-invoiced-1297746103</account_code>
180
+ <quantity type="integer">1</quantity>
181
+ <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
172
182
  <amount_in_cents type="integer">1000</amount_in_cents>
173
- <start_date type="datetime">2011-04-05T19:41:37Z</start_date>
183
+ <start_date type="datetime">2011-04-21T18:00:14Z</start_date>
174
184
  <end_date nil="true" type="datetime"></end_date>
175
185
  <invoice_number nil="true" type="integer"></invoice_number>
176
186
  <description>charge description</description>
177
- <created_at type="datetime">2011-04-05T19:41:37Z</created_at>
187
+ <created_at type="datetime">2011-04-21T18:00:14Z</created_at>
178
188
  </charge>
179
189
 
180
190
  http_version: "1.1"
181
191
  - !ruby/struct:VCR::HTTPInteraction
182
192
  request: !ruby/struct:VCR::Request
183
193
  method: :post
184
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/charge-list-invoiced-1297746103/charges.xml
194
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/charge-list-invoiced-1297746103/charges.xml
185
195
  body: |
186
196
  <?xml version="1.0" encoding="UTF-8"?>
187
197
  <charge>
@@ -191,52 +201,56 @@
191
201
 
192
202
  headers:
193
203
  authorization:
194
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
204
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
205
+ user-agent:
206
+ - Recurly Ruby Client v0.4.6
195
207
  content-type:
196
208
  - application/xml
197
209
  accept:
198
210
  - "*/*"
199
- user-agent:
200
- - Ruby
201
211
  connection:
202
212
  - close
203
213
  response: !ruby/struct:VCR::Response
204
214
  status: !ruby/struct:VCR::ResponseStatus
205
215
  code: 201
206
- message: Created
216
+ message: "Created "
207
217
  headers:
208
218
  cache-control:
209
219
  - no-cache
210
220
  x-runtime:
211
- - "372"
221
+ - "211"
212
222
  content-type:
213
223
  - application/xml; charset=utf-8
214
224
  content-length:
215
- - "525"
216
- set-cookie:
217
- - _recurly_session=fccd591ca8945c7d939df89cc265067d; domain=.recurly.local; path=/; HttpOnly
225
+ - "632"
226
+ server:
227
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
228
+ date:
229
+ - Thu, 21 Apr 2011 18:00:15 GMT
218
230
  connection:
219
231
  - close
220
- server:
221
- - thin 1.2.7 codename No Hup
232
+ set-cookie:
233
+ - _recurly_session=3d27e489e25704d27fb812b8aabaf155; domain=.recurly.local; path=/; HttpOnly
222
234
  body: |
223
235
  <?xml version="1.0" encoding="UTF-8"?>
224
236
  <charge type="charge">
225
- <id>cdea698dd1c0494abfce5da6fe77f3e1</id>
237
+ <id>4c7f669de8b9441e926595553512298f</id>
226
238
  <account_code>charge-list-invoiced-1297746103</account_code>
239
+ <quantity type="integer">1</quantity>
240
+ <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
227
241
  <amount_in_cents type="integer">1000</amount_in_cents>
228
- <start_date type="datetime">2011-04-05T19:41:40Z</start_date>
242
+ <start_date type="datetime">2011-04-21T18:00:15Z</start_date>
229
243
  <end_date nil="true" type="datetime"></end_date>
230
244
  <invoice_number nil="true" type="integer"></invoice_number>
231
245
  <description>charge description</description>
232
- <created_at type="datetime">2011-04-05T19:41:40Z</created_at>
246
+ <created_at type="datetime">2011-04-21T18:00:15Z</created_at>
233
247
  </charge>
234
248
 
235
249
  http_version: "1.1"
236
250
  - !ruby/struct:VCR::HTTPInteraction
237
251
  request: !ruby/struct:VCR::Request
238
252
  method: :post
239
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/charge-list-invoiced-1297746103/invoices.xml
253
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/charge-list-invoiced-1297746103/invoices.xml
240
254
  body: |
241
255
  <?xml version="1.0" encoding="UTF-8"?>
242
256
  <invoice>
@@ -244,43 +258,45 @@
244
258
 
245
259
  headers:
246
260
  authorization:
247
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
261
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
262
+ user-agent:
263
+ - Recurly Ruby Client v0.4.6
248
264
  content-type:
249
265
  - application/xml
250
266
  accept:
251
267
  - "*/*"
252
- user-agent:
253
- - Ruby
254
268
  connection:
255
269
  - close
256
270
  response: !ruby/struct:VCR::Response
257
271
  status: !ruby/struct:VCR::ResponseStatus
258
272
  code: 201
259
- message: Created
273
+ message: "Created "
260
274
  headers:
261
275
  cache-control:
262
276
  - no-cache
263
277
  location:
264
- - http://app.recurly.local:3000/invoices/396fed7d91ea48e3b56037ed357b2557
278
+ - http://app.recurly.local:3000/invoices/01ce826474af412590c7e26da6cf0361
265
279
  x-runtime:
266
- - "1085"
280
+ - "656"
267
281
  content-type:
268
282
  - application/xml; charset=utf-8
269
283
  content-length:
270
284
  - "2142"
271
- set-cookie:
272
- - _recurly_session=48502cc961cc5c5029453186ba7d0980; domain=.recurly.local; path=/; HttpOnly
285
+ server:
286
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
287
+ date:
288
+ - Thu, 21 Apr 2011 18:00:18 GMT
273
289
  connection:
274
290
  - close
275
- server:
276
- - thin 1.2.7 codename No Hup
291
+ set-cookie:
292
+ - _recurly_session=4984353642c722ce04cd6c4b5953ba8c; domain=.recurly.local; path=/; HttpOnly
277
293
  body: |
278
294
  <?xml version="1.0" encoding="UTF-8"?>
279
295
  <invoice>
280
- <id>396fed7d91ea48e3b56037ed357b2557</id>
296
+ <id>01ce826474af412590c7e26da6cf0361</id>
281
297
  <account_code>charge-list-invoiced-1297746103</account_code>
282
- <date type="datetime">2011-04-05T19:41:43Z</date>
283
- <invoice_number type="integer">1400</invoice_number>
298
+ <date type="datetime">2011-04-21T18:00:17Z</date>
299
+ <invoice_number type="integer">1011</invoice_number>
284
300
  <vat_number></vat_number>
285
301
  <status>open</status>
286
302
  <subtotal_in_cents type="integer">3000</subtotal_in_cents>
@@ -291,33 +307,33 @@
291
307
  <discount_in_cents type="integer">0</discount_in_cents>
292
308
  <line_items type="array">
293
309
  <line_item>
294
- <id>d149e401cb754794a8ae765ae8dc9f5d</id>
310
+ <id>38fd570a1cca462592a532274cac2c2e</id>
295
311
  <type>charge</type>
296
312
  <amount_in_cents type="integer">1000</amount_in_cents>
297
- <start_date type="datetime">2011-04-05T19:41:34Z</start_date>
313
+ <start_date type="datetime">2011-04-21T18:00:12Z</start_date>
298
314
  <end_date nil="true" type="datetime"></end_date>
299
315
  <description>charge description</description>
300
- <created_at type="datetime">2011-04-05T19:41:34Z</created_at>
316
+ <created_at type="datetime">2011-04-21T18:00:12Z</created_at>
301
317
  <applied_coupon_code></applied_coupon_code>
302
318
  </line_item>
303
319
  <line_item>
304
- <id>2622726622a14ddab5fdcc56e5d370fa</id>
320
+ <id>b2fb9b95131247a3a0465489add787ae</id>
305
321
  <type>charge</type>
306
322
  <amount_in_cents type="integer">1000</amount_in_cents>
307
- <start_date type="datetime">2011-04-05T19:41:37Z</start_date>
323
+ <start_date type="datetime">2011-04-21T18:00:14Z</start_date>
308
324
  <end_date nil="true" type="datetime"></end_date>
309
325
  <description>charge description</description>
310
- <created_at type="datetime">2011-04-05T19:41:37Z</created_at>
326
+ <created_at type="datetime">2011-04-21T18:00:14Z</created_at>
311
327
  <applied_coupon_code></applied_coupon_code>
312
328
  </line_item>
313
329
  <line_item>
314
- <id>cdea698dd1c0494abfce5da6fe77f3e1</id>
330
+ <id>4c7f669de8b9441e926595553512298f</id>
315
331
  <type>charge</type>
316
332
  <amount_in_cents type="integer">1000</amount_in_cents>
317
- <start_date type="datetime">2011-04-05T19:41:40Z</start_date>
333
+ <start_date type="datetime">2011-04-21T18:00:15Z</start_date>
318
334
  <end_date nil="true" type="datetime"></end_date>
319
335
  <description>charge description</description>
320
- <created_at type="datetime">2011-04-05T19:41:40Z</created_at>
336
+ <created_at type="datetime">2011-04-21T18:00:15Z</created_at>
321
337
  <applied_coupon_code></applied_coupon_code>
322
338
  </line_item>
323
339
  </line_items>
@@ -329,7 +345,7 @@
329
345
  - !ruby/struct:VCR::HTTPInteraction
330
346
  request: !ruby/struct:VCR::Request
331
347
  method: :post
332
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/charge-list-invoiced-1297746103/charges.xml
348
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/charge-list-invoiced-1297746103/charges.xml
333
349
  body: |
334
350
  <?xml version="1.0" encoding="UTF-8"?>
335
351
  <charge>
@@ -339,117 +355,129 @@
339
355
 
340
356
  headers:
341
357
  authorization:
342
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
358
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
359
+ user-agent:
360
+ - Recurly Ruby Client v0.4.6
343
361
  content-type:
344
362
  - application/xml
345
363
  accept:
346
364
  - "*/*"
347
- user-agent:
348
- - Ruby
349
365
  connection:
350
366
  - close
351
367
  response: !ruby/struct:VCR::Response
352
368
  status: !ruby/struct:VCR::ResponseStatus
353
369
  code: 201
354
- message: Created
370
+ message: "Created "
355
371
  headers:
356
372
  cache-control:
357
373
  - no-cache
358
374
  x-runtime:
359
- - "416"
375
+ - "246"
360
376
  content-type:
361
377
  - application/xml; charset=utf-8
362
378
  content-length:
363
- - "525"
364
- set-cookie:
365
- - _recurly_session=a5451e195777eb503ca295bdd1e232eb; domain=.recurly.local; path=/; HttpOnly
379
+ - "632"
380
+ server:
381
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
382
+ date:
383
+ - Thu, 21 Apr 2011 18:00:19 GMT
366
384
  connection:
367
385
  - close
368
- server:
369
- - thin 1.2.7 codename No Hup
386
+ set-cookie:
387
+ - _recurly_session=c4fe5925a256fc9f565fe46db74c7c52; domain=.recurly.local; path=/; HttpOnly
370
388
  body: |
371
389
  <?xml version="1.0" encoding="UTF-8"?>
372
390
  <charge type="charge">
373
- <id>acb90315348a477d9b11c40e054e2aa9</id>
391
+ <id>a3905bda7ef14f6a91f692675ad3eccd</id>
374
392
  <account_code>charge-list-invoiced-1297746103</account_code>
393
+ <quantity type="integer">1</quantity>
394
+ <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
375
395
  <amount_in_cents type="integer">1000</amount_in_cents>
376
- <start_date type="datetime">2011-04-05T19:41:46Z</start_date>
396
+ <start_date type="datetime">2011-04-21T18:00:19Z</start_date>
377
397
  <end_date nil="true" type="datetime"></end_date>
378
398
  <invoice_number nil="true" type="integer"></invoice_number>
379
399
  <description>charge description</description>
380
- <created_at type="datetime">2011-04-05T19:41:46Z</created_at>
400
+ <created_at type="datetime">2011-04-21T18:00:19Z</created_at>
381
401
  </charge>
382
402
 
383
403
  http_version: "1.1"
384
404
  - !ruby/struct:VCR::HTTPInteraction
385
405
  request: !ruby/struct:VCR::Request
386
406
  method: :get
387
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/charge-list-invoiced-1297746103/charges.xml?show=invoiced
407
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/charge-list-invoiced-1297746103/charges.xml?show=invoiced
388
408
  body:
389
409
  headers:
390
410
  authorization:
391
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
411
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
412
+ user-agent:
413
+ - Recurly Ruby Client v0.4.6
392
414
  accept:
393
415
  - application/xml
394
416
  accept-encoding:
395
417
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
396
- user-agent:
397
- - Ruby
398
418
  connection:
399
419
  - close
400
420
  response: !ruby/struct:VCR::Response
401
421
  status: !ruby/struct:VCR::ResponseStatus
402
422
  code: 200
403
- message: OK
423
+ message: "OK "
404
424
  headers:
405
425
  x-runtime:
406
- - "370"
426
+ - "217"
407
427
  content-type:
408
428
  - application/xml; charset=utf-8
409
429
  etag:
410
- - "\"fca5aa77c0c6e3368523ea986b4a345d\""
430
+ - "\"d3744c658028126c1db894b587cbedcd\""
411
431
  cache-control:
412
432
  - private, max-age=0, must-revalidate
413
433
  content-length:
414
- - "1570"
415
- set-cookie:
416
- - _recurly_session=4e32e23c94690075e6a3e50221f5d115; domain=.recurly.local; path=/; HttpOnly
434
+ - "1903"
435
+ server:
436
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
437
+ date:
438
+ - Thu, 21 Apr 2011 18:00:22 GMT
417
439
  connection:
418
440
  - close
419
- server:
420
- - thin 1.2.7 codename No Hup
441
+ set-cookie:
442
+ - _recurly_session=832a8f5f7073fb2627defbe97ffaaf48; domain=.recurly.local; path=/; HttpOnly
421
443
  body: |
422
444
  <?xml version="1.0" encoding="UTF-8"?>
423
445
  <charges type="array">
424
446
  <charge type="charge">
425
- <id>cdea698dd1c0494abfce5da6fe77f3e1</id>
447
+ <id>4c7f669de8b9441e926595553512298f</id>
426
448
  <account_code>charge-list-invoiced-1297746103</account_code>
449
+ <quantity type="integer">1</quantity>
450
+ <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
427
451
  <amount_in_cents type="integer">1000</amount_in_cents>
428
- <start_date type="datetime">2011-04-05T19:41:40Z</start_date>
452
+ <start_date type="datetime">2011-04-21T18:00:15Z</start_date>
429
453
  <end_date nil="true" type="datetime"></end_date>
430
- <invoice_number type="integer">1400</invoice_number>
454
+ <invoice_number type="integer">1011</invoice_number>
431
455
  <description>charge description</description>
432
- <created_at type="datetime">2011-04-05T19:41:40Z</created_at>
456
+ <created_at type="datetime">2011-04-21T18:00:15Z</created_at>
433
457
  </charge>
434
458
  <charge type="charge">
435
- <id>2622726622a14ddab5fdcc56e5d370fa</id>
459
+ <id>b2fb9b95131247a3a0465489add787ae</id>
436
460
  <account_code>charge-list-invoiced-1297746103</account_code>
461
+ <quantity type="integer">1</quantity>
462
+ <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
437
463
  <amount_in_cents type="integer">1000</amount_in_cents>
438
- <start_date type="datetime">2011-04-05T19:41:37Z</start_date>
464
+ <start_date type="datetime">2011-04-21T18:00:14Z</start_date>
439
465
  <end_date nil="true" type="datetime"></end_date>
440
- <invoice_number type="integer">1400</invoice_number>
466
+ <invoice_number type="integer">1011</invoice_number>
441
467
  <description>charge description</description>
442
- <created_at type="datetime">2011-04-05T19:41:37Z</created_at>
468
+ <created_at type="datetime">2011-04-21T18:00:14Z</created_at>
443
469
  </charge>
444
470
  <charge type="charge">
445
- <id>d149e401cb754794a8ae765ae8dc9f5d</id>
471
+ <id>38fd570a1cca462592a532274cac2c2e</id>
446
472
  <account_code>charge-list-invoiced-1297746103</account_code>
473
+ <quantity type="integer">1</quantity>
474
+ <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
447
475
  <amount_in_cents type="integer">1000</amount_in_cents>
448
- <start_date type="datetime">2011-04-05T19:41:34Z</start_date>
476
+ <start_date type="datetime">2011-04-21T18:00:12Z</start_date>
449
477
  <end_date nil="true" type="datetime"></end_date>
450
- <invoice_number type="integer">1400</invoice_number>
478
+ <invoice_number type="integer">1011</invoice_number>
451
479
  <description>charge description</description>
452
- <created_at type="datetime">2011-04-05T19:41:34Z</created_at>
480
+ <created_at type="datetime">2011-04-21T18:00:12Z</created_at>
453
481
  </charge>
454
482
  </charges>
455
483