recurly 0.4.7 → 0.4.8

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 (77) hide show
  1. data/README.md +6 -0
  2. data/lib/recurly/base.rb +15 -14
  3. data/lib/recurly/subscription.rb +2 -0
  4. data/lib/recurly/version.rb +1 -1
  5. data/spec/config/recurly.yml +4 -10
  6. data/spec/integration/transparent_spec.rb +72 -0
  7. data/spec/unit/transparent_spec.rb +6 -6
  8. data/spec/vcr/account/accept-language-account/{1301979678.yml → 1296674173.yml} +16 -18
  9. data/spec/vcr/account/close/{1301979678.yml → 1296674173.yml} +37 -39
  10. data/spec/vcr/account/create-blank/{1301979678.yml → 1296674173.yml} +8 -12
  11. data/spec/vcr/account/create-duplicate/{1301979678.yml → 1296674173.yml} +21 -27
  12. data/spec/vcr/account/create-min/{1301979678.yml → 1296674173.yml} +16 -18
  13. data/spec/vcr/account/create/{1301979678.yml → 1296674173.yml} +16 -18
  14. data/spec/vcr/account/find/{1301979678.yml → 1296674173.yml} +36 -38
  15. data/spec/vcr/account/list/1296674173.yml +55 -0
  16. data/spec/vcr/account/update/{1301979678.yml → 1296674173.yml} +59 -65
  17. data/spec/vcr/billing/create/{1302025874.yml → 1296690812.yml} +43 -45
  18. data/spec/vcr/billing/destroy/{1302025874.yml → 1296690812.yml} +58 -60
  19. data/spec/vcr/billing/find/{1302025874.yml → 1296690812.yml} +56 -58
  20. data/spec/vcr/billing/update/{1302025874.yml → 1296690812.yml} +59 -61
  21. data/spec/vcr/charge/create/{1297746103.yml → 1296674173.yml} +58 -64
  22. data/spec/vcr/charge/delete-uninvoiced/{1297746103.yml → 1296674173.yml} +66 -72
  23. data/spec/vcr/charge/list-all/{1297746103.yml → 1296674173.yml} +77 -91
  24. data/spec/vcr/charge/list-invoiced/{1297746103.yml → 1296674173.yml} +115 -131
  25. data/spec/vcr/charge/list-pending/{1297746103.yml → 1296674173.yml} +77 -91
  26. data/spec/vcr/charge/lookup/{1297746103.yml → 1296674173.yml} +43 -49
  27. data/spec/vcr/coupon/create/1296688818.yml +183 -0
  28. data/spec/vcr/coupon/create/1296774903.yml +183 -0
  29. data/spec/vcr/coupon/destroy/1296688818.yml +207 -0
  30. data/spec/vcr/coupon/destroy/1296774903.yml +207 -0
  31. data/spec/vcr/{coupon/create/1299714521.yml → credit/create/1296674173.yml} +34 -32
  32. data/spec/vcr/{billing/errors/1302025874.yml → credit/delete/1296674173.yml} +33 -42
  33. data/spec/vcr/{coupon/destroy/1299714521.yml → credit/list/1296674173.yml} +35 -33
  34. data/spec/vcr/credit/lookup/1296674173.yml +121 -0
  35. data/spec/vcr/invoice/create-no-charges/{1297746103.yml → 1296674173.yml} +40 -42
  36. data/spec/vcr/invoice/create/{1297746103.yml → 1296674173.yml} +77 -83
  37. data/spec/vcr/invoice/list/{1297746103.yml → 1296674173.yml} +107 -113
  38. data/spec/vcr/invoice/lookup/{1297746103.yml → 1296674173.yml} +77 -81
  39. data/spec/vcr/plan/all.yml +117 -98
  40. data/spec/vcr/plan/delete/1296674173.yml +225 -0
  41. data/spec/vcr/plan/find.yml +66 -36
  42. data/spec/vcr/plan/update.yml +64 -144
  43. data/spec/vcr/subscription/addons/add/{1301885121.yml → 1296674173.yml} +58 -51
  44. data/spec/vcr/subscription/addons/create/{1301885121.yml → 1296674173.yml} +58 -51
  45. data/spec/vcr/subscription/addons/remove/{1301885121.yml → 1296674173.yml} +58 -51
  46. data/spec/vcr/subscription/cancel-with-code/{1301881900.yml → 1296674173.yml} +135 -133
  47. data/spec/vcr/subscription/cancel/{1301881900.yml → 1296674173.yml} +117 -114
  48. data/spec/vcr/subscription/change1/{1301881900.yml → 1296674173.yml} +113 -110
  49. data/spec/vcr/subscription/change2/{1301881900.yml → 1296674173.yml} +112 -109
  50. data/spec/vcr/subscription/create/{1301881900.yml → 1296674173.yml} +65 -59
  51. data/spec/vcr/subscription/find/{1301881900.yml → 1296674173.yml} +81 -76
  52. data/spec/vcr/subscription/reactivate/{1301881900.yml → 1296674173.yml} +127 -124
  53. data/spec/vcr/subscription/refund-full/1296674173.yml +400 -0
  54. data/spec/vcr/subscription/refund-none/{1301881900.yml → 1296674173.yml} +106 -102
  55. data/spec/vcr/subscription/refund-partial/1296674173.yml +400 -0
  56. data/spec/vcr/transaction/all/{1301883347.yml → 1296674173.yml} +126 -126
  57. data/spec/vcr/transaction/create-no-account/{1301883347.yml → 1296674173.yml} +16 -16
  58. data/spec/vcr/transaction/create-with-account/{1301883347.yml → 1296674173.yml} +45 -51
  59. data/spec/vcr/transaction/list-filled/{1301883347.yml → 1296674173.yml} +91 -221
  60. data/spec/vcr/transaction/list-initial/{1301883347.yml → 1296674173.yml} +44 -46
  61. data/spec/vcr/transaction/lookup/{1301883347.yml → 1296674173.yml} +107 -121
  62. data/spec/vcr/transaction/refund/{1301883347.yml → 1296674173.yml} +57 -63
  63. data/spec/vcr/transaction/void/{1301883347.yml → 1296674173.yml} +69 -75
  64. data/spec/vcr/transparent/post-url/1311127536.yml +0 -0
  65. data/spec/vcr/transparent/post-url/1311127583.yml +0 -0
  66. data/spec/vcr/transparent/post-url/1311128042.yml +0 -0
  67. data/spec/vcr/transparent/post-url/1311128073.yml +0 -0
  68. data/spec/vcr/transparent/post-url/1311128087.yml +0 -0
  69. metadata +97 -155
  70. data/spec/vcr/account/list/1301979678.yml +0 -1588
  71. data/spec/vcr/credit/create/1299714599.yml +0 -186
  72. data/spec/vcr/credit/delete/1299714599.yml +0 -265
  73. data/spec/vcr/credit/list/1299714599.yml +0 -330
  74. data/spec/vcr/credit/lookup/1299714599.yml +0 -186
  75. data/spec/vcr/subscription/refund-full/1301881900.yml +0 -334
  76. data/spec/vcr/subscription/refund-partial/1301881900.yml +0 -334
  77. data/spec/vcr/transparent/post-url/1301879142.yml +0 -129
