recurly 0.3.3 → 0.3.4

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 (99) hide show
  1. data/README.md +15 -11
  2. data/lib/patches/active_resource/connection.rb +10 -0
  3. data/lib/recurly.rb +35 -9
  4. data/lib/recurly/account.rb +22 -1
  5. data/lib/recurly/account_base.rb +35 -0
  6. data/lib/recurly/base.rb +26 -39
  7. data/lib/recurly/billing_info.rb +40 -1
  8. data/lib/recurly/charge.rb +12 -1
  9. data/lib/recurly/coupon.rb +8 -0
  10. data/lib/recurly/credit.rb +12 -1
  11. data/lib/recurly/exceptions.rb +19 -0
  12. data/lib/recurly/invoice.rb +1 -1
  13. data/lib/recurly/plan.rb +13 -1
  14. data/lib/recurly/rails3/recurly.rake +5 -3
  15. data/lib/recurly/subscription.rb +21 -3
  16. data/lib/recurly/transaction.rb +29 -1
  17. data/lib/recurly/transparent.rb +140 -0
  18. data/lib/recurly/version.rb +1 -1
  19. data/spec/config/recurly.yml +12 -0
  20. data/spec/config/test1.yml +3 -1
  21. data/spec/config/test2.yml +4 -2
  22. data/spec/integration/credit_spec.rb +6 -6
  23. data/spec/integration/plan_spec.rb +2 -2
  24. data/spec/support/factory.rb +5 -3
  25. data/spec/unit/account_spec.rb +19 -0
  26. data/spec/unit/billing_info_spec.rb +38 -0
  27. data/spec/unit/charge_spec.rb +18 -0
  28. data/spec/unit/config_spec.rb +10 -6
  29. data/spec/unit/coupon_spec.rb +13 -0
  30. data/spec/unit/credit_spec.rb +18 -0
  31. data/spec/unit/plan_spec.rb +18 -0
  32. data/spec/unit/subscription_spec.rb +25 -0
  33. data/spec/unit/transaction_spec.rb +32 -0
  34. data/spec/unit/transparent_spec.rb +114 -0
  35. data/spec/vcr/account/accept-language-account/{1296674173.yml → 1297746103.yml} +16 -13
  36. data/spec/vcr/account/close/{1296674173.yml → 1297746103.yml} +31 -28
  37. data/spec/vcr/account/create-blank/{1296674173.yml → 1297746103.yml} +9 -5
  38. data/spec/vcr/account/create-duplicate/{1296674173.yml → 1297746103.yml} +22 -15
  39. data/spec/vcr/account/create-min/{1296674173.yml → 1297746103.yml} +16 -13
  40. data/spec/vcr/account/create/{1296674173.yml → 1297746103.yml} +16 -13
  41. data/spec/vcr/account/find/{1296674173.yml → 1297746103.yml} +29 -26
  42. data/spec/vcr/account/list/1297746103.yml +1579 -0
  43. data/spec/vcr/account/update/{1296674173.yml → 1297746103.yml} +54 -47
  44. data/spec/vcr/billing/create/{1296690812.yml → 1298594128.yml} +37 -34
  45. data/spec/vcr/billing/destroy/{1296690812.yml → 1298594128.yml} +46 -43
  46. data/spec/vcr/billing/find/{1296690812.yml → 1298594128.yml} +47 -44
  47. data/spec/vcr/billing/update/{1296690812.yml → 1298594128.yml} +50 -47
  48. data/spec/vcr/charge/create/{1296674173.yml → 1297746103.yml} +48 -45
  49. data/spec/vcr/charge/delete-uninvoiced/{1296674173.yml → 1297746103.yml} +49 -46
  50. data/spec/vcr/charge/list-all/{1296674173.yml → 1297746103.yml} +61 -58
  51. data/spec/vcr/charge/list-invoiced/{1296674173.yml → 1297746103.yml} +92 -89
  52. data/spec/vcr/charge/list-pending/{1296674173.yml → 1297746103.yml} +61 -58
  53. data/spec/vcr/charge/lookup/{1296674173.yml → 1297746103.yml} +34 -31
  54. data/spec/vcr/coupon/create/{1296774903.yml → 1299714521.yml} +35 -32
  55. data/spec/vcr/coupon/destroy/{1296688818.yml → 1299714521.yml} +34 -31
  56. data/spec/vcr/{coupon/create/1296688818.yml → credit/create/1299714599.yml} +53 -53
  57. data/spec/vcr/credit/delete/1299714599.yml +262 -0
  58. data/spec/vcr/credit/list/1299714599.yml +319 -0
  59. data/spec/vcr/credit/lookup/1299714599.yml +183 -0
  60. data/spec/vcr/invoice/create-no-charges/{1296674173.yml → 1297746103.yml} +34 -31
  61. data/spec/vcr/invoice/create/{1296674173.yml → 1297746103.yml} +63 -60
  62. data/spec/vcr/invoice/list/{1296674173.yml → 1297746103.yml} +87 -84
  63. data/spec/vcr/invoice/lookup/{1296674173.yml → 1297746103.yml} +64 -61
  64. data/spec/vcr/plan/all.yml +30 -30
  65. data/spec/vcr/plan/find.yml +25 -25
  66. data/spec/vcr/plan/update.yml +16 -15
  67. data/spec/vcr/subscription/addons/add/{1296674173.yml → 1297746103.yml} +44 -40
  68. data/spec/vcr/subscription/addons/create/{1296674173.yml → 1297746103.yml} +44 -40
  69. data/spec/vcr/subscription/addons/remove/{1296674173.yml → 1297746103.yml} +44 -40
  70. data/spec/vcr/subscription/cancel-with-code/{1296674173.yml → 1297746103.yml} +99 -95
  71. data/spec/vcr/subscription/cancel/{1296674173.yml → 1297746103.yml} +86 -82
  72. data/spec/vcr/subscription/change1/{1296674173.yml → 1297746103.yml} +82 -78
  73. data/spec/vcr/subscription/change2/{1296674173.yml → 1297746103.yml} +82 -78
  74. data/spec/vcr/subscription/create/{1296674173.yml → 1297746103.yml} +49 -45
  75. data/spec/vcr/subscription/find/{1296674173.yml → 1297746103.yml} +60 -56
  76. data/spec/vcr/subscription/reactivate/{1296674173.yml → 1297746103.yml} +93 -89
  77. data/spec/vcr/subscription/refund-full/{1296674173.yml → 1297746103.yml} +77 -73
  78. data/spec/vcr/subscription/refund-none/{1296674173.yml → 1297746103.yml} +77 -73
  79. data/spec/vcr/subscription/refund-partial/{1296674173.yml → 1297746103.yml} +77 -73
  80. data/spec/vcr/transaction/all/{1296674173.yml → 1297746103.yml} +107 -107
  81. data/spec/vcr/transaction/create-no-account/{1296674173.yml → 1297746103.yml} +14 -13
  82. data/spec/vcr/transaction/create-with-account/{1296674173.yml → 1297746103.yml} +46 -58
  83. data/spec/vcr/transaction/list-filled/1297746103.yml +213 -0
  84. data/spec/vcr/transaction/list-initial/{1296674173.yml → 1297746103.yml} +38 -35
  85. data/spec/vcr/transaction/lookup/1297746103.yml +213 -0
  86. data/spec/vcr/transaction/refund/1297746103.yml +213 -0
  87. data/spec/vcr/transaction/void/1297746103.yml +213 -0
  88. metadata +146 -139
  89. data/spec/vcr/account/list/1296674173.yml +0 -55
  90. data/spec/vcr/coupon/destroy/1296774903.yml +0 -207
  91. data/spec/vcr/credit/create/1296674173.yml +0 -121
  92. data/spec/vcr/credit/delete/1296674173.yml +0 -121
  93. data/spec/vcr/credit/list/1296674173.yml +0 -121
  94. data/spec/vcr/credit/lookup/1296674173.yml +0 -121
  95. data/spec/vcr/plan/delete/1296674173.yml +0 -225
  96. data/spec/vcr/transaction/list-filled/1296674173.yml +0 -487
  97. data/spec/vcr/transaction/lookup/1296674173.yml +0 -563
  98. data/spec/vcr/transaction/refund/1296674173.yml +0 -287
  99. data/spec/vcr/transaction/void/1296674173.yml +0 -352
