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/transactions.xml
5
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/transactions.xml
6
6
  body: |
7
7
  <?xml version="1.0" encoding="UTF-8"?>
8
8
  <transaction>
@@ -34,43 +34,45 @@
34
34
 
35
35
  headers:
36
36
  authorization:
37
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
37
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
38
+ user-agent:
39
+ - Recurly Ruby Client v0.4.6
38
40
  content-type:
39
41
  - application/xml
40
42
  accept:
41
43
  - "*/*"
42
- user-agent:
43
- - Ruby
44
44
  connection:
45
45
  - close
46
46
  response: !ruby/struct:VCR::Response
47
47
  status: !ruby/struct:VCR::ResponseStatus
48
48
  code: 201
49
- message: Created
49
+ message: "Created "
50
50
  headers:
51
51
  cache-control:
52
52
  - no-cache
53
53
  location:
54
- - http://app.recurly.local:3000/transactions/e3eef7f70e5a419e804c761b5a84cd41
54
+ - http://app.recurly.local:3000/transactions/ab463efa4d514c58b1e34bd44c07f378
55
55
  x-runtime:
56
- - "3425"
56
+ - "2764"
57
57
  content-type:
58
58
  - application/xml; charset=utf-8
59
59
  content-length:
60
60
  - "871"
61
- set-cookie:
62
- - _recurly_session=f5e4a0b009973c0cf3541c0d705376a8; domain=.recurly.local; path=/; HttpOnly
61
+ server:
62
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
63
+ date:
64
+ - Thu, 21 Apr 2011 18:04:58 GMT
63
65
  connection:
64
66
  - close
65
- server:
66
- - thin 1.2.7 codename No Hup
67
+ set-cookie:
68
+ - _recurly_session=a8aedf3db9b49cae7114960337480922; domain=.recurly.local; path=/; HttpOnly
67
69
  body: |
68
70
  <?xml version="1.0" encoding="UTF-8"?>
69
71
  <transaction type="Payment">
70
- <id>e3eef7f70e5a419e804c761b5a84cd41</id>
72
+ <id>ab463efa4d514c58b1e34bd44c07f378</id>
71
73
  <account_code>transaction-create-with-accout-1301883347</account_code>
72
74
  <action>purchase</action>
73
- <date type="datetime">2011-04-05T19:48:13Z</date>
75
+ <date type="datetime">2011-04-21T18:04:56Z</date>
74
76
  <amount_in_cents type="integer">700</amount_in_cents>
75
77
  <status>success</status>
76
78
  <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-create-with-account-1301883347
41
41
  x-runtime:
42
- - "439"
42
+ - "363"
43
43
  content-type:
44
44
  - application/xml; charset=utf-8
45
45
  content-length:
46
46
  - "617"
47
- set-cookie:
48
- - _recurly_session=e503f094523d4c382b513c1bf0fc293a; 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:05:00 GMT
49
51
  connection:
50
52
  - close
51
- server:
52
- - thin 1.2.7 codename No Hup
53
+ set-cookie:
54
+ - _recurly_session=73ed632215c3db4fb0ca3527c24a8a47; 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>cb7a3a7a45a84ec6b16742fe52193257</hosted_login_token>
66
- <created_at type="datetime">2011-04-05T19:48:18Z</created_at>
67
+ <hosted_login_token>7c3872d9f1fa4e77bf4e16c0c4793377</hosted_login_token>
68
+ <created_at type="datetime">2011-04-21T18:05:00Z</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-create-with-account-1301883347/billing_info.xml
76
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/transaction-create-with-account-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
- - "1692"
113
+ - "1438"
112
114
  content-type:
113
115
  - application/xml; charset=utf-8
114
116
  etag:
115
- - "\"6822c256c05aa75a0c7f6f3df8c387aa\""
117
+ - "\"c3064d090bf9eaa5a726c229c4ee49ca\""
116
118
  cache-control:
117
119
  - private, max-age=0, must-revalidate
118
120
  content-length:
119
121
  - "657"
120
- set-cookie:
121
- - _recurly_session=e51a722234012fe45f0710c362d51d67; 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:05:04 GMT
122
126
  connection:
123
127
  - close
124
- server:
125
- - thin 1.2.7 codename No Hup
128
+ set-cookie:
129
+ - _recurly_session=3076c87551168a58bd453114c8fd77c8; 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:48:22Z</updated_at>
151
+ <updated_at type="datetime">2011-04-21T18:05:04Z</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/ade77e51b0664afdbe3ac172158036f4
192
+ - http://app.recurly.local:3000/transactions/af62b155590c43a588e7d0a33f988bdd
189
193
  x-runtime:
190
- - "2688"
194
+ - "1967"
191
195
  content-type:
192
196
  - application/xml; charset=utf-8
193
197
  content-length:
194
198
  - "872"
195
- set-cookie:
196
- - _recurly_session=c9958d7c0a90a5f0816cd7622698382d; 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:05:08 GMT
197
203
  connection:
198
204
  - close
199
- server:
200
- - thin 1.2.7 codename No Hup
205
+ set-cookie:
206
+ - _recurly_session=065534d6ec05e59bb91789b253f07d11; domain=.recurly.local; path=/; HttpOnly
201
207
  body: |
202
208
  <?xml version="1.0" encoding="UTF-8"?>
203
209
  <transaction type="Payment">
204
- <id>ade77e51b0664afdbe3ac172158036f4</id>
210
+ <id>af62b155590c43a588e7d0a33f988bdd</id>
205
211
  <account_code>transaction-create-with-account-1301883347</account_code>
206
212
  <action>purchase</action>
207
- <date type="datetime">2011-04-05T19:48:26Z</date>
213
+ <date type="datetime">2011-04-21T18:05:07Z</date>
208
214
  <amount_in_cents type="integer">700</amount_in_cents>
209
215
  <status>success</status>
210
216
  <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-list-filled-1301883347
41
41
  x-runtime:
42
- - "432"
42
+ - "481"
43
43
  content-type:
44
44
  - application/xml; charset=utf-8
45
45
  content-length:
46
46
  - "601"
47
- set-cookie:
48
- - _recurly_session=478e11b7d7df182a354fc09b8fea4d3b; 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:05:20 GMT
49
51
  connection:
50
52
  - close
51
- server:
52
- - thin 1.2.7 codename No Hup
53
+ set-cookie:
54
+ - _recurly_session=d989e3b5465023d61bb8e638acc9b4a2; 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>46cf7da313034321bfbfa6b0a62c04d3</hosted_login_token>
66
- <created_at type="datetime">2011-04-05T19:48:43Z</created_at>
67
+ <hosted_login_token>7bfbbc8badba4ddb90c085acf68040bc</hosted_login_token>
68
+ <created_at type="datetime">2011-04-21T18:05: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-list-filled-1301883347/billing_info.xml
76
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/transaction-list-filled-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
- - "1758"
113
+ - "1388"
112
114
  content-type:
113
115
  - application/xml; charset=utf-8
114
116
  etag:
115
- - "\"58694b562f222e55c1a604876f6f8dfd\""
117
+ - "\"c8af950c791c20586448c935869dcb57\""
116
118
  cache-control:
117
119
  - private, max-age=0, must-revalidate
118
120
  content-length:
119
121
  - "649"
120
- set-cookie:
121
- - _recurly_session=43633c3f43f765943787571c31069ca5; 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:05:23 GMT
122
126
  connection:
123
127
  - close
124
- server:
125
- - thin 1.2.7 codename No Hup
128
+ set-cookie:
129
+ - _recurly_session=05c74d58e18fcc862eb0405833b7c76a; 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:48:47Z</updated_at>
151
+ <updated_at type="datetime">2011-04-21T18:05: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/38c8f1ec0abe4f8b9211fa2d83ec2ab4
192
+ - http://app.recurly.local:3000/transactions/f7d843df128e4ec8b332043de3e27735
189
193
  x-runtime:
190
- - "2651"
194
+ - "2076"
191
195
  content-type:
192
196
  - application/xml; charset=utf-8
193
197
  content-length:
194
198
  - "864"
195
- set-cookie:
196
- - _recurly_session=1b24388acc4deb67cf9231475f1a9328; 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:05:27 GMT
197
203
  connection:
198
204
  - close
199
- server:
200
- - thin 1.2.7 codename No Hup
205
+ set-cookie:
206
+ - _recurly_session=cdc4aff42c5a5bd3299802ef574a0527; domain=.recurly.local; path=/; HttpOnly
201
207
  body: |
202
208
  <?xml version="1.0" encoding="UTF-8"?>
203
209
  <transaction type="Payment">
204
- <id>38c8f1ec0abe4f8b9211fa2d83ec2ab4</id>
210
+ <id>f7d843df128e4ec8b332043de3e27735</id>
205
211
  <account_code>transaction-list-filled-1301883347</account_code>
206
212
  <action>purchase</action>
207
- <date type="datetime">2011-04-05T19:48:51Z</date>
213
+ <date type="datetime">2011-04-21T18:05:26Z</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,7 +232,7 @@
226
232
  - !ruby/struct:VCR::HTTPInteraction
227
233
  request: !ruby/struct:VCR::Request
228
234
  method: :post
229
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/transactions.xml
235
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/transactions.xml
230
236
  body: |
231
237
  <?xml version="1.0" encoding="UTF-8"?>
232
238
  <transaction>
@@ -243,43 +249,45 @@
243
249
 
244
250
  headers:
245
251
  authorization:
246
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
252
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
253
+ user-agent:
254
+ - Recurly Ruby Client v0.4.6
247
255
  content-type:
248
256
  - application/xml
249
257
  accept:
250
258
  - "*/*"
251
- user-agent:
252
- - Ruby
253
259
  connection:
254
260
  - close
255
261
  response: !ruby/struct:VCR::Response
256
262
  status: !ruby/struct:VCR::ResponseStatus
257
263
  code: 201
258
- message: Created
264
+ message: "Created "
259
265
  headers:
260
266
  cache-control:
261
267
  - no-cache
262
268
  location:
263
- - http://app.recurly.local:3000/transactions/c88604d6850b4ea5b5a2197105d53c2f
269
+ - http://app.recurly.local:3000/transactions/2877d39b76134087b22f316a610e0a1c
264
270
  x-runtime:
265
- - "2743"
271
+ - "2308"
266
272
  content-type:
267
273
  - application/xml; charset=utf-8
268
274
  content-length:
269
275
  - "864"
270
- set-cookie:
271
- - _recurly_session=b65682ddc91dc509921ef53aabbf2921; domain=.recurly.local; path=/; HttpOnly
276
+ server:
277
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
278
+ date:
279
+ - Thu, 21 Apr 2011 18:05:31 GMT
272
280
  connection:
273
281
  - close
274
- server:
275
- - thin 1.2.7 codename No Hup
282
+ set-cookie:
283
+ - _recurly_session=bf8860d0fd2c96b1906dcd1302b04f57; domain=.recurly.local; path=/; HttpOnly
276
284
  body: |
277
285
  <?xml version="1.0" encoding="UTF-8"?>
278
286
  <transaction type="Payment">
279
- <id>c88604d6850b4ea5b5a2197105d53c2f</id>
287
+ <id>2877d39b76134087b22f316a610e0a1c</id>
280
288
  <account_code>transaction-list-filled-1301883347</account_code>
281
289
  <action>purchase</action>
282
- <date type="datetime">2011-04-05T19:48:56Z</date>
290
+ <date type="datetime">2011-04-21T18:05:30Z</date>
283
291
  <amount_in_cents type="integer">200</amount_in_cents>
284
292
  <status>success</status>
285
293
  <message>Test Gateway: Successful test transaction</message>
@@ -301,7 +309,7 @@
301
309
  - !ruby/struct:VCR::HTTPInteraction
302
310
  request: !ruby/struct:VCR::Request
303
311
  method: :post
304
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/transactions.xml
312
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/transactions.xml
305
313
  body: |
306
314
  <?xml version="1.0" encoding="UTF-8"?>
307
315
  <transaction>
@@ -318,43 +326,45 @@
318
326
 
319
327
  headers:
320
328
  authorization:
321
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
329
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
330
+ user-agent:
331
+ - Recurly Ruby Client v0.4.6
322
332
  content-type:
323
333
  - application/xml
324
334
  accept:
325
335
  - "*/*"
326
- user-agent:
327
- - Ruby
328
336
  connection:
329
337
  - close
330
338
  response: !ruby/struct:VCR::Response
331
339
  status: !ruby/struct:VCR::ResponseStatus
332
340
  code: 201
333
- message: Created
341
+ message: "Created "
334
342
  headers:
335
343
  cache-control:
336
344
  - no-cache
337
345
  location:
338
- - http://app.recurly.local:3000/transactions/982033c7c4954ccb888edbb567a0d4cc
346
+ - http://app.recurly.local:3000/transactions/0588c64d462f4fb5a157f149879c26cc
339
347
  x-runtime:
340
- - "2799"
348
+ - "1995"
341
349
  content-type:
342
350
  - application/xml; charset=utf-8
343
351
  content-length:
344
352
  - "864"
345
- set-cookie:
346
- - _recurly_session=74243185c3376ddd1c724c06d417a82c; domain=.recurly.local; path=/; HttpOnly
353
+ server:
354
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
355
+ date:
356
+ - Thu, 21 Apr 2011 18:05:35 GMT
347
357
  connection:
348
358
  - close
349
- server:
350
- - thin 1.2.7 codename No Hup
359
+ set-cookie:
360
+ - _recurly_session=90ffbac4cb4d4b68a4e00403f092ce93; domain=.recurly.local; path=/; HttpOnly
351
361
  body: |
352
362
  <?xml version="1.0" encoding="UTF-8"?>
353
363
  <transaction type="Payment">
354
- <id>982033c7c4954ccb888edbb567a0d4cc</id>
364
+ <id>0588c64d462f4fb5a157f149879c26cc</id>
355
365
  <account_code>transaction-list-filled-1301883347</account_code>
356
366
  <action>purchase</action>
357
- <date type="datetime">2011-04-05T19:49:02Z</date>
367
+ <date type="datetime">2011-04-21T18:05:34Z</date>
358
368
  <amount_in_cents type="integer">300</amount_in_cents>
359
369
  <status>success</status>
360
370
  <message>Test Gateway: Successful test transaction</message>
@@ -376,40 +386,42 @@
376
386
  - !ruby/struct:VCR::HTTPInteraction
377
387
  request: !ruby/struct:VCR::Request
378
388
  method: :get
379
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/transaction-list-filled-1301883347/transactions
389
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/transaction-list-filled-1301883347/transactions
380
390
  body:
381
391
  headers:
382
392
  authorization:
383
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
393
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
394
+ user-agent:
395
+ - Recurly Ruby Client v0.4.6
384
396
  accept:
385
397
  - application/xml
386
398
  accept-encoding:
387
399
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
388
- user-agent:
389
- - Ruby
390
400
  connection:
391
401
  - close
392
402
  response: !ruby/struct:VCR::Response
393
403
  status: !ruby/struct:VCR::ResponseStatus
394
404
  code: 200
395
- message: OK
405
+ message: "OK "
396
406
  headers:
397
407
  x-runtime:
398
- - "447"
408
+ - "340"
399
409
  content-type:
400
410
  - application/xml; charset=utf-8
401
411
  etag:
402
- - "\"ba2b8fff1faea0534e3330ec5ad2ba4e\""
412
+ - "\"80d4a3a0d39367f32ceada3d924feca6\""
403
413
  cache-control:
404
414
  - private, max-age=0, must-revalidate
405
415
  content-length:
406
416
  - "3319"
407
- set-cookie:
408
- - _recurly_session=1ca0faec8e40d4de11fb1b6a53f0dd60; domain=.recurly.local; path=/; HttpOnly
417
+ server:
418
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
419
+ date:
420
+ - Thu, 21 Apr 2011 18:05:37 GMT
409
421
  connection:
410
422
  - close
411
- server:
412
- - thin 1.2.7 codename No Hup
423
+ set-cookie:
424
+ - _recurly_session=d96eca50f2a359840a8abb24472f24db; domain=.recurly.local; path=/; HttpOnly
413
425
  body: |