@@ -2,31 +2,27 @@
2
2
  - !ruby/struct:VCR::HTTPInteraction
3
3
  request: !ruby/struct:VCR::Request
4
4
  method: :post
5
- uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts.xml
5
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.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-1302025874</account-code>
9
+ <account-code>billing-update-1296690812</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>
18
14
  <accept-language type="yaml" nil="true"></accept-language>
19
15
  </account>
20
16
 
21
17
  headers:
22
18
  authorization:
23
- - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
24
- user-agent:
25
- - Recurly Ruby Client v0.4.6
19
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
26
20
  content-type:
27
21
  - application/xml
28
22
  accept:
29
23
  - "*/*"
24
+ user-agent:
25
+ - Ruby
30
26
  connection:
31
27
  - close
32
28
  response: !ruby/struct:VCR::Response
@@ -37,26 +33,28 @@
37
33
  cache-control:
38
34
  - no-cache
39
35
  location:
40
- - http://app.recurly.local:3000/accounts/billing-update-1302025874
36
+ - http://litle-test.recurly.local:3000/accounts/billing-update-1296690812
41
37
  x-runtime:
42
- - "444"
38
+ - "571"
43
39
  content-type:
44
40
  - application/xml; charset=utf-8
45
41
  content-length:
46
42
  - "583"
