recurly 0.3.2 → 0.3.3

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 (86) hide show
  1. data/LICENSE +1 -1
  2. data/README.md +4 -4
  3. data/lib/recurly.rb +8 -1
  4. data/lib/recurly/account.rb +5 -0
  5. data/lib/recurly/coupon.rb +5 -0
  6. data/lib/recurly/rails3/recurly.rake +3 -18
  7. data/lib/recurly/version.rb +1 -1
  8. data/spec/config/{test.yml → test1.yml} +0 -0
  9. data/spec/config/test2.yml +9 -0
  10. data/spec/integration/account_spec.rb +3 -3
  11. data/spec/integration/billing_info_spec.rb +4 -8
  12. data/spec/integration/coupon_spec.rb +49 -0
  13. data/spec/integration/plan_spec.rb +0 -28
  14. data/spec/integration/transaction_spec.rb +3 -3
  15. data/spec/spec_helper.rb +6 -0
  16. data/spec/support/factory.rb +1 -1
  17. data/spec/unit/config_spec.rb +9 -2
  18. data/spec/vcr/account/accept-language-account/{1294473653.yml → 1296674173.yml} +29 -27
  19. data/spec/vcr/account/close/{1294473761.yml → 1296674173.yml} +71 -67
  20. data/spec/vcr/account/create-blank/{1294473761.yml → 1296674173.yml} +20 -18
  21. data/spec/vcr/account/create-duplicate/{1294473761.yml → 1296674173.yml} +42 -38
  22. data/spec/vcr/account/create-min/{1294473761.yml → 1296674173.yml} +26 -24
  23. data/spec/vcr/account/create/{1294473761.yml → 1296674173.yml} +29 -27
  24. data/spec/vcr/account/find/{1294473761.yml → 1296674173.yml} +71 -63
  25. data/spec/vcr/account/list/1296674173.yml +55 -0
  26. data/spec/vcr/account/update/{1294473761.yml → 1296674173.yml} +113 -107
  27. data/spec/vcr/billing/create/{1286682213.yml → 1296690812.yml} +86 -82
  28. data/spec/vcr/billing/destroy/{1286682213.yml → 1296690812.yml} +126 -142
  29. data/spec/vcr/billing/find/{1286682213.yml → 1296690812.yml} +115 -109
  30. data/spec/vcr/billing/update/{1286682213.yml → 1296690812.yml} +119 -115
  31. data/spec/vcr/charge/create/{1287465632.yml → 1296674173.yml} +109 -103
  32. data/spec/vcr/charge/delete-uninvoiced/{1287465632.yml → 1296674173.yml} +129 -117
  33. data/spec/vcr/charge/list-all/{1287465632.yml → 1296674173.yml} +131 -121
  34. data/spec/vcr/charge/list-invoiced/{1287465632.yml → 1296674173.yml} +195 -177
  35. data/spec/vcr/charge/list-pending/{1287465632.yml → 1296674173.yml} +131 -121
  36. data/spec/vcr/charge/lookup/{1287465632.yml → 1296674173.yml} +77 -71
  37. data/spec/vcr/coupon/create/1296688818.yml +183 -0
  38. data/spec/vcr/coupon/create/1296774903.yml +183 -0
  39. data/spec/vcr/coupon/destroy/1296688818.yml +207 -0
  40. data/spec/vcr/coupon/destroy/1296774903.yml +207 -0
  41. data/spec/vcr/credit/create/1296674173.yml +121 -0
  42. data/spec/vcr/credit/delete/1296674173.yml +121 -0
  43. data/spec/vcr/credit/list/1296674173.yml +121 -0
  44. data/spec/vcr/credit/lookup/1296674173.yml +121 -0
  45. data/spec/vcr/invoice/create-no-charges/{1287167121.yml → 1296674173.yml} +79 -75
  46. data/spec/vcr/invoice/create/{1287167121.yml → 1296674173.yml} +141 -130
  47. data/spec/vcr/invoice/list/{1287167121.yml → 1296674173.yml} +196 -180
  48. data/spec/vcr/invoice/lookup/{1287167121.yml → 1296674173.yml} +145 -133
  49. data/spec/vcr/plan/all.yml +86 -136
  50. data/spec/vcr/plan/delete/{1286677585.yml → 1296674173.yml} +87 -79
  51. data/spec/vcr/plan/find.yml +73 -91
  52. data/spec/vcr/plan/update.yml +80 -76
  53. data/spec/vcr/subscription/addons/add/1296674173.yml +225 -0
  54. data/spec/vcr/subscription/addons/create/1296674173.yml +225 -0
  55. data/spec/vcr/subscription/addons/remove/1296674173.yml +225 -0
  56. data/spec/vcr/subscription/cancel-with-code/{1287455769.yml → 1296674173.yml} +201 -201
  57. data/spec/vcr/subscription/cancel/{1287455769.yml → 1296674173.yml} +173 -175
  58. data/spec/vcr/subscription/change1/{1287455769.yml → 1296674173.yml} +172 -174
  59. data/spec/vcr/subscription/change2/{1287455769.yml → 1296674173.yml} +172 -174
  60. data/spec/vcr/subscription/create/{1287455769.yml → 1296674173.yml} +93 -99
  61. data/spec/vcr/subscription/find/{1287455769.yml → 1296674173.yml} +119 -123
  62. data/spec/vcr/subscription/reactivate/{1287455769.yml → 1296674173.yml} +194 -196
  63. data/spec/vcr/subscription/{refund-none/1287455769.yml → refund-full/1296674173.yml} +162 -162
  64. data/spec/vcr/subscription/{refund-full/1287455769.yml → refund-none/1296674173.yml} +162 -162
  65. data/spec/vcr/subscription/refund-partial/{1287455769.yml → 1296674173.yml} +162 -162
  66. data/spec/vcr/transaction/all/{1289558212.yml → 1296674173.yml} +155 -153
  67. data/spec/vcr/transaction/create-no-account/{1289558212.yml → 1296674173.yml} +37 -35
  68. data/spec/vcr/transaction/create-with-account/{1289558212.yml → 1296674173.yml} +91 -87
  69. data/spec/vcr/transaction/list-filled/{1289558212.yml → 1296674173.yml} +200 -190
  70. data/spec/vcr/transaction/list-initial/{1289558212.yml → 1296674173.yml} +92 -88
  71. data/spec/vcr/transaction/lookup/{1289558212.yml → 1296674173.yml} +241 -227
  72. data/spec/vcr/transaction/refund/{1289558212.yml → 1296674173.yml} +119 -115
  73. data/spec/vcr/transaction/void/1296674173.yml +352 -0
  74. metadata +122 -122
  75. data/spec/config/recurly.yml +0 -4
  76. data/spec/vcr/account/accept-language-account/1294473761.yml +0 -68
  77. data/spec/vcr/account/accept-language/1294473117.yml +0 -167
  78. data/spec/vcr/account/list/1294473761.yml +0 -1597
  79. data/spec/vcr/credit/create/1287461400.yml +0 -174
  80. data/spec/vcr/credit/delete/1287461400.yml +0 -249
  81. data/spec/vcr/credit/list/1287461400.yml +0 -306
  82. data/spec/vcr/credit/lookup/1287461400.yml +0 -174
  83. data/spec/vcr/subscription/addons/add/1292420980.yml +0 -479
  84. data/spec/vcr/subscription/addons/create/1292420980.yml +0 -318
  85. data/spec/vcr/subscription/addons/remove/1292420980.yml +0 -448
  86. data/spec/vcr/transaction/void/1289558212.yml +0 -601
