recurly 0.4.3 → 0.4.4
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.
- data/lib/recurly/base.rb +9 -4
- data/lib/recurly/coupon.rb +1 -1
- data/lib/recurly/formats/xml_with_errors.rb +2 -2
- data/lib/recurly/rails3/recurly.rake +2 -2
- data/lib/recurly/version.rb +1 -1
- data/spec/integration/account_spec.rb +3 -3
- data/spec/vcr/account/accept-language-account/{1297746103.yml → 1301979678.yml} +8 -8
- data/spec/vcr/account/close/{1297746103.yml → 1301979678.yml} +19 -19
- data/spec/vcr/account/create-blank/{1297746103.yml → 1301979678.yml} +2 -2
- data/spec/vcr/account/create-duplicate/{1297746103.yml → 1301979678.yml} +6 -6
- data/spec/vcr/account/create-min/{1297746103.yml → 1301979678.yml} +8 -8
- data/spec/vcr/account/create/{1297746103.yml → 1301979678.yml} +8 -8
- data/spec/vcr/account/find/{1297746103.yml → 1301979678.yml} +17 -17
- data/spec/vcr/account/list/{1297746103.yml → 1301979678.yml} +151 -151
- data/spec/vcr/account/update/{1297746103.yml → 1301979678.yml} +36 -36
- data/spec/vcr/billing/create/1298594128.yml +12 -12
- data/spec/vcr/billing/destroy/1298594128.yml +15 -15
- data/spec/vcr/billing/find/1298594128.yml +16 -16
- data/spec/vcr/billing/update/1298594128.yml +16 -16
- data/spec/vcr/charge/create/1297746103.yml +20 -20
- data/spec/vcr/charge/delete-uninvoiced/1297746103.yml +23 -23
- data/spec/vcr/charge/list-all/1297746103.yml +31 -31
- data/spec/vcr/charge/list-invoiced/1297746103.yml +54 -54
- data/spec/vcr/charge/list-pending/1297746103.yml +31 -31
- data/spec/vcr/charge/lookup/1297746103.yml +16 -16
- data/spec/vcr/coupon/create/1299714521.yml +11 -11
- data/spec/vcr/coupon/destroy/1299714521.yml +10 -10
- data/spec/vcr/credit/create/1299714599.yml +16 -16
- data/spec/vcr/credit/delete/1299714599.yml +21 -21
- data/spec/vcr/credit/list/1299714599.yml +31 -31
- data/spec/vcr/credit/lookup/1299714599.yml +16 -16
- data/spec/vcr/invoice/create-no-charges/1297746103.yml +10 -10
- data/spec/vcr/invoice/create/1297746103.yml +30 -30
- data/spec/vcr/invoice/list/1297746103.yml +45 -45
- data/spec/vcr/invoice/lookup/1297746103.yml +31 -31
- data/spec/vcr/plan/all.yml +6 -6
- data/spec/vcr/plan/find.yml +6 -6
- data/spec/vcr/plan/update.yml +6 -6
- data/spec/vcr/subscription/addons/add/{1297746103.yml → 1301885121.yml} +49 -49
- data/spec/vcr/subscription/addons/create/{1301884213.yml → 1301885121.yml} +31 -31
- data/spec/vcr/subscription/addons/remove/{1297746103.yml → 1301885121.yml} +49 -49
- data/spec/vcr/subscription/cancel-with-code/1301881900.yml +43 -43
- data/spec/vcr/subscription/cancel/1301881900.yml +35 -35
- data/spec/vcr/subscription/change1/1301881900.yml +31 -31
- data/spec/vcr/subscription/change2/1301881900.yml +31 -31
- data/spec/vcr/subscription/create/1301881900.yml +13 -13
- data/spec/vcr/subscription/find/1301881900.yml +19 -19
- data/spec/vcr/subscription/reactivate/1301881900.yml +36 -36
- data/spec/vcr/subscription/refund-full/1301881900.yml +27 -27
- data/spec/vcr/subscription/refund-none/1301881900.yml +28 -28
- data/spec/vcr/subscription/refund-partial/1301881900.yml +28 -28
- data/spec/vcr/transaction/all/1301883347.yml +43 -43
- data/spec/vcr/transaction/create-no-account/1301883347.yml +5 -5
- data/spec/vcr/transaction/create-with-account/1301883347.yml +13 -13
- data/spec/vcr/transaction/list-filled/1301883347.yml +45 -45
- data/spec/vcr/transaction/list-initial/1301883347.yml +13 -13
- data/spec/vcr/transaction/lookup/1301883347.yml +41 -41
- data/spec/vcr/transaction/refund/1301883347.yml +19 -19
- data/spec/vcr/transaction/void/1301883347.yml +26 -26
- data/spec/vcr/transparent/post-url/1301879142.yml +9 -9
- metadata +27 -33
- data/spec/vcr/subscription/addons/add/1301884213.yml +0 -480
- data/spec/vcr/subscription/addons/create/1297746103.yml +0 -321
- data/spec/vcr/subscription/addons/remove/1301884213.yml +0 -449
data/lib/recurly/base.rb
CHANGED
@@ -27,7 +27,12 @@ module Recurly
|
|
27
27
|
rescue ActiveResource::ResourceInvalid => error
|
28
28
|
case error.response['Content-Type']
|
29
29
|
when /application\/xml/
|
30
|
-
|
30
|
+
begin
|
31
|
+
f = Recurly::Formats::XmlWithErrorsFormat.new
|
32
|
+
load_errors_from_array(f.decode(error.response.body))
|
33
|
+
rescue
|
34
|
+
errors.from_xml(error.response.body)
|
35
|
+
end
|
31
36
|
when /application\/json/
|
32
37
|
errors.from_json(error.response.body)
|
33
38
|
end
|
@@ -92,7 +97,7 @@ module Recurly
|
|
92
97
|
def load_errors_from_array(new_errors, save_cache = false)
|
93
98
|
errors.clear unless save_cache
|
94
99
|
return if new_errors.nil? or new_errors.empty?
|
95
|
-
humanized_attributes = Hash[self.known_attributes.map { |attr_name| [attr_name.humanize, attr_name] }] unless self.known_attributes.nil?
|
100
|
+
humanized_attributes = Hash[self.class.known_attributes.map { |attr_name| [attr_name.humanize, attr_name] }] unless self.class.known_attributes.nil?
|
96
101
|
humanized_attributes ||= Hash[@attributes.keys.map { |attr_name| [attr_name.humanize, attr_name] }]
|
97
102
|
new_errors.each do |error|
|
98
103
|
if error.is_a?(Hash)
|
@@ -103,8 +108,8 @@ module Recurly
|
|
103
108
|
errors[:base] << message
|
104
109
|
end
|
105
110
|
|
106
|
-
humanized_name = field.humanize
|
107
|
-
message = message[(humanized_name.size + 1)..-1] if message[0, humanized_name.size + 1] == "#{humanized_name} "
|
111
|
+
humanized_name = field.humanize.downcase
|
112
|
+
message = message[(humanized_name.size + 1)..-1] if message[0, humanized_name.size + 1].downcase == "#{humanized_name} "
|
108
113
|
|
109
114
|
errors.add field.to_sym, message
|
110
115
|
elsif error.is_a?(String)
|
data/lib/recurly/coupon.rb
CHANGED
@@ -32,7 +32,7 @@ module Recurly
|
|
32
32
|
elsif node_type == 'array'
|
33
33
|
return node.children.collect do |child|
|
34
34
|
xml_node_to_hash(child)
|
35
|
-
end
|
35
|
+
end.reject { |n| n.nil? || (n.is_a?(String) && n.blank?) }
|
36
36
|
end
|
37
37
|
|
38
38
|
return nil if node.children.empty?
|
@@ -92,7 +92,7 @@ module Recurly
|
|
92
92
|
end
|
93
93
|
|
94
94
|
def xml_attributes(node)
|
95
|
-
return
|
95
|
+
return {} if node.attribute_nodes.empty?
|
96
96
|
values = {}
|
97
97
|
node.attribute_nodes.each do |attribute|
|
98
98
|
values[attribute.name] = attribute.value
|
@@ -38,7 +38,7 @@ namespace :recurly do
|
|
38
38
|
|
39
39
|
# now lets clear site data
|
40
40
|
begin
|
41
|
-
RestClient.post(
|
41
|
+
RestClient.post( @recurly_config["site"]+"/site/test_data",
|
42
42
|
{"_method"=>"delete"},
|
43
43
|
:cookies => login_response.cookies)
|
44
44
|
raise "Clearing Didn't work for some reason. Is your site setting correct?"
|
@@ -68,4 +68,4 @@ namespace :recurly do
|
|
68
68
|
# saves the yml file
|
69
69
|
Recurly::ConfigParser.save(@recurly_config)
|
70
70
|
end
|
71
|
-
end
|
71
|
+
end
|
data/lib/recurly/version.rb
CHANGED
@@ -219,8 +219,8 @@ module Recurly
|
|
219
219
|
end
|
220
220
|
|
221
221
|
it "should require setting an account code" do
|
222
|
-
@account.errors[:
|
223
|
-
@account.errors[:
|
222
|
+
@account.errors[:account_code].should include("can't be blank")
|
223
|
+
@account.errors[:account_code].should include("is invalid")
|
224
224
|
end
|
225
225
|
end
|
226
226
|
|
@@ -237,7 +237,7 @@ module Recurly
|
|
237
237
|
end
|
238
238
|
|
239
239
|
it "should require setting an account code" do
|
240
|
-
@account.errors[:
|
240
|
+
@account.errors[:account_code].should include("has already been taken")
|
241
241
|
end
|
242
242
|
end
|
243
243
|
end
|
@@ -6,7 +6,7 @@
|
|
6
6
|
body: |
|
7
7
|
<?xml version="1.0" encoding="UTF-8"?>
|
8
8
|
<account>
|
9
|
-
<account-code>account1-french-
|
9
|
+
<account-code>account1-french-1301979678</account-code>
|
10
10
|
<first-name>Verena</first-name>
|
11
11
|
<last-name>Test</last-name>
|
12
12
|
<email>verena@test.com</email>
|
@@ -37,15 +37,15 @@
|
|
37
37
|
cache-control:
|
38
38
|
- no-cache
|
39
39
|
location:
|
40
|
-
- http://app.recurly.local:3000/accounts/account1-french-
|
40
|
+
- http://app.recurly.local:3000/accounts/account1-french-1301979678
|
41
41
|
x-runtime:
|
42
|
-
- "
|
42
|
+
- "410"
|
43
43
|
content-type:
|
44
44
|
- application/xml; charset=utf-8
|
45
45
|
content-length:
|
46
46
|
- "585"
|
47
47
|
set-cookie:
|
48
|
-
- _recurly_session=
|
48
|
+
- _recurly_session=78f3d47f16335f1637aae2e1f7a55b58; domain=.recurly.local; path=/; HttpOnly
|
49
49
|
connection:
|
50
50
|
- close
|
51
51
|
server:
|
@@ -53,8 +53,8 @@
|
|
53
53
|
body: |
|
54
54
|
<?xml version="1.0" encoding="UTF-8"?>
|
55
55
|
<account>
|
56
|
-
<id>account1-french-
|
57
|
-
<account_code>account1-french-
|
56
|
+
<id>account1-french-1301979678</id>
|
57
|
+
<account_code>account1-french-1301979678</account_code>
|
58
58
|
<username></username>
|
59
59
|
<email>verena@test.com</email>
|
60
60
|
<first_name>Verena</first_name>
|
@@ -62,8 +62,8 @@
|
|
62
62
|
<company_name>Recurly Ruby Gem</company_name>
|
63
63
|
<balance_in_cents type="integer">0</balance_in_cents>
|
64
64
|
<closed type="boolean">false</closed>
|
65
|
-
<hosted_login_token>
|
66
|
-
<created_at type="datetime">2011-04-
|
65
|
+
<hosted_login_token>72d7a2698291442c9d190fd7964886f1</hosted_login_token>
|
66
|
+
<created_at type="datetime">2011-04-05T05:13:31Z</created_at>
|
67
67
|
<state>active</state>
|
68
68
|
</account>
|
69
69
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
body: |
|
7
7
|
<?xml version="1.0" encoding="UTF-8"?>
|
8
8
|
<account>
|
9
|
-
<account-code>account-close-
|
9
|
+
<account-code>account-close-1301979678</account-code>
|
10
10
|
<first-name>Verena</first-name>
|
11
11
|
<last-name>Test</last-name>
|
12
12
|
<email>verena@test.com</email>
|
@@ -37,15 +37,15 @@
|
|
37
37
|
cache-control:
|
38
38
|
- no-cache
|
39
39
|
location:
|
40
|
-
- http://app.recurly.local:3000/accounts/account-close-
|
40
|
+
- http://app.recurly.local:3000/accounts/account-close-1301979678
|
41
41
|
x-runtime:
|
42
|
-
- "
|
42
|
+
- "260"
|
43
43
|
content-type:
|
44
44
|
- application/xml; charset=utf-8
|
45
45
|
content-length:
|
46
46
|
- "581"
|
47
47
|
set-cookie:
|
48
|
-
- _recurly_session=
|
48
|
+
- _recurly_session=2aaa7892408c6fcc89f7c8af997161f1; domain=.recurly.local; path=/; HttpOnly
|
49
49
|
connection:
|
50
50
|
- close
|
51
51
|
server:
|
@@ -53,8 +53,8 @@
|
|
53
53
|
body: |
|
54
54
|
<?xml version="1.0" encoding="UTF-8"?>
|
55
55
|
<account>
|
56
|
-
<id>account-close-
|
57
|
-
<account_code>account-close-
|
56
|
+
<id>account-close-1301979678</id>
|
57
|
+
<account_code>account-close-1301979678</account_code>
|
58
58
|
<username></username>
|
59
59
|
<email>verena@test.com</email>
|
60
60
|
<first_name>Verena</first_name>
|
@@ -62,8 +62,8 @@
|
|
62
62
|
<company_name>Recurly Ruby Gem</company_name>
|
63
63
|
<balance_in_cents type="integer">0</balance_in_cents>
|
64
64
|
<closed type="boolean">false</closed>
|
65
|
-
<hosted_login_token>
|
66
|
-
<created_at type="datetime">2011-04-
|
65
|
+
<hosted_login_token>1e9adf47b89a4fdda1ae4286c0377655</hosted_login_token>
|
66
|
+
<created_at type="datetime">2011-04-05T05:13:20Z</created_at>
|
67
67
|
<state>active</state>
|
68
68
|
</account>
|
69
69
|
|
@@ -71,7 +71,7 @@
|
|
71
71
|
- !ruby/struct:VCR::HTTPInteraction
|
72
72
|
request: !ruby/struct:VCR::Request
|
73
73
|
method: :delete
|
74
|
-
uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/account-close-
|
74
|
+
uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/account-close-1301979678.xml
|
75
75
|
body:
|
76
76
|
headers:
|
77
77
|
authorization:
|
@@ -90,13 +90,13 @@
|
|
90
90
|
cache-control:
|
91
91
|
- no-cache
|
92
92
|
x-runtime:
|
93
|
-
- "
|
93
|
+
- "280"
|
94
94
|
content-type:
|
95
95
|
- application/xml; charset=utf-8
|
96
96
|
content-length:
|
97
97
|
- "1"
|
98
98
|
set-cookie:
|
99
|
-
- _recurly_session=
|
99
|
+
- _recurly_session=66fd174af38f731f69e127e91d43e6d6; domain=.recurly.local; path=/; HttpOnly
|
100
100
|
connection:
|
101
101
|
- close
|
102
102
|
server:
|
@@ -106,7 +106,7 @@
|
|
106
106
|
- !ruby/struct:VCR::HTTPInteraction
|
107
107
|
request: !ruby/struct:VCR::Request
|
108
108
|
method: :get
|
109
|
-
uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/account-close-
|
109
|
+
uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/account-close-1301979678.xml
|
110
110
|
body:
|
111
111
|
headers:
|
112
112
|
authorization:
|
@@ -125,17 +125,17 @@
|
|
125
125
|
message: OK
|
126
126
|
headers:
|
127
127
|
x-runtime:
|
128
|
-
- "
|
128
|
+
- "233"
|
129
129
|
content-type:
|
130
130
|
- application/xml; charset=utf-8
|
131
131
|
etag:
|
132
|
-
- "\"
|
132
|
+
- "\"8d3c629b2bdb0b49d4299cd0a9ddf29a\""
|
133
133
|
cache-control:
|
134
134
|
- private, max-age=0, must-revalidate
|
135
135
|
content-length:
|
136
136
|
- "580"
|
137
137
|
set-cookie:
|
138
|
-
- _recurly_session=
|
138
|
+
- _recurly_session=81d34193a0dc04db21d106606ec1bd05; domain=.recurly.local; path=/; HttpOnly
|
139
139
|
connection:
|
140
140
|
- close
|
141
141
|
server:
|
@@ -143,8 +143,8 @@
|
|
143
143
|
body: |
|
144
144
|
<?xml version="1.0" encoding="UTF-8"?>
|
145
145
|
<account>
|
146
|
-
<id>account-close-
|
147
|
-
<account_code>account-close-
|
146
|
+
<id>account-close-1301979678</id>
|
147
|
+
<account_code>account-close-1301979678</account_code>
|
148
148
|
<username></username>
|
149
149
|
<email>verena@test.com</email>
|
150
150
|
<first_name>Verena</first_name>
|
@@ -152,8 +152,8 @@
|
|
152
152
|
<company_name>Recurly Ruby Gem</company_name>
|
153
153
|
<balance_in_cents type="integer">0</balance_in_cents>
|
154
154
|
<closed type="boolean">true</closed>
|
155
|
-
<hosted_login_token>
|
156
|
-
<created_at type="datetime">2011-04-
|
155
|
+
<hosted_login_token>1e9adf47b89a4fdda1ae4286c0377655</hosted_login_token>
|
156
|
+
<created_at type="datetime">2011-04-05T05:13:20Z</created_at>
|
157
157
|
<state>closed</state>
|
158
158
|
</account>
|
159
159
|
|
@@ -33,13 +33,13 @@
|
|
33
33
|
cache-control:
|
34
34
|
- no-cache
|
35
35
|
x-runtime:
|
36
|
-
- "
|
36
|
+
- "275"
|
37
37
|
content-type:
|
38
38
|
- application/xml; charset=utf-8
|
39
39
|
content-length:
|
40
40
|
- "186"
|
41
41
|
set-cookie:
|
42
|
-
- _recurly_session=
|
42
|
+
- _recurly_session=c20a45e8d0ec88b24423165204a8297d; domain=.recurly.local; path=/; HttpOnly
|
43
43
|
connection:
|
44
44
|
- close
|
45
45
|
server:
|
@@ -35,13 +35,13 @@
|
|
35
35
|
location:
|
36
36
|
- http://app.recurly.local:3000/accounts/account-exists
|
37
37
|
x-runtime:
|
38
|
-
- "
|
38
|
+
- "257"
|
39
39
|
content-type:
|
40
40
|
- application/xml; charset=utf-8
|
41
41
|
content-length:
|
42
42
|
- "520"
|
43
43
|
set-cookie:
|
44
|
-
- _recurly_session=
|
44
|
+
- _recurly_session=2fff90022fb854f6c5b682d92be61009; domain=.recurly.local; path=/; HttpOnly
|
45
45
|
connection:
|
46
46
|
- close
|
47
47
|
server:
|
@@ -58,8 +58,8 @@
|
|
58
58
|
<company_name></company_name>
|
59
59
|
<balance_in_cents type="integer">0</balance_in_cents>
|
60
60
|
<closed type="boolean">false</closed>
|
61
|
-
<hosted_login_token>
|
62
|
-
<created_at type="datetime">2011-04-
|
61
|
+
<hosted_login_token>00ddcb8f6a0844a3b07699cd57d812e4</hosted_login_token>
|
62
|
+
<created_at type="datetime">2011-04-05T05:13:27Z</created_at>
|
63
63
|
<state>active</state>
|
64
64
|
</account>
|
65
65
|
|
@@ -98,13 +98,13 @@
|
|
98
98
|
cache-control:
|
99
99
|
- no-cache
|
100
100
|
x-runtime:
|
101
|
-
- "
|
101
|
+
- "277"
|
102
102
|
content-type:
|
103
103
|
- application/xml; charset=utf-8
|
104
104
|
content-length:
|
105
105
|
- "132"
|
106
106
|
set-cookie:
|
107
|
-
- _recurly_session=
|
107
|
+
- _recurly_session=0b040a0c74413b49458bf06212f3226a; domain=.recurly.local; path=/; HttpOnly
|
108
108
|
connection:
|
109
109
|
- close
|
110
110
|
server:
|
@@ -6,7 +6,7 @@
|
|
6
6
|
body: |
|
7
7
|
<?xml version="1.0" encoding="UTF-8"?>
|
8
8
|
<account>
|
9
|
-
<account-code>d00d-
|
9
|
+
<account-code>d00d-1301979678</account-code>
|
10
10
|
<billing-info>
|
11
11
|
<credit-card>
|
12
12
|
</credit-card>
|
@@ -33,15 +33,15 @@
|
|
33
33
|
cache-control:
|
34
34
|
- no-cache
|
35
35
|
location:
|
36
|
-
- http://app.recurly.local:3000/accounts/d00d-
|
36
|
+
- http://app.recurly.local:3000/accounts/d00d-1301979678
|
37
37
|
x-runtime:
|
38
|
-
- "
|
38
|
+
- "253"
|
39
39
|
content-type:
|
40
40
|
- application/xml; charset=utf-8
|
41
41
|
content-length:
|
42
42
|
- "522"
|
43
43
|
set-cookie:
|
44
|
-
- _recurly_session=
|
44
|
+
- _recurly_session=94ac70a1a051c64c8745d4e2cd5c4976; domain=.recurly.local; path=/; HttpOnly
|
45
45
|
connection:
|
46
46
|
- close
|
47
47
|
server:
|
@@ -49,8 +49,8 @@
|
|
49
49
|
body: |
|
50
50
|
<?xml version="1.0" encoding="UTF-8"?>
|
51
51
|
<account>
|
52
|
-
<id>d00d-
|
53
|
-
<account_code>d00d-
|
52
|
+
<id>d00d-1301979678</id>
|
53
|
+
<account_code>d00d-1301979678</account_code>
|
54
54
|
<username></username>
|
55
55
|
<email></email>
|
56
56
|
<first_name></first_name>
|
@@ -58,8 +58,8 @@
|
|
58
58
|
<company_name></company_name>
|
59
59
|
<balance_in_cents type="integer">0</balance_in_cents>
|
60
60
|
<closed type="boolean">false</closed>
|
61
|
-
<hosted_login_token>
|
62
|
-
<created_at type="datetime">2011-04-
|
61
|
+
<hosted_login_token>8738732c3b574f15bccc39cc4c090304</hosted_login_token>
|
62
|
+
<created_at type="datetime">2011-04-05T05:12:01Z</created_at>
|
63
63
|
<state>active</state>
|
64
64
|
</account>
|
65
65
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
body: |
|
7
7
|
<?xml version="1.0" encoding="UTF-8"?>
|
8
8
|
<account>
|
9
|
-
<account-code>account-create-
|
9
|
+
<account-code>account-create-1301979678</account-code>
|
10
10
|
<first-name>Verena</first-name>
|
11
11
|
<last-name>Test</last-name>
|
12
12
|
<email>verena@test.com</email>
|
@@ -37,15 +37,15 @@
|
|
37
37
|
cache-control:
|
38
38
|
- no-cache
|
39
39
|
location:
|
40
|
-
- http://app.recurly.local:3000/accounts/account-create-
|
40
|
+
- http://app.recurly.local:3000/accounts/account-create-1301979678
|
41
41
|
x-runtime:
|
42
|
-
- "
|
42
|
+
- "450"
|
43
43
|
content-type:
|
44
44
|
- application/xml; charset=utf-8
|
45
45
|
content-length:
|
46
46
|
- "583"
|
47
47
|
set-cookie:
|
48
|
-
- _recurly_session=
|
48
|
+
- _recurly_session=f03efef23b2546f21d2a2eb468d35b40; domain=.recurly.local; path=/; HttpOnly
|
49
49
|
connection:
|
50
50
|
- close
|
51
51
|
server:
|
@@ -53,8 +53,8 @@
|
|
53
53
|
body: |
|
54
54
|
<?xml version="1.0" encoding="UTF-8"?>
|
55
55
|
<account>
|
56
|
-
<id>account-create-
|
57
|
-
<account_code>account-create-
|
56
|
+
<id>account-create-1301979678</id>
|
57
|
+
<account_code>account-create-1301979678</account_code>
|
58
58
|
<username></username>
|
59
59
|
<email>verena@test.com</email>
|
60
60
|
<first_name>Verena</first_name>
|
@@ -62,8 +62,8 @@
|
|
62
62
|
<company_name>Recurly Ruby Gem</company_name>
|
63
63
|
<balance_in_cents type="integer">0</balance_in_cents>
|
64
64
|
<closed type="boolean">false</closed>
|
65
|
-
<hosted_login_token>
|
66
|
-
<created_at type="datetime">2011-04-
|
65
|
+
<hosted_login_token>ab02259944264bb59259af6a69f917f3</hosted_login_token>
|
66
|
+
<created_at type="datetime">2011-04-05T05:12:00Z</created_at>
|
67
67
|
<state>active</state>
|
68
68
|
</account>
|
69
69
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
body: |
|
7
7
|
<?xml version="1.0" encoding="UTF-8"?>
|
8
8
|
<account>
|
9
|
-
<account-code>account-get-
|
9
|
+
<account-code>account-get-1301979678</account-code>
|
10
10
|
<first-name>Verena</first-name>
|
11
11
|
<last-name>Test</last-name>
|
12
12
|
<email>verena@test.com</email>
|
@@ -37,15 +37,15 @@
|
|
37
37
|
cache-control:
|
38
38
|
- no-cache
|
39
39
|
location:
|
40
|
-
- http://app.recurly.local:3000/accounts/account-get-
|
40
|
+
- http://app.recurly.local:3000/accounts/account-get-1301979678
|
41
41
|
x-runtime:
|
42
|
-
- "
|
42
|
+
- "256"
|
43
43
|
content-type:
|
44
44
|
- application/xml; charset=utf-8
|
45
45
|
content-length:
|
46
46
|
- "577"
|
47
47
|
set-cookie:
|
48
|
-
- _recurly_session=
|
48
|
+
- _recurly_session=72ba38c67776bdce7f015ca96d6a696d; domain=.recurly.local; path=/; HttpOnly
|
49
49
|
connection:
|
50
50
|
- close
|
51
51
|
server:
|
@@ -53,8 +53,8 @@
|
|
53
53
|
body: |
|
54
54
|
<?xml version="1.0" encoding="UTF-8"?>
|
55
55
|
<account>
|
56
|
-
<id>account-get-
|
57
|
-
<account_code>account-get-
|
56
|
+
<id>account-get-1301979678</id>
|
57
|
+
<account_code>account-get-1301979678</account_code>
|
58
58
|
<username></username>
|
59
59
|
<email>verena@test.com</email>
|
60
60
|
<first_name>Verena</first_name>
|
@@ -62,8 +62,8 @@
|
|
62
62
|
<company_name>Recurly Ruby Gem</company_name>
|
63
63
|
<balance_in_cents type="integer">0</balance_in_cents>
|
64
64
|
<closed type="boolean">false</closed>
|
65
|
-
<hosted_login_token>
|
66
|
-
<created_at type="datetime">2011-04-
|
65
|
+
<hosted_login_token>32e4430c040e4fe9afd45fb12c9004af</hosted_login_token>
|
66
|
+
<created_at type="datetime">2011-04-05T05:12:03Z</created_at>
|
67
67
|
<state>active</state>
|
68
68
|
</account>
|
69
69
|
|
@@ -71,7 +71,7 @@
|
|
71
71
|
- !ruby/struct:VCR::HTTPInteraction
|
72
72
|
request: !ruby/struct:VCR::Request
|
73
73
|
method: :get
|
74
|
-
uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/account-get-
|
74
|
+
uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/account-get-1301979678.xml
|
75
75
|
body:
|
76
76
|
headers:
|
77
77
|
authorization:
|
@@ -90,17 +90,17 @@
|
|
90
90
|
message: OK
|
91
91
|
headers:
|
92
92
|
x-runtime:
|
93
|
-
- "
|
93
|
+
- "229"
|
94
94
|
content-type:
|
95
95
|
- application/xml; charset=utf-8
|
96
96
|
etag:
|
97
|
-
- "\"
|
97
|
+
- "\"456629927f3a8df7fcaa92c2e98ebcca\""
|
98
98
|
cache-control:
|
99
99
|
- private, max-age=0, must-revalidate
|
100
100
|
content-length:
|
101
101
|
- "577"
|
102
102
|
set-cookie:
|
103
|
-
- _recurly_session=
|
103
|
+
- _recurly_session=0372cb99b64de8f6ac57187045a52a47; domain=.recurly.local; path=/; HttpOnly
|
104
104
|
connection:
|
105
105
|
- close
|
106
106
|
server:
|
@@ -108,8 +108,8 @@
|
|
108
108
|
body: |
|
109
109
|
<?xml version="1.0" encoding="UTF-8"?>
|
110
110
|
<account>
|
111
|
-
<id>account-get-
|
112
|
-
<account_code>account-get-
|
111
|
+
<id>account-get-1301979678</id>
|
112
|
+
<account_code>account-get-1301979678</account_code>
|
113
113
|
<username></username>
|
114
114
|
<email>verena@test.com</email>
|
115
115
|
<first_name>Verena</first_name>
|
@@ -117,8 +117,8 @@
|
|
117
117
|
<company_name>Recurly Ruby Gem</company_name>
|
118
118
|
<balance_in_cents type="integer">0</balance_in_cents>
|
119
119
|
<closed type="boolean">false</closed>
|
120
|
-
<hosted_login_token>
|
121
|
-
<created_at type="datetime">2011-04-
|
120
|
+
<hosted_login_token>32e4430c040e4fe9afd45fb12c9004af</hosted_login_token>
|
121
|
+
<created_at type="datetime">2011-04-05T05:12:03Z</created_at>
|
122
122
|
<state>active</state>
|
123
123
|
</account>
|
124
124
|
|
@@ -151,7 +151,7 @@
|
|
151
151
|
content-length:
|
152
152
|
- "93"
|
153
153
|
set-cookie:
|
154
|
-
- _recurly_session=
|
154
|
+
- _recurly_session=55fb191de1c3df427fe600b095eda781; domain=.recurly.local; path=/; HttpOnly
|
155
155
|
connection:
|
156
156
|
- close
|
157
157
|
server:
|