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-list-initial-1301883347
41
41
  x-runtime:
42
- - "440"
42
+ - "287"
43
43
  content-type:
44
44
  - application/xml; charset=utf-8
45
45
  content-length:
46
46
  - "603"
47
- set-cookie:
48
- - _recurly_session=82245cbfbc4704a1c0160a8f9bf4c857; 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:12 GMT
49
51
  connection:
50
52
  - close
51
- server:
52
- - thin 1.2.7 codename No Hup
53
+ set-cookie:
54
+ - _recurly_session=a0cf5f2ee9ed20f67af9a74fdfb7ec52; 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>cdb7ec35177543109c3adf32559efd06</hosted_login_token>
66
- <created_at type="datetime">2011-04-05T19:48:33Z</created_at>
67
+ <hosted_login_token>2b00609a4eca482e891c7367f7a50478</hosted_login_token>
68
+ <created_at type="datetime">2011-04-21T18:05:12Z</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-initial-1301883347/billing_info.xml
76
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/transaction-list-initial-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
- - "1778"
113
+ - "1615"
112
114
  content-type:
113
115
  - application/xml; charset=utf-8
114
116
  etag:
115
- - "\"0caf631d4495d2ea336361d49db3775f\""
117
+ - "\"7c5945c87f582323c9f06900b73ccd69\""
116
118
  cache-control:
117
119
  - private, max-age=0, must-revalidate
118
120
  content-length:
119
121
  - "650"
120
- set-cookie:
121
- - _recurly_session=74c7a499c5d6c70dcfd16cc749ab8d75; 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:16 GMT
122
126
  connection:
123
127
  - close
124
- server:
125
- - thin 1.2.7 codename No Hup
128
+ set-cookie:
129
+ - _recurly_session=e53a4573835e9ea349e9c8a8db62e60d; domain=.recurly.local; path=/; HttpOnly
126
130
  body: |
127
131
  <?xml version="1.0" encoding="UTF-8"?>
128
132
  <billing_info>
@@ -144,47 +148,49 @@
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:37Z</updated_at>
151
+ <updated_at type="datetime">2011-04-21T18:05:16Z</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: :get
154
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/transaction-list-initial-1301883347/transactions
158
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/transaction-list-initial-1301883347/transactions
155
159
  body:
156
160
  headers:
157
161
  authorization:
158
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
162
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
163
+ user-agent:
164
+ - Recurly Ruby Client v0.4.6
159
165
  accept:
160
166
  - application/xml
161
167
  accept-encoding:
162
168
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
163
- user-agent:
164
- - Ruby
165
169
  connection:
166
170
  - close
167
171
  response: !ruby/struct:VCR::Response
168
172
  status: !ruby/struct:VCR::ResponseStatus
169
173
  code: 200
170
- message: OK
174
+ message: "OK "
171
175
  headers:
172
176
  x-runtime:
173
- - "436"
177
+ - "300"
174
178
  content-type:
175
179
  - application/xml; charset=utf-8
176
180
  etag:
177
- - "\"3bc00a78bda0dc0ebe46990446670910\""
181
+ - "\"f349711cbaf4c52d780a3f6adf39f7ec\""
178
182
  cache-control:
179
183
  - private, max-age=0, must-revalidate
180
184
  content-length:
181
185
  - "1004"
182
- set-cookie:
183
- - _recurly_session=2ef130c0975352becf026001b933cdaa; domain=.recurly.local; path=/; HttpOnly
186
+ server:
187
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
188
+ date:
189
+ - Thu, 21 Apr 2011 18:05:18 GMT
184
190
  connection:
185
191
  - close
186
- server:
187
- - thin 1.2.7 codename No Hup
192
+ set-cookie:
193
+ - _recurly_session=042d0f41a5ac3c38b57641b147c36995; domain=.recurly.local; path=/; HttpOnly
188
194
  body: |
189
195
  <?xml version="1.0" encoding="UTF-8"?>
190
196
  <transactions type="collection">
@@ -192,10 +198,10 @@
192
198
  <per_page type="integer">50</per_page>
193
199
  <total_entries type="integer">1</total_entries>
194
200
  <transaction type="Payment">
195
- <id>ff7c91d0f776441fb5c5381c5724dfd5</id>
201
+ <id>75995243058442c2ac58f17dfa395f76</id>
196
202
  <account_code>transaction-list-initial-1301883347</account_code>
197
203
  <action>authorization</action>
