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>billing-update-1296690812</account-code>
9
+ <account-code>billing-update-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-update-1296690812
40
+ - http://app.recurly.local:3000/accounts/billing-update-1298594128
37
41
  x-runtime:
38
- - "571"
42
+ - "502"
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:42 GMT
50
+ - Fri, 11 Mar 2011 18:47:57 GMT
47
51
  connection:
48
52
  - close
49
53
  set-cookie:
50
- - account_credentials=ca1bc2a7db5c0adebc913fcceaf5067325526889751bb9f5ae90130b62e808a7b4d28e7936863967610fdf0c47a7667aa9202de29ff2243f5f0f88b1b8fa238b%3A%3A; domain=.recurly.local; path=/
51
- - ""
52
- - _recurly_session=537b709b2fbbf7c87376e456b05831f3; domain=.recurly.local; path=/; HttpOnly
54
+ - account_credentials=05498deb8a331a937fe0239569da1f210767c2211cc732c1cf54d66d9e629389741f0dabb7f5a9c3c57ca9290244e438874dc948439c36967b64aaa9e4b9f6f9%3A%3A; domain=.recurly.local; path=/
55
+ - _recurly_session=606480533b04b660cd8dd557f981e665; domain=.recurly.local; path=/; HttpOnly
53
56
  body: |
54
57
  <?xml version="1.0" encoding="UTF-8"?>
55
58
  <account>
56
- <id>billing-update-1296690812</id>
57
- <account_code>billing-update-1296690812</account_code>
59
+ <id>billing-update-1298594128</id>
60
+ <account_code>billing-update-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>ddf65b6b20e94a99ae41c128b4523e34</hosted_login_token>
66
- <created_at type="datetime">2011-02-03T22:17:42Z</created_at>
68
+ <hosted_login_token>8909514f1a804a559df06efb6d902ac6</hosted_login_token>
69
+ <created_at type="datetime">2011-03-11T18:47:56Z</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-update-1296690812/billing_info.xml
77
+ uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/billing-update-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,17 +88,15 @@
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
- <account-code>billing-update-1296690812</account-code>
90
- <first-name>Verena</first-name>
91
- <last-name>Test</last-name>
94
+ <account-code>billing-update-1298594128</account-code>
92
95
  </billing-info>
93
96
 
94
97
  headers:
95
98
  authorization:
96
- - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
99
+ - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
97
100
  content-type:
98
101
  - application/xml
99
102
  accept:
@@ -108,11 +111,11 @@
108
111
  message: "OK "
109
112
  headers:
110
113
  x-runtime:
111
- - "1559"
114
+ - "1682"
112
115
  content-type:
113
116
  - application/xml; charset=utf-8
114
117
  etag:
115
- - "\"b5499bcd45b7f6f045575a212799805c\""
118
+ - "\"7cb57495c190002a1af95fbe534cabac\""
116
119
  cache-control:
117
120
  - private, max-age=0, must-revalidate
118
121
  content-length:
@@ -120,15 +123,15 @@
120
123
  server:
121
124
  - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
122
125
  date:
123
- - Thu, 03 Feb 2011 22:17:45 GMT
126
+ - Fri, 11 Mar 2011 18:48:00 GMT
124
127
  connection:
125
128
  - close
126
129
  set-cookie:
127
- - _recurly_session=5e91140311ec8c5366449955bba2e1c7; domain=.recurly.local; path=/; HttpOnly
130
+ - _recurly_session=13f72d03f8ece37924b9e0e240e872b8; domain=.recurly.local; path=/; HttpOnly
128
131
  body: |
129
132
  <?xml version="1.0" encoding="UTF-8"?>
130
133
  <billing_info>
131
- <account_code>billing-update-1296690812</account_code>
134
+ <account_code>billing-update-1298594128</account_code>
132
135
  <first_name>Verena</first_name>
133
136
  <last_name>Test</last_name>
134
137
  <address1>123 Test St</address1>
@@ -143,20 +146,22 @@
143
146
  <credit_card>
144
147
  <type>visa</type>
