recurly 0.4.5 → 0.4.6

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 (67) hide show
  1. data/lib/recurly/base.rb +11 -4
  2. data/lib/recurly/billing_info.rb +2 -1
  3. data/lib/recurly/charge.rb +3 -1
  4. data/lib/recurly/credit.rb +3 -1
  5. data/lib/recurly/subscription.rb +1 -1
  6. data/lib/recurly/version.rb +1 -1
  7. data/spec/config/recurly.yml +4 -4
  8. data/spec/unit/billing_info_spec.rb +1 -0
  9. data/spec/unit/charge_spec.rb +2 -0
  10. data/spec/unit/credit_spec.rb +2 -0
  11. data/spec/unit/subscription_spec.rb +1 -1
  12. data/spec/vcr/account/accept-language-account/1301979678.yml +14 -12
  13. data/spec/vcr/account/close/1301979678.yml +41 -35
  14. data/spec/vcr/account/create-blank/1301979678.yml +11 -9
  15. data/spec/vcr/account/create-duplicate/1301979678.yml +25 -21
  16. data/spec/vcr/account/create-min/1301979678.yml +14 -12
  17. data/spec/vcr/account/create/1301979678.yml +14 -12
  18. data/spec/vcr/account/find/1301979678.yml +40 -34
  19. data/spec/vcr/account/list/1301979678.yml +348 -341
  20. data/spec/vcr/account/update/1301979678.yml +61 -53
  21. data/spec/vcr/billing/create/1302025874.yml +42 -36
  22. data/spec/vcr/billing/destroy/1302025874.yml +65 -55
  23. data/spec/vcr/billing/errors/1302025874.yml +25 -21
  24. data/spec/vcr/billing/find/1302025874.yml +56 -48
  25. data/spec/vcr/billing/update/1302025874.yml +56 -48
  26. data/spec/vcr/charge/create/1297746103.yml +65 -53
  27. data/spec/vcr/charge/delete-uninvoiced/1297746103.yml +85 -69
  28. data/spec/vcr/charge/list-all/1297746103.yml +97 -75
  29. data/spec/vcr/charge/list-invoiced/1297746103.yml +143 -115
  30. data/spec/vcr/charge/list-pending/1297746103.yml +97 -75
  31. data/spec/vcr/charge/lookup/1297746103.yml +51 -41
  32. data/spec/vcr/coupon/create/1299714521.yml +28 -88
  33. data/spec/vcr/coupon/destroy/1299714521.yml +25 -107
  34. data/spec/vcr/credit/create/1299714599.yml +51 -41
  35. data/spec/vcr/credit/delete/1299714599.yml +74 -60
  36. data/spec/vcr/credit/list/1299714599.yml +97 -75
  37. data/spec/vcr/credit/lookup/1299714599.yml +51 -41
  38. data/spec/vcr/invoice/create-no-charges/1297746103.yml +39 -33
  39. data/spec/vcr/invoice/create/1297746103.yml +86 -72
  40. data/spec/vcr/invoice/list/1297746103.yml +121 -103
  41. data/spec/vcr/invoice/lookup/1297746103.yml +84 -72
  42. data/spec/vcr/plan/all.yml +108 -134
  43. data/spec/vcr/plan/find.yml +47 -95
  44. data/spec/vcr/plan/update.yml +152 -66
  45. data/spec/vcr/subscription/addons/add/1301885121.yml +48 -310
  46. data/spec/vcr/subscription/addons/create/1301885121.yml +48 -151
  47. data/spec/vcr/subscription/addons/remove/1301885121.yml +48 -279
  48. data/spec/vcr/subscription/cancel-with-code/1301881900.yml +132 -135
  49. data/spec/vcr/subscription/cancel/1301881900.yml +111 -117
  50. data/spec/vcr/subscription/change1/1301881900.yml +107 -113
  51. data/spec/vcr/subscription/change2/1301881900.yml +107 -113
  52. data/spec/vcr/subscription/create/1301881900.yml +50 -65
  53. data/spec/vcr/subscription/find/1301881900.yml +69 -81
  54. data/spec/vcr/subscription/reactivate/1301881900.yml +122 -126
  55. data/spec/vcr/subscription/refund-full/1301881900.yml +84 -153
  56. data/spec/vcr/subscription/refund-none/1301881900.yml +101 -108
  57. data/spec/vcr/subscription/refund-partial/1301881900.yml +84 -153
  58. data/spec/vcr/transaction/all/1301883347.yml +86 -84
  59. data/spec/vcr/transaction/create-no-account/1301883347.yml +15 -13
  60. data/spec/vcr/transaction/create-with-account/1301883347.yml +43 -37
  61. data/spec/vcr/transaction/list-filled/1301883347.yml +115 -101
  62. data/spec/vcr/transaction/list-initial/1301883347.yml +43 -37
  63. data/spec/vcr/transaction/lookup/1301883347.yml +118 -102
  64. data/spec/vcr/transaction/refund/1301883347.yml +58 -50
  65. data/spec/vcr/transaction/void/1301883347.yml +75 -82
  66. data/spec/vcr/transparent/post-url/1301879142.yml +29 -25
  67. metadata +3 -3
