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>charge-delete-uinvoiced-1297746103</account-code>
9
+ <account-code>charge-delete-uinvoiced-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-delete-uinvoiced-1297746103
36
+ - http://litle-test.recurly.local:3000/accounts/charge-delete-uinvoiced-1296674173
41
37
  x-runtime:
42
- - "246"
38
+ - "612"
43
39
  content-type:
44
40
  - application/xml; charset=utf-8
45
41
  content-length:
46
42
  - "601"
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:38 GMT
46
+ - Thu, 03 Feb 2011 22:19:08 GMT
51
47
  connection:
52
48
  - close
53
49
  set-cookie:
54
- - _recurly_session=2e5aee316690830f9dd2b67bfb0f0865; domain=.recurly.local; path=/; HttpOnly
50
+ - account_credentials=67c52e2238a94f049ce9067dd0e5e40155d98b8b736ff5b50d2eff0d94c39f046aad16baddac437ac3e9048cf15c3c362a523413d1bd04004458952e65640421%3A%3A; domain=.recurly.local; path=/
51
+ - ""
52
+ - _recurly_session=bf44f7b5ddd11b8752428837ce3ed346; domain=.recurly.local; path=/; HttpOnly
55
53
  body: |
56
54
  <?xml version="1.0" encoding="UTF-8"?>
57
55
  <account>
58
- <id>charge-delete-uinvoiced-1297746103</id>
59
- <account_code>charge-delete-uinvoiced-1297746103</account_code>
56
+ <id>charge-delete-uinvoiced-1296674173</id>
57
+ <account_code>charge-delete-uinvoiced-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>cf5400c1b5d444c48d679c9c032abc35</hosted_login_token>
68
- <created_at type="datetime">2011-04-21T18:00:38Z</created_at>
65
+ <hosted_login_token>501b55e9573f462d9a65f899d7ca02f4</hosted_login_token>
66
+ <created_at type="datetime">2011-02-03T22:19:08Z</created_at>
69
67
  <state>active</state>
70
68
  </account>
71
69
 
@@ -73,7 +71,7 @@
73
71
  - !ruby/struct:VCR::HTTPInteraction
74
72
  request: !ruby/struct:VCR::Request
75
73
  method: :post
76
- uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/charge-delete-uinvoiced-1297746103/charges.xml
74
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/charge-delete-uinvoiced-1296674173/charges.xml
77
75
  body: |
78
76
  <?xml version="1.0" encoding="UTF-8"?>
79
77
  <charge>
@@ -83,13 +81,13 @@
83
81
 
84
82
  headers:
85
83
  authorization:
86
- - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
87
- user-agent:
88
- - Recurly Ruby Client v0.4.6
84
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
89
85
  content-type:
90
86
  - application/xml
91
87
  accept:
92
88
  - "*/*"
89
+ user-agent:
90
+ - Ruby
93
91
  connection:
94
92
  - close
95
93
  response: !ruby/struct:VCR::Response
@@ -100,49 +98,47 @@
100
98
  cache-control:
101
99
  - no-cache
102
100
  x-runtime:
103
- - "218"
101
+ - "423"
104
102
  content-type:
105
103
  - application/xml; charset=utf-8
106
104
  content-length:
107
- - "634"
105
+ - "527"
108
106
  server:
109
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
107
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
110
108
  date:
111
- - Thu, 21 Apr 2011 18:00:40 GMT
109
+ - Thu, 03 Feb 2011 22:19:10 GMT
112
110
  connection:
113
111
  - close
114
112
  set-cookie:
115
- - _recurly_session=2a250b8b78ce5e99928f6f94d1d40112; domain=.recurly.local; path=/; HttpOnly
113
+ - _recurly_session=0e4d67aae671c0a295a3135409cbe0b2; domain=.recurly.local; path=/; HttpOnly
116
114
  body: |
117
115
  <?xml version="1.0" encoding="UTF-8"?>
118
116
  <charge type="charge">
