ruby-ecomm-client 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. data/.gitignore +22 -0
  2. data/.ruby-version +1 -0
  3. data/Gemfile +4 -0
  4. data/LICENSE.txt +22 -0
  5. data/README.md +52 -0
  6. data/Rakefile +12 -0
  7. data/fixtures/vcr_cassettes/account_info/default.yml +42 -0
  8. data/fixtures/vcr_cassettes/account_info/unknown/resource_id.yml +42 -0
  9. data/fixtures/vcr_cassettes/account_info/unknown/resource_type.yml +42 -0
  10. data/fixtures/vcr_cassettes/account_info/unknown/source_tree_id.yml +42 -0
  11. data/fixtures/vcr_cassettes/downgrade/default.yml +42 -0
  12. data/fixtures/vcr_cassettes/downgrade/noop.yml +42 -0
  13. data/fixtures/vcr_cassettes/downgrade/unknown/resource_id.yml +42 -0
  14. data/fixtures/vcr_cassettes/downgrade/unknown/resource_type.yml +42 -0
  15. data/fixtures/vcr_cassettes/downgrade/unknown/target_tree_id.yml +42 -0
  16. data/fixtures/vcr_cassettes/express_checkout/configured.yml +40 -0
  17. data/fixtures/vcr_cassettes/express_checkout/unknown.yml +40 -0
  18. data/fixtures/vcr_cassettes/transitions/default/unknown/source_tree_id.yml +42 -0
  19. data/fixtures/vcr_cassettes/transitions/many.yml +42 -0
  20. data/fixtures/vcr_cassettes/transitions/one.yml +42 -0
  21. data/fixtures/vcr_cassettes/transitions/unknown/source_tree_id.yml +42 -0
  22. data/fixtures/vcr_cassettes/upgrade/default.yml +42 -0
  23. data/fixtures/vcr_cassettes/upgrade/noop.yml +42 -0
  24. data/fixtures/vcr_cassettes/upgrade/unknown/resource_id.yml +42 -0
  25. data/fixtures/vcr_cassettes/upgrade/unknown/resource_type.yml +42 -0
  26. data/fixtures/vcr_cassettes/upgrade/unknown/target_tree_id.yml +42 -0
  27. data/lib/ruby-ecomm-client.rb +10 -0
  28. data/lib/ruby-ecomm-client/client.rb +148 -0
  29. data/lib/ruby-ecomm-client/converter.rb +45 -0
  30. data/lib/ruby-ecomm-client/error.rb +12 -0
  31. data/lib/ruby-ecomm-client/version.rb +3 -0
  32. data/lib/ruby-ecomm-client/wsdl/manager.wsdl +296 -0
  33. data/lib/ruby-ecomm-client/wsdl/profile.wsdl +66 -0
  34. data/lib/ruby-ecomm-client/wsdl/purchase.wsdl +74 -0
  35. data/ruby-ecomm-client.gemspec +30 -0
  36. data/script/cibuild +10 -0
  37. data/spec/ruby-ecomm-client/client_spec.rb +297 -0
  38. data/spec/ruby-ecomm-client/converter_spec.rb +96 -0
  39. data/spec/ruby-ecomm-client/error_spec.rb +39 -0
  40. data/spec/spec_helper.rb +21 -0
  41. metadata +237 -0
