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>charge-list-pending-1287465632</account-code>
9
+ <account-code>charge-list-pending-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-list-pending-1287465632
33
- connection:
34
- - close
36
+ - http://litle-test.recurly.local:3000/accounts/charge-list-pending-1296674173
37
+ x-runtime:
38
+ - "584"
35
39
  content-type:
36
40
  - application/xml; charset=utf-8
37
- x-runtime:
38
- - "352"
39
- date:
40
- - Sat, 08 Jan 2011 08:04:06 GMT
41
- server:
42
- - nginx/0.8.53
43
41
  content-length:
44
42
  - "593"
43
+ server:
44
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
45
+ date:
46
+ - Thu, 03 Feb 2011 22:18:24 GMT
47
+ connection:
48
+ - close
45
49
  set-cookie:
46
- - account_credentials=d079476e27c07ea770667801aa028ff038880eae78a37e61b91108971f9091c550dac1a6b57dae72430a69b6dec1faa006af35e451308a92f2a4a8e3eb594f9b%3A%3A; domain=.recurly.com; path=/
50
+ - account_credentials=f40298b64706e5b7415cf63a5cad3dddb98a5433b8f0e71c55f7e079fb71298a9b312349110fb8faf397404bdff113e918a6fb126c8a6f78471f729fa04224c9%3A%3A; domain=.recurly.local; path=/
47
51
  - ""
48
- - _recurly_session=cc44feba27cac45cac5c8e0f4940022a; domain=.recurly.com; path=/; secure; HttpOnly
49
- cache-control:
50
- - no-cache
52
+ - _recurly_session=cff62029aa8c2e54d96d3e861c5b8adf; domain=.recurly.local; path=/; HttpOnly
51
53
  body: |
52
54
  <?xml version="1.0" encoding="UTF-8"?>
53
55
  <account>
54
- <id>charge-list-pending-1287465632</id>
55
- <account_code>charge-list-pending-1287465632</account_code>
56
+ <id>charge-list-pending-1296674173</id>
57
+ <account_code>charge-list-pending-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>831b1f8d50394ddf8dcd76f3cb731b0f</hosted_login_token>
64
- <created_at type="datetime">2011-01-08T08:04:06Z</created_at>
65
+ <hosted_login_token>f9a382cb40674a01a661fefdaef06446</hosted_login_token>
66
+ <created_at type="datetime">2011-02-03T22:18:24Z</created_at>
65
67
  <state>active</state>
66
68
  </account>
67
69
 
@@ -69,7 +71,7 @@
69
71
  - !ruby/struct:VCR::HTTPInteraction
70
72
  request: !ruby/struct:VCR::Request
71
73
  method: :post
72
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/charge-list-pending-1287465632/charges.xml
74
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/charge-list-pending-1296674173/charges.xml
73
75
  body: |
74
76
  <?xml version="1.0" encoding="UTF-8"?>
75
77
  <charge>
@@ -78,53 +80,55 @@
78
80
  </charge>
79
81
 
80
82
  headers:
83
+ authorization:
84
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
85
+ content-type:
86
+ - application/xml
81
87
  accept:
82
88
  - "*/*"
89
+ user-agent:
90
+ - Ruby
83
91
  connection:
84
92
  - close
85
- content-type:
86
- - application/xml
87
- authorization:
88
- - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
89
93
  response: !ruby/struct:VCR::Response
90
94
  status: !ruby/struct:VCR::ResponseStatus
91
95
  code: 201
92
- message: Created
96
+ message: "Created "
93
97
  headers:
94
- connection:
95
- - close
98
+ cache-control:
99
+ - no-cache
100
+ x-runtime:
101
+ - "404"
96
102
  content-type:
97
103
  - application/xml; charset=utf-8
98
- x-runtime:
99
- - "46"
100
- date:
101
- - Sat, 08 Jan 2011 08:04:07 GMT
102
- server:
103
- - nginx/0.8.53
104
104
  content-length:
105
105
  - "524"
106
+ server:
107
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
108
+ date:
109
+ - Thu, 03 Feb 2011 22:18:26 GMT
110
+ connection:
111
+ - close
106
112
  set-cookie:
107
- - _recurly_session=ba01b1cbc2ee569b5948c3810a995451; domain=.recurly.com; path=/; secure; HttpOnly
108
- cache-control:
109
- - no-cache
113
+ - _recurly_session=9a1fea509567f1bea8f112f01191dabf; domain=.recurly.local; path=/; HttpOnly
110
114
  body: |
111
115
  <?xml version="1.0" encoding="UTF-8"?>
112
116
  <charge type="charge">
113
- <id>ca817b38fc4e48379b144ea519cd440a</id>
114
- <account_code>charge-list-pending-1287465632</account_code>
117
+ <id>883a591cc8ab4021af20a219ad6e116d</id>
118
+ <account_code>charge-list-pending-1296674173</account_code>
115
119
  <amount_in_cents type="integer">1000</amount_in_cents>
116
- <start_date type="datetime">2011-01-08T08:04:07Z</start_date>
120
+ <start_date type="datetime">2011-02-03T22:18:26Z</start_date>
117
121
  <end_date nil="true" type="datetime"></end_date>
118
122
  <invoice_number nil="true" type="integer"></invoice_number>
119
123
  <description>charge description</description>
120
- <created_at type="datetime">2011-01-08T08:04:07Z</created_at>
124
+ <created_at type="datetime">2011-02-03T22:18:26Z</created_at>
121
125
  </charge>
122
126
 
123
127
  http_version: "1.1"
124
128
  - !ruby/struct:VCR::HTTPInteraction
125
129
  request: !ruby/struct:VCR::Request
126
130
  method: :post
127
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/charge-list-pending-1287465632/charges.xml
131
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/charge-list-pending-1296674173/charges.xml
128
132
  body: |
129
133
  <?xml version="1.0" encoding="UTF-8"?>
130
134
  <charge>
@@ -133,53 +137,55 @@
133
137
  </charge>
134
138
 
135
139
  headers:
140
+ authorization:
141
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
142
+ content-type:
143
+ - application/xml
136
144
  accept:
137
145
  - "*/*"
146
+ user-agent:
147
+ - Ruby
138
148
  connection:
139
149
  - close
140
- content-type:
141
- - application/xml
142
- authorization:
143
- - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
144
150
  response: !ruby/struct:VCR::Response
145
151
  status: !ruby/struct:VCR::ResponseStatus
146
152
  code: 201
147
- message: Created
153
+ message: "Created "
148
154
  headers:
149
- connection:
150
- - close
155
+ cache-control:
156
+ - no-cache
157
+ x-runtime:
158
+ - "540"
151
159
  content-type:
152
160
  - application/xml; charset=utf-8
153
- x-runtime:
154
- - "46"
155
- date:
156
- - Sat, 08 Jan 2011 08:04:08 GMT
157
- server:
158
- - nginx/0.8.53
159
161
  content-length:
160
162
  - "524"
163
+ server:
164
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
165
+ date:
166
+ - Thu, 03 Feb 2011 22:18:29 GMT
167
+ connection:
168
+ - close
161
169
  set-cookie:
162
- - _recurly_session=ac2aa4c67899af52811c1159dad75e57; domain=.recurly.com; path=/; secure; HttpOnly
163
- cache-control:
164
- - no-cache
170
+ - _recurly_session=265580f2615eea8757547035a1390fa8; domain=.recurly.local; path=/; HttpOnly
165
171
  body: |
166
172
  <?xml version="1.0" encoding="UTF-8"?>
167
173
  <charge type="charge">
168
- <id>d3948fb472d54b52be76cdaf10b7b92d</id>
169
- <account_code>charge-list-pending-1287465632</account_code>
174
+ <id>63757f77c5e24c469287149f17f04e8b</id>
175
+ <account_code>charge-list-pending-1296674173</account_code>
170
176
  <amount_in_cents type="integer">1000</amount_in_cents>
171
- <start_date type="datetime">2011-01-08T08:04:08Z</start_date>
177
+ <start_date type="datetime">2011-02-03T22:18:28Z</start_date>
172
178
  <end_date nil="true" type="datetime"></end_date>
173
179
  <invoice_number nil="true" type="integer"></invoice_number>
174
180
  <description>charge description</description>