@@ -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%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts.xml
5
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts.xml
6
6
  body: |
7
7
  <?xml version="1.0" encoding="UTF-8"?>
8
8
  <account>
@@ -20,36 +20,38 @@
20
20
 
21
21
  headers:
22
22
  authorization:
23
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
23
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
24
+ user-agent:
25
+ - Recurly Ruby Client v0.4.6
24
26
  content-type:
25
27
  - application/xml
26
28
  accept:
27
29
  - "*/*"
28
- user-agent:
29
- - Ruby
30
30
  connection:
31
31
  - close
32
32
  response: !ruby/struct:VCR::Response
33
33
  status: !ruby/struct:VCR::ResponseStatus
34
34
  code: 201
35
- message: Created
35
+ message: "Created "
36
36
  headers:
37
37
  cache-control:
38
38
  - no-cache
39
39
  location:
40
40
  - http://app.recurly.local:3000/accounts/charge-delete-uinvoiced-1297746103
41
41
  x-runtime:
42
- - "403"
42
+ - "246"
43
43
  content-type:
44
44
  - application/xml; charset=utf-8
45
45
  content-length:
46
46
  - "601"
47
- set-cookie:
48
- - _recurly_session=0e00fe416bfcdc26523d31770d3a6df1; domain=.recurly.local; path=/; HttpOnly
47
+ server:
48
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
49
+ date:
50
+ - Thu, 21 Apr 2011 18:00:38 GMT
49
51
  connection:
50
52
  - close
51
- server:
52
- - thin 1.2.7 codename No Hup
53
+ set-cookie:
54
+ - _recurly_session=2e5aee316690830f9dd2b67bfb0f0865; domain=.recurly.local; path=/; HttpOnly
53
55
  body: |
54
56
  <?xml version="1.0" encoding="UTF-8"?>
55
57
  <account>
@@ -62,8 +64,8 @@
62
64
  <company_name>Recurly Ruby Gem</company_name>
63
65
  <balance_in_cents type="integer">0</balance_in_cents>
64
66
  <closed type="boolean">false</closed>
65
- <hosted_login_token>a7daa2fecca3493596da02cedf8b29b1</hosted_login_token>
66
- <created_at type="datetime">2011-04-05T19:42:12Z</created_at>
67
+ <hosted_login_token>cf5400c1b5d444c48d679c9c032abc35</hosted_login_token>
68
+ <created_at type="datetime">2011-04-21T18:00:38Z</created_at>
67
69
  <state>active</state>
68
70
  </account>
69
71
 
@@ -71,7 +73,7 @@
71
73
  - !ruby/struct:VCR::HTTPInteraction
72
74
  request: !ruby/struct:VCR::Request
73
75
  method: :post
74
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/charge-delete-uinvoiced-1297746103/charges.xml
76
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/charge-delete-uinvoiced-1297746103/charges.xml
75
77
  body: |
76
78
  <?xml version="1.0" encoding="UTF-8"?>
77
79
  <charge>
@@ -81,154 +83,164 @@
81
83
 
82
84
  headers:
83
85
  authorization:
84
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
86
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
87
+ user-agent:
88
+ - Recurly Ruby Client v0.4.6
85
89
  content-type:
86
90
  - application/xml
87
91
  accept:
88
92
  - "*/*"
89
- user-agent:
90
- - Ruby
91
93
  connection:
92
94
  - close
93
95
  response: !ruby/struct:VCR::Response
94
96
  status: !ruby/struct:VCR::ResponseStatus
95
97
  code: 201
96
- message: Created
98
+ message: "Created "
97
99
  headers:
98
100
  cache-control:
99
101
  - no-cache
100
102
  x-runtime:
101
- - "376"
103
+ - "218"
102
104
  content-type:
103
105
  - application/xml; charset=utf-8
104
106
  content-length:
105
- - "527"
106
- set-cookie:
107
- - _recurly_session=8062584b8166a564f2bb68a35b30d4ac; domain=.recurly.local; path=/; HttpOnly
107
+ - "634"
108
+ server:
109
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
110
+ date:
111
+ - Thu, 21 Apr 2011 18:00:40 GMT
108
112
  connection:
109
113
  - close
110
- server:
111
- - thin 1.2.7 codename No Hup
114
+ set-cookie:
115
+ - _recurly_session=2a250b8b78ce5e99928f6f94d1d40112; domain=.recurly.local; path=/; HttpOnly
112
116
  body: |
113
117
  <?xml version="1.0" encoding="UTF-8"?>
114
118
  <charge type="charge">
115
- <id>9a5161861d2c4c46900693925c236656</id>
119
+ <id>7ded2a41c5fe4f998c73d2e2f30e0553</id>
116
120
  <account_code>charge-delete-uinvoiced-1297746103</account_code>
121
+ <quantity type="integer">1</quantity>
122
+ <unit_amount_in_cents type="integer">1315</unit_amount_in_cents>
117
123
  <amount_in_cents type="integer">1315</amount_in_cents>
118
- <start_date type="datetime">2011-04-05T19:42:14Z</start_date>
124
+ <start_date type="datetime">2011-04-21T18:00:40Z</start_date>
119
125
  <end_date nil="true" type="datetime"></end_date>
120
126
  <invoice_number nil="true" type="integer"></invoice_number>
121
127
  <description>inconvenience fee</description>
122
- <created_at type="datetime">2011-04-05T19:42:15Z</created_at>
128
+ <created_at type="datetime">2011-04-21T18:00:40Z</created_at>
123
129
  </charge>
124
130
 
125
131
  http_version: "1.1"
126
132
  - !ruby/struct:VCR::HTTPInteraction
127
133
  request: !ruby/struct:VCR::Request
128
134
  method: :get
129
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/charge-delete-uinvoiced-1297746103/charges/9a5161861d2c4c46900693925c236656.xml
135
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/charge-delete-uinvoiced-1297746103/charges/7ded2a41c5fe4f998c73d2e2f30e0553.xml
130
136
  body:
131
137
  headers:
132
138
  authorization:
133
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
139
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
140
+ user-agent:
141
+ - Recurly Ruby Client v0.4.6
134
142
  accept:
135
143
  - application/xml
136
144
  accept-encoding:
137
145
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
138
- user-agent:
139
- - Ruby
140
146
  connection:
141
147
  - close
142
148
  response: !ruby/struct:VCR::Response
143
149
  status: !ruby/struct:VCR::ResponseStatus
144
150
  code: 200
145
- message: OK
151
+ message: "OK "
146
152
  headers:
147
153
  x-runtime:
148
- - "71"
154
+ - "73"
149
155
  content-type:
150
156
  - application/xml; charset=utf-8
151
157
  etag:
152
- - "\"6f2b124df571f4456cf09c129fb9c8a8\""
158
+ - "\"946365159568a859c72643867112bcb4\""
153
159
  cache-control:
154
160
  - private, max-age=0, must-revalidate
155
161
  content-length:
156
- - "527"
157
- set-cookie:
158
- - _recurly_session=0cdea8db9373be911c77bf51513ecddc; domain=.recurly.local; path=/; HttpOnly
162
+ - "634"
163
+ server:
164
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
165
+ date:
166
+ - Thu, 21 Apr 2011 18:00:42 GMT
159
167
  connection:
160
168
  - close
161
- server:
162
- - thin 1.2.7 codename No Hup
169
+ set-cookie:
170
+ - _recurly_session=0d1138e7d28fd33ddea9593666b98ae0; domain=.recurly.local; path=/; HttpOnly
163
171
  body: |
164
172
  <?xml version="1.0" encoding="UTF-8"?>
165
173
  <charge type="charge">
166
- <id>9a5161861d2c4c46900693925c236656</id>
174
+ <id>7ded2a41c5fe4f998c73d2e2f30e0553</id>
167
175
  <account_code>charge-delete-uinvoiced-1297746103</account_code>
176
+ <quantity type="integer">1</quantity>
177
+ <unit_amount_in_cents type="integer">1315</unit_amount_in_cents>
168
178
  <amount_in_cents type="integer">1315</amount_in_cents>
