recurly 0.3.1 → 0.3.2

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 (61) hide show
  1. data/lib/recurly.rb +8 -0
  2. data/lib/recurly/account.rb +5 -0
  3. data/lib/recurly/rails3/railtie.rb +9 -0
  4. data/lib/recurly/version.rb +1 -1
  5. data/spec/integration/account_spec.rb +29 -1
  6. data/spec/integration/add_on_spec.rb +84 -0
  7. data/spec/vcr/account/accept-language-account/1294473653.yml +68 -0
  8. data/spec/vcr/account/accept-language-account/1294473761.yml +68 -0
  9. data/spec/vcr/account/accept-language/1294473117.yml +167 -0
  10. data/spec/vcr/account/close/{1288381765.yml → 1294473761.yml} +26 -25
  11. data/spec/vcr/account/create-blank/{1288381765.yml → 1294473761.yml} +5 -4
  12. data/spec/vcr/account/create-duplicate/{1288381765.yml → 1294473761.yml} +13 -11
  13. data/spec/vcr/account/create-min/{1288381765.yml → 1294473761.yml} +12 -11
  14. data/spec/vcr/account/create/{1288381765.yml → 1294473761.yml} +12 -11
  15. data/spec/vcr/account/find/{1288381765.yml → 1294473761.yml} +25 -24
  16. data/spec/vcr/account/list/{1288381765.yml → 1294473761.yml} +328 -287
  17. data/spec/vcr/account/update/{1288381765.yml → 1294473761.yml} +47 -45
  18. data/spec/vcr/billing/create/1286682213.yml +28 -27
  19. data/spec/vcr/billing/destroy/1286682213.yml +42 -41
  20. data/spec/vcr/billing/find/1286682213.yml +38 -37
  21. data/spec/vcr/billing/update/1286682213.yml +40 -39
  22. data/spec/vcr/charge/create/1287465632.yml +36 -35
  23. data/spec/vcr/charge/delete-uninvoiced/1287465632.yml +36 -35
  24. data/spec/vcr/charge/list-all/1287465632.yml +43 -42
  25. data/spec/vcr/charge/list-invoiced/1287465632.yml +70 -69
  26. data/spec/vcr/charge/list-pending/1287465632.yml +43 -42
  27. data/spec/vcr/charge/lookup/1287465632.yml +22 -21
  28. data/spec/vcr/credit/create/1287461400.yml +23 -22
  29. data/spec/vcr/credit/delete/1287461400.yml +33 -32
  30. data/spec/vcr/credit/list/1287461400.yml +43 -42
  31. data/spec/vcr/credit/lookup/1287461400.yml +24 -23
  32. data/spec/vcr/invoice/create-no-charges/1287167121.yml +23 -22
  33. data/spec/vcr/invoice/create/1287167121.yml +48 -47
  34. data/spec/vcr/invoice/list/1287167121.yml +67 -66
  35. data/spec/vcr/invoice/lookup/1287167121.yml +50 -49
  36. data/spec/vcr/plan/all.yml +29 -17
  37. data/spec/vcr/plan/delete/1286677585.yml +21 -21
  38. data/spec/vcr/plan/find.yml +42 -18
  39. data/spec/vcr/plan/update.yml +17 -17
  40. data/spec/vcr/subscription/addons/add/1292420980.yml +479 -0
  41. data/spec/vcr/subscription/addons/create/1292420980.yml +318 -0
  42. data/spec/vcr/subscription/addons/remove/1292420980.yml +448 -0
  43. data/spec/vcr/subscription/cancel-with-code/1287455769.yml +93 -69
  44. data/spec/vcr/subscription/cancel/1287455769.yml +80 -58
  45. data/spec/vcr/subscription/change1/1287455769.yml +77 -55
  46. data/spec/vcr/subscription/change2/1287455769.yml +77 -55
  47. data/spec/vcr/subscription/create/1287455769.yml +43 -27
  48. data/spec/vcr/subscription/find/1287455769.yml +54 -36
  49. data/spec/vcr/subscription/reactivate/1287455769.yml +83 -61
  50. data/spec/vcr/subscription/refund-full/1287455769.yml +69 -51
  51. data/spec/vcr/subscription/refund-none/1287455769.yml +70 -52
  52. data/spec/vcr/subscription/refund-partial/1287455769.yml +70 -52
  53. data/spec/vcr/transaction/all/1289558212.yml +46 -46
  54. data/spec/vcr/transaction/create-no-account/1289558212.yml +11 -11
  55. data/spec/vcr/transaction/create-with-account/1289558212.yml +27 -26
  56. data/spec/vcr/transaction/list-filled/1289558212.yml +54 -53
  57. data/spec/vcr/transaction/list-initial/1289558212.yml +27 -26
  58. data/spec/vcr/transaction/lookup/1289558212.yml +64 -63
  59. data/spec/vcr/transaction/refund/1289558212.yml +35 -34
  60. data/spec/vcr/transaction/void/1289558212.yml +71 -70
  61. metadata +34 -20
@@ -9,6 +9,7 @@
9
9
  <company-name>Recurly Ruby Gem</company-name>
