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.

Files changed (80) hide show
  1. data/lib/recurly.rb +1 -0
  2. data/lib/recurly/charge.rb +6 -0
  3. data/lib/recurly/subscription.rb +23 -5
  4. data/lib/recurly/version.rb +1 -1
  5. data/spec/integration/charge_spec.rb +45 -0
  6. data/spec/integration/credit_spec.rb +19 -0
  7. data/spec/integration/subscription_spec.rb +62 -9
  8. data/spec/vcr/account/close/1287167046.yml +15 -15
  9. data/spec/vcr/account/create-blank/1287167046.yml +3 -3
  10. data/spec/vcr/account/create-duplicate/1287167046.yml +8 -8
  11. data/spec/vcr/account/create-min/1287167046.yml +6 -6
  12. data/spec/vcr/account/create/1287167046.yml +6 -6
  13. data/spec/vcr/account/find/1287167046.yml +14 -14
  14. data/spec/vcr/account/list/1287167046.yml +101 -101
  15. data/spec/vcr/account/update/1287167046.yml +26 -26
  16. data/spec/vcr/billing/create/1286682213.yml +15 -15
  17. data/spec/vcr/billing/destroy/1286682213.yml +23 -23
  18. data/spec/vcr/billing/find/1286682213.yml +21 -21
  19. data/spec/vcr/billing/update/1286682213.yml +21 -21
  20. data/spec/vcr/charge/create/1286681273.yml +24 -24
  21. data/spec/vcr/charge/delete-uninvoiced/1287460783.yml +246 -0
  22. data/spec/vcr/charge/list-all/1286681273.yml +37 -37
  23. data/spec/vcr/charge/list-invoiced/1286681273.yml +62 -62
  24. data/spec/vcr/charge/list-pending/1286681273.yml +37 -37
  25. data/spec/vcr/charge/lookup/1286681273.yml +20 -20
  26. data/spec/vcr/credit/create/1286681343.yml +20 -20
  27. data/spec/vcr/credit/create/1287460732.yml +171 -0
  28. data/spec/vcr/credit/create/1287461340.yml +171 -0
  29. data/spec/vcr/credit/delete-invoiced/1287460732.yml +233 -0
  30. data/spec/vcr/credit/delete-invoiced/1287461340.yml +283 -0
  31. data/spec/vcr/credit/delete-uninvoiced/1287459796.yml +246 -0
  32. data/spec/vcr/credit/delete-uninvoiced/1287460732.yml +246 -0
  33. data/spec/vcr/credit/delete-uninvoiced/1287461340.yml +221 -0
  34. data/spec/vcr/credit/list/1286681343.yml +36 -36
  35. data/spec/vcr/credit/list/1287460732.yml +299 -0
  36. data/spec/vcr/credit/list/1287461340.yml +299 -0
  37. data/spec/vcr/credit/lookup/1286681343.yml +20 -20
  38. data/spec/vcr/credit/lookup/1287460732.yml +171 -0
  39. data/spec/vcr/credit/lookup/1287461340.yml +171 -0
  40. data/spec/vcr/invoice/create-no-charges/1287167121.yml +14 -14
  41. data/spec/vcr/invoice/create/1287167121.yml +36 -36
  42. data/spec/vcr/invoice/list/1287167121.yml +52 -52
  43. data/spec/vcr/invoice/lookup/1287167121.yml +38 -38
  44. data/spec/vcr/plan/all.yml +9 -9
  45. data/spec/vcr/plan/delete/1286677585.yml +16 -16
  46. data/spec/vcr/plan/find.yml +9 -9
  47. data/spec/vcr/plan/update.yml +9 -9
  48. data/spec/vcr/subscription/{cancel/1287442108.yml → cancel-with-code/1287455769.yml} +124 -65
  49. data/spec/vcr/subscription/cancel/{1287439446.yml → 1287455769.yml} +59 -59
  50. data/spec/vcr/subscription/change1/{1287442352.yml → 1287455769.yml} +56 -56
  51. data/spec/vcr/subscription/change2/{1287442352.yml → 1287455769.yml} +56 -56
  52. data/spec/vcr/subscription/create/{1287442352.yml → 1287455769.yml} +25 -25
  53. data/spec/vcr/subscription/find/{1287442108.yml → 1287455769.yml} +36 -36
  54. data/spec/vcr/subscription/{cancel/1287442352.yml → reactivate/1287455769.yml} +107 -66
  55. data/spec/vcr/subscription/refund-full/{1287442108.yml → 1287455769.yml} +50 -50
  56. data/spec/vcr/subscription/{refund-full/1287439446.yml → refund-none/1287455769.yml} +51 -51
  57. data/spec/vcr/subscription/refund-partial/{1287442108.yml → 1287455769.yml} +50 -50
  58. data/spec/vcr/transaction/all/1287186411.yml +80 -80
  59. data/spec/vcr/transaction/create-no-account/1287186411.yml +7 -7
  60. data/spec/vcr/transaction/create-with-account/1287186411.yml +17 -17
  61. data/spec/vcr/transaction/list-empty/1287186411.yml +17 -17
  62. data/spec/vcr/transaction/list-filled/1287186411.yml +41 -41
  63. data/spec/vcr/transaction/lookup/1287186411.yml +50 -50
  64. data/spec/vcr/transaction/refund/1287186411.yml +24 -24
  65. data/spec/vcr/transaction/void/1287186411.yml +60 -60
  66. metadata +67 -56
  67. data/spec/vcr/subscription/change1/1287439446.yml +0 -409
  68. data/spec/vcr/subscription/change1/1287442108.yml +0 -409
  69. data/spec/vcr/subscription/change2/1287439446.yml +0 -409
  70. data/spec/vcr/subscription/change2/1287442108.yml +0 -409
  71. data/spec/vcr/subscription/create/1287439446.yml +0 -224
  72. data/spec/vcr/subscription/create/1287442108.yml +0 -224
  73. data/spec/vcr/subscription/find/1287439446.yml +0 -283
  74. data/spec/vcr/subscription/find/1287442352.yml +0 -283
  75. data/spec/vcr/subscription/refund-full/1287442352.yml +0 -382
  76. data/spec/vcr/subscription/refund-none/1287439446.yml +0 -382
  77. data/spec/vcr/subscription/refund-none/1287442108.yml +0 -382
  78. data/spec/vcr/subscription/refund-none/1287442352.yml +0 -382
  79. data/spec/vcr/subscription/refund-partial/1287439446.yml +0 -382
  80. data/spec/vcr/subscription/refund-partial/1287442352.yml +0 -382
