recurly 0.4.4 → 0.4.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


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

Files changed (59) hide show
  1. data/lib/recurly/base.rb +4 -3
  2. data/lib/recurly/version.rb +1 -1
  3. data/spec/integration/billing_info_spec.rb +33 -0
  4. data/spec/vcr/account/accept-language-account/1301979678.yml +4 -4
  5. data/spec/vcr/account/close/1301979678.yml +11 -11
  6. data/spec/vcr/account/create/1301979678.yml +4 -4
  7. data/spec/vcr/account/create-blank/1301979678.yml +2 -2
  8. data/spec/vcr/account/create-duplicate/1301979678.yml +6 -6
  9. data/spec/vcr/account/create-min/1301979678.yml +4 -4
  10. data/spec/vcr/account/find/1301979678.yml +10 -10
  11. data/spec/vcr/account/list/1301979678.yml +74 -74
  12. data/spec/vcr/account/update/1301979678.yml +21 -21
  13. data/spec/vcr/billing/create/{1298594128.yml → 1302025874.yml} +20 -20
  14. data/spec/vcr/billing/destroy/{1298594128.yml → 1302025874.yml} +25 -25
  15. data/spec/vcr/billing/errors/1302025874.yml +126 -0
  16. data/spec/vcr/billing/find/{1298594128.yml → 1302025874.yml} +27 -27
  17. data/spec/vcr/billing/update/{1298594128.yml → 1302025874.yml} +27 -27
  18. data/spec/vcr/charge/create/1297746103.yml +20 -20
  19. data/spec/vcr/charge/delete-uninvoiced/1297746103.yml +23 -23
  20. data/spec/vcr/charge/list-all/1297746103.yml +31 -31
  21. data/spec/vcr/charge/list-invoiced/1297746103.yml +53 -53
  22. data/spec/vcr/charge/list-pending/1297746103.yml +31 -31
  23. data/spec/vcr/charge/lookup/1297746103.yml +16 -16
  24. data/spec/vcr/coupon/create/1299714521.yml +11 -11
  25. data/spec/vcr/coupon/destroy/1299714521.yml +10 -10
  26. data/spec/vcr/credit/create/1299714599.yml +16 -16
  27. data/spec/vcr/credit/delete/1299714599.yml +21 -21
  28. data/spec/vcr/credit/list/1299714599.yml +31 -31
  29. data/spec/vcr/credit/lookup/1299714599.yml +16 -16
  30. data/spec/vcr/invoice/create/1297746103.yml +30 -30
  31. data/spec/vcr/invoice/create-no-charges/1297746103.yml +10 -10
  32. data/spec/vcr/invoice/list/1297746103.yml +45 -45
  33. data/spec/vcr/invoice/lookup/1297746103.yml +32 -32
  34. data/spec/vcr/plan/all.yml +6 -6
  35. data/spec/vcr/plan/find.yml +6 -6
  36. data/spec/vcr/plan/update.yml +6 -6
  37. data/spec/vcr/subscription/addons/add/1301885121.yml +31 -31
  38. data/spec/vcr/subscription/addons/create/1301885121.yml +19 -19
  39. data/spec/vcr/subscription/addons/remove/1301885121.yml +31 -31
  40. data/spec/vcr/subscription/cancel/1301881900.yml +35 -35
  41. data/spec/vcr/subscription/cancel-with-code/1301881900.yml +43 -43
  42. data/spec/vcr/subscription/change1/1301881900.yml +31 -31
  43. data/spec/vcr/subscription/change2/1301881900.yml +31 -31
  44. data/spec/vcr/subscription/create/1301881900.yml +13 -13
  45. data/spec/vcr/subscription/find/1301881900.yml +19 -19
  46. data/spec/vcr/subscription/reactivate/1301881900.yml +36 -36
  47. data/spec/vcr/subscription/refund-full/1301881900.yml +28 -28
  48. data/spec/vcr/subscription/refund-none/1301881900.yml +28 -28
  49. data/spec/vcr/subscription/refund-partial/1301881900.yml +28 -28
  50. data/spec/vcr/transaction/all/1301883347.yml +55 -55
  51. data/spec/vcr/transaction/create-no-account/1301883347.yml +5 -5
  52. data/spec/vcr/transaction/create-with-account/1301883347.yml +13 -13
  53. data/spec/vcr/transaction/list-filled/1301883347.yml +45 -45
  54. data/spec/vcr/transaction/list-initial/1301883347.yml +13 -13
  55. data/spec/vcr/transaction/lookup/1301883347.yml +41 -41
  56. data/spec/vcr/transaction/refund/1301883347.yml +19 -19
  57. data/spec/vcr/transaction/void/1301883347.yml +26 -26
  58. data/spec/vcr/transparent/post-url/1301879142.yml +9 -9
  59. metadata +12 -10