47
43
  server:
48
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
44
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
49
45
  date:
50
- - Thu, 21 Apr 2011 17:59:20 GMT
46
+ - Thu, 03 Feb 2011 22:17:42 GMT
51
47
  connection:
52
48
  - close
53
49
  set-cookie:
54
- - _recurly_session=5a050831be8f77fdf7e75ffe753cb425; domain=.recurly.local; path=/; HttpOnly
50
+ - account_credentials=ca1bc2a7db5c0adebc913fcceaf5067325526889751bb9f5ae90130b62e808a7b4d28e7936863967610fdf0c47a7667aa9202de29ff2243f5f0f88b1b8fa238b%3A%3A; domain=.recurly.local; path=/
51
+ - ""
52
+ - _recurly_session=537b709b2fbbf7c87376e456b05831f3; domain=.recurly.local; path=/; HttpOnly
55
53
  body: |
56
54
  <?xml version="1.0" encoding="UTF-8"?>
57
55
  <account>
58
- <id>billing-update-1302025874</id>
59
- <account_code>billing-update-1302025874</account_code>
56
+ <id>billing-update-1296690812</id>
57
+ <account_code>billing-update-1296690812</account_code>
60
58
  <username></username>
61
59
  <email>verena@test.com</email>
62
60
  <first_name>Verena</first_name>
@@ -64,8 +62,8 @@
64
62
  <company_name>Recurly Ruby Gem</company_name>
65
63
  <balance_in_cents type="integer">0</balance_in_cents>
66
64
  <closed type="boolean">false</closed>
67
- <hosted_login_token>2ab23d21d6c1475ba07eb21a576c077e</hosted_login_token>
68
- <created_at type="datetime">2011-04-21T17:59:20Z</created_at>
65
+ <hosted_login_token>ddf65b6b20e94a99ae41c128b4523e34</hosted_login_token>
66
+ <created_at type="datetime">2011-02-03T22:17:42Z</created_at>
69
67
  <state>active</state>
70
68
  </account>
71
69
 
@@ -73,12 +71,10 @@
73
71
  - !ruby/struct:VCR::HTTPInteraction
74
72
  request: !ruby/struct:VCR::Request
75
73
  method: :put
76
- uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/billing-update-1302025874/billing_info.xml
74
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/billing-update-1296690812/billing_info.xml
77
75
  body: |
78
76
  <?xml version="1.0" encoding="UTF-8"?>
79
77
  <billing-info>
80
- <first-name>Verena</first-name>
81
- <last-name>Test</last-name>
82
78
  <address1>123 Test St</address1>
83
79
  <city>San Francisco</city>
84
80
  <state>CA</state>
@@ -87,21 +83,23 @@
87
83
  <credit-card>
88
84
  <number>4111111111111111</number>
89
85
  <year type="integer">2012</year>
90
- <month type="integer">4</month>
86
+ <month type="integer">2</month>
91
87
  <verification-value>123</verification-value>
92
88
  </credit-card>
93
- <account-code>billing-update-1302025874</account-code>
89
+ <account-code>billing-update-1296690812</account-code>
90
+ <first-name>Verena</first-name>
91
+ <last-name>Test</last-name>
94
92
  </billing-info>
95
93
 
96
94
  headers:
97
95
  authorization:
98
- - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
99
- user-agent:
100
- - Recurly Ruby Client v0.4.6
96
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
101
97
  content-type:
102
98
  - application/xml
103
99
  accept:
104
100
  - "*/*"
101
+ user-agent:
102
+ - Ruby
105
103
  connection:
106
104
  - close
107
105
  response: !ruby/struct:VCR::Response
@@ -110,27 +108,27 @@
110
108
  message: "OK "
111
109
  headers:
112
110
  x-runtime:
113
- - "1476"
111
+ - "1559"
114
112
  content-type:
115
113
  - application/xml; charset=utf-8
116
114
  etag:
117
- - "\"17cf687138432caf0a4f399caf910c31\""
115
+ - "\"b5499bcd45b7f6f045575a212799805c\""
118
116
  cache-control:
119
117
  - private, max-age=0, must-revalidate
120
118
  content-length:
121
119
  - "640"
122
120
  server:
123
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
121
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
124
122
  date:
125
- - Thu, 21 Apr 2011 17:59:23 GMT
123
+ - Thu, 03 Feb 2011 22:17:45 GMT
126
124
  connection:
127
125
  - close
128
126
  set-cookie:
129
- - _recurly_session=8775b6e38c0c5e94dd99095da88d25da; domain=.recurly.local; path=/; HttpOnly
127
+ - _recurly_session=5e91140311ec8c5366449955bba2e1c7; domain=.recurly.local; path=/; HttpOnly
130
128
  body: |
131
129
  <?xml version="1.0" encoding="UTF-8"?>
132
130
  <billing_info>
133
- <account_code>billing-update-1302025874</account_code>
131
+ <account_code>billing-update-1296690812</account_code>
134
132
  <first_name>Verena</first_name>
135
133
  <last_name>Test</last_name>
136
134
  <address1>123 Test St</address1>
@@ -145,22 +143,20 @@
145
143
  <credit_card>
146
144
  <type>visa</type>
147
145
  <last_four>1111</last_four>
148
- <month type="integer">4</month>
146
+ <month type="integer">2</month>
149
147
  <year type="integer">2012</year>
150
148
  </credit_card>
151
- <updated_at type="datetime">2011-04-21T17:59:23Z</updated_at>
149
+ <updated_at type="datetime">2011-02-03T22:17:45Z</updated_at>
152
150
  </billing_info>
153
151
 
154
152
  http_version: "1.1"
155
153
  - !ruby/struct:VCR::HTTPInteraction
156
154
  request: !ruby/struct:VCR::Request
157
155
  method: :put
158
- uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/billing-update-1302025874/billing_info.xml
156
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/billing-update-1296690812/billing_info.xml
159
157
  body: |
160
158
  <?xml version="1.0" encoding="UTF-8"?>
161
159
  <billing-info>
162
- <first-name>Verena</first-name>
163
- <last-name>Test</last-name>
164
160
  <address1>1st Ave South, Apt 5001</address1>
165
161
  <city>San Francisco</city>
166
162
  <state>CA</state>
@@ -169,20 +165,22 @@
169
165
  <credit-card>
170
166
  <number>4111111111111111</number>
171
167
  <year type="integer">2012</year>
172
- <month type="integer">4</month>
168
+ <month type="integer">2</month>
173
169
  <verification-value>123</verification-value>
174
170
  </credit-card>
171
+ <first-name>Verena</first-name>
172
+ <last-name>Test</last-name>
175
173
  </billing-info>
176
174
 
177
175
  headers:
178
176
  authorization:
179
- - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
180
- user-agent:
181
- - Recurly Ruby Client v0.4.6
177
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
182
178
  content-type:
183
179
  - application/xml
184
180
  accept:
185
181
  - "*/*"
182
+ user-agent:
183
+ - Ruby
186
184
  connection:
187
185
  - close
188
186
  response: !ruby/struct:VCR::Response
@@ -191,27 +189,27 @@
191
189
  message: "OK "
192
190
  headers:
193
191
  x-runtime:
194
- - "1929"
192
+ - "1979"
195
193
  content-type:
196
194
  - application/xml; charset=utf-8
197
195
  etag:
198
- - "\"0ca269af2768267c57a407dbacf58a17\""
196
+ - "\"b5da767b374f03be98a084a190d101cc\""
199
197
  cache-control:
200
198
  - private, max-age=0, must-revalidate
201
199
  content-length:
202
200
  - "652"
203
201
  server:
204
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
202
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
205
203
  date:
206
- - Thu, 21 Apr 2011 17:59:27 GMT
204
+ - Thu, 03 Feb 2011 22:17:49 GMT
207
205
  connection:
208
206
  - close
209
207
  set-cookie:
210
- - _recurly_session=206bf407399d647dd7d1361ff2819d7a; domain=.recurly.local; path=/; HttpOnly
208
+ - _recurly_session=b1185c29f260f871d91f9a4fadd8f0f2; domain=.recurly.local; path=/; HttpOnly
211
209
  body: |
212
210
  <?xml version="1.0" encoding="UTF-8"?>
213
211
  <billing_info>
214
- <account_code>billing-update-1302025874</account_code>
212
+ <account_code>billing-update-1296690812</account_code>
215
213
  <first_name>Verena</first_name>
216
214
  <last_name>Test</last_name>
217
215
  <address1>1st Ave South, Apt 5001</address1>
@@ -226,27 +224,27 @@
226
224
  <credit_card>
227
225
  <type>visa</type>
228
226
  <last_four>1111</last_four>
229
- <month type="integer">4</month>
227
+ <month type="integer">2</month>
230
228
  <year type="integer">2012</year>
231
229
  </credit_card>
232
- <updated_at type="datetime">2011-04-21T17:59:27Z</updated_at>
230
+ <updated_at type="datetime">2011-02-03T22:17:49Z</updated_at>
233
231
  </billing_info>
234
232
 
235
233
  http_version: "1.1"
236
234
  - !ruby/struct:VCR::HTTPInteraction
237
235
  request: !ruby/struct:VCR::Request
238
236
  method: :get
239
- uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/billing-update-1302025874/billing_info.xml
237
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/billing-update-1296690812/billing_info.xml
240
238
  body:
241
239
  headers:
242
240
  authorization:
243
- - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
244
- user-agent:
245
- - Recurly Ruby Client v0.4.6
241
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
246
242
  accept:
247
243
  - application/xml
248
244
  accept-encoding:
249
245
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
246
+ user-agent:
247
+ - Ruby
250
248
  connection:
251
249
  - close
252
250
  response: !ruby/struct:VCR::Response
@@ -255,27 +253,27 @@
255
253
  message: "OK "
256
254
  headers:
257
255
  x-runtime:
258
- - "218"
256
+ - "194"
259
257
  content-type:
260
258
  - application/xml; charset=utf-8
261
259
  etag:
262
- - "\"0ca269af2768267c57a407dbacf58a17\""
260
+ - "\"b5da767b374f03be98a084a190d101cc\""
263
261
  cache-control:
264
262
  - private, max-age=0, must-revalidate
265
263
  content-length:
266
264
  - "652"
267
265
  server:
268
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
266
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
269
267
  date:
270
- - Thu, 21 Apr 2011 17:59:29 GMT
268
+ - Thu, 03 Feb 2011 22:17:51 GMT
271
269
  connection:
272
270
  - close
273
271
  set-cookie:
274
- - _recurly_session=a66416c6c86fd67bceaf5306f940ae98; domain=.recurly.local; path=/; HttpOnly
272
+ - _recurly_session=21ced1f6e0594169c7c507fe325d5735; domain=.recurly.local; path=/; HttpOnly
275
273
  body: |
276
274
  <?xml version="1.0" encoding="UTF-8"?>
277
275
  <billing_info>
278
- <account_code>billing-update-1302025874</account_code>
276
+ <account_code>billing-update-1296690812</account_code>
279
277
  <first_name>Verena</first_name>
280
278
  <last_name>Test</last_name>
281
279
  <address1>1st Ave South, Apt 5001</address1>
@@ -290,10 +288,10 @@
290
288
  <credit_card>
291
289
  <type>visa</type>
292
290
  <last_four>1111</last_four>
293
- <month type="integer">4</month>
291
+ <month type="integer">2</month>
294
292
  <year type="integer">2012</year>
295
293
  </credit_card>
296
- <updated_at type="datetime">2011-04-21T17:59:27Z</updated_at>
294
+ <updated_at type="datetime">2011-02-03T22:17:49Z</updated_at>
297
295
  </billing_info>
298
296
 
299
297
  http_version: "1.1"
@@ -2,31 +2,27 @@
2
2
  - !ruby/struct:VCR::HTTPInteraction
3
3
  request: !ruby/struct:VCR::Request
4
4
  method: :post
5
- uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts.xml
5
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.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-1297746103</account-code>
9
+ <account-code>charge-create-1296674173</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>
18
14
  <accept-language type="yaml" nil="true"></accept-language>