119
- <id>7ded2a41c5fe4f998c73d2e2f30e0553</id>
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
+ <id>7f2acc12bc5b43d08bcf779ea97fd6fd</id>
118
+ <account_code>charge-delete-uinvoiced-1296674173</account_code>
123
119
  <amount_in_cents type="integer">1315</amount_in_cents>
124
- <start_date type="datetime">2011-04-21T18:00:40Z</start_date>
120
+ <start_date type="datetime">2011-02-03T22:19:10Z</start_date>
125
121
  <end_date nil="true" type="datetime"></end_date>
126
122
  <invoice_number nil="true" type="integer"></invoice_number>
127
123
  <description>inconvenience fee</description>
128
- <created_at type="datetime">2011-04-21T18:00:40Z</created_at>
124
+ <created_at type="datetime">2011-02-03T22:19:10Z</created_at>
129
125
  </charge>
130
126
 
131
127
  http_version: "1.1"
132
128
  - !ruby/struct:VCR::HTTPInteraction
133
129
  request: !ruby/struct:VCR::Request
134
130
  method: :get
135
- uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/charge-delete-uinvoiced-1297746103/charges/7ded2a41c5fe4f998c73d2e2f30e0553.xml
131
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/charge-delete-uinvoiced-1296674173/charges/7f2acc12bc5b43d08bcf779ea97fd6fd.xml
136
132
  body:
137
133
  headers:
138
134
  authorization:
139
- - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
140
- user-agent:
141
- - Recurly Ruby Client v0.4.6
135
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
142
136
  accept:
143
137
  - application/xml
144
138
  accept-encoding:
145
139
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
140
+ user-agent:
141
+ - Ruby
146
142
  connection:
147
143
  - close
148
144
  response: !ruby/struct:VCR::Response
@@ -151,51 +147,49 @@
151
147
  message: "OK "
152
148
  headers:
153
149
  x-runtime:
154
- - "73"
150
+ - "192"
155
151
  content-type:
156
152
  - application/xml; charset=utf-8
157
153
  etag:
158
- - "\"946365159568a859c72643867112bcb4\""
154
+ - "\"293c3c813870537a99089933db7fc977\""
159
155
  cache-control:
160
156
  - private, max-age=0, must-revalidate
161
157
  content-length:
162
- - "634"
158
+ - "527"
163
159
  server:
164
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
160
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
165
161
  date:
166
- - Thu, 21 Apr 2011 18:00:42 GMT
162
+ - Thu, 03 Feb 2011 22:19:12 GMT
167
163
  connection:
168
164
  - close
169
165
  set-cookie:
170
- - _recurly_session=0d1138e7d28fd33ddea9593666b98ae0; domain=.recurly.local; path=/; HttpOnly
166
+ - _recurly_session=192c6d2a2bdcfecc85d05b0829c9bf1c; domain=.recurly.local; path=/; HttpOnly
171
167
  body: |
172
168
  <?xml version="1.0" encoding="UTF-8"?>
173
169
  <charge type="charge">
174
- <id>7ded2a41c5fe4f998c73d2e2f30e0553</id>
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>
170
+ <id>7f2acc12bc5b43d08bcf779ea97fd6fd</id>
171
+ <account_code>charge-delete-uinvoiced-1296674173</account_code>
178
172
  <amount_in_cents type="integer">1315</amount_in_cents>
179
- <start_date type="datetime">2011-04-21T18:00:40Z</start_date>
173
+ <start_date type="datetime">2011-02-03T22:19:10Z</start_date>
180
174
  <end_date nil="true" type="datetime"></end_date>
181
175
  <invoice_number nil="true" type="integer"></invoice_number>
182
176
  <description>inconvenience fee</description>
183
- <created_at type="datetime">2011-04-21T18:00:40Z</created_at>
177
+ <created_at type="datetime">2011-02-03T22:19:10Z</created_at>
184
178
  </charge>
185
179
 
186
180
  http_version: "1.1"
187
181
  - !ruby/struct:VCR::HTTPInteraction