@@ -2,21 +2,25 @@
2
2
  - !ruby/struct:VCR::HTTPInteraction
3
3
  request: !ruby/struct:VCR::Request
4
4
  method: :post
5
- uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts.xml
5
+ uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts.xml
6
6
  body: |
7
7
  <?xml version="1.0" encoding="UTF-8"?>
8
8
  <account>
9
- <account-code>account-update-1296674173</account-code>
9
+ <account-code>account-update-1297746103</account-code>
10
10
  <first-name>Verena</first-name>
11
11
  <last-name>Test</last-name>
12
12
  <email>verena@test.com</email>
13
13
  <company-name>Recurly Ruby Gem</company-name>
14
+ <billing-info>
15
+ <credit-card>
16
+ </credit-card>
17
+ </billing-info>
14
18
  <accept-language type="yaml" nil="true"></accept-language>
15
19
  </account>
16
20
 
17
21
  headers:
18
22
  authorization:
19
- - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
23
+ - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
20
24
  content-type:
21
25
  - application/xml
22
26
  accept:
@@ -33,9 +37,9 @@
33
37
  cache-control:
34
38
  - no-cache
35
39
  location:
36
- - http://litle-test.recurly.local:3000/accounts/account-update-1296674173
40
+ - http://app.recurly.local:3000/accounts/account-update-1297746103
37
41
  x-runtime:
38
- - "536"
42
+ - "385"
39
43
  content-type:
40
44
  - application/xml; charset=utf-8
41
45
  content-length:
@@ -43,18 +47,17 @@
43
47
  server:
44
48
  - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
45
49
  date:
46
- - Thu, 03 Feb 2011 22:16:54 GMT
50
+ - Fri, 11 Mar 2011 18:47:07 GMT
47
51
  connection:
48
52
  - close
49
53
  set-cookie:
50
- - account_credentials=4dede9519c2622503ee70b1f7dac15ffc1ee26dc1bc26ffdf4dfcad5d29368f271dc9b018e24724ad025b70cd2880298eb27195b4f2a1910562587472719d3e2%3A%3A; domain=.recurly.local; path=/
51
- - ""
52
- - _recurly_session=e4ec180344371bf896569dd2c08892ed; domain=.recurly.local; path=/; HttpOnly
54
+ - account_credentials=cebf16c5c2d019487dab50d99c4e312176701562b8e4aa99174149edaf1256dc84fb348df66be37924f895d2e68f8e972069767cb151ab26d5c434c0229ce971%3A%3A; domain=.recurly.local; path=/
55
+ - _recurly_session=fecdb583c262622507a817c844bd3637; domain=.recurly.local; path=/; HttpOnly
53
56
  body: |
54
57
  <?xml version="1.0" encoding="UTF-8"?>
55
58
  <account>
56
- <id>account-update-1296674173</id>
57
- <account_code>account-update-1296674173</account_code>
59
+ <id>account-update-1297746103</id>
60
+ <account_code>account-update-1297746103</account_code>
58
61
  <username></username>
59
62
  <email>verena@test.com</email>
60
63
  <first_name>Verena</first_name>
@@ -62,8 +65,8 @@
62
65
  <company_name>Recurly Ruby Gem</company_name>
63
66
  <balance_in_cents type="integer">0</balance_in_cents>
64
67
  <closed type="boolean">false</closed>