19
15
  </account>
20
16
 
21
17
  headers:
22
18
  authorization:
23
- - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
24
- user-agent:
25
- - Recurly Ruby Client v0.4.6
19
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
26
20
  content-type:
27
21
  - application/xml
28
22
  accept:
29
23
  - "*/*"
24
+ user-agent:
25
+ - Ruby
30
26
  connection:
31
27
  - close
32
28
  response: !ruby/struct:VCR::Response
@@ -37,26 +33,28 @@
37
33
  cache-control:
38
34
  - no-cache
39
35
  location:
40
- - http://app.recurly.local:3000/accounts/charge-create-1297746103
36
+ - http://litle-test.recurly.local:3000/accounts/charge-create-1296674173
41
37
  x-runtime:
42
- - "375"
38
+ - "617"
43
39
  content-type:
44
40
  - application/xml; charset=utf-8
45
41
  content-length:
46
42
  - "581"
47
43
  server:
48
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
44
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
49
45
  date:
50
- - Thu, 21 Apr 2011 18:00:24 GMT
46
+ - Thu, 03 Feb 2011 22:18:52 GMT
51
47
  connection:
52
48
  - close
53
49
  set-cookie:
54
- - _recurly_session=26e1687f3b1582522e1b63c54d4342a1; domain=.recurly.local; path=/; HttpOnly
50
+ - account_credentials=ac2d3ff26a5cc9fbce9ab7db67e65967f2a39283fa32485f57d48e13e6ef18c57f1bbf3011f920f70e7812006be532b30449ed01321226803b75a439107324ab%3A%3A; domain=.recurly.local; path=/
51
+ - ""
52
+ - _recurly_session=113f5be12cb23c0fd167532d10b249a9; domain=.recurly.local; path=/; HttpOnly
55
53
  body: |
56
54
  <?xml version="1.0" encoding="UTF-8"?>
57
55
  <account>
58
- <id>charge-create-1297746103</id>
59
- <account_code>charge-create-1297746103</account_code>
56
+ <id>charge-create-1296674173</id>
57
+ <account_code>charge-create-1296674173</account_code>
60
58
  <username></username>
61
59
  <email>verena@test.com</email>
62
60
  <first_name>Verena</first_name>
@@ -64,8 +62,8 @@
64
62
  <company_name>Recurly Ruby Gem</company_name>
65
63
  <balance_in_cents type="integer">0</balance_in_cents>
66
64
  <closed type="boolean">false</closed>
67
- <hosted_login_token>d98514934df04438b5eaacfe7354424b</hosted_login_token>
68
- <created_at type="datetime">2011-04-21T18:00:24Z</created_at>
65
+ <hosted_login_token>27ecd1988c45454083103fd7b342eaa1</hosted_login_token>
66
+ <created_at type="datetime">2011-02-03T22:18:52Z</created_at>
69
67
  <state>active</state>
70
68
  </account>
71
69
 
@@ -73,12 +71,10 @@
73
71
  - !ruby/struct:VCR::HTTPInteraction
74
72
  request: !ruby/struct:VCR::Request
75
73
  method: :put
76
- uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/charge-create-1297746103/billing_info.xml
74
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/charge-create-1296674173/billing_info.xml
77
75
  body: |
78
76
  <?xml version="1.0" encoding="UTF-8"?>
79
77
  <billing-info>
80
- <first-name>Verena</first-name>
81
- <last-name>Test</last-name>
82
78
  <address1>123 Test St</address1>
83
79
  <city>San Francisco</city>
84
80
  <state>CA</state>
@@ -87,21 +83,23 @@
87
83
  <credit-card>
88
84
  <number>4111111111111111</number>
89
85
  <year type="integer">2012</year>
90
- <month type="integer">4</month>
86
+ <month type="integer">2</month>
91
87
  <verification-value>123</verification-value>
92
88
  </credit-card>
93
- <account-code>charge-create-1297746103</account-code>
89
+ <account-code>charge-create-1296674173</account-code>
90
+ <first-name>Verena</first-name>
91
+ <last-name>Test</last-name>
94
92
  </billing-info>
95
93
 
96
94
  headers:
97
95
  authorization:
98
- - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
99
- user-agent:
100
- - Recurly Ruby Client v0.4.6
96
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
101
97
  content-type:
102
98
  - application/xml
103
99
  accept:
104
100
  - "*/*"
101
+ user-agent:
102
+ - Ruby
105
103
  connection:
106
104
  - close
107
105
  response: !ruby/struct:VCR::Response
@@ -110,27 +108,27 @@
110
108
  message: "OK "
111
109
  headers:
112
110
  x-runtime:
113
- - "1465"
111
+ - "1617"
114
112
  content-type:
115
113
  - application/xml; charset=utf-8
116
114
  etag:
117
- - "\"bcb5a20c46151deaeeb306f4d76f23e7\""
115
+ - "\"071e9bdb8fbbd9648ed0d753efae29f6\""
118
116
  cache-control:
119
117
  - private, max-age=0, must-revalidate
120
118
  content-length:
121
119
  - "639"
122
120
  server:
123
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
121
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
124
122
  date:
125
- - Thu, 21 Apr 2011 18:00:27 GMT
123
+ - Thu, 03 Feb 2011 22:18:55 GMT
126
124
  connection:
127
125
  - close
128
126
  set-cookie:
129
- - _recurly_session=d6987118281cce9ddc501805e2185552; domain=.recurly.local; path=/; HttpOnly
127
+ - _recurly_session=b11382935805a828d264b7aa8220f6a4; domain=.recurly.local; path=/; HttpOnly
130
128
  body: |
131
129
  <?xml version="1.0" encoding="UTF-8"?>
132
130
  <billing_info>
133
- <account_code>charge-create-1297746103</account_code>
131
+ <account_code>charge-create-1296674173</account_code>
134
132
  <first_name>Verena</first_name>
135
133
  <last_name>Test</last_name>
136
134
  <address1>123 Test St</address1>
@@ -145,17 +143,17 @@
145
143
  <credit_card>
146
144
  <type>visa</type>
147
145
  <last_four>1111</last_four>
148
- <month type="integer">4</month>
146
+ <month type="integer">2</month>
149
147
  <year type="integer">2012</year>
150
148
  </credit_card>
151
- <updated_at type="datetime">2011-04-21T18:00:27Z</updated_at>
149
+ <updated_at type="datetime">2011-02-03T22:18:55Z</updated_at>
152
150
  </billing_info>
153
151
 
154
152
  http_version: "1.1"
155
153
  - !ruby/struct:VCR::HTTPInteraction
156
154
  request: !ruby/struct:VCR::Request
157
155
  method: :post
158
- uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/charge-create-1297746103/charges.xml
156
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/charge-create-1296674173/charges.xml
159
157
  body: |
160
158
  <?xml version="1.0" encoding="UTF-8"?>
161
159
  <charge>
@@ -165,13 +163,13 @@
165
163
 
166
164
  headers:
167
165
  authorization:
168
- - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
169
- user-agent:
170
- - Recurly Ruby Client v0.4.6
166
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
171
167
  content-type:
172
168
  - application/xml
173
169
  accept:
174
170
  - "*/*"
171
+ user-agent:
172
+ - Ruby
175
173
  connection:
176
174
  - close
177
175
  response: !ruby/struct:VCR::Response
@@ -182,49 +180,47 @@
182
180
  cache-control:
183
181
  - no-cache
184
182
  x-runtime:
185
- - "241"
183
+ - "529"
186
184
  content-type:
187
185
  - application/xml; charset=utf-8
188
186
  content-length:
189
- - "630"
187
+ - "524"
190
188
  server:
191
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
189
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
192
190
  date:
193
- - Thu, 21 Apr 2011 18:00:29 GMT
191
+ - Thu, 03 Feb 2011 22:18:57 GMT
194
192
  connection:
195
193
  - close
196
194
  set-cookie:
197
- - _recurly_session=3516530d29a368fde0dcc04032957805; domain=.recurly.local; path=/; HttpOnly
195
+ - _recurly_session=4815ded9fb580deec6d468c20b2d1137; domain=.recurly.local; path=/; HttpOnly
198
196
  body: |