@@ -2,57 +2,59 @@
2
2
  - !ruby/struct:VCR::HTTPInteraction
3
3
  request: !ruby/struct:VCR::Request
4
4
  method: :post
5
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/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
- <company-name>Recurly Ruby Gem</company-name>
10
- <account-code>billing-update-1286682213</account-code>
9
+ <account-code>billing-update-1296690812</account-code>
10
+ <first-name>Verena</first-name>
11
11
  <last-name>Test</last-name>
12
- <accept-language type="yaml" nil="true"></accept-language>
13
12
  <email>verena@test.com</email>
14
- <first-name>Verena</first-name>
13
+ <company-name>Recurly Ruby Gem</company-name>
14
+ <accept-language type="yaml" nil="true"></accept-language>
15
15
  </account>
16
16
 
17
17
  headers:
18
+ authorization:
19
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
20
+ content-type:
21
+ - application/xml
18
22
  accept:
19
23
  - "*/*"
24
+ user-agent:
25
+ - Ruby
20
26
  connection:
21
27
  - close
22
- content-type:
23
- - application/xml
24
- authorization:
25
- - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
26
28
  response: !ruby/struct:VCR::Response
27
29
  status: !ruby/struct:VCR::ResponseStatus
28
30
  code: 201
29
- message: Created
31
+ message: "Created "
30
32
  headers:
33
+ cache-control:
34
+ - no-cache
31
35
  location:
32
- - https://recurlytest3-test.recurly.com/accounts/billing-update-1286682213
33
- connection:
34
- - close
36
+ - http://litle-test.recurly.local:3000/accounts/billing-update-1296690812
37
+ x-runtime:
38
+ - "571"
35
39
  content-type:
36
40
  - application/xml; charset=utf-8