169
- <start_date type="datetime">2011-04-05T19:42:14Z</start_date>
179
+ <start_date type="datetime">2011-04-21T18:00:40Z</start_date>
170
180
  <end_date nil="true" type="datetime"></end_date>
171
181
  <invoice_number nil="true" type="integer"></invoice_number>
172
182
  <description>inconvenience fee</description>
173
- <created_at type="datetime">2011-04-05T19:42:15Z</created_at>
183
+ <created_at type="datetime">2011-04-21T18:00:40Z</created_at>
174
184
  </charge>
175
185
 
176
186
  http_version: "1.1"
177
187
  - !ruby/struct:VCR::HTTPInteraction
178
188
  request: !ruby/struct:VCR::Request
179
189
  method: :delete
180
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/charge-delete-uinvoiced-1297746103/charges/9a5161861d2c4c46900693925c236656.xml
190
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/charge-delete-uinvoiced-1297746103/charges/7ded2a41c5fe4f998c73d2e2f30e0553.xml
181
191
  body:
182
192
  headers:
183
193
  authorization:
184
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
194
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
195
+ user-agent:
196
+ - Recurly Ruby Client v0.4.6
185
197
  accept:
186
198
  - application/xml
187
- user-agent:
188
- - Ruby
189
199
  connection:
190
200
  - close
191
201
  response: !ruby/struct:VCR::Response
192
202
  status: !ruby/struct:VCR::ResponseStatus
193
203
  code: 200
194
- message: OK
204
+ message: "OK "
195
205
  headers:
196
206
  cache-control:
197
207
  - no-cache
198
208
  x-runtime:
199
- - "65"
209
+ - "199"
200
210
  content-type:
201
211
  - application/xml; charset=utf-8
202
212
  content-length:
203
213
  - "1"
204
- set-cookie:
205
- - _recurly_session=71f9ed2783c75af896651207422b3bc1; domain=.recurly.local; path=/; HttpOnly
214
+ server:
215
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
216
+ date:
217
+ - Thu, 21 Apr 2011 18:00:44 GMT
206
218
  connection:
207
219
  - close
208
- server:
209
- - thin 1.2.7 codename No Hup
220
+ set-cookie:
221
+ - _recurly_session=0673efbd285aca398934d4b6819cbc42; domain=.recurly.local; path=/; HttpOnly
210
222
  body: " "
211
223
  http_version: "1.1"
212
224
  - !ruby/struct:VCR::HTTPInteraction
213
225
  request: !ruby/struct:VCR::Request
214
226
  method: :get
215
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/charge-delete-uinvoiced-1297746103/charges/9a5161861d2c4c46900693925c236656.xml
227
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/charge-delete-uinvoiced-1297746103/charges/7ded2a41c5fe4f998c73d2e2f30e0553.xml
216
228
  body:
217
229
  headers:
218
230
  authorization:
219
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
231
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
232
+ user-agent:
233
+ - Recurly Ruby Client v0.4.6
220
234
  accept:
221
235
  - application/xml
222
236
  accept-encoding:
223
237
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
224
- user-agent:
225
- - Ruby
226
238
  connection:
227
239
  - close
228
240
  response: !ruby/struct:VCR::Response
229
241
  status: !ruby/struct:VCR::ResponseStatus
230
242
  code: 404
231
- message: Not Found
243
+ message: "Not Found "
232
244
  headers:
233
245
  cache-control:
234
246
  - no-cache
@@ -236,12 +248,14 @@
236
248
  - application/xml; charset=utf-8
237
249
  content-length:
238
250
  - "92"
239
- set-cookie:
240
- - _recurly_session=e98fdeb627e172a6f79aeef4eba7ccf7; domain=.recurly.local; path=/; HttpOnly
251
+ server:
252
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
253
+ date:
254
+ - Thu, 21 Apr 2011 18:00:45 GMT
241
255
  connection:
242
256
  - close
243
- server:
244
- - thin 1.2.7 codename No Hup
257
+ set-cookie:
258
+ - _recurly_session=1db82eee499ca0cd1d67ab01746d4033; domain=.recurly.local; path=/; HttpOnly
245
259
  body: |
246
260
  <?xml version="1.0" encoding="UTF-8"?>
247
261
  <errors>
@@ -252,7 +266,7 @@
252
266
  - !ruby/struct:VCR::HTTPInteraction
253
267
  request: !ruby/struct:VCR::Request
254
268
  method: :post
