recurly 0.4.0 → 0.4.1

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 (65) hide show
  1. data/lib/patches/rails2/active_resource/connection.rb +10 -0
  2. data/lib/patches/{active_resource → rails3/active_resource}/connection.rb +0 -0
  3. data/lib/recurly.rb +7 -2
  4. data/lib/recurly/transparent.rb +4 -1
  5. data/lib/recurly/version.rb +1 -1
  6. data/spec/integration/transaction_spec.rb +5 -2
  7. data/spec/unit/transparent_spec.rb +59 -1
  8. data/spec/vcr/account/accept-language-account/1297746103.yml +8 -11
  9. data/spec/vcr/account/close/1297746103.yml +23 -30
  10. data/spec/vcr/account/create-blank/1297746103.yml +5 -7
  11. data/spec/vcr/account/create-duplicate/1297746103.yml +13 -18
  12. data/spec/vcr/account/create-min/1297746103.yml +8 -11
  13. data/spec/vcr/account/create/1297746103.yml +8 -11
  14. data/spec/vcr/account/find/1297746103.yml +22 -29
  15. data/spec/vcr/account/list/1297746103.yml +150 -196
  16. data/spec/vcr/account/update/1297746103.yml +37 -46
  17. data/spec/vcr/billing/create/1298594128.yml +24 -31
  18. data/spec/vcr/billing/destroy/1298594128.yml +35 -46
  19. data/spec/vcr/billing/find/1298594128.yml +32 -41
  20. data/spec/vcr/billing/update/1298594128.yml +32 -41
  21. data/spec/vcr/charge/create/1297746103.yml +36 -45
  22. data/spec/vcr/charge/delete-uninvoiced/1297746103.yml +46 -59
  23. data/spec/vcr/charge/list-all/1297746103.yml +51 -62
  24. data/spec/vcr/charge/list-invoiced/1297746103.yml +82 -97
  25. data/spec/vcr/charge/list-pending/1297746103.yml +51 -62
  26. data/spec/vcr/charge/lookup/1297746103.yml +28 -35
  27. data/spec/vcr/coupon/create/1299714521.yml +23 -30
  28. data/spec/vcr/coupon/destroy/1299714521.yml +26 -35
  29. data/spec/vcr/credit/create/1299714599.yml +28 -35
  30. data/spec/vcr/credit/delete/1299714599.yml +41 -52
  31. data/spec/vcr/credit/list/1299714599.yml +51 -62
  32. data/spec/vcr/credit/lookup/1299714599.yml +28 -35
  33. data/spec/vcr/invoice/create-no-charges/1297746103.yml +21 -28
  34. data/spec/vcr/invoice/create/1297746103.yml +50 -61
  35. data/spec/vcr/invoice/list/1297746103.yml +73 -88
  36. data/spec/vcr/invoice/lookup/1297746103.yml +52 -63
  37. data/spec/vcr/plan/all.yml +18 -24
  38. data/spec/vcr/plan/find.yml +18 -24
  39. data/spec/vcr/plan/update.yml +18 -24
  40. data/spec/vcr/subscription/addons/add/1297746103.yml +331 -38
  41. data/spec/vcr/subscription/addons/create/1297746103.yml +331 -38
  42. data/spec/vcr/subscription/addons/remove/1297746103.yml +331 -38
  43. data/spec/vcr/subscription/cancel-with-code/1297746103.yml +71 -86
  44. data/spec/vcr/subscription/cancel/1297746103.yml +59 -72
  45. data/spec/vcr/subscription/change1/1297746103.yml +55 -68
  46. data/spec/vcr/subscription/change2/1297746103.yml +55 -68
  47. data/spec/vcr/subscription/create/1297746103.yml +25 -32
  48. data/spec/vcr/subscription/find/1297746103.yml +35 -44
  49. data/spec/vcr/subscription/reactivate/1297746103.yml +64 -79
  50. data/spec/vcr/subscription/refund-full/1297746103.yml +52 -65
  51. data/spec/vcr/subscription/refund-none/1297746103.yml +52 -65
  52. data/spec/vcr/subscription/refund-partial/1297746103.yml +52 -65
  53. data/spec/vcr/transaction/all/1300473500.yml +387 -0
  54. data/spec/vcr/transaction/create-no-account/{1297746103.yml → 1300473500.yml} +19 -22
  55. data/spec/vcr/transaction/create-with-account/{1297746103.yml → 1300473500.yml} +55 -43
  56. data/spec/vcr/transaction/list-filled/1300473500.yml +603 -0
  57. data/spec/vcr/transaction/list-initial/{1297746103.yml → 1300473500.yml} +45 -52
  58. data/spec/vcr/transaction/lookup/1300473500.yml +561 -0
  59. data/spec/vcr/transaction/refund/{1297746103.yml → 1300473500.yml} +113 -41
  60. data/spec/vcr/transaction/void/1300473500.yml +620 -0
  61. metadata +21 -20
  62. data/spec/vcr/transaction/all/1297746103.yml +0 -389
  63. data/spec/vcr/transaction/list-filled/1297746103.yml +0 -213
  64. data/spec/vcr/transaction/lookup/1297746103.yml +0 -213
  65. data/spec/vcr/transaction/void/1297746103.yml +0 -213
