ruby-ecomm-client 1.1.0 → 1.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/.ruby-version +1 -1
- data/Gemfile +1 -0
- data/README.md +10 -0
- data/fixtures/vcr_cassettes/account_info/default.yml +49 -34
- data/fixtures/vcr_cassettes/account_info/unknown/resource_id.yml +42 -34
- data/fixtures/vcr_cassettes/account_info/unknown/resource_type.yml +42 -34
- data/fixtures/vcr_cassettes/account_info/unknown/source_tree_id.yml +42 -34
- data/fixtures/vcr_cassettes/express_checkout/configured.yml +39 -31
- data/fixtures/vcr_cassettes/express_checkout/unknown.yml +39 -31
- data/fixtures/vcr_cassettes/request_change/express/downgrade/default.yml +46 -36
- data/fixtures/vcr_cassettes/request_change/express/downgrade/noop.yml +55 -34
- data/fixtures/vcr_cassettes/request_change/express/downgrade/unknown/resource_id.yml +46 -34
- data/fixtures/vcr_cassettes/request_change/express/downgrade/unknown/resource_type.yml +47 -34
- data/fixtures/vcr_cassettes/request_change/express/downgrade/unknown/target_tree_id.yml +46 -34
- data/fixtures/vcr_cassettes/request_change/express/relay/default.yml +48 -0
- data/fixtures/vcr_cassettes/request_change/express/upgrade/default.yml +55 -36
- data/fixtures/vcr_cassettes/request_change/express/upgrade/noop.yml +46 -34
- data/fixtures/vcr_cassettes/request_change/express/upgrade/unknown/resource_id.yml +46 -34
- data/fixtures/vcr_cassettes/request_change/express/upgrade/unknown/resource_type.yml +47 -34
- data/fixtures/vcr_cassettes/request_change/express/upgrade/unknown/target_tree_id.yml +46 -34
- data/fixtures/vcr_cassettes/request_change/manager/downgrade/default.yml +43 -34
- data/fixtures/vcr_cassettes/request_change/manager/downgrade/noop.yml +43 -34
- data/fixtures/vcr_cassettes/request_change/manager/downgrade/unknown/resource_id.yml +43 -34
- data/fixtures/vcr_cassettes/request_change/manager/downgrade/unknown/resource_type.yml +43 -34
- data/fixtures/vcr_cassettes/request_change/manager/downgrade/unknown/target_tree_id.yml +43 -34
- data/fixtures/vcr_cassettes/request_change/manager/relay/default.yml +100 -0
- data/fixtures/vcr_cassettes/request_change/manager/upgrade/default.yml +43 -34
- data/fixtures/vcr_cassettes/request_change/manager/upgrade/noop.yml +43 -34
- data/fixtures/vcr_cassettes/request_change/manager/upgrade/unknown/resource_id.yml +43 -34
- data/fixtures/vcr_cassettes/request_change/manager/upgrade/unknown/resource_type.yml +43 -34
- data/fixtures/vcr_cassettes/request_change/manager/upgrade/unknown/target_tree_id.yml +43 -34
- data/fixtures/vcr_cassettes/transitions/default/unknown/source_tree_id.yml +42 -34
- data/fixtures/vcr_cassettes/transitions/many.yml +49 -34
- data/fixtures/vcr_cassettes/transitions/one.yml +49 -34
- data/lib/ruby-ecomm-client.rb +13 -1
- data/lib/ruby-ecomm-client/client.rb +19 -148
- data/lib/ruby-ecomm-client/config.rb +25 -0
- data/lib/ruby-ecomm-client/service_base.rb +55 -0
- data/lib/ruby-ecomm-client/service_manager.rb +75 -0
- data/lib/ruby-ecomm-client/service_profile.rb +30 -0
- data/lib/ruby-ecomm-client/service_purchase.rb +79 -0
- data/lib/ruby-ecomm-client/util.rb +16 -0
- data/lib/ruby-ecomm-client/version.rb +1 -1
- data/ruby-ecomm-client.gemspec +2 -1
- data/script/bootstrap +68 -0
- data/script/cibuild +4 -5
- data/spec/ruby-ecomm-client/client_spec.rb +32 -339
- data/spec/ruby-ecomm-client/config_spec.rb +56 -0
- data/spec/ruby-ecomm-client/service_base_spec.rb +119 -0
- data/spec/ruby-ecomm-client/service_manager_spec.rb +285 -0
- data/spec/ruby-ecomm-client/service_profile_spec.rb +33 -0
- data/spec/ruby-ecomm-client/service_purchase_spec.rb +160 -0
- data/spec/ruby-ecomm-client/util_spec.rb +66 -0
- data/spec/spec_helper.rb +10 -0
- metadata +160 -152
- data/lib/ruby-ecomm-client/converter.rb +0 -45
- data/spec/ruby-ecomm-client/converter_spec.rb +0 -96
@@ -1,42 +1,51 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
4
|
method: post
|
5
|
-
uri: http://bonsai.dev.glbt1.gdg/
|
6
|
-
body:
|
7
|
-
|
8
|
-
|
9
|
-
|
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:ChangeAccountRequest><tns:ResourceID>b6be6fd0-c1a5-11e3-8e42-0050569575d8</tns:ResourceID><tns:ResourceType>outright</tns:ResourceType><tns:IDType>ORION</tns:IDType><tns:RenewalPFID>0</tns:RenewalPFID><tns:RenewalPeriods>0</tns:RenewalPeriods><tns:ItemRequestXml><itemRequest/></tns:ItemRequestXml><tns:AccountChangeXml><ClientChange
|
11
|
+
TreeID='2402' ShopperID='923518'/></tns:AccountChangeXml></tns:ChangeAccountRequest></env:Body></env:Envelope>
|
12
|
+
headers:
|
13
|
+
soapaction:
|
14
|
+
- ! '"#Bonsai/ChangeAccountRequest"'
|
15
|
+
content-type:
|
10
16
|
- text/xml;charset=UTF-8
|
11
|
-
content-length:
|
12
|
-
-
|
13
|
-
accept:
|
14
|
-
-
|
15
|
-
|
16
|
-
-
|
17
|
-
response:
|
18
|
-
status:
|
17
|
+
content-length:
|
18
|
+
- '696'
|
19
|
+
accept:
|
20
|
+
- ! '*/*'
|
21
|
+
user-agent:
|
22
|
+
- Ruby
|
23
|
+
response:
|
24
|
+
status:
|
19
25
|
code: 200
|
20
26
|
message: OK
|
21
|
-
headers:
|
22
|
-
|
23
|
-
- text/xml; charset=utf-8
|
24
|
-
content-length:
|
25
|
-
- "407"
|
26
|
-
x-aspnet-version:
|
27
|
-
- 4.0.30319
|
28
|
-
cache-control:
|
27
|
+
headers:
|
28
|
+
cache-control:
|
29
29
|
- private, max-age=0
|
30
|
-
|
30
|
+
content-type:
|
31
|
+
- text/xml; charset=utf-8
|
32
|
+
server:
|
31
33
|
- Microsoft-IIS/7.0
|
32
|
-
|
33
|
-
-
|
34
|
-
|
35
|
-
- close
|
36
|
-
x-powered-by:
|
34
|
+
x-aspnet-version:
|
35
|
+
- 4.0.30319
|
36
|
+
x-powered-by:
|
37
37
|
- ASP.NET
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
38
|
+
date:
|
39
|
+
- Fri, 18 Apr 2014 16:29:17 GMT
|
40
|
+
connection:
|
41
|
+
- close
|
42
|
+
content-length:
|
43
|
+
- '407'
|
44
|
+
body:
|
45
|
+
encoding: US-ASCII
|
46
|
+
string: <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
|
47
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><ChangeAccountRequestResponse
|
48
|
+
xmlns="#Bonsai"><ChangeAccountRequestResult>1</ChangeAccountRequestResult><ResultCode>0</ResultCode></ChangeAccountRequestResponse></soap:Body></soap:Envelope>
|
49
|
+
http_version: '1.1'
|
50
|
+
recorded_at: Fri, 18 Apr 2014 16:30:16 GMT
|
42
51
|
recorded_with: VCR 2.8.0
|
@@ -1,42 +1,51 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
4
|
method: post
|
5
|
-
uri: http://bonsai.dev.glbt1.gdg/
|
6
|
-
body:
|
7
|
-
|
8
|
-
|
9
|
-
|
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:ChangeAccountRequest><tns:ResourceID>b6be6fd0-c1a5-11e3-8e42-0050569575d8</tns:ResourceID><tns:ResourceType>outright</tns:ResourceType><tns:IDType>ORION</tns:IDType><tns:RenewalPFID>0</tns:RenewalPFID><tns:RenewalPeriods>0</tns:RenewalPeriods><tns:ItemRequestXml><itemRequest/></tns:ItemRequestXml><tns:AccountChangeXml><ClientChange
|
11
|
+
TreeID='2410' ShopperID='923518'/></tns:AccountChangeXml></tns:ChangeAccountRequest></env:Body></env:Envelope>
|
12
|
+
headers:
|
13
|
+
soapaction:
|
14
|
+
- ! '"#Bonsai/ChangeAccountRequest"'
|
15
|
+
content-type:
|
10
16
|
- text/xml;charset=UTF-8
|
11
|
-
content-length:
|
12
|
-
-
|
13
|
-
accept:
|
14
|
-
-
|
15
|
-
|
16
|
-
-
|
17
|
-
response:
|
18
|
-
status:
|
17
|
+
content-length:
|
18
|
+
- '696'
|
19
|
+
accept:
|
20
|
+
- ! '*/*'
|
21
|
+
user-agent:
|
22
|
+
- Ruby
|
23
|
+
response:
|
24
|
+
status:
|
19
25
|
code: 200
|
20
26
|
message: OK
|
21
|
-
headers:
|
22
|
-
|
23
|
-
- text/xml; charset=utf-8
|
24
|
-
content-length:
|
25
|
-
- "407"
|
26
|
-
x-aspnet-version:
|
27
|
-
- 4.0.30319
|
28
|
-
cache-control:
|
27
|
+
headers:
|
28
|
+
cache-control:
|
29
29
|
- private, max-age=0
|
30
|
-
|
30
|
+
content-type:
|
31
|
+
- text/xml; charset=utf-8
|
32
|
+
server:
|
31
33
|
- Microsoft-IIS/7.0
|
32
|
-
|
33
|
-
-
|
34
|
-
|
35
|
-
- close
|
36
|
-
x-powered-by:
|
34
|
+
x-aspnet-version:
|
35
|
+
- 4.0.30319
|
36
|
+
x-powered-by:
|
37
37
|
- ASP.NET
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
38
|
+
date:
|
39
|
+
- Fri, 18 Apr 2014 16:29:23 GMT
|
40
|
+
connection:
|
41
|
+
- close
|
42
|
+
content-length:
|
43
|
+
- '407'
|
44
|
+
body:
|
45
|
+
encoding: US-ASCII
|
46
|
+
string: <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
|
47
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><ChangeAccountRequestResponse
|
48
|
+
xmlns="#Bonsai"><ChangeAccountRequestResult>2</ChangeAccountRequestResult><ResultCode>0</ResultCode></ChangeAccountRequestResponse></soap:Body></soap:Envelope>
|
49
|
+
http_version: '1.1'
|
50
|
+
recorded_at: Fri, 18 Apr 2014 16:30:22 GMT
|
42
51
|
recorded_with: VCR 2.8.0
|
@@ -1,42 +1,51 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
4
|
method: post
|
5
|
-
uri: http://bonsai.dev.glbt1.gdg/
|
6
|
-
body:
|
7
|
-
|
8
|
-
|
9
|
-
|
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:ChangeAccountRequest><tns:ResourceID>unknown</tns:ResourceID><tns:ResourceType>outright</tns:ResourceType><tns:IDType>ORION</tns:IDType><tns:RenewalPFID>0</tns:RenewalPFID><tns:RenewalPeriods>0</tns:RenewalPeriods><tns:ItemRequestXml><itemRequest/></tns:ItemRequestXml><tns:AccountChangeXml><ClientChange
|
11
|
+
TreeID='2402' ShopperID='923518'/></tns:AccountChangeXml></tns:ChangeAccountRequest></env:Body></env:Envelope>
|
12
|
+
headers:
|
13
|
+
soapaction:
|
14
|
+
- ! '"#Bonsai/ChangeAccountRequest"'
|
15
|
+
content-type:
|
10
16
|
- text/xml;charset=UTF-8
|
11
|
-
content-length:
|
12
|
-
-
|
13
|
-
accept:
|
14
|
-
-
|
15
|
-
|
16
|
-
-
|
17
|
-
response:
|
18
|
-
status:
|
17
|
+
content-length:
|
18
|
+
- '667'
|
19
|
+
accept:
|
20
|
+
- ! '*/*'
|
21
|
+
user-agent:
|
22
|
+
- Ruby
|
23
|
+
response:
|
24
|
+
status:
|
19
25
|
code: 200
|
20
26
|
message: OK
|
21
|
-
headers:
|
22
|
-
|
23
|
-
- text/xml; charset=utf-8
|
24
|
-
content-length:
|
25
|
-
- "411"
|
26
|
-
x-aspnet-version:
|
27
|
-
- 4.0.30319
|
28
|
-
cache-control:
|
27
|
+
headers:
|
28
|
+
cache-control:
|
29
29
|
- private, max-age=0
|
30
|
-
|
30
|
+
content-type:
|
31
|
+
- text/xml; charset=utf-8
|
32
|
+
server:
|
31
33
|
- Microsoft-IIS/7.0
|
32
|
-
|
33
|
-
-
|
34
|
-
|
35
|
-
- close
|
36
|
-
x-powered-by:
|
34
|
+
x-aspnet-version:
|
35
|
+
- 4.0.30319
|
36
|
+
x-powered-by:
|
37
37
|
- ASP.NET
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
38
|
+
date:
|
39
|
+
- Fri, 18 Apr 2014 16:29:17 GMT
|
40
|
+
connection:
|
41
|
+
- close
|
42
|
+
content-length:
|
43
|
+
- '411'
|
44
|
+
body:
|
45
|
+
encoding: US-ASCII
|
46
|
+
string: <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
|
47
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><ChangeAccountRequestResponse
|
48
|
+
xmlns="#Bonsai"><ChangeAccountRequestResult>-1</ChangeAccountRequestResult><ResultCode>-304</ResultCode></ChangeAccountRequestResponse></soap:Body></soap:Envelope>
|
49
|
+
http_version: '1.1'
|
50
|
+
recorded_at: Fri, 18 Apr 2014 16:30:16 GMT
|
42
51
|
recorded_with: VCR 2.8.0
|
@@ -1,42 +1,51 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
4
|
method: post
|
5
|
-
uri: http://bonsai.dev.glbt1.gdg/
|
6
|
-
body:
|
7
|
-
|
8
|
-
|
9
|
-
|
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:ChangeAccountRequest><tns:ResourceID>b6be6fd0-c1a5-11e3-8e42-0050569575d8</tns:ResourceID><tns:ResourceType>flugel</tns:ResourceType><tns:IDType>ORION</tns:IDType><tns:RenewalPFID>0</tns:RenewalPFID><tns:RenewalPeriods>0</tns:RenewalPeriods><tns:ItemRequestXml><itemRequest/></tns:ItemRequestXml><tns:AccountChangeXml><ClientChange
|
11
|
+
TreeID='2402' ShopperID='923518'/></tns:AccountChangeXml></tns:ChangeAccountRequest></env:Body></env:Envelope>
|
12
|
+
headers:
|
13
|
+
soapaction:
|
14
|
+
- ! '"#Bonsai/ChangeAccountRequest"'
|
15
|
+
content-type:
|
10
16
|
- text/xml;charset=UTF-8
|
11
|
-
content-length:
|
12
|
-
-
|
13
|
-
accept:
|
14
|
-
-
|
15
|
-
|
16
|
-
-
|
17
|
-
response:
|
18
|
-
status:
|
17
|
+
content-length:
|
18
|
+
- '694'
|
19
|
+
accept:
|
20
|
+
- ! '*/*'
|
21
|
+
user-agent:
|
22
|
+
- Ruby
|
23
|
+
response:
|
24
|
+
status:
|
19
25
|
code: 200
|
20
26
|
message: OK
|
21
|
-
headers:
|
22
|
-
|
23
|
-
- text/xml; charset=utf-8
|
24
|
-
content-length:
|
25
|
-
- "411"
|
26
|
-
x-aspnet-version:
|
27
|
-
- 4.0.30319
|
28
|
-
cache-control:
|
27
|
+
headers:
|
28
|
+
cache-control:
|
29
29
|
- private, max-age=0
|
30
|
-
|
30
|
+
content-type:
|
31
|
+
- text/xml; charset=utf-8
|
32
|
+
server:
|
31
33
|
- Microsoft-IIS/7.0
|
32
|
-
|
33
|
-
-
|
34
|
-
|
35
|
-
- close
|
36
|
-
x-powered-by:
|
34
|
+
x-aspnet-version:
|
35
|
+
- 4.0.30319
|
36
|
+
x-powered-by:
|
37
37
|
- ASP.NET
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
38
|
+
date:
|
39
|
+
- Fri, 18 Apr 2014 16:29:17 GMT
|
40
|
+
connection:
|
41
|
+
- close
|
42
|
+
content-length:
|
43
|
+
- '411'
|
44
|
+
body:
|
45
|
+
encoding: US-ASCII
|
46
|
+
string: <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
|
47
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><ChangeAccountRequestResponse
|
48
|
+
xmlns="#Bonsai"><ChangeAccountRequestResult>-1</ChangeAccountRequestResult><ResultCode>-100</ResultCode></ChangeAccountRequestResponse></soap:Body></soap:Envelope>
|
49
|
+
http_version: '1.1'
|
50
|
+
recorded_at: Fri, 18 Apr 2014 16:30:16 GMT
|
42
51
|
recorded_with: VCR 2.8.0
|
@@ -1,42 +1,51 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
4
|
method: post
|
5
|
-
uri: http://bonsai.dev.glbt1.gdg/
|
6
|
-
body:
|
7
|
-
|
8
|
-
|
9
|
-
|
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:ChangeAccountRequest><tns:ResourceID>b6be6fd0-c1a5-11e3-8e42-0050569575d8</tns:ResourceID><tns:ResourceType>outright</tns:ResourceType><tns:IDType>ORION</tns:IDType><tns:RenewalPFID>0</tns:RenewalPFID><tns:RenewalPeriods>0</tns:RenewalPeriods><tns:ItemRequestXml><itemRequest/></tns:ItemRequestXml><tns:AccountChangeXml><ClientChange
|
11
|
+
TreeID='73541' ShopperID='923518'/></tns:AccountChangeXml></tns:ChangeAccountRequest></env:Body></env:Envelope>
|
12
|
+
headers:
|
13
|
+
soapaction:
|
14
|
+
- ! '"#Bonsai/ChangeAccountRequest"'
|
15
|
+
content-type:
|
10
16
|
- text/xml;charset=UTF-8
|
11
|
-
content-length:
|
12
|
-
-
|
13
|
-
accept:
|
14
|
-
-
|
15
|
-
|
16
|
-
-
|
17
|
-
response:
|
18
|
-
status:
|
17
|
+
content-length:
|
18
|
+
- '697'
|
19
|
+
accept:
|
20
|
+
- ! '*/*'
|
21
|
+
user-agent:
|
22
|
+
- Ruby
|
23
|
+
response:
|
24
|
+
status:
|
19
25
|
code: 200
|
20
26
|
message: OK
|
21
|
-
headers:
|
22
|
-
|
23
|
-
- text/xml; charset=utf-8
|
24
|
-
content-length:
|
25
|
-
- "411"
|
26
|
-
x-aspnet-version:
|
27
|
-
- 4.0.30319
|
28
|
-
cache-control:
|
27
|
+
headers:
|
28
|
+
cache-control:
|
29
29
|
- private, max-age=0
|
30
|
-
|
30
|
+
content-type:
|
31
|
+
- text/xml; charset=utf-8
|
32
|
+
server:
|
31
33
|
- Microsoft-IIS/7.0
|
32
|
-
|
33
|
-
-
|
34
|
-
|
35
|
-
- close
|
36
|
-
x-powered-by:
|
34
|
+
x-aspnet-version:
|
35
|
+
- 4.0.30319
|
36
|
+
x-powered-by:
|
37
37
|
- ASP.NET
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
38
|
+
date:
|
39
|
+
- Fri, 18 Apr 2014 16:29:21 GMT
|
40
|
+
connection:
|
41
|
+
- close
|
42
|
+
content-length:
|
43
|
+
- '411'
|
44
|
+
body:
|
45
|
+
encoding: US-ASCII
|
46
|
+
string: <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
|
47
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><ChangeAccountRequestResponse
|
48
|
+
xmlns="#Bonsai"><ChangeAccountRequestResult>-1</ChangeAccountRequestResult><ResultCode>-999</ResultCode></ChangeAccountRequestResponse></soap:Body></soap:Envelope>
|
49
|
+
http_version: '1.1'
|
50
|
+
recorded_at: Fri, 18 Apr 2014 16:30:20 GMT
|
42
51
|
recorded_with: VCR 2.8.0
|
@@ -0,0 +1,100 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://gdcomm.dev.glbt1.gdg/WSgdInstantPurchasePublic/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="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:
|
15
|
+
- text/xml;charset=UTF-8
|
16
|
+
content-length:
|
17
|
+
- '389'
|
18
|
+
accept:
|
19
|
+
- ! '*/*'
|
20
|
+
user-agent:
|
21
|
+
- Ruby
|
22
|
+
response:
|
23
|
+
status:
|
24
|
+
code: 200
|
25
|
+
message: OK
|
26
|
+
headers:
|
27
|
+
cache-control:
|
28
|
+
- private, max-age=0
|
29
|
+
content-type:
|
30
|
+
- text/xml; charset=utf-8
|
31
|
+
server:
|
32
|
+
- Microsoft-IIS/7.0
|
33
|
+
x-aspnet-version:
|
34
|
+
- 2.0.50727
|
35
|
+
x-powered-by:
|
36
|
+
- ASP.NET
|
37
|
+
date:
|
38
|
+
- Wed, 07 May 2014 01:19:56 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><Status>SUCCESS</Status></ShopperHasInstantPurchasePaymentResult><bHasInstantPurchasePayment>true</bHasInstantPurchasePayment></ShopperHasInstantPurchasePaymentResponse></soap:Body></soap:Envelope>
|
46
|
+
http_version: '1.1'
|
47
|
+
recorded_at: Wed, 07 May 2014 01:19:57 GMT
|
48
|
+
- request:
|
49
|
+
method: post
|
50
|
+
uri: https://bonsaipurchase.dev.glbt1.gdg/BonsaiPurchase/Service.asmx
|
51
|
+
body:
|
52
|
+
encoding: US-ASCII
|
53
|
+
string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
54
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="#Bonsai"
|
55
|
+
xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Body><tns:PurchaseChangeAccountRequest><tns:ResourceID>b6be6fd0-c1a5-11e3-8e42-0050569575d8</tns:ResourceID><tns:ResourceType>outright</tns:ResourceType><tns:IDType>ORION</tns:IDType><tns:RenewalPFID>0</tns:RenewalPFID><tns:RenewalPeriods>0</tns:RenewalPeriods><tns:ItemRequestXml><itemRequest/></tns:ItemRequestXml><tns:AccountPurchaseChangeXml><ClientChange
|
56
|
+
TreeID='37' ShopperID='923518' TransactionCurrency='USD' RequestingApp='outright'
|
57
|
+
RequestingAppHost='LM126196-SSAND.local' ClientAddr='127.0.0.1' EnteredBy='customer'
|
58
|
+
OrderSource='Online' RedirectToBasket='false' EstimateOnly='false' SendConfirmEmail='false'/></tns:AccountPurchaseChangeXml></tns:PurchaseChangeAccountRequest></env:Body></env:Envelope>
|
59
|
+
headers:
|
60
|
+
soapaction:
|
61
|
+
- ! '"#Bonsai/PurchaseChangeAccountRequest"'
|
62
|
+
content-type:
|
63
|
+
- text/xml;charset=UTF-8
|
64
|
+
content-length:
|
65
|
+
- '954'
|
66
|
+
accept:
|
67
|
+
- ! '*/*'
|
68
|
+
user-agent:
|
69
|
+
- Ruby
|
70
|
+
response:
|
71
|
+
status:
|
72
|
+
code: 200
|
73
|
+
message: OK
|
74
|
+
headers:
|
75
|
+
cache-control:
|
76
|
+
- private, max-age=0
|
77
|
+
content-type:
|
78
|
+
- text/xml; charset=utf-8
|
79
|
+
server:
|
80
|
+
- Microsoft-IIS/7.0
|
81
|
+
x-aspnet-version:
|
82
|
+
- 4.0.30319
|
83
|
+
x-powered-by:
|
84
|
+
- ASP.NET
|
85
|
+
date:
|
86
|
+
- Wed, 07 May 2014 01:20:03 GMT
|
87
|
+
connection:
|
88
|
+
- close
|
89
|
+
content-length:
|
90
|
+
- '530'
|
91
|
+
body:
|
92
|
+
encoding: US-ASCII
|
93
|
+
string: <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
|
94
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><PurchaseChangeAccountRequestResponse
|
95
|
+
xmlns="#Bonsai"><PurchaseChangeAccountRequestResult>-1</PurchaseChangeAccountRequestResult><ResultCode>-313</ResultCode><Error>No
|
96
|
+
Active Transition exists. FROM Tree ID:2410 TO Tree ID:37</Error><OrderXml
|
97
|
+
/></PurchaseChangeAccountRequestResponse></soap:Body></soap:Envelope>
|
98
|
+
http_version: '1.1'
|
99
|
+
recorded_at: Wed, 07 May 2014 01:20:04 GMT
|
100
|
+
recorded_with: VCR 2.8.0
|