10
10
  <account-code>invoice-create-no-charges-1287167121</account-code>
11
11
  <last-name>Test</last-name>
12
+ <accept-language type="yaml" nil="true"></accept-language>
12
13
  <email>verena@test.com</email>
13
14
  <first-name>Verena</first-name>
14
15
  </account>
@@ -34,17 +35,17 @@
34
35
  content-type:
35
36
  - application/xml; charset=utf-8
36
37
  x-runtime:
37
- - "273"
38
+ - "343"
38
39
  date:
39
- - Tue, 16 Nov 2010 07:03:52 GMT
40
+ - Sat, 08 Jan 2011 08:04:55 GMT
40
41
  server:
41
- - nginx/0.7.65
42
+ - nginx/0.8.53
42
43
  content-length:
43
44
  - "605"
44
45
  set-cookie:
45
- - account_credentials=5679a83c50fcf232f7b0ff1278c0285478f14eeee46a88eb3262813291b072c93bff20ab0a823faa72b813b276bf4db31744788e11fe522353d45bdca8a51d2d%3A%3A; domain=.recurly.com; path=/
46
+ - account_credentials=d0e53dc95993937f12d89051319b25470043bcb836524557adbe442eebf18e163589d8af9f71566279e99774718803d2a4422a9a5d56aa3a1577050a4f84dc56%3A%3A; domain=.recurly.com; path=/
46
47
  - ""
47
- - _recurly_session=4222e114e0ddab9e8aa14f75f9ee6fdf; domain=.recurly.com; path=/; secure; HttpOnly
48
+ - _recurly_session=57286a2589d99f8323ee99ca5037aa6f; domain=.recurly.com; path=/; secure; HttpOnly
48
49
  cache-control:
49
50
  - no-cache
50
51
  body: |
@@ -59,8 +60,8 @@
59
60
  <company_name>Recurly Ruby Gem</company_name>
60
61
  <balance_in_cents type="integer">0</balance_in_cents>
61
62
  <closed type="boolean">false</closed>
62
- <hosted_login_token>d476f758072e4f72b231475dc66afa6a</hosted_login_token>
63
- <created_at type="datetime">2010-11-16T07:03:52Z</created_at>
63
+ <hosted_login_token>599db9b739224746a8bc0ee5e8e03ec7</hosted_login_token>
64
+ <created_at type="datetime">2011-01-08T08:04:55Z</created_at>
64
65
  <state>active</state>
65
66
  </account>
66
67
 
@@ -72,15 +73,15 @@
72
73
  body: |
73
74
  <?xml version="1.0" encoding="UTF-8"?>
74
75
  <billing-info>
75
- <city>San Francisco</city>
76
76
  <address1>123 Test St</address1>
77
+ <city>San Francisco</city>
77
78
  <zip>94115</zip>
78
79
  <account-code>invoice-create-no-charges-1287167121</account-code>
79
80
  <country>US</country>
80
81
  <credit-card>
81
82
  <number>1</number>
82
- <month type="integer">11</month>
83
- <year type="integer">2011</year>
83
+ <month type="integer">1</month>
84
+ <year type="integer">2012</year>
84
85
  <verification-value>123</verification-value>
85
86
  </credit-card>
86
87
  <last-name>Test</last-name>
@@ -105,21 +106,21 @@
105
106
  x-ua-compatible:
106
107
  - IE=Edge
107
108
  etag:
108
- - "\"9424cfc226204aa7275f114e6b5a9dd2\""
109
+ - "\"c12c93bb91adb552e466345fc6e89e98\""
109
110
  connection:
110
111
  - close
111
112
  content-type:
112
113
  - application/xml; charset=utf-8
113
114
  x-runtime:
114
- - "53"
115
+ - "178"
115
116
  date:
116
- - Tue, 16 Nov 2010 07:03:54 GMT
117
+ - Sat, 08 Jan 2011 08:04:56 GMT
117
118
  server:
118
- - nginx/0.7.65
119
+ - nginx/0.8.53
119
120
  content-length:
120
- - "650"
121
+ - "649"
121
122
  set-cookie:
122
- - _recurly_session=d4782a089ab92bb829e6a8258f322791; domain=.recurly.com; path=/; secure; HttpOnly
123
+ - _recurly_session=619f820fb883381d60942db9298bd838; domain=.recurly.com; path=/; secure; HttpOnly
123
124
  cache-control:
124
125
  - private, max-age=0, must-revalidate
125
126
  body: |
@@ -140,10 +141,10 @@
140
141
  <credit_card>
141
142
  <type>bogus</type>
142
143
  <last_four>1</last_four>
143
- <month type="integer">11</month>
144
- <year type="integer">2011</year>
144
+ <month type="integer">1</month>
145
+ <year type="integer">2012</year>
145
146
  </credit_card>
146
- <updated_at type="datetime">2010-11-16T07:03:54Z</updated_at>
147
+ <updated_at type="datetime">2011-01-08T08:04:56Z</updated_at>
147
148
  </billing_info>
148
149
 
149
150
  http_version: "1.1"
@@ -177,13 +178,13 @@
177
178
  x-runtime:
178
179
  - "13"
179
180
  date:
180
- - Tue, 16 Nov 2010 07:03:53 GMT
181
+ - Sat, 08 Jan 2011 08:04:57 GMT
181
182
  server:
182
- - nginx/0.7.65
183
+ - nginx/0.8.53
183
184
  content-length:
184
185
  - "98"
185
186
  set-cookie:
186
- - _recurly_session=b5d282a5c719f071cfc45d20e18f60a5; domain=.recurly.com; path=/; secure; HttpOnly
187
+ - _recurly_session=d13cffac50b273262b49cb46c22841f0; domain=.recurly.com; path=/; secure; HttpOnly
187
188
  cache-control:
188
189
  - no-cache
189
190
  body: |
@@ -9,6 +9,7 @@
9
9
  <company-name>Recurly Ruby Gem</company-name>
10
10
  <account-code>invoice-create-1287167121</account-code>
11
11
  <last-name>Test</last-name>
12
+ <accept-language type="yaml" nil="true"></accept-language>
12
13
  <email>verena@test.com</email>
13
14
  <first-name>Verena</first-name>
14
15
  </account>
@@ -34,17 +35,17 @@
34
35
  content-type:
35
36
  - application/xml; charset=utf-8
36
37
  x-runtime:
37
- - "271"
38
+ - "345"
38
39
  date:
39
- - Tue, 16 Nov 2010 07:03:50 GMT
40
+ - Sat, 08 Jan 2011 08:04:50 GMT
40
41
  server:
41
- - nginx/0.7.65
42
+ - nginx/0.8.53
42
43
  content-length:
43
44
  - "583"
44
45
  set-cookie:
45
- - account_credentials=e065ace9b51044a2891096f6dace1ac60df0d3db56994d488b563b74bf3ab60ce10ee922a8f14f65bc54c84153db5d0696c039e8cdacdf614ca99ef7ff36e84a%3A%3A; domain=.recurly.com; path=/
46
+ - account_credentials=d296e3baf2ca0fd8c08f2a62dd306df96d2abd357414319b87e5954a1d1fbcf8fcdb18b0e83ee7aaa8901068bbc64f2044e3a376c4a22c362d232fbefebd976d%3A%3A; domain=.recurly.com; path=/
46
47
  - ""
47
- - _recurly_session=e7b35e6cce3e29adeb3c5d3a89a76214; domain=.recurly.com; path=/; secure; HttpOnly
48
+ - _recurly_session=5617fda3bf2369e4c4cf59e671ae55b6; domain=.recurly.com; path=/; secure; HttpOnly
48
49
  cache-control:
49
50
  - no-cache
50
51
  body: |
@@ -59,8 +60,8 @@
59
60
  <company_name>Recurly Ruby Gem</company_name>
60
61
  <balance_in_cents type="integer">0</balance_in_cents>
61
62
  <closed type="boolean">false</closed>
62
- <hosted_login_token>c6a6c82d42324eff99fe581c99e26959</hosted_login_token>
63
- <created_at type="datetime">2010-11-16T07:03:50Z</created_at>
63
+ <hosted_login_token>904bba7cf9f54d2c964e008b875beae7</hosted_login_token>
64
+ <created_at type="datetime">2011-01-08T08:04:50Z</created_at>
64
65
  <state>active</state>
65
66
  </account>
66
67
 
@@ -72,15 +73,15 @@
72
73
  body: |
73
74
  <?xml version="1.0" encoding="UTF-8"?>
74
75
  <billing-info>
75
- <city>San Francisco</city>
76
76
  <address1>123 Test St</address1>
77
+ <city>San Francisco</city>
77
78
  <zip>94115</zip>
78
79
  <account-code>invoice-create-1287167121</account-code>
79
80
  <country>US</country>
80
81
  <credit-card>
81
82
  <number>1</number>
82
- <month type="integer">11</month>
83
- <year type="integer">2011</year>
83
+ <month type="integer">1</month>
84
+ <year type="integer">2012</year>
84
85
  <verification-value>123</verification-value>
85
86
  </credit-card>
86
87
  <last-name>Test</last-name>
@@ -105,21 +106,21 @@
105
106
  x-ua-compatible:
106
107
  - IE=Edge
107
108
  etag:
108
- - "\"99d457bed8db723ae9437cb137b4c01f\""
109
+ - "\"ea72b87da0725cd3a3d044684d01b914\""
109
110
  connection:
110
111
  - close
111
112
  content-type:
112
113
  - application/xml; charset=utf-8
113
114
  x-runtime:
114
- - "55"
115
+ - "183"
115
116
  date:
116
- - Tue, 16 Nov 2010 07:03:49 GMT
117
+ - Sat, 08 Jan 2011 08:04:51 GMT
117
118
  server:
118
- - nginx/0.7.65
119
+ - nginx/0.8.53
119
120
  content-length:
120
- - "639"
121
+ - "638"
121
122
  set-cookie:
122
- - _recurly_session=8243fd12ef5697cfa548d73e57c6ba69; domain=.recurly.com; path=/; secure; HttpOnly
123
+ - _recurly_session=139caf37b70f9d836622d4d25970488d; domain=.recurly.com; path=/; secure; HttpOnly
123
124
  cache-control:
124
125
  - private, max-age=0, must-revalidate
125
126
  body: |
@@ -140,10 +141,10 @@
140
141
  <credit_card>
141
142
  <type>bogus</type>
142
143
  <last_four>1</last_four>
143
- <month type="integer">11</month>
144
- <year type="integer">2011</year>
144
+ <month type="integer">1</month>
145
+ <year type="integer">2012</year>
145
146
  </credit_card>
146
- <updated_at type="datetime">2010-11-16T07:03:49Z</updated_at>
147
+ <updated_at type="datetime">2011-01-08T08:04:51Z</updated_at>
147
148
  </billing_info>
148
149
 
149
150
  http_version: "1.1"
@@ -177,28 +178,28 @@
177
178
  content-type:
178
179
  - application/xml; charset=utf-8
179
180
  x-runtime:
180
- - "44"
181
+ - "46"
181
182
  date:
182
- - Tue, 16 Nov 2010 07:03:52 GMT
183
+ - Sat, 08 Jan 2011 08:04:52 GMT
183
184
  server:
184
- - nginx/0.7.65
185
+ - nginx/0.8.53
185
186
  content-length:
186
187
  - "519"
187
188
  set-cookie:
188
- - _recurly_session=c6b7d17095acc73811776d14110f886a; domain=.recurly.com; path=/; secure; HttpOnly
189
+ - _recurly_session=fce5dcd1702a950942e08175ecb19ec7; domain=.recurly.com; path=/; secure; HttpOnly
189
190
  cache-control:
190
191
  - no-cache
191
192
  body: |
192
193
  <?xml version="1.0" encoding="UTF-8"?>
193
194
  <charge type="charge">
194
- <id>71b7368fc7514fb19d72afdf346f4d48</id>
195
+ <id>aea9fd3bccaa4f27bdff3278797c767b</id>
195
196
  <account_code>invoice-create-1287167121</account_code>
196
197
  <amount_in_cents type="integer">1000</amount_in_cents>
197
- <start_date type="datetime">2010-11-16T07:03:52Z</start_date>
198
+ <start_date type="datetime">2011-01-08T08:04:52Z</start_date>
198
199
  <end_date nil="true" type="datetime"></end_date>
199
200
  <invoice_number nil="true" type="integer"></invoice_number>
200
201
  <description>charge description</description>
201
- <created_at type="datetime">2010-11-16T07:03:52Z</created_at>
202
+ <created_at type="datetime">2011-01-08T08:04:52Z</created_at>
202
203
  </charge>
203
204
 
204
205
  http_version: "1.1"
@@ -232,28 +233,28 @@
232
233
  content-type:
233
234
  - application/xml; charset=utf-8
234
235
  x-runtime:
235
- - "60"
236
+ - "49"
236
237
  date:
237
- - Tue, 16 Nov 2010 07:03:50 GMT
238
+ - Sat, 08 Jan 2011 08:04:53 GMT
238
239
  server:
239
- - nginx/0.7.65
240
+ - nginx/0.8.53
240
241
  content-length:
241
242
  - "519"
242
243
  set-cookie:
243
- - _recurly_session=550ca80a44cf964b7daf27046ae332cd; domain=.recurly.com; path=/; secure; HttpOnly
244
+ - _recurly_session=c0be633d79150e00eb4558cfe87f0310; domain=.recurly.com; path=/; secure; HttpOnly
244
245
  cache-control:
245
246
  - no-cache
246
247
  body: |
247
248
  <?xml version="1.0" encoding="UTF-8"?>
248
249
  <charge type="charge">
249
- <id>ce52f13faded48299bff6a50ff2622f9</id>
250
+ <id>d372b5b835fa4fd78d20ae5ef704a3eb</id>
250
251
  <account_code>invoice-create-1287167121</account_code>
251
252
  <amount_in_cents type="integer">1500</amount_in_cents>
252
- <start_date type="datetime">2010-11-16T07:03:50Z</start_date>
253
+ <start_date type="datetime">2011-01-08T08:04:53Z</start_date>
253
254
  <end_date nil="true" type="datetime"></end_date>
254
255
  <invoice_number nil="true" type="integer"></invoice_number>
255
256
  <description>charge description</description>
256
- <created_at type="datetime">2010-11-16T07:03:50Z</created_at>
257
+ <created_at type="datetime">2011-01-08T08:04:53Z</created_at>
257
258
  </charge>
258
259
 
259
260
  http_version: "1.1"
@@ -281,30 +282,30 @@
281
282
  message: Created
282
283
  headers:
283
284
  location:
284
- - https://recurlytest3-test.recurly.com/invoices/62eb8676366c4febbb7ec2c7d94fb58a
285
+ - https://recurlytest3-test.recurly.com/invoices/4fd0a22787954e6b9c7ec9c6aa9f6223
285
286
  connection:
286
287
  - close
287
288
  content-type:
288
289
  - application/xml; charset=utf-8
289
290
  x-runtime:
290
- - "66"
291
+ - "65"
291
292
  date:
292
- - Tue, 16 Nov 2010 07:03:53 GMT
293
+ - Sat, 08 Jan 2011 08:04:54 GMT
293
294
  server:
294
- - nginx/0.7.65
295
+ - nginx/0.8.53
295
296
  content-length:
296
297
  - "1517"
297
298
  set-cookie:
298
- - _recurly_session=ae49291fbf06f7aa54711c1795b52243; domain=.recurly.com; path=/; secure; HttpOnly
299
+ - _recurly_session=0487037a99916c23c92a0c650aa137ac; domain=.recurly.com; path=/; secure; HttpOnly
299
300
  cache-control:
300
301
  - no-cache
301
302
  body: |
302
303
  <?xml version="1.0" encoding="UTF-8"?>
303
304
  <invoice>
304
- <id>62eb8676366c4febbb7ec2c7d94fb58a</id>
305
+ <id>4fd0a22787954e6b9c7ec9c6aa9f6223</id>
305
306
  <account_code>invoice-create-1287167121</account_code>
306
- <date type="datetime">2010-11-16T07:03:53Z</date>
307
- <invoice_number type="integer">2226</invoice_number>
307
+ <date type="datetime">2011-01-08T08:04:54Z</date>
308
+ <invoice_number type="integer">2381</invoice_number>
308
309
  <vat_number></vat_number>
309
310
  <status>open</status>
310
311
  <subtotal_in_cents type="integer">2500</subtotal_in_cents>
@@ -314,22 +315,22 @@
314
315
  <total_due_in_cents type="integer">2500</total_due_in_cents>
315
316
  <line_items type="array">
316
317
  <line_item>
317
- <id>71b7368fc7514fb19d72afdf346f4d48</id>
318
+ <id>aea9fd3bccaa4f27bdff3278797c767b</id>
318
319
  <type>charge</type>
319
320
  <amount_in_cents type="integer">1000</amount_in_cents>
320
- <start_date type="datetime">2010-11-16T07:03:52Z</start_date>
321
+ <start_date type="datetime">2011-01-08T08:04:52Z</start_date>
321
322
  <end_date nil="true" type="datetime"></end_date>
322
323
  <description>charge description</description>
323
- <created_at type="datetime">2010-11-16T07:03:52Z</created_at>
324
+ <created_at type="datetime">2011-01-08T08:04:52Z</created_at>
324
325
  </line_item>
325
326
  <line_item>
326
- <id>ce52f13faded48299bff6a50ff2622f9</id>
327
+ <id>d372b5b835fa4fd78d20ae5ef704a3eb</id>
327
328
  <type>charge</type>
328
329
  <amount_in_cents type="integer">1500</amount_in_cents>
329
- <start_date type="datetime">2010-11-16T07:03:50Z</start_date>
330
+ <start_date type="datetime">2011-01-08T08:04:53Z</start_date>
330
331
  <end_date nil="true" type="datetime"></end_date>
331
332
  <description>charge description</description>
332
- <created_at type="datetime">2010-11-16T07:03:50Z</created_at>
333
+ <created_at type="datetime">2011-01-08T08:04:53Z</created_at>
333
334
  </line_item>
334
335
  </line_items>
335
336
  <payments type="array">
@@ -9,6 +9,7 @@
9
9
  <company-name>Recurly Ruby Gem</company-name>
10
10
  <account-code>invoice-list-1287167121</account-code>
11
11
  <last-name>Test</last-name>
12
+ <accept-language type="yaml" nil="true"></accept-language>
12
13
  <email>verena@test.com</email>
13
14
  <first-name>Verena</first-name>
14
15
  </account>
@@ -34,17 +35,17 @@
34
35
  content-type:
35
36
  - application/xml; charset=utf-8
36
37
  x-runtime:
37
- - "271"
38
+ - "444"
38
39
  date:
39
- - Tue, 16 Nov 2010 07:03:56 GMT
40
+ - Sat, 08 Jan 2011 08:04:58 GMT
40
41
  server:
41
- - nginx/0.7.65
42
+ - nginx/0.8.53
42
43
  content-length:
43
44
  - "579"
44
45
  set-cookie:
45
- - account_credentials=f7470270b9293c37b826aec1dbd7f23405f09f3287463812d0d81f06b74368f3e204dac642b39eca6b281c33b4e4c523842a83411dee49d1d72baa10e7ce43bb%3A%3A; domain=.recurly.com; path=/
46
+ - account_credentials=e4b0c0d0f91cfb12dfb43504b3ee33f99d2573c6552bcdc99fe76451a577b7c4a786d5d84ba8785d500d229fb8f9876c71a79cfa2e375c0dec44b26730734578%3A%3A; domain=.recurly.com; path=/
46
47
  - ""
47
- - _recurly_session=4cc4e6160f1ed5c6fc92ac7d608525c1; domain=.recurly.com; path=/; secure; HttpOnly
48
+ - _recurly_session=22293df708c79619297987060254b491; domain=.recurly.com; path=/; secure; HttpOnly
48
49
  cache-control:
49
50
  - no-cache
50
51
  body: |
@@ -59,8 +60,8 @@
59
60
  <company_name>Recurly Ruby Gem</company_name>
60
61
  <balance_in_cents type="integer">0</balance_in_cents>