414
426
  <?xml version="1.0" encoding="UTF-8"?>
415
427
  <transactions type="collection">
@@ -417,10 +429,10 @@
417
429
  <per_page type="integer">50</per_page>
418
430
  <total_entries type="integer">4</total_entries>
419
431
  <transaction type="Payment">
420
- <id>982033c7c4954ccb888edbb567a0d4cc</id>
432
+ <id>0588c64d462f4fb5a157f149879c26cc</id>
421
433
  <account_code>transaction-list-filled-1301883347</account_code>
422
434
  <action>purchase</action>
423
- <date type="datetime">2011-04-05T19:49:02Z</date>
435
+ <date type="datetime">2011-04-21T18:05:34Z</date>
424
436
  <amount_in_cents type="integer">300</amount_in_cents>
425
437
  <status>success</status>
426
438
  <message>Test Gateway: Successful test transaction</message>
@@ -434,10 +446,10 @@
434
446
  <refundable type="boolean">true</refundable>
435
447
  </transaction>
436
448
  <transaction type="Payment">
437
- <id>c88604d6850b4ea5b5a2197105d53c2f</id>
449
+ <id>2877d39b76134087b22f316a610e0a1c</id>
438
450
  <account_code>transaction-list-filled-1301883347</account_code>
439
451
  <action>purchase</action>
440
- <date type="datetime">2011-04-05T19:48:56Z</date>
452
+ <date type="datetime">2011-04-21T18:05:30Z</date>
441
453
  <amount_in_cents type="integer">200</amount_in_cents>
442
454
  <status>success</status>
443
455
  <message>Test Gateway: Successful test transaction</message>
@@ -451,10 +463,10 @@
451
463
  <refundable type="boolean">true</refundable>
452
464
  </transaction>
453
465
  <transaction type="Payment">
454
- <id>38c8f1ec0abe4f8b9211fa2d83ec2ab4</id>
466
+ <id>f7d843df128e4ec8b332043de3e27735</id>
455
467
  <account_code>transaction-list-filled-1301883347</account_code>
456
468
  <action>purchase</action>
457
- <date type="datetime">2011-04-05T19:48:51Z</date>
469
+ <date type="datetime">2011-04-21T18:05:26Z</date>
458
470
  <amount_in_cents type="integer">100</amount_in_cents>
459
471
  <status>success</status>
460
472
  <message>Test Gateway: Successful test transaction</message>
@@ -468,10 +480,10 @@
468
480
  <refundable type="boolean">true</refundable>
469
481
  </transaction>
470
482
  <transaction type="Payment">
471
- <id>144e33b95c484acf9a87593fc66fd340</id>
483
+ <id>2c9ce5a8b95d49ce900eb4207bd32fd4</id>
472
484
  <account_code>transaction-list-filled-1301883347</account_code>
473
485
  <action>authorization</action>
474
- <date type="datetime">2011-04-05T19:48:47Z</date>
486
+ <date type="datetime">2011-04-21T18:05:23Z</date>
475
487
  <amount_in_cents type="integer">0</amount_in_cents>
476
488
  <status>success</status>
477
489
  <message>Test Gateway: Successful test transaction</message>
@@ -490,40 +502,42 @@
490
502
  - !ruby/struct:VCR::HTTPInteraction
491
503
  request: !ruby/struct:VCR::Request
492
504
  method: :get
493
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/transaction-list-filled-1301883347/transactions
505
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/transaction-list-filled-1301883347/transactions
494
506
  body:
495
507
  headers:
496
508
  authorization:
497
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
509
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
510
+ user-agent:
511
+ - Recurly Ruby Client v0.4.6
498
512
  accept:
499
513
  - application/xml
500
514
  accept-encoding:
501
515
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
502
- user-agent:
503
- - Ruby
504
516
  connection:
505
517
  - close
506
518
  response: !ruby/struct:VCR::Response
507
519
  status: !ruby/struct:VCR::ResponseStatus
508
520
  code: 200
509
- message: OK
521
+ message: "OK "
510
522
  headers:
511
523
  x-runtime:
512
- - "439"
524
+ - "470"
513
525
  content-type:
514
526
  - application/xml; charset=utf-8
515
527
  etag:
516
- - "\"ba2b8fff1faea0534e3330ec5ad2ba4e\""
528
+ - "\"80d4a3a0d39367f32ceada3d924feca6\""
517
529
  cache-control:
518
530
  - private, max-age=0, must-revalidate
519
531
  content-length:
520
532
  - "3319"
521
- set-cookie:
522
- - _recurly_session=cef01a1000fc508e06db2ba2c2c9c20f; domain=.recurly.local; path=/; HttpOnly
533
+ server:
534
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
535
+ date:
536
+ - Thu, 21 Apr 2011 18:05:39 GMT
523
537
  connection:
524
538
  - close
525
- server:
526
- - thin 1.2.7 codename No Hup
539
+ set-cookie:
540
+ - _recurly_session=ee0fbaa79ce1c06456e7f95993c29e2f; domain=.recurly.local; path=/; HttpOnly
527
541
  body: |
528
542
  <?xml version="1.0" encoding="UTF-8"?>
529
543
  <transactions type="collection">
@@ -531,10 +545,10 @@
531
545
  <per_page type="integer">50</per_page>
532
546
  <total_entries type="integer">4</total_entries>
533
547
  <transaction type="Payment">
534
- <id>982033c7c4954ccb888edbb567a0d4cc</id>
548
+ <id>0588c64d462f4fb5a157f149879c26cc</id>
535
549
  <account_code>transaction-list-filled-1301883347</account_code>
536
550
  <action>purchase</action>
537
- <date type="datetime">2011-04-05T19:49:02Z</date>
551
+ <date type="datetime">2011-04-21T18:05:34Z</date>
538
552
  <amount_in_cents type="integer">300</amount_in_cents>
539
553
  <status>success</status>
540
554
  <message>Test Gateway: Successful test transaction</message>
@@ -548,10 +562,10 @@
548
562
  <refundable type="boolean">true</refundable>
549
563
  </transaction>
550
564
  <transaction type="Payment">
551
- <id>c88604d6850b4ea5b5a2197105d53c2f</id>
565
+ <id>2877d39b76134087b22f316a610e0a1c</id>
552
566
  <account_code>transaction-list-filled-1301883347</account_code>
553
567
  <action>purchase</action>
554
- <date type="datetime">2011-04-05T19:48:56Z</date>
568
+ <date type="datetime">2011-04-21T18:05:30Z</date>
555
569
  <amount_in_cents type="integer">200</amount_in_cents>
556
570
  <status>success</status>
557
571
  <message>Test Gateway: Successful test transaction</message>
@@ -565,10 +579,10 @@
565
579
  <refundable type="boolean">true</refundable>
566
580
  </transaction>
567
581
  <transaction type="Payment">
568
- <id>38c8f1ec0abe4f8b9211fa2d83ec2ab4</id>
582
+ <id>f7d843df128e4ec8b332043de3e27735</id>
569
583
  <account_code>transaction-list-filled-1301883347</account_code>
570
584
  <action>purchase</action>
571
- <date type="datetime">2011-04-05T19:48:51Z</date>
585
+ <date type="datetime">2011-04-21T18:05:26Z</date>
572
586
  <amount_in_cents type="integer">100</amount_in_cents>
573
587
  <status>success</status>
574
588
  <message>Test Gateway: Successful test transaction</message>
@@ -582,10 +596,10 @@
582
596
  <refundable type="boolean">true</refundable>
583
597
  </transaction>
584
598
  <transaction type="Payment">
585
- <id>144e33b95c484acf9a87593fc66fd340</id>
599
+ <id>2c9ce5a8b95d49ce900eb4207bd32fd4</id>
586
600
  <account_code>transaction-list-filled-1301883347</account_code>
587
601
  <action>authorization</action>
588
- <date type="datetime">2011-04-05T19:48:47Z</date>
602
+ <date type="datetime">2011-04-21T18:05:23Z</date>
589
603
  <amount_in_cents type="integer">0</amount_in_cents>
590
604
  <status>success</status>
591
605
  <message>Test Gateway: Successful test transaction</message>