188
182
  request: !ruby/struct:VCR::Request
189
183
  method: :delete
190
- uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/charge-delete-uinvoiced-1297746103/charges/7ded2a41c5fe4f998c73d2e2f30e0553.xml
184
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/charge-delete-uinvoiced-1296674173/charges/7f2acc12bc5b43d08bcf779ea97fd6fd.xml
191
185
  body:
192
186
  headers:
193
187
  authorization:
194
- - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
195
- user-agent:
196
- - Recurly Ruby Client v0.4.6
188
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
197
189
  accept:
198
190
  - application/xml
191
+ user-agent:
192
+ - Ruby
199
193
  connection:
200
194
  - close
201
195
  response: !ruby/struct:VCR::Response
@@ -206,35 +200,35 @@
206
200
  cache-control:
207
201
  - no-cache
208
202
  x-runtime:
209
- - "199"
203
+ - "400"
210
204
  content-type:
211
205
  - application/xml; charset=utf-8
212
206
  content-length:
213
207
  - "1"
214
208
  server:
215
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
209
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
216
210
  date:
217
- - Thu, 21 Apr 2011 18:00:44 GMT
211
+ - Thu, 03 Feb 2011 22:19:14 GMT
218
212
  connection:
219
213
  - close
220
214
  set-cookie:
221
- - _recurly_session=0673efbd285aca398934d4b6819cbc42; domain=.recurly.local; path=/; HttpOnly
215
+ - _recurly_session=6130797c0f8bfd1f9e8d88925e921fce; domain=.recurly.local; path=/; HttpOnly
222
216
  body: " "
223
217
  http_version: "1.1"
224
218
  - !ruby/struct:VCR::HTTPInteraction
225
219
  request: !ruby/struct:VCR::Request
226
220
  method: :get
227
- uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/charge-delete-uinvoiced-1297746103/charges/7ded2a41c5fe4f998c73d2e2f30e0553.xml
221
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/charge-delete-uinvoiced-1296674173/charges/7f2acc12bc5b43d08bcf779ea97fd6fd.xml
228
222
  body:
229
223
  headers:
230
224
  authorization:
231
- - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
232
- user-agent:
233
- - Recurly Ruby Client v0.4.6
225
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
234
226
  accept:
235
227
  - application/xml
236
228
  accept-encoding:
237
229
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
230
+ user-agent:
231
+ - Ruby
238
232
  connection:
239
233
  - close
240
234
  response: !ruby/struct:VCR::Response
@@ -249,13 +243,13 @@
249
243
  content-length:
250
244
  - "92"
251
245
  server:
252
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
246
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
253
247
  date:
254
- - Thu, 21 Apr 2011 18:00:45 GMT
248
+ - Thu, 03 Feb 2011 22:19:16 GMT
255
249
  connection:
256
250
  - close
257
251
  set-cookie:
258
- - _recurly_session=1db82eee499ca0cd1d67ab01746d4033; domain=.recurly.local; path=/; HttpOnly
252
+ - _recurly_session=39b21e6b931a36d5c4f58fe12159b30b; domain=.recurly.local; path=/; HttpOnly
259
253
  body: |
260
254
  <?xml version="1.0" encoding="UTF-8"?>
261
255
  <errors>
@@ -266,7 +260,7 @@
266
260
  - !ruby/struct:VCR::HTTPInteraction
267
261
  request: !ruby/struct:VCR::Request
268
262
  method: :post
269
- uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/charge-delete-uinvoiced-1297746103/invoices.xml
263
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/charge-delete-uinvoiced-1296674173/invoices.xml
270
264
  body: |
271
265
  <?xml version="1.0" encoding="UTF-8"?>
272
266
  <invoice>
@@ -274,13 +268,13 @@
274
268
 
275
269
  headers:
276
270
  authorization:
277
- - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
278
- user-agent:
279
- - Recurly Ruby Client v0.4.6
271
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
280
272
  content-type:
281
273
  - application/xml
282
274
  accept:
283
275
  - "*/*"
276
+ user-agent:
277
+ - Ruby
284
278
  connection:
285
279
  - close
286
280
  response: !ruby/struct:VCR::Response
@@ -291,19 +285,19 @@
291
285
  cache-control:
292
286
  - no-cache
293
287
  x-runtime:
294
- - "204"
288
+ - "53"
295
289
  content-type:
296
290
  - application/xml; charset=utf-8
297
291
  content-length:
298
292
  - "98"
299
293
  server:
300
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
294
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
301
295
  date:
302
- - Thu, 21 Apr 2011 18:00:47 GMT
296
+ - Thu, 03 Feb 2011 22:19:18 GMT
303
297
  connection:
304
298
  - close
305
299
  set-cookie:
306
- - _recurly_session=8f74b5256cbf489bba9ce4c59b3affc6; domain=.recurly.local; path=/; HttpOnly
300
+ - _recurly_session=c1278f0d4182588ca84fac1777a95e87; domain=.recurly.local; path=/; HttpOnly
307
301
  body: |
308
302
  <?xml version="1.0" encoding="UTF-8"?>
309
303
  <errors>
@@ -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-list-all-1297746103</account-code>
9
+ <account-code>charge-list-all-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-list-all-1297746103
36
+ - http://litle-test.recurly.local:3000/accounts/charge-list-all-1296674173
41
37
  x-runtime:
42
- - "250"
38
+ - "584"
43
39
  content-type:
44
40
  - application/xml; charset=utf-8
45
41
  content-length:
46
42
  - "585"
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:53 GMT
46
+ - Thu, 03 Feb 2011 22:18:14 GMT
51
47
  connection:
52
48
  - close
53
49
  set-cookie:
54
- - _recurly_session=9f0a59226db43e951ad54e10380ce0a5; domain=.recurly.local; path=/; HttpOnly
50
+ - account_credentials=46c62bf884c90f7de1505e10fd730db5e351ad264ffdb46477c4374c36122b2ac1fad5f0c83808d86ae0c1a532c4d950dad8473dbd48c82a1e6c7807a44a7c1d%3A%3A; domain=.recurly.local; path=/
51
+ - ""
52
+ - _recurly_session=a7db7b9987b5b28e622c7d5acda24499; domain=.recurly.local; path=/; HttpOnly
55
53
  body: |
56
54
  <?xml version="1.0" encoding="UTF-8"?>
57
55
  <account>
58
- <id>charge-list-all-1297746103</id>
59
- <account_code>charge-list-all-1297746103</account_code>
56
+ <id>charge-list-all-1296674173</id>
57
+ <account_code>charge-list-all-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>7e424df1b40b42f39c7d165fd70a05ad</hosted_login_token>
68
- <created_at type="datetime">2011-04-21T17:59:53Z</created_at>
65
+ <hosted_login_token>9875f451d6494d24a349d5ca6f39d468</hosted_login_token>
66
+ <created_at type="datetime">2011-02-03T22:18:14Z</created_at>
69
67
  <state>active</state>
70
68
  </account>
71
69
 
@@ -73,7 +71,7 @@
73
71
  - !ruby/struct:VCR::HTTPInteraction
74
72
  request: !ruby/struct:VCR::Request
75
73
  method: :post
76
- uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/charge-list-all-1297746103/charges.xml
74
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/charge-list-all-1296674173/charges.xml
77
75
  body: |
78
76
  <?xml version="1.0" encoding="UTF-8"?>
79
77
  <charge>
@@ -83,13 +81,13 @@
83
81
 
84
82
  headers:
85
83
  authorization:
86
- - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
87
- user-agent:
88
- - Recurly Ruby Client v0.4.6
84
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
89
85
  content-type:
90
86
  - application/xml
91
87
  accept:
92
88
  - "*/*"
89
+ user-agent:
90
+ - Ruby
93
91
  connection:
94
92
  - close
95
93
  response: !ruby/struct:VCR::Response