65
- <hosted_login_token>8684435f0f6c4b759b9860be7555b84e</hosted_login_token>
66
- <created_at type="datetime">2011-02-03T22:16:54Z</created_at>
68
+ <hosted_login_token>c9e3ceda814749188b2b11cb54e47db1</hosted_login_token>
69
+ <created_at type="datetime">2011-03-11T18:47:07Z</created_at>
67
70
  <state>active</state>
68
71
  </account>
69
72
 
@@ -71,11 +74,11 @@
71
74
  - !ruby/struct:VCR::HTTPInteraction
72
75
  request: !ruby/struct:VCR::Request
73
76
  method: :get
74
- uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/account-update-1296674173.xml
77
+ uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/account-update-1297746103.xml
75
78
  body:
76
79
  headers:
77
80
  authorization:
78
- - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
81
+ - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
79
82
  accept:
80
83
  - application/xml
81
84
  accept-encoding:
@@ -90,11 +93,11 @@
90
93
  message: "OK "
91
94
  headers:
92
95
  x-runtime:
93
- - "172"
96
+ - "186"
94
97
  content-type:
95
98
  - application/xml; charset=utf-8
96
99
  etag:
97
- - "\"5160ee9dd2cbcec96e15bc05ab49eb7b\""
100
+ - "\"c8677f3921d9fe55af0e2774cc682f07\""
98
101
  cache-control:
99
102
  - private, max-age=0, must-revalidate
100
103
  content-length:
@@ -102,16 +105,16 @@
102
105
  server:
103
106
  - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
104
107
  date:
105
- - Thu, 03 Feb 2011 22:16:56 GMT
108
+ - Fri, 11 Mar 2011 18:47:08 GMT
106
109
  connection:
107
110
  - close
108
111
  set-cookie:
109
- - _recurly_session=ec4be8a0c89bdae3619cdf65c129001c; domain=.recurly.local; path=/; HttpOnly
112
+ - _recurly_session=090665a556291078f41c8c88dc78c4ab; domain=.recurly.local; path=/; HttpOnly
110
113
  body: |
111
114
  <?xml version="1.0" encoding="UTF-8"?>
112
115
  <account>
113
- <id>account-update-1296674173</id>
114
- <account_code>account-update-1296674173</account_code>
116
+ <id>account-update-1297746103</id>
117
+ <account_code>account-update-1297746103</account_code>
115
118
  <username></username>
116
119
  <email>verena@test.com</email>
117
120
  <first_name>Verena</first_name>
@@ -119,8 +122,8 @@
119
122
  <company_name>Recurly Ruby Gem</company_name>
120
123
  <balance_in_cents type="integer">0</balance_in_cents>
121
124
  <closed type="boolean">false</closed>
122
- <hosted_login_token>8684435f0f6c4b759b9860be7555b84e</hosted_login_token>
123
- <created_at type="datetime">2011-02-03T22:16:54Z</created_at>
125
+ <hosted_login_token>c9e3ceda814749188b2b11cb54e47db1</hosted_login_token>
126
+ <created_at type="datetime">2011-03-11T18:47:07Z</created_at>
124
127
  <state>active</state>
125
128
  </account>
126
129
 
@@ -128,12 +131,12 @@
128
131
  - !ruby/struct:VCR::HTTPInteraction
129
132
  request: !ruby/struct:VCR::Request
130
133
  method: :put
131
- uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/account-update-1296674173.xml
134
+ uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/account-update-1297746103.xml
132
135
  body: |
133
136
  <?xml version="1.0" encoding="UTF-8"?>
134
137
  <account>
135
- <id>account-update-1296674173</id>
136
- <account-code>account-update-1296674173</account-code>
138
+ <id>account-update-1297746103</id>
139
+ <account-code>account-update-1297746103</account-code>
137
140
  <username type="yaml" nil="true"></username>
138
141
  <email>verena@test.com</email>
139
142
  <first-name>Verena</first-name>