@@ -0,0 +1,10 @@
1
+ module ActiveResource
2
+ class Connection
3
+
4
+ # Get the results without decoding
5
+ def get_raw(path, headers = {})
6
+ request(:get, path, build_request_headers(headers, :get))
7
+ end
8
+
9
+ end
10
+ end
data/lib/recurly.rb CHANGED
@@ -4,7 +4,12 @@ require 'cgi'
4
4
  require 'openssl'
5
5
  require 'addressable/uri'
6
6
 
7
- require 'patches/active_resource/connection'
7
+ # load ActiveResource patches
8
+ if defined?(::Rails::VERSION::MAJOR) and ::Rails::VERSION::MAJOR == 3
9
+ require 'patches/rails3/active_resource/connection'
10
+ elsif defined?(::Rails::VERSION::MAJOR) and ::Rails::VERSION::MAJOR == 2
11
+ require 'patches/rails2/active_resource/connection'
12
+ end
8
13
 
9
14
  require 'recurly/version'
10
15
  require 'recurly/exceptions'
@@ -128,4 +133,4 @@ module Recurly
128
133
  Thread.current[:recurly_accept_language] = accept_language
129
134
  end
130
135
  end
131
- end
136
+ end
@@ -129,6 +129,8 @@ module Recurly
129
129
  data.each do |key, val|
130
130
  if val.is_a?(Hash)
131
131
  data[key] = process_data(val)
132
+ elsif val.is_a?(String)
133
+ data[key] = val.to_s
132
134
  elsif val.is_a?(Enumerable)
133
135
  data[key] = val.map{|i| i.to_s}
134
136
  else
@@ -137,4 +139,5 @@ module Recurly
137
139
  end
138
140
  end
139
141
  end
140
- end
142
+ end
143
+
@@ -1,3 +1,3 @@
1
1
  module Recurly #:nodoc
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
@@ -65,7 +65,8 @@ module Recurly
65
65
  end
66
66
 
67
67
  it "should be in void state" do
68
- @transactions.first.amount_in_cents.should == 0
68
+ @transactions.first.amount_in_cents.should == 100
69
+ @transactions.first.status.should == 'void'
69
70
  end
70
71
  end
71
72
 
@@ -79,10 +80,12 @@ module Recurly
79
80
  Factory.create_transaction account.account_code, :amount_in_cents => 300, :description => "three"
80
81
 
81
82
  @successful_transactions = Transaction.list_for_account(account.account_code, :success)
83
+ @total_transactions = Transaction.list_for_account(account.account_code)
82
84
  end
83
85
 
84
86
  it "should return a list of transactions made on the account" do
85
- @successful_transactions.length.should == 4
87
+ @successful_transactions.length.should == 3
88
+ @total_transactions.length.should == 4
86
89
  end
87
90
 
88
91
  it "should also be available via Account#transactions" do