@@ -6,7 +6,7 @@
6
6
  body: |
7
7
  <?xml version="1.0" encoding="UTF-8"?>
8
8
  <account>
9
- <account-code>billing-create-1298594128</account-code>
9
+ <account-code>billing-create-1302025874</account-code>
10
10
  <first-name>Verena</first-name>
11
11
  <last-name>Test</last-name>
12
12
  <email>verena@test.com</email>
@@ -37,15 +37,15 @@
37
37
  cache-control:
38
38
  - no-cache
39
39
  location:
40
- - http://app.recurly.local:3000/accounts/billing-create-1298594128
40
+ - http://app.recurly.local:3000/accounts/billing-create-1302025874
41
41
  x-runtime:
42
- - "273"
42
+ - "398"
43
43
  content-type:
44
44
  - application/xml; charset=utf-8
45
45
  content-length:
46
46
  - "583"
47
47
  set-cookie:
48
- - _recurly_session=202b1d84edf26a7b3ce400ddcd461e54; domain=.recurly.local; path=/; HttpOnly
48
+ - _recurly_session=c09ea7a1cf1c27e01286a1f620332c9d; domain=.recurly.local; path=/; HttpOnly
49
49
  connection:
50
50
  - close
51
51
  server:
@@ -53,8 +53,8 @@
53
53
  body: |
54
54
  <?xml version="1.0" encoding="UTF-8"?>
55
55
  <account>
56
- <id>billing-create-1298594128</id>
57
- <account_code>billing-create-1298594128</account_code>
56
+ <id>billing-create-1302025874</id>
57
+ <account_code>billing-create-1302025874</account_code>
58
58
  <username></username>
59
59
  <email>verena@test.com</email>
60
60
  <first_name>Verena</first_name>
@@ -62,8 +62,8 @@
62
62
  <company_name>Recurly Ruby Gem</company_name>
63
63
  <balance_in_cents type="integer">0</balance_in_cents>
64
64
  <closed type="boolean">false</closed>
65
- <hosted_login_token>bfe40ceed14d4d1097583019cdf96551</hosted_login_token>
66
- <created_at type="datetime">2011-04-05T05:14:19Z</created_at>
65
+ <hosted_login_token>0a6e51b0f170435b8c3721986de655f4</hosted_login_token>
66
+ <created_at type="datetime">2011-04-05T19:40:11Z</created_at>
67
67
  <state>active</state>
68
68
  </account>
69
69
 
@@ -71,7 +71,7 @@
71
71
  - !ruby/struct:VCR::HTTPInteraction
72
72
  request: !ruby/struct:VCR::Request
73
73
  method: :put
74
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/billing-create-1298594128/billing_info.xml
74
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/billing-create-1302025874/billing_info.xml
75
75
  body: |
76
76
  <?xml version="1.0" encoding="UTF-8"?>
77
77
  <billing-info>
@@ -107,17 +107,17 @@
107
107
  message: OK
108
108
  headers:
109
109
  x-runtime:
110
- - "1854"
110
+ - "1797"
111
111
  content-type:
112
112
  - application/xml; charset=utf-8
113
113
  etag:
114
- - "\"1a783db7a733a29a0039ed3531e3ef06\""
114
+ - "\"32a26c814c38f36faef639ac8fe18a0d\""
115
115
  cache-control:
116
116
  - private, max-age=0, must-revalidate
117
117
  content-length:
118
118
  - "640"
119
119
  set-cookie:
120
- - _recurly_session=53d4d45b206552c999557728f8e4fd51; domain=.recurly.local; path=/; HttpOnly
120
+ - _recurly_session=104432b981de5cfc7de77e6fd017836c; domain=.recurly.local; path=/; HttpOnly
121
121
  connection:
122
122
  - close
123
123
  server:
@@ -125,7 +125,7 @@
125
125
  body: |
126
126
  <?xml version="1.0" encoding="UTF-8"?>
127
127
  <billing_info>
128
- <account_code>billing-create-1298594128</account_code>
128
+ <account_code>billing-create-1302025874</account_code>
129
129
  <first_name>Verena</first_name>
130
130
  <last_name>Test</last_name>
131
131
  <address1>123 Test St</address1>
@@ -143,14 +143,14 @@
143
143
  <month type="integer">4</month>
144
144
  <year type="integer">2012</year>
145
145
  </credit_card>
146
- <updated_at type="datetime">2011-04-05T05:14:23Z</updated_at>
146
+ <updated_at type="datetime">2011-04-05T19:40:15Z</updated_at>
147
147
  </billing_info>
148
148
 
149
149
  http_version: "1.1"
150
150
  - !ruby/struct:VCR::HTTPInteraction
151
151
  request: !ruby/struct:VCR::Request
152
152
  method: :get
153
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/billing-create-1298594128/billing_info.xml
153
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/billing-create-1302025874/billing_info.xml
154
154
  body:
155
155
  headers:
156
156
  authorization:
@@ -169,17 +169,17 @@
169
169
  message: OK
170
170
  headers:
171
171
  x-runtime:
172
- - "236"
172
+ - "362"
173
173
  content-type:
174
174
  - application/xml; charset=utf-8
175
175
  etag:
176
- - "\"1a783db7a733a29a0039ed3531e3ef06\""
176
+ - "\"32a26c814c38f36faef639ac8fe18a0d\""
177
177
  cache-control:
178
178
  - private, max-age=0, must-revalidate
179
179
  content-length:
180
180
  - "640"
181
181
  set-cookie:
182
- - _recurly_session=755485197ecc0e56ef7c126661fa10e2; domain=.recurly.local; path=/; HttpOnly
182
+ - _recurly_session=18fd44813e79d18862e57a0e76d4b732; domain=.recurly.local; path=/; HttpOnly
183
183
  connection:
184
184
  - close
185
185
  server:
@@ -187,7 +187,7 @@
187
187
  body: |
188
188
  <?xml version="1.0" encoding="UTF-8"?>
189
189
  <billing_info>
190
- <account_code>billing-create-1298594128</account_code>
190
+ <account_code>billing-create-1302025874</account_code>
191
191
  <first_name>Verena</first_name>
192
192
  <last_name>Test</last_name>
193
193
  <address1>123 Test St</address1>
@@ -205,7 +205,7 @@
205
205
  <month type="integer">4</month>
206
206
  <year type="integer">2012</year>
207
207
  </credit_card>
208
- <updated_at type="datetime">2011-04-05T05:14:23Z</updated_at>
208
+ <updated_at type="datetime">2011-04-05T19:40:15Z</updated_at>
209
209
  </billing_info>
210
210
 
211
211
  http_version: "1.1"
@@ -6,7 +6,7 @@
6
6
  body: |
7
7
  <?xml version="1.0" encoding="UTF-8"?>
8
8
  <account>
9
- <account-code>billing-destroy-1298594128</account-code>
9
+ <account-code>billing-destroy-1302025874</account-code>
10
10
  <first-name>Verena</first-name>
11
11
  <last-name>Test</last-name>
12
12
  <email>verena@test.com</email>
@@ -37,15 +37,15 @@
37
37
  cache-control:
38
38
  - no-cache
39
39
  location:
40
- - http://app.recurly.local:3000/accounts/billing-destroy-1298594128
40
+ - http://app.recurly.local:3000/accounts/billing-destroy-1302025874
41
41
  x-runtime:
42
- - "423"
42
+ - "392"
43
43
  content-type:
44
44
  - application/xml; charset=utf-8
45
45
  content-length:
46
46
  - "585"
47
47
  set-cookie:
48
- - _recurly_session=c49c7036b3ff2d7b94430d2405e7f6da; domain=.recurly.local; path=/; HttpOnly
48
+ - _recurly_session=dc638412e526a9457056455bb17d263a; domain=.recurly.local; path=/; HttpOnly
49
49
  connection:
50
50
  - close
51
51
  server:
@@ -53,8 +53,8 @@
53
53
  body: |
54
54
  <?xml version="1.0" encoding="UTF-8"?>
55
55
  <account>
56
- <id>billing-destroy-1298594128</id>
57
- <account_code>billing-destroy-1298594128</account_code>
56
+ <id>billing-destroy-1302025874</id>
57
+ <account_code>billing-destroy-1302025874</account_code>
58
58
  <username></username>
59
59
  <email>verena@test.com</email>
60
60
  <first_name>Verena</first_name>
@@ -62,8 +62,8 @@
62
62
  <company_name>Recurly Ruby Gem</company_name>
63
63
  <balance_in_cents type="integer">0</balance_in_cents>
64
64
  <closed type="boolean">false</closed>
65
- <hosted_login_token>c152cfc1ad8344ca9f557f5f617fe7a7</hosted_login_token>
66
- <created_at type="datetime">2011-04-05T05:14:47Z</created_at>
65
+ <hosted_login_token>36aec34152124afe9610381b2c19506c</hosted_login_token>
66
+ <created_at type="datetime">2011-04-05T19:40:46Z</created_at>
67
67
  <state>active</state>
68
68
  </account>
69
69
 
@@ -71,7 +71,7 @@
71
71
  - !ruby/struct:VCR::HTTPInteraction
72
72
  request: !ruby/struct:VCR::Request
73
73
  method: :put
74
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/billing-destroy-1298594128/billing_info.xml
74
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/billing-destroy-1302025874/billing_info.xml
75
75
  body: |
76
76
  <?xml version="1.0" encoding="UTF-8"?>
77
77
  <billing-info>
@@ -107,17 +107,17 @@
107
107
  message: OK
108
108
  headers:
109
109
  x-runtime:
110
- - "2393"
110
+ - "1482"
111
111
  content-type:
112
112
  - application/xml; charset=utf-8
113
113
  etag:
114
- - "\"b46027b2cdb241190bd0d976722c07e7\""
114
+ - "\"5da95a208d5dbc5e5fca560fbf0f3589\""
115
115
  cache-control:
116
116
  - private, max-age=0, must-revalidate
117
117
  content-length:
118
118
  - "650"
119
119
  set-cookie:
120
- - _recurly_session=1b99987b129c002f8a13da02164e7bca; domain=.recurly.local; path=/; HttpOnly
120
+ - _recurly_session=189370751a4f798845ae78b94a93f642; domain=.recurly.local; path=/; HttpOnly
121
121
  connection:
122
122
  - close
123
123
  server:
@@ -125,7 +125,7 @@
125
125
  body: |
126
126
  <?xml version="1.0" encoding="UTF-8"?>
127
127
  <billing_info>
128
- <account_code>billing-destroy-1298594128</account_code>
128
+ <account_code>billing-destroy-1302025874</account_code>
129
129
  <first_name>Verena</first_name>
130
130
  <last_name>Test</last_name>
131
131
  <address1>500 South Central Blvd</address1>
@@ -143,14 +143,14 @@
143
143
  <month type="integer">4</month>
144
144
  <year type="integer">2012</year>
145
145
  </credit_card>
146
- <updated_at type="datetime">2011-04-05T05:14:51Z</updated_at>
146
+ <updated_at type="datetime">2011-04-05T19:40:50Z</updated_at>
147
147
  </billing_info>
148
148
 
149
149
  http_version: "1.1"
150
150
  - !ruby/struct:VCR::HTTPInteraction
151
151
  request: !ruby/struct:VCR::Request
152
152
  method: :get
153
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/billing-destroy-1298594128/billing_info.xml
153
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/billing-destroy-1302025874/billing_info.xml
154
154
  body:
155
155
  headers:
156
156
  authorization:
@@ -169,17 +169,17 @@
169
169
  message: OK
170
170
  headers:
171
171
  x-runtime:
172
- - "236"
172
+ - "364"
173
173
  content-type:
174
174
  - application/xml; charset=utf-8
175
175
  etag:
176
- - "\"b46027b2cdb241190bd0d976722c07e7\""
176
+ - "\"5da95a208d5dbc5e5fca560fbf0f3589\""
177
177
  cache-control:
178
178
  - private, max-age=0, must-revalidate
179
179
  content-length:
180
180
  - "650"
181
181
  set-cookie:
182
- - _recurly_session=45114df5ba07ee9dd6e085c31fdca6b2; domain=.recurly.local; path=/; HttpOnly
182
+ - _recurly_session=b9b348aed8506f97ba973c662ce904bb; domain=.recurly.local; path=/; HttpOnly
183
183
  connection:
184
184
  - close
185
185
  server:
@@ -187,7 +187,7 @@
187
187
  body: |
188
188
  <?xml version="1.0" encoding="UTF-8"?>
189
189
  <billing_info>
190
- <account_code>billing-destroy-1298594128</account_code>
190
+ <account_code>billing-destroy-1302025874</account_code>
191
191
  <first_name>Verena</first_name>
192
192
  <last_name>Test</last_name>
193
193
  <address1>500 South Central Blvd</address1>
@@ -205,14 +205,14 @@
205
205
  <month type="integer">4</month>
206
206
  <year type="integer">2012</year>
207
207
  </credit_card>
208
- <updated_at type="datetime">2011-04-05T05:14:51Z</updated_at>
208
+ <updated_at type="datetime">2011-04-05T19:40:50Z</updated_at>
209
209
  </billing_info>
210
210
 
211
211
  http_version: "1.1"
212
212
  - !ruby/struct:VCR::HTTPInteraction
213
213
  request: !ruby/struct:VCR::Request
214
214
  method: :delete
215
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/billing-destroy-1298594128/billing_info.xml
215
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/billing-destroy-1302025874/billing_info.xml
216
216
  body:
217
217
  headers:
218
218
  authorization:
@@ -231,13 +231,13 @@
231
231
  cache-control:
232
232
  - no-cache
233
233
  x-runtime:
234
- - "238"
234
+ - "363"
235
235
  content-type:
236
236
  - application/xml; charset=utf-8
237
237
  content-length:
238
238
  - "1"
239
239
  set-cookie:
240
- - _recurly_session=34606b29fedec317f602c6cdfdc65205; domain=.recurly.local; path=/; HttpOnly
240
+ - _recurly_session=fc1b0f65a525c2a118dbe43a39d146f6; domain=.recurly.local; path=/; HttpOnly
241
241
  connection:
242
242
  - close
243
243
  server:
@@ -247,7 +247,7 @@
247
247
  - !ruby/struct:VCR::HTTPInteraction
248
248
  request: !ruby/struct:VCR::Request
249
249
  method: :get
250
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/billing-destroy-1298594128/billing_info.xml
250
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/billing-destroy-1302025874/billing_info.xml
251
251
  body:
252
252
  headers:
253
253
  authorization:
@@ -272,7 +272,7 @@
272
272
  content-length:
273
273
  - "98"
274
274
  set-cookie:
275
- - _recurly_session=2e4e997358299093b1ae77f11696789b; domain=.recurly.local; path=/; HttpOnly
275
+ - _recurly_session=3de5a5a98016f998ea45e0f46647b2b8; domain=.recurly.local; path=/; HttpOnly
276
276
  connection:
277
277
  - close
278
278
  server:
@@ -0,0 +1,126 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :post
5
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts.xml
6
+ body: |
7
+ <?xml version="1.0" encoding="UTF-8"?>
8
+ <account>
9
+ <account-code>billing-errors-1302025874</account-code>
10
+ <first-name>Verena</first-name>
11
+ <last-name>Test</last-name>
12
+ <email>verena@test.com</email>
13
+ <company-name>Recurly Ruby Gem</company-name>
14
+ <billing-info>
15
+ <credit-card>
16
+ </credit-card>
17
+ </billing-info>
18
+ <accept-language type="yaml" nil="true"></accept-language>
19
+ </account>
20
+
21
+ headers:
22
+ authorization:
23
+ - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
24
+ content-type:
25
+ - application/xml
26
+ accept:
27
+ - "*/*"
28
+ user-agent:
29
+ - Ruby
30
+ connection:
31
+ - close
32
+ response: !ruby/struct:VCR::Response
33
+ status: !ruby/struct:VCR::ResponseStatus
34
+ code: 201
35
+ message: Created
36
+ headers:
37
+ cache-control:
38
+ - no-cache
39
+ location:
40
+ - http://app.recurly.local:3000/accounts/billing-errors-1302025874
41
+ x-runtime:
42
+ - "395"
43
+ content-type:
44
+ - application/xml; charset=utf-8
45
+ content-length:
46
+ - "583"
47
+ set-cookie:
48
+ - _recurly_session=54510a52a5c58e2dd01a0abe21ba6027; domain=.recurly.local; path=/; HttpOnly
49
+ connection:
50
+ - close
51
+ server:
52
+ - thin 1.2.7 codename No Hup
53
+ body: |
54
+ <?xml version="1.0" encoding="UTF-8"?>
55
+ <account>
56
+ <id>billing-errors-1302025874</id>
57
+ <account_code>billing-errors-1302025874</account_code>
58
+ <username></username>
59
+ <email>verena@test.com</email>
60
+ <first_name>Verena</first_name>
61
+ <last_name>Test</last_name>
62
+ <company_name>Recurly Ruby Gem</company_name>
63
+ <balance_in_cents type="integer">0</balance_in_cents>
64
+ <closed type="boolean">false</closed>
65
+ <hosted_login_token>aa2144bfc67f46d3a36c3adea8e2c12e</hosted_login_token>
66
+ <created_at type="datetime">2011-04-05T19:41:00Z</created_at>
67
+ <state>active</state>
68
+ </account>
69
+
70
+ http_version: "1.1"
71
+ - !ruby/struct:VCR::HTTPInteraction
72
+ request: !ruby/struct:VCR::Request
73
+ method: :put
74
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/billing-errors-1302025874/billing_info.xml
75
+ body: |
76
+ <?xml version="1.0" encoding="UTF-8"?>
77
+ <billing-info>
78
+ <first-name>Verena</first-name>
79
+ <last-name>Test</last-name>
80
+ <address1>123 Test St</address1>
81
+ <city>San Francisco</city>
82
+ <state>CA</state>
83
+ <zip>94115</zip>
84
+ <country>US</country>
85
+ <credit-card>
86
+ <number></number>
87
+ </credit-card>
88
+ </billing-info>
89
+
90
+ headers:
91
+ authorization:
92
+ - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
93
+ content-type:
94
+ - application/xml
95
+ accept:
96
+ - "*/*"
97
+ user-agent:
98
+ - Ruby
99
+ connection:
100
+ - close
101
+ response: !ruby/struct:VCR::Response
102
+ status: !ruby/struct:VCR::ResponseStatus
103
+ code: 422
104
+ message: ""
105
+ headers:
106
+ cache-control:
107
+ - no-cache
108
+ x-runtime:
109
+ - "737"
110
+ content-type:
111
+ - application/xml; charset=utf-8
112
+ content-length:
113
+ - "183"
114
+ set-cookie:
115
+ - _recurly_session=accac18fba05be16b7f3ce81b05afb7f; domain=.recurly.local; path=/; HttpOnly
116
+ connection:
117
+ - close
118
+ server:
119
+ - thin 1.2.7 codename No Hup
120
+ body: |
121
+ <?xml version="1.0" encoding="UTF-8"?>
122
+ <errors>
123
+ <error code="no_billing_information">Your billing information is not on file. Please add your billing information.</error>
124
+ </errors>
125
+
126
+ http_version: "1.1"
@@ -6,7 +6,7 @@
6
6
  body: |
7
7
  <?xml version="1.0" encoding="UTF-8"?>
8
8
  <account>
9
- <account-code>billing-find-1298594128</account-code>
9
+ <account-code>billing-find-1302025874</account-code>
10
10
  <first-name>Verena</first-name>
11
11
  <last-name>Test</last-name>
12
12
  <email>verena@test.com</email>
@@ -37,15 +37,15 @@
37
37
  cache-control:
38
38
  - no-cache
39
39
  location:
40
- - http://app.recurly.local:3000/accounts/billing-find-1298594128
40
+ - http://app.recurly.local:3000/accounts/billing-find-1302025874
41
41
  x-runtime:
42
- - "264"
42
+ - "404"
43
43
  content-type:
44
44
  - application/xml; charset=utf-8
45
45
  content-length:
46
46
  - "579"
47
47
  set-cookie:
48
- - _recurly_session=7362c511251390ef45f15c6e20382512; domain=.recurly.local; path=/; HttpOnly
48
+ - _recurly_session=42e4bf0e3c6488d307e3d610beaaae4a; domain=.recurly.local; path=/; HttpOnly
49
49
  connection:
50
50
  - close
51
51
  server:
@@ -53,8 +53,8 @@
53
53
  body: |
54
54
  <?xml version="1.0" encoding="UTF-8"?>
55
55
  <account>
56
- <id>billing-find-1298594128</id>
57
- <account_code>billing-find-1298594128</account_code>
56
+ <id>billing-find-1302025874</id>
57
+ <account_code>billing-find-1302025874</account_code>
58
58
  <username></username>
59
59
  <email>verena@test.com</email>
60
60
  <first_name>Verena</first_name>
@@ -62,8 +62,8 @@
62
62
  <company_name>Recurly Ruby Gem</company_name>
63
63
  <balance_in_cents type="integer">0</balance_in_cents>
64
64
  <closed type="boolean">false</closed>
65
- <hosted_login_token>1c30fe22e0c54f15b0e08bad77c10b13</hosted_login_token>
66
- <created_at type="datetime">2011-04-05T05:14:38Z</created_at>
65
+ <hosted_login_token>4729c1ba137c4845bf45e1f80da8f949</hosted_login_token>
66
+ <created_at type="datetime">2011-04-05T19:40:34Z</created_at>
67
67
  <state>active</state>
68
68
  </account>
69
69
 
@@ -71,7 +71,7 @@
71
71
  - !ruby/struct:VCR::HTTPInteraction
72
72
  request: !ruby/struct:VCR::Request
73
73
  method: :put
74
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/billing-find-1298594128/billing_info.xml
74
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/billing-find-1302025874/billing_info.xml
75
75
  body: |
76
76
  <?xml version="1.0" encoding="UTF-8"?>
77
77
  <billing-info>
@@ -88,7 +88,7 @@
88
88
  <month type="integer">4</month>
89
89
  <verification-value>123</verification-value>
90
90
  </credit-card>
91
- <account-code>billing-find-1298594128</account-code>
91
+ <account-code>billing-find-1302025874</account-code>
92
92
  </billing-info>
93
93
 
94
94
  headers:
@@ -108,17 +108,17 @@
108
108
  message: OK
109
109
  headers:
110
110
  x-runtime:
111
- - "2008"
111
+ - "1760"
112
112
  content-type:
113
113
  - application/xml; charset=utf-8
114
114
  etag:
115
- - "\"000c991da1657a3e2a01b42b850bb9bb\""
115
+ - "\"4f4aa40795d59f5dbc7886c0d0e51074\""
116
116
  cache-control:
117
117
  - private, max-age=0, must-revalidate
118
118
  content-length:
119
119
  - "638"
120
120
  set-cookie:
121
- - _recurly_session=9081b7c39bdb0048361afd7a1e1dfa90; domain=.recurly.local; path=/; HttpOnly
121
+ - _recurly_session=5282ea3901fa742112ef2919d52a06b7; domain=.recurly.local; path=/; HttpOnly
122
122
  connection:
123
123
  - close
124
124
  server:
@@ -126,7 +126,7 @@
126
126
  body: |
127
127
  <?xml version="1.0" encoding="UTF-8"?>
128
128
  <billing_info>
129
- <account_code>billing-find-1298594128</account_code>
129
+ <account_code>billing-find-1302025874</account_code>
130
130
  <first_name>Verena</first_name>
131
131
  <last_name>Test</last_name>
132
132
  <address1>123 Test St</address1>
@@ -144,14 +144,14 @@
144
144
  <month type="integer">4</month>
145
145
  <year type="integer">2012</year>
146
146
  </credit_card>
147
- <updated_at type="datetime">2011-04-05T05:14:41Z</updated_at>
147
+ <updated_at type="datetime">2011-04-05T19:40:38Z</updated_at>
148
148
  </billing_info>
149
149
 
