recurly 0.4.5 → 0.4.6

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of recurly might be problematic. Click here for more details.

Files changed (67) hide show
  1. data/lib/recurly/base.rb +11 -4
  2. data/lib/recurly/billing_info.rb +2 -1
  3. data/lib/recurly/charge.rb +3 -1
  4. data/lib/recurly/credit.rb +3 -1
  5. data/lib/recurly/subscription.rb +1 -1
  6. data/lib/recurly/version.rb +1 -1
  7. data/spec/config/recurly.yml +4 -4
  8. data/spec/unit/billing_info_spec.rb +1 -0
  9. data/spec/unit/charge_spec.rb +2 -0
  10. data/spec/unit/credit_spec.rb +2 -0
  11. data/spec/unit/subscription_spec.rb +1 -1
  12. data/spec/vcr/account/accept-language-account/1301979678.yml +14 -12
  13. data/spec/vcr/account/close/1301979678.yml +41 -35
  14. data/spec/vcr/account/create-blank/1301979678.yml +11 -9
  15. data/spec/vcr/account/create-duplicate/1301979678.yml +25 -21
  16. data/spec/vcr/account/create-min/1301979678.yml +14 -12
  17. data/spec/vcr/account/create/1301979678.yml +14 -12
  18. data/spec/vcr/account/find/1301979678.yml +40 -34
  19. data/spec/vcr/account/list/1301979678.yml +348 -341
  20. data/spec/vcr/account/update/1301979678.yml +61 -53
  21. data/spec/vcr/billing/create/1302025874.yml +42 -36
  22. data/spec/vcr/billing/destroy/1302025874.yml +65 -55
  23. data/spec/vcr/billing/errors/1302025874.yml +25 -21
  24. data/spec/vcr/billing/find/1302025874.yml +56 -48
  25. data/spec/vcr/billing/update/1302025874.yml +56 -48
  26. data/spec/vcr/charge/create/1297746103.yml +65 -53
  27. data/spec/vcr/charge/delete-uninvoiced/1297746103.yml +85 -69
  28. data/spec/vcr/charge/list-all/1297746103.yml +97 -75
  29. data/spec/vcr/charge/list-invoiced/1297746103.yml +143 -115
  30. data/spec/vcr/charge/list-pending/1297746103.yml +97 -75
  31. data/spec/vcr/charge/lookup/1297746103.yml +51 -41
  32. data/spec/vcr/coupon/create/1299714521.yml +28 -88
  33. data/spec/vcr/coupon/destroy/1299714521.yml +25 -107
  34. data/spec/vcr/credit/create/1299714599.yml +51 -41
  35. data/spec/vcr/credit/delete/1299714599.yml +74 -60
  36. data/spec/vcr/credit/list/1299714599.yml +97 -75
  37. data/spec/vcr/credit/lookup/1299714599.yml +51 -41
  38. data/spec/vcr/invoice/create-no-charges/1297746103.yml +39 -33
  39. data/spec/vcr/invoice/create/1297746103.yml +86 -72
  40. data/spec/vcr/invoice/list/1297746103.yml +121 -103
  41. data/spec/vcr/invoice/lookup/1297746103.yml +84 -72
  42. data/spec/vcr/plan/all.yml +108 -134
  43. data/spec/vcr/plan/find.yml +47 -95
  44. data/spec/vcr/plan/update.yml +152 -66
  45. data/spec/vcr/subscription/addons/add/1301885121.yml +48 -310
  46. data/spec/vcr/subscription/addons/create/1301885121.yml +48 -151
  47. data/spec/vcr/subscription/addons/remove/1301885121.yml +48 -279
  48. data/spec/vcr/subscription/cancel-with-code/1301881900.yml +132 -135
  49. data/spec/vcr/subscription/cancel/1301881900.yml +111 -117
  50. data/spec/vcr/subscription/change1/1301881900.yml +107 -113
  51. data/spec/vcr/subscription/change2/1301881900.yml +107 -113
  52. data/spec/vcr/subscription/create/1301881900.yml +50 -65
  53. data/spec/vcr/subscription/find/1301881900.yml +69 -81
  54. data/spec/vcr/subscription/reactivate/1301881900.yml +122 -126
  55. data/spec/vcr/subscription/refund-full/1301881900.yml +84 -153
  56. data/spec/vcr/subscription/refund-none/1301881900.yml +101 -108
  57. data/spec/vcr/subscription/refund-partial/1301881900.yml +84 -153
  58. data/spec/vcr/transaction/all/1301883347.yml +86 -84
  59. data/spec/vcr/transaction/create-no-account/1301883347.yml +15 -13
  60. data/spec/vcr/transaction/create-with-account/1301883347.yml +43 -37
  61. data/spec/vcr/transaction/list-filled/1301883347.yml +115 -101
  62. data/spec/vcr/transaction/list-initial/1301883347.yml +43 -37
  63. data/spec/vcr/transaction/lookup/1301883347.yml +118 -102
  64. data/spec/vcr/transaction/refund/1301883347.yml +58 -50
  65. data/spec/vcr/transaction/void/1301883347.yml +75 -82
  66. data/spec/vcr/transparent/post-url/1301879142.yml +29 -25
  67. metadata +3 -3
