ruby-ecomm-client 1.1.0 → 1.7.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 (58) hide show
  1. checksums.yaml +15 -0
  2. data/.ruby-version +1 -1
  3. data/Gemfile +1 -0
  4. data/README.md +10 -0
  5. data/fixtures/vcr_cassettes/account_info/default.yml +49 -34
  6. data/fixtures/vcr_cassettes/account_info/unknown/resource_id.yml +42 -34
  7. data/fixtures/vcr_cassettes/account_info/unknown/resource_type.yml +42 -34
  8. data/fixtures/vcr_cassettes/account_info/unknown/source_tree_id.yml +42 -34
  9. data/fixtures/vcr_cassettes/express_checkout/configured.yml +39 -31
  10. data/fixtures/vcr_cassettes/express_checkout/unknown.yml +39 -31
  11. data/fixtures/vcr_cassettes/request_change/express/downgrade/default.yml +46 -36
  12. data/fixtures/vcr_cassettes/request_change/express/downgrade/noop.yml +55 -34
  13. data/fixtures/vcr_cassettes/request_change/express/downgrade/unknown/resource_id.yml +46 -34
  14. data/fixtures/vcr_cassettes/request_change/express/downgrade/unknown/resource_type.yml +47 -34
  15. data/fixtures/vcr_cassettes/request_change/express/downgrade/unknown/target_tree_id.yml +46 -34
  16. data/fixtures/vcr_cassettes/request_change/express/relay/default.yml +48 -0
  17. data/fixtures/vcr_cassettes/request_change/express/upgrade/default.yml +55 -36
  18. data/fixtures/vcr_cassettes/request_change/express/upgrade/noop.yml +46 -34
  19. data/fixtures/vcr_cassettes/request_change/express/upgrade/unknown/resource_id.yml +46 -34
  20. data/fixtures/vcr_cassettes/request_change/express/upgrade/unknown/resource_type.yml +47 -34
  21. data/fixtures/vcr_cassettes/request_change/express/upgrade/unknown/target_tree_id.yml +46 -34
  22. data/fixtures/vcr_cassettes/request_change/manager/downgrade/default.yml +43 -34
  23. data/fixtures/vcr_cassettes/request_change/manager/downgrade/noop.yml +43 -34
  24. data/fixtures/vcr_cassettes/request_change/manager/downgrade/unknown/resource_id.yml +43 -34
  25. data/fixtures/vcr_cassettes/request_change/manager/downgrade/unknown/resource_type.yml +43 -34
  26. data/fixtures/vcr_cassettes/request_change/manager/downgrade/unknown/target_tree_id.yml +43 -34
  27. data/fixtures/vcr_cassettes/request_change/manager/relay/default.yml +100 -0
  28. data/fixtures/vcr_cassettes/request_change/manager/upgrade/default.yml +43 -34
  29. data/fixtures/vcr_cassettes/request_change/manager/upgrade/noop.yml +43 -34
  30. data/fixtures/vcr_cassettes/request_change/manager/upgrade/unknown/resource_id.yml +43 -34
  31. data/fixtures/vcr_cassettes/request_change/manager/upgrade/unknown/resource_type.yml +43 -34
  32. data/fixtures/vcr_cassettes/request_change/manager/upgrade/unknown/target_tree_id.yml +43 -34
  33. data/fixtures/vcr_cassettes/transitions/default/unknown/source_tree_id.yml +42 -34
  34. data/fixtures/vcr_cassettes/transitions/many.yml +49 -34
  35. data/fixtures/vcr_cassettes/transitions/one.yml +49 -34
  36. data/lib/ruby-ecomm-client.rb +13 -1
  37. data/lib/ruby-ecomm-client/client.rb +19 -148
  38. data/lib/ruby-ecomm-client/config.rb +25 -0
  39. data/lib/ruby-ecomm-client/service_base.rb +55 -0
  40. data/lib/ruby-ecomm-client/service_manager.rb +75 -0
  41. data/lib/ruby-ecomm-client/service_profile.rb +30 -0
  42. data/lib/ruby-ecomm-client/service_purchase.rb +79 -0
  43. data/lib/ruby-ecomm-client/util.rb +16 -0
  44. data/lib/ruby-ecomm-client/version.rb +1 -1
  45. data/ruby-ecomm-client.gemspec +2 -1
  46. data/script/bootstrap +68 -0
  47. data/script/cibuild +4 -5
  48. data/spec/ruby-ecomm-client/client_spec.rb +32 -339
  49. data/spec/ruby-ecomm-client/config_spec.rb +56 -0
  50. data/spec/ruby-ecomm-client/service_base_spec.rb +119 -0
  51. data/spec/ruby-ecomm-client/service_manager_spec.rb +285 -0
  52. data/spec/ruby-ecomm-client/service_profile_spec.rb +33 -0
  53. data/spec/ruby-ecomm-client/service_purchase_spec.rb +160 -0
  54. data/spec/ruby-ecomm-client/util_spec.rb +66 -0
  55. data/spec/spec_helper.rb +10 -0
  56. metadata +160 -152
  57. data/lib/ruby-ecomm-client/converter.rb +0 -45
  58. data/spec/ruby-ecomm-client/converter_spec.rb +0 -96
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ MDAzYzZmNzkxY2JjYjJiYmExZmFlODZjYjQ5YTQ5ZTRkYWJhMjUwNQ==
5
+ data.tar.gz: !binary |-
6
+ NTAxMzQyZTllMzIyYzdiM2YyYjc0OGY0YzAzNTI1MmI1YWVmZWRiZQ==
7
+ SHA512:
8
+ metadata.gz: !binary |-
9
+ YTUxNmE0ZjdiYTQwOWZiYzAwZGU0MjdiNjE3MTU5YjgwYmRmOGIyOTE1ZTVm
10
+ NThhNmU2NGRlY2M3ZjYxZDFmZjFhMzRlZjBlYzY3ZWI4NTY1YzkwOGZhOTlm
11
+ NDZkMjg1M2JhYmRiYzA2ZDYyNWMwMTVhYWJmNGQ5OWYzMTk1NDk=
12
+ data.tar.gz: !binary |-
13
+ ZTJkNTU4ZDNkZjdiM2M2NDMzOTBhYTU3NTAxYTQxNjdiMWNiNDZlNjBiN2E4
14
+ YjQxNDczMzBjN2UwYmRiZTRkZjdkMGU2Nzg3YzBhN2FkYmFkMWFkMTliN2Qz
15
+ NGRhNDEwNWYzZmNhMTBkOTA1NmIxOGRiMjljYTEzNjQyMzg1ZjY=
@@ -1 +1 @@
1
- ree-1.8.7-2012.02
1
+ 1.9.3-p545
data/Gemfile CHANGED
@@ -1,3 +1,4 @@
1
+ source 'https://EsMbbbd4BUKqr5AvxhAW@gem.fury.io/me/'
1
2
  source 'https://rubygems.org'