37
- x-runtime:
38
- - "346"
39
- date:
40
- - Sat, 08 Jan 2011 08:03:50 GMT
41
- server:
42
- - nginx/0.8.53
43
41
  content-length:
44
42
  - "583"
43
+ server:
44
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
45
+ date:
46
+ - Thu, 03 Feb 2011 22:17:42 GMT
47
+ connection:
48
+ - close
45
49
  set-cookie:
46
- - account_credentials=2dff6be7a330aecc7e81aed3952ead086f473ec728d555fa47aa41920edda5941568fa89af0146e1e9ee2fcdb132bb7bf813a0c96d9e78481389b2140712cae0%3A%3A; domain=.recurly.com; path=/
50
+ - account_credentials=ca1bc2a7db5c0adebc913fcceaf5067325526889751bb9f5ae90130b62e808a7b4d28e7936863967610fdf0c47a7667aa9202de29ff2243f5f0f88b1b8fa238b%3A%3A; domain=.recurly.local; path=/
47
51
  - ""
48
- - _recurly_session=a6f4cf5282876c5de1c99e60d2725683; domain=.recurly.com; path=/; secure; HttpOnly
49
- cache-control:
50
- - no-cache
52
+ - _recurly_session=537b709b2fbbf7c87376e456b05831f3; domain=.recurly.local; path=/; HttpOnly
51
53
  body: |
52
54
  <?xml version="1.0" encoding="UTF-8"?>
53
55
  <account>
54
- <id>billing-update-1286682213</id>
55
- <account_code>billing-update-1286682213</account_code>
56
+ <id>billing-update-1296690812</id>
57
+ <account_code>billing-update-1296690812</account_code>
56
58
  <username></username>
57
59
  <email>verena@test.com</email>
58
60
  <first_name>Verena</first_name>
@@ -60,8 +62,8 @@
60
62
  <company_name>Recurly Ruby Gem</company_name>
61
63
  <balance_in_cents type="integer">0</balance_in_cents>
62
64
  <closed type="boolean">false</closed>
63
- <hosted_login_token>a12d3edb04424c20ab7218bbe36fb6f7</hosted_login_token>
64
- <created_at type="datetime">2011-01-08T08:03:50Z</created_at>
65
+ <hosted_login_token>ddf65b6b20e94a99ae41c128b4523e34</hosted_login_token>
66
+ <created_at type="datetime">2011-02-03T22:17:42Z</created_at>
65
67
  <state>active</state>
66
68
  </account>
67
69
 
@@ -69,64 +71,64 @@
69
71
  - !ruby/struct:VCR::HTTPInteraction
70
72
  request: !ruby/struct:VCR::Request
71
73
  method: :put
72
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/billing-update-1286682213/billing_info.xml
74
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/billing-update-1296690812/billing_info.xml
73
75
  body: |
74
76
  <?xml version="1.0" encoding="UTF-8"?>
75
77
  <billing-info>
76
78
  <address1>123 Test St</address1>
77
79
  <city>San Francisco</city>
80
+ <state>CA</state>
78
81
  <zip>94115</zip>
79
- <account-code>billing-update-1286682213</account-code>
80
82
  <country>US</country>
81
83
  <credit-card>
82
- <number>1</number>
83
- <month type="integer">1</month>
84
+ <number>4111111111111111</number>
84
85
  <year type="integer">2012</year>
86
+ <month type="integer">2</month>
85
87
  <verification-value>123</verification-value>
86
88
  </credit-card>
87
- <last-name>Test</last-name>
89
+ <account-code>billing-update-1296690812</account-code>
88
90
  <first-name>Verena</first-name>
89
- <state>CA</state>
91
+ <last-name>Test</last-name>
90
92
  </billing-info>
91
93
 
92
94
  headers:
95
+ authorization:
96
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
97
+ content-type:
98
+ - application/xml
93
99
  accept:
94
100
  - "*/*"
101
+ user-agent:
102
+ - Ruby
95
103
  connection:
96
104
  - close
97
- content-type:
98
- - application/xml
99
- authorization:
100
- - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
101
105
  response: !ruby/struct:VCR::Response
102
106
  status: !ruby/struct:VCR::ResponseStatus
103
107
  code: 200
104
- message: OK
108
+ message: "OK "
105
109
  headers:
106
- x-ua-compatible:
107
- - IE=Edge
108
- etag:
109
- - "\"66a340947066ff6e2eea1c6ca9133266\""
110
- connection:
111
- - close
110
+ x-runtime:
111
+ - "1559"
112
112
  content-type:
113
113
  - application/xml; charset=utf-8