198
- <date type="datetime">2011-04-05T19:48:37Z</date>
204
+ <date type="datetime">2011-04-21T18:05:15Z</date>
199
205
  <amount_in_cents type="integer">0</amount_in_cents>
200
206
  <status>success</status>
201
207
  <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-lookup-1301883347
41
41
  x-runtime:
42
- - "435"
42
+ - "302"
43
43
  content-type:
44
44
  - application/xml; charset=utf-8
45
45
  content-length:
46
46
  - "591"
47
- set-cookie:
48
- - _recurly_session=a032fb8d60a25b55cee9074a2e639612; 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:42 GMT
49
51
  connection:
50
52
  - close
51
- server:
52
- - thin 1.2.7 codename No Hup
53
+ set-cookie:
54
+ - _recurly_session=a1c870bd2888cd17db4b4d9b0d3e30a8; 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>99753038887c44e1ada42fcde8b78ce4</hosted_login_token>
66
- <created_at type="datetime">2011-04-05T19:49:12Z</created_at>
67
+ <hosted_login_token>bfe98e1a735245549de5556a5bd5ac86</hosted_login_token>
68
+ <created_at type="datetime">2011-04-21T18:05:41Z</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-lookup-1301883347/billing_info.xml
76
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/transaction-lookup-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
- - "1683"
113
+ - "1380"
112
114
  content-type:
113
115
  - application/xml; charset=utf-8
114
116
  etag:
115
- - "\"57a7e8badd65de9471ce72ee922c6cd5\""
117
+ - "\"938950aa1fd2c7bb7cb101d985388096\""
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=ff82c5bfe02164236b70d0427da8a90e; 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:45 GMT
122
126
  connection:
123
127
  - close
124
- server:
125
- - thin 1.2.7 codename No Hup
128
+ set-cookie:
129
+ - _recurly_session=383d2d237cfb30baec434ba6e46bc4ec; 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:16Z</updated_at>
151
+ <updated_at type="datetime">2011-04-21T18:05:45Z</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/4c46bd5876984d878897462ac0a0e8cd
192
+ - http://app.recurly.local:3000/transactions/1797ad4d05ed46969fc479dbb851225b
189
193
  x-runtime:
190
- - "2675"
194
+ - "1967"
191
195
  content-type:
192
196
  - application/xml; charset=utf-8
193
197
  content-length:
194
198
  - "859"
195
- set-cookie:
196
- - _recurly_session=e7f856715aee20c3d3d3d94b3bd6a7e1; 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:48 GMT
197
203
  connection:
198
204
  - close
199
- server:
200
- - thin 1.2.7 codename No Hup
205
+ set-cookie:
206
+ - _recurly_session=11c0fb48834dfa08fc255087ee48a2b9; domain=.recurly.local; path=/; HttpOnly
201
207
  body: |
202
208
  <?xml version="1.0" encoding="UTF-8"?>
203
209
  <transaction type="Payment">
204
- <id>4c46bd5876984d878897462ac0a0e8cd</id>
210
+ <id>1797ad4d05ed46969fc479dbb851225b</id>
205
211
  <account_code>transaction-lookup-1301883347</account_code>
206
212
  <action>purchase</action>
207
- <date type="datetime">2011-04-05T19:49:20Z</date>
213
+ <date type="datetime">2011-04-21T18:05:48Z</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/cebd12fe15b5432baf8912ab5b86b397
269
+ - http://app.recurly.local:3000/transactions/e31319e7f3244cca95ecb7ce6c8a2a37
264
270
  x-runtime:
265
- - "2690"
271
+ - "1999"
266
272
  content-type:
267
273
  - application/xml; charset=utf-8
268
274
  content-length:
269
275
  - "859"
270
- set-cookie:
271
- - _recurly_session=6864a13124de20546c83af551a3f688c; 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:52 GMT
272
280
  connection:
273
281
  - close
274
- server:
275
- - thin 1.2.7 codename No Hup
282
+ set-cookie:
283
+ - _recurly_session=3555cae503ca5b705953ec3676b65937; domain=.recurly.local; path=/; HttpOnly
276
284
  body: |
277
285
  <?xml version="1.0" encoding="UTF-8"?>
278
286
  <transaction type="Payment">
279
- <id>cebd12fe15b5432baf8912ab5b86b397</id>
287
+ <id>e31319e7f3244cca95ecb7ce6c8a2a37</id>
280
288
  <account_code>transaction-lookup-1301883347</account_code>
