recurly 0.3.2 → 0.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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-destroy-1286682213</account-code>
9
+ <account-code>billing-destroy-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-destroy-1286682213
33
- connection:
34
- - close
36
+ - http://litle-test.recurly.local:3000/accounts/billing-destroy-1296690812
37
+ x-runtime:
38
+ - "595"
35
39
  content-type:
36
40
  - application/xml; charset=utf-8
37
- x-runtime:
38
- - "375"
39
- date:
40
- - Sat, 08 Jan 2011 08:03:58 GMT
41
- server:
42
- - nginx/0.8.53
43
41
  content-length:
44
42
  - "585"
43
+ server:
44
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
45
+ date:
46
+ - Thu, 03 Feb 2011 22:18:03 GMT
47
+ connection:
48
+ - close
45
49
  set-cookie:
46
- - account_credentials=6a555b10ae953a6b4de162b091c7095580436896d3ccf15069e1e97b861fdd7858d93ea21628d9f6a0aec7b893451583f73e27ff2548faa92b5f659a399ffe47%3A%3A; domain=.recurly.com; path=/
50
+ - account_credentials=93e6f6c32d955929f0859c3f38eac91f30183a7905867e0cce05547cba192f5f2898e59c627b477ab4d4bd73987cb0fa3bbbece9f91a2c8cf074f4acb2831766%3A%3A; domain=.recurly.local; path=/
47
51
  - ""
48
- - _recurly_session=6b24f00c3e6841c13f654890256793d0; domain=.recurly.com; path=/; secure; HttpOnly
49
- cache-control:
50
- - no-cache
52
+ - _recurly_session=ae4ca057d8a9d9a1178f524b0b033e58; domain=.recurly.local; path=/; HttpOnly
51
53
  body: |
52
54
  <?xml version="1.0" encoding="UTF-8"?>
53
55
  <account>
54
- <id>billing-destroy-1286682213</id>
55
- <account_code>billing-destroy-1286682213</account_code>
56
+ <id>billing-destroy-1296690812</id>
57
+ <account_code>billing-destroy-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>6c134ddd8c2d4abe890b3fed2b5ca4f5</hosted_login_token>
64
- <created_at type="datetime">2011-01-08T08:03:58Z</created_at>
65
+ <hosted_login_token>67a96ce98c214a668110df8578f8db3d</hosted_login_token>
66
+ <created_at type="datetime">2011-02-03T22:18:02Z</created_at>
65
67
  <state>active</state>
66
68
  </account>
67
69
 
@@ -69,63 +71,63 @@
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-destroy-1286682213/billing_info.xml
74
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/billing-destroy-1296690812/billing_info.xml
73
75
  body: |
74
76
  <?xml version="1.0" encoding="UTF-8"?>
75
77
  <billing-info>
76
78
  <address1>500 South Central Blvd</address1>
77
79
  <city>Los Angeles</city>
80
+ <state>CA</state>
78
81
  <zip>90001</zip>
79
82
  <country>US</country>
80
83
  <credit-card>
81
- <number>1</number>
82
- <month type="integer">1</month>
84
+ <number>4111111111111111</number>
83
85
  <year type="integer">2012</year>
86
+ <month type="integer">2</month>
84
87
  <verification-value>123</verification-value>
85
88
  </credit-card>
86
- <last-name>Test</last-name>
87
89
  <first-name>Verena</first-name>
88
- <state>CA</state>
90
+ <last-name>Test</last-name>
89
91
  </billing-info>
90
92
 
91
93
  headers:
94
+ authorization:
95
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
96
+ content-type:
97
+ - application/xml
92
98
  accept:
93
99
  - "*/*"
100
+ user-agent:
101
+ - Ruby
94
102
  connection:
95
103
  - close
96
- content-type:
97
- - application/xml
98
- authorization:
99
- - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
100
104
  response: !ruby/struct:VCR::Response
101
105
  status: !ruby/struct:VCR::ResponseStatus
102
106
  code: 200
103
- message: OK
107
+ message: "OK "
104
108
  headers:
105
- x-ua-compatible:
106
- - IE=Edge
107
- etag:
108
- - "\"005acd9b6487b39972e57d24cd78b6b0\""
109
- connection:
110
- - close
109
+ x-runtime:
110
+ - "1605"
111
111
  content-type:
112
112
  - application/xml; charset=utf-8
113
- x-runtime:
114
- - "177"
115
- date:
116
- - Sat, 08 Jan 2011 08:03:59 GMT
117
- server:
118
- - nginx/0.8.53
119
- content-length:
120
- - "648"
121
- set-cookie:
122
- - _recurly_session=e9944845a8114851bdeae6d12736ec9f; domain=.recurly.com; path=/; secure; HttpOnly
113
+ etag:
114
+ - "\"bb1a681a4f4acadcbc37d7ad16a40435\""
123
115
  cache-control:
124
116
  - private, max-age=0, must-revalidate
117
+ content-length:
118
+ - "650"
119
+ server:
120
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
121
+ date:
122
+ - Thu, 03 Feb 2011 22:18:06 GMT
123
+ connection:
124
+ - close
125
+ set-cookie:
126
+ - _recurly_session=ee7cd3d81974c875e96f6d601f8dab42; domain=.recurly.local; path=/; HttpOnly
125
127
  body: |
126
128
  <?xml version="1.0" encoding="UTF-8"?>
127
129
  <billing_info>
128
- <account_code>billing-destroy-1286682213</account_code>
130
+ <account_code>billing-destroy-1296690812</account_code>
129
131
  <first_name>Verena</first_name>
130
132
  <last_name>Test</last_name>
131
133
  <address1>500 South Central Blvd</address1>
@@ -138,56 +140,58 @@
138
140
  <vat_number></vat_number>
139
141
  <ip_address></ip_address>
140
142
  <credit_card>
141
- <type>bogus</type>
142
- <last_four>1</last_four>
143
- <month type="integer">1</month>
143
+ <type>visa</type>
144
+ <last_four>1111</last_four>
145
+ <month type="integer">2</month>
144
146
  <year type="integer">2012</year>
145
147
  </credit_card>
146
- <updated_at type="datetime">2011-01-08T08:03:59Z</updated_at>
148
+ <updated_at type="datetime">2011-02-03T22:18:06Z</updated_at>
147
149
  </billing_info>
148
150
 
149
151
  http_version: "1.1"
150
152
  - !ruby/struct:VCR::HTTPInteraction
151
153
  request: !ruby/struct:VCR::Request
152
154
  method: :get
153
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/billing-destroy-1286682213/billing_info.xml
155
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/billing-destroy-1296690812/billing_info.xml
154
156
  body:
155
157
  headers:
158
+ authorization:
159
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
156
160
  accept:
157
161
  - application/xml
162
+ accept-encoding:
163
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
164
+ user-agent:
165
+ - Ruby
158
166
  connection:
159
167
  - close
160
- authorization:
161
- - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
162
168
  response: !ruby/struct:VCR::Response
163
169
  status: !ruby/struct:VCR::ResponseStatus
164
170
  code: 200
165
- message: OK
171
+ message: "OK "
166
172
  headers:
167
- x-ua-compatible:
168
- - IE=Edge
169
- etag:
170
- - "\"005acd9b6487b39972e57d24cd78b6b0\""
171
- connection:
172
- - close
173
+ x-runtime:
174
+ - "196"
173
175
  content-type:
174
176
  - application/xml; charset=utf-8
175
- x-runtime:
176
- - "13"
177
- date:
178
- - Sat, 08 Jan 2011 08:03:59 GMT
179
- server:
180
- - nginx/0.8.53
181
- content-length:
182
- - "648"
183
- set-cookie:
184
- - _recurly_session=cc93dfeac43cbd0f9a9787a589619849; domain=.recurly.com; path=/; secure; HttpOnly
177
+ etag:
178
+ - "\"bb1a681a4f4acadcbc37d7ad16a40435\""
185
179
  cache-control:
186
180
  - private, max-age=0, must-revalidate
181
+ content-length:
182
+ - "650"
183
+ server:
184
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
185
+ date:
186
+ - Thu, 03 Feb 2011 22:18:08 GMT
187
+ connection:
188
+ - close
189
+ set-cookie:
190
+ - _recurly_session=143d5f0b58665853add2731a45150ac4; domain=.recurly.local; path=/; HttpOnly
187
191
  body: |
188
192
  <?xml version="1.0" encoding="UTF-8"?>
189
193
  <billing_info>
190
- <account_code>billing-destroy-1286682213</account_code>
194
+ <account_code>billing-destroy-1296690812</account_code>
191
195
  <first_name>Verena</first_name>
192
196
  <last_name>Test</last_name>
193
197
  <address1>500 South Central Blvd</address1>
@@ -200,111 +204,91 @@
200
204
  <vat_number></vat_number>
201
205
  <ip_address></ip_address>
202
206
  <credit_card>
203
- <type>bogus</type>
204
- <last_four>1</last_four>
205
- <month type="integer">1</month>
207
+ <type>visa</type>
208
+ <last_four>1111</last_four>
209
+ <month type="integer">2</month>
206
210
  <year type="integer">2012</year>
207
211
  </credit_card>
208
- <updated_at type="datetime">2011-01-08T08:03:59Z</updated_at>
212
+ <updated_at type="datetime">2011-02-03T22:18:06Z</updated_at>
209
213
  </billing_info>
210
214
 
211
215
  http_version: "1.1"
212
216
  - !ruby/struct:VCR::HTTPInteraction
213
217
  request: !ruby/struct:VCR::Request
214
218
  method: :delete
215
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/billing-destroy-1286682213/billing_info.xml
219
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/billing-destroy-1296690812/billing_info.xml
216
220
  body:
217
221
  headers:
222
+ authorization:
223
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
218
224
  accept:
219
225
  - application/xml
226
+ user-agent:
227
+ - Ruby
220
228
  connection:
221
229
  - close
222
- authorization:
223
- - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
224
230
  response: !ruby/struct:VCR::Response
225
231
  status: !ruby/struct:VCR::ResponseStatus
226
232
  code: 200
227
- message: OK
233
+ message: "OK "
228
234
  headers:
229
- x-ua-compatible:
230
- - IE=Edge
231
- connection:
232
- - close
235
+ cache-control:
236
+ - no-cache
237
+ x-runtime:
238
+ - "190"
233
239
  content-type:
234
240
  - application/xml; charset=utf-8
235
- x-runtime:
236
- - "19"
237
- date:
238
- - Sat, 08 Jan 2011 08:04:00 GMT
239
- server:
240
- - nginx/0.8.53
241
241
  content-length:
242
242
  - "1"
243
+ server:
244
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
245
+ date:
246
+ - Thu, 03 Feb 2011 22:18:10 GMT
247
+ connection:
248
+ - close
243
249
  set-cookie:
244
- - _recurly_session=3518628d5977150bae54aac642e2c731; domain=.recurly.com; path=/; secure; HttpOnly
245
- cache-control:
246
- - no-cache
250
+ - _recurly_session=219cd71e1be898c6ff7315a4b5c25b04; domain=.recurly.local; path=/; HttpOnly
247
251
  body: " "
248
252
  http_version: "1.1"
249
253
  - !ruby/struct:VCR::HTTPInteraction
250
254
  request: !ruby/struct:VCR::Request
251
255
  method: :get
252
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/billing-destroy-1286682213/billing_info.xml
256
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/billing-destroy-1296690812/billing_info.xml
253
257
  body:
254
258
  headers:
259
+ authorization:
260
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
255
261
  accept:
256
262
  - application/xml
263
+ accept-encoding:
264
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
265
+ user-agent:
266
+ - Ruby
257
267
  connection:
258
268
  - close
259
- authorization:
260
- - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
261
269
  response: !ruby/struct:VCR::Response
