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
@@ -135,10 +135,6 @@ module Recurly
135
135
  result
136
136
  end
137
137
 
138
- def build_request_headers(headers, http_method, uri)
139
- super(headers, http_method, uri).update({'User-Agent' => "Recurly Ruby Client v#{VERSION}"})
140
- end
141
-
142
138
  def handle_response(response)
143
139
  case response.code.to_i
144
140
  when 401
@@ -168,3 +164,14 @@ module Recurly
168
164
  # backwards compatibility
169
165
  RecurlyBase = Base
170
166
  end
167
+
168
+ module ActiveResource
169
+ class Connection
170
+ private
171
+ def default_header
172
+ @default_header ||= {}
173
+ @default_header['User-Agent'] = "Recurly Ruby Client v#{Recurly::VERSION}"
174
+ @default_header
175
+ end
176
+ end
177
+ end
@@ -13,7 +13,8 @@ module Recurly
13
13
  "zip",
14
14
  "country",
15
15
  "phone",
16
- "ip_address"
16
+ "ip_address",
17
+ "vat_number"
17
18
  ]
18
19
  end
19
20
 
@@ -6,7 +6,9 @@ module Recurly
6
6
  def self.known_attributes
7
7
  [
8
8
  "account_code",
9
- "amount_in_cents",
9
+ "quantity",
10
+ "unit_amount_in_cents",
11
+ "amount_in_cents", # quantity * unit_amount_in_cents
10
12
  "start_date",
11
13
  "end_date",
12
14
  "description",
@@ -6,7 +6,9 @@ module Recurly
6
6
  def self.known_attributes
7
7
  [
8
8
  "account_code",
9
- "amount_in_cents",
9
+ "quantity",
10
+ "unit_amount_in_cents",
11
+ "amount_in_cents", # quantity * unit_amount_in_cents
10
12
  "start_date",
11
13
  "end_date",
12
14
  "description",
@@ -6,7 +6,7 @@ module Recurly
6
6
  [
7
7
  "plan_code",
8
8
  "coupon_code",
9
- "unit_amount",
9
+ "unit_amount_in_cents",
10
10
  "quantity",
11
11
  "trial_ends_at"
12
12
  ]
@@ -1,3 +1,3 @@
1
1
  module Recurly #:nodoc
2
- VERSION = "0.4.5"
2
+ VERSION = "0.4.6"
3
3
  end
@@ -1,8 +1,8 @@
1
1
  ---
2
- username: api-test@hello-test.com
3
- password: 50a5b8a69a2545db84ac4112ba8cac6f
4
- private_key: 54922a65b9ba4d49a486de7f0b2057c3
5
- subdomain: hello-test
2
+ username: api-test@facebook.com
3
+ password: c012090130704e748dae49f56f05f68f
4
+ private_key: 1e114f7c047b4a82a270061b71247332
5
+ subdomain: facebook-test
6
6
  environment: :development
7
7
 
8
8
  #username: api-test@isaactest.com
@@ -15,6 +15,7 @@ module Recurly
15
15
  it { should respond_to(:country)}
16
16
  it { should respond_to(:phone)}
17
17
  it { should respond_to(:ip_address)}
18
+ it { should respond_to(:vat_number)}
18
19
 
19
20
  context "embedded credit card" do
20
21
  before(:each) do
@@ -7,6 +7,8 @@ module Recurly
7
7
 
8
8
  it { should respond_to(:id)}
9
9
  it { should respond_to(:account_code)}
10
+ it { should respond_to(:quantity)}
11
+ it { should respond_to(:unit_amount_in_cents)}
10
12
  it { should respond_to(:amount_in_cents)}
11
13
  it { should respond_to(:start_date)}
12
14
  it { should respond_to(:end_date)}
@@ -7,6 +7,8 @@ module Recurly
7
7
 
8
8
  it { should respond_to(:id)}
9
9
  it { should respond_to(:account_code)}
10
+ it { should respond_to(:quantity)}
11
+ it { should respond_to(:unit_amount_in_cents)}
10
12
  it { should respond_to(:amount_in_cents)}
11
13
  it { should respond_to(:start_date)}
12
14
  it { should respond_to(:end_date)}
@@ -7,7 +7,7 @@ module Recurly
7
7
 
8
8
  it { should respond_to(:plan_code)}
9
9
  it { should respond_to(:coupon_code)}
10
- it { should respond_to(:unit_amount)}
10
+ it { should respond_to(:unit_amount_in_cents)}
11
11
  it { should respond_to(:quantity)}
12
12
  it { should respond_to(:trial_ends_at)}
13
13
 
@@ -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/account1-french-1301979678
41
41
  x-runtime:
42
- - "653"
42
+ - "235"
43
43
  content-type:
44
44
  - application/xml; charset=utf-8
45
45
  content-length:
46
46
  - "585"
47
- set-cookie:
48
- - _recurly_session=3f7bb9cdba35677fd3059b70801e498f; 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 17:58:54 GMT
49
51
  connection:
50
52
  - close
51
- server:
52
- - thin 1.2.7 codename No Hup
53
+ set-cookie:
54
+ - _recurly_session=7869f2db79a7ca292c9af350696f94ea; 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>d0eeb511e23842c1a0639a4d9c254454</hosted_login_token>
66
- <created_at type="datetime">2011-04-05T19:39:07Z</created_at>
67
+ <hosted_login_token>eb46e4e3be45482f9e99fe2f6a50ae84</hosted_login_token>
68
+ <created_at type="datetime">2011-04-21T17:58:54Z</created_at>
67
69
  <state>active</state>
68
70
  </account>
69
71
 
@@ -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/account-close-1301979678
41
41
  x-runtime:
42
- - "386"
42
+ - "278"
43
43
  content-type:
44
44
  - application/xml; charset=utf-8
45
45
  content-length:
46
46
  - "581"
47
- set-cookie:
48
- - _recurly_session=959d6d6bc89a68c40355b4640667c18f; 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 17:58:43 GMT
49
51
  connection:
50
52
  - close
51
- server:
52
- - thin 1.2.7 codename No Hup
53
+ set-cookie:
54
+ - _recurly_session=710d71f19faee26a480df8bf881cda1f; 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>51817519b9f04d40b55b7d814d7f0547</hosted_login_token>
66
- <created_at type="datetime">2011-04-05T19:38:52Z</created_at>
67
+ <hosted_login_token>c54c971474064630bf90147a73f37232</hosted_login_token>
68
+ <created_at type="datetime">2011-04-21T17:58:43Z</created_at>
67
69
  <state>active</state>
68
70
  </account>
69
71
 
@@ -71,75 +73,79 @@
71
73
  - !ruby/struct:VCR::HTTPInteraction
72
74
  request: !ruby/struct:VCR::Request
73
75
  method: :delete
74
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/account-close-1301979678.xml
76
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/account-close-1301979678.xml
75
77
  body:
76
78
  headers:
77
79
  authorization:
78
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
80
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
81
+ user-agent:
82
+ - Recurly Ruby Client v0.4.6
79
83
  accept:
80
84
  - application/xml
81
- user-agent:
82
- - Ruby
83
85
  connection:
84
86
  - close
85
87
  response: !ruby/struct:VCR::Response
86
88
  status: !ruby/struct:VCR::ResponseStatus
87
89
  code: 200
88
- message: OK
90
+ message: "OK "
89
91
  headers:
90
92
  cache-control:
91
93
  - no-cache
92
94
  x-runtime:
93
- - "674"
95
+ - "293"
94
96
  content-type:
95
97
  - application/xml; charset=utf-8
96
98
  content-length:
97
99
  - "1"
98
- set-cookie:
99
- - _recurly_session=1aaf5360a93701ec0b77d38c9b491e61; domain=.recurly.local; path=/; HttpOnly
100
+ server:
101
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
102
+ date:
103
+ - Thu, 21 Apr 2011 17:58:45 GMT
100
104
  connection:
101
105
  - close
102
- server:
103
- - thin 1.2.7 codename No Hup
106
+ set-cookie:
107
+ - _recurly_session=ebfc242c25c7d65847dc94ee1eacc814; domain=.recurly.local; path=/; HttpOnly
104
108
  body: " "
105
109
  http_version: "1.1"
106
110
  - !ruby/struct:VCR::HTTPInteraction
107
111
  request: !ruby/struct:VCR::Request
108
112
  method: :get
109
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/account-close-1301979678.xml
113
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/account-close-1301979678.xml
110
114
  body:
111
115
  headers:
112
116
  authorization:
113
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
117
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
118
+ user-agent:
119
+ - Recurly Ruby Client v0.4.6
114
120
  accept:
115
121
  - application/xml
116
122
  accept-encoding:
117
123
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
118
- user-agent:
119
- - Ruby
120
124
  connection:
121
125
  - close
122
126
  response: !ruby/struct:VCR::Response
123
127
  status: !ruby/struct:VCR::ResponseStatus
124
128
  code: 200
125
- message: OK
129
+ message: "OK "
126
130
  headers:
127
131
  x-runtime:
128
- - "372"
132
+ - "244"
129
133
  content-type:
130
134
  - application/xml; charset=utf-8
131
135
  etag:
132
- - "\"cf0446d5715951e4cc9666193af16150\""
136
+ - "\"2c9473340f44d35a479ac39ec178c672\""
133
137
  cache-control:
134
138
  - private, max-age=0, must-revalidate
135
139
  content-length:
136
140
  - "580"
137
- set-cookie:
138
- - _recurly_session=d2cf4862f501fe9ef038695a160e79ed; domain=.recurly.local; path=/; HttpOnly
141
+ server:
142
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
143
+ date:
144
+ - Thu, 21 Apr 2011 17:58:47 GMT
139
145
  connection:
140
146
  - close
141
- server:
142
- - thin 1.2.7 codename No Hup
147
+ set-cookie:
148
+ - _recurly_session=1de6e95b75fd5a065f06480dc916e9e5; domain=.recurly.local; path=/; HttpOnly
143
149
  body: |
144
150
  <?xml version="1.0" encoding="UTF-8"?>
145
151
  <account>
@@ -152,8 +158,8 @@
152
158
  <company_name>Recurly Ruby Gem</company_name>
153
159
  <balance_in_cents type="integer">0</balance_in_cents>
154
160
  <closed type="boolean">true</closed>
155
- <hosted_login_token>51817519b9f04d40b55b7d814d7f0547</hosted_login_token>
156
- <created_at type="datetime">2011-04-05T19:38:52Z</created_at>
161
+ <hosted_login_token>c54c971474064630bf90147a73f37232</hosted_login_token>
162
+ <created_at type="datetime">2011-04-21T17:58:43Z</created_at>
157
163
  <state>closed</state>
158
164
  </account>
159
165
 
@@ -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>
@@ -16,13 +16,13 @@
16
16
 
17
17
  headers:
18
18
  authorization:
19
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
19
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
20
+ user-agent:
21
+ - Recurly Ruby Client v0.4.6
20
22
  content-type:
21
23
  - application/xml
22
24
  accept:
23
25
  - "*/*"
24
- user-agent:
25
- - Ruby
26
26
  connection:
27
27
  - close
28
28
  response: !ruby/struct:VCR::Response
@@ -33,17 +33,19 @@
33
33
  cache-control:
34
34
  - no-cache
35
35
  x-runtime:
36
- - "402"
36
+ - "289"
37
37
  content-type:
38
38
  - application/xml; charset=utf-8
39
39
  content-length:
40
40
  - "186"
41
- set-cookie:
42
- - _recurly_session=9111a3a894c1286c22cb1be2db9253ea; domain=.recurly.local; path=/; HttpOnly
41
+ server:
42
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
43
+ date:
44
+ - Thu, 21 Apr 2011 17:58:49 GMT
43
45
  connection:
44
46
  - close
45
- server:
46
- - thin 1.2.7 codename No Hup
47
+ set-cookie:
48
+ - _recurly_session=76ff90799de7ce3e6d5a56edc9fea733; domain=.recurly.local; path=/; HttpOnly
47
49
  body: |
48
50
  <?xml version="1.0" encoding="UTF-8"?>
49
51
  <errors>
@@ -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>
@@ -16,36 +16,38 @@
16
16
 
17
17
  headers:
18
18
  authorization:
19
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
19
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
20
+ user-agent:
21
+ - Recurly Ruby Client v0.4.6
20
22
  content-type:
21
23
  - application/xml
22
24
  accept:
23
25
  - "*/*"
24
- user-agent:
25
- - Ruby
26
26
  connection:
27
27
  - close
28
28
  response: !ruby/struct:VCR::Response
29
29
  status: !ruby/struct:VCR::ResponseStatus
30
30
  code: 201
31
- message: Created
31
+ message: "Created "
32
32
  headers:
33
33
  cache-control:
34
34
  - no-cache
35
35
  location:
36
36
  - http://app.recurly.local:3000/accounts/account-exists
37
37
  x-runtime:
38
- - "388"
38
+ - "236"
39
39
  content-type:
40
40
  - application/xml; charset=utf-8
41
41
  content-length:
42
42
  - "520"
43
- set-cookie:
44
- - _recurly_session=2ee91ff89ab5b3f2bbd5992341e4c222; domain=.recurly.local; path=/; HttpOnly
43
+ server:
44
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
45
+ date:
46
+ - Thu, 21 Apr 2011 17:58:51 GMT
45
47
  connection:
46
48
  - close
47
- server:
48
- - thin 1.2.7 codename No Hup
49
+ set-cookie:
50
+ - _recurly_session=f9af84adfde49c441fb52f74ac02bdf3; domain=.recurly.local; path=/; HttpOnly
49
51
  body: |
50
52
  <?xml version="1.0" encoding="UTF-8"?>
51
53
  <account>
@@ -58,8 +60,8 @@
58
60
  <company_name></company_name>
59
61
  <balance_in_cents type="integer">0</balance_in_cents>
60
62
  <closed type="boolean">false</closed>
61
- <hosted_login_token>a3d7cc100f2a4682aaf97c109c39ba9e</hosted_login_token>
62
- <created_at type="datetime">2011-04-05T19:39:02Z</created_at>
63
+ <hosted_login_token>8fdd44c166d24cbdad17fcbc31968927</hosted_login_token>
64
+ <created_at type="datetime">2011-04-21T17:58:51Z</created_at>
63
65
  <state>active</state>
64
66
  </account>
65
67
 
@@ -67,7 +69,7 @@
67
69
  - !ruby/struct:VCR::HTTPInteraction
68
70
  request: !ruby/struct:VCR::Request
69
71
  method: :post
70
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts.xml
72
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts.xml
71
73
  body: |
72
74
  <?xml version="1.0" encoding="UTF-8"?>
73
75
  <account>
@@ -81,13 +83,13 @@
81
83
 
82
84
  headers:
83
85
  authorization:
84
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
86
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
87
+ user-agent:
88
+ - Recurly Ruby Client v0.4.6
85
89
  content-type:
86
90
  - application/xml
87
91
  accept:
88
92
  - "*/*"
89
- user-agent:
90
- - Ruby
91
93
  connection:
92
94
  - close
93
95
  response: !ruby/struct:VCR::Response
@@ -98,17 +100,19 @@
98
100
  cache-control:
99
101
  - no-cache
100
102
  x-runtime:
101
- - "669"
103
+ - "264"
102
104
  content-type:
103
105
  - application/xml; charset=utf-8
104
106
  content-length:
105
107
  - "132"
106
- set-cookie:
107
- - _recurly_session=0e651159e41aa33d2962cd59cb957517; domain=.recurly.local; path=/; HttpOnly
108
+ server:
109
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
110
+ date:
111
+ - Thu, 21 Apr 2011 17:58:53 GMT
108
112
  connection:
109
113
  - close
110
- server:
111
- - thin 1.2.7 codename No Hup
114
+ set-cookie:
115
+ - _recurly_session=5c5f8b3a22da2ddc5b1252d78ee7fb8f; domain=.recurly.local; path=/; HttpOnly
112
116
  body: |
113
117
  <?xml version="1.0" encoding="UTF-8"?>
114
118
  <errors>