281
289
  <action>purchase</action>
282
- <date type="datetime">2011-04-05T19:49:25Z</date>
290
+ <date type="datetime">2011-04-21T18:05:51Z</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/b1ec7306669645c5a610f0d1f101e2c7
346
+ - http://app.recurly.local:3000/transactions/a087dcbffabc40c287075578398d14fc
339
347
  x-runtime:
340
- - "2697"
348
+ - "2053"
341
349
  content-type:
342
350
  - application/xml; charset=utf-8
343
351
  content-length:
344
352
  - "859"
345
- set-cookie:
346
- - _recurly_session=5224759a150d8929318ea462cd40e67d; 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:56 GMT
347
357
  connection:
348
358
  - close
349
- server:
350
- - thin 1.2.7 codename No Hup
359
+ set-cookie:
360
+ - _recurly_session=b75ea58d252adfce813d51ab93e2e360; domain=.recurly.local; path=/; HttpOnly
351
361
  body: |
352
362
  <?xml version="1.0" encoding="UTF-8"?>
353
363
  <transaction type="Payment">
354
- <id>b1ec7306669645c5a610f0d1f101e2c7</id>
364
+ <id>a087dcbffabc40c287075578398d14fc</id>
355
365
  <account_code>transaction-lookup-1301883347</account_code>
356
366
  <action>purchase</action>
357
- <date type="datetime">2011-04-05T19:49:30Z</date>
367
+ <date type="datetime">2011-04-21T18:05:55Z</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,47 +386,49 @@
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/transactions/4c46bd5876984d878897462ac0a0e8cd.xml?account_code=transaction-lookup-1301883347
389
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/transactions/1797ad4d05ed46969fc479dbb851225b.xml?account_code=transaction-lookup-1301883347
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
- - "468"
408
+ - "405"
399
409
  content-type:
400
410
  - application/xml; charset=utf-8
401
411
  etag:
402
- - "\"ee6e9b55f726697cc8cc906f3c1f3890\""
412
+ - "\"d8057466d2be64af572a66af5c286df6\""
403
413
  cache-control:
404
414
  - private, max-age=0, must-revalidate
405
415
  content-length:
406
416
  - "859"
407
- set-cookie:
408
- - _recurly_session=386ddce54bdb87a626582df63c128b11; 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:58 GMT
409
421
  connection:
410
422
  - close
411
- server:
412
- - thin 1.2.7 codename No Hup
423
+ set-cookie:
424
+ - _recurly_session=ffa6a2119626f9feb860a2c31fce2671; domain=.recurly.local; path=/; HttpOnly
413
425
  body: |
414
426
  <?xml version="1.0" encoding="UTF-8"?>
415
427
  <transaction type="Payment">
416
- <id>4c46bd5876984d878897462ac0a0e8cd</id>
428
+ <id>1797ad4d05ed46969fc479dbb851225b</id>
417
429
  <account_code>transaction-lookup-1301883347</account_code>
418
430
  <action>purchase</action>
419
- <date type="datetime">2011-04-05T19:49:20Z</date>
431
+ <date type="datetime">2011-04-21T18:05:48Z</date>
420
432
  <amount_in_cents type="integer">100</amount_in_cents>
421
433
  <status>success</status>
422
434
  <message>Test Gateway: Successful test transaction</message>
@@ -438,47 +450,49 @@
438
450
  - !ruby/struct:VCR::HTTPInteraction
439
451
  request: !ruby/struct:VCR::Request
440
452
  method: :get
441
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/transactions/cebd12fe15b5432baf8912ab5b86b397.xml?account_code=transaction-lookup-1301883347
453
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/transactions/e31319e7f3244cca95ecb7ce6c8a2a37.xml?account_code=transaction-lookup-1301883347
442
454
  body:
443
455
  headers:
444
456
  authorization:
445
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
457
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
458
+ user-agent:
459
+ - Recurly Ruby Client v0.4.6
446
460
  accept:
447
461
  - application/xml
448
462
  accept-encoding:
449
463
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
450
- user-agent:
451
- - Ruby
452
464
  connection:
453
465
  - close
454
466
  response: !ruby/struct:VCR::Response
455
467
  status: !ruby/struct:VCR::ResponseStatus
456
468
  code: 200
457
- message: OK
469
+ message: "OK "
458
470
  headers:
459
471
  x-runtime:
460
- - "463"
472
+ - "401"
461
473
  content-type:
462
474
  - application/xml; charset=utf-8
463
475
  etag:
464
- - "\"7dc75ef3589c2e412f69de93e49177fc\""
476
+ - "\"efa036c20cbead52ea2d6737350e25be\""
465
477
  cache-control:
466
478
  - private, max-age=0, must-revalidate
467
479
  content-length:
468
480
  - "859"
469
- set-cookie:
470
- - _recurly_session=b3a8e0d84055c7441aa64fba04af0ebf; domain=.recurly.local; path=/; HttpOnly
481
+ server:
482
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
483
+ date:
484
+ - Thu, 21 Apr 2011 18:06:00 GMT
471
485
  connection:
472
486
  - close
473
- server:
474
- - thin 1.2.7 codename No Hup
487
+ set-cookie:
488
+ - _recurly_session=8fb6444c641698c745da16d705385bc4; domain=.recurly.local; path=/; HttpOnly
475
489
  body: |
476
490
  <?xml version="1.0" encoding="UTF-8"?>
477
491
  <transaction type="Payment">
478
- <id>cebd12fe15b5432baf8912ab5b86b397</id>
492
+ <id>e31319e7f3244cca95ecb7ce6c8a2a37</id>
479
493
  <account_code>transaction-lookup-1301883347</account_code>
480
494
  <action>purchase</action>
481
- <date type="datetime">2011-04-05T19:49:25Z</date>
495
+ <date type="datetime">2011-04-21T18:05:51Z</date>
482
496
  <amount_in_cents type="integer">200</amount_in_cents>
483
497
  <status>success</status>
484
498
  <message>Test Gateway: Successful test transaction</message>
@@ -500,47 +514,49 @@
500
514
  - !ruby/struct:VCR::HTTPInteraction
501
515
  request: !ruby/struct:VCR::Request
502
516
  method: :get
503
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/transactions/b1ec7306669645c5a610f0d1f101e2c7.xml?account_code=transaction-lookup-1301883347
517
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/transactions/a087dcbffabc40c287075578398d14fc.xml?account_code=transaction-lookup-1301883347
504
518
  body:
505
519
  headers:
506
520
  authorization:
507
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
521
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
522
+ user-agent:
523
+ - Recurly Ruby Client v0.4.6
508
524
  accept:
509
525
  - application/xml
510
526
  accept-encoding:
511
527
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
512
- user-agent:
513
- - Ruby
514
528
  connection:
515
529
  - close
516
530
  response: !ruby/struct:VCR::Response
517
531
  status: !ruby/struct:VCR::ResponseStatus
518
532
  code: 200
519
- message: OK
533
+ message: "OK "
520
534
  headers:
521
535
  x-runtime:
522
- - "465"
536
+ - "747"
523
537
  content-type:
524
538
  - application/xml; charset=utf-8
525
539
  etag:
526
- - "\"a15ab65a4e6dace2fcdc488f4eb6ab61\""
540
+ - "\"dc4378207eb9a0aa15fa92a89ec92362\""
527
541
  cache-control:
528
542
  - private, max-age=0, must-revalidate
529
543
  content-length:
530
544
  - "859"
531
- set-cookie:
532
- - _recurly_session=7a844b610346e9c26a51749982595ed9; domain=.recurly.local; path=/; HttpOnly
545
+ server:
546
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
547
+ date:
548
+ - Thu, 21 Apr 2011 18:06:03 GMT
533
549
  connection:
534
550
  - close
535
- server:
536
- - thin 1.2.7 codename No Hup
551
+ set-cookie:
552
+ - _recurly_session=1f4ece88ce302d2034a0c8eda725d9f7; domain=.recurly.local; path=/; HttpOnly
537
553
  body: |
538
554
  <?xml version="1.0" encoding="UTF-8"?>
539
555
  <transaction type="Payment">
540
- <id>b1ec7306669645c5a610f0d1f101e2c7</id>
556
+ <id>a087dcbffabc40c287075578398d14fc</id>
541
557
  <account_code>transaction-lookup-1301883347</account_code>
542
558
  <action>purchase</action>
543
- <date type="datetime">2011-04-05T19:49:30Z</date>
559
+ <date type="datetime">2011-04-21T18:05:55Z</date>
544
560
  <amount_in_cents type="integer">300</amount_in_cents>
545
561
  <status>success</status>
546
562
  <message>Test Gateway: Successful test transaction</message>