199
197
  <?xml version="1.0" encoding="UTF-8"?>
200
198
  <charge type="charge">
201
- <id>1a74ddf275404e1b818ee44097976dcd</id>
202
- <account_code>charge-create-1297746103</account_code>
203
- <quantity type="integer">1</quantity>
204
- <unit_amount_in_cents type="integer">250</unit_amount_in_cents>
199
+ <id>d6a8833fc6d144ccb2f35bf55d29df6c</id>
200
+ <account_code>charge-create-1296674173</account_code>
205
201
  <amount_in_cents type="integer">250</amount_in_cents>
206
- <start_date type="datetime">2011-04-21T18:00:29Z</start_date>
202
+ <start_date type="datetime">2011-02-03T22:18:57Z</start_date>
207
203
  <end_date nil="true" type="datetime"></end_date>
208
204
  <invoice_number nil="true" type="integer"></invoice_number>
209
205
  <description>virtual cow maintence fee</description>
210
- <created_at type="datetime">2011-04-21T18:00:29Z</created_at>
206
+ <created_at type="datetime">2011-02-03T22:18:57Z</created_at>
211
207
  </charge>
212
208
 
213
209
  http_version: "1.1"
214
210
  - !ruby/struct:VCR::HTTPInteraction
215
211
  request: !ruby/struct:VCR::Request
216
212
  method: :get
217
- uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/charge-create-1297746103/charges/1a74ddf275404e1b818ee44097976dcd.xml
213
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/charge-create-1296674173/charges/d6a8833fc6d144ccb2f35bf55d29df6c.xml
218
214
  body:
219
215
  headers:
220
216
  authorization:
221
- - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
222
- user-agent:
223
- - Recurly Ruby Client v0.4.6
217
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
224
218
  accept:
225
219
  - application/xml
226
220
  accept-encoding:
227
221
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
222
+ user-agent:
223
+ - Ruby
228
224
  connection:
229
225
  - close
230
226
  response: !ruby/struct:VCR::Response
@@ -237,32 +233,30 @@
237
233
  content-type:
238
234
  - application/xml; charset=utf-8
239
235
  etag:
240
- - "\"6c50fe86b37f71020d004126d77b655b\""
236
+ - "\"6fae388c9450f5a26c1bee90a16cafc8\""
241
237
  cache-control:
242
238
  - private, max-age=0, must-revalidate
243
239
  content-length:
244
- - "630"
240
+ - "524"
245
241
  server:
246
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
242
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
247
243
  date:
248
- - Thu, 21 Apr 2011 18:00:30 GMT
244
+ - Thu, 03 Feb 2011 22:18:59 GMT
249
245
  connection:
250
246
  - close
251
247
  set-cookie:
252
- - _recurly_session=fc20b7f37743ccd461fd9f6e464e084a; domain=.recurly.local; path=/; HttpOnly
248
+ - _recurly_session=f7c2a16179c7e89abb4bb839c1fd30c8; domain=.recurly.local; path=/; HttpOnly
253
249
  body: |
254
250
  <?xml version="1.0" encoding="UTF-8"?>
255
251
  <charge type="charge">
256
- <id>1a74ddf275404e1b818ee44097976dcd</id>
257
- <account_code>charge-create-1297746103</account_code>
258
- <quantity type="integer">1</quantity>
259
- <unit_amount_in_cents type="integer">250</unit_amount_in_cents>
252
+ <id>d6a8833fc6d144ccb2f35bf55d29df6c</id>
253
+ <account_code>charge-create-1296674173</account_code>
260
254
  <amount_in_cents type="integer">250</amount_in_cents>
261
- <start_date type="datetime">2011-04-21T18:00:29Z</start_date>
255
+ <start_date type="datetime">2011-02-03T22:18:57Z</start_date>
262
256
  <end_date nil="true" type="datetime"></end_date>
263
257
  <invoice_number nil="true" type="integer"></invoice_number>
264
258
  <description>virtual cow maintence fee</description>
265
- <created_at type="datetime">2011-04-21T18:00:29Z</created_at>
259
+ <created_at type="datetime">2011-02-03T22:18:57Z</created_at>
266
260
  </charge>
267
261
 
268
262
  http_version: "1.1"