ruby-ecomm-client 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +2 -2
- data/README.md +3 -7
- data/fixtures/vcr_cassettes/account_info/default.yml +22 -22
- data/fixtures/vcr_cassettes/account_info/unknown/resource_id.yml +21 -21
- data/fixtures/vcr_cassettes/account_info/unknown/resource_type.yml +21 -21
- data/fixtures/vcr_cassettes/account_info/unknown/source_tree_id.yml +21 -21
- data/fixtures/vcr_cassettes/express_checkout/configured.yml +17 -17
- data/fixtures/vcr_cassettes/express_checkout/unknown.yml +17 -17
- data/fixtures/vcr_cassettes/request_change/express/downgrade/default.yml +44 -0
- data/fixtures/vcr_cassettes/request_change/express/downgrade/noop.yml +42 -0
- data/fixtures/vcr_cassettes/request_change/express/downgrade/unknown/resource_id.yml +42 -0
- data/fixtures/vcr_cassettes/request_change/express/downgrade/unknown/resource_type.yml +42 -0
- data/fixtures/vcr_cassettes/request_change/express/downgrade/unknown/target_tree_id.yml +42 -0
- data/fixtures/vcr_cassettes/request_change/express/upgrade/default.yml +44 -0
- data/fixtures/vcr_cassettes/request_change/express/upgrade/noop.yml +42 -0
- data/fixtures/vcr_cassettes/request_change/express/upgrade/unknown/resource_id.yml +42 -0
- data/fixtures/vcr_cassettes/request_change/express/upgrade/unknown/resource_type.yml +42 -0
- data/fixtures/vcr_cassettes/request_change/express/upgrade/unknown/target_tree_id.yml +42 -0
- data/fixtures/vcr_cassettes/{downgrade → request_change/manager/downgrade}/default.yml +18 -18
- data/fixtures/vcr_cassettes/{downgrade → request_change/manager/downgrade}/noop.yml +17 -17
- data/fixtures/vcr_cassettes/{downgrade → request_change/manager/downgrade}/unknown/resource_id.yml +17 -17
- data/fixtures/vcr_cassettes/{upgrade → request_change/manager/downgrade}/unknown/resource_type.yml +17 -17
- data/fixtures/vcr_cassettes/{downgrade → request_change/manager/downgrade}/unknown/target_tree_id.yml +17 -17
- data/fixtures/vcr_cassettes/{upgrade → request_change/manager/upgrade}/default.yml +18 -18
- data/fixtures/vcr_cassettes/{upgrade → request_change/manager/upgrade}/noop.yml +17 -17
- data/fixtures/vcr_cassettes/{upgrade → request_change/manager/upgrade}/unknown/resource_id.yml +17 -17
- data/fixtures/vcr_cassettes/{downgrade → request_change/manager/upgrade}/unknown/resource_type.yml +17 -17
- data/fixtures/vcr_cassettes/{upgrade → request_change/manager/upgrade}/unknown/target_tree_id.yml +17 -17
- data/fixtures/vcr_cassettes/transitions/default/unknown/source_tree_id.yml +13 -13
- data/fixtures/vcr_cassettes/transitions/many.yml +14 -14
- data/fixtures/vcr_cassettes/transitions/one.yml +14 -14
- data/lib/ruby-ecomm-client/client.rb +61 -21
- data/lib/ruby-ecomm-client/version.rb +1 -1
- data/spec/ruby-ecomm-client/client_spec.rb +203 -82
- data/spec/spec_helper.rb +2 -0
- metadata +24 -15
- data/fixtures/vcr_cassettes/transitions/unknown/source_tree_id.yml +0 -42
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -18,7 +18,7 @@ Or install it yourself as:
|
|
18
18
|
|
19
19
|
## Usage
|
20
20
|
|
21
|
-
```
|
21
|
+
```ruby
|
22
22
|
shopper_id = '???'
|
23
23
|
resource_type = 'outright'
|
24
24
|
resource_id = '???' #aka account_uid
|
@@ -35,12 +35,8 @@ client.transitions(source_tree_id)
|
|
35
35
|
=> [ { :node_name => 'Outright - Monthly Plus', :product_id => '2697', :tree_id => '1734', :is_free => 'False' } ]
|
36
36
|
|
37
37
|
target_tree_id = ???
|
38
|
-
client.
|
39
|
-
=> 2
|
40
|
-
|
41
|
-
target_tree_id = ???
|
42
|
-
client.downgrade(target_tree_id)
|
43
|
-
=> 2
|
38
|
+
client.request_change(target_tree_id)
|
39
|
+
=> { :used_express_checkout => true, :request_result => 2 }
|
44
40
|
```
|
45
41
|
|
46
42
|
## Contributing
|
@@ -1,42 +1,42 @@
|
|
1
1
|
---
|
2
|
-
recorded_with: VCR 2.8.0
|
3
2
|
http_interactions:
|
4
3
|
- request:
|
5
4
|
method: post
|
6
5
|
uri: http://bonsai.dev.glbt1.gdg/bonsai/bonsaimanager/service.asmx
|
7
6
|
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/"
|
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>
|
9
8
|
headers:
|
10
|
-
soapaction:
|
11
|
-
- "\"#Bonsai/GetAccountXml\""
|
12
|
-
accept:
|
13
|
-
- "*/*"
|
14
|
-
content-length:
|
15
|
-
- "512"
|
16
9
|
content-type:
|
17
10
|
- text/xml;charset=UTF-8
|
11
|
+
content-length:
|
12
|
+
- "512"
|
13
|
+
accept:
|
14
|
+
- "*/*"
|
15
|
+
soapaction:
|
16
|
+
- "\"#Bonsai/GetAccountXml\""
|
18
17
|
response:
|
19
18
|
status:
|
20
19
|
code: 200
|
21
20
|
message: OK
|
22
21
|
headers:
|
23
|
-
|
24
|
-
-
|
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
|
22
|
+
content-type:
|
23
|
+
- text/xml; charset=utf-8
|
33
24
|
content-length:
|
34
25
|
- "1626"
|
35
26
|
x-aspnet-version:
|
36
27
|
- 4.0.30319
|
37
|
-
|
38
|
-
-
|
28
|
+
cache-control:
|
29
|
+
- private, max-age=0
|
30
|
+
server:
|
31
|
+
- Microsoft-IIS/7.0
|
32
|
+
date:
|
33
|
+
- Fri, 28 Mar 2014 00:22:31 GMT
|
34
|
+
connection:
|
35
|
+
- close
|
36
|
+
x-powered-by:
|
37
|
+
- ASP.NET
|
39
38
|
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="
|
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>
|
41
40
|
http_version: "1.1"
|
42
|
-
recorded_at:
|
41
|
+
recorded_at: Fri, 28 Mar 2014 00:22:33 GMT
|
42
|
+
recorded_with: VCR 2.8.0
|
@@ -1,42 +1,42 @@
|
|
1
1
|
---
|
2
|
-
recorded_with: VCR 2.8.0
|
3
2
|
http_interactions:
|
4
3
|
- request:
|
5
4
|
method: post
|
6
5
|
uri: http://bonsai.dev.glbt1.gdg/bonsai/bonsaimanager/service.asmx
|
7
6
|
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/"
|
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>
|
9
8
|
headers:
|
10
|
-
soapaction:
|
11
|
-
- "\"#Bonsai/GetAccountXml\""
|
12
|
-
accept:
|
13
|
-
- "*/*"
|
14
|
-
content-length:
|
15
|
-
- "483"
|
16
9
|
content-type:
|
17
10
|
- text/xml;charset=UTF-8
|
11
|
+
content-length:
|
12
|
+
- "483"
|
13
|
+
accept:
|
14
|
+
- "*/*"
|
15
|
+
soapaction:
|
16
|
+
- "\"#Bonsai/GetAccountXml\""
|
18
17
|
response:
|
19
18
|
status:
|
20
19
|
code: 200
|
21
20
|
message: OK
|
22
21
|
headers:
|
23
|
-
|
24
|
-
-
|
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
|
22
|
+
content-type:
|
23
|
+
- text/xml; charset=utf-8
|
33
24
|
content-length:
|
34
25
|
- "338"
|
35
26
|
x-aspnet-version:
|
36
27
|
- 4.0.30319
|
37
|
-
|
38
|
-
-
|
28
|
+
cache-control:
|
29
|
+
- private, max-age=0
|
30
|
+
server:
|
31
|
+
- Microsoft-IIS/7.0
|
32
|
+
date:
|
33
|
+
- Fri, 28 Mar 2014 00:22:31 GMT
|
34
|
+
connection:
|
35
|
+
- close
|
36
|
+
x-powered-by:
|
37
|
+
- ASP.NET
|
39
38
|
body:
|
40
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>
|
41
40
|
http_version: "1.1"
|
42
|
-
recorded_at:
|
41
|
+
recorded_at: Fri, 28 Mar 2014 00:22:34 GMT
|
42
|
+
recorded_with: VCR 2.8.0
|
@@ -1,42 +1,42 @@
|
|
1
1
|
---
|
2
|
-
recorded_with: VCR 2.8.0
|
3
2
|
http_interactions:
|
4
3
|
- request:
|
5
4
|
method: post
|
6
5
|
uri: http://bonsai.dev.glbt1.gdg/bonsai/bonsaimanager/service.asmx
|
7
6
|
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/"
|
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>
|
9
8
|
headers:
|
10
|
-
soapaction:
|
11
|
-
- "\"#Bonsai/GetAccountXml\""
|
12
|
-
accept:
|
13
|
-
- "*/*"
|
14
|
-
content-length:
|
15
|
-
- "510"
|
16
9
|
content-type:
|
17
10
|
- text/xml;charset=UTF-8
|
11
|
+
content-length:
|
12
|
+
- "510"
|
13
|
+
accept:
|
14
|
+
- "*/*"
|
15
|
+
soapaction:
|
16
|
+
- "\"#Bonsai/GetAccountXml\""
|
18
17
|
response:
|
19
18
|
status:
|
20
19
|
code: 200
|
21
20
|
message: OK
|
22
21
|
headers:
|
23
|
-
|
24
|
-
-
|
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
|
22
|
+
content-type:
|
23
|
+
- text/xml; charset=utf-8
|
33
24
|
content-length:
|
34
25
|
- "338"
|
35
26
|
x-aspnet-version:
|
36
27
|
- 4.0.30319
|
37
|
-
|
38
|
-
-
|
28
|
+
cache-control:
|
29
|
+
- private, max-age=0
|
30
|
+
server:
|
31
|
+
- Microsoft-IIS/7.0
|
32
|
+
date:
|
33
|
+
- Fri, 28 Mar 2014 00:22:31 GMT
|
34
|
+
connection:
|
35
|
+
- close
|
36
|
+
x-powered-by:
|
37
|
+
- ASP.NET
|
39
38
|
body:
|
40
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>
|
41
40
|
http_version: "1.1"
|
42
|
-
recorded_at:
|
41
|
+
recorded_at: Fri, 28 Mar 2014 00:22:34 GMT
|
42
|
+
recorded_with: VCR 2.8.0
|
@@ -1,42 +1,42 @@
|
|
1
1
|
---
|
2
|
-
recorded_with: VCR 2.8.0
|
3
2
|
http_interactions:
|
4
3
|
- request:
|
5
4
|
method: post
|
6
5
|
uri: http://bonsai.dev.glbt1.gdg/bonsai/bonsaimanager/service.asmx
|
7
6
|
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/"
|
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>
|
9
8
|
headers:
|
10
|
-
soapaction:
|
11
|
-
- "\"#Bonsai/GetAccountXml\""
|
12
|
-
accept:
|
13
|
-
- "*/*"
|
14
|
-
content-length:
|
15
|
-
- "516"
|
16
9
|
content-type:
|
17
10
|
- text/xml;charset=UTF-8
|
11
|
+
content-length:
|
12
|
+
- "516"
|
13
|
+
accept:
|
14
|
+
- "*/*"
|
15
|
+
soapaction:
|
16
|
+
- "\"#Bonsai/GetAccountXml\""
|
18
17
|
response:
|
19
18
|
status:
|
20
19
|
code: 200
|
21
20
|
message: OK
|
22
21
|
headers:
|
23
|
-
|
24
|
-
-
|
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
|
22
|
+
content-type:
|
23
|
+
- text/xml; charset=utf-8
|
33
24
|
content-length:
|
34
25
|
- "338"
|
35
26
|
x-aspnet-version:
|
36
27
|
- 4.0.30319
|
37
|
-
|
38
|
-
-
|
28
|
+
cache-control:
|
29
|
+
- private, max-age=0
|
30
|
+
server:
|
31
|
+
- Microsoft-IIS/7.0
|
32
|
+
date:
|
33
|
+
- Fri, 28 Mar 2014 00:22:32 GMT
|
34
|
+
connection:
|
35
|
+
- close
|
36
|
+
x-powered-by:
|
37
|
+
- ASP.NET
|
39
38
|
body:
|
40
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>
|
41
40
|
http_version: "1.1"
|
42
|
-
recorded_at:
|
41
|
+
recorded_at: Fri, 28 Mar 2014 00:22:35 GMT
|
42
|
+
recorded_with: VCR 2.8.0
|
@@ -1,40 +1,40 @@
|
|
1
1
|
---
|
2
|
-
recorded_with: VCR 2.8.0
|
3
2
|
http_interactions:
|
4
3
|
- request:
|
5
4
|
method: post
|
6
5
|
uri: http://gdcomm.dev.glbt1.gdg/WSgdInstantPurchasePublic/Service.asmx
|
7
6
|
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/"
|
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>
|
9
8
|
headers:
|
10
|
-
soapaction:
|
11
|
-
- "\"http://tempuri.org/ShopperHasInstantPurchasePayment\""
|
12
|
-
content-length:
|
13
|
-
- "389"
|
14
9
|
content-type:
|
15
10
|
- text/xml;charset=UTF-8
|
11
|
+
content-length:
|
12
|
+
- "389"
|
16
13
|
accept:
|
17
14
|
- "*/*"
|
15
|
+
soapaction:
|
16
|
+
- "\"http://tempuri.org/ShopperHasInstantPurchasePayment\""
|
18
17
|
response:
|
19
18
|
status:
|
20
19
|
code: 200
|
21
20
|
message: OK
|
22
21
|
headers:
|
23
|
-
|
24
|
-
-
|
25
|
-
x-powered-by:
|
26
|
-
- ASP.NET
|
27
|
-
x-aspnet-version:
|
28
|
-
- 2.0.50727
|
29
|
-
server:
|
30
|
-
- Microsoft-IIS/7.0
|
22
|
+
content-type:
|
23
|
+
- text/xml; charset=utf-8
|
31
24
|
content-length:
|
32
25
|
- "537"
|
26
|
+
x-aspnet-version:
|
27
|
+
- 2.0.50727
|
33
28
|
cache-control:
|
34
29
|
- private, max-age=0
|
35
|
-
|
36
|
-
-
|
30
|
+
server:
|
31
|
+
- Microsoft-IIS/7.0
|
32
|
+
date:
|
33
|
+
- Fri, 28 Mar 2014 00:22:30 GMT
|
34
|
+
x-powered-by:
|
35
|
+
- ASP.NET
|
37
36
|
body:
|
38
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><Status>SUCCESS</Status></ShopperHasInstantPurchasePaymentResult><bHasInstantPurchasePayment>true</bHasInstantPurchasePayment></ShopperHasInstantPurchasePaymentResponse></soap:Body></soap:Envelope>
|
39
38
|
http_version: "1.1"
|
40
|
-
recorded_at:
|
39
|
+
recorded_at: Fri, 28 Mar 2014 00:22:32 GMT
|
40
|
+
recorded_with: VCR 2.8.0
|
@@ -1,40 +1,40 @@
|
|
1
1
|
---
|
2
|
-
recorded_with: VCR 2.8.0
|
3
2
|
http_interactions:
|
4
3
|
- request:
|
5
4
|
method: post
|
6
5
|
uri: http://gdcomm.dev.glbt1.gdg/WSgdInstantPurchasePublic/Service.asmx
|
7
6
|
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/"
|
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>101010</tns:sShopperID></tns:ShopperHasInstantPurchasePayment></env:Body></env:Envelope>
|
9
8
|
headers:
|
10
|
-
soapaction:
|
11
|
-
- "\"http://tempuri.org/ShopperHasInstantPurchasePayment\""
|
12
|
-
content-length:
|
13
|
-
- "389"
|
14
9
|
content-type:
|
15
10
|
- text/xml;charset=UTF-8
|
11
|
+
content-length:
|
12
|
+
- "389"
|
16
13
|
accept:
|
17
14
|
- "*/*"
|
15
|
+
soapaction:
|
16
|
+
- "\"http://tempuri.org/ShopperHasInstantPurchasePayment\""
|
18
17
|
response:
|
19
18
|
status:
|
20
19
|
code: 200
|
21
20
|
message: OK
|
22
21
|
headers:
|
23
|
-
|
24
|
-
-
|
25
|
-
x-powered-by:
|
26
|
-
- ASP.NET
|
27
|
-
x-aspnet-version:
|
28
|
-
- 2.0.50727
|
29
|
-
server:
|
30
|
-
- Microsoft-IIS/7.0
|
22
|
+
content-type:
|
23
|
+
- text/xml; charset=utf-8
|
31
24
|
content-length:
|
32
25
|
- "538"
|
26
|
+
x-aspnet-version:
|
27
|
+
- 2.0.50727
|
33
28
|
cache-control:
|
34
29
|
- private, max-age=0
|
35
|
-
|
36
|
-
-
|
30
|
+
server:
|
31
|
+
- Microsoft-IIS/7.0
|
32
|
+
date:
|
33
|
+
- Fri, 28 Mar 2014 00:22:30 GMT
|
34
|
+
x-powered-by:
|
35
|
+
- ASP.NET
|
37
36
|
body:
|
38
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><Status>SUCCESS</Status></ShopperHasInstantPurchasePaymentResult><bHasInstantPurchasePayment>false</bHasInstantPurchasePayment></ShopperHasInstantPurchasePaymentResponse></soap:Body></soap:Envelope>
|
39
38
|
http_version: "1.1"
|
40
|
-
recorded_at:
|
39
|
+
recorded_at: Fri, 28 Mar 2014 00:22:32 GMT
|
40
|
+
recorded_with: VCR 2.8.0
|
@@ -0,0 +1,44 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://bonsaipurchase.dev.glbt1.gdg/BonsaiPurchase/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:PurchaseChangeAccountRequest><tns:RenewalPFID>0</tns:RenewalPFID><tns:ItemRequestXml><itemRequest/></tns:ItemRequestXml><tns:IDType>ORION</tns:IDType><tns:ResourceID>10e16f14-b606-11e3-a45e-0050569575d8</tns:ResourceID><tns:AccountPurchaseChangeXml><ClientChange TreeID='1736' ShopperID='922411' TransactionCurrency='USD' RequestingApp='outright' RequestingAppHost='LM126196-SSAND.local' ClientAddr='127.0.0.1' EnteredBy='customer' OrderSource='Online' RedirectToBasket='false' EstimateOnly='false' SendConfirmEmail='false'/></tns:AccountPurchaseChangeXml><tns:ResourceType>outright</tns:ResourceType><tns:RenewalPeriods>0</tns:RenewalPeriods></tns:PurchaseChangeAccountRequest></env:Body></env:Envelope>
|
8
|
+
headers:
|
9
|
+
accept:
|
10
|
+
- "*/*"
|
11
|
+
soapaction:
|
12
|
+
- "\"#Bonsai/PurchaseChangeAccountRequest\""
|
13
|
+
content-length:
|
14
|
+
- "956"
|
15
|
+
content-type:
|
16
|
+
- text/xml;charset=UTF-8
|
17
|
+
response:
|
18
|
+
status:
|
19
|
+
code: 200
|
20
|
+
message: OK
|
21
|
+
headers:
|
22
|
+
connection:
|
23
|
+
- close
|
24
|
+
x-aspnet-version:
|
25
|
+
- 4.0.30319
|
26
|
+
content-length:
|
27
|
+
- "1183"
|
28
|
+
date:
|
29
|
+
- Fri, 28 Mar 2014 00:23:10 GMT
|
30
|
+
x-powered-by:
|
31
|
+
- ASP.NET
|
32
|
+
cache-control:
|
33
|
+
- private, max-age=0
|
34
|
+
server:
|
35
|
+
- Microsoft-IIS/7.0
|
36
|
+
content-type:
|
37
|
+
- text/xml; charset=utf-8
|
38
|
+
body:
|
39
|
+
string: |-
|
40
|
+
<?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><PurchaseChangeAccountRequestResponse xmlns="#Bonsai"><PurchaseChangeAccountRequestResult>0</PurchaseChangeAccountRequestResult><ResultCode>0</ResultCode><Error /><OrderXml><ORDER><ORDERDETAIL _handling_total="0" _oadjust_subtotal="9900" _shipping_total="0" _tax_total="0" _total_total="9900" basket_type="gdshop" bill_to_email="test@outright.com" order_id="1493514" pipeline_response_level="1" privatelabelid="1" shopper_id="922411" source_code="???" third_party_shipping_amount="" transactioncurrency="USD"/><ITEMS><ITEM _oadjust_adjustedprice="9900" dept_id="2438" duration="1.000" gdshop_product_typeid="454" group_id="1291759390" name="Outright - Plus Annual 1 year" period_description="Year(s)" pf_id="2699" quantity="1" recurring_payment="annual" trans_method="service" _row_id="0"/></ITEMS><BASKETERRORS/><PURCHASEERRORS/></ORDER>
|
41
|
+
</OrderXml></PurchaseChangeAccountRequestResponse></soap:Body></soap:Envelope>
|
42
|
+
http_version: "1.1"
|
43
|
+
recorded_at: Fri, 28 Mar 2014 00:23:12 GMT
|
44
|
+
recorded_with: VCR 2.8.0
|