data/lib/recurly.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  require 'active_resource'
2
+ require 'active_support/deprecation'
2
3
  require 'cgi'
3
4
 
4
5
  require 'recurly/version'
@@ -17,5 +17,11 @@ module Recurly
17
17
  find(id, :params => { :account_code => account_code })
18
18
  end
19
19
 
20
+
21
+ def destroy
22
+ reload
23
+ return false if invoice_id.present?
24
+ super
25
+ end
20
26
  end
21
27
  end
@@ -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
- Subscription.delete(account_code)
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
- # Terminates the subscription immediately and processes a full or partial refund
17
- def refund(refund_type)
18
- self.class.refund(self.subscription_account_code)
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
@@ -1,3 +1,3 @@
1
1
  module Recurly #:nodoc
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.4"
3
3
  end
@@ -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 "cancel a subscription" do
90
- use_vcr_cassette "subscription/cancel/#{timestamp}"
92
+ describe "reactivate a subscription" do
93
+ use_vcr_cassette "subscription/reactivate/#{timestamp}"
91
94
 
92
- let(:account){ Factory.create_account("subscription-cancel-#{timestamp}") }
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
- # cancel subscription
98
- @subscription.cancel(account.account_code)
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
- it "should mark the subscription state as canceled" do
102
- Subscription.find(account.account_code).state.should == "canceled"
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
- it "should mark the subscription canceled_at" do
106
- Subscription.find(account.account_code).canceled_at.should_not be_nil
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
- - "637"
37
+ - "609"
38
38
  date:
39
- - Mon, 18 Oct 2010 22:05:03 GMT
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=db0ebca433101a60ad6cedd66480bae1170b30a910b2f1f7e6fc21ce657a4f1cd6c717d4e13ac31e65c0156e0c10cae3f574f7ab1fda16138b299a164a3af62f%3A%3A; domain=.recurly.com; path=/; secure; HttpOnly
45
+ - account_credentials=06392fef571b9ee7d9c1882c09b29b75d142d5d68c80899e1256844e7a9c5bd955c5f8a93fa63789d66c27a7895db5aea6b992b3a79fb4559463dedde850ec21%3A%3A; domain=.recurly.com; path=/; secure; HttpOnly
46
46
  - ""
47
- - _recurly_session=d9709767e3929d0807e9b4711fbf8c3e; domain=.recurly.com; path=/; Secure; HttpOnly
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>45509f9afde9465091a5c30460c2d744</hosted_login_token>
63
- <created_at type="datetime">2010-10-18T22:05:03Z</created_at>
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
- - "70"
92
+ - "40"
93
93
  date:
94
- - Mon, 18 Oct 2010 22:05:03 GMT
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=ac1f1fadb737e9e550d7c09e2d86df5a; domain=.recurly.com; path=/; Secure; HttpOnly
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
- - "\"a81b0cd3656007282ea4b05b6e97feec\""
125
+ - "\"8865b761556fb64c9b83e236b3459161\""
126
126
  connection:
127
127
  - close
128
128
  content-type:
129
129
  - application/xml; charset=utf-8
130
130
  x-runtime:
131
- - "74"
131
+ - "46"
132
132
  date:
133
- - Mon, 18 Oct 2010 22:05:04 GMT
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=38b580055cd8699f7c121600e1184d98; domain=.recurly.com; path=/; Secure; HttpOnly
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>45509f9afde9465091a5c30460c2d744</hosted_login_token>
155
- <created_at type="datetime">2010-10-18T22:05:03Z</created_at>
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
- - "19"
31
+ - "26"
32
32
  date:
33
- - Mon, 18 Oct 2010 22:05:05 GMT
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=c450df012ad4138c46363fae696f0923; domain=.recurly.com; path=/; Secure; HttpOnly
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
- - "609"
33
+ - "585"
34
34
  date:
35
- - Mon, 18 Oct 2010 22:05:06 GMT
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=4755d8b2ea8a11ed6f5dc2c496af8890aa143cc43f3825c24a9a9af9ccbebdab4a35ce34b617ab80cce7bf4dd4f51f8a45eee7566b90c8b50bbae7e3fda9387d%3A%3A; domain=.recurly.com; path=/; secure; HttpOnly
41
+ - account_credentials=4260726b9264f7ec172bf4da4f2db3238aab1a794ae10ee6c615263f423b5b34e5701217bbaae001329700ee2d1c8f9efd0f89b10a8b6ce86b009777adadccf3%3A%3A; domain=.recurly.com; path=/; secure; HttpOnly
42
42
  - ""
43
- - _recurly_session=cbf99b64bd47cb150a0acf0ab8450f0e; domain=.recurly.com; path=/; Secure; HttpOnly
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>c34fc059dd1e46cb877956b3efd59656</hosted_login_token>
59
- <created_at type="datetime">2010-10-18T22:05:06Z</created_at>
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
- - Mon, 18 Oct 2010 22:05:07 GMT
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=1b8b754a9997b44599939a56996ffdd7; domain=.recurly.com; path=/; Secure; HttpOnly
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
- - "582"
33
+ - "615"
34
34
  date:
35
- - Mon, 18 Oct 2010 22:04:34 GMT
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=3e6605b0a6e3038ebc4e757a359c346818ca21d8d0f28322d20d2daf0574255ab0f421fd14283f2b358bd27fa6863cbb9ed5ae93022526102c4268c6385546dd%3A%3A; domain=.recurly.com; path=/; secure; HttpOnly
41
+ - account_credentials=8f321b919e5358cac2a0b2e9f7c7f3fa3a1058933422ebaf0706d022014491c31a296f3e3b88cf02b024eba0169eba25d66accb8d4aa1c200fb38e03cb8c56d5%3A%3A; domain=.recurly.com; path=/; secure; HttpOnly
42
42
  - ""
43
- - _recurly_session=bd9a1732331f6a8c00369df453d3d32e; domain=.recurly.com; path=/; Secure; HttpOnly
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>4a9ad1a443b549c3b71b4a71320e7121</hosted_login_token>
59
- <created_at type="datetime">2010-10-18T22:04:34Z</created_at>
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
- - "586"
37
+ - "754"
38
38
  date:
39
- - Mon, 18 Oct 2010 22:04:33 GMT
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=4b90d853827136ef353b9dcfb847e25672d2dff70fc552c29ee6097b4804bf0f12f4779ec711f1252eb5a3ad8b82e9de3377ed95ae9e2f05143abc0c66c2b498%3A%3A; domain=.recurly.com; path=/; secure; HttpOnly
45
+ - account_credentials=57b5a4b3c88e2b41ee03482040df1eacbe4e76d0cabdce8c04f3293b1deaa69403545b07df03b6e9d1e6c099b62ee36bd7c0554ee6d62f96f60e613f78e3a126%3A%3A; domain=.recurly.com; path=/; secure; HttpOnly
46
46
  - ""
47
- - _recurly_session=0412918da6a71a7800cf996746929a26; domain=.recurly.com; path=/; Secure; HttpOnly
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>34c9183da60a419aa67fa0fb89dc6048</hosted_login_token>
63
- <created_at type="datetime">2010-10-18T22:04:33Z</created_at>
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