@@ -2,7 +2,7 @@
2
2
  - !ruby/struct:VCR::HTTPInteraction
3
3
  request: !ruby/struct:VCR::Request
4
4
  method: :post
5
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts.xml
5
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts.xml
6
6
  body: |
7
7
  <?xml version="1.0" encoding="UTF-8"?>
8
8
  <account>
@@ -20,36 +20,38 @@
20
20
 
21
21
  headers:
22
22
  authorization:
23
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
23
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
24
+ user-agent:
25
+ - Recurly Ruby Client v0.4.6
24
26
  content-type:
25
27
  - application/xml
26
28
  accept:
27
29
  - "*/*"
28
- user-agent:
29
- - Ruby
30
30
  connection:
31
31
  - close
32
32
  response: !ruby/struct:VCR::Response
33
33
  status: !ruby/struct:VCR::ResponseStatus
34
34
  code: 201
35
- message: Created
35
+ message: "Created "
36
36
  headers:
37
37
  cache-control:
38
38
  - no-cache
39
39
  location:
40
40
  - http://app.recurly.local:3000/accounts/transaction-refund-1301883347
41
41
  x-runtime:
42
- - "520"
42
+ - "481"
43
43
  content-type:
44
44
  - application/xml; charset=utf-8
45
45
  content-length:
46
46
  - "591"
47
- set-cookie:
48
- - _recurly_session=7cb3feda63051604f75af5ccc7a7f6c6; domain=.recurly.local; path=/; HttpOnly
47
+ server:
48
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
49
+ date:
50
+ - Thu, 21 Apr 2011 18:06:20 GMT
49
51
  connection:
50
52
  - close
51
- server:
52
- - thin 1.2.7 codename No Hup
53
+ set-cookie:
54
+ - _recurly_session=7ad4f11cfd7cede44039d729dd9fa8f2; domain=.recurly.local; path=/; HttpOnly
53
55
  body: |
54
56
  <?xml version="1.0" encoding="UTF-8"?>
55
57
  <account>
@@ -62,8 +64,8 @@
62
64
  <company_name>Recurly Ruby Gem</company_name>
63
65
  <balance_in_cents type="integer">0</balance_in_cents>
64
66
  <closed type="boolean">false</closed>
65
- <hosted_login_token>590c3a0d1bf84d07b73f1e6ee6c72668</hosted_login_token>
66
- <created_at type="datetime">2011-04-05T19:50:02Z</created_at>
67
+ <hosted_login_token>da942fb3135d4f40b714f09b37720000</hosted_login_token>
68
+ <created_at type="datetime">2011-04-21T18:06:20Z</created_at>
67
69
  <state>active</state>
68
70
  </account>
69
71
 
@@ -71,7 +73,7 @@
71
73
  - !ruby/struct:VCR::HTTPInteraction
72
74
  request: !ruby/struct:VCR::Request
73
75
  method: :put
74
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/transaction-refund-1301883347/billing_info.xml
76
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/transaction-refund-1301883347/billing_info.xml
75
77
  body: |
76
78
  <?xml version="1.0" encoding="UTF-8"?>
77
79
  <billing-info>
@@ -93,36 +95,38 @@
93
95
 
94
96
  headers:
95
97
  authorization:
96
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
98
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
99
+ user-agent:
100
+ - Recurly Ruby Client v0.4.6
97
101
  content-type:
98
102
  - application/xml
99
103
  accept:
100
104
  - "*/*"
101
- user-agent:
102
- - Ruby
103
105
  connection:
104
106
  - close
105
107
  response: !ruby/struct:VCR::Response
106
108
  status: !ruby/struct:VCR::ResponseStatus
107
109
  code: 200
108
- message: OK
110
+ message: "OK "
109
111
  headers:
110
112
  x-runtime:
111
- - "1815"
113
+ - "1646"
112
114
  content-type:
113
115
  - application/xml; charset=utf-8
114
116
  etag:
115
- - "\"d009e1cd196aaa4a8344c0f1e746b8af\""
117
+ - "\"2f0e5f78e1419c70175c167efc55d72e\""
116
118
  cache-control:
117
119
  - private, max-age=0, must-revalidate
118
120
  content-length:
119
121
  - "644"
120
- set-cookie:
121
- - _recurly_session=15a003f9275e80b1e34b80fb884dba82; domain=.recurly.local; path=/; HttpOnly
122
+ server:
123
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
124
+ date:
125
+ - Thu, 21 Apr 2011 18:06:23 GMT
122
126
  connection:
123
127
  - close
124
- server:
125
- - thin 1.2.7 codename No Hup
128
+ set-cookie:
129
+ - _recurly_session=e2e372d2b822610d7033c7eee9888dd9; domain=.recurly.local; path=/; HttpOnly
126
130
  body: |
127
131
  <?xml version="1.0" encoding="UTF-8"?>
128
132
  <billing_info>
@@ -144,14 +148,14 @@
144
148
  <month type="integer">4</month>
145
149
  <year type="integer">2012</year>
146
150
  </credit_card>
147
- <updated_at type="datetime">2011-04-05T19:50:06Z</updated_at>
151
+ <updated_at type="datetime">2011-04-21T18:06:23Z</updated_at>
148
152
  </billing_info>
149
153
 
150
154
  http_version: "1.1"
151
155
  - !ruby/struct:VCR::HTTPInteraction
152
156
  request: !ruby/struct:VCR::Request
153
157
  method: :post
154
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/transactions.xml
158
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/transactions.xml
155
159
  body: |
156
160
  <?xml version="1.0" encoding="UTF-8"?>
157
161
  <transaction>
@@ -168,43 +172,45 @@
168
172
 
169
173
  headers:
170
174
  authorization:
171
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
175
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
176
+ user-agent:
177
+ - Recurly Ruby Client v0.4.6
172
178
  content-type:
173
179
  - application/xml
174
180
  accept:
175
181
  - "*/*"
176
- user-agent:
177
- - Ruby
178
182
  connection:
179
183
  - close
180
184
  response: !ruby/struct:VCR::Response
181
185
  status: !ruby/struct:VCR::ResponseStatus
182
186
  code: 201
183
- message: Created
187
+ message: "Created "
184
188
  headers:
185
189
  cache-control:
186
190
  - no-cache
187
191
  location:
188
- - http://app.recurly.local:3000/transactions/fe0653f805654d078558700aed16187a
192
+ - http://app.recurly.local:3000/transactions/95fcb23b2a7a4348b8dc890222ead7cf
189
193
  x-runtime:
190
- - "2716"
194
+ - "2027"
191
195
  content-type:
192
196
  - application/xml; charset=utf-8
193
197
  content-length:
194
198
  - "860"
195
- set-cookie:
196
- - _recurly_session=b99e06a31e316ee13a5af49a27fa9e8e; domain=.recurly.local; path=/; HttpOnly
199
+ server:
200
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
201
+ date:
202
+ - Thu, 21 Apr 2011 18:06:27 GMT
197
203
  connection:
198
204
  - close
199
- server:
200
- - thin 1.2.7 codename No Hup
205
+ set-cookie:
206
+ - _recurly_session=2d6cd1a14110049381f839b2b33d6d74; domain=.recurly.local; path=/; HttpOnly
201
207
  body: |
202
208
  <?xml version="1.0" encoding="UTF-8"?>
203
209
  <transaction type="Payment">
204
- <id>fe0653f805654d078558700aed16187a</id>
210
+ <id>95fcb23b2a7a4348b8dc890222ead7cf</id>
205
211
  <account_code>transaction-refund-1301883347</account_code>
206
212
  <action>purchase</action>
207
- <date type="datetime">2011-04-05T19:50:10Z</date>
213
+ <date type="datetime">2011-04-21T18:06:27Z</date>
208
214
  <amount_in_cents type="integer">1000</amount_in_cents>
