recurly 0.4.2 → 0.4.3

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 (71) hide show
  1. data/lib/recurly.rb +1 -0
  2. data/lib/recurly/base.rb +92 -12
  3. data/lib/recurly/formats/xml_with_errors.rb +132 -0
  4. data/lib/recurly/version.rb +1 -1
  5. data/spec/config/recurly.yml +4 -4
  6. data/spec/integration/transaction_spec.rb +4 -3
  7. data/spec/vcr/account/accept-language-account/1297746103.yml +6 -6
  8. data/spec/vcr/account/close/1297746103.yml +17 -17
  9. data/spec/vcr/account/create-blank/1297746103.yml +4 -4
  10. data/spec/vcr/account/create-duplicate/1297746103.yml +10 -10
  11. data/spec/vcr/account/create-min/1297746103.yml +6 -6
  12. data/spec/vcr/account/create/1297746103.yml +6 -6
  13. data/spec/vcr/account/find/1297746103.yml +16 -16
  14. data/spec/vcr/account/list/1297746103.yml +204 -156
  15. data/spec/vcr/account/update/1297746103.yml +29 -29
  16. data/spec/vcr/billing/create/1298594128.yml +21 -21
  17. data/spec/vcr/billing/destroy/1298594128.yml +28 -28
  18. data/spec/vcr/billing/find/1298594128.yml +28 -28
  19. data/spec/vcr/billing/update/1298594128.yml +29 -29
  20. data/spec/vcr/charge/create/1297746103.yml +29 -29
  21. data/spec/vcr/charge/delete-uninvoiced/1297746103.yml +32 -32
  22. data/spec/vcr/charge/list-all/1297746103.yml +41 -41
  23. data/spec/vcr/charge/list-invoiced/1297746103.yml +68 -68
  24. data/spec/vcr/charge/list-pending/1297746103.yml +41 -41
  25. data/spec/vcr/charge/lookup/1297746103.yml +21 -21
  26. data/spec/vcr/coupon/create/1299714521.yml +25 -25
  27. data/spec/vcr/coupon/destroy/1299714521.yml +22 -22
  28. data/spec/vcr/credit/create/1299714599.yml +21 -21
  29. data/spec/vcr/credit/delete/1299714599.yml +28 -28
  30. data/spec/vcr/credit/list/1299714599.yml +41 -41
  31. data/spec/vcr/credit/lookup/1299714599.yml +21 -21
  32. data/spec/vcr/invoice/create-no-charges/1297746103.yml +18 -18
  33. data/spec/vcr/invoice/create/1297746103.yml +42 -42
  34. data/spec/vcr/invoice/list/1297746103.yml +61 -61
  35. data/spec/vcr/invoice/lookup/1297746103.yml +43 -43
  36. data/spec/vcr/plan/all.yml +65 -52
  37. data/spec/vcr/plan/find.yml +58 -34
  38. data/spec/vcr/plan/update.yml +28 -29
  39. data/spec/vcr/subscription/addons/add/1297746103.yml +293 -335
  40. data/spec/vcr/subscription/addons/add/1301884213.yml +480 -0
  41. data/spec/vcr/subscription/addons/create/1297746103.yml +134 -335
  42. data/spec/vcr/subscription/addons/create/1301884213.yml +321 -0
  43. data/spec/vcr/subscription/addons/remove/1297746103.yml +262 -335
  44. data/spec/vcr/subscription/addons/remove/1301884213.yml +449 -0
  45. data/spec/vcr/subscription/cancel-with-code/{1297746103.yml → 1301881900.yml} +104 -92
  46. data/spec/vcr/subscription/cancel/{1297746103.yml → 1301881900.yml} +90 -78
  47. data/spec/vcr/subscription/change1/{1297746103.yml → 1301881900.yml} +86 -74
  48. data/spec/vcr/subscription/change2/{1297746103.yml → 1301881900.yml} +86 -74
  49. data/spec/vcr/subscription/create/{1297746103.yml → 1301881900.yml} +50 -38
  50. data/spec/vcr/subscription/find/{1297746103.yml → 1301881900.yml} +62 -50
  51. data/spec/vcr/subscription/reactivate/{1297746103.yml → 1301881900.yml} +95 -83
  52. data/spec/vcr/subscription/refund-full/{1297746103.yml → 1301881900.yml} +79 -67
  53. data/spec/vcr/subscription/refund-none/{1297746103.yml → 1301881900.yml} +79 -67
  54. data/spec/vcr/subscription/refund-partial/{1297746103.yml → 1301881900.yml} +79 -67
  55. data/spec/vcr/transaction/all/1301883347.yml +387 -0
  56. data/spec/vcr/transaction/create-no-account/{1300473500.yml → 1301883347.yml} +18 -18
  57. data/spec/vcr/transaction/create-with-account/{1300473500.yml → 1301883347.yml} +37 -37
  58. data/spec/vcr/transaction/list-filled/{1300473500.yml → 1301883347.yml} +169 -169
  59. data/spec/vcr/transaction/list-initial/{1300473500.yml → 1301883347.yml} +39 -39
  60. data/spec/vcr/transaction/lookup/{1300473500.yml → 1301883347.yml} +119 -119
  61. data/spec/vcr/transaction/refund/{1300473500.yml → 1301883347.yml} +53 -53
  62. data/spec/vcr/transaction/void/1301883347.yml +365 -0
  63. data/spec/vcr/transparent/post-url/{1300476053.yml → 1301879142.yml} +19 -19
  64. metadata +66 -58
  65. data/spec/vcr/transaction/all/1300473500.yml +0 -387
  66. data/spec/vcr/transaction/void/1300473500.yml +0 -620
  67. data/spec/vcr/transparent/post-url/1300475927.yml +0 -41
  68. data/spec/vcr/transparent/post-url/1300475952.yml +0 -41
  69. data/spec/vcr/transparent/post-url/1300476034.yml +0 -125
  70. data/spec/vcr/transparent/post-url/1300476102.yml +0 -125
  71. data/spec/vcr/transparent/post-url/1300476126.yml +0 -125