114
- x-runtime:
115
- - "197"
116
- date:
117
- - Sat, 08 Jan 2011 08:03:51 GMT
118
- server:
119
- - nginx/0.8.53
120
- content-length:
121
- - "638"
122
- set-cookie:
123
- - _recurly_session=79f587eb054b4567869b2e4911a83a1c; domain=.recurly.com; path=/; secure; HttpOnly
114
+ etag:
115
+ - "\"b5499bcd45b7f6f045575a212799805c\""
124
116
  cache-control:
125
117
  - private, max-age=0, must-revalidate
118
+ content-length:
119
+ - "640"
120
+ server:
121
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
122
+ date:
123
+ - Thu, 03 Feb 2011 22:17:45 GMT
124
+ connection:
125
+ - close
126
+ set-cookie:
127
+ - _recurly_session=5e91140311ec8c5366449955bba2e1c7; domain=.recurly.local; path=/; HttpOnly
126
128
  body: |
127
129
  <?xml version="1.0" encoding="UTF-8"?>
128
130
  <billing_info>
129
- <account_code>billing-update-1286682213</account_code>
131
+ <account_code>billing-update-1296690812</account_code>
130
132
  <first_name>Verena</first_name>
131
133
  <last_name>Test</last_name>
132
134
  <address1>123 Test St</address1>
@@ -139,75 +141,75 @@
139
141
  <vat_number></vat_number>
140
142
  <ip_address></ip_address>
141
143
  <credit_card>
142
- <type>bogus</type>
143
- <last_four>1</last_four>
144
- <month type="integer">1</month>
144
+ <type>visa</type>
145
+ <last_four>1111</last_four>
146
+ <month type="integer">2</month>
145
147
  <year type="integer">2012</year>
146
148
  </credit_card>
147
- <updated_at type="datetime">2011-01-08T08:03:51Z</updated_at>
149
+ <updated_at type="datetime">2011-02-03T22:17:45Z</updated_at>
148
150
  </billing_info>
149
151
 
150
152
  http_version: "1.1"
151
153
  - !ruby/struct:VCR::HTTPInteraction
152
154
  request: !ruby/struct:VCR::Request
153
155
  method: :put
154
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/billing-update-1286682213/billing_info.xml
156
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/billing-update-1296690812/billing_info.xml
155
157
  body: |
156
158
  <?xml version="1.0" encoding="UTF-8"?>
157
159
  <billing-info>
158
160
  <address1>1st Ave South, Apt 5001</address1>
159
161
  <city>San Francisco</city>
162
+ <state>CA</state>
160
163
  <zip>94115</zip>
161
164
  <country>US</country>
162
165
  <credit-card>
163
- <number>1</number>
164
- <month type="integer">1</month>
166
+ <number>4111111111111111</number>
165
167
  <year type="integer">2012</year>
168
+ <month type="integer">2</month>
166
169
  <verification-value>123</verification-value>
167
170
  </credit-card>
168
- <last-name>Test</last-name>
169
171
  <first-name>Verena</first-name>
170
- <state>CA</state>
172
+ <last-name>Test</last-name>
171
173
  </billing-info>
172
174
 
173
175
  headers:
176
+ authorization:
177
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
178
+ content-type:
179
+ - application/xml
174
180
  accept:
175
181
  - "*/*"
182
+ user-agent:
183
+ - Ruby
176
184
  connection:
177
185
  - close
178
- content-type:
179
- - application/xml
180
- authorization:
181
- - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
182
186
  response: !ruby/struct:VCR::Response
183
187
  status: !ruby/struct:VCR::ResponseStatus
184
188
  code: 200
185
- message: OK
189
+ message: "OK "
186
190
  headers:
187
- x-ua-compatible:
188
- - IE=Edge
189
- etag:
190
- - "\"5b5a4683dc023ce4013f6f577c717692\""
191
- connection:
192
- - close
191
+ x-runtime:
192
+ - "1979"
193
193
  content-type:
194
194
  - application/xml; charset=utf-8
195
- x-runtime:
196
- - "275"
197
- date:
198
- - Sat, 08 Jan 2011 08:03:52 GMT
199
- server:
200
- - nginx/0.8.53
201
- content-length:
202
- - "650"
203
- set-cookie:
204
- - _recurly_session=6406a405ad0bfae8395b659ca90f0cf3; domain=.recurly.com; path=/; secure; HttpOnly
195
+ etag:
196
+ - "\"b5da767b374f03be98a084a190d101cc\""
205
197
  cache-control:
206
198
  - private, max-age=0, must-revalidate
199
+ content-length:
200
+ - "652"
201
+ server:
202
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
203
+ date:
204
+ - Thu, 03 Feb 2011 22:17:49 GMT
205
+ connection:
206
+ - close
207
+ set-cookie:
208
+ - _recurly_session=b1185c29f260f871d91f9a4fadd8f0f2; domain=.recurly.local; path=/; HttpOnly
207
209
  body: |