@@ -16,14 +16,37 @@ module Recurly
16
16
  Transparent.url(Action::UpdateBilling).should == "#{Recurly::Base.site}/transparent/#{Recurly.subdomain}/billing_info"
17
17
  Transparent.url(Action::CreateTransaction).should == "#{Recurly::Base.site}/transparent/#{Recurly.subdomain}/transaction"
18
18
  end
19
+
20
+ it "should equal api-sandbox for sandbox" do
21
+ Recurly.configure do |config|
22
+ config.environment = :sandbox
23
+ config.subdomain = 'testtest'
24
+ end
25
+ Transparent.url(Action::CreateSubscription).should == "https://api-sandbox.recurly.com/transparent/testtest/subscription"
26
+ Transparent.url(Action::UpdateBilling).should == "https://api-sandbox.recurly.com/transparent/testtest/billing_info"
27
+ Transparent.url(Action::CreateTransaction).should == "https://api-sandbox.recurly.com/transparent/testtest/transaction"
28
+ end
29
+
30
+ it "should equal api-production for sandbox" do
31
+ Recurly.configure do |config|
32
+ config.environment = :production
33
+ config.subdomain = 'testtest'
34
+ end
35
+ Transparent.url(Action::CreateSubscription).should == "https://api-production.recurly.com/transparent/testtest/subscription"
36
+ Transparent.url(Action::UpdateBilling).should == "https://api-production.recurly.com/transparent/testtest/billing_info"
37
+ Transparent.url(Action::CreateTransaction).should == "https://api-production.recurly.com/transparent/testtest/transaction"
38
+ end
19
39
  end
20
40
 
21
41
  describe ".encrypt_string" do
22
42
  it "should encrypt the data using the configured private key" do
43
+ Recurly.configure do |config|
44
+ config.private_key = '986bfa2bec61479ca560dbaaec345820'
45
+ end
23
46
  result = Transparent.encrypt_string("d00d")
24
47
 
25
48
  # hashed manually
26
- result.should == "938f381f79192f536cbe29a79db5c595b7a09379"
49
+ result.should == "790a4038fb9047889a767baadf8edc3e07b6e66b"
27
50
 
28
51
  result2 = Transparent.encrypt_string("d00d2")
29
52
  result2.should_not eq(result)
@@ -110,5 +133,40 @@ module Recurly
110
133
  end
111
134
  end
112
135
 
136
+ describe "#hidden_field" do
137
+ it "should return a string of a HTML hidden input element" do
138
+
139
+ transparent = Transparent.new({
140
+ :redirect_url => "http://example.com/",
141
+ :account => { :account_code => 'howdy' },
142
+ :value => "hello"
143
+ })
144
+
145
+ transparent.hidden_field.class.should eq(String)
146
+ end
147
+
148
+ it "should return a string of a HTML hidden input element" do
149
+ transparent = Transparent.new({
150
+ :redirect_url => "http://example.com/",
151
+ :account => { :account_code => '123' },
152
+ :amount => 10
153
+ })
154
+
155
+ transparent.hidden_field.class.should eq(String)
156
+ end
157
+
158
+ it "should return a string of a HTML hidden input element" do
159
+ transparent = Transparent.new({
160
+ :redirect_url => "http://example.com/",
161
+ :account => { :account_code => '123' },
162
+ :transaction => {
163
+ :amount => 10
164
+ }
165
+ })
166
+
167
+ transparent.hidden_field.class.should eq(String)
168
+ end
169
+ end
170
+
113
171
  end
114
172
  end
@@ -32,27 +32,24 @@
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-1297746103
41
41
  x-runtime:
42
- - "515"
42
+ - "433"
43
43
  content-type:
44
44
  - application/xml; charset=utf-8
45
45
  content-length:
46
46
  - "585"
47
- server:
48
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
49
- date:
50
- - Fri, 11 Mar 2011 18:47:28 GMT
47
+ set-cookie:
48
+ - _recurly_session=2646fb7dc231fbc50507e35872ded86d; domain=.recurly.local; path=/; HttpOnly
51
49
  connection:
52
50
  - close
53
- set-cookie:
54
- - account_credentials=d4fc51be51177aace2e3f530412ea425f760549c2083c14bbe9af0b5080cd66188dbb71bf7ffc1ca96d400c693d152db3f53a3deef4848f44afd42fe45dd4733%3A%3A; domain=.recurly.local; path=/
55
- - _recurly_session=b8385e736e2e0c446b6b99f1e68c415d; domain=.recurly.local; path=/; HttpOnly
51
+ server:
52
+ - thin 1.2.7 codename No Hup
56
53
  body: |
57
54
  <?xml version="1.0" encoding="UTF-8"?>
58
55
  <account>
@@ -65,8 +62,8 @@
65
62
  <company_name>Recurly Ruby Gem</company_name>
66
63
  <balance_in_cents type="integer">0</balance_in_cents>
67
64
  <closed type="boolean">false</closed>
68
- <hosted_login_token>d7d5841da4264edaa467e01335407311</hosted_login_token>
69
- <created_at type="datetime">2011-03-11T18:47:28Z</created_at>
65
+ <hosted_login_token>e38a18fa5fd94ef4a2df36503bc62111</hosted_login_token>
66
+ <created_at type="datetime">2011-03-18T18:47:35Z</created_at>
70
67
  <state>active</state>
71
68
  </account>
72
69
 
@@ -32,27 +32,24 @@
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-1297746103
41
41
  x-runtime:
42
- - "378"
42
+ - "347"
43
43
  content-type:
44
44
  - application/xml; charset=utf-8
45
45
  content-length:
46
46
  - "581"
47
- server:
48
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
49
- date:
50
- - Fri, 11 Mar 2011 18:47:16 GMT
47
+ set-cookie:
48
+ - _recurly_session=feaecccc5b88d662541ee1e1c65c0b66; domain=.recurly.local; path=/; HttpOnly
51
49
  connection:
52
50
  - close
53
- set-cookie:
54
- - account_credentials=132e508bc3ed7d75b50b4d5d55a1ecb0f335784f2dd4e74c0532be92c81f3173bd66e27469e417dcf1b4b609844532ca32711edeca80ba96acebfc9a63c39b66%3A%3A; domain=.recurly.local; path=/
55
- - _recurly_session=017dc9de9ee713b550c96ec1e1d36355; domain=.recurly.local; path=/; HttpOnly
51
+ server:
52
+ - thin 1.2.7 codename No Hup
56
53
  body: |
57
54
  <?xml version="1.0" encoding="UTF-8"?>
58
55
  <account>
@@ -65,8 +62,8 @@
65
62
  <company_name>Recurly Ruby Gem</company_name>
66
63
  <balance_in_cents type="integer">0</balance_in_cents>
67
64
  <closed type="boolean">false</closed>
68
- <hosted_login_token>45503dd9dca646499d29fc6522c3caf9</hosted_login_token>
69
- <created_at type="datetime">2011-03-11T18:47:16Z</created_at>
65
+ <hosted_login_token>1c795d69f9e5437883fd99cc5a915d19</hosted_login_token>
66
+ <created_at type="datetime">2011-03-18T18:47:23Z</created_at>
70
67
  <state>active</state>
71
68
  </account>
72
69
 
@@ -88,24 +85,22 @@
88
85
  response: !ruby/struct:VCR::Response
89
86
  status: !ruby/struct:VCR::ResponseStatus
90
87
  code: 200
91
- message: "OK "
88
+ message: OK
92
89
  headers:
93
90
  cache-control:
94
91
  - no-cache
95
92
  x-runtime:
96
- - "321"
93
+ - "481"
97
94
  content-type:
98
95
  - application/xml; charset=utf-8
99
96
  content-length:
100
97
  - "1"
101
- server:
102
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
103
- date:
104
- - Fri, 11 Mar 2011 18:47:18 GMT
98
+ set-cookie:
99
+ - _recurly_session=217d1e05f1a8ea27ddfd1f6dc856d77b; domain=.recurly.local; path=/; HttpOnly
105
100
  connection:
106
101
  - close
107
- set-cookie:
108
- - _recurly_session=0993d29250a0117917de948d56b4ec48; domain=.recurly.local; path=/; HttpOnly
102
+ server:
103
+ - thin 1.2.7 codename No Hup
109
104
  body: " "
110
105
  http_version: "1.1"
111
106
  - !ruby/struct:VCR::HTTPInteraction
@@ -127,26 +122,24 @@
127
122
  response: !ruby/struct:VCR::Response
128
123
  status: !ruby/struct:VCR::ResponseStatus
129
124
  code: 200
130
- message: "OK "
125
+ message: OK
131
126
  headers:
132
127
  x-runtime:
133
- - "247"
128
+ - "293"
134
129
  content-type:
135
130
  - application/xml; charset=utf-8
136
131
  etag:
137
- - "\"5a863b1aea60da430de63a76ffdb8aff\""
132
+ - "\"2a99494260c548f181eba47d258df6c2\""
138
133
  cache-control:
139
134
  - private, max-age=0, must-revalidate
140
135
  content-length:
141
136
  - "580"
142
- server:
143
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
144
- date:
145
- - Fri, 11 Mar 2011 18:47:20 GMT
137
+ set-cookie:
138
+ - _recurly_session=d093e4e66b3ca4d1dde043580ada11c2; domain=.recurly.local; path=/; HttpOnly
146
139
  connection:
147
140
  - close
148
- set-cookie:
149
- - _recurly_session=c373ff7975bc328866ef41150b11a1e1; domain=.recurly.local; path=/; HttpOnly
141
+ server:
142
+ - thin 1.2.7 codename No Hup
150
143
  body: |
151
144
  <?xml version="1.0" encoding="UTF-8"?>
152
145
  <account>
@@ -159,8 +152,8 @@
159
152
  <company_name>Recurly Ruby Gem</company_name>
160
153
  <balance_in_cents type="integer">0</balance_in_cents>
161
154
  <closed type="boolean">true</closed>
162
- <hosted_login_token>45503dd9dca646499d29fc6522c3caf9</hosted_login_token>
163
- <created_at type="datetime">2011-03-11T18:47:16Z</created_at>
155
+ <hosted_login_token>1c795d69f9e5437883fd99cc5a915d19</hosted_login_token>
156
+ <created_at type="datetime">2011-03-18T18:47:23Z</created_at>
164
157
  <state>closed</state>
165
158
  </account>
166
159
 
@@ -33,19 +33,17 @@
33
33
  cache-control:
34
34
  - no-cache
35
35
  x-runtime:
36
- - "364"
36
+ - "371"
37
37
  content-type:
38
38
  - application/xml; charset=utf-8
39
39
  content-length:
40
40
  - "186"
41
- server:
42
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
43
- date:
44
- - Fri, 11 Mar 2011 18:47:22 GMT
41
+ set-cookie:
42
+ - _recurly_session=bd077a070421d681c7485e8eef00715d; domain=.recurly.local; path=/; HttpOnly
45
43
  connection:
46
44
  - close
47
- set-cookie:
48
- - _recurly_session=b91cf21d0aa96326375445710ef2f8af; domain=.recurly.local; path=/; HttpOnly
45
+ server:
46
+ - thin 1.2.7 codename No Hup
49
47
  body: |
50
48
  <?xml version="1.0" encoding="UTF-8"?>
51
49
  <errors>
@@ -28,27 +28,24 @@
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
- - "387"
38
+ - "384"
39
39
  content-type:
40
40
  - application/xml; charset=utf-8
41
41
  content-length:
42
42
  - "520"
43
- server:
44
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
45
- date:
46
- - Fri, 11 Mar 2011 18:47:24 GMT
43
+ set-cookie:
44
+ - _recurly_session=23879cef56d0b271a81ec227a113a1a0; domain=.recurly.local; path=/; HttpOnly
47
45
  connection:
48
46
  - close