255
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/charge-delete-uinvoiced-1297746103/invoices.xml
269
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/charge-delete-uinvoiced-1297746103/invoices.xml
256
270
  body: |
257
271
  <?xml version="1.0" encoding="UTF-8"?>
258
272
  <invoice>
@@ -260,13 +274,13 @@
260
274
 
261
275
  headers:
262
276
  authorization:
263
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
277
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
278
+ user-agent:
279
+ - Recurly Ruby Client v0.4.6
264
280
  content-type:
265
281
  - application/xml
266
282
  accept:
267
283
  - "*/*"
268
- user-agent:
269
- - Ruby
270
284
  connection:
271
285
  - close
272
286
  response: !ruby/struct:VCR::Response
@@ -277,17 +291,19 @@
277
291
  cache-control:
278
292
  - no-cache
279
293
  x-runtime:
280
- - "346"
294
+ - "204"
281
295
  content-type:
282
296
  - application/xml; charset=utf-8
283
297
  content-length:
284
298
  - "98"
285
- set-cookie:
286
- - _recurly_session=b81699ba19d3bafa4bb89f03ec9b672e; domain=.recurly.local; path=/; HttpOnly
299
+ server:
300
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
301
+ date:
302
+ - Thu, 21 Apr 2011 18:00:47 GMT
287
303
  connection:
288
304
  - close
289
- server:
290
- - thin 1.2.7 codename No Hup
305
+ set-cookie:
306
+ - _recurly_session=8f74b5256cbf489bba9ce4c59b3affc6; domain=.recurly.local; path=/; HttpOnly
291
307
  body: |
292
308
  <?xml version="1.0" encoding="UTF-8"?>
293
309
  <errors>
@@ -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%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts.xml
5
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts.xml
6
6
  body: |
7
7
  <?xml version="1.0" encoding="UTF-8"?>
8
8
  <account>
@@ -20,36 +20,38 @@
20
20
 
21
21
  headers:
22
22
  authorization:
23
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
23
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
24
+ user-agent:
25
+ - Recurly Ruby Client v0.4.6
24
26
  content-type:
25
27
  - application/xml
26
28
  accept:
27
29
  - "*/*"
28
- user-agent:
29
- - Ruby
30
30
  connection:
31
31
  - close
32
32
  response: !ruby/struct:VCR::Response
33
33
  status: !ruby/struct:VCR::ResponseStatus
34
34
  code: 201
35
- message: Created
35
+ message: "Created "
36
36
  headers:
37
37
  cache-control:
38
38
  - no-cache
39
39
  location:
40
40
  - http://app.recurly.local:3000/accounts/charge-list-all-1297746103
41
41
  x-runtime:
42
- - "398"
42
+ - "250"
43
43
  content-type:
44
44
  - application/xml; charset=utf-8
45
45
  content-length:
46
46
  - "585"
47
- set-cookie:
48
- - _recurly_session=cc25cba9d7158ec51d290c4c8798eda8; domain=.recurly.local; path=/; HttpOnly
47
+ server:
48
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
49
+ date:
50
+ - Thu, 21 Apr 2011 17:59:53 GMT
49
51
  connection:
50
52
  - close
51
- server:
52
- - thin 1.2.7 codename No Hup
53
+ set-cookie:
54
+ - _recurly_session=9f0a59226db43e951ad54e10380ce0a5; domain=.recurly.local; path=/; HttpOnly
53
55
  body: |
54
56
  <?xml version="1.0" encoding="UTF-8"?>
55
57
  <account>
@@ -62,8 +64,8 @@
62
64
  <company_name>Recurly Ruby Gem</company_name>
63
65
  <balance_in_cents type="integer">0</balance_in_cents>
64
66
  <closed type="boolean">false</closed>
65
- <hosted_login_token>ed4ac5a7f9954a7485325d8b6d71fff0</hosted_login_token>
66
- <created_at type="datetime">2011-04-05T19:41:06Z</created_at>
67
+ <hosted_login_token>7e424df1b40b42f39c7d165fd70a05ad</hosted_login_token>
68
+ <created_at type="datetime">2011-04-21T17:59:53Z</created_at>
67
69
  <state>active</state>
68
70
  </account>
69
71
 
@@ -71,7 +73,7 @@
71
73
  - !ruby/struct:VCR::HTTPInteraction
72
74
  request: !ruby/struct:VCR::Request
73
75
  method: :post
74
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/charge-list-all-1297746103/charges.xml
76
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/charge-list-all-1297746103/charges.xml
75
77
  body: |