208
210
  <?xml version="1.0" encoding="UTF-8"?>
209
211
  <billing_info>
210
- <account_code>billing-update-1286682213</account_code>
212
+ <account_code>billing-update-1296690812</account_code>
211
213
  <first_name>Verena</first_name>
212
214
  <last_name>Test</last_name>
213
215
  <address1>1st Ave South, Apt 5001</address1>
@@ -220,56 +222,58 @@
220
222
  <vat_number></vat_number>
221
223
  <ip_address></ip_address>
222
224
  <credit_card>
223
- <type>bogus</type>
224
- <last_four>1</last_four>
225
- <month type="integer">1</month>
225
+ <type>visa</type>
226
+ <last_four>1111</last_four>
227
+ <month type="integer">2</month>
226
228
  <year type="integer">2012</year>
227
229
  </credit_card>
228
- <updated_at type="datetime">2011-01-08T08:03:52Z</updated_at>
230
+ <updated_at type="datetime">2011-02-03T22:17:49Z</updated_at>
229
231
  </billing_info>
230
232
 
231
233
  http_version: "1.1"
232
234
  - !ruby/struct:VCR::HTTPInteraction
233
235
  request: !ruby/struct:VCR::Request
234
236
  method: :get
235
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/billing-update-1286682213/billing_info.xml
237
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/billing-update-1296690812/billing_info.xml
236
238
  body:
237
239
  headers:
240
+ authorization:
241
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
238
242
  accept:
239
243
  - application/xml
244
+ accept-encoding:
245
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
246
+ user-agent:
247
+ - Ruby
240
248
  connection:
241
249
  - close
242
- authorization:
243
- - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
244
250
  response: !ruby/struct:VCR::Response
245
251
  status: !ruby/struct:VCR::ResponseStatus
246
252
  code: 200
247
- message: OK
253
+ message: "OK "
248
254
  headers:
249
- x-ua-compatible:
250
- - IE=Edge
251
- etag:
252
- - "\"5b5a4683dc023ce4013f6f577c717692\""
253
- connection:
254
- - close
255
+ x-runtime:
256
+ - "194"
255
257
  content-type:
256
258
  - application/xml; charset=utf-8
257
- x-runtime:
258
- - "12"
259
- date:
260
- - Sat, 08 Jan 2011 08:03:52 GMT
261
- server:
262
- - nginx/0.8.53
263
- content-length:
264
- - "650"
265
- set-cookie:
266
- - _recurly_session=fe8ee05b8f569f153cc94e8f9ecbd605; domain=.recurly.com; path=/; secure; HttpOnly
259
+ etag:
260
+ - "\"b5da767b374f03be98a084a190d101cc\""
267
261
  cache-control:
268
262
  - private, max-age=0, must-revalidate
263
+ content-length:
264
+ - "652"
265
+ server:
266
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
267
+ date:
268
+ - Thu, 03 Feb 2011 22:17:51 GMT
269
+ connection:
270
+ - close
271
+ set-cookie:
272
+ - _recurly_session=21ced1f6e0594169c7c507fe325d5735; domain=.recurly.local; path=/; HttpOnly
269
273
  body: |
270
274
  <?xml version="1.0" encoding="UTF-8"?>
271
275
  <billing_info>
272
- <account_code>billing-update-1286682213</account_code>
276
+ <account_code>billing-update-1296690812</account_code>
273
277
  <first_name>Verena</first_name>
274
278
  <last_name>Test</last_name>
275
279
  <address1>1st Ave South, Apt 5001</address1>
@@ -282,12 +286,12 @@
282
286
  <vat_number></vat_number>
283
287
  <ip_address></ip_address>
284
288
  <credit_card>
285
- <type>bogus</type>
286
- <last_four>1</last_four>
287
- <month type="integer">1</month>
289
+ <type>visa</type>
290
+ <last_four>1111</last_four>
291
+ <month type="integer">2</month>
288
292
  <year type="integer">2012</year>
289
293
  </credit_card>
290
- <updated_at type="datetime">2011-01-08T08:03:52Z</updated_at>
294
+ <updated_at type="datetime">2011-02-03T22:17:49Z</updated_at>
291
295
  </billing_info>
292
296
 
293
297
  http_version: "1.1"
@@ -2,57 +2,59 @@
2
2
  - !ruby/struct:VCR::HTTPInteraction
3
3
  request: !ruby/struct:VCR::Request
4
4
  method: :post
5
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/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
- <company-name>Recurly Ruby Gem</company-name>
10
- <account-code>charge-create-1287465632</account-code>
9
+ <account-code>charge-create-1296674173</account-code>
10
+ <first-name>Verena</first-name>
11
11
  <last-name>Test</last-name>