262
270
  status: !ruby/struct:VCR::ResponseStatus
263
- code: 200
264
- message: OK
271
+ code: 404
272
+ message: "Not Found "
265
273
  headers:
266
- x-ua-compatible:
267
- - IE=Edge
268
- etag:
269
- - "\"201ca18e87fa968104fe1c44990a8658\""
270
- connection:
271
- - close
274
+ cache-control:
275
+ - no-cache
272
276
  content-type:
273
277
  - application/xml; charset=utf-8
274
- x-runtime:
275
- - "12"
276
- date:
277
- - Sat, 08 Jan 2011 08:04:01 GMT
278
- server:
279
- - nginx/0.8.53
280
278
  content-length:
281
- - "597"
279
+ - "98"
280
+ server:
281
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
282
+ date:
283
+ - Thu, 03 Feb 2011 22:18:11 GMT
284
+ connection:
285
+ - close
282
286
  set-cookie:
283
- - _recurly_session=7c0aa3c22e03c645e52a70666b8828cd; domain=.recurly.com; path=/; secure; HttpOnly
284
- cache-control:
285
- - private, max-age=0, must-revalidate
287
+ - _recurly_session=b95c4c1ecaca97e519eb1296da39c410; domain=.recurly.local; path=/; HttpOnly
286
288
  body: |
287
289
  <?xml version="1.0" encoding="UTF-8"?>
288
- <billing_info>
289
- <account_code>billing-destroy-1286682213</account_code>
290
- <first_name></first_name>
291
- <last_name></last_name>
292
- <address1></address1>
293
- <address2></address2>
294
- <city></city>
295
- <state></state>
296
- <country></country>
297
- <zip></zip>
298
- <phone></phone>
299
- <vat_number></vat_number>
300
- <ip_address></ip_address>
301
- <credit_card>
302
- <type>unknown</type>
303
- <last_four></last_four>
304
- <month type="integer">1</month>
305
- <year type="integer">2011</year>
306
- </credit_card>
307
- <updated_at type="datetime">2011-01-08T08:04:01Z</updated_at>
308
- </billing_info>
290
+ <errors>
291
+ <error>Billing Info not found</error>
292
+ </errors>
309
293
 
310
294
  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>billing-find-1286682213</account-code>
9
+ <account-code>billing-find-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-find-1286682213
33
- connection:
34
- - close
36
+ - http://litle-test.recurly.local:3000/accounts/billing-find-1296690812
37
+ x-runtime:
38
+ - "630"
35
39
  content-type:
36
40
  - application/xml; charset=utf-8
37
- x-runtime:
38
- - "430"
39
- date:
40
- - Sat, 08 Jan 2011 08:03:54 GMT
41
- server:
42
- - nginx/0.8.53
43
41
  content-length:
44
42
  - "579"
43
+ server:
44
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
45
+ date:
46
+ - Thu, 03 Feb 2011 22:17:53 GMT
47
+ connection:
48
+ - close
45
49
  set-cookie:
46
- - account_credentials=879220fd680ed02b5a78de1a1337960f63005e156959cfdcbb1100f36da2896a2823ff3dece513e1655fb917e1397928873362f4924ff10b27b9fd921104b1d0%3A%3A; domain=.recurly.com; path=/
50
+ - account_credentials=0cd5909a62abe85ef618f92afb16967f99a123ddb24bb60c666636148a4ebfdbce2e4f697570572ea6242df3b7ec611d89eeaac7d5330aaf1f224077543c9d5b%3A%3A; domain=.recurly.local; path=/
47
51
  - ""
48
- - _recurly_session=f27e8a14278e8573482e25cd54975493; domain=.recurly.com; path=/; secure; HttpOnly
49
- cache-control:
50
- - no-cache
52
+ - _recurly_session=5d89afebae174e05d5c84681f22f274f; domain=.recurly.local; path=/; HttpOnly
51
53
  body: |
52
54
  <?xml version="1.0" encoding="UTF-8"?>
53
55
  <account>
