recurly 0.2.3 → 0.2.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.rb +1 -0
- data/lib/recurly/charge.rb +6 -0
- data/lib/recurly/subscription.rb +23 -5
- data/lib/recurly/version.rb +1 -1
- data/spec/integration/charge_spec.rb +45 -0
- data/spec/integration/credit_spec.rb +19 -0
- data/spec/integration/subscription_spec.rb +62 -9
- data/spec/vcr/account/close/1287167046.yml +15 -15
- data/spec/vcr/account/create-blank/1287167046.yml +3 -3
- data/spec/vcr/account/create-duplicate/1287167046.yml +8 -8
- data/spec/vcr/account/create-min/1287167046.yml +6 -6
- data/spec/vcr/account/create/1287167046.yml +6 -6
- data/spec/vcr/account/find/1287167046.yml +14 -14
- data/spec/vcr/account/list/1287167046.yml +101 -101
- data/spec/vcr/account/update/1287167046.yml +26 -26
- data/spec/vcr/billing/create/1286682213.yml +15 -15
- data/spec/vcr/billing/destroy/1286682213.yml +23 -23
- data/spec/vcr/billing/find/1286682213.yml +21 -21
- data/spec/vcr/billing/update/1286682213.yml +21 -21
- data/spec/vcr/charge/create/1286681273.yml +24 -24
- data/spec/vcr/charge/delete-uninvoiced/1287460783.yml +246 -0
- data/spec/vcr/charge/list-all/1286681273.yml +37 -37
- data/spec/vcr/charge/list-invoiced/1286681273.yml +62 -62
- data/spec/vcr/charge/list-pending/1286681273.yml +37 -37
- data/spec/vcr/charge/lookup/1286681273.yml +20 -20
- data/spec/vcr/credit/create/1286681343.yml +20 -20
- data/spec/vcr/credit/create/1287460732.yml +171 -0
- data/spec/vcr/credit/create/1287461340.yml +171 -0
- data/spec/vcr/credit/delete-invoiced/1287460732.yml +233 -0
- data/spec/vcr/credit/delete-invoiced/1287461340.yml +283 -0
- data/spec/vcr/credit/delete-uninvoiced/1287459796.yml +246 -0
- data/spec/vcr/credit/delete-uninvoiced/1287460732.yml +246 -0
- data/spec/vcr/credit/delete-uninvoiced/1287461340.yml +221 -0
- data/spec/vcr/credit/list/1286681343.yml +36 -36
- data/spec/vcr/credit/list/1287460732.yml +299 -0
- data/spec/vcr/credit/list/1287461340.yml +299 -0
- data/spec/vcr/credit/lookup/1286681343.yml +20 -20
- data/spec/vcr/credit/lookup/1287460732.yml +171 -0
- data/spec/vcr/credit/lookup/1287461340.yml +171 -0
- data/spec/vcr/invoice/create-no-charges/1287167121.yml +14 -14
- data/spec/vcr/invoice/create/1287167121.yml +36 -36
- data/spec/vcr/invoice/list/1287167121.yml +52 -52
- data/spec/vcr/invoice/lookup/1287167121.yml +38 -38
- data/spec/vcr/plan/all.yml +9 -9
- data/spec/vcr/plan/delete/1286677585.yml +16 -16
- data/spec/vcr/plan/find.yml +9 -9
- data/spec/vcr/plan/update.yml +9 -9
- data/spec/vcr/subscription/{cancel/1287442108.yml → cancel-with-code/1287455769.yml} +124 -65
- data/spec/vcr/subscription/cancel/{1287439446.yml → 1287455769.yml} +59 -59
- data/spec/vcr/subscription/change1/{1287442352.yml → 1287455769.yml} +56 -56
- data/spec/vcr/subscription/change2/{1287442352.yml → 1287455769.yml} +56 -56
- data/spec/vcr/subscription/create/{1287442352.yml → 1287455769.yml} +25 -25
- data/spec/vcr/subscription/find/{1287442108.yml → 1287455769.yml} +36 -36
- data/spec/vcr/subscription/{cancel/1287442352.yml → reactivate/1287455769.yml} +107 -66
- data/spec/vcr/subscription/refund-full/{1287442108.yml → 1287455769.yml} +50 -50
- data/spec/vcr/subscription/{refund-full/1287439446.yml → refund-none/1287455769.yml} +51 -51
- data/spec/vcr/subscription/refund-partial/{1287442108.yml → 1287455769.yml} +50 -50
- data/spec/vcr/transaction/all/1287186411.yml +80 -80
- data/spec/vcr/transaction/create-no-account/1287186411.yml +7 -7
- data/spec/vcr/transaction/create-with-account/1287186411.yml +17 -17
- data/spec/vcr/transaction/list-empty/1287186411.yml +17 -17
- data/spec/vcr/transaction/list-filled/1287186411.yml +41 -41
- data/spec/vcr/transaction/lookup/1287186411.yml +50 -50
- data/spec/vcr/transaction/refund/1287186411.yml +24 -24
- data/spec/vcr/transaction/void/1287186411.yml +60 -60
- metadata +67 -56
- data/spec/vcr/subscription/change1/1287439446.yml +0 -409
- data/spec/vcr/subscription/change1/1287442108.yml +0 -409
- data/spec/vcr/subscription/change2/1287439446.yml +0 -409
- data/spec/vcr/subscription/change2/1287442108.yml +0 -409
- data/spec/vcr/subscription/create/1287439446.yml +0 -224
- data/spec/vcr/subscription/create/1287442108.yml +0 -224
- data/spec/vcr/subscription/find/1287439446.yml +0 -283
- data/spec/vcr/subscription/find/1287442352.yml +0 -283
- data/spec/vcr/subscription/refund-full/1287442352.yml +0 -382
- data/spec/vcr/subscription/refund-none/1287439446.yml +0 -382
- data/spec/vcr/subscription/refund-none/1287442108.yml +0 -382
- data/spec/vcr/subscription/refund-none/1287442352.yml +0 -382
- data/spec/vcr/subscription/refund-partial/1287439446.yml +0 -382
- data/spec/vcr/subscription/refund-partial/1287442352.yml +0 -382
data/lib/recurly.rb
CHANGED
data/lib/recurly/charge.rb
CHANGED
data/lib/recurly/subscription.rb
CHANGED
@@ -7,15 +7,33 @@ module Recurly
|
|
7
7
|
Subscription.delete(nil, {:account_code => account_code, :refund => refund_type})
|
8
8
|
end
|
9
9
|
|
10
|
+
# Terminates the subscription immediately and processes a full or partial refund
|
11
|
+
def refund(refund_type)
|
12
|
+
self.class.refund(self.subscription_account_code, refund_type)
|
13
|
+
end
|
14
|
+
|
15
|
+
def self.cancel(account_code)
|
16
|
+
Subscription.delete(account_code)
|
17
|
+
end
|
18
|
+
|
10
19
|
# Stops the subscription from renewing. The subscription remains valid until the end of
|
11
20
|
# the current term (current_period_ends_at).
|
12
|
-
def cancel(account_code)
|
13
|
-
|
21
|
+
def cancel(account_code = nil)
|
22
|
+
unless account_code.nil?
|
23
|
+
ActiveSupport::Deprecation.warn('Calling Recurly::Subscription#cancel with an account_code has been deprecated. Use the static method Recurly::Subscription.cancel(account_code) instead', caller)
|
24
|
+
end
|
25
|
+
self.class.cancel(account_code || self.subscription_account_code)
|
14
26
|
end
|
15
27
|
|
16
|
-
|
17
|
-
|
18
|
-
|
28
|
+
def self.reactivate(account_code, options = {})
|
29
|
+
path = "/accounts/#{CGI::escape(account_code.to_s)}/subscription/reactivate"
|
30
|
+
connection.post(path, "", headers)
|
31
|
+
rescue ActiveResource::Redirection => e
|
32
|
+
return true
|
33
|
+
end
|
34
|
+
|
35
|
+
def reactivate
|
36
|
+
self.class.reactivate(self.subscription_account_code)
|
19
37
|
end
|
20
38
|
|
21
39
|
# Valid timeframe: :now or :renewal
|
data/lib/recurly/version.rb
CHANGED
@@ -127,5 +127,50 @@ module Recurly
|
|
127
127
|
account.lookup_charge(@charge.id).should == @charge
|
128
128
|
end
|
129
129
|
end
|
130
|
+
|
131
|
+
describe "delete a charge" do
|
132
|
+
context "uninvoiced charge" do
|
133
|
+
use_vcr_cassette "charge/delete-uninvoiced/#{timestamp}"
|
134
|
+
|
135
|
+
let(:account) { Factory.create_account("charge-delete-uinvoiced-#{timestamp}")}
|
136
|
+
|
137
|
+
before(:each) do
|
138
|
+
charge = Factory.create_charge account.account_code,
|
139
|
+
:amount => 13.15,
|
140
|
+
:description => "inconvenience fee"
|
141
|
+
|
142
|
+
@charge = Charge.lookup(account.account_code, charge.id)
|
143
|
+
|
144
|
+
@charge.destroy
|
145
|
+
end
|
146
|
+
|
147
|
+
it "should remove the charge" do
|
148
|
+
expect{
|
149
|
+
Charge.lookup(account.account_code, @charge.id)
|
150
|
+
}.to raise_error ActiveResource::ResourceNotFound
|
151
|
+
end
|
152
|
+
end
|
153
|
+
|
154
|
+
context "invoiced charge" do
|
155
|
+
use_vcr_cassette "charge/delete-uninvoiced/#{timestamp}"
|
156
|
+
|
157
|
+
let(:account) { Factory.create_account("charge-delete-uinvoiced-#{timestamp}")}
|
158
|
+
|
159
|
+
before(:each) do
|
160
|
+
charge = Factory.create_charge account.account_code,
|
161
|
+
:amount => 13.15,
|
162
|
+
:description => "inconvenience fee"
|
163
|
+
|
164
|
+
@charge = Charge.lookup(account.account_code, charge.id)
|
165
|
+
Invoice.create(:account_code => account.account_code)
|
166
|
+
|
167
|
+
end
|
168
|
+
|
169
|
+
it "should not remove the charge" do
|
170
|
+
@charge.destroy.should be_false
|
171
|
+
Charge.lookup(account.account_code, @charge.id).should == @charge
|
172
|
+
end
|
173
|
+
end
|
174
|
+
end
|
130
175
|
end
|
131
176
|
end
|
@@ -81,7 +81,26 @@ module Recurly
|
|
81
81
|
it "should also be available via Account#lookup_credit" do
|
82
82
|
account.lookup_credit(@credit.id).should == @credit
|
83
83
|
end
|
84
|
+
end
|
85
|
+
|
86
|
+
describe "delete credit" do
|
87
|
+
use_vcr_cassette "credit/delete/#{timestamp}"
|
88
|
+
let(:account) { Factory.create_account("delete-uninvoiced-#{timestamp}") }
|
84
89
|
|
90
|
+
before(:each) do
|
91
|
+
credit = Factory.create_credit account.account_code,
|
92
|
+
:amount => 13.15,
|
93
|
+
:description => "free moniez 4 u"
|
94
|
+
@credit = Credit.lookup(account.account_code, credit.id)
|
95
|
+
|
96
|
+
@credit.destroy
|
97
|
+
end
|
98
|
+
|
99
|
+
it "should remove the credit" do
|
100
|
+
expect {
|
101
|
+
Credit.lookup(account.account_code, @credit.id)
|
102
|
+
}.to raise_error ActiveResource::ResourceNotFound
|
103
|
+
end
|
85
104
|
end
|
86
105
|
end
|
87
106
|
end
|
@@ -1,5 +1,8 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
|
+
require 'test/unit'
|
4
|
+
require 'active_support/testing/deprecation'
|
5
|
+
|
3
6
|
module Recurly
|
4
7
|
describe Subscription do
|
5
8
|
# version accounts based on this current files modification dates
|
@@ -86,24 +89,74 @@ module Recurly
|
|
86
89
|
end
|
87
90
|
end
|
88
91
|
|
89
|
-
describe "
|
90
|
-
use_vcr_cassette "subscription/
|
92
|
+
describe "reactivate a subscription" do
|
93
|
+
use_vcr_cassette "subscription/reactivate/#{timestamp}"
|
91
94
|
|
92
|
-
let(:account){ Factory.create_account("subscription-
|
95
|
+
let(:account){ Factory.create_account("subscription-reactivate-#{timestamp}") }
|
93
96
|
before(:each) do
|
94
97
|
Factory.create_subscription(account, :paid)
|
95
98
|
@subscription = Subscription.find(account.account_code)
|
99
|
+
@subscription.cancel
|
100
|
+
|
101
|
+
Subscription.reactivate(account.account_code)
|
102
|
+
end
|
96
103
|
|
97
|
-
|
98
|
-
|
104
|
+
it "should mark the subscription as active" do
|
105
|
+
subscription = Subscription.find(account.account_code)
|
106
|
+
subscription.state.should == "active"
|
99
107
|
end
|
100
108
|
|
101
|
-
|
102
|
-
|
109
|
+
end
|
110
|
+
|
111
|
+
describe "cancel a subscription" do
|
112
|
+
context "without account_code" do
|
113
|
+
|
114
|
+
use_vcr_cassette "subscription/cancel/#{timestamp}"
|
115
|
+
|
116
|
+
let(:account){ Factory.create_account("subscription-cancel-#{timestamp}") }
|
117
|
+
before(:each) do
|
118
|
+
Factory.create_subscription(account, :paid)
|
119
|
+
@subscription = Subscription.find(account.account_code)
|
120
|
+
|
121
|
+
# cancel subscription
|
122
|
+
@subscription.cancel
|
123
|
+
end
|
124
|
+
|
125
|
+
it "should mark the subscription state as canceled" do
|
126
|
+
Subscription.find(account.account_code).state.should == "canceled"
|
127
|
+
end
|
128
|
+
|
129
|
+
it "should mark the subscription canceled_at" do
|
130
|
+
Subscription.find(account.account_code).canceled_at.should_not be_nil
|
131
|
+
end
|
132
|
+
|
103
133
|
end
|
104
134
|
|
105
|
-
|
106
|
-
|
135
|
+
context "with account_code (backward compat)" do
|
136
|
+
use_vcr_cassette "subscription/cancel-with-code/#{timestamp}"
|
137
|
+
|
138
|
+
include ActiveSupport::Testing::Deprecation
|
139
|
+
|
140
|
+
# ghetto workaround for rspec2 (till i figure out how to use test/unit helpers within rspec)
|
141
|
+
def assert(value, msg = nil)
|
142
|
+
raise "#{value} should have been true" unless value
|
143
|
+
end
|
144
|
+
|
145
|
+
let(:account){ Factory.create_account("subscription-cancel-with-code-#{timestamp}") }
|
146
|
+
before(:each) do
|
147
|
+
Factory.create_subscription(account, :paid)
|
148
|
+
@subscription = Subscription.find(account.account_code)
|
149
|
+
|
150
|
+
assert_deprecated("Calling Recurly::Subscription#cancel with an account_code has been deprecated. Use the static method Recurly::Subscription.cancel(account_code) instead") do
|
151
|
+
# cancel subscription
|
152
|
+
@subscription.cancel(account.account_code)
|
153
|
+
end
|
154
|
+
end
|
155
|
+
|
156
|
+
it "should mark the subscription state as canceled" do
|
157
|
+
Subscription.find(account.account_code).state.should == "canceled"
|
158
|
+
Subscription.find(account.account_code).canceled_at.should_not be_nil
|
159
|
+
end
|
107
160
|
end
|
108
161
|
end
|
109
162
|
|
@@ -34,17 +34,17 @@
|
|
34
34
|
content-type:
|
35
35
|
- application/xml; charset=utf-8
|
36
36
|
x-runtime:
|
37
|
-
- "
|
37
|
+
- "609"
|
38
38
|
date:
|
39
|
-
-
|
39
|
+
- Tue, 19 Oct 2010 03:18:58 GMT
|
40
40
|
server:
|
41
41
|
- nginx/0.7.65
|
42
42
|
content-length:
|
43
43
|
- "581"
|
44
44
|
set-cookie:
|
45
|
-
- account_credentials=
|
45
|
+
- account_credentials=06392fef571b9ee7d9c1882c09b29b75d142d5d68c80899e1256844e7a9c5bd955c5f8a93fa63789d66c27a7895db5aea6b992b3a79fb4559463dedde850ec21%3A%3A; domain=.recurly.com; path=/; secure; HttpOnly
|
46
46
|
- ""
|
47
|
-
- _recurly_session=
|
47
|
+
- _recurly_session=5e0292a892483661424a3cc0909360fb; domain=.recurly.com; path=/; Secure; HttpOnly
|
48
48
|
cache-control:
|
49
49
|
- no-cache
|
50
50
|
body: |
|
@@ -59,8 +59,8 @@
|
|
59
59
|
<company_name>Recurly Ruby Gem</company_name>
|
60
60
|
<balance_in_cents type="integer">0</balance_in_cents>
|
61
61
|
<closed type="boolean">false</closed>
|
62
|
-
<hosted_login_token>
|
63
|
-
<created_at type="datetime">2010-10-
|
62
|
+
<hosted_login_token>a8f733ecab7d471eb94ae072c9c8c924</hosted_login_token>
|
63
|
+
<created_at type="datetime">2010-10-19T03:18:58Z</created_at>
|
64
64
|
<state>active</state>
|
65
65
|
</account>
|
66
66
|
|
@@ -89,15 +89,15 @@
|
|
89
89
|
content-type:
|
90
90
|
- application/xml; charset=utf-8
|
91
91
|
x-runtime:
|
92
|
-
- "
|
92
|
+
- "40"
|
93
93
|
date:
|
94
|
-
-
|
94
|
+
- Tue, 19 Oct 2010 03:18:58 GMT
|
95
95
|
server:
|
96
96
|
- nginx/0.7.65
|
97
97
|
content-length:
|
98
98
|
- "1"
|
99
99
|
set-cookie:
|
100
|
-
- _recurly_session=
|
100
|
+
- _recurly_session=b9c63067736a5f4ce4a1904eb1eda748; domain=.recurly.com; path=/; Secure; HttpOnly
|
101
101
|
cache-control:
|
102
102
|
- no-cache
|
103
103
|
body: " "
|
@@ -122,21 +122,21 @@
|
|
122
122
|
x-ua-compatible:
|
123
123
|
- IE=Edge
|
124
124
|
etag:
|
125
|
-
- "\"
|
125
|
+
- "\"8865b761556fb64c9b83e236b3459161\""
|
126
126
|
connection:
|
127
127
|
- close
|
128
128
|
content-type:
|
129
129
|
- application/xml; charset=utf-8
|
130
130
|
x-runtime:
|
131
|
-
- "
|
131
|
+
- "46"
|
132
132
|
date:
|
133
|
-
-
|
133
|
+
- Tue, 19 Oct 2010 03:18:59 GMT
|
134
134
|
server:
|
135
135
|
- nginx/0.7.65
|
136
136
|
content-length:
|
137
137
|
- "580"
|
138
138
|
set-cookie:
|
139
|
-
- _recurly_session=
|
139
|
+
- _recurly_session=11e61212ec47341497139e3ef6851637; domain=.recurly.com; path=/; Secure; HttpOnly
|
140
140
|
cache-control:
|
141
141
|
- private, max-age=0, must-revalidate
|
142
142
|
body: |
|
@@ -151,8 +151,8 @@
|
|
151
151
|
<company_name>Recurly Ruby Gem</company_name>
|
152
152
|
<balance_in_cents type="integer">0</balance_in_cents>
|
153
153
|
<closed type="boolean">true</closed>
|
154
|
-
<hosted_login_token>
|
155
|
-
<created_at type="datetime">2010-10-
|
154
|
+
<hosted_login_token>a8f733ecab7d471eb94ae072c9c8c924</hosted_login_token>
|
155
|
+
<created_at type="datetime">2010-10-19T03:18:58Z</created_at>
|
156
156
|
<state>closed</state>
|
157
157
|
</account>
|
158
158
|
|
@@ -28,15 +28,15 @@
|
|
28
28
|
content-type:
|
29
29
|
- application/xml; charset=utf-8
|
30
30
|
x-runtime:
|
31
|
-
- "
|
31
|
+
- "26"
|
32
32
|
date:
|
33
|
-
-
|
33
|
+
- Tue, 19 Oct 2010 03:19:00 GMT
|
34
34
|
server:
|
35
35
|
- nginx/0.7.65
|
36
36
|
content-length:
|
37
37
|
- "186"
|
38
38
|
set-cookie:
|
39
|
-
- _recurly_session=
|
39
|
+
- _recurly_session=3688b5a806c6eb585dccb3255db6d384; domain=.recurly.com; path=/; Secure; HttpOnly
|
40
40
|
cache-control:
|
41
41
|
- no-cache
|
42
42
|
body: |
|
@@ -30,17 +30,17 @@
|
|
30
30
|
content-type:
|
31
31
|
- application/xml; charset=utf-8
|
32
32
|
x-runtime:
|
33
|
-
- "
|
33
|
+
- "585"
|
34
34
|
date:
|
35
|
-
-
|
35
|
+
- Tue, 19 Oct 2010 03:19:01 GMT
|
36
36
|
server:
|
37
37
|
- nginx/0.7.65
|
38
38
|
content-length:
|
39
39
|
- "520"
|
40
40
|
set-cookie:
|
41
|
-
- account_credentials=
|
41
|
+
- account_credentials=4260726b9264f7ec172bf4da4f2db3238aab1a794ae10ee6c615263f423b5b34e5701217bbaae001329700ee2d1c8f9efd0f89b10a8b6ce86b009777adadccf3%3A%3A; domain=.recurly.com; path=/; secure; HttpOnly
|
42
42
|
- ""
|
43
|
-
- _recurly_session=
|
43
|
+
- _recurly_session=be25096fcfd998349799062b7b94f980; domain=.recurly.com; path=/; Secure; HttpOnly
|
44
44
|
cache-control:
|
45
45
|
- no-cache
|
46
46
|
body: |
|
@@ -55,8 +55,8 @@
|
|
55
55
|
<company_name></company_name>
|
56
56
|
<balance_in_cents type="integer">0</balance_in_cents>
|
57
57
|
<closed type="boolean">false</closed>
|
58
|
-
<hosted_login_token>
|
59
|
-
<created_at type="datetime">2010-10-
|
58
|
+
<hosted_login_token>7fecbf6a942749759b8312c0e9a3a518</hosted_login_token>
|
59
|
+
<created_at type="datetime">2010-10-19T03:19:01Z</created_at>
|
60
60
|
<state>active</state>
|
61
61
|
</account>
|
62
62
|
|
@@ -92,13 +92,13 @@
|
|
92
92
|
x-runtime:
|
93
93
|
- "19"
|
94
94
|
date:
|
95
|
-
-
|
95
|
+
- Tue, 19 Oct 2010 03:19:02 GMT
|
96
96
|
server:
|
97
97
|
- nginx/0.7.65
|
98
98
|
content-length:
|
99
99
|
- "132"
|
100
100
|
set-cookie:
|
101
|
-
- _recurly_session=
|
101
|
+
- _recurly_session=0fd3053a93351a282a96ea151dd6b780; domain=.recurly.com; path=/; Secure; HttpOnly
|
102
102
|
cache-control:
|
103
103
|
- no-cache
|
104
104
|
body: |
|
@@ -30,17 +30,17 @@
|
|
30
30
|
content-type:
|
31
31
|
- application/xml; charset=utf-8
|
32
32
|
x-runtime:
|
33
|
-
- "
|
33
|
+
- "615"
|
34
34
|
date:
|
35
|
-
-
|
35
|
+
- Tue, 19 Oct 2010 03:18:32 GMT
|
36
36
|
server:
|
37
37
|
- nginx/0.7.65
|
38
38
|
content-length:
|
39
39
|
- "522"
|
40
40
|
set-cookie:
|
41
|
-
- account_credentials=
|
41
|
+
- account_credentials=8f321b919e5358cac2a0b2e9f7c7f3fa3a1058933422ebaf0706d022014491c31a296f3e3b88cf02b024eba0169eba25d66accb8d4aa1c200fb38e03cb8c56d5%3A%3A; domain=.recurly.com; path=/; secure; HttpOnly
|
42
42
|
- ""
|
43
|
-
- _recurly_session=
|
43
|
+
- _recurly_session=d8b8b996efcb9a95c894d99041b424a7; domain=.recurly.com; path=/; Secure; HttpOnly
|
44
44
|
cache-control:
|
45
45
|
- no-cache
|
46
46
|
body: |
|
@@ -55,8 +55,8 @@
|
|
55
55
|
<company_name></company_name>
|
56
56
|
<balance_in_cents type="integer">0</balance_in_cents>
|
57
57
|
<closed type="boolean">false</closed>
|
58
|
-
<hosted_login_token>
|
59
|
-
<created_at type="datetime">2010-10-
|
58
|
+
<hosted_login_token>38a10f50fa8042cb9229e6da36bca6eb</hosted_login_token>
|
59
|
+
<created_at type="datetime">2010-10-19T03:18:32Z</created_at>
|
60
60
|
<state>active</state>
|
61
61
|
</account>
|
62
62
|
|
@@ -34,17 +34,17 @@
|
|
34
34
|
content-type:
|
35
35
|
- application/xml; charset=utf-8
|
36
36
|
x-runtime:
|
37
|
-
- "
|
37
|
+
- "754"
|
38
38
|
date:
|
39
|
-
-
|
39
|
+
- Tue, 19 Oct 2010 03:18:30 GMT
|
40
40
|
server:
|
41
41
|
- nginx/0.7.65
|
42
42
|
content-length:
|
43
43
|
- "583"
|
44
44
|
set-cookie:
|
45
|
-
- account_credentials=
|
45
|
+
- account_credentials=57b5a4b3c88e2b41ee03482040df1eacbe4e76d0cabdce8c04f3293b1deaa69403545b07df03b6e9d1e6c099b62ee36bd7c0554ee6d62f96f60e613f78e3a126%3A%3A; domain=.recurly.com; path=/; secure; HttpOnly
|
46
46
|
- ""
|
47
|
-
- _recurly_session=
|
47
|
+
- _recurly_session=8f518240dc27810f0345bad4dd9b67d7; domain=.recurly.com; path=/; Secure; HttpOnly
|
48
48
|
cache-control:
|
49
49
|
- no-cache
|
50
50
|
body: |
|
@@ -59,8 +59,8 @@
|
|
59
59
|
<company_name>Recurly Ruby Gem</company_name>
|
60
60
|
<balance_in_cents type="integer">0</balance_in_cents>
|
61
61
|
<closed type="boolean">false</closed>
|
62
|
-
<hosted_login_token>
|
63
|
-
<created_at type="datetime">2010-10-
|
62
|
+
<hosted_login_token>17829e82231f40fd88c8453ec6ce4404</hosted_login_token>
|
63
|
+
<created_at type="datetime">2010-10-19T03:18:30Z</created_at>
|
64
64
|
<state>active</state>
|
65
65
|
</account>
|
66
66
|
|