150
150
  http_version: "1.1"
151
151
  - !ruby/struct:VCR::HTTPInteraction
152
152
  request: !ruby/struct:VCR::Request
153
153
  method: :get
154
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/billing-find-1298594128/billing_info.xml
154
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/billing-find-1302025874/billing_info.xml
155
155
  body:
156
156
  headers:
157
157
  authorization:
@@ -170,17 +170,17 @@
170
170
  message: OK
171
171
  headers:
172
172
  x-runtime:
173
- - "239"
173
+ - "360"
174
174
  content-type:
175
175
  - application/xml; charset=utf-8
176
176
  etag:
177
- - "\"000c991da1657a3e2a01b42b850bb9bb\""
177
+ - "\"4f4aa40795d59f5dbc7886c0d0e51074\""
178
178
  cache-control:
179
179
  - private, max-age=0, must-revalidate
180
180
  content-length:
181
181
  - "638"
182
182
  set-cookie:
183
- - _recurly_session=4da8f0fc90bd900abe0f88b9a5d22bfa; domain=.recurly.local; path=/; HttpOnly
183
+ - _recurly_session=02496d3138085654345bc5b75302b43f; domain=.recurly.local; path=/; HttpOnly
184
184
  connection:
185
185
  - close
186
186
  server:
@@ -188,7 +188,7 @@
188
188
  body: |
189
189
  <?xml version="1.0" encoding="UTF-8"?>
190
190
  <billing_info>
191
- <account_code>billing-find-1298594128</account_code>
191
+ <account_code>billing-find-1302025874</account_code>
192
192
  <first_name>Verena</first_name>
193
193
  <last_name>Test</last_name>
194
194
  <address1>123 Test St</address1>
@@ -206,14 +206,14 @@
206
206
  <month type="integer">4</month>
207
207
  <year type="integer">2012</year>
208
208
  </credit_card>
209
- <updated_at type="datetime">2011-04-05T05:14:41Z</updated_at>
209
+ <updated_at type="datetime">2011-04-05T19:40:38Z</updated_at>
210
210
  </billing_info>
211
211
 
212
212
  http_version: "1.1"
213
213
  - !ruby/struct:VCR::HTTPInteraction
214
214
  request: !ruby/struct:VCR::Request
215
215
  method: :get
216
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/billing-find-1298594128/billing_info.xml
216
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/billing-find-1302025874/billing_info.xml
217
217
  body:
218
218
  headers:
219
219
  authorization:
@@ -232,17 +232,17 @@
232
232
  message: OK
233
233
  headers:
234
234
  x-runtime:
235
- - "238"
235
+ - "358"
236
236
  content-type:
237
237
  - application/xml; charset=utf-8
238
238
  etag:
239
- - "\"000c991da1657a3e2a01b42b850bb9bb\""
239
+ - "\"4f4aa40795d59f5dbc7886c0d0e51074\""
240
240
  cache-control:
241
241
  - private, max-age=0, must-revalidate
242
242
  content-length:
243
243
  - "638"
244
244
  set-cookie:
245
- - _recurly_session=654821834f7d3d783c28e8b18d4b6527; domain=.recurly.local; path=/; HttpOnly
245
+ - _recurly_session=8525b291edfb65c4aeae5282e04c39c8; domain=.recurly.local; path=/; HttpOnly
246
246
  connection:
247
247
  - close
248
248
  server:
@@ -250,7 +250,7 @@
250
250
  body: |
251
251
  <?xml version="1.0" encoding="UTF-8"?>
252
252
  <billing_info>
253
- <account_code>billing-find-1298594128</account_code>
253
+ <account_code>billing-find-1302025874</account_code>
254
254
  <first_name>Verena</first_name>
255
255
  <last_name>Test</last_name>
256
256
  <address1>123 Test St</address1>
@@ -268,7 +268,7 @@
268
268
  <month type="integer">4</month>
269
269
  <year type="integer">2012</year>
270
270
  </credit_card>
271
- <updated_at type="datetime">2011-04-05T05:14:41Z</updated_at>
271
+ <updated_at type="datetime">2011-04-05T19:40:38Z</updated_at>
272
272
  </billing_info>
273
273
 
274
274
  http_version: "1.1"