209
215
  <status>success</status>
210
216
  <message>Test Gateway: Successful test transaction</message>
@@ -226,45 +232,47 @@
226
232
  - !ruby/struct:VCR::HTTPInteraction
227
233
  request: !ruby/struct:VCR::Request
228
234
  method: :delete
229
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/transactions/fe0653f805654d078558700aed16187a.xml?action=refund&amount=1000
235
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/transactions/95fcb23b2a7a4348b8dc890222ead7cf.xml?action=refund&amount=1000
230
236
  body:
231
237
  headers:
232
238
  authorization:
233
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
239
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
240
+ user-agent:
241
+ - Recurly Ruby Client v0.4.6
234
242
  accept:
235
243
  - application/xml
236
- user-agent:
237
- - Ruby
238
244
  connection:
239
245
  - close
240
246
  response: !ruby/struct:VCR::Response
241
247
  status: !ruby/struct:VCR::ResponseStatus
242
248
  code: 200
243
- message: OK
249
+ message: "OK "
244
250
  headers:
245
251
  x-runtime:
246
- - "868"
252
+ - "558"
247
253
  content-type:
248
254
  - application/xml; charset=utf-8
249
255
  etag:
250
- - "\"726ae474689d475106b036a3400d5fac\""
256
+ - "\"8a67d7221aecc6d9cd8179c083095316\""
251
257
  cache-control:
252
258
  - private, max-age=0, must-revalidate
253
259
  content-length:
254
260
  - "859"
255
- set-cookie:
256
- - _recurly_session=980b106632deeea46ee7e6b0af7d1368; domain=.recurly.local; path=/; HttpOnly
261
+ server:
262
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
263
+ date:
264
+ - Thu, 21 Apr 2011 18:06:30 GMT
257
265
  connection:
258
266
  - close
259
- server:
260
- - thin 1.2.7 codename No Hup
267
+ set-cookie:
268
+ - _recurly_session=72bfb9597015f82a976f13d9feba40a0; domain=.recurly.local; path=/; HttpOnly
261
269
  body: |
262
270
  <?xml version="1.0" encoding="UTF-8"?>
263
271
  <transaction type="Payment">
264
- <id>fe0653f805654d078558700aed16187a</id>
272
+ <id>95fcb23b2a7a4348b8dc890222ead7cf</id>
265
273
  <account_code>transaction-refund-1301883347</account_code>
266
274
  <action>purchase</action>
267
- <date type="datetime">2011-04-05T19:50:10Z</date>
275
+ <date type="datetime">2011-04-21T18:06:27Z</date>
268
276
  <amount_in_cents type="integer">1000</amount_in_cents>
269
277
  <status>void</status>
270
278
  <message>Test Gateway: Successful test transaction</message>
@@ -2,7 +2,7 @@
2
2
  - !ruby/struct:VCR::HTTPInteraction
3
3
  request: !ruby/struct:VCR::Request
4
4
  method: :post
5
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts.xml
5
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts.xml
6
6
  body: |
7
7
  <?xml version="1.0" encoding="UTF-8"?>
8
8
  <account>
@@ -20,36 +20,38 @@
20
20
 
21
21
  headers:
22
22
  authorization:
23
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
23
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
24
+ user-agent:
25
+ - Recurly Ruby Client v0.4.6
24
26
  content-type:
25
27
  - application/xml
26
28
  accept:
27
29
  - "*/*"
28
- user-agent:
29
- - Ruby
30
30
  connection:
31
31
  - close
32
32
  response: !ruby/struct:VCR::Response
33
33
  status: !ruby/struct:VCR::ResponseStatus
34
34
  code: 201
35
- message: Created
35
+ message: "Created "
36
36
  headers:
37
37
  cache-control:
38
38
  - no-cache
39
39
  location:
40
40
  - http://app.recurly.local:3000/accounts/transaction-void-1301883347
41
41
  x-runtime:
42
- - "442"
42
+ - "289"
43
43
  content-type:
44
44
  - application/xml; charset=utf-8
45
45
  content-length:
46
46
  - "587"
47
- set-cookie:
48
- - _recurly_session=57b3c80671ee8eeb260ae00aadd25344; domain=.recurly.local; path=/; HttpOnly
47
+ server:
48
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
49
+ date:
50
+ - Thu, 21 Apr 2011 18:06:05 GMT
49
51
  connection:
50
52
  - close
51
- server:
52
- - thin 1.2.7 codename No Hup
53
+ set-cookie:
54
+ - _recurly_session=4294bf46373414b474c49595d06cffc5; domain=.recurly.local; path=/; HttpOnly
53
55
  body: |
54
56
  <?xml version="1.0" encoding="UTF-8"?>
55
57
  <account>
@@ -62,8 +64,8 @@
62
64
  <company_name>Recurly Ruby Gem</company_name>
63
65
  <balance_in_cents type="integer">0</balance_in_cents>
64
66
  <closed type="boolean">false</closed>
65
- <hosted_login_token>57713a799ee848c3bb4a80bba861dc5c</hosted_login_token>
66
- <created_at type="datetime">2011-04-05T19:49:43Z</created_at>
67
+ <hosted_login_token>c3566ae822a04e028bcdb10be3fcc845</hosted_login_token>
68
+ <created_at type="datetime">2011-04-21T18:06:05Z</created_at>
67
69
  <state>active</state>
68
70
  </account>
69
71
 
@@ -71,7 +73,7 @@
71
73
  - !ruby/struct:VCR::HTTPInteraction
72
74
  request: !ruby/struct:VCR::Request
73
75
  method: :put
74
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/transaction-void-1301883347/billing_info.xml
76
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/transaction-void-1301883347/billing_info.xml
75
77
  body: |
76
78
  <?xml version="1.0" encoding="UTF-8"?>
77
79
  <billing-info>
@@ -93,36 +95,38 @@
93
95
 
94
96
  headers:
95
97
  authorization:
96
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
98
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
99
+ user-agent:
100
+ - Recurly Ruby Client v0.4.6
97
101
  content-type:
98
102
  - application/xml
99
103
  accept:
100
104
  - "*/*"
101
- user-agent:
102
- - Ruby
103
105
  connection:
104
106
  - close
105
107
  response: !ruby/struct:VCR::Response
106
108
  status: !ruby/struct:VCR::ResponseStatus
107
109
  code: 200
108
- message: OK
110
+ message: "OK "
109
111
  headers:
110
112
  x-runtime:
111
- - "1575"
113
+ - "2037"
112
114
  content-type:
113
115
  - application/xml; charset=utf-8
114
116
  etag:
115
- - "\"f7d9a5fa53a1f6248a4e89ab67506fe7\""
117
+ - "\"928fd795d56a994d1befb5eaf4098912\""
116
118
  cache-control:
117
119
  - private, max-age=0, must-revalidate
118
120
  content-length:
119
121
  - "642"
120
- set-cookie:
121
- - _recurly_session=ba526f9dc3930f06d679a657b245e59c; domain=.recurly.local; path=/; HttpOnly
122
+ server:
123
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
124
+ date:
125
+ - Thu, 21 Apr 2011 18:06:09 GMT
122
126
  connection:
123
127
  - close
124
- server:
125
- - thin 1.2.7 codename No Hup
128
+ set-cookie:
129
+ - _recurly_session=624dadc72d1902f0da46e2fe678a6c49; domain=.recurly.local; path=/; HttpOnly
126
130
  body: |
127
131
  <?xml version="1.0" encoding="UTF-8"?>
128
132
  <billing_info>
@@ -144,14 +148,14 @@
144
148
  <month type="integer">4</month>
145
149
  <year type="integer">2012</year>
146
150
  </credit_card>
147
- <updated_at type="datetime">2011-04-05T19:49:47Z</updated_at>
151
+ <updated_at type="datetime">2011-04-21T18:06:09Z</updated_at>
148
152
  </billing_info>
149
153
 
150
154
  http_version: "1.1"
151
155
  - !ruby/struct:VCR::HTTPInteraction
152
156
  request: !ruby/struct:VCR::Request
153
157
  method: :post
154
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/transactions.xml
158
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/transactions.xml
155
159
  body: |
156
160
  <?xml version="1.0" encoding="UTF-8"?>
157
161
  <transaction>
@@ -168,43 +172,45 @@
168
172
 
169
173
  headers:
170
174
  authorization:
171
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
175
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
176
+ user-agent:
177
+ - Recurly Ruby Client v0.4.6
172
178
  content-type:
173
179
  - application/xml
174
180
  accept:
175
181
  - "*/*"
176
- user-agent:
177
- - Ruby
178
182
  connection:
179
183
  - close
180
184
  response: !ruby/struct:VCR::Response
181
185
  status: !ruby/struct:VCR::ResponseStatus
182
186
  code: 201
183
- message: Created
187
+ message: "Created "
184
188
  headers:
185
189
  cache-control:
186
190
  - no-cache
187
191
  location:
188
- - http://app.recurly.local:3000/transactions/ead0d3e0eb65478dbd430d9e7b286834
192
+ - http://app.recurly.local:3000/transactions/bf8b0d7553124b45aea56a37addf5d30
189
193
  x-runtime:
190
- - "2360"
194
+ - "2186"
191
195
  content-type:
192
196
  - application/xml; charset=utf-8
193
197
  content-length:
194
198
  - "857"
195
- set-cookie:
196
- - _recurly_session=0466ede6d7a35678b7ce79f96bc2ab8e; domain=.recurly.local; path=/; HttpOnly
199
+ server:
200
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
201
+ date:
202
+ - Thu, 21 Apr 2011 18:06:13 GMT
197
203
  connection:
198
204
  - close
199
- server:
200
- - thin 1.2.7 codename No Hup
205
+ set-cookie:
206
+ - _recurly_session=ae99105f8380c89d08343128bbe30cde; domain=.recurly.local; path=/; HttpOnly
201
207
  body: |
202
208
  <?xml version="1.0" encoding="UTF-8"?>
203
209
  <transaction type="Payment">
204
- <id>ead0d3e0eb65478dbd430d9e7b286834</id>
210
+ <id>bf8b0d7553124b45aea56a37addf5d30</id>
205
211
  <account_code>transaction-void-1301883347</account_code>
206
212
  <action>purchase</action>
207
- <date type="datetime">2011-04-05T19:49:51Z</date>
213
+ <date type="datetime">2011-04-21T18:06:12Z</date>
208
214
  <amount_in_cents type="integer">100</amount_in_cents>
209
215
  <status>success</status>
210
216
  <message>Test Gateway: Successful test transaction</message>
@@ -226,45 +232,47 @@
226
232
  - !ruby/struct:VCR::HTTPInteraction
227
233
  request: !ruby/struct:VCR::Request
228
234
  method: :delete
229
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/transactions/ead0d3e0eb65478dbd430d9e7b286834.xml?action=void
235
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/transactions/bf8b0d7553124b45aea56a37addf5d30.xml?action=void
230
236
  body:
231
237
  headers:
232
238
  authorization:
233
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
239
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
240
+ user-agent:
241
+ - Recurly Ruby Client v0.4.6
234
242
  accept:
235
243
  - application/xml
236
- user-agent:
237
- - Ruby
238
244
  connection:
239
245
  - close
240
246
  response: !ruby/struct:VCR::Response
241
247
  status: !ruby/struct:VCR::ResponseStatus
242
248
  code: 200
243
- message: OK
249
+ message: "OK "
244
250
  headers:
245
251
  x-runtime:
246
- - "875"
252
+ - "387"
247
253
  content-type:
248
254
  - application/xml; charset=utf-8
249
255
  etag:
250
- - "\"c282661741dd3e190352a9a24efe70b6\""
256
+ - "\"7bc194df2afca424a1fd11940acc2b76\""
251
257
  cache-control:
252
258
  - private, max-age=0, must-revalidate
253
259
  content-length:
254
260
  - "856"
255
- set-cookie:
256
- - _recurly_session=9bae657adc2acb56a161e39b4daf8d72; domain=.recurly.local; path=/; HttpOnly
261
+ server:
262
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
263
+ date:
264
+ - Thu, 21 Apr 2011 18:06:15 GMT
257
265
  connection:
258
266
  - close
259
- server:
260
- - thin 1.2.7 codename No Hup
267
+ set-cookie:
268
+ - _recurly_session=549c1083d34ca970cab55ada67d22e43; domain=.recurly.local; path=/; HttpOnly
261
269
  body: |
262
270
  <?xml version="1.0" encoding="UTF-8"?>
263
271
  <transaction type="Payment">
264
- <id>ead0d3e0eb65478dbd430d9e7b286834</id>
272
+ <id>bf8b0d7553124b45aea56a37addf5d30</id>
265
273
  <account_code>transaction-void-1301883347</account_code>