61
62
  <closed type="boolean">false</closed>
62
- <hosted_login_token>5c3ffee278234507a0f33f8e8cf80083</hosted_login_token>
63
- <created_at type="datetime">2010-11-16T07:03:55Z</created_at>
63
+ <hosted_login_token>b8308e938ea94887945284ed5bb1170a</hosted_login_token>
64
+ <created_at type="datetime">2011-01-08T08:04:58Z</created_at>
64
65
  <state>active</state>
65
66
  </account>
66
67
 
@@ -72,15 +73,15 @@
72
73
  body: |
73
74
  <?xml version="1.0" encoding="UTF-8"?>
74
75
  <billing-info>
75
- <city>San Francisco</city>
76
76
  <address1>123 Test St</address1>
77
+ <city>San Francisco</city>
77
78
  <zip>94115</zip>
78
79
  <account-code>invoice-list-1287167121</account-code>
79
80
  <country>US</country>
80
81
  <credit-card>
81
82
  <number>1</number>
82
- <month type="integer">11</month>
83
- <year type="integer">2011</year>
83
+ <month type="integer">1</month>
84
+ <year type="integer">2012</year>
84
85
  <verification-value>123</verification-value>
85
86
  </credit-card>
86
87
  <last-name>Test</last-name>
@@ -105,21 +106,21 @@
105
106
  x-ua-compatible:
106
107
  - IE=Edge
107
108
  etag:
108
- - "\"c6f0662786d7e204e676b48458eb86aa\""
109
+ - "\"f54fef8a3dcb558455678315c0e9d05b\""
109
110
  connection:
110
111
  - close
111
112
  content-type:
112
113
  - application/xml; charset=utf-8
113
114
  x-runtime:
114
- - "54"
115
+ - "196"
115
116
  date:
116
- - Tue, 16 Nov 2010 07:03:54 GMT
117
+ - Sat, 08 Jan 2011 08:04:59 GMT
117
118
  server:
118
- - nginx/0.7.65
119
+ - nginx/0.8.53
119
120
  content-length:
120
- - "637"
121
+ - "636"
121
122
  set-cookie:
122
- - _recurly_session=6dfe194eb89f07506305c2894283a42f; domain=.recurly.com; path=/; secure; HttpOnly
123
+ - _recurly_session=2761de9f24d0751bb4b1f66be734add0; domain=.recurly.com; path=/; secure; HttpOnly
123
124
  cache-control:
124
125
  - private, max-age=0, must-revalidate
125
126
  body: |
@@ -140,10 +141,10 @@
140
141
  <credit_card>
141
142
  <type>bogus</type>
142
143
  <last_four>1</last_four>
143
- <month type="integer">11</month>
144
- <year type="integer">2011</year>
144
+ <month type="integer">1</month>
145
+ <year type="integer">2012</year>
145
146
  </credit_card>
146
- <updated_at type="datetime">2010-11-16T07:03:54Z</updated_at>
147
+ <updated_at type="datetime">2011-01-08T08:04:59Z</updated_at>
147
148
  </billing_info>
148
149
 
149
150
  http_version: "1.1"
@@ -177,28 +178,28 @@
177
178
  content-type:
178
179
  - application/xml; charset=utf-8
179
180
  x-runtime:
180
- - "44"
181
+ - "48"
181
182
  date:
182
- - Tue, 16 Nov 2010 07:03:57 GMT
183
+ - Sat, 08 Jan 2011 08:05:00 GMT
183
184
  server:
184
- - nginx/0.7.65
185
+ - nginx/0.8.53
185
186
  content-length:
186
187
  - "516"
187
188
  set-cookie:
188
- - _recurly_session=680e03e4651fab43a9b3ded80cf1f94c; domain=.recurly.com; path=/; secure; HttpOnly
189
+ - _recurly_session=3535ed65bdfd99bc291f66dec8893838; domain=.recurly.com; path=/; secure; HttpOnly
189
190
  cache-control:
190
191
  - no-cache
191
192
  body: |
192
193
  <?xml version="1.0" encoding="UTF-8"?>
193
194
  <charge type="charge">
194
- <id>68cde074fe314496949539a2089a31f3</id>
195
+ <id>e92e1ca0f7af4bfd91f2d33a4b6cc8b5</id>
195
196
  <account_code>invoice-list-1287167121</account_code>
196
197
  <amount_in_cents type="integer">100</amount_in_cents>
197
- <start_date type="datetime">2010-11-16T07:03:57Z</start_date>
198
+ <start_date type="datetime">2011-01-08T08:05:00Z</start_date>
198
199
  <end_date nil="true" type="datetime"></end_date>
199
200
  <invoice_number nil="true" type="integer"></invoice_number>
200
201
  <description>charge description</description>
201
- <created_at type="datetime">2010-11-16T07:03:57Z</created_at>
202
+ <created_at type="datetime">2011-01-08T08:05:00Z</created_at>
202
203
  </charge>
203
204
 
204
205
  http_version: "1.1"
@@ -226,30 +227,30 @@
226
227
  message: Created
227
228
  headers:
228
229
  location:
229
- - https://recurlytest3-test.recurly.com/invoices/80705380f0834564963fe6e46b0a3b21
230
+ - https://recurlytest3-test.recurly.com/invoices/462de13852cf42db9d0438ba3f3b35f3
230
231
  connection:
231
232
  - close
232
233
  content-type:
233
234
  - application/xml; charset=utf-8
234
235
  x-runtime:
235
- - "64"
236
+ - "72"
236
237
  date:
237
- - Tue, 16 Nov 2010 07:03:55 GMT
238
+ - Sat, 08 Jan 2011 08:05:01 GMT
238
239
  server:
239
- - nginx/0.7.65
240
+ - nginx/0.8.53
240
241
  content-length:
241
242
  - "1100"
242
243
  set-cookie:
243
- - _recurly_session=8517c075c032126788394bfd0ac0a706; domain=.recurly.com; path=/; secure; HttpOnly
244
+ - _recurly_session=599e056560a672f15c346ef61776cdd2; domain=.recurly.com; path=/; secure; HttpOnly
244
245
  cache-control:
245
246
  - no-cache
246
247
  body: |
247
248
  <?xml version="1.0" encoding="UTF-8"?>
248
249
  <invoice>
249
- <id>80705380f0834564963fe6e46b0a3b21</id>
250
+ <id>462de13852cf42db9d0438ba3f3b35f3</id>
250
251
  <account_code>invoice-list-1287167121</account_code>
251
- <date type="datetime">2010-11-16T07:03:55Z</date>
252
- <invoice_number type="integer">2227</invoice_number>
252
+ <date type="datetime">2011-01-08T08:05:01Z</date>
253
+ <invoice_number type="integer">2382</invoice_number>
253
254
  <vat_number></vat_number>
254
255
  <status>open</status>
255
256
  <subtotal_in_cents type="integer">100</subtotal_in_cents>
@@ -259,13 +260,13 @@
259
260
  <total_due_in_cents type="integer">100</total_due_in_cents>
260
261
  <line_items type="array">
261
262
  <line_item>
262
- <id>68cde074fe314496949539a2089a31f3</id>
263
+ <id>e92e1ca0f7af4bfd91f2d33a4b6cc8b5</id>
263
264
  <type>charge</type>
264
265
  <amount_in_cents type="integer">100</amount_in_cents>
265
- <start_date type="datetime">2010-11-16T07:03:57Z</start_date>
266
+ <start_date type="datetime">2011-01-08T08:05:00Z</start_date>
266
267
  <end_date nil="true" type="datetime"></end_date>
267
268
  <description>charge description</description>
268
- <created_at type="datetime">2010-11-16T07:03:57Z</created_at>
269
+ <created_at type="datetime">2011-01-08T08:05:00Z</created_at>
269
270
  </line_item>
270
271
  </line_items>
271
272
  <payments type="array">
@@ -303,28 +304,28 @@
303
304
  content-type:
304
305
  - application/xml; charset=utf-8
305
306
  x-runtime:
306
- - "44"
307
+ - "136"
307
308
  date:
308
- - Tue, 16 Nov 2010 07:03:58 GMT
309
+ - Sat, 08 Jan 2011 08:05:02 GMT
309
310
  server:
310
- - nginx/0.7.65
311
+ - nginx/0.8.53
311
312
  content-length:
312
313
  - "516"
313
314
  set-cookie:
314
- - _recurly_session=48c693c24e21e31899d504c111d71452; domain=.recurly.com; path=/; secure; HttpOnly
315
+ - _recurly_session=df09dacbe61a0a066f49f1ad2d2d478b; domain=.recurly.com; path=/; secure; HttpOnly
315
316
  cache-control:
316
317
  - no-cache
317
318
  body: |
318
319
  <?xml version="1.0" encoding="UTF-8"?>
319
320
  <charge type="charge">
320
- <id>0ed4c719de884c9e831e356874cf1733</id>
321
+ <id>a36f95419ecb4c52bc5879bc39c68cce</id>
321
322
  <account_code>invoice-list-1287167121</account_code>
322
323
  <amount_in_cents type="integer">300</amount_in_cents>
323
- <start_date type="datetime">2010-11-16T07:03:58Z</start_date>
324
+ <start_date type="datetime">2011-01-08T08:05:02Z</start_date>
324
325
  <end_date nil="true" type="datetime"></end_date>
325
326
  <invoice_number nil="true" type="integer"></invoice_number>
326
327
  <description>charge description</description>
327
- <created_at type="datetime">2010-11-16T07:03:58Z</created_at>
328
+ <created_at type="datetime">2011-01-08T08:05:02Z</created_at>
328
329
  </charge>
329
330
 
330
331
  http_version: "1.1"
@@ -352,30 +353,30 @@
352
353
  message: Created
353
354
  headers:
354
355
  location:
355
- - https://recurlytest3-test.recurly.com/invoices/679adf945dd74b1295f95d54894d60dc
356
+ - https://recurlytest3-test.recurly.com/invoices/855ffbe79ff049df98395458059f37a6
356
357
  connection:
357
358
  - close
358
359
  content-type:
359
360
  - application/xml; charset=utf-8
360
361
  x-runtime:
361
- - "56"
362
+ - "55"
362
363
  date:
363
- - Tue, 16 Nov 2010 07:03:56 GMT
364
+ - Sat, 08 Jan 2011 08:05:03 GMT
364
365
  server:
365
- - nginx/0.7.65
366
+ - nginx/0.8.53
366
367
  content-length:
367
368
  - "1100"
368
369
  set-cookie:
369
- - _recurly_session=366c087c7dab46dbbb0879cdbb136481; domain=.recurly.com; path=/; secure; HttpOnly
370
+ - _recurly_session=e8fe9ad5244a363bd92a3a48edfd6dc8; domain=.recurly.com; path=/; secure; HttpOnly
370
371
  cache-control:
371
372
  - no-cache
372
373
  body: |
373
374
  <?xml version="1.0" encoding="UTF-8"?>
374
375
  <invoice>
375
- <id>679adf945dd74b1295f95d54894d60dc</id>
376
+ <id>855ffbe79ff049df98395458059f37a6</id>
376
377
  <account_code>invoice-list-1287167121</account_code>
377
- <date type="datetime">2010-11-16T07:03:56Z</date>
378
- <invoice_number type="integer">2228</invoice_number>
378
+ <date type="datetime">2011-01-08T08:05:03Z</date>
379
+ <invoice_number type="integer">2383</invoice_number>
379
380
  <vat_number></vat_number>
380
381
  <status>open</status>
381
382
  <subtotal_in_cents type="integer">300</subtotal_in_cents>
@@ -385,13 +386,13 @@
385
386
  <total_due_in_cents type="integer">300</total_due_in_cents>
386
387
  <line_items type="array">
387
388
  <line_item>
388
- <id>0ed4c719de884c9e831e356874cf1733</id>
389
+ <id>a36f95419ecb4c52bc5879bc39c68cce</id>
389
390
  <type>charge</type>
390
391
  <amount_in_cents type="integer">300</amount_in_cents>
391
- <start_date type="datetime">2010-11-16T07:03:58Z</start_date>
392
+ <start_date type="datetime">2011-01-08T08:05:02Z</start_date>
392
393
  <end_date nil="true" type="datetime"></end_date>
393
394
  <description>charge description</description>
394
- <created_at type="datetime">2010-11-16T07:03:58Z</created_at>
395
+ <created_at type="datetime">2011-01-08T08:05:02Z</created_at>
395
396
  </line_item>
396
397
  </line_items>
397
398
  <payments type="array">
@@ -419,39 +420,39 @@
419
420
  x-ua-compatible:
420
421
  - IE=Edge
421
422
  etag:
422
- - "\"c00dc9d28a37995e4f61ff9ca517f580\""
423
+ - "\"20b88ee7b43079d24b567bb635c8ef58\""
423
424
  connection:
424
425
  - close
425
426
  content-type:
426
427
  - application/xml; charset=utf-8
427
428
  x-runtime:
428
- - "14"
429
+ - "15"
429
430
  date:
430
- - Tue, 16 Nov 2010 07:03:59 GMT
431
+ - Sat, 08 Jan 2011 08:05:03 GMT
431
432
  server:
432
- - nginx/0.7.65
433
+ - nginx/0.8.53
433
434
  content-length:
434
435
  - "789"
435
436
  set-cookie:
436
- - _recurly_session=59c07f289a1b47f19a929e72340046fc; domain=.recurly.com; path=/; secure; HttpOnly
437
+ - _recurly_session=503879124029dc7ee951e85d47ddbbf2; domain=.recurly.com; path=/; secure; HttpOnly
437
438
  cache-control:
438
439
  - private, max-age=0, must-revalidate
439
440
  body: |
440
441
  <?xml version="1.0" encoding="UTF-8"?>
441
442
  <invoices type="array">
442
443
  <invoice>
443
- <id>679adf945dd74b1295f95d54894d60dc</id>
444
+ <id>855ffbe79ff049df98395458059f37a6</id>
444
445
  <account_code>invoice-list-1287167121</account_code>
445
- <date type="datetime">2010-11-16T07:03:56Z</date>
446
- <invoice_number type="integer">2228</invoice_number>
446
+ <date type="datetime">2011-01-08T08:05:03Z</date>
447
+ <invoice_number type="integer">2383</invoice_number>
447
448
  <subtotal_in_cents type="integer">300</subtotal_in_cents>
448
449
  <total_in_cents type="integer">300</total_in_cents>
449
450
  </invoice>
450
451
  <invoice>
451
- <id>80705380f0834564963fe6e46b0a3b21</id>
452
+ <id>462de13852cf42db9d0438ba3f3b35f3</id>
452
453
  <account_code>invoice-list-1287167121</account_code>
453
- <date type="datetime">2010-11-16T07:03:55Z</date>
454
- <invoice_number type="integer">2227</invoice_number>
454
+ <date type="datetime">2011-01-08T08:05:01Z</date>
455
+ <invoice_number type="integer">2382</invoice_number>
455
456
  <subtotal_in_cents type="integer">100</subtotal_in_cents>
456
457
  <total_in_cents type="integer">100</total_in_cents>
457
458
  </invoice>