49
- set-cookie:
50
- - account_credentials=b664123bc55a78c30adefd77ead47380b5dfd751b045c31a71bef135c1e89ee2e50ba23d729343265442c5700855b890a61e92cb7e1d34fc2d4b56f738a09bc6%3A%3A; domain=.recurly.local; path=/
51
- - _recurly_session=4bfcbd106c4f8f9a8722123aaeee014d; domain=.recurly.local; path=/; HttpOnly
47
+ server:
48
+ - thin 1.2.7 codename No Hup
52
49
  body: |
53
50
  <?xml version="1.0" encoding="UTF-8"?>
54
51
  <account>
@@ -61,8 +58,8 @@
61
58
  <company_name></company_name>
62
59
  <balance_in_cents type="integer">0</balance_in_cents>
63
60
  <closed type="boolean">false</closed>
64
- <hosted_login_token>ee9df1b236504ebfa4b3efb716b13cb0</hosted_login_token>
65
- <created_at type="datetime">2011-03-11T18:47:23Z</created_at>
61
+ <hosted_login_token>23bcf23b07e24395a3555ce974c14dda</hosted_login_token>
62
+ <created_at type="datetime">2011-03-18T18:47:31Z</created_at>
66
63
  <state>active</state>
67
64
  </account>
68
65
 
@@ -101,19 +98,17 @@
101
98
  cache-control:
102
99
  - no-cache
103
100
  x-runtime:
104
- - "349"
101
+ - "316"
105
102
  content-type:
106
103
  - application/xml; charset=utf-8
107
104
  content-length:
108
105
  - "132"
109
- server:
110
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
111
- date:
112
- - Fri, 11 Mar 2011 18:47:26 GMT
106
+ set-cookie:
107
+ - _recurly_session=9c5a5f7417e1b30d65a610ec081797ff; domain=.recurly.local; path=/; HttpOnly
113
108
  connection:
114
109
  - close
115
- set-cookie:
116
- - _recurly_session=fbf14194474f77a451b5c5b85dfec93e; domain=.recurly.local; path=/; HttpOnly
110
+ server:
111
+ - thin 1.2.7 codename No Hup
117
112
  body: |
118
113
  <?xml version="1.0" encoding="UTF-8"?>
119
114
  <errors>
@@ -28,27 +28,24 @@
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/d00d-1297746103
37
37
  x-runtime:
38
- - "341"
38
+ - "347"
39
39
  content-type:
40
40
  - application/xml; charset=utf-8
41
41
  content-length:
42
42
  - "522"
43
- server:
44
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
45
- date:
46
- - Fri, 11 Mar 2011 18:45:46 GMT
43
+ set-cookie:
44
+ - _recurly_session=2050d2c84f769b6781b8c218e3a393d4; domain=.recurly.local; path=/; HttpOnly
47
45
  connection:
48
46
  - close
49
- set-cookie:
50
- - account_credentials=e2fd86ca4d01f1dade5f277215c391bf5abecb34e117c47d4a6d0d92073c30627c628b94b12d5f8d3893deddfd0128dd053792ba6e565a986886b233cbd11cc4%3A%3A; domain=.recurly.local; path=/
51
- - _recurly_session=50b68c0d6209378a114e224a005ecf38; domain=.recurly.local; path=/; HttpOnly
47
+ server:
48
+ - thin 1.2.7 codename No Hup
52
49
  body: |
53
50
  <?xml version="1.0" encoding="UTF-8"?>
54
51
  <account>
@@ -61,8 +58,8 @@
61
58
  <company_name></company_name>
62
59
  <balance_in_cents type="integer">0</balance_in_cents>
63
60
  <closed type="boolean">false</closed>
64
- <hosted_login_token>65fd765641144b338700054678727154</hosted_login_token>
65
- <created_at type="datetime">2011-03-11T18:45:46Z</created_at>
61
+ <hosted_login_token>df2b753ecc344ddda3d8006e5dc36d4e</hosted_login_token>
62
+ <created_at type="datetime">2011-03-18T18:45:59Z</created_at>
66
63
  <state>active</state>
67
64
  </account>
68
65