145
148
  <last_four>1111</last_four>
146
- <month type="integer">2</month>
149
+ <month type="integer">3</month>
147
150
  <year type="integer">2012</year>
148
151
  </credit_card>
149
- <updated_at type="datetime">2011-02-03T22:17:45Z</updated_at>
152
+ <updated_at type="datetime">2011-03-11T18:48:00Z</updated_at>
150
153
  </billing_info>
151
154
 
152
155
  http_version: "1.1"
153
156
  - !ruby/struct:VCR::HTTPInteraction
154
157
  request: !ruby/struct:VCR::Request
155
158
  method: :put
156
- uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/billing-update-1296690812/billing_info.xml
159
+ uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/billing-update-1298594128/billing_info.xml
157
160
  body: |
158
161
  <?xml version="1.0" encoding="UTF-8"?>
159
162
  <billing-info>
163
+ <first-name>Verena</first-name>
164
+ <last-name>Test</last-name>
160
165
  <address1>1st Ave South, Apt 5001</address1>
161
166
  <city>San Francisco</city>
162
167
  <state>CA</state>
@@ -165,16 +170,14 @@
165
170
  <credit-card>
166
171
  <number>4111111111111111</number>
167
172
  <year type="integer">2012</year>
168
- <month type="integer">2</month>
173
+ <month type="integer">3</month>
169
174
  <verification-value>123</verification-value>
170
175
  </credit-card>
171
- <first-name>Verena</first-name>
172
- <last-name>Test</last-name>
173
176
  </billing-info>
174
177
 
175
178
  headers:
176
179
  authorization:
177
- - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
180
+ - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
178
181
  content-type:
179
182
  - application/xml
180
183
  accept:
@@ -189,11 +192,11 @@
189
192
  message: "OK "
190
193
  headers:
191
194
  x-runtime:
192
- - "1979"
195
+ - "2941"
193
196
  content-type:
194
197
  - application/xml; charset=utf-8
195
198
  etag:
196
- - "\"b5da767b374f03be98a084a190d101cc\""
199
+ - "\"5e3185d5483730e89b9f8ba860662fe7\""
197
200
  cache-control:
198
201
  - private, max-age=0, must-revalidate
199
202
  content-length:
@@ -201,15 +204,15 @@
201
204
  server:
202
205
  - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
203
206
  date:
204
- - Thu, 03 Feb 2011 22:17:49 GMT
207
+ - Fri, 11 Mar 2011 18:48:05 GMT
205
208
  connection:
206
209
  - close
207
210
  set-cookie:
208
- - _recurly_session=b1185c29f260f871d91f9a4fadd8f0f2; domain=.recurly.local; path=/; HttpOnly
211
+ - _recurly_session=400690f4d8f5cf3062b02a62f03f6969; domain=.recurly.local; path=/; HttpOnly
209
212
  body: |
210
213
  <?xml version="1.0" encoding="UTF-8"?>
211
214
  <billing_info>
212
- <account_code>billing-update-1296690812</account_code>
215
+ <account_code>billing-update-1298594128</account_code>
213
216
  <first_name>Verena</first_name>
214
217
  <last_name>Test</last_name>
215
218
  <address1>1st Ave South, Apt 5001</address1>
@@ -224,21 +227,21 @@
224
227
  <credit_card>
225
228
  <type>visa</type>
226
229
  <last_four>1111</last_four>
227
- <month type="integer">2</month>
230
+ <month type="integer">3</month>
228
231
  <year type="integer">2012</year>
229
232
  </credit_card>
230
- <updated_at type="datetime">2011-02-03T22:17:49Z</updated_at>
233
+ <updated_at type="datetime">2011-03-11T18:48:05Z</updated_at>
231
234
  </billing_info>
232
235
 
233
236
  http_version: "1.1"
234
237
  - !ruby/struct:VCR::HTTPInteraction
235
238
  request: !ruby/struct:VCR::Request
236
239
  method: :get
237
- uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/billing-update-1296690812/billing_info.xml
240
+ uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/billing-update-1298594128/billing_info.xml
238
241
  body:
239
242
  headers:
240
243
  authorization:
241
- - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
244
+ - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
242
245
  accept:
243
246
  - application/xml
244
247
  accept-encoding:
@@ -253,11 +256,11 @@
253
256
  message: "OK "
254
257
  headers:
255
258
  x-runtime:
256
- - "194"
259
+ - "190"
257
260
  content-type:
258
261
  - application/xml; charset=utf-8
259
262
  etag:
260
- - "\"b5da767b374f03be98a084a190d101cc\""
263
+ - "\"5e3185d5483730e89b9f8ba860662fe7\""
261
264
  cache-control:
262
265
  - private, max-age=0, must-revalidate
263
266
  content-length:
@@ -265,15 +268,15 @@
265
268
  server:
266
269
  - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
267
270
  date:
268
- - Thu, 03 Feb 2011 22:17:51 GMT
271
+ - Fri, 11 Mar 2011 18:48:07 GMT
269
272
  connection:
270
273
  - close
271
274
  set-cookie:
272
- - _recurly_session=21ced1f6e0594169c7c507fe325d5735; domain=.recurly.local; path=/; HttpOnly
275
+ - _recurly_session=965a03b0eb78d470a9603f4186cfb98e; domain=.recurly.local; path=/; HttpOnly
273
276
  body: |
274
277
  <?xml version="1.0" encoding="UTF-8"?>
275
278
  <billing_info>
276
- <account_code>billing-update-1296690812</account_code>
279
+ <account_code>billing-update-1298594128</account_code>
277
280
  <first_name>Verena</first_name>
278
281
  <last_name>Test</last_name>
279
282
  <address1>1st Ave South, Apt 5001</address1>
@@ -288,10 +291,10 @@
288
291
  <credit_card>
289
292
  <type>visa</type>
290
293
  <last_four>1111</last_four>
291
- <month type="integer">2</month>
294
+ <month type="integer">3</month>
292
295
  <year type="integer">2012</year>
293
296
  </credit_card>
294
- <updated_at type="datetime">2011-02-03T22:17:49Z</updated_at>
297
+ <updated_at type="datetime">2011-03-11T18:48:05Z</updated_at>
295
298
  </billing_info>
296
299
 
297
300
  http_version: "1.1"
@@ -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>charge-create-1296674173</account-code>
9
+ <account-code>charge-create-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/charge-create-1296674173
40
+ - http://app.recurly.local:3000/accounts/charge-create-1297746103
37
41
  x-runtime:
38
- - "617"
42
+ - "532"
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:18:52 GMT
50
+ - Fri, 11 Mar 2011 18:49:11 GMT
47
51
  connection:
48
52
  - close
49
53
  set-cookie:
50
- - account_credentials=ac2d3ff26a5cc9fbce9ab7db67e65967f2a39283fa32485f57d48e13e6ef18c57f1bbf3011f920f70e7812006be532b30449ed01321226803b75a439107324ab%3A%3A; domain=.recurly.local; path=/
51
- - ""
52
- - _recurly_session=113f5be12cb23c0fd167532d10b249a9; domain=.recurly.local; path=/; HttpOnly
54
+ - account_credentials=4758d98b8c9c52c633e90fa62ee7edc71f28b3fe8698dccc11ad1948236b9c3ffca89b63c971484ad88a48772fc5078064f564c8fd301db7b1c1a4d195d4a03c%3A%3A; domain=.recurly.local; path=/
55
+ - _recurly_session=bc95669aba8e3a7020146e38274086ba; domain=.recurly.local; path=/; HttpOnly
53
56
  body: |
54
57
  <?xml version="1.0" encoding="UTF-8"?>
55
58
  <account>