@@ -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-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts.xml
5
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts.xml
6
6
  body: |
7
7
  <?xml version="1.0" encoding="UTF-8"?>
8
8
  <account>
@@ -20,7 +20,7 @@
20
20
 
21
21
  headers:
22
22
  authorization:
23
- - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
23
+ - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
24
24
  content-type:
25
25
  - application/xml
26
26
  accept:
@@ -39,13 +39,13 @@
39
39
  location:
40
40
  - http://app.recurly.local:3000/accounts/billing-find-1298594128
41
41
  x-runtime:
42
- - "517"
42
+ - "416"
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=1505756d8c971b5a0b8062a34cae3e15; domain=.recurly.local; path=/; HttpOnly
48
+ - _recurly_session=fcd13745ba96fa34e1a13b17055ecf49; domain=.recurly.local; path=/; HttpOnly
49
49
  connection:
50
50
  - close
51
51
  server:
@@ -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>1d705101bab1441692800835bd1e2f3e</hosted_login_token>
66
- <created_at type="datetime">2011-03-18T18:48:30Z</created_at>
65
+ <hosted_login_token>14394c4faf4549c8a3573428c6436274</hosted_login_token>
66
+ <created_at type="datetime">2011-04-04T02:19:19Z</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-123%40litle.com:82a98ee0c1c2495789775177babfadb7@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-1298594128/billing_info.xml
75
75
  body: |
76
76
  <?xml version="1.0" encoding="UTF-8"?>
77
77
  <billing-info>
@@ -85,7 +85,7 @@
85
85
  <credit-card>
86
86
  <number>4111111111111111</number>
87
87
  <year type="integer">2012</year>
88
- <month type="integer">3</month>
88
+ <month type="integer">4</month>
89
89
  <verification-value>123</verification-value>
90
90
  </credit-card>
91
91
  <account-code>billing-find-1298594128</account-code>
@@ -93,7 +93,7 @@
93
93
 
94
94
  headers:
95
95
  authorization:
96
- - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
96
+ - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
97
97
  content-type:
98
98
  - application/xml
