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
checksums.yaml
ADDED
@@ -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=
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
1.9.3-p545
|
data/Gemfile
CHANGED
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/
|
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: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
|
-
-
|
13
|
-
accept:
|
14
|
-
-
|
15
|
-
|
16
|
-
-
|
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
|
-
|
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
|
-
|
29
|
+
content-type:
|
30
|
+
- text/xml; charset=utf-8
|
31
|
+
server:
|
31
32
|
- Microsoft-IIS/7.0
|
32
|
-
|
33
|
-
-
|
34
|
-
|
35
|
-
- close
|
36
|
-
x-powered-by:
|
33
|
+
x-aspnet-version:
|
34
|
+
- 4.0.30319
|
35
|
+
x-powered-by:
|
37
36
|
- ASP.NET
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
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/
|
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: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
|
-
-
|
13
|
-
accept:
|
14
|
-
-
|
15
|
-
|
16
|
-
-
|
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
|
-
|
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
|
-
|
29
|
+
content-type:
|
30
|
+
- text/xml; charset=utf-8
|
31
|
+
server:
|
31
32
|
- Microsoft-IIS/7.0
|
32
|
-
|
33
|
-
-
|
34
|
-
|
35
|
-
- close
|
36
|
-
x-powered-by:
|
33
|
+
x-aspnet-version:
|
34
|
+
- 4.0.30319
|
35
|
+
x-powered-by:
|
37
36
|
- ASP.NET
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
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/
|
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: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
|
-
-
|
13
|
-
accept:
|
14
|
-
-
|
15
|
-
|
16
|
-
-
|
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
|
-
|
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
|
-
|
29
|
+
content-type:
|
30
|
+
- text/xml; charset=utf-8
|
31
|
+
server:
|
31
32
|
- Microsoft-IIS/7.0
|
32
|
-
|
33
|
-
-
|
34
|
-
|
35
|
-
- close
|
36
|
-
x-powered-by:
|
33
|
+
x-aspnet-version:
|
34
|
+
- 4.0.30319
|
35
|
+
x-powered-by:
|
37
36
|
- ASP.NET
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
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/
|
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: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
|
-
-
|
13
|
-
accept:
|
14
|
-
-
|
15
|
-
|
16
|
-
-
|
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
|
-
|
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
|
-
|
29
|
+
content-type:
|
30
|
+
- text/xml; charset=utf-8
|
31
|
+
server:
|
31
32
|
- Microsoft-IIS/7.0
|
32
|
-
|
33
|
-
-
|
34
|
-
|
35
|
-
- close
|
36
|
-
x-powered-by:
|
33
|
+
x-aspnet-version:
|
34
|
+
- 4.0.30319
|
35
|
+
x-powered-by:
|
37
36
|
- ASP.NET
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
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
|
-
|
8
|
-
|
9
|
-
|
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
|
-
-
|
13
|
-
accept:
|
14
|
-
-
|
15
|
-
|
16
|
-
-
|
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
|
-
|
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
|
-
|
29
|
+
content-type:
|
30
|
+
- text/xml; charset=utf-8
|
31
|
+
server:
|
31
32
|
- Microsoft-IIS/7.0
|
32
|
-
|
33
|
-
-
|
34
|
-
x-powered-by:
|
33
|
+
x-aspnet-version:
|
34
|
+
- 2.0.50727
|
35
|
+
x-powered-by:
|
35
36
|
- ASP.NET
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
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><Status>SUCCESS</Status></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
|