76
78
  <?xml version="1.0" encoding="UTF-8"?>
77
79
  <charge>
@@ -81,52 +83,56 @@
81
83
 
82
84
  headers:
83
85
  authorization:
84
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
86
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
87
+ user-agent:
88
+ - Recurly Ruby Client v0.4.6
85
89
  content-type:
86
90
  - application/xml
87
91
  accept:
88
92
  - "*/*"
89
- user-agent:
90
- - Ruby
91
93
  connection:
92
94
  - close
93
95
  response: !ruby/struct:VCR::Response
94
96
  status: !ruby/struct:VCR::ResponseStatus
95
97
  code: 201
96
- message: Created
98
+ message: "Created "
97
99
  headers:
98
100
  cache-control:
99
101
  - no-cache
100
102
  x-runtime:
101
- - "85"
103
+ - "212"
102
104
  content-type:
103
105
  - application/xml; charset=utf-8
104
106
  content-length:
105
- - "520"
106
- set-cookie:
107
- - _recurly_session=93aa223bc6ea45a19466d44e73f43be1; domain=.recurly.local; path=/; HttpOnly
107
+ - "627"
108
+ server:
109
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
110
+ date:
111
+ - Thu, 21 Apr 2011 17:59:55 GMT
108
112
  connection:
109
113
  - close
110
- server:
111
- - thin 1.2.7 codename No Hup
114
+ set-cookie:
115
+ - _recurly_session=6fa60ed25a85d92d48047dc51e67c7d5; domain=.recurly.local; path=/; HttpOnly
112
116
  body: |
113
117
  <?xml version="1.0" encoding="UTF-8"?>
114
118
  <charge type="charge">
115
- <id>661be7cd42fc40eba728b91a33abbda9</id>
119
+ <id>2db9b79c5df441038993cc9b81d28e46</id>
116
120
  <account_code>charge-list-all-1297746103</account_code>
121
+ <quantity type="integer">1</quantity>
122
+ <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
117
123
  <amount_in_cents type="integer">1000</amount_in_cents>
118
- <start_date type="datetime">2011-04-05T19:41:08Z</start_date>
124
+ <start_date type="datetime">2011-04-21T17:59:55Z</start_date>
119
125
  <end_date nil="true" type="datetime"></end_date>
120
126
  <invoice_number nil="true" type="integer"></invoice_number>
121
127
  <description>charge description</description>
122
- <created_at type="datetime">2011-04-05T19:41:08Z</created_at>
128
+ <created_at type="datetime">2011-04-21T17:59:55Z</created_at>
123
129
  </charge>
124
130
 
125
131
  http_version: "1.1"
126
132
  - !ruby/struct:VCR::HTTPInteraction
127
133
  request: !ruby/struct:VCR::Request
128
134
  method: :post
129
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/charge-list-all-1297746103/charges.xml
135
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/charge-list-all-1297746103/charges.xml
130
136
  body: |
131
137
  <?xml version="1.0" encoding="UTF-8"?>
132
138
  <charge>
@@ -136,52 +142,56 @@
136
142
 
137
143
  headers:
138
144
  authorization:
139
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
145
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
146
+ user-agent:
147
+ - Recurly Ruby Client v0.4.6
140
148
  content-type:
141
149
  - application/xml
142
150
  accept:
143
151
  - "*/*"
144
- user-agent:
145
- - Ruby
146
152
  connection:
147
153
  - close
148
154
  response: !ruby/struct:VCR::Response
149
155
  status: !ruby/struct:VCR::ResponseStatus
150
156
  code: 201
151
- message: Created
157
+ message: "Created "
152
158
  headers:
153
159
  cache-control:
154
160
  - no-cache
155
161
  x-runtime:
156
- - "379"
162
+ - "215"
157
163
  content-type:
158
164
  - application/xml; charset=utf-8
159
165
  content-length:
160
- - "520"
161
- set-cookie:
162
- - _recurly_session=07113ee2d5ca8c866a6f3489f65889f8; domain=.recurly.local; path=/; HttpOnly
166
+ - "627"
167
+ server:
168
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
169
+ date:
170
+ - Thu, 21 Apr 2011 17:59:56 GMT
163
171
  connection:
164
172
  - close
165
- server:
166
- - thin 1.2.7 codename No Hup
173
+ set-cookie:
174
+ - _recurly_session=18fb3cf27f31e0d6384379140be5a515; domain=.recurly.local; path=/; HttpOnly
167
175
  body: |