@@ -100,39 +98,37 @@
100
98
  cache-control:
101
99
  - no-cache
102
100
  x-runtime:
103
- - "212"
101
+ - "412"
104
102
  content-type:
105
103
  - application/xml; charset=utf-8
106
104
  content-length:
107
- - "627"
105
+ - "520"
108
106
  server:
109
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
107
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
110
108
  date:
111
- - Thu, 21 Apr 2011 17:59:55 GMT
109
+ - Thu, 03 Feb 2011 22:18:16 GMT
112
110
  connection:
113
111
  - close
114
112
  set-cookie:
115
- - _recurly_session=6fa60ed25a85d92d48047dc51e67c7d5; domain=.recurly.local; path=/; HttpOnly
113
+ - _recurly_session=ad6b1b152a840aaf19b61039e633aff8; domain=.recurly.local; path=/; HttpOnly
116
114
  body: |
117
115
  <?xml version="1.0" encoding="UTF-8"?>
118
116
  <charge type="charge">
119
- <id>2db9b79c5df441038993cc9b81d28e46</id>
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
+ <id>e0891709cf1041298754ba1212aa3d39</id>
118
+ <account_code>charge-list-all-1296674173</account_code>
123
119
  <amount_in_cents type="integer">1000</amount_in_cents>
124
- <start_date type="datetime">2011-04-21T17:59:55Z</start_date>
120
+ <start_date type="datetime">2011-02-03T22:18:15Z</start_date>
125
121
  <end_date nil="true" type="datetime"></end_date>
126
122
  <invoice_number nil="true" type="integer"></invoice_number>
127
123
  <description>charge description</description>
128
- <created_at type="datetime">2011-04-21T17:59:55Z</created_at>
124
+ <created_at type="datetime">2011-02-03T22:18:15Z</created_at>
129
125
  </charge>
130
126
 
131
127
  http_version: "1.1"
132
128
  - !ruby/struct:VCR::HTTPInteraction
133
129
  request: !ruby/struct:VCR::Request
134
130
  method: :post
135
- uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/charge-list-all-1297746103/charges.xml
131
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/charge-list-all-1296674173/charges.xml
136
132
  body: |
137
133
  <?xml version="1.0" encoding="UTF-8"?>
138
134
  <charge>
@@ -142,13 +138,13 @@
142
138
 
143
139
  headers:
144
140
  authorization:
145
- - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
146
- user-agent:
147
- - Recurly Ruby Client v0.4.6
141
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
148
142
  content-type:
149
143
  - application/xml
150
144
  accept:
151
145
  - "*/*"
146
+ user-agent:
147
+ - Ruby
152
148
  connection:
153
149
  - close
154
150
  response: !ruby/struct:VCR::Response
@@ -159,39 +155,37 @@
159
155
  cache-control:
160
156
  - no-cache
161
157
  x-runtime:
162
- - "215"
158
+ - "397"
163
159
  content-type:
164
160
  - application/xml; charset=utf-8
165
161
  content-length:
166
- - "627"
162
+ - "520"
167
163
  server:
168
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
164
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
169
165
  date:
170
- - Thu, 21 Apr 2011 17:59:56 GMT
166
+ - Thu, 03 Feb 2011 22:18:18 GMT
171
167
  connection:
172
168
  - close
173
169
  set-cookie:
174
- - _recurly_session=18fb3cf27f31e0d6384379140be5a515; domain=.recurly.local; path=/; HttpOnly
170
+ - _recurly_session=94bc7acf0b1e113247d80cf356538fc2; domain=.recurly.local; path=/; HttpOnly
175
171
  body: |
176
172
  <?xml version="1.0" encoding="UTF-8"?>
177
173
  <charge type="charge">
178
- <id>3c01d223d23d4bd0bf2f745c1b41baf3</id>
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>
174
+ <id>088a6c2fc44b4c3fb530518d1bff639e</id>
175
+ <account_code>charge-list-all-1296674173</account_code>
182
176
  <amount_in_cents type="integer">1000</amount_in_cents>