99
99
  accept:
@@ -108,17 +108,17 @@
108
108
  message: OK
109
109
  headers:
110
110
  x-runtime:
111
- - "6314"
111
+ - "2277"
112
112
  content-type:
113
113
  - application/xml; charset=utf-8
114
114
  etag:
115
- - "\"e3b7134ae916e5e18a320c1034e0a2da\""
115
+ - "\"9033f2aa382ff9ddc29578c631252c8f\""
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=cb8f5d44fac916fc5e5bf80fd461a944; domain=.recurly.local; path=/; HttpOnly
121
+ - _recurly_session=fc6b3d1a8312e7560b967e4daa680e86; domain=.recurly.local; path=/; HttpOnly
122
122
  connection:
123
123
  - close
124
124
  server:
@@ -141,21 +141,21 @@
141
141
  <credit_card>
142
142
  <type>visa</type>
143
143
  <last_four>1111</last_four>
144
- <month type="integer">3</month>
144
+ <month type="integer">4</month>
145
145
  <year type="integer">2012</year>
146
146
  </credit_card>
147
- <updated_at type="datetime">2011-03-18T18:48:38Z</updated_at>
147
+ <updated_at type="datetime">2011-04-04T02:19:24Z</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-123%40litle.com:82a98ee0c1c2495789775177babfadb7@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-1298594128/billing_info.xml
155
155
  body:
156
156
  headers:
157
157
  authorization:
158
- - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
158
+ - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
159
159
  accept:
160
160
  - application/xml
161
161
  accept-encoding:
@@ -170,17 +170,17 @@
170
170
  message: OK
171
171
  headers:
172
172
  x-runtime:
173
- - "296"
173
+ - "112"
174
174
  content-type:
175
175
  - application/xml; charset=utf-8
176
176
  etag:
177
- - "\"e3b7134ae916e5e18a320c1034e0a2da\""
177
+ - "\"9033f2aa382ff9ddc29578c631252c8f\""
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=3204e1565e3e132e35cddd4ade53388d; domain=.recurly.local; path=/; HttpOnly
183
+ - _recurly_session=54272f2187cf3c810d948745648cb666; domain=.recurly.local; path=/; HttpOnly
184
184
  connection:
185
185
  - close
186
186
  server:
@@ -203,21 +203,21 @@
203
203
  <credit_card>
204
204
  <type>visa</type>
205
205
  <last_four>1111</last_four>
206
- <month type="integer">3</month>
206
+ <month type="integer">4</month>
207
207
  <year type="integer">2012</year>
208
208
  </credit_card>
209
- <updated_at type="datetime">2011-03-18T18:48:38Z</updated_at>
209
+ <updated_at type="datetime">2011-04-04T02:19:24Z</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-123%40litle.com:82a98ee0c1c2495789775177babfadb7@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-1298594128/billing_info.xml
217
217
  body:
218
218
  headers:
219
219
  authorization:
220
- - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
220
+ - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
221
221
  accept:
222
222
  - application/xml
223
223
  accept-encoding:
@@ -232,17 +232,17 @@
232
232
  message: OK
233
233
  headers:
234
234
  x-runtime:
235
- - "270"
235
+ - "341"
236
236
  content-type:
237
237
  - application/xml; charset=utf-8
238
238
  etag:
239
- - "\"e3b7134ae916e5e18a320c1034e0a2da\""
239
+ - "\"9033f2aa382ff9ddc29578c631252c8f\""
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=b521f6c9c1c6af5a457459982d3598bd; domain=.recurly.local; path=/; HttpOnly
245
+ - _recurly_session=6ca6a0e6cdf16687f4a5f653f0415074; domain=.recurly.local; path=/; HttpOnly
246
246
  connection:
247
247
  - close
248
248
  server:
@@ -265,10 +265,10 @@
265
265
  <credit_card>
266
266
  <type>visa</type>
267
267
  <last_four>1111</last_four>
268
- <month type="integer">3</month>
268
+ <month type="integer">4</month>
269
269
  <year type="integer">2012</year>
270
270
  </credit_card>