175
- <created_at type="datetime">2011-01-08T08:04:08Z</created_at>
181
+ <created_at type="datetime">2011-02-03T22:18:28Z</created_at>
176
182
  </charge>
177
183
 
178
184
  http_version: "1.1"
179
185
  - !ruby/struct:VCR::HTTPInteraction
180
186
  request: !ruby/struct:VCR::Request
181
187
  method: :post
182
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/charge-list-pending-1287465632/charges.xml
188
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/charge-list-pending-1296674173/charges.xml
183
189
  body: |
184
190
  <?xml version="1.0" encoding="UTF-8"?>
185
191
  <charge>
@@ -188,118 +194,122 @@
188
194
  </charge>
189
195
 
190
196
  headers:
197
+ authorization:
198
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
199
+ content-type:
200
+ - application/xml
191
201
  accept:
192
202
  - "*/*"
203
+ user-agent:
204
+ - Ruby
193
205
  connection:
194
206
  - close
195
- content-type:
196
- - application/xml
197
- authorization:
198
- - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
199
207
  response: !ruby/struct:VCR::Response
200
208
  status: !ruby/struct:VCR::ResponseStatus
201
209
  code: 201
202
- message: Created
210
+ message: "Created "
203
211
  headers:
204
- connection:
205
- - close
212
+ cache-control:
213
+ - no-cache
214
+ x-runtime:
215
+ - "610"
206
216
  content-type:
207
217
  - application/xml; charset=utf-8
208
- x-runtime:
209
- - "156"
210
- date:
211
- - Sat, 08 Jan 2011 08:04:09 GMT
212
- server:
213
- - nginx/0.8.53
214
218
  content-length:
215
219
  - "524"
220
+ server:
221
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
222
+ date:
223
+ - Thu, 03 Feb 2011 22:18:31 GMT
224
+ connection:
225
+ - close
216
226
  set-cookie:
217
- - _recurly_session=f24ab4a9b33bb3049e009e363eb85d1b; domain=.recurly.com; path=/; secure; HttpOnly
218
- cache-control:
219
- - no-cache
227
+ - _recurly_session=f9ba2166026326f3679bd3ae7a76fd86; domain=.recurly.local; path=/; HttpOnly
220
228
  body: |
221
229
  <?xml version="1.0" encoding="UTF-8"?>
222
230
  <charge type="charge">
223
- <id>9ad2a1185dbf498c8281ea78ce91a318</id>
224
- <account_code>charge-list-pending-1287465632</account_code>
231
+ <id>8883770585bd4062a26ceafd72dffc40</id>
232
+ <account_code>charge-list-pending-1296674173</account_code>
225
233
  <amount_in_cents type="integer">1000</amount_in_cents>
226
- <start_date type="datetime">2011-01-08T08:04:09Z</start_date>
234
+ <start_date type="datetime">2011-02-03T22:18:30Z</start_date>
227
235
  <end_date nil="true" type="datetime"></end_date>
228
236
  <invoice_number nil="true" type="integer"></invoice_number>
229
237
  <description>charge description</description>
230
- <created_at type="datetime">2011-01-08T08:04:09Z</created_at>
238
+ <created_at type="datetime">2011-02-03T22:18:30Z</created_at>
231
239
  </charge>
232
240
 
233
241
  http_version: "1.1"
234
242
  - !ruby/struct:VCR::HTTPInteraction
235
243
  request: !ruby/struct:VCR::Request
236
244
  method: :get
237
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/charge-list-pending-1287465632/charges.xml?show=pending
245
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/charge-list-pending-1296674173/charges.xml?show=pending
238
246
  body:
239
247
  headers:
248
+ authorization:
249
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
240
250
  accept:
241
251
  - application/xml
252
+ accept-encoding:
253
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
254
+ user-agent:
255
+ - Ruby
242
256
  connection:
243
257
  - close
244
- authorization:
245
- - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
246
258
  response: !ruby/struct:VCR::Response
247
259
  status: !ruby/struct:VCR::ResponseStatus
248
260
  code: 200
249
- message: OK
261
+ message: "OK "
250
262
  headers:
251
- x-ua-compatible:
252
- - IE=Edge
253
- etag:
254
- - "\"0059ffacf3c41bf32c2d9b415910870a\""
255
- connection:
256
- - close
263
+ x-runtime:
264
+ - "180"
257
265
  content-type:
258
266
  - application/xml; charset=utf-8
259
- x-runtime:
260
- - "17"
261
- date:
262
- - Sat, 08 Jan 2011 08:04:10 GMT
263
- server:
264
- - nginx/0.8.53
267
+ etag:
268
+ - "\"ff5941d6d76602a00e120de39efd3d20\""
269
+ cache-control:
270
+ - private, max-age=0, must-revalidate
265
271
  content-length:
266
272
  - "1588"
273
+ server:
274
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
275
+ date:
276
+ - Thu, 03 Feb 2011 22:18:33 GMT
277
+ connection:
278
+ - close
267
279
  set-cookie:
268
- - _recurly_session=38759d3a419f67b26cd8229353ebe9a9; domain=.recurly.com; path=/; secure; HttpOnly
269
- cache-control:
270
- - private, max-age=0, must-revalidate
280
+ - _recurly_session=187e8811d275ae57d56430859c91fae8; domain=.recurly.local; path=/; HttpOnly
271
281
  body: |
272
282
  <?xml version="1.0" encoding="UTF-8"?>
273
283
  <charges type="array">
274
284
  <charge type="charge">
275
- <id>9ad2a1185dbf498c8281ea78ce91a318</id>
276
- <account_code>charge-list-pending-1287465632</account_code>
285
+ <id>8883770585bd4062a26ceafd72dffc40</id>
286
+ <account_code>charge-list-pending-1296674173</account_code>
277
287
  <amount_in_cents type="integer">1000</amount_in_cents>
278
- <start_date type="datetime">2011-01-08T08:04:09Z</start_date>
288
+ <start_date type="datetime">2011-02-03T22:18:30Z</start_date>
279
289
  <end_date nil="true" type="datetime"></end_date>
280
290
  <invoice_number nil="true" type="integer"></invoice_number>
281
291
  <description>charge description</description>
282
- <created_at type="datetime">2011-01-08T08:04:09Z</created_at>
292
+ <created_at type="datetime">2011-02-03T22:18:30Z</created_at>
283
293
  </charge>
284
294
  <charge type="charge">
285
- <id>d3948fb472d54b52be76cdaf10b7b92d</id>
286
- <account_code>charge-list-pending-1287465632</account_code>
295
+ <id>63757f77c5e24c469287149f17f04e8b</id>
296
+ <account_code>charge-list-pending-1296674173</account_code>
287
297
  <amount_in_cents type="integer">1000</amount_in_cents>
288
- <start_date type="datetime">2011-01-08T08:04:08Z</start_date>
298
+ <start_date type="datetime">2011-02-03T22:18:28Z</start_date>
289
299
  <end_date nil="true" type="datetime"></end_date>
290
300
  <invoice_number nil="true" type="integer"></invoice_number>
291
301
  <description>charge description</description>
292
- <created_at type="datetime">2011-01-08T08:04:08Z</created_at>
302
+ <created_at type="datetime">2011-02-03T22:18:28Z</created_at>
293
303
  </charge>
294
304
  <charge type="charge">
295
- <id>ca817b38fc4e48379b144ea519cd440a</id>
296
- <account_code>charge-list-pending-1287465632</account_code>
305
+ <id>883a591cc8ab4021af20a219ad6e116d</id>
306
+ <account_code>charge-list-pending-1296674173</account_code>
297
307
  <amount_in_cents type="integer">1000</amount_in_cents>
298
- <start_date type="datetime">2011-01-08T08:04:07Z</start_date>
308
+ <start_date type="datetime">2011-02-03T22:18:26Z</start_date>
299
309
  <end_date nil="true" type="datetime"></end_date>
300
310
  <invoice_number nil="true" type="integer"></invoice_number>
301
311
  <description>charge description</description>
302
- <created_at type="datetime">2011-01-08T08:04:07Z</created_at>
312
+ <created_at type="datetime">2011-02-03T22:18:26Z</created_at>
303
313
  </charge>
304
314
  </charges>
305
315
 
@@ -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-lookup-1287465632</account-code>
9
+ <account-code>charge-lookup-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-lookup-1287465632
33
- connection:
34
- - close
36
+ - http://litle-test.recurly.local:3000/accounts/charge-lookup-1296674173
37
+ x-runtime:
38
+ - "604"
35
39
  content-type:
36
40
  - application/xml; charset=utf-8
37
- x-runtime:
38
- - "350"
39
- date:
40
- - Sat, 08 Jan 2011 08:04:23 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:19:02 GMT
47
+ connection:
48
+ - close
45
49
  set-cookie:
46
- - account_credentials=de8a8a32f61588e3cf6d432ba4f6ea12b12d4a9b3ffa8af1801717ecbc328d2d5738dc8ede77154bb0714057bb6fb80c5f71a445ff9494a8a6efda2a3ff21927%3A%3A; domain=.recurly.com; path=/
50
+ - account_credentials=695bd49e3bd8fbc3ee7d4c629cb598a863d051e01de74ed47862491142c02363eae86c4f33ebd376aa114e9cdc5f088bbacdf4d617179c803eb757304b1702db%3A%3A; domain=.recurly.local; path=/
47
51
  - ""
48
- - _recurly_session=1922adfc2877d0096429569899ef5dfc; domain=.recurly.com; path=/; secure; HttpOnly
49
- cache-control:
50
- - no-cache
52
+ - _recurly_session=1ed8044ce7742aa7daa0631b9040f923; domain=.recurly.local; path=/; HttpOnly
51
53
  body: |
52
54
  <?xml version="1.0" encoding="UTF-8"?>
53
55
  <account>
54
- <id>charge-lookup-1287465632</id>
55
- <account_code>charge-lookup-1287465632</account_code>
56
+ <id>charge-lookup-1296674173</id>
57
+ <account_code>charge-lookup-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>5e507fefee3144feacebbaa5061b46da</hosted_login_token>
64
- <created_at type="datetime">2011-01-08T08:04:23Z</created_at>
65
+ <hosted_login_token>f1b330c0c1734759aea161f70c96d9e5</hosted_login_token>
66
+ <created_at type="datetime">2011-02-03T22:19:02Z</created_at>
65
67
  <state>active</state>
66
68
  </account>
67
69
 
@@ -69,7 +71,7 @@
69
71
  - !ruby/struct:VCR::HTTPInteraction
70
72
  request: !ruby/struct:VCR::Request
71
73
  method: :post
72
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/charge-lookup-1287465632/charges.xml
74
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/charge-lookup-1296674173/charges.xml
73
75
  body: |
74
76
  <?xml version="1.0" encoding="UTF-8"?>
75
77
  <charge>
@@ -78,97 +80,101 @@
78
80
  </charge>
79
81
 
80
82
  headers:
83
+ authorization:
84
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
85
+ content-type:
86
+ - application/xml
81
87
  accept:
82
88
  - "*/*"
89
+ user-agent:
90
+ - Ruby
83
91
  connection:
84
92
  - close
85
- content-type:
86
- - application/xml
87
- authorization:
88
- - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
89
93
  response: !ruby/struct:VCR::Response
90
94
  status: !ruby/struct:VCR::ResponseStatus
91
95
  code: 201
92
- message: Created
96
+ message: "Created "
93
97
  headers:
94
- connection:
95
- - close
98
+ cache-control:
99
+ - no-cache
100
+ x-runtime:
101
+ - "421"
96
102
  content-type:
97
103
  - application/xml; charset=utf-8
98
- x-runtime:
99
- - "46"
100
- date:
101
- - Sat, 08 Jan 2011 08:04:24 GMT
102
- server:
103
- - nginx/0.8.53
104
104
  content-length:
105
105
  - "517"
106
+ server:
107
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
108
+ date:
109
+ - Thu, 03 Feb 2011 22:19:04 GMT
110
+ connection:
111
+ - close
106
112
  set-cookie:
107
- - _recurly_session=1e793e2edc81eb944dedf0ff7c39595a; domain=.recurly.com; path=/; secure; HttpOnly
108
- cache-control:
109
- - no-cache
113
+ - _recurly_session=4218f9ebf181d8a6cde7a9d8d6be91eb; domain=.recurly.local; path=/; HttpOnly
110
114
  body: |
111
115
  <?xml version="1.0" encoding="UTF-8"?>
112
116
  <charge type="charge">
113
- <id>b81ec64111f04d9aa8cfbd2b55d8e95d</id>
114
- <account_code>charge-lookup-1287465632</account_code>
117
+ <id>dcd06782bb1046448d18987729472b27</id>
118
+ <account_code>charge-lookup-1296674173</account_code>
115
119
  <amount_in_cents type="integer">1315</amount_in_cents>
116
- <start_date type="datetime">2011-01-08T08:04:24Z</start_date>
120
+ <start_date type="datetime">2011-02-03T22:19:04Z</start_date>
117
121
  <end_date nil="true" type="datetime"></end_date>
118
122
  <invoice_number nil="true" type="integer"></invoice_number>
119
123
  <description>inconvenience fee</description>
120
- <created_at type="datetime">2011-01-08T08:04:24Z</created_at>
124
+ <created_at type="datetime">2011-02-03T22:19:04Z</created_at>
121
125
  </charge>
122
126
 
123
127
  http_version: "1.1"
124
128
  - !ruby/struct:VCR::HTTPInteraction
125
129
  request: !ruby/struct:VCR::Request
126
130
  method: :get
127
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/charge-lookup-1287465632/charges/b81ec64111f04d9aa8cfbd2b55d8e95d.xml
131
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/charge-lookup-1296674173/charges/dcd06782bb1046448d18987729472b27.xml
128
132
  body:
129
133
  headers:
134
+ authorization:
135
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
130
136
  accept:
131
137
  - application/xml
138
+ accept-encoding:
139
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
140
+ user-agent:
141
+ - Ruby
132
142
  connection:
133
143
  - close
134
- authorization:
135
- - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
136
144
  response: !ruby/struct:VCR::Response
137
145
  status: !ruby/struct:VCR::ResponseStatus
138
146
  code: 200
139
- message: OK
147
+ message: "OK "
140
148
  headers:
141
- x-ua-compatible:
142
- - IE=Edge
143
- etag:
144
- - "\"e038e741a2825851aab255220b0dad0e\""
145
- connection:
146
- - close
149
+ x-runtime:
150
+ - "193"
147
151
  content-type:
148
152
  - application/xml; charset=utf-8
149
- x-runtime:
150
- - "14"
151
- date:
152
- - Sat, 08 Jan 2011 08:04:25 GMT
153
- server:
154
- - nginx/0.8.53
153
+ etag:
154
+ - "\"76eb62e2b4cfa226e7902f57c32421fe\""
155
+ cache-control:
156
+ - private, max-age=0, must-revalidate
155
157
  content-length:
156
158
  - "517"
159
+ server:
160
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
161
+ date:
162
+ - Thu, 03 Feb 2011 22:19:06 GMT
163
+ connection:
164
+ - close
157
165
  set-cookie:
158
- - _recurly_session=70a60faa0879ab6d7da4a46e85362581; domain=.recurly.com; path=/; secure; HttpOnly
159
- cache-control:
160
- - private, max-age=0, must-revalidate
166
+ - _recurly_session=3722886392ffb22b5f601c849e2e9bd0; domain=.recurly.local; path=/; HttpOnly
161
167
  body: |
162
168
  <?xml version="1.0" encoding="UTF-8"?>
163
169
  <charge type="charge">
164
- <id>b81ec64111f04d9aa8cfbd2b55d8e95d</id>
165
- <account_code>charge-lookup-1287465632</account_code>
170
+ <id>dcd06782bb1046448d18987729472b27</id>
171
+ <account_code>charge-lookup-1296674173</account_code>
166
172
  <amount_in_cents type="integer">1315</amount_in_cents>
167
- <start_date type="datetime">2011-01-08T08:04:24Z</start_date>
173
+ <start_date type="datetime">2011-02-03T22:19:04Z</start_date>
168
174
  <end_date nil="true" type="datetime"></end_date>
169
175
  <invoice_number nil="true" type="integer"></invoice_number>
170
176
  <description>inconvenience fee</description>
171
- <created_at type="datetime">2011-01-08T08:04:24Z</created_at>
177
+ <created_at type="datetime">2011-02-03T22:19:04Z</created_at>
172
178
  </charge>
173
179
 
174
180
  http_version: "1.1"