54
- <id>billing-find-1286682213</id>
55
- <account_code>billing-find-1286682213</account_code>
56
+ <id>billing-find-1296690812</id>
57
+ <account_code>billing-find-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>dd2d58da31f04a7180f7349af7971208</hosted_login_token>
64
- <created_at type="datetime">2011-01-08T08:03:54Z</created_at>
65
+ <hosted_login_token>13c39c85eef344f2ad86ae6b3a79f52d</hosted_login_token>
66
+ <created_at type="datetime">2011-02-03T22:17:53Z</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-find-1286682213/billing_info.xml
74
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/billing-find-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-find-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-find-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
- - "\"0c0788fb789cbabd71356165286e2f2e\""
110
- connection:
111
- - close
110
+ x-runtime:
111
+ - "1466"
112
112
  content-type:
113
113
  - application/xml; charset=utf-8
114
- x-runtime:
115
- - "244"
116
- date:
117
- - Sat, 08 Jan 2011 08:03:55 GMT
118
- server:
119
- - nginx/0.8.53
120
- content-length:
121
- - "636"
122
- set-cookie:
123
- - _recurly_session=69470e6ea8f54e1f562f884982c36f11; domain=.recurly.com; path=/; secure; HttpOnly
114
+ etag:
115
+ - "\"72b1fbf237062feb38cba92d8cd01930\""
124
116
  cache-control:
125
117
  - private, max-age=0, must-revalidate
118
+ content-length:
119
+ - "638"
120
+ server:
121
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
122
+ date:
123
+ - Thu, 03 Feb 2011 22:17:56 GMT
124
+ connection:
125
+ - close
126
+ set-cookie:
127
+ - _recurly_session=8fc23cef06dd74269860cdb10008bf28; 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-find-1286682213</account_code>
131
+ <account_code>billing-find-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,56 +141,58 @@
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:55Z</updated_at>
149
+ <updated_at type="datetime">2011-02-03T22:17:56Z</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: :get
154
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/billing-find-1286682213/billing_info.xml
156
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/billing-find-1296690812/billing_info.xml
155
157
  body:
156
158
  headers:
159
+ authorization:
160
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
157
161
  accept:
158
162
  - application/xml
163
+ accept-encoding:
164
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
165
+ user-agent:
166
+ - Ruby
159
167
  connection:
160
168
  - close
161
- authorization:
162
- - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
163
169
  response: !ruby/struct:VCR::Response
164
170
  status: !ruby/struct:VCR::ResponseStatus
165
171
  code: 200
166
- message: OK
172
+ message: "OK "
167
173
  headers:
168
- x-ua-compatible:
169
- - IE=Edge
170
- etag:
171
- - "\"0c0788fb789cbabd71356165286e2f2e\""
172
- connection:
173
- - close
174
+ x-runtime:
175
+ - "80"
174
176
  content-type:
175
177
  - application/xml; charset=utf-8
176
- x-runtime:
177
- - "13"
178
- date:
179
- - Sat, 08 Jan 2011 08:03:55 GMT
180
- server:
181
- - nginx/0.8.53
182
- content-length:
183
- - "636"
184
- set-cookie:
185
- - _recurly_session=7566fedb3d5ad34fbc38583f5b93d9d6; domain=.recurly.com; path=/; secure; HttpOnly
178
+ etag:
179
+ - "\"72b1fbf237062feb38cba92d8cd01930\""
186
180
  cache-control:
187
181
  - private, max-age=0, must-revalidate
182
+ content-length:
183
+ - "638"
184
+ server:
185
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
186
+ date:
187
+ - Thu, 03 Feb 2011 22:17:58 GMT
188
+ connection:
189
+ - close
190
+ set-cookie:
191
+ - _recurly_session=9b66ed7036209b06f77131dfe6ac8e47; domain=.recurly.local; path=/; HttpOnly
188
192
  body: |
189
193
  <?xml version="1.0" encoding="UTF-8"?>
190
194
  <billing_info>