data/.gitignore ADDED
@@ -0,0 +1,22 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .idea
6
+ config/client.crt
7
+ config/client.key
8
+ coverage
9
+ InstalledFiles
10
+ Gemfile.lock
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
18
+
19
+ # YARD artifacts
20
+ .yardoc
21
+ _yardoc
22
+ doc/
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ ree-1.8.7-2012.02
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in ruby-ecomm-client.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2014 Shelby Sanders
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,52 @@
1
+ # Ruby-Ecomm-Client
2
+
3
+ Easy access to the e-commerce web services via Ruby
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ gem 'ruby-ecomm-client'
10
+
11
+ And then execute:
12
+
13
+ $ bundle
14
+
15
+ Or install it yourself as:
16
+
17
+ $ gem install ruby-ecomm-client
18
+
19
+ ## Usage
20
+
21
+ ```
22
+ shopper_id = '???'
23
+ resource_type = 'outright'
24
+ resource_id = '???' #aka account_uid
25
+ client = RubyEcommClient::Client.new(shopper_id, resource_type, resource_id)
26
+
27
+ client.express_checkout?
28
+ => false
29
+
30
+ client.account_info
31
+ => { :product_id => '2701', :tree_id => '1735', :is_past_due => false, :is_free => false }
32
+
33
+ source_tree_id = 0
34
+ client.transitions(source_tree_id)
35
+ => [ { :node_name => 'Outright - Monthly Plus', :product_id => '2697', :tree_id => '1734', :is_free => 'False' } ]
36
+
37
+ target_tree_id = ???
38
+ client.upgrade(target_tree_id)
39
+ => 2
40
+
41
+ target_tree_id = ???
42
+ client.downgrade(target_tree_id)
43
+ => 2
44
+ ```
45
+
46
+ ## Contributing
47
+
48
+ 1. Fork it
49
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
50
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
51
+ 4. Push to the branch (`git push origin my-new-feature`)
52
+ 5. Create new Pull Request
data/Rakefile ADDED
@@ -0,0 +1,12 @@
1
+ require 'bundler/gem_tasks'
2
+ require 'rake'
3
+ require 'rake/testtask'
4
+ require 'rspec/core/rake_task'
5
+ require 'ci/reporter/rake/rspec'
6
+
7
+ task :default => :spec
8
+
9
+ RSpec::Core::RakeTask.new(:spec => ['ci:setup:rspec']) do |t|
10
+ t.pattern = 'spec/**/*_spec.rb'
11
+ end
12
+
@@ -0,0 +1,42 @@
1
+ ---
2
+ recorded_with: VCR 2.8.0
3
+ http_interactions:
4
+ - request:
5
+ method: post
6
+ uri: http://bonsai.dev.glbt1.gdg/bonsai/bonsaimanager/service.asmx
7
+ body:
8
+ string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tns="#Bonsai"><env:Body><tns:GetAccountXml><tns:ResourceType>outright</tns:ResourceType><tns:ResourceID>e1dd6ab9-b072-11e3-9aad-005056953ce3</tns:ResourceID><tns:TreeID>0</tns:TreeID><tns:PrivateLabelID>1</tns:PrivateLabelID><tns:IDType>ORION</tns:IDType></tns:GetAccountXml></env:Body></env:Envelope>
9
+ headers:
10
+ soapaction:
11
+ - "\"#Bonsai/GetAccountXml\""
12
+ accept:
13
+ - "*/*"
14
+ content-length:
15
+ - "512"
16
+ content-type:
17
+ - text/xml;charset=UTF-8
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ server:
24
+ - Microsoft-IIS/7.0
25
+ cache-control:
26
+ - private, max-age=0
27
+ x-powered-by:
28
+ - ASP.NET
29
+ connection:
30
+ - close
31
+ date:
32
+ - Wed, 26 Mar 2014 03:22:14 GMT
33
+ content-length:
34
+ - "1626"
35
+ x-aspnet-version:
36
+ - 4.0.30319
37
+ content-type:
38
+ - text/xml; charset=utf-8
39
+ body:
40
+ string: <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><GetAccountXmlResponse xmlns="#Bonsai"><ResultCode>0</ResultCode><AccountXml><Bonsai><Bonsai PrivateLabelID="1" ResourceID="e1dd6ab9-b072-11e3-9aad-005056953ce3" IsPastDue="False" IsFree="False" CurrentTreeID="1735" CurrentUnifiedProductID="2701" xmlns=""><Tree TreeID="1735" NodeID="1735" UnifiedProductID="2701" IsFree="False"><Transition NodeName="Outright - Monthly Plus" UnifiedProductID="2697" TreeID="1734" IsFree="False" NodeID="1734" /><Transition NodeName="Outright - Annual Plus 1 year" UnifiedProductID="2699" TreeID="1736" IsFree="False" NodeID="1736" /><Transition NodeName="Outright - Annual Plus 2 years" UnifiedProductID="2703" TreeID="1737" IsFree="False" NodeID="1737" /><Transition NodeName="Outright - Annual Plus 3 years" UnifiedProductID="2705" TreeID="1738" IsFree="False" NodeID="1738" /><Transition NodeName="Outright - Annual Plus 4 years" UnifiedProductID="2707" TreeID="1739" IsFree="False" NodeID="1739" /><Transition NodeName="Outright - Annual Plus 5 years" UnifiedProductID="2709" TreeID="1740" IsFree="False" NodeID="1740" /><FilteredTransitions /><Prepaid><Item Name="Prepaid Previous Tax - Outright" CategoryName="Prepaid Previous Tax" CategoryID="49" MinQty="1" MaxQty="-1" MinDuration="1" MaxDuration="-1" IsQuantityBased="False" Increment="1" UnifiedProductID="2711" /></Prepaid></Tree></Bonsai></Bonsai></AccountXml></GetAccountXmlResponse></soap:Body></soap:Envelope>
41
+ http_version: "1.1"
42
+ recorded_at: Wed, 26 Mar 2014 03:22:14 GMT
@@ -0,0 +1,42 @@
1
+ ---
2
+ recorded_with: VCR 2.8.0
3
+ http_interactions:
4
+ - request:
5
+ method: post
6
+ uri: http://bonsai.dev.glbt1.gdg/bonsai/bonsaimanager/service.asmx
7
+ body:
8
+ string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tns="#Bonsai"><env:Body><tns:GetAccountXml><tns:ResourceType>outright</tns:ResourceType><tns:ResourceID>unknown</tns:ResourceID><tns:TreeID>0</tns:TreeID><tns:PrivateLabelID>1</tns:PrivateLabelID><tns:IDType>ORION</tns:IDType></tns:GetAccountXml></env:Body></env:Envelope>
9
+ headers:
10
+ soapaction:
11
+ - "\"#Bonsai/GetAccountXml\""
12
+ accept:
13
+ - "*/*"
14
+ content-length:
15
+ - "483"
16
+ content-type:
17
+ - text/xml;charset=UTF-8
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ server:
24
+ - Microsoft-IIS/7.0
25
+ cache-control:
26
+ - private, max-age=0
27
+ x-powered-by:
28
+ - ASP.NET
29
+ connection:
30
+ - close
31
+ date:
32
+ - Wed, 26 Mar 2014 03:22:14 GMT
33
+ content-length:
34
+ - "338"
35
+ x-aspnet-version:
36
+ - 4.0.30319
37
+ content-type:
38
+ - text/xml; charset=utf-8
39
+ body:
40
+ string: <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><GetAccountXmlResponse xmlns="#Bonsai"><ResultCode>-304</ResultCode></GetAccountXmlResponse></soap:Body></soap:Envelope>
41
+ http_version: "1.1"
42
+ recorded_at: Wed, 26 Mar 2014 03:22:15 GMT
@@ -0,0 +1,42 @@
1
+ ---
2
+ recorded_with: VCR 2.8.0
3
+ http_interactions:
4
+ - request:
5
+ method: post
6
+ uri: http://bonsai.dev.glbt1.gdg/bonsai/bonsaimanager/service.asmx
7
+ body:
8
+ string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tns="#Bonsai"><env:Body><tns:GetAccountXml><tns:ResourceType>flugel</tns:ResourceType><tns:ResourceID>e1dd6ab9-b072-11e3-9aad-005056953ce3</tns:ResourceID><tns:TreeID>0</tns:TreeID><tns:PrivateLabelID>1</tns:PrivateLabelID><tns:IDType>ORION</tns:IDType></tns:GetAccountXml></env:Body></env:Envelope>
9
+ headers:
10
+ soapaction:
11
+ - "\"#Bonsai/GetAccountXml\""
12
+ accept:
13
+ - "*/*"
14
+ content-length:
15
+ - "510"
16
+ content-type:
17
+ - text/xml;charset=UTF-8
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ server:
24
+ - Microsoft-IIS/7.0
25
+ cache-control:
26
+ - private, max-age=0
27
+ x-powered-by:
28
+ - ASP.NET
29
+ connection:
30
+ - close
31
+ date:
32
+ - Wed, 26 Mar 2014 03:22:14 GMT
33
+ content-length:
34
+ - "338"
35
+ x-aspnet-version:
36
+ - 4.0.30319
37
+ content-type:
38
+ - text/xml; charset=utf-8
39
+ body:
40
+ string: <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><GetAccountXmlResponse xmlns="#Bonsai"><ResultCode>-100</ResultCode></GetAccountXmlResponse></soap:Body></soap:Envelope>
41
+ http_version: "1.1"
42
+ recorded_at: Wed, 26 Mar 2014 03:22:14 GMT
@@ -0,0 +1,42 @@
1
+ ---
2
+ recorded_with: VCR 2.8.0
3
+ http_interactions:
4
+ - request:
5
+ method: post
6
+ uri: http://bonsai.dev.glbt1.gdg/bonsai/bonsaimanager/service.asmx
7
+ body:
8
+ string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tns="#Bonsai"><env:Body><tns:GetAccountXml><tns:ResourceType>outright</tns:ResourceType><tns:ResourceID>e1dd6ab9-b072-11e3-9aad-005056953ce3</tns:ResourceID><tns:TreeID>90909</tns:TreeID><tns:PrivateLabelID>1</tns:PrivateLabelID><tns:IDType>ORION</tns:IDType></tns:GetAccountXml></env:Body></env:Envelope>
9
+ headers:
10
+ soapaction:
11
+ - "\"#Bonsai/GetAccountXml\""
12
+ accept:
13
+ - "*/*"
14
+ content-length:
15
+ - "516"
16
+ content-type:
17
+ - text/xml;charset=UTF-8
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ server:
24
+ - Microsoft-IIS/7.0
25
+ cache-control:
26
+ - private, max-age=0
27
+ x-powered-by:
28
+ - ASP.NET
29
+ connection:
30
+ - close
31
+ date:
32
+ - Wed, 26 Mar 2014 03:22:14 GMT
33
+ content-length:
34
+ - "338"
35
+ x-aspnet-version:
36
+ - 4.0.30319
37
+ content-type:
38
+ - text/xml; charset=utf-8
39
+ body:
40
+ string: <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><GetAccountXmlResponse xmlns="#Bonsai"><ResultCode>-999</ResultCode></GetAccountXmlResponse></soap:Body></soap:Envelope>
41
+ http_version: "1.1"
42
+ recorded_at: Wed, 26 Mar 2014 03:22:15 GMT
@@ -0,0 +1,42 @@
1
+ ---
2
+ recorded_with: VCR 2.8.0
3
+ http_interactions:
4
+ - request:
5
+ method: post
6
+ uri: http://bonsai.dev.glbt1.gdg/bonsai/bonsaimanager/service.asmx
7
+ body:
8
+ string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:tns="#Bonsai" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Body><tns:ChangeAccountRequest><tns:ResourceType>outright</tns:ResourceType><tns:RenewalPFID>0</tns:RenewalPFID><tns:ItemRequestXml>&lt;itemRequest/&gt;</tns:ItemRequestXml><tns:ResourceID>e1dd6ab9-b072-11e3-9aad-005056953ce3</tns:ResourceID><tns:AccountChangeXml>&lt;ClientChange TreeID='1734' ShopperID='255528'/&gt;</tns:AccountChangeXml><tns:IDType>ORION</tns:IDType><tns:RenewalPeriods>0</tns:RenewalPeriods></tns:ChangeAccountRequest></env:Body></env:Envelope>
9
+ headers:
10
+ content-length:
11
+ - "696"
12
+ soapaction:
13
+ - "\"#Bonsai/ChangeAccountRequest\""
14
+ content-type:
15
+ - text/xml;charset=UTF-8
16
+ accept:
17
+ - "*/*"
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ connection:
24
+ - close
25
+ x-powered-by:
26
+ - ASP.NET
27
+ x-aspnet-version:
28
+ - 4.0.30319
29
+ content-length:
30
+ - "407"
31
+ server:
32
+ - Microsoft-IIS/7.0
33
+ cache-control:
34
+ - private, max-age=0
35
+ content-type:
36
+ - text/xml; charset=utf-8
37
+ date:
38
+ - Wed, 26 Mar 2014 03:24:12 GMT
39
+ body:
40
+ string: <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><ChangeAccountRequestResponse xmlns="#Bonsai"><ChangeAccountRequestResult>2</ChangeAccountRequestResult><ResultCode>0</ResultCode></ChangeAccountRequestResponse></soap:Body></soap:Envelope>
41
+ http_version: "1.1"
42
+ recorded_at: Wed, 26 Mar 2014 03:24:13 GMT
@@ -0,0 +1,42 @@
1
+ ---
2
+ recorded_with: VCR 2.8.0
3
+ http_interactions:
4
+ - request:
5
+ method: post
6
+ uri: http://bonsai.dev.glbt1.gdg/bonsai/bonsaimanager/service.asmx
7
+ body:
8
+ string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="#Bonsai"><env:Body><tns:ChangeAccountRequest><tns:RenewalPFID>0</tns:RenewalPFID><tns:IDType>ORION</tns:IDType><tns:ItemRequestXml>&lt;itemRequest/&gt;</tns:ItemRequestXml><tns:AccountChangeXml>&lt;ClientChange TreeID='1735' ShopperID='255528'/&gt;</tns:AccountChangeXml><tns:RenewalPeriods>0</tns:RenewalPeriods><tns:ResourceType>outright</tns:ResourceType><tns:ResourceID>e1dd6ab9-b072-11e3-9aad-005056953ce3</tns:ResourceID></tns:ChangeAccountRequest></env:Body></env:Envelope>
9
+ headers:
10
+ soapaction:
11
+ - "\"#Bonsai/ChangeAccountRequest\""
12
+ accept:
13
+ - "*/*"
14
+ content-length:
15
+ - "696"
16
+ content-type:
17
+ - text/xml;charset=UTF-8
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ x-aspnet-version:
24
+ - 4.0.30319
25
+ server:
26
+ - Microsoft-IIS/7.0
27
+ connection:
28
+ - close
29
+ date:
30
+ - Wed, 26 Mar 2014 03:26:26 GMT
31
+ cache-control:
32
+ - private, max-age=0
33
+ content-length:
34
+ - "407"
35
+ x-powered-by:
36
+ - ASP.NET
37
+ content-type:
38
+ - text/xml; charset=utf-8
39
+ body:
40
+ string: <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><ChangeAccountRequestResponse xmlns="#Bonsai"><ChangeAccountRequestResult>1</ChangeAccountRequestResult><ResultCode>0</ResultCode></ChangeAccountRequestResponse></soap:Body></soap:Envelope>
41
+ http_version: "1.1"
42
+ recorded_at: Wed, 26 Mar 2014 03:26:26 GMT
@@ -0,0 +1,42 @@
1
+ ---
2
+ recorded_with: VCR 2.8.0
3
+ http_interactions:
4
+ - request:
5
+ method: post
6
+ uri: http://bonsai.dev.glbt1.gdg/bonsai/bonsaimanager/service.asmx
7
+ body:
8
+ string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="#Bonsai"><env:Body><tns:ChangeAccountRequest><tns:RenewalPFID>0</tns:RenewalPFID><tns:IDType>ORION</tns:IDType><tns:ItemRequestXml>&lt;itemRequest/&gt;</tns:ItemRequestXml><tns:AccountChangeXml>&lt;ClientChange TreeID='1734' ShopperID='255528'/&gt;</tns:AccountChangeXml><tns:RenewalPeriods>0</tns:RenewalPeriods><tns:ResourceType>outright</tns:ResourceType><tns:ResourceID>unknown</tns:ResourceID></tns:ChangeAccountRequest></env:Body></env:Envelope>
9
+ headers:
10
+ soapaction:
11
+ - "\"#Bonsai/ChangeAccountRequest\""
12
+ accept:
13
+ - "*/*"
14
+ content-length:
15
+ - "667"
16
+ content-type:
17
+ - text/xml;charset=UTF-8
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ x-aspnet-version:
24
+ - 4.0.30319
25
+ server:
26
+ - Microsoft-IIS/7.0
27
+ connection:
28
+ - close
29
+ date:
30
+ - Wed, 26 Mar 2014 03:26:25 GMT
31
+ cache-control:
32
+ - private, max-age=0
33
+ content-length:
34
+ - "411"
35
+ x-powered-by:
36
+ - ASP.NET
37
+ content-type:
38
+ - text/xml; charset=utf-8
39
+ body:
40
+ string: <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><ChangeAccountRequestResponse xmlns="#Bonsai"><ChangeAccountRequestResult>-1</ChangeAccountRequestResult><ResultCode>-304</ResultCode></ChangeAccountRequestResponse></soap:Body></soap:Envelope>
41
+ http_version: "1.1"
42
+ recorded_at: Wed, 26 Mar 2014 03:26:25 GMT
@@ -0,0 +1,42 @@
1
+ ---
2
+ recorded_with: VCR 2.8.0
3
+ http_interactions:
4
+ - request:
5
+ method: post
6
+ uri: http://bonsai.dev.glbt1.gdg/bonsai/bonsaimanager/service.asmx
7
+ body:
8
+ string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="#Bonsai"><env:Body><tns:ChangeAccountRequest><tns:RenewalPFID>0</tns:RenewalPFID><tns:IDType>ORION</tns:IDType><tns:ItemRequestXml>&lt;itemRequest/&gt;</tns:ItemRequestXml><tns:AccountChangeXml>&lt;ClientChange TreeID='1734' ShopperID='255528'/&gt;</tns:AccountChangeXml><tns:RenewalPeriods>0</tns:RenewalPeriods><tns:ResourceType>flugel</tns:ResourceType><tns:ResourceID>e1dd6ab9-b072-11e3-9aad-005056953ce3</tns:ResourceID></tns:ChangeAccountRequest></env:Body></env:Envelope>
9
+ headers:
10
+ soapaction:
11
+ - "\"#Bonsai/ChangeAccountRequest\""
12
+ accept:
13
+ - "*/*"
14
+ content-length:
15
+ - "694"
16
+ content-type:
17
+ - text/xml;charset=UTF-8
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ x-aspnet-version:
24
+ - 4.0.30319
25
+ server:
26
+ - Microsoft-IIS/7.0
27
+ connection:
28
+ - close
29
+ date:
30
+ - Wed, 26 Mar 2014 03:26:25 GMT
31
+ cache-control:
32
+ - private, max-age=0
33
+ content-length:
34
+ - "411"
35
+ x-powered-by:
36
+ - ASP.NET
37
+ content-type:
38
+ - text/xml; charset=utf-8
39
+ body:
40
+ string: <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><ChangeAccountRequestResponse xmlns="#Bonsai"><ChangeAccountRequestResult>-1</ChangeAccountRequestResult><ResultCode>-100</ResultCode></ChangeAccountRequestResponse></soap:Body></soap:Envelope>
41
+ http_version: "1.1"
42
+ recorded_at: Wed, 26 Mar 2014 03:26:25 GMT