266
274
  <action>purchase</action>
267
- <date type="datetime">2011-04-05T19:49:51Z</date>
275
+ <date type="datetime">2011-04-21T18:06:12Z</date>
268
276
  <amount_in_cents type="integer">100</amount_in_cents>
269
277
  <status>void</status>
270
278
  <message>Test Gateway: Successful test transaction</message>
@@ -286,51 +294,53 @@
286
294
  - !ruby/struct:VCR::HTTPInteraction
287
295
  request: !ruby/struct:VCR::Request
288
296
  method: :get
289
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/transactions.xml?show=voided
297
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/transactions.xml?show=voided
290
298
  body:
291
299
  headers:
292
300
  authorization:
293
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
301
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
302
+ user-agent:
303
+ - Recurly Ruby Client v0.4.6
294
304
  accept:
295
305
  - application/xml
296
306
  accept-encoding:
297
307
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
298
- user-agent:
299
- - Ruby
300
308
  connection:
301
309
  - close
302
310
  response: !ruby/struct:VCR::Response
303
311
  status: !ruby/struct:VCR::ResponseStatus
304
312
  code: 200
305
- message: OK
313
+ message: "OK "
306
314
  headers:
307
315
  x-runtime:
308
- - "443"
316
+ - "347"
309
317
  content-type:
310
318
  - application/xml; charset=utf-8
311
319
  etag:
312
- - "\"f819f0116419cb9b1d4b72e6e83c3d68\""
320
+ - "\"533428bdc243be2561b359ac8c39140e\""
313
321
  cache-control:
314
322
  - private, max-age=0, must-revalidate
315
323
  content-length:
316
- - "1763"
317
- set-cookie:
318
- - _recurly_session=80803d752667b4aa5a1233dcaaf9aa00; domain=.recurly.local; path=/; HttpOnly
324
+ - "991"
325
+ server:
326
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
327
+ date:
328
+ - Thu, 21 Apr 2011 18:06:18 GMT
319
329
  connection:
320
330
  - close
321
- server:
322
- - thin 1.2.7 codename No Hup
331
+ set-cookie:
332
+ - _recurly_session=dedb245b083882dfa73a5a54721e6e98; domain=.recurly.local; path=/; HttpOnly
323
333
  body: |
324
334
  <?xml version="1.0" encoding="UTF-8"?>
325
335
  <transactions type="collection">
326
336
  <current_page type="integer">1</current_page>
327
337
  <per_page type="integer">20</per_page>
328
- <total_entries type="integer">2</total_entries>
338
+ <total_entries type="integer">1</total_entries>
329
339
  <transaction type="Payment">
330
- <id>ead0d3e0eb65478dbd430d9e7b286834</id>
340
+ <id>bf8b0d7553124b45aea56a37addf5d30</id>
331
341
  <account_code>transaction-void-1301883347</account_code>
332
342
  <action>purchase</action>
333
- <date type="datetime">2011-04-05T19:49:51Z</date>
343
+ <date type="datetime">2011-04-21T18:06:12Z</date>
334
344
  <amount_in_cents type="integer">100</amount_in_cents>
335
345
  <status>void</status>
336
346
  <message>Test Gateway: Successful test transaction</message>
@@ -343,23 +353,6 @@
343
353
  <voidable type="boolean">false</voidable>
344
354
  <refundable type="boolean">false</refundable>
345
355
  </transaction>
346
- <transaction type="Payment">
347
- <id>e43bf7bf868e494ea560fb6fe4767f89</id>
348
- <account_code>subscription-refund-full-1301881900</account_code>
349
- <action>purchase</action>
350
- <date type="datetime">2011-04-05T19:47:17Z</date>
351
- <amount_in_cents type="integer">200</amount_in_cents>
352
- <status>void</status>
353
- <message>Test Gateway: Successful test transaction</message>
354
- <reference>12345</reference>
355
- <cvv_result code="M">Match</cvv_result>
356
- <avs_result code="D">Street address and postal code match.</avs_result>
357
- <avs_result_street>Y</avs_result_street>
358
- <avs_result_postal>Y</avs_result_postal>
359
- <test type="boolean">true</test>
360
- <voidable type="boolean">false</voidable>
361
- <refundable type="boolean">false</refundable>
362
- </transaction>
363
356
  </transactions>
364
357
 
365
358
  http_version: "1.1"