@@ -141,15 +144,19 @@
141
144
  <company-name>Recurly Ruby Gem -- Update</company-name>
142
145
  <balance-in-cents type="integer">0</balance-in-cents>
143
146
  <closed type="boolean">false</closed>
144
- <hosted-login-token>8684435f0f6c4b759b9860be7555b84e</hosted-login-token>
145
- <created-at type="datetime">2011-02-03T22:16:54Z</created-at>
147
+ <hosted-login-token>c9e3ceda814749188b2b11cb54e47db1</hosted-login-token>
148
+ <created-at type="datetime">2011-03-11T18:47:07Z</created-at>
146
149
  <state>active</state>
150
+ <billing-info>
151
+ <credit-card>
152
+ </credit-card>
153
+ </billing-info>
147
154
  <accept-language type="yaml" nil="true"></accept-language>
148
155
  </account>
149
156
 
150
157
  headers:
151
158
  authorization:
152
- - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
159
+ - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
153
160
  content-type:
154
161
  - application/xml
155
162
  accept:
@@ -164,11 +171,11 @@
164
171
  message: "OK "
165
172
  headers:
166
173
  x-runtime:
167
- - "318"
174
+ - "349"
168
175
  content-type:
169
176
  - application/xml; charset=utf-8
170
177
  etag:
171
- - "\"679edca58ee6f6f8a43456f7cb298f94\""
178
+ - "\"5fa3b6ab05dc152d70b2d5061dc2141a\""
172
179
  cache-control:
173
180
  - private, max-age=0, must-revalidate
174
181
  content-length:
@@ -176,16 +183,16 @@
176
183
  server:
177
184
  - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
178
185
  date:
179
- - Thu, 03 Feb 2011 22:16:57 GMT
186
+ - Fri, 11 Mar 2011 18:47:11 GMT
180
187
  connection:
181
188
  - close
182
189
  set-cookie:
183
- - _recurly_session=e35d8243afb00fde2075d4a6528c8f6e; domain=.recurly.local; path=/; HttpOnly
190
+ - _recurly_session=03358fadc7f89806c0517dca827a9fb4; domain=.recurly.local; path=/; HttpOnly
184
191
  body: |
185
192
  <?xml version="1.0" encoding="UTF-8"?>
186
193
  <account>
187
- <id>account-update-1296674173</id>
188
- <account_code>account-update-1296674173</account_code>
194
+ <id>account-update-1297746103</id>
195
+ <account_code>account-update-1297746103</account_code>
189
196
  <username></username>
190
197
  <email>verena@test.com</email>
191
198
  <first_name>Verena</first_name>
@@ -193,8 +200,8 @@
193
200
  <company_name>Recurly Ruby Gem -- Update</company_name>
194
201
  <balance_in_cents type="integer">0</balance_in_cents>
195
202
  <closed type="boolean">false</closed>
196
- <hosted_login_token>8684435f0f6c4b759b9860be7555b84e</hosted_login_token>
197
- <created_at type="datetime">2011-02-03T22:16:54Z</created_at>
203
+ <hosted_login_token>c9e3ceda814749188b2b11cb54e47db1</hosted_login_token>
204
+ <created_at type="datetime">2011-03-11T18:47:07Z</created_at>
198
205
  <state>active</state>
199
206
  </account>
200
207
 
@@ -202,11 +209,11 @@
202
209
  - !ruby/struct:VCR::HTTPInteraction
203
210
  request: !ruby/struct:VCR::Request
204
211
  method: :get
205
- uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/account-update-1296674173.xml
212
+ uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/account-update-1297746103.xml
206
213
  body:
207
214
  headers:
208
215
  authorization:
209
- - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
216
+ - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
210
217
  accept:
211
218
  - application/xml
212
219
  accept-encoding:
@@ -221,11 +228,11 @@
221
228
  message: "OK "
222
229
  headers:
223
230
  x-runtime:
224
- - "178"
231
+ - "201"
225
232
  content-type:
226
233
  - application/xml; charset=utf-8
227
234
  etag:
228
- - "\"679edca58ee6f6f8a43456f7cb298f94\""
235
+ - "\"5fa3b6ab05dc152d70b2d5061dc2141a\""
229
236
  cache-control:
230
237
  - private, max-age=0, must-revalidate
231
238
  content-length:
@@ -233,16 +240,16 @@
233
240
  server:
234
241
  - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
235
242
  date:
236
- - Thu, 03 Feb 2011 22:16:59 GMT
243
+ - Fri, 11 Mar 2011 18:47:13 GMT
237
244
  connection:
238
245
  - close
239
246
  set-cookie:
240
- - _recurly_session=3df2421545148921ffc3c3703df2ddf9; domain=.recurly.local; path=/; HttpOnly
247
+ - _recurly_session=95bf1b0ec4a0dd26b44be000ed9f8af3; domain=.recurly.local; path=/; HttpOnly
241
248
  body: |
242
249
  <?xml version="1.0" encoding="UTF-8"?>
243
250
  <account>
244
- <id>account-update-1296674173</id>
245
- <account_code>account-update-1296674173</account_code>
251
+ <id>account-update-1297746103</id>
252
+ <account_code>account-update-1297746103</account_code>
246
253
  <username></username>
247
254
  <email>verena@test.com</email>
248
255
  <first_name>Verena</first_name>
@@ -250,8 +257,8 @@
250
257
  <company_name>Recurly Ruby Gem -- Update</company_name>
251
258
  <balance_in_cents type="integer">0</balance_in_cents>
252
259
  <closed type="boolean">false</closed>
253
- <hosted_login_token>8684435f0f6c4b759b9860be7555b84e</hosted_login_token>
254
- <created_at type="datetime">2011-02-03T22:16:54Z</created_at>
260
+ <hosted_login_token>c9e3ceda814749188b2b11cb54e47db1</hosted_login_token>
261
+ <created_at type="datetime">2011-03-11T18:47:07Z</created_at>
255
262
  <state>active</state>
256
263
  </account>
257
264
 
@@ -2,21 +2,25 @@
2
2
  - !ruby/struct:VCR::HTTPInteraction
3
3
  request: !ruby/struct:VCR::Request
4
4
  method: :post
5
- uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts.xml
5
+ uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts.xml
6
6
  body: |
7
7
  <?xml version="1.0" encoding="UTF-8"?>
8
8
  <account>
9
- <account-code>billing-create-1296690812</account-code>
9
+ <account-code>billing-create-1298594128</account-code>
10
10
  <first-name>Verena</first-name>
11
11
  <last-name>Test</last-name>
12
12
  <email>verena@test.com</email>
13
13
  <company-name>Recurly Ruby Gem</company-name>
14
+ <billing-info>
15
+ <credit-card>
16
+ </credit-card>
17
+ </billing-info>
14
18
  <accept-language type="yaml" nil="true"></accept-language>
15
19
  </account>
16
20
 
17
21
  headers:
18
22
  authorization:
19
- - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
23
+ - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
20
24
  content-type:
21
25
  - application/xml
22
26
  accept:
@@ -33,9 +37,9 @@
33
37
  cache-control:
34
38
  - no-cache
35
39
  location:
36
- - http://litle-test.recurly.local:3000/accounts/billing-create-1296690812
40
+ - http://app.recurly.local:3000/accounts/billing-create-1298594128
37
41
  x-runtime:
38
- - "567"
42
+ - "503"
39
43
  content-type:
40
44
  - application/xml; charset=utf-8
41
45
  content-length:
@@ -43,18 +47,17 @@
43
47
  server:
44
48
  - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
45
49
  date:
46
- - Thu, 03 Feb 2011 22:17:35 GMT
50
+ - Fri, 11 Mar 2011 18:47:49 GMT
47
51
  connection:
48
52
  - close
49
53
  set-cookie:
50
- - account_credentials=77dcf8ab494a55d7b3636364e614969e304c8e2997790d887bf7ca34815b2112fa69d41325f3d59c7a8242fedc00d1a6ea3c4a2f17066d21d97573685c34766c%3A%3A; domain=.recurly.local; path=/
51
- - ""
52
- - _recurly_session=f16a0de60d6c3ea515d2f891bd1f4238; domain=.recurly.local; path=/; HttpOnly
54
+ - account_credentials=9cb06e85dda7e14b0052dcdeba2bb566bfe3103e985bcfd4802fa38885f7f066577de0f07eb37d6127b4056c7abaf69b1a86be05c37c50809157e4e2d1a85328%3A%3A; domain=.recurly.local; path=/
55
+ - _recurly_session=47c8db78a1f58628a26641f76046403c; domain=.recurly.local; path=/; HttpOnly
53
56
  body: |
54
57
  <?xml version="1.0" encoding="UTF-8"?>
55
58
  <account>
56
- <id>billing-create-1296690812</id>
57
- <account_code>billing-create-1296690812</account_code>
59
+ <id>billing-create-1298594128</id>
60
+ <account_code>billing-create-1298594128</account_code>
58
61
  <username></username>
59
62
  <email>verena@test.com</email>
60
63
  <first_name>Verena</first_name>
@@ -62,8 +65,8 @@
62
65
  <company_name>Recurly Ruby Gem</company_name>
63
66
  <balance_in_cents type="integer">0</balance_in_cents>
64
67
  <closed type="boolean">false</closed>
65
- <hosted_login_token>75ccfa5806c24a72a9c2903d3d388704</hosted_login_token>
66
- <created_at type="datetime">2011-02-03T22:17:35Z</created_at>
68
+ <hosted_login_token>087e78ad0eea4b3f8ebcece89761c894</hosted_login_token>
69
+ <created_at type="datetime">2011-03-11T18:47:49Z</created_at>
67
70
  <state>active</state>
68
71
  </account>
69
72
 
@@ -71,10 +74,12 @@
71
74
  - !ruby/struct:VCR::HTTPInteraction
72
75
  request: !ruby/struct:VCR::Request
73
76
  method: :put
74
- uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/billing-create-1296690812/billing_info.xml
77
+ uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/billing-create-1298594128/billing_info.xml
75
78
  body: |
76
79
  <?xml version="1.0" encoding="UTF-8"?>
77
80
  <billing-info>
81
+ <first-name>Verena</first-name>
82
+ <last-name>Test</last-name>
78
83
  <address1>123 Test St</address1>
79
84
  <city>San Francisco</city>
80
85
  <state>CA</state>
@@ -83,16 +88,14 @@
83
88
  <credit-card>
84
89
  <number>4111111111111111</number>
85
90
  <year type="integer">2012</year>
86
- <month type="integer">2</month>
91
+ <month type="integer">3</month>
87
92
  <verification-value>123</verification-value>
88
93
  </credit-card>
89
- <first-name>Verena</first-name>
90
- <last-name>Test</last-name>
91
94
  </billing-info>
92
95
 
93
96
  headers:
94
97
  authorization:
95
- - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
98
+ - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
96
99
  content-type:
97
100
  - application/xml
98
101
  accept:
@@ -107,11 +110,11 @@
107
110
  message: "OK "
108
111
  headers:
109
112
  x-runtime:
110
- - "1948"
113
+ - "1609"
111
114
  content-type:
112
115
  - application/xml; charset=utf-8
113
116
  etag:
114
- - "\"10ff1483237e6a5ba6858791ad9022f5\""
117
+ - "\"b1d2f18e9a7d906f51ff0072786a9b03\""
115
118
  cache-control:
116
119
  - private, max-age=0, must-revalidate
117
120
  content-length:
@@ -119,15 +122,15 @@
119
122
  server:
120
123
  - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
121
124
  date:
122
- - Thu, 03 Feb 2011 22:17:38 GMT
125
+ - Fri, 11 Mar 2011 18:47:52 GMT
123
126
  connection:
124
127
  - close
125
128
  set-cookie:
126
- - _recurly_session=7f6ddd47fdecd10f30b736a022f82099; domain=.recurly.local; path=/; HttpOnly
129
+ - _recurly_session=c0eef4fb8fc12cc53b137bfc740dafd7; domain=.recurly.local; path=/; HttpOnly
127
130
  body: |
128
131
  <?xml version="1.0" encoding="UTF-8"?>
129
132
  <billing_info>
130
- <account_code>billing-create-1296690812</account_code>
133
+ <account_code>billing-create-1298594128</account_code>
131
134
  <first_name>Verena</first_name>
132
135
  <last_name>Test</last_name>
133
136
  <address1>123 Test St</address1>
@@ -142,21 +145,21 @@
142
145
  <credit_card>
143
146
  <type>visa</type>
144
147
  <last_four>1111</last_four>
145
- <month type="integer">2</month>
148
+ <month type="integer">3</month>
146
149
  <year type="integer">2012</year>
147
150
  </credit_card>
148
- <updated_at type="datetime">2011-02-03T22:17:38Z</updated_at>
151
+ <updated_at type="datetime">2011-03-11T18:47:52Z</updated_at>
149
152
  </billing_info>
150
153
 
151
154
  http_version: "1.1"
152
155
  - !ruby/struct:VCR::HTTPInteraction
153
156
  request: !ruby/struct:VCR::Request
154
157
  method: :get
155
- uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/billing-create-1296690812/billing_info.xml
158
+ uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/billing-create-1298594128/billing_info.xml
156
159
  body:
157
160
  headers:
158
161
  authorization:
159
- - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
162
+ - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
160
163
  accept:
161
164
  - application/xml
162
165
  accept-encoding:
@@ -171,11 +174,11 @@
171
174
  message: "OK "
172
175
  headers:
173
176
  x-runtime:
174
- - "190"
177
+ - "187"
175
178
  content-type:
176
179
  - application/xml; charset=utf-8
177
180
  etag:
178
- - "\"10ff1483237e6a5ba6858791ad9022f5\""
181
+ - "\"b1d2f18e9a7d906f51ff0072786a9b03\""
179
182
  cache-control:
180
183
  - private, max-age=0, must-revalidate
181
184
  content-length:
@@ -183,15 +186,15 @@
183
186
  server:
184
187
  - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
185
188
  date:
186
- - Thu, 03 Feb 2011 22:17:40 GMT
189
+ - Fri, 11 Mar 2011 18:47:54 GMT
187
190
  connection:
188
191
  - close
189
192
  set-cookie:
190
- - _recurly_session=2c73c7e77fc44905c47ddb066a2f0baa; domain=.recurly.local; path=/; HttpOnly
193
+ - _recurly_session=7cf523e1a8ba1574a3073708d8eb6f04; domain=.recurly.local; path=/; HttpOnly
191
194
  body: |
192
195
  <?xml version="1.0" encoding="UTF-8"?>
193
196
  <billing_info>
194
- <account_code>billing-create-1296690812</account_code>
197
+ <account_code>billing-create-1298594128</account_code>
195
198
  <first_name>Verena</first_name>
196
199
  <last_name>Test</last_name>
197
200
  <address1>123 Test St</address1>
@@ -206,10 +209,10 @@
206
209
  <credit_card>
207
210
  <type>visa</type>
208
211
  <last_four>1111</last_four>
209
- <month type="integer">2</month>
212
+ <month type="integer">3</month>
210
213
  <year type="integer">2012</year>
211
214
  </credit_card>
212
- <updated_at type="datetime">2011-02-03T22:17:38Z</updated_at>
215
+ <updated_at type="datetime">2011-03-11T18:47:52Z</updated_at>
213
216
  </billing_info>
214
217
 
215
218
  http_version: "1.1"