191
- <account_code>billing-find-1286682213</account_code>
195
+ <account_code>billing-find-1296690812</account_code>
192
196
  <first_name>Verena</first_name>
193
197
  <last_name>Test</last_name>
194
198
  <address1>123 Test St</address1>
@@ -201,56 +205,58 @@
201
205
  <vat_number></vat_number>
202
206
  <ip_address></ip_address>
203
207
  <credit_card>
204
- <type>bogus</type>
205
- <last_four>1</last_four>
206
- <month type="integer">1</month>
208
+ <type>visa</type>
209
+ <last_four>1111</last_four>
210
+ <month type="integer">2</month>
207
211
  <year type="integer">2012</year>
208
212
  </credit_card>
209
- <updated_at type="datetime">2011-01-08T08:03:55Z</updated_at>
213
+ <updated_at type="datetime">2011-02-03T22:17:56Z</updated_at>
210
214
  </billing_info>
211
215
 
212
216
  http_version: "1.1"
213
217
  - !ruby/struct:VCR::HTTPInteraction
214
218
  request: !ruby/struct:VCR::Request
215
219
  method: :get
216
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/billing-find-1286682213/billing_info.xml
220
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/billing-find-1296690812/billing_info.xml
217
221
  body:
218
222
  headers:
223
+ authorization:
224
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
219
225
  accept:
220
226
  - application/xml
227
+ accept-encoding:
228
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
229
+ user-agent:
230
+ - Ruby
221
231
  connection:
222
232
  - close
223
- authorization:
224
- - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
225
233
  response: !ruby/struct:VCR::Response
226
234
  status: !ruby/struct:VCR::ResponseStatus
227
235
  code: 200
228
- message: OK
236
+ message: "OK "
229
237
  headers:
230
- x-ua-compatible:
231
- - IE=Edge
232
- etag:
233
- - "\"0c0788fb789cbabd71356165286e2f2e\""
234
- connection:
235
- - close
238
+ x-runtime:
239
+ - "87"
236
240
  content-type:
237
241
  - application/xml; charset=utf-8
238
- x-runtime:
239
- - "12"
240
- date:
241
- - Sat, 08 Jan 2011 08:03:56 GMT
242
- server:
243
- - nginx/0.8.53
244
- content-length:
245
- - "636"
246
- set-cookie:
247
- - _recurly_session=8d857390071797aaa8a090cbd1f17e49; domain=.recurly.com; path=/; secure; HttpOnly
242
+ etag:
243
+ - "\"72b1fbf237062feb38cba92d8cd01930\""
248
244
  cache-control:
249
245
  - private, max-age=0, must-revalidate
246
+ content-length:
247
+ - "638"
248
+ server:
249
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
250
+ date:
251
+ - Thu, 03 Feb 2011 22:18:00 GMT
252
+ connection:
253
+ - close
254
+ set-cookie:
255
+ - _recurly_session=3ac8a08622d7e004c979871db5ec2086; domain=.recurly.local; path=/; HttpOnly
250
256
  body: |
251
257
  <?xml version="1.0" encoding="UTF-8"?>
252
258
  <billing_info>
253
- <account_code>billing-find-1286682213</account_code>
259
+ <account_code>billing-find-1296690812</account_code>
254
260
  <first_name>Verena</first_name>
255
261
  <last_name>Test</last_name>
256
262
  <address1>123 Test St</address1>
@@ -263,12 +269,12 @@
263
269
  <vat_number></vat_number>
264
270
  <ip_address></ip_address>
265
271
  <credit_card>
266
- <type>bogus</type>
267
- <last_four>1</last_four>
268
- <month type="integer">1</month>
272
+ <type>visa</type>
273
+ <last_four>1111</last_four>
274
+ <month type="integer">2</month>
269
275
  <year type="integer">2012</year>
270
276
  </credit_card>
271
- <updated_at type="datetime">2011-01-08T08:03:55Z</updated_at>
277
+ <updated_at type="datetime">2011-02-03T22:17:56Z</updated_at>
272
278
  </billing_info>
273
279
 
274
280
  http_version: "1.1"