168
176
  <?xml version="1.0" encoding="UTF-8"?>
169
177
  <charge type="charge">
170
- <id>fdd3b4d88a6f4620962458761e12e0b7</id>
178
+ <id>3c01d223d23d4bd0bf2f745c1b41baf3</id>
171
179
  <account_code>charge-list-all-1297746103</account_code>
180
+ <quantity type="integer">1</quantity>
181
+ <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
172
182
  <amount_in_cents type="integer">1000</amount_in_cents>
173
- <start_date type="datetime">2011-04-05T19:41:11Z</start_date>
183
+ <start_date type="datetime">2011-04-21T17:59:56Z</start_date>
174
184
  <end_date nil="true" type="datetime"></end_date>
175
185
  <invoice_number nil="true" type="integer"></invoice_number>
176
186
  <description>charge description</description>
177
- <created_at type="datetime">2011-04-05T19:41:11Z</created_at>
187
+ <created_at type="datetime">2011-04-21T17:59:56Z</created_at>
178
188
  </charge>
179
189
 
180
190
  http_version: "1.1"
181
191
  - !ruby/struct:VCR::HTTPInteraction
182
192
  request: !ruby/struct:VCR::Request
183
193
  method: :post
184
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/charge-list-all-1297746103/charges.xml
194
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/charge-list-all-1297746103/charges.xml
185
195
  body: |
186
196
  <?xml version="1.0" encoding="UTF-8"?>
187
197
  <charge>
@@ -191,117 +201,129 @@
191
201
 
192
202
  headers:
193
203
  authorization:
194
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
204
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
205
+ user-agent:
206
+ - Recurly Ruby Client v0.4.6
195
207
  content-type:
196
208
  - application/xml
197
209
  accept:
198
210
  - "*/*"
199
- user-agent:
200
- - Ruby
201
211
  connection:
202
212
  - close
203
213
  response: !ruby/struct:VCR::Response
204
214
  status: !ruby/struct:VCR::ResponseStatus
205
215
  code: 201
206
- message: Created
216
+ message: "Created "
207
217
  headers:
208
218
  cache-control:
209
219
  - no-cache
210
220
  x-runtime:
211
- - "370"
221
+ - "215"
212
222
  content-type:
213
223
  - application/xml; charset=utf-8
214
224
  content-length:
215
- - "520"
216
- set-cookie:
217
- - _recurly_session=f5b0ca773992f38cf28900411d695430; domain=.recurly.local; path=/; HttpOnly
225
+ - "627"
226
+ server:
227
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
228
+ date:
229
+ - Thu, 21 Apr 2011 17:59:58 GMT
218
230
  connection:
219
231
  - close
220
- server:
221
- - thin 1.2.7 codename No Hup
232
+ set-cookie:
233
+ - _recurly_session=50f1eb00ddc70e6f6caf9ce47a07e4fd; domain=.recurly.local; path=/; HttpOnly
222
234
  body: |
223
235
  <?xml version="1.0" encoding="UTF-8"?>
224
236
  <charge type="charge">
225
- <id>259c6e9ac9514bfbad4c2bcdbf1fef76</id>
237
+ <id>132c2e457436456a9d67b6862b936794</id>
226
238
  <account_code>charge-list-all-1297746103</account_code>
239
+ <quantity type="integer">1</quantity>
240
+ <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
227
241
  <amount_in_cents type="integer">1000</amount_in_cents>
228
- <start_date type="datetime">2011-04-05T19:41:14Z</start_date>
242
+ <start_date type="datetime">2011-04-21T17:59:58Z</start_date>
229
243
  <end_date nil="true" type="datetime"></end_date>
230
244
  <invoice_number nil="true" type="integer"></invoice_number>
231
245
  <description>charge description</description>
232
- <created_at type="datetime">2011-04-05T19:41:14Z</created_at>
246
+ <created_at type="datetime">2011-04-21T17:59:58Z</created_at>
233
247
  </charge>
234
248
 
235
249
  http_version: "1.1"
236
250
  - !ruby/struct:VCR::HTTPInteraction
237
251
  request: !ruby/struct:VCR::Request
238
252
  method: :get
239
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/charge-list-all-1297746103/charges.xml
253
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/charge-list-all-1297746103/charges.xml
240
254
  body:
241
255
  headers:
242
256
  authorization:
243
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
257
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
258
+ user-agent:
259
+ - Recurly Ruby Client v0.4.6
244
260
  accept:
245
261
  - application/xml
246
262
  accept-encoding:
247
263
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
248
- user-agent:
249
- - Ruby
250
264
  connection:
251
265
  - close
252
266
  response: !ruby/struct:VCR::Response
253
267
  status: !ruby/struct:VCR::ResponseStatus
254
268
  code: 200
255
- message: OK
269
+ message: "OK "
256
270
  headers:
257
271
  x-runtime:
258
- - "66"
272
+ - "203"
259
273
  content-type:
260
274
  - application/xml; charset=utf-8
261
275
  etag:
262
- - "\"64f322251c0f358200ee93f33a0ca612\""
276
+ - "\"4d993d01f47210cef40a8040b2e2dc81\""
263
277
  cache-control:
264
278
  - private, max-age=0, must-revalidate
265
279
  content-length:
266
- - "1576"
267
- set-cookie:
268
- - _recurly_session=4c43eaac829c8ddf1b4f42d6a051d8e8; domain=.recurly.local; path=/; HttpOnly
280
+ - "1909"
281
+ server:
282
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
283
+ date:
284
+ - Thu, 21 Apr 2011 18:00:00 GMT
269
285
  connection:
270
286
  - close
271
- server:
272
- - thin 1.2.7 codename No Hup
287
+ set-cookie:
288
+ - _recurly_session=e0a5f36ebc10718be15b1723f05d2336; domain=.recurly.local; path=/; HttpOnly
273
289
  body: |
274
290
  <?xml version="1.0" encoding="UTF-8"?>
275
291
  <charges type="array">
276
292
  <charge type="charge">
277
- <id>259c6e9ac9514bfbad4c2bcdbf1fef76</id>
293
+ <id>132c2e457436456a9d67b6862b936794</id>
278
294
  <account_code>charge-list-all-1297746103</account_code>
295
+ <quantity type="integer">1</quantity>
296
+ <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
279
297
  <amount_in_cents type="integer">1000</amount_in_cents>
280
- <start_date type="datetime">2011-04-05T19:41:14Z</start_date>
298
+ <start_date type="datetime">2011-04-21T17:59:58Z</start_date>
281
299
  <end_date nil="true" type="datetime"></end_date>
282
300
  <invoice_number nil="true" type="integer"></invoice_number>
283
301
  <description>charge description</description>
284
- <created_at type="datetime">2011-04-05T19:41:14Z</created_at>
302
+ <created_at type="datetime">2011-04-21T17:59:58Z</created_at>
285
303
  </charge>
286
304
  <charge type="charge">
287
- <id>fdd3b4d88a6f4620962458761e12e0b7</id>
305
+ <id>3c01d223d23d4bd0bf2f745c1b41baf3</id>
288
306
  <account_code>charge-list-all-1297746103</account_code>
307
+ <quantity type="integer">1</quantity>
308
+ <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
289
309
  <amount_in_cents type="integer">1000</amount_in_cents>
290
- <start_date type="datetime">2011-04-05T19:41:11Z</start_date>
310
+ <start_date type="datetime">2011-04-21T17:59:56Z</start_date>
291
311
  <end_date nil="true" type="datetime"></end_date>
292
312
  <invoice_number nil="true" type="integer"></invoice_number>
293
313
  <description>charge description</description>
294
- <created_at type="datetime">2011-04-05T19:41:11Z</created_at>
314
+ <created_at type="datetime">2011-04-21T17:59:56Z</created_at>
295
315
  </charge>
296
316
  <charge type="charge">
297
- <id>661be7cd42fc40eba728b91a33abbda9</id>
317
+ <id>2db9b79c5df441038993cc9b81d28e46</id>
298
318
  <account_code>charge-list-all-1297746103</account_code>
319
+ <quantity type="integer">1</quantity>
320
+ <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
299
321
  <amount_in_cents type="integer">1000</amount_in_cents>
300
- <start_date type="datetime">2011-04-05T19:41:08Z</start_date>
322
+ <start_date type="datetime">2011-04-21T17:59:55Z</start_date>
301
323
  <end_date nil="true" type="datetime"></end_date>
302
324
  <invoice_number nil="true" type="integer"></invoice_number>
303
325
  <description>charge description</description>
304
- <created_at type="datetime">2011-04-05T19:41:08Z</created_at>
326
+ <created_at type="datetime">2011-04-21T17:59:55Z</created_at>
305
327
  </charge>
306
328
  </charges>
307
329