183
- <start_date type="datetime">2011-04-21T17:59:56Z</start_date>
177
+ <start_date type="datetime">2011-02-03T22:18:17Z</start_date>
184
178
  <end_date nil="true" type="datetime"></end_date>
185
179
  <invoice_number nil="true" type="integer"></invoice_number>
186
180
  <description>charge description</description>
187
- <created_at type="datetime">2011-04-21T17:59:56Z</created_at>
181
+ <created_at type="datetime">2011-02-03T22:18:18Z</created_at>
188
182
  </charge>
189
183
 
190
184
  http_version: "1.1"
191
185
  - !ruby/struct:VCR::HTTPInteraction
192
186
  request: !ruby/struct:VCR::Request
193
187
  method: :post
194
- uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/charge-list-all-1297746103/charges.xml
188
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/charge-list-all-1296674173/charges.xml
195
189
  body: |
196
190
  <?xml version="1.0" encoding="UTF-8"?>
197
191
  <charge>
@@ -201,13 +195,13 @@
201
195
 
202
196
  headers:
203
197
  authorization:
204
- - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
205
- user-agent:
206
- - Recurly Ruby Client v0.4.6
198
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
207
199
  content-type:
208
200
  - application/xml
209
201
  accept:
210
202
  - "*/*"
203
+ user-agent:
204
+ - Ruby
211
205
  connection:
212
206
  - close
213
207
  response: !ruby/struct:VCR::Response
@@ -218,49 +212,47 @@
218
212
  cache-control:
219
213
  - no-cache
220
214
  x-runtime:
221
- - "215"
215
+ - "399"
222
216
  content-type:
223
217
  - application/xml; charset=utf-8
224
218
  content-length:
225
- - "627"
219
+ - "520"
226
220
  server:
227
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
221
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
228
222
  date:
229
- - Thu, 21 Apr 2011 17:59:58 GMT
223
+ - Thu, 03 Feb 2011 22:18:20 GMT
230
224
  connection:
231
225
  - close
232
226
  set-cookie:
233
- - _recurly_session=50f1eb00ddc70e6f6caf9ce47a07e4fd; domain=.recurly.local; path=/; HttpOnly
227
+ - _recurly_session=e3c9bfbe1820d82b4cad61c8c9b5a0a9; domain=.recurly.local; path=/; HttpOnly
234
228
  body: |
235
229
  <?xml version="1.0" encoding="UTF-8"?>
236
230
  <charge type="charge">
237
- <id>132c2e457436456a9d67b6862b936794</id>
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>
231
+ <id>e83ca6220d694443852943b682f7eda9</id>
232
+ <account_code>charge-list-all-1296674173</account_code>
241
233
  <amount_in_cents type="integer">1000</amount_in_cents>
242
- <start_date type="datetime">2011-04-21T17:59:58Z</start_date>
234
+ <start_date type="datetime">2011-02-03T22:18:20Z</start_date>
243
235
  <end_date nil="true" type="datetime"></end_date>
244
236
  <invoice_number nil="true" type="integer"></invoice_number>
245
237
  <description>charge description</description>
246
- <created_at type="datetime">2011-04-21T17:59:58Z</created_at>
238
+ <created_at type="datetime">2011-02-03T22:18:20Z</created_at>
247
239
  </charge>
248
240
 
249
241
  http_version: "1.1"
250
242
  - !ruby/struct:VCR::HTTPInteraction
251
243
  request: !ruby/struct:VCR::Request
252
244
  method: :get
253
- uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/charge-list-all-1297746103/charges.xml
245
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/charge-list-all-1296674173/charges.xml
254
246
  body:
255
247
  headers:
256
248
  authorization:
257
- - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
258
- user-agent:
259
- - Recurly Ruby Client v0.4.6
249
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
260
250
  accept:
261
251
  - application/xml
262
252
  accept-encoding:
263
253
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
254
+ user-agent:
255
+ - Ruby
264
256
  connection:
265
257
  - close