271
- <updated_at type="datetime">2011-03-18T18:48:38Z</updated_at>
271
+ <updated_at type="datetime">2011-04-04T02:19:24Z</updated_at>
272
272
  </billing_info>
273
273
 
274
274
  http_version: "1.1"
@@ -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-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts.xml
5
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts.xml
6
6
  body: |
7
7
  <?xml version="1.0" encoding="UTF-8"?>
8
8
  <account>
@@ -20,7 +20,7 @@
20
20
 
21
21
  headers:
22
22
  authorization:
23
- - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
23
+ - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
24
24
  content-type:
25
25
  - application/xml
26
26
  accept:
@@ -39,13 +39,13 @@
39
39
  location:
40
40
  - http://app.recurly.local:3000/accounts/billing-update-1298594128
41
41
  x-runtime:
42
- - "308"
42
+ - "427"
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=60da6540dc78c51d95100b7ef866f800; domain=.recurly.local; path=/; HttpOnly
48
+ - _recurly_session=a4431fcf5deabc609c4cbbbaf7b2e27e; domain=.recurly.local; path=/; HttpOnly
49
49
  connection:
50
50
  - close
51
51
  server:
@@ -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>f939a4e2313645b787685047e9a7a006</hosted_login_token>
66
- <created_at type="datetime">2011-03-18T18:48:09Z</created_at>
65
+ <hosted_login_token>befbe3c9cf154b648b567a081924dc16</hosted_login_token>
66
+ <created_at type="datetime">2011-04-04T02:19:05Z</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-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/billing-update-1298594128/billing_info.xml
74
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/billing-update-1298594128/billing_info.xml
75
75
  body: |
76
76
  <?xml version="1.0" encoding="UTF-8"?>
77
77
  <billing-info>
@@ -85,7 +85,7 @@
85
85
  <credit-card>
86
86
  <number>4111111111111111</number>
87
87
  <year type="integer">2012</year>
88
- <month type="integer">3</month>
88
+ <month type="integer">4</month>
89
89
  <verification-value>123</verification-value>
90
90
  </credit-card>
91
91
  <account-code>billing-update-1298594128</account-code>
@@ -93,7 +93,7 @@
93
93
 
94
94
  headers:
95
95
  authorization:
96
- - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
96
+ - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
97
97
  content-type:
98
98
  - application/xml
99
99
  accept:
@@ -108,17 +108,17 @@
108
108
  message: OK
109
109
  headers:
110
110
  x-runtime:
111
- - "6304"
111
+ - "2063"
112
112
  content-type:
113
113
  - application/xml; charset=utf-8
114
114
  etag:
115
- - "\"bad0320e0c2ce86084137cc852165cb8\""
115
+ - "\"bc276ada7a1435dfa31213fd1274bc2a\""
116
116
  cache-control:
117
117
  - private, max-age=0, must-revalidate
118
118
  content-length:
119
119
  - "640"
120
120
  set-cookie:
121
- - _recurly_session=0324ad3080f8f38caa139860d7aa5f46; domain=.recurly.local; path=/; HttpOnly
121
+ - _recurly_session=8b9d1e44413d06577d0378442db8caa2; domain=.recurly.local; path=/; HttpOnly
122
122
  connection:
123
123
  - close
124
124
  server:
@@ -141,17 +141,17 @@
141
141
  <credit_card>
142
142
  <type>visa</type>
143
143
  <last_four>1111</last_four>
144
- <month type="integer">3</month>
144
+ <month type="integer">4</month>
145
145
  <year type="integer">2012</year>
146
146
  </credit_card>
147
- <updated_at type="datetime">2011-03-18T18:48:17Z</updated_at>
147
+ <updated_at type="datetime">2011-04-04T02:19:10Z</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: :put
154
- uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/billing-update-1298594128/billing_info.xml
154
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/billing-update-1298594128/billing_info.xml
155
155
  body: |
156
156
  <?xml version="1.0" encoding="UTF-8"?>
157
157
  <billing-info>
@@ -165,14 +165,14 @@
165
165
  <credit-card>
166
166
  <number>4111111111111111</number>