2
3
 
3
4
  # Specify your gem's dependencies in ruby-ecomm-client.gemspec
data/README.md CHANGED
@@ -19,6 +19,16 @@ Or install it yourself as:
19
19
  ## Usage
20
20
 
21
21
  ```ruby
22
+ RubyEcommClient.configure do |config|
23
+ config.requesting_app = '{YOUR_APP_NAME}'
24
+ #NOTE: An SSL Client Certificate must be registered and specified when using the purchase service
25
+ #NOTE: Best to read them once as root, then downgrade
26
+ cert_content = File.read('{YOUR_CERT_FILE_PATH}')
27
+ cert_key_content = File.read('{YOUR_CERT_KEY_FILE_PATH}')
28
+ config.ssl_cert_content = cert_content
29
+ config.ssl_cert_key_content = cert_key_content
30
+ end
31
+
22
32
  shopper_id = '???'
23
33
  resource_type = 'outright'
24
34
  resource_id = '???' #aka account_uid
@@ -1,42 +1,57 @@
1
- ---
2
- http_interactions:
3
- - request:
1
+ ---
2
+ http_interactions:
3
+ - request:
4
4
  method: post
5
- uri: http://bonsai.dev.glbt1.gdg/bonsai/bonsaimanager/service.asmx
6
- body:
7
- 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:GetAccountXml><tns:IDType>ORION</tns:IDType><tns:PrivateLabelID>1</tns:PrivateLabelID><tns:ResourceType>outright</tns:ResourceType><tns:TreeID>0</tns:TreeID><tns:ResourceID>10e16f14-b606-11e3-a45e-0050569575d8</tns:ResourceID></tns:GetAccountXml></env:Body></env:Envelope>
8
- headers:
9
- content-type:
5
+ uri: http://bonsai.dev.glbt1.gdg/Bonsai/BonsaiManager/Service.asmx
6
+ body:
7
+ encoding: US-ASCII
8
+ string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
9
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="#Bonsai"
10
+ xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Body><tns:GetAccountXml><tns:ResourceID>b6be6fd0-c1a5-11e3-8e42-0050569575d8</tns:ResourceID><tns:ResourceType>outright</tns:ResourceType><tns:IDType>ORION</tns:IDType><tns:TreeID>0</tns:TreeID><tns:PrivateLabelID>1</tns:PrivateLabelID></tns:GetAccountXml></env:Body></env:Envelope>
11
+ headers:
12
+ soapaction:
13
+ - ! '"#Bonsai/GetAccountXml"'
14
+ content-type:
10
15
  - text/xml;charset=UTF-8
11
- content-length:
12
- - "512"
13
- accept:
14
- - "*/*"
15
- soapaction:
16
- - "\"#Bonsai/GetAccountXml\""
17
- response:
18
- status:
16
+ content-length:
17
+ - '512'
18
+ accept:
19
+ - ! '*/*'
20
+ user-agent:
21
+ - Ruby
22
+ response:
23
+ status:
19
24
  code: 200
20
25
  message: OK
21
- headers:
22
- content-type:
23
- - text/xml; charset=utf-8
24
- content-length:
25
- - "1626"
26
- x-aspnet-version:
27
- - 4.0.30319
28
- cache-control:
26
+ headers:
27
+ cache-control:
29
28
  - private, max-age=0
30
- server:
29
+ content-type:
30
+ - text/xml; charset=utf-8
31
+ server:
31
32
  - Microsoft-IIS/7.0
32
- date:
33
- - Fri, 28 Mar 2014 00:22:31 GMT
34
- connection:
35
- - close
36
- x-powered-by:
33
+ x-aspnet-version:
34
+ - 4.0.30319
35
+ x-powered-by:
37
36
  - ASP.NET
38
- body:
39
- 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="10e16f14-b606-11e3-a45e-0050569575d8" 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>
40
- http_version: "1.1"
41
- recorded_at: Fri, 28 Mar 2014 00:22:33 GMT
37
+ date:
38
+ - Fri, 18 Apr 2014 16:29:04 GMT
39
+ connection:
40
+ - close
41
+ content-length:
42
+ - '924'
43
+ body:
44
+ encoding: US-ASCII
45
+ string: <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
46
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><GetAccountXmlResponse
47
+ xmlns="#Bonsai"><ResultCode>0</ResultCode><AccountXml><Bonsai><Bonsai PrivateLabelID="1"
48
+ ResourceID="b6be6fd0-c1a5-11e3-8e42-0050569575d8" IsPastDue="False" IsFree="False"
49
+ CurrentTreeID="2410" CurrentUnifiedProductID="326365" xmlns=""><Tree TreeID="2410"
50
+ NodeID="2410" UnifiedProductID="326365" IsFree="False"><Transition NodeName="Starter
51
+ Outright Get Paid - Monthly" UnifiedProductID="326363" TreeID="2402" IsFree="False"
52
+ NodeID="2402" /><Transition NodeName="Premium Outright Get Paid - Monthly"
53
+ UnifiedProductID="326388" TreeID="2418" IsFree="False" NodeID="2418" /><FilteredTransitions
54
+ /></Tree></Bonsai></Bonsai></AccountXml></GetAccountXmlResponse></soap:Body></soap:Envelope>
55
+ http_version: '1.1'
56
+ recorded_at: Fri, 18 Apr 2014 16:30:02 GMT
42
57
  recorded_with: VCR 2.8.0
@@ -1,42 +1,50 @@
1
- ---
2
- http_interactions:
3
- - request:
1
+ ---
2
+ http_interactions:
3
+ - request:
4
4
  method: post
5
- uri: http://bonsai.dev.glbt1.gdg/bonsai/bonsaimanager/service.asmx
6
- body:
7
- 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:GetAccountXml><tns:IDType>ORION</tns:IDType><tns:PrivateLabelID>1</tns:PrivateLabelID><tns:ResourceType>outright</tns:ResourceType><tns:TreeID>0</tns:TreeID><tns:ResourceID>unknown</tns:ResourceID></tns:GetAccountXml></env:Body></env:Envelope>
8
- headers:
9
- content-type:
5
+ uri: http://bonsai.dev.glbt1.gdg/Bonsai/BonsaiManager/Service.asmx
6
+ body:
7
+ encoding: US-ASCII
8
+ string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
9
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="#Bonsai"
10
+ xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Body><tns:GetAccountXml><tns:ResourceID>unknown</tns:ResourceID><tns:ResourceType>outright</tns:ResourceType><tns:IDType>ORION</tns:IDType><tns:TreeID>0</tns:TreeID><tns:PrivateLabelID>1</tns:PrivateLabelID></tns:GetAccountXml></env:Body></env:Envelope>
11
+ headers:
12
+ soapaction:
13
+ - ! '"#Bonsai/GetAccountXml"'
14
+ content-type:
10
15
  - text/xml;charset=UTF-8
11
- content-length:
12
- - "483"
13
- accept:
14
- - "*/*"
15
- soapaction:
16
- - "\"#Bonsai/GetAccountXml\""
17
- response:
18
- status:
16
+ content-length:
17
+ - '483'
18
+ accept:
19
+ - ! '*/*'
20
+ user-agent:
21
+ - Ruby
22
+ response:
23
+ status:
19
24
  code: 200
20
25
  message: OK
21
- headers:
22
- content-type:
23
- - text/xml; charset=utf-8
24
- content-length:
25
- - "338"
26
- x-aspnet-version:
27
- - 4.0.30319
28
- cache-control:
26
+ headers:
27
+ cache-control:
29
28
  - private, max-age=0
30
- server:
29
+ content-type:
30
+ - text/xml; charset=utf-8
31
+ server:
31
32
  - Microsoft-IIS/7.0
32
- date:
33
- - Fri, 28 Mar 2014 00:22:31 GMT
34
- connection:
35
- - close
36
- x-powered-by:
33
+ x-aspnet-version:
34
+ - 4.0.30319
35
+ x-powered-by:
37
36
  - ASP.NET
38
- body:
39
- 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>
40
- http_version: "1.1"
41
- recorded_at: Fri, 28 Mar 2014 00:22:34 GMT
37
+ date:
38
+ - Fri, 18 Apr 2014 16:29:04 GMT
39
+ connection:
40
+ - close
41
+ content-length:
42
+ - '338'
43
+ body:
44
+ encoding: US-ASCII
45
+ string: <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
46
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><GetAccountXmlResponse
47
+ xmlns="#Bonsai"><ResultCode>-304</ResultCode></GetAccountXmlResponse></soap:Body></soap:Envelope>
48
+ http_version: '1.1'
49
+ recorded_at: Fri, 18 Apr 2014 16:30:03 GMT
42
50
  recorded_with: VCR 2.8.0
@@ -1,42 +1,50 @@
1
- ---
2
- http_interactions:
3
- - request:
1
+ ---
2
+ http_interactions:
3
+ - request:
4
4
  method: post
5
- uri: http://bonsai.dev.glbt1.gdg/bonsai/bonsaimanager/service.asmx
6
- body:
7
- 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:GetAccountXml><tns:IDType>ORION</tns:IDType><tns:PrivateLabelID>1</tns:PrivateLabelID><tns:ResourceType>flugel</tns:ResourceType><tns:TreeID>0</tns:TreeID><tns:ResourceID>10e16f14-b606-11e3-a45e-0050569575d8</tns:ResourceID></tns:GetAccountXml></env:Body></env:Envelope>
8
- headers:
9
- content-type:
5
+ uri: http://bonsai.dev.glbt1.gdg/Bonsai/BonsaiManager/Service.asmx
6
+ body:
7
+ encoding: US-ASCII
8
+ string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
9
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="#Bonsai"
10
+ xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Body><tns:GetAccountXml><tns:ResourceID>b6be6fd0-c1a5-11e3-8e42-0050569575d8</tns:ResourceID><tns:ResourceType>flugel</tns:ResourceType><tns:IDType>ORION</tns:IDType><tns:TreeID>0</tns:TreeID><tns:PrivateLabelID>1</tns:PrivateLabelID></tns:GetAccountXml></env:Body></env:Envelope>
11
+ headers:
12
+ soapaction:
13
+ - ! '"#Bonsai/GetAccountXml"'
14
+ content-type:
10
15
  - text/xml;charset=UTF-8
11
- content-length:
12
- - "510"
13
- accept:
14
- - "*/*"
15
- soapaction:
16
- - "\"#Bonsai/GetAccountXml\""
17
- response:
18
- status:
16
+ content-length:
17
+ - '510'
18
+ accept:
19
+ - ! '*/*'
20
+ user-agent:
21
+ - Ruby
22
+ response:
23
+ status:
19
24
  code: 200
20
25
  message: OK
21
- headers:
22
- content-type:
23
- - text/xml; charset=utf-8
24
- content-length:
25
- - "338"
26
- x-aspnet-version:
27
- - 4.0.30319
28
- cache-control:
26
+ headers:
27
+ cache-control:
29
28
  - private, max-age=0
30
- server:
29
+ content-type:
30
+ - text/xml; charset=utf-8
31
+ server:
31
32
  - Microsoft-IIS/7.0
32
- date:
33
- - Fri, 28 Mar 2014 00:22:31 GMT
34
- connection:
35
- - close
36
- x-powered-by:
33
+ x-aspnet-version:
34
+ - 4.0.30319
35
+ x-powered-by:
37
36
  - ASP.NET
38
- body:
39
- 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>
40
- http_version: "1.1"
41
- recorded_at: Fri, 28 Mar 2014 00:22:34 GMT
37
+ date:
38
+ - Fri, 18 Apr 2014 16:29:04 GMT
39
+ connection:
40
+ - close
41
+ content-length:
42
+ - '338'
43
+ body:
44
+ encoding: US-ASCII
45
+ string: <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
46
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><GetAccountXmlResponse
47
+ xmlns="#Bonsai"><ResultCode>-100</ResultCode></GetAccountXmlResponse></soap:Body></soap:Envelope>
48
+ http_version: '1.1'
49
+ recorded_at: Fri, 18 Apr 2014 16:30:03 GMT
42
50
  recorded_with: VCR 2.8.0
@@ -1,42 +1,50 @@
1
- ---
2
- http_interactions:
3
- - request:
1
+ ---
2
+ http_interactions:
3
+ - request:
4
4
  method: post
5
- uri: http://bonsai.dev.glbt1.gdg/bonsai/bonsaimanager/service.asmx
6
- body:
7
- 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:GetAccountXml><tns:IDType>ORION</tns:IDType><tns:PrivateLabelID>1</tns:PrivateLabelID><tns:ResourceType>outright</tns:ResourceType><tns:TreeID>90909</tns:TreeID><tns:ResourceID>10e16f14-b606-11e3-a45e-0050569575d8</tns:ResourceID></tns:GetAccountXml></env:Body></env:Envelope>
8
- headers:
9
- content-type:
5
+ uri: http://bonsai.dev.glbt1.gdg/Bonsai/BonsaiManager/Service.asmx
6
+ body:
7
+ encoding: US-ASCII
8
+ string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
9
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="#Bonsai"
10
+ xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Body><tns:GetAccountXml><tns:ResourceID>b6be6fd0-c1a5-11e3-8e42-0050569575d8</tns:ResourceID><tns:ResourceType>outright</tns:ResourceType><tns:IDType>ORION</tns:IDType><tns:TreeID>90909</tns:TreeID><tns:PrivateLabelID>1</tns:PrivateLabelID></tns:GetAccountXml></env:Body></env:Envelope>
11
+ headers:
12
+ soapaction:
13
+ - ! '"#Bonsai/GetAccountXml"'
14
+ content-type:
10
15
  - text/xml;charset=UTF-8
11
- content-length:
12
- - "516"
13
- accept:
14
- - "*/*"
15
- soapaction:
16
- - "\"#Bonsai/GetAccountXml\""
17
- response:
18
- status:
16
+ content-length:
17
+ - '516'
18
+ accept:
19
+ - ! '*/*'
20
+ user-agent:
21
+ - Ruby
22
+ response:
23
+ status:
19
24
  code: 200
20
25
  message: OK
21
- headers:
22
- content-type:
23
- - text/xml; charset=utf-8
24
- content-length:
25
- - "338"
26
- x-aspnet-version:
27
- - 4.0.30319
28
- cache-control:
26
+ headers:
27
+ cache-control:
29
28
  - private, max-age=0
30
- server:
29
+ content-type:
30
+ - text/xml; charset=utf-8
31
+ server:
31
32
  - Microsoft-IIS/7.0
32
- date:
33
- - Fri, 28 Mar 2014 00:22:32 GMT
34
- connection:
35
- - close
36
- x-powered-by:
33
+ x-aspnet-version:
34
+ - 4.0.30319
35
+ x-powered-by:
37
36
  - ASP.NET
38
- body:
39
- 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>
40
- http_version: "1.1"
41
- recorded_at: Fri, 28 Mar 2014 00:22:35 GMT
37
+ date:
38
+ - Fri, 18 Apr 2014 16:29:05 GMT
39
+ connection:
40
+ - close
41
+ content-length:
42
+ - '338'
43
+ body:
44
+ encoding: US-ASCII
45
+ string: <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
46
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><GetAccountXmlResponse
47
+ xmlns="#Bonsai"><ResultCode>-999</ResultCode></GetAccountXmlResponse></soap:Body></soap:Envelope>
48
+ http_version: '1.1'
49
+ recorded_at: Fri, 18 Apr 2014 16:30:04 GMT
42
50
  recorded_with: VCR 2.8.0
@@ -1,40 +1,48 @@
1
- ---
2
- http_interactions:
3
- - request:
1
+ ---
2
+ http_interactions:
3
+ - request:
4
4
  method: post
5
5
  uri: http://gdcomm.dev.glbt1.gdg/WSgdInstantPurchasePublic/Service.asmx
6
- body:
7
- string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:tns="http://tempuri.org/" 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:ShopperHasInstantPurchasePayment><tns:sShopperID>922411</tns:sShopperID></tns:ShopperHasInstantPurchasePayment></env:Body></env:Envelope>
8
- headers:
9
- content-type:
6
+ body:
7
+ encoding: US-ASCII
8
+ string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
9
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="http://tempuri.org/"
10
+ xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Body><tns:ShopperHasInstantPurchasePayment><tns:sShopperID>923518</tns:sShopperID></tns:ShopperHasInstantPurchasePayment></env:Body></env:Envelope>
11
+ headers:
12
+ soapaction:
13
+ - ! '"http://tempuri.org/ShopperHasInstantPurchasePayment"'
14
+ content-type:
10
15
  - text/xml;charset=UTF-8
11
- content-length:
12
- - "389"
13
- accept:
14
- - "*/*"
15
- soapaction:
16
- - "\"http://tempuri.org/ShopperHasInstantPurchasePayment\""
17
- response:
18
- status:
16
+ content-length:
17
+ - '389'
18
+ accept:
19
+ - ! '*/*'
20
+ user-agent:
21
+ - Ruby
22
+ response:
23
+ status:
19
24
  code: 200
20
25
  message: OK
21
- headers:
22
- content-type:
23
- - text/xml; charset=utf-8
24
- content-length:
25
- - "537"
26
- x-aspnet-version:
27
- - 2.0.50727
28
- cache-control:
26
+ headers:
27
+ cache-control:
29
28
  - private, max-age=0
30
- server:
29
+ content-type:
30
+ - text/xml; charset=utf-8
31
+ server:
31
32
  - Microsoft-IIS/7.0
32
- date:
33
- - Fri, 28 Mar 2014 00:22:30 GMT
34
- x-powered-by:
33
+ x-aspnet-version:
34
+ - 2.0.50727
35
+ x-powered-by:
35
36
  - ASP.NET
36
- body:
37
- 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><ShopperHasInstantPurchasePaymentResponse xmlns="http://tempuri.org/"><ShopperHasInstantPurchasePaymentResult>&lt;Status&gt;SUCCESS&lt;/Status&gt;</ShopperHasInstantPurchasePaymentResult><bHasInstantPurchasePayment>true</bHasInstantPurchasePayment></ShopperHasInstantPurchasePaymentResponse></soap:Body></soap:Envelope>
38
- http_version: "1.1"
39
- recorded_at: Fri, 28 Mar 2014 00:22:32 GMT
37
+ date:
38
+ - Fri, 18 Apr 2014 16:30:21 GMT
39
+ content-length:
40
+ - '537'
41
+ body:
42
+ encoding: US-ASCII
43
+ string: <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
44
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><ShopperHasInstantPurchasePaymentResponse
45
+ xmlns="http://tempuri.org/"><ShopperHasInstantPurchasePaymentResult>&lt;Status&gt;SUCCESS&lt;/Status&gt;</ShopperHasInstantPurchasePaymentResult><bHasInstantPurchasePayment>true</bHasInstantPurchasePayment></ShopperHasInstantPurchasePaymentResponse></soap:Body></soap:Envelope>
46
+ http_version: '1.1'
47
+ recorded_at: Fri, 18 Apr 2014 16:30:23 GMT
40
48
  recorded_with: VCR 2.8.0