56
- <id>charge-create-1296674173</id>
57
- <account_code>charge-create-1296674173</account_code>
59
+ <id>charge-create-1297746103</id>
60
+ <account_code>charge-create-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>27ecd1988c45454083103fd7b342eaa1</hosted_login_token>
66
- <created_at type="datetime">2011-02-03T22:18:52Z</created_at>
68
+ <hosted_login_token>ca3b5ca6c6e541b48d81240fbc844c12</hosted_login_token>
69
+ <created_at type="datetime">2011-03-11T18:49:11Z</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/charge-create-1296674173/billing_info.xml
77
+ uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/charge-create-1297746103/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,17 +88,15 @@
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
- <account-code>charge-create-1296674173</account-code>
90
- <first-name>Verena</first-name>
91
- <last-name>Test</last-name>
94
+ <account-code>charge-create-1297746103</account-code>
92
95
  </billing-info>
93
96
 
94
97
  headers:
95
98
  authorization:
96
- - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
99
+ - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
97
100
  content-type:
98
101
  - application/xml
99
102
  accept:
@@ -108,11 +111,11 @@
108
111
  message: "OK "
109
112
  headers:
110
113
  x-runtime:
111
- - "1617"
114
+ - "1670"
112
115
  content-type:
113
116
  - application/xml; charset=utf-8
114
117
  etag:
115
- - "\"071e9bdb8fbbd9648ed0d753efae29f6\""
118
+ - "\"7c0c7c8aea93c7a1728ecb4f4ab3ed1a\""
116
119
  cache-control:
117
120
  - private, max-age=0, must-revalidate
118
121
  content-length:
@@ -120,15 +123,15 @@
120
123
  server:
121
124
  - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
122
125
  date:
123
- - Thu, 03 Feb 2011 22:18:55 GMT
126
+ - Fri, 11 Mar 2011 18:49:15 GMT
124
127
  connection:
125
128
  - close
126
129
  set-cookie:
127
- - _recurly_session=b11382935805a828d264b7aa8220f6a4; domain=.recurly.local; path=/; HttpOnly
130
+ - _recurly_session=b7242828a4949ac0e0047887475e4fea; domain=.recurly.local; path=/; HttpOnly
128
131
  body: |
129
132
  <?xml version="1.0" encoding="UTF-8"?>
130
133
  <billing_info>
131
- <account_code>charge-create-1296674173</account_code>
134
+ <account_code>charge-create-1297746103</account_code>
132
135
  <first_name>Verena</first_name>
133
136
  <last_name>Test</last_name>
134
137
  <address1>123 Test St</address1>
@@ -143,17 +146,17 @@
143
146
  <credit_card>
144
147
  <type>visa</type>
145
148
  <last_four>1111</last_four>
146
- <month type="integer">2</month>
149
+ <month type="integer">3</month>
147
150
  <year type="integer">2012</year>
148
151
  </credit_card>
149
- <updated_at type="datetime">2011-02-03T22:18:55Z</updated_at>
152
+ <updated_at type="datetime">2011-03-11T18:49:15Z</updated_at>
150
153
  </billing_info>
151
154
 
152
155
  http_version: "1.1"
153
156
  - !ruby/struct:VCR::HTTPInteraction
154
157
  request: !ruby/struct:VCR::Request
155
158
  method: :post
156
- uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/charge-create-1296674173/charges.xml
159
+ uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/charge-create-1297746103/charges.xml
157
160
  body: |
158
161
  <?xml version="1.0" encoding="UTF-8"?>
159
162
  <charge>
@@ -163,7 +166,7 @@
163
166
 
164
167
  headers:
165
168
  authorization:
166
- - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
169
+ - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
167
170
  content-type:
168
171
  - application/xml
169
172
  accept:
@@ -180,7 +183,7 @@
180
183
  cache-control:
181
184
  - no-cache
182
185
  x-runtime:
183
- - "529"
186
+ - "361"
184
187
  content-type:
185
188
  - application/xml; charset=utf-8
186
189
  content-length:
@@ -188,33 +191,33 @@
188
191
  server:
189
192
  - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
190
193
  date:
191
- - Thu, 03 Feb 2011 22:18:57 GMT
194
+ - Fri, 11 Mar 2011 18:49:17 GMT
192
195
  connection:
193
196
  - close
194
197
  set-cookie:
195
- - _recurly_session=4815ded9fb580deec6d468c20b2d1137; domain=.recurly.local; path=/; HttpOnly
198
+ - _recurly_session=e8b24b62838d23eea041f73e5f916b99; domain=.recurly.local; path=/; HttpOnly
196
199
  body: |
197
200
  <?xml version="1.0" encoding="UTF-8"?>
198
201
  <charge type="charge">
199
- <id>d6a8833fc6d144ccb2f35bf55d29df6c</id>
200
- <account_code>charge-create-1296674173</account_code>
202
+ <id>d2898fd133c0492684e40a953d5d904f</id>
203
+ <account_code>charge-create-1297746103</account_code>
201
204
  <amount_in_cents type="integer">250</amount_in_cents>
202
- <start_date type="datetime">2011-02-03T22:18:57Z</start_date>
205
+ <start_date type="datetime">2011-03-11T18:49:17Z</start_date>
203
206
  <end_date nil="true" type="datetime"></end_date>
204
207
  <invoice_number nil="true" type="integer"></invoice_number>
205
208
  <description>virtual cow maintence fee</description>
206
- <created_at type="datetime">2011-02-03T22:18:57Z</created_at>
209
+ <created_at type="datetime">2011-03-11T18:49:17Z</created_at>
207
210
  </charge>
208
211
 
209
212
  http_version: "1.1"
210
213
  - !ruby/struct:VCR::HTTPInteraction
211
214
  request: !ruby/struct:VCR::Request
212
215
  method: :get
213
- uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/charge-create-1296674173/charges/d6a8833fc6d144ccb2f35bf55d29df6c.xml
216
+ uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/charge-create-1297746103/charges/d2898fd133c0492684e40a953d5d904f.xml
214
217
  body:
215
218
  headers:
216
219
  authorization:
217
- - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
220
+ - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
218
221
  accept:
219
222
  - application/xml
220
223
  accept-encoding:
@@ -229,11 +232,11 @@
229
232
  message: "OK "
230
233
  headers:
231
234
  x-runtime:
232
- - "78"
235
+ - "192"
233
236
  content-type:
234
237
  - application/xml; charset=utf-8
235
238
  etag:
236
- - "\"6fae388c9450f5a26c1bee90a16cafc8\""
239
+ - "\"ea27652f26d2a3552336fc20cc644ff2\""
237
240
  cache-control:
238
241
  - private, max-age=0, must-revalidate
239
242
  content-length:
@@ -241,22 +244,22 @@
241
244
  server:
242
245
  - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
243
246
  date:
244
- - Thu, 03 Feb 2011 22:18:59 GMT
247
+ - Fri, 11 Mar 2011 18:49:19 GMT
245
248
  connection:
246
249
  - close
247
250
  set-cookie:
248
- - _recurly_session=f7c2a16179c7e89abb4bb839c1fd30c8; domain=.recurly.local; path=/; HttpOnly
251
+ - _recurly_session=34a7bdc7af8e4ac7142c367613c8efda; domain=.recurly.local; path=/; HttpOnly
249
252
  body: |
250
253
  <?xml version="1.0" encoding="UTF-8"?>
251
254
  <charge type="charge">
252
- <id>d6a8833fc6d144ccb2f35bf55d29df6c</id>
253
- <account_code>charge-create-1296674173</account_code>
255
+ <id>d2898fd133c0492684e40a953d5d904f</id>
256
+ <account_code>charge-create-1297746103</account_code>
254
257
  <amount_in_cents type="integer">250</amount_in_cents>
255
- <start_date type="datetime">2011-02-03T22:18:57Z</start_date>
258
+ <start_date type="datetime">2011-03-11T18:49:17Z</start_date>
256
259
  <end_date nil="true" type="datetime"></end_date>
257
260
  <invoice_number nil="true" type="integer"></invoice_number>
258
261
  <description>virtual cow maintence fee</description>
259
- <created_at type="datetime">2011-02-03T22:18:57Z</created_at>
262
+ <created_at type="datetime">2011-03-11T18:49:17Z</created_at>
260
263
  </charge>
261
264
 
262
265
  http_version: "1.1"