167
167
  <year type="integer">2012</year>
168
- <month type="integer">3</month>
168
+ <month type="integer">4</month>
169
169
  <verification-value>123</verification-value>
170
170
  </credit-card>
171
171
  </billing-info>
172
172
 
173
173
  headers:
174
174
  authorization:
175
- - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
175
+ - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
176
176
  content-type:
177
177
  - application/xml
178
178
  accept:
@@ -187,17 +187,17 @@
187
187
  message: OK
188
188
  headers:
189
189
  x-runtime:
190
- - "7011"
190
+ - "2589"
191
191
  content-type:
192
192
  - application/xml; charset=utf-8
193
193
  etag:
194
- - "\"15984c324407ef4d9d148911bf6bd838\""
194
+ - "\"e0e918fed655936503590bdd7ecd0621\""
195
195
  cache-control:
196
196
  - private, max-age=0, must-revalidate
197
197
  content-length:
198
198
  - "652"
199
199
  set-cookie:
200
- - _recurly_session=fc39b02c6b80b4d9d89768bcc1356deb; domain=.recurly.local; path=/; HttpOnly
200
+ - _recurly_session=673e9fb21f68148a8b974593e0b2ccf3; domain=.recurly.local; path=/; HttpOnly
201
201
  connection:
202
202
  - close
203
203
  server:
@@ -220,21 +220,21 @@
220
220
  <credit_card>
221
221
  <type>visa</type>
222
222
  <last_four>1111</last_four>
223
- <month type="integer">3</month>
223
+ <month type="integer">4</month>
224
224
  <year type="integer">2012</year>
225
225
  </credit_card>
226
- <updated_at type="datetime">2011-03-18T18:48:26Z</updated_at>
226
+ <updated_at type="datetime">2011-04-04T02:19:15Z</updated_at>
227
227
  </billing_info>
228
228
 
229
229
  http_version: "1.1"
230
230
  - !ruby/struct:VCR::HTTPInteraction
231
231
  request: !ruby/struct:VCR::Request
232
232
  method: :get
233
- uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/billing-update-1298594128/billing_info.xml
233
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/billing-update-1298594128/billing_info.xml
234
234
  body:
235
235
  headers:
236
236
  authorization:
237
- - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
237
+ - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
238
238
  accept:
239
239
  - application/xml
240
240
  accept-encoding:
@@ -249,17 +249,17 @@
249
249
  message: OK
250
250
  headers:
251
251
  x-runtime:
252
- - "320"
252
+ - "109"
253
253
  content-type:
254
254
  - application/xml; charset=utf-8
255
255
  etag:
256
- - "\"15984c324407ef4d9d148911bf6bd838\""
256
+ - "\"e0e918fed655936503590bdd7ecd0621\""
257
257
  cache-control:
258
258
  - private, max-age=0, must-revalidate
259
259
  content-length:
260
260
  - "652"
261
261
  set-cookie:
262
- - _recurly_session=f20807b1f99a177bad483c4ffe2b6496; domain=.recurly.local; path=/; HttpOnly
262
+ - _recurly_session=14a0774c3e068f6fc23c41dff23a4995; domain=.recurly.local; path=/; HttpOnly
263
263
  connection:
264
264
  - close
265
265
  server:
@@ -282,10 +282,10 @@
282
282
  <credit_card>
283
283
  <type>visa</type>
284
284
  <last_four>1111</last_four>
285
- <month type="integer">3</month>
285
+ <month type="integer">4</month>
286
286
  <year type="integer">2012</year>
287
287
  </credit_card>
288
- <updated_at type="datetime">2011-03-18T18:48:26Z</updated_at>
288
+ <updated_at type="datetime">2011-04-04T02:19:15Z</updated_at>
289
289
  </billing_info>
290
290
 
291
291
  http_version: "1.1"
@@ -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-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts.xml
5
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts.xml
6
6
  body: |
7
7
  <?xml version="1.0" encoding="UTF-8"?>
8
8
  <account>
@@ -20,7 +20,7 @@
20
20
 
21
21
  headers:
22
22
  authorization:
23
- - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
23
+ - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
24
24
  content-type:
25
25
  - application/xml
26
26
  accept:
@@ -39,13 +39,13 @@
39
39
  location:
40
40
  - http://app.recurly.local:3000/accounts/charge-create-1297746103
41
41
  x-runtime:
42
- - "314"
42
+ - "387"
43
43
  content-type:
44
44
  - application/xml; charset=utf-8
45
45
  content-length:
46
46
  - "581"
47
47
  set-cookie:
48
- - _recurly_session=d2e0d7fe7583ce1d8aab83e47300fb3b; domain=.recurly.local; path=/; HttpOnly
48
+ - _recurly_session=6c995c121e35f35a45e9eca77439ecc0; domain=.recurly.local; path=/; HttpOnly
49
49
  connection:
50
50
  - close
51
51
  server:
@@ -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>23f5a239eaef4f84883383301751c34c</hosted_login_token>
66
- <created_at type="datetime">2011-03-18T18:49:35Z</created_at>
65
+ <hosted_login_token>aa9d0a9f4ac24bb58b9b63f4932e1734</hosted_login_token>
66
+ <created_at type="datetime">2011-04-04T02:20:27Z</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-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/charge-create-1297746103/billing_info.xml
74
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/charge-create-1297746103/billing_info.xml
75
75
  body: |
76
76
  <?xml version="1.0" encoding="UTF-8"?>
77
77
  <billing-info>
@@ -85,7 +85,7 @@
85
85
  <credit-card>
86
86
  <number>4111111111111111</number>
87
87
  <year type="integer">2012</year>
88
- <month type="integer">3</month>
88
+ <month type="integer">4</month>
89
89
  <verification-value>123</verification-value>
90
90
  </credit-card>
91
91
  <account-code>charge-create-1297746103</account-code>
@@ -93,7 +93,7 @@
93
93
 
94
94
  headers:
95
95
  authorization:
96
- - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
96
+ - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
97
97
  content-type:
98
98
  - application/xml
99
99
  accept:
@@ -108,17 +108,17 @@
108
108
  message: OK
109
109
  headers:
110
110
  x-runtime:
111
- - "6477"
111
+ - "1981"
112
112
  content-type:
113
113
  - application/xml; charset=utf-8
114
114
  etag:
115
- - "\"164f9d1e404e42e66fa1e50c5344e065\""
115
+ - "\"56f0eaca5a6c621eb930ced259f6df1d\""
116
116
  cache-control:
117
117
  - private, max-age=0, must-revalidate
118
118
  content-length:
119
119
  - "639"
120
120
  set-cookie:
121
- - _recurly_session=b8f3f3f6f8615269ead1be844183eee4; domain=.recurly.local; path=/; HttpOnly
121
+ - _recurly_session=094ae4b4f21b534a373a841cc8af0d66; domain=.recurly.local; path=/; HttpOnly
122
122
  connection:
123
123
  - close
124
124
  server:
@@ -141,17 +141,17 @@
141
141
  <credit_card>
142
142
  <type>visa</type>
143
143
  <last_four>1111</last_four>
144
- <month type="integer">3</month>
144
+ <month type="integer">4</month>
145
145
  <year type="integer">2012</year>
146
146
  </credit_card>
147
- <updated_at type="datetime">2011-03-18T18:49:44Z</updated_at>
147
+ <updated_at type="datetime">2011-04-04T02:20:31Z</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: :post
154
- uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/charge-create-1297746103/charges.xml
154
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/charge-create-1297746103/charges.xml
155
155
  body: |
156
156
  <?xml version="1.0" encoding="UTF-8"?>
157
157
  <charge>
@@ -161,7 +161,7 @@
161
161
 
162
162
  headers:
163
163
  authorization:
164
- - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
164
+ - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
165
165
  content-type:
166
166
  - application/xml
167
167
  accept:
@@ -178,13 +178,13 @@
178
178
  cache-control:
179
179
  - no-cache
180
180
  x-runtime:
181
- - "292"
181
+ - "315"
182
182
  content-type:
183
183
  - application/xml; charset=utf-8
184
184
  content-length:
185
185
  - "524"
186
186
  set-cookie:
187
- - _recurly_session=e04cbd83c46e4d24b830e28b17bb3e9c; domain=.recurly.local; path=/; HttpOnly
187
+ - _recurly_session=e12a16c0bea6f4d7dcb20d1b1095b23f; domain=.recurly.local; path=/; HttpOnly
188
188
  connection:
189
189
  - close
190
190
  server:
@@ -192,25 +192,25 @@
192
192
  body: |
193
193
  <?xml version="1.0" encoding="UTF-8"?>
194
194
  <charge type="charge">
195
- <id>8172b73143634d32a25f17dba6ff66d7</id>
195
+ <id>fbe8f5fbcfe34842b36440470a8bffd6</id>
196
196
  <account_code>charge-create-1297746103</account_code>
197
197
  <amount_in_cents type="integer">250</amount_in_cents>
198
- <start_date type="datetime">2011-03-18T18:49:46Z</start_date>
198
+ <start_date type="datetime">2011-04-04T02:20:33Z</start_date>
199
199
  <end_date nil="true" type="datetime"></end_date>
200
200
  <invoice_number nil="true" type="integer"></invoice_number>
201
201
  <description>virtual cow maintence fee</description>
202
- <created_at type="datetime">2011-03-18T18:49:46Z</created_at>
202
+ <created_at type="datetime">2011-04-04T02:20:34Z</created_at>
203
203
  </charge>
204
204
 
205
205
  http_version: "1.1"
206
206
  - !ruby/struct:VCR::HTTPInteraction
207
207
  request: !ruby/struct:VCR::Request
208
208
  method: :get
209
- uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/charge-create-1297746103/charges/8172b73143634d32a25f17dba6ff66d7.xml
209
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/charge-create-1297746103/charges/fbe8f5fbcfe34842b36440470a8bffd6.xml
210
210
  body:
211
211
  headers:
212
212
  authorization:
213
- - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
213
+ - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
214
214
  accept:
215
215
  - application/xml
216
216
  accept-encoding:
@@ -225,17 +225,17 @@
225
225
  message: OK
226
226
  headers:
227
227
  x-runtime:
228
- - "274"
228
+ - "287"
229
229
  content-type:
230
230
  - application/xml; charset=utf-8
231
231
  etag:
232
- - "\"45bc773a376aa73da9ba5299920d3b47\""
232
+ - "\"f5ddee330cde5598867ed198e042b7b5\""
233
233
  cache-control:
234
234
  - private, max-age=0, must-revalidate
235
235
  content-length:
236
236
  - "524"
237
237
  set-cookie:
238
- - _recurly_session=20981d0bca9ffcd99350d4edf15af3af; domain=.recurly.local; path=/; HttpOnly
238
+ - _recurly_session=ee8596e2e9ff874387f3a4d81e6465a8; domain=.recurly.local; path=/; HttpOnly
239
239
  connection:
240
240
  - close
241
241
  server:
@@ -243,14 +243,14 @@
243
243
  body: |
244
244
  <?xml version="1.0" encoding="UTF-8"?>
245
245
  <charge type="charge">
246
- <id>8172b73143634d32a25f17dba6ff66d7</id>
246
+ <id>fbe8f5fbcfe34842b36440470a8bffd6</id>
247
247
  <account_code>charge-create-1297746103</account_code>
248
248
  <amount_in_cents type="integer">250</amount_in_cents>
249
- <start_date type="datetime">2011-03-18T18:49:46Z</start_date>
249
+ <start_date type="datetime">2011-04-04T02:20:33Z</start_date>
250
250
  <end_date nil="true" type="datetime"></end_date>
251
251
  <invoice_number nil="true" type="integer"></invoice_number>
252
252
  <description>virtual cow maintence fee</description>
253
- <created_at type="datetime">2011-03-18T18:49:46Z</created_at>
253
+ <created_at type="datetime">2011-04-04T02:20:34Z</created_at>
254
254
  </charge>
255
255
 
256
256
  http_version: "1.1"