266
258
  response: !ruby/struct:VCR::Response
@@ -269,61 +261,55 @@
269
261
  message: "OK "
270
262
  headers:
271
263
  x-runtime:
272
- - "203"
264
+ - "75"
273
265
  content-type:
274
266
  - application/xml; charset=utf-8
275
267
  etag:
276
- - "\"4d993d01f47210cef40a8040b2e2dc81\""
268
+ - "\"c578f5f32688fc3bd46bd29630a6e05a\""
277
269
  cache-control:
278
270
  - private, max-age=0, must-revalidate
279
271
  content-length:
280
- - "1909"
272
+ - "1576"
281
273
  server:
282
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
274
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
283
275
  date:
284
- - Thu, 21 Apr 2011 18:00:00 GMT
276
+ - Thu, 03 Feb 2011 22:18:22 GMT
285
277
  connection:
286
278
  - close
287
279
  set-cookie:
288
- - _recurly_session=e0a5f36ebc10718be15b1723f05d2336; domain=.recurly.local; path=/; HttpOnly
280
+ - _recurly_session=4d2e91ee8767725148c3bc91473c8bec; domain=.recurly.local; path=/; HttpOnly
289
281
  body: |
290
282
  <?xml version="1.0" encoding="UTF-8"?>
291
283
  <charges type="array">
292
284
  <charge type="charge">
293
- <id>132c2e457436456a9d67b6862b936794</id>
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>
285
+ <id>e83ca6220d694443852943b682f7eda9</id>
286
+ <account_code>charge-list-all-1296674173</account_code>
297
287
  <amount_in_cents type="integer">1000</amount_in_cents>
298
- <start_date type="datetime">2011-04-21T17:59:58Z</start_date>
288
+ <start_date type="datetime">2011-02-03T22:18:20Z</start_date>
299
289
  <end_date nil="true" type="datetime"></end_date>
300
290
  <invoice_number nil="true" type="integer"></invoice_number>
301
291
  <description>charge description</description>
302
- <created_at type="datetime">2011-04-21T17:59:58Z</created_at>
292
+ <created_at type="datetime">2011-02-03T22:18:20Z</created_at>
303
293
  </charge>
304
294
  <charge type="charge">
305
- <id>3c01d223d23d4bd0bf2f745c1b41baf3</id>
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>
295
+ <id>088a6c2fc44b4c3fb530518d1bff639e</id>
296
+ <account_code>charge-list-all-1296674173</account_code>
309
297
  <amount_in_cents type="integer">1000</amount_in_cents>
310
- <start_date type="datetime">2011-04-21T17:59:56Z</start_date>
298
+ <start_date type="datetime">2011-02-03T22:18:17Z</start_date>
311
299
  <end_date nil="true" type="datetime"></end_date>
312
300
  <invoice_number nil="true" type="integer"></invoice_number>
313
301
  <description>charge description</description>
314
- <created_at type="datetime">2011-04-21T17:59:56Z</created_at>
302
+ <created_at type="datetime">2011-02-03T22:18:18Z</created_at>
315
303
  </charge>
316
304
  <charge type="charge">
317
- <id>2db9b79c5df441038993cc9b81d28e46</id>
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>
305
+ <id>e0891709cf1041298754ba1212aa3d39</id>
306
+ <account_code>charge-list-all-1296674173</account_code>
321
307
  <amount_in_cents type="integer">1000</amount_in_cents>
322
- <start_date type="datetime">2011-04-21T17:59:55Z</start_date>
308
+ <start_date type="datetime">2011-02-03T22:18:15Z</start_date>
323
309
  <end_date nil="true" type="datetime"></end_date>
324
310
  <invoice_number nil="true" type="integer"></invoice_number>
325
311
  <description>charge description</description>
326
- <created_at type="datetime">2011-04-21T17:59:55Z</created_at>
312
+ <created_at type="datetime">2011-02-03T22:18:15Z</created_at>
327
313
  </charge>
328
314
  </charges>
329
315