12
- <accept-language type="yaml" nil="true"></accept-language>
13
12
  <email>verena@test.com</email>
14
- <first-name>Verena</first-name>
13
+ <company-name>Recurly Ruby Gem</company-name>
14
+ <accept-language type="yaml" nil="true"></accept-language>
15
15
  </account>
16
16
 
17
17
  headers:
18
+ authorization:
19
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
20
+ content-type:
21
+ - application/xml
18
22
  accept:
19
23
  - "*/*"
24
+ user-agent:
25
+ - Ruby
20
26
  connection:
21
27
  - close
22
- content-type:
23
- - application/xml
24
- authorization:
25
- - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
26
28
  response: !ruby/struct:VCR::Response
27
29
  status: !ruby/struct:VCR::ResponseStatus
28
30
  code: 201
29
- message: Created
31
+ message: "Created "
30
32
  headers:
33
+ cache-control:
34
+ - no-cache
31
35
  location:
32
- - https://recurlytest3-test.recurly.com/accounts/charge-create-1287465632
33
- connection:
34
- - close
36
+ - http://litle-test.recurly.local:3000/accounts/charge-create-1296674173
37
+ x-runtime:
38
+ - "617"
35
39
  content-type:
36
40
  - application/xml; charset=utf-8
37
- x-runtime:
38
- - "425"
39
- date:
40
- - Sat, 08 Jan 2011 08:04:19 GMT
41
- server:
42
- - nginx/0.8.53
43
41
  content-length:
44
42
  - "581"
43
+ server:
44
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
45
+ date:
46
+ - Thu, 03 Feb 2011 22:18:52 GMT
47
+ connection:
48
+ - close
45
49
  set-cookie:
46
- - account_credentials=22c9ccf5bc756446738c05c0903988882644a84d2d2a8142dbb9c0d6a11bf02fbd28013ac1c3fff0c8bdedee5522854e262829e4e3e854673529ddc8e9ec1f4d%3A%3A; domain=.recurly.com; path=/
50
+ - account_credentials=ac2d3ff26a5cc9fbce9ab7db67e65967f2a39283fa32485f57d48e13e6ef18c57f1bbf3011f920f70e7812006be532b30449ed01321226803b75a439107324ab%3A%3A; domain=.recurly.local; path=/
47
51
  - ""
48
- - _recurly_session=912567638b9c0c6fd76e839a3e7f6e67; domain=.recurly.com; path=/; secure; HttpOnly
49
- cache-control:
50
- - no-cache
52
+ - _recurly_session=113f5be12cb23c0fd167532d10b249a9; domain=.recurly.local; path=/; HttpOnly
51
53
  body: |
52
54
  <?xml version="1.0" encoding="UTF-8"?>
53
55
  <account>
54
- <id>charge-create-1287465632</id>
55
- <account_code>charge-create-1287465632</account_code>
56
+ <id>charge-create-1296674173</id>
57
+ <account_code>charge-create-1296674173</account_code>
56
58
  <username></username>
57
59
  <email>verena@test.com</email>
58
60
  <first_name>Verena</first_name>
@@ -60,8 +62,8 @@
60
62
  <company_name>Recurly Ruby Gem</company_name>
61
63
  <balance_in_cents type="integer">0</balance_in_cents>
62
64
  <closed type="boolean">false</closed>
63
- <hosted_login_token>2b7dddf450cf408b8660f3bcbdefddfc</hosted_login_token>
64
- <created_at type="datetime">2011-01-08T08:04:19Z</created_at>
65
+ <hosted_login_token>27ecd1988c45454083103fd7b342eaa1</hosted_login_token>
66
+ <created_at type="datetime">2011-02-03T22:18:52Z</created_at>
65
67
  <state>active</state>
66
68
  </account>
67
69
 
@@ -69,64 +71,64 @@
69
71
  - !ruby/struct:VCR::HTTPInteraction
70
72
  request: !ruby/struct:VCR::Request
71
73
  method: :put
72
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/charge-create-1287465632/billing_info.xml
74
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/charge-create-1296674173/billing_info.xml
73
75
  body: |
74
76
  <?xml version="1.0" encoding="UTF-8"?>
75
77
  <billing-info>
76
78
  <address1>123 Test St</address1>
77
79
  <city>San Francisco</city>
80
+ <state>CA</state>
78
81
  <zip>94115</zip>
79
- <account-code>charge-create-1287465632</account-code>
80
82
  <country>US</country>
81
83
  <credit-card>
82
- <number>1</number>
83
- <month type="integer">1</month>
84
+ <number>4111111111111111</number>
84
85
  <year type="integer">2012</year>
86
+ <month type="integer">2</month>
85
87
  <verification-value>123</verification-value>
