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.
- data/lib/recurly/base.rb +11 -4
- data/lib/recurly/billing_info.rb +2 -1
- data/lib/recurly/charge.rb +3 -1
- data/lib/recurly/credit.rb +3 -1
- data/lib/recurly/subscription.rb +1 -1
- data/lib/recurly/version.rb +1 -1
- data/spec/config/recurly.yml +4 -4
- data/spec/unit/billing_info_spec.rb +1 -0
- data/spec/unit/charge_spec.rb +2 -0
- data/spec/unit/credit_spec.rb +2 -0
- data/spec/unit/subscription_spec.rb +1 -1
- data/spec/vcr/account/accept-language-account/1301979678.yml +14 -12
- data/spec/vcr/account/close/1301979678.yml +41 -35
- data/spec/vcr/account/create-blank/1301979678.yml +11 -9
- data/spec/vcr/account/create-duplicate/1301979678.yml +25 -21
- data/spec/vcr/account/create-min/1301979678.yml +14 -12
- data/spec/vcr/account/create/1301979678.yml +14 -12
- data/spec/vcr/account/find/1301979678.yml +40 -34
- data/spec/vcr/account/list/1301979678.yml +348 -341
- data/spec/vcr/account/update/1301979678.yml +61 -53
- data/spec/vcr/billing/create/1302025874.yml +42 -36
- data/spec/vcr/billing/destroy/1302025874.yml +65 -55
- data/spec/vcr/billing/errors/1302025874.yml +25 -21
- data/spec/vcr/billing/find/1302025874.yml +56 -48
- data/spec/vcr/billing/update/1302025874.yml +56 -48
- data/spec/vcr/charge/create/1297746103.yml +65 -53
- data/spec/vcr/charge/delete-uninvoiced/1297746103.yml +85 -69
- data/spec/vcr/charge/list-all/1297746103.yml +97 -75
- data/spec/vcr/charge/list-invoiced/1297746103.yml +143 -115
- data/spec/vcr/charge/list-pending/1297746103.yml +97 -75
- data/spec/vcr/charge/lookup/1297746103.yml +51 -41
- data/spec/vcr/coupon/create/1299714521.yml +28 -88
- data/spec/vcr/coupon/destroy/1299714521.yml +25 -107
- data/spec/vcr/credit/create/1299714599.yml +51 -41
- data/spec/vcr/credit/delete/1299714599.yml +74 -60
- data/spec/vcr/credit/list/1299714599.yml +97 -75
- data/spec/vcr/credit/lookup/1299714599.yml +51 -41
- data/spec/vcr/invoice/create-no-charges/1297746103.yml +39 -33
- data/spec/vcr/invoice/create/1297746103.yml +86 -72
- data/spec/vcr/invoice/list/1297746103.yml +121 -103
- data/spec/vcr/invoice/lookup/1297746103.yml +84 -72
- data/spec/vcr/plan/all.yml +108 -134
- data/spec/vcr/plan/find.yml +47 -95
- data/spec/vcr/plan/update.yml +152 -66
- data/spec/vcr/subscription/addons/add/1301885121.yml +48 -310
- data/spec/vcr/subscription/addons/create/1301885121.yml +48 -151
- data/spec/vcr/subscription/addons/remove/1301885121.yml +48 -279
- data/spec/vcr/subscription/cancel-with-code/1301881900.yml +132 -135
- data/spec/vcr/subscription/cancel/1301881900.yml +111 -117
- data/spec/vcr/subscription/change1/1301881900.yml +107 -113
- data/spec/vcr/subscription/change2/1301881900.yml +107 -113
- data/spec/vcr/subscription/create/1301881900.yml +50 -65
- data/spec/vcr/subscription/find/1301881900.yml +69 -81
- data/spec/vcr/subscription/reactivate/1301881900.yml +122 -126
- data/spec/vcr/subscription/refund-full/1301881900.yml +84 -153
- data/spec/vcr/subscription/refund-none/1301881900.yml +101 -108
- data/spec/vcr/subscription/refund-partial/1301881900.yml +84 -153
- data/spec/vcr/transaction/all/1301883347.yml +86 -84
- data/spec/vcr/transaction/create-no-account/1301883347.yml +15 -13
- data/spec/vcr/transaction/create-with-account/1301883347.yml +43 -37
- data/spec/vcr/transaction/list-filled/1301883347.yml +115 -101
- data/spec/vcr/transaction/list-initial/1301883347.yml +43 -37
- data/spec/vcr/transaction/lookup/1301883347.yml +118 -102
- data/spec/vcr/transaction/refund/1301883347.yml +58 -50
- data/spec/vcr/transaction/void/1301883347.yml +75 -82
- data/spec/vcr/transparent/post-url/1301879142.yml +29 -25
- metadata +3 -3
data/lib/recurly/base.rb
CHANGED
@@ -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
|
data/lib/recurly/billing_info.rb
CHANGED
data/lib/recurly/charge.rb
CHANGED
data/lib/recurly/credit.rb
CHANGED
data/lib/recurly/subscription.rb
CHANGED
data/lib/recurly/version.rb
CHANGED
data/spec/config/recurly.yml
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
---
|
2
|
-
username: api-test@
|
3
|
-
password:
|
4
|
-
private_key:
|
5
|
-
subdomain:
|
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
|
data/spec/unit/charge_spec.rb
CHANGED
@@ -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)}
|
data/spec/unit/credit_spec.rb
CHANGED
@@ -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(:
|
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%
|
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
|
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
|
-
- "
|
42
|
+
- "235"
|
43
43
|
content-type:
|
44
44
|
- application/xml; charset=utf-8
|
45
45
|
content-length:
|
46
46
|
- "585"
|
47
|
-
|
48
|
-
-
|
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
|
-
|
52
|
-
-
|
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>
|
66
|
-
<created_at type="datetime">2011-04-
|
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%
|
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
|
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
|
-
- "
|
42
|
+
- "278"
|
43
43
|
content-type:
|
44
44
|
- application/xml; charset=utf-8
|
45
45
|
content-length:
|
46
46
|
- "581"
|
47
|
-
|
48
|
-
-
|
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
|
-
|
52
|
-
-
|
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>
|
66
|
-
<created_at type="datetime">2011-04-
|
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%
|
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
|
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
|
-
- "
|
95
|
+
- "293"
|
94
96
|
content-type:
|
95
97
|
- application/xml; charset=utf-8
|
96
98
|
content-length:
|
97
99
|
- "1"
|
98
|
-
|
99
|
-
-
|
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
|
-
|
103
|
-
-
|
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%
|
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
|
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
|
-
- "
|
132
|
+
- "244"
|
129
133
|
content-type:
|
130
134
|
- application/xml; charset=utf-8
|
131
135
|
etag:
|
132
|
-
- "\"
|
136
|
+
- "\"2c9473340f44d35a479ac39ec178c672\""
|
133
137
|
cache-control:
|
134
138
|
- private, max-age=0, must-revalidate
|
135
139
|
content-length:
|
136
140
|
- "580"
|
137
|
-
|
138
|
-
-
|
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
|
-
|
142
|
-
-
|
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>
|
156
|
-
<created_at type="datetime">2011-04-
|
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%
|
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
|
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
|
-
- "
|
36
|
+
- "289"
|
37
37
|
content-type:
|
38
38
|
- application/xml; charset=utf-8
|
39
39
|
content-length:
|
40
40
|
- "186"
|
41
|
-
|
42
|
-
-
|
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
|
-
|
46
|
-
-
|
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%
|
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
|
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
|
-
- "
|
38
|
+
- "236"
|
39
39
|
content-type:
|
40
40
|
- application/xml; charset=utf-8
|
41
41
|
content-length:
|
42
42
|
- "520"
|
43
|
-
|
44
|
-
-
|
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
|
-
|
48
|
-
-
|
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>
|
62
|
-
<created_at type="datetime">2011-04-
|
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%
|
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
|
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
|
-
- "
|
103
|
+
- "264"
|
102
104
|
content-type:
|
103
105
|
- application/xml; charset=utf-8
|
104
106
|
content-length:
|
105
107
|
- "132"
|
106
|
-
|
107
|
-
-
|
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
|
-
|
111
|
-
-
|
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>
|