86
88
  </credit-card>
87
- <last-name>Test</last-name>
89
+ <account-code>charge-create-1296674173</account-code>
88
90
  <first-name>Verena</first-name>
89
- <state>CA</state>
91
+ <last-name>Test</last-name>
90
92
  </billing-info>
91
93
 
92
94
  headers:
95
+ authorization:
96
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
97
+ content-type:
98
+ - application/xml
93
99
  accept:
94
100
  - "*/*"
101
+ user-agent:
102
+ - Ruby
95
103
  connection:
96
104
  - close
97
- content-type:
98
- - application/xml
99
- authorization:
100
- - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
101
105
  response: !ruby/struct:VCR::Response
102
106
  status: !ruby/struct:VCR::ResponseStatus
103
107
  code: 200
104
- message: OK
108
+ message: "OK "
105
109
  headers:
106
- x-ua-compatible:
107
- - IE=Edge
108
- etag:
109
- - "\"d9ba53e96a2688069eb9d6babd942fa4\""
110
- connection:
111
- - close
110
+ x-runtime:
111
+ - "1617"
112
112
  content-type:
113
113
  - application/xml; charset=utf-8
114
- x-runtime:
115
- - "202"
116
- date:
117
- - Sat, 08 Jan 2011 08:04:20 GMT
118
- server:
119
- - nginx/0.8.53
120
- content-length:
121
- - "637"
122
- set-cookie:
123
- - _recurly_session=150239789158fc371a4cba991528caa0; domain=.recurly.com; path=/; secure; HttpOnly
114
+ etag:
115
+ - "\"071e9bdb8fbbd9648ed0d753efae29f6\""
124
116
  cache-control:
125
117
  - private, max-age=0, must-revalidate
118
+ content-length:
119
+ - "639"
120
+ server:
121
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
122
+ date:
123
+ - Thu, 03 Feb 2011 22:18:55 GMT
124
+ connection:
125
+ - close
126
+ set-cookie:
127
+ - _recurly_session=b11382935805a828d264b7aa8220f6a4; domain=.recurly.local; path=/; HttpOnly
126
128
  body: |
127
129
  <?xml version="1.0" encoding="UTF-8"?>
128
130
  <billing_info>
129
- <account_code>charge-create-1287465632</account_code>
131
+ <account_code>charge-create-1296674173</account_code>
130
132
  <first_name>Verena</first_name>
131
133
  <last_name>Test</last_name>
132
134
  <address1>123 Test St</address1>
@@ -139,19 +141,19 @@
139
141
  <vat_number></vat_number>
140
142
  <ip_address></ip_address>
141
143
  <credit_card>
142
- <type>bogus</type>
143
- <last_four>1</last_four>
144
- <month type="integer">1</month>
144
+ <type>visa</type>
145
+ <last_four>1111</last_four>
146
+ <month type="integer">2</month>
145
147
  <year type="integer">2012</year>
146
148
  </credit_card>
147
- <updated_at type="datetime">2011-01-08T08:04:20Z</updated_at>
149
+ <updated_at type="datetime">2011-02-03T22:18:55Z</updated_at>
148
150
  </billing_info>
149
151
 
150
152
  http_version: "1.1"
151
153
  - !ruby/struct:VCR::HTTPInteraction
152
154
  request: !ruby/struct:VCR::Request
153
155
  method: :post
154
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/charge-create-1287465632/charges.xml
156
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/charge-create-1296674173/charges.xml
155
157
  body: |
156
158
  <?xml version="1.0" encoding="UTF-8"?>
157
159
  <charge>
@@ -160,97 +162,101 @@
160
162
  </charge>
161
163
 
162
164
  headers:
165
+ authorization:
166
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
167
+ content-type:
168
+ - application/xml
163
169
  accept:
164
170
  - "*/*"
171
+ user-agent:
172
+ - Ruby
165
173
  connection:
166
174
  - close
167
- content-type:
168
- - application/xml
169
- authorization:
170
- - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
171
175
  response: !ruby/struct:VCR::Response
172
176
  status: !ruby/struct:VCR::ResponseStatus
173
177
  code: 201
174
- message: Created
178
+ message: "Created "
175
179
  headers:
176
- connection:
177
- - close
180
+ cache-control:
181
+ - no-cache
182
+ x-runtime:
183
+ - "529"
178
184
  content-type:
179
185
  - application/xml; charset=utf-8
180
- x-runtime:
181
- - "45"
182
- date:
183
- - Sat, 08 Jan 2011 08:04:21 GMT
184
- server:
185
- - nginx/0.8.53
186
186
  content-length:
187
187
  - "524"
188
+ server:
189
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
190
+ date:
191
+ - Thu, 03 Feb 2011 22:18:57 GMT
192
+ connection:
193
+ - close
188
194
  set-cookie:
189
- - _recurly_session=ee55a02b9ccafbe2b836df43c13091e0; domain=.recurly.com; path=/; secure; HttpOnly
190
- cache-control:
191
- - no-cache
195
+ - _recurly_session=4815ded9fb580deec6d468c20b2d1137; domain=.recurly.local; path=/; HttpOnly
192
196
  body: |
193
197
  <?xml version="1.0" encoding="UTF-8"?>
194
198
  <charge type="charge">
195
- <id>67f24fa1203d409e91e23efa42467cf8</id>
196
- <account_code>charge-create-1287465632</account_code>
199
+ <id>d6a8833fc6d144ccb2f35bf55d29df6c</id>
200
+ <account_code>charge-create-1296674173</account_code>
197
201
  <amount_in_cents type="integer">250</amount_in_cents>
198
- <start_date type="datetime">2011-01-08T08:04:21Z</start_date>
202
+ <start_date type="datetime">2011-02-03T22:18:57Z</start_date>
199
203
  <end_date nil="true" type="datetime"></end_date>
200
204
  <invoice_number nil="true" type="integer"></invoice_number>
201
205
  <description>virtual cow maintence fee</description>
202
- <created_at type="datetime">2011-01-08T08:04:21Z</created_at>
206
+ <created_at type="datetime">2011-02-03T22:18:57Z</created_at>
203
207
  </charge>
204
208
 
205
209
  http_version: "1.1"
206
210
  - !ruby/struct:VCR::HTTPInteraction
207
211
  request: !ruby/struct:VCR::Request
208
212
  method: :get
209
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/charge-create-1287465632/charges/67f24fa1203d409e91e23efa42467cf8.xml
213
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/charge-create-1296674173/charges/d6a8833fc6d144ccb2f35bf55d29df6c.xml
210
214
  body:
211
215
  headers:
216
+ authorization:
217
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
212
218
  accept:
213
219
  - application/xml
220
+ accept-encoding:
221
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
222
+ user-agent:
223
+ - Ruby
214
224
  connection:
215
225
  - close
216
- authorization:
217
- - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
218
226
  response: !ruby/struct:VCR::Response
219
227
  status: !ruby/struct:VCR::ResponseStatus
220
228
  code: 200
221
- message: OK
229
+ message: "OK "
222
230
  headers:
223
- x-ua-compatible:
224
- - IE=Edge
225
- etag:
226
- - "\"c8de67fbfa0dfc3bc338e6cd94b75a3c\""
227
- connection:
228
- - close
231
+ x-runtime:
232
+ - "78"
229
233
  content-type:
230
234
  - application/xml; charset=utf-8
231
- x-runtime:
232
- - "15"
233
- date:
234
- - Sat, 08 Jan 2011 08:04:22 GMT
235
- server:
236
- - nginx/0.8.53
235
+ etag:
236
+ - "\"6fae388c9450f5a26c1bee90a16cafc8\""
237
+ cache-control:
238
+ - private, max-age=0, must-revalidate
237
239
  content-length:
238
240
  - "524"
241
+ server:
242
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
243
+ date:
244
+ - Thu, 03 Feb 2011 22:18:59 GMT
245
+ connection:
246
+ - close
239
247
  set-cookie:
240
- - _recurly_session=edef4755b14e73ff9fbfd2a23609c049; domain=.recurly.com; path=/; secure; HttpOnly
241
- cache-control:
242
- - private, max-age=0, must-revalidate
248
+ - _recurly_session=f7c2a16179c7e89abb4bb839c1fd30c8; domain=.recurly.local; path=/; HttpOnly
243
249
  body: |
244
250
  <?xml version="1.0" encoding="UTF-8"?>
245
251
  <charge type="charge">
246
- <id>67f24fa1203d409e91e23efa42467cf8</id>
247
- <account_code>charge-create-1287465632</account_code>
252
+ <id>d6a8833fc6d144ccb2f35bf55d29df6c</id>
253
+ <account_code>charge-create-1296674173</account_code>
248
254
  <amount_in_cents type="integer">250</amount_in_cents>
249
- <start_date type="datetime">2011-01-08T08:04:21Z</start_date>
255
+ <start_date type="datetime">2011-02-03T22:18:57Z</start_date>
250
256
  <end_date nil="true" type="datetime"></end_date>
251
257
  <invoice_number nil="true" type="integer"></invoice_number>
252
258
  <description>virtual cow maintence fee</description>
253
- <created_at type="datetime">2011-01-08T08:04:21Z</created_at>
259
+ <created_at type="datetime">2011-02-03T22:18:57Z</created_at>
254
260
  </charge>
255
261
 
256
262
  http_version: "1.1"