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.
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
@@ -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/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:ChangeAccountRequest><tns:ItemRequestXml>&lt;itemRequest/&gt;</tns:ItemRequestXml><tns:AccountChangeXml>&lt;ClientChange TreeID='1736' ShopperID='922411'/&gt;</tns:AccountChangeXml><tns:RenewalPFID>0</tns:RenewalPFID><tns:IDType>ORION</tns:IDType><tns:ResourceType>outright</tns:ResourceType><tns:RenewalPeriods>0</tns:RenewalPeriods><tns:ResourceID>10e16f14-b606-11e3-a45e-0050569575d8</tns:ResourceID></tns:ChangeAccountRequest></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: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>&lt;itemRequest/&gt;</tns:ItemRequestXml><tns:AccountChangeXml>&lt;ClientChange
11
+ TreeID='2402' ShopperID='923518'/&gt;</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
- - "696"
13
- accept:
14
- - "*/*"
15
- soapaction:
16
- - "\"#Bonsai/ChangeAccountRequest\""
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
- content-type:
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
- server:
30
+ content-type:
31
+ - text/xml; charset=utf-8
32
+ server:
31
33
  - Microsoft-IIS/7.0
32
- date:
33
- - Fri, 28 Mar 2014 00:22:38 GMT
34
- connection:
35
- - close
36
- x-powered-by:
34
+ x-aspnet-version:
35
+ - 4.0.30319
36
+ x-powered-by:
37
37
  - 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><ChangeAccountRequestResponse xmlns="#Bonsai"><ChangeAccountRequestResult>2</ChangeAccountRequestResult><ResultCode>0</ResultCode></ChangeAccountRequestResponse></soap:Body></soap:Envelope>
40
- http_version: "1.1"
41
- recorded_at: Fri, 28 Mar 2014 00:22:40 GMT
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/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:ChangeAccountRequest><tns:ItemRequestXml>&lt;itemRequest/&gt;</tns:ItemRequestXml><tns:AccountChangeXml>&lt;ClientChange TreeID='1735' ShopperID='922411'/&gt;</tns:AccountChangeXml><tns:RenewalPFID>0</tns:RenewalPFID><tns:IDType>ORION</tns:IDType><tns:ResourceType>outright</tns:ResourceType><tns:RenewalPeriods>0</tns:RenewalPeriods><tns:ResourceID>10e16f14-b606-11e3-a45e-0050569575d8</tns:ResourceID></tns:ChangeAccountRequest></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: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>&lt;itemRequest/&gt;</tns:ItemRequestXml><tns:AccountChangeXml>&lt;ClientChange
11
+ TreeID='2410' ShopperID='923518'/&gt;</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
- - "696"
13
- accept:
14
- - "*/*"
15
- soapaction:
16
- - "\"#Bonsai/ChangeAccountRequest\""
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
- content-type:
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
- server:
30
+ content-type:
31
+ - text/xml; charset=utf-8
32
+ server:
31
33
  - Microsoft-IIS/7.0
32
- date:
33
- - Fri, 28 Mar 2014 00:22:40 GMT
34
- connection:
35
- - close
36
- x-powered-by:
34
+ x-aspnet-version:
35
+ - 4.0.30319
36
+ x-powered-by:
37
37
  - 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><ChangeAccountRequestResponse xmlns="#Bonsai"><ChangeAccountRequestResult>1</ChangeAccountRequestResult><ResultCode>0</ResultCode></ChangeAccountRequestResponse></soap:Body></soap:Envelope>
40
- http_version: "1.1"
41
- recorded_at: Fri, 28 Mar 2014 00:22:43 GMT
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/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:ChangeAccountRequest><tns:ItemRequestXml>&lt;itemRequest/&gt;</tns:ItemRequestXml><tns:AccountChangeXml>&lt;ClientChange TreeID='1736' ShopperID='922411'/&gt;</tns:AccountChangeXml><tns:RenewalPFID>0</tns:RenewalPFID><tns:IDType>ORION</tns:IDType><tns:ResourceType>outright</tns:ResourceType><tns:RenewalPeriods>0</tns:RenewalPeriods><tns:ResourceID>unknown</tns:ResourceID></tns:ChangeAccountRequest></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: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>&lt;itemRequest/&gt;</tns:ItemRequestXml><tns:AccountChangeXml>&lt;ClientChange
11
+ TreeID='2402' ShopperID='923518'/&gt;</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
- - "667"
13
- accept:
14
- - "*/*"
15
- soapaction:
16
- - "\"#Bonsai/ChangeAccountRequest\""
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
- content-type:
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
- server:
30
+ content-type:
31
+ - text/xml; charset=utf-8
32
+ server:
31
33
  - Microsoft-IIS/7.0
32
- date:
33
- - Fri, 28 Mar 2014 00:22:38 GMT
34
- connection:
35
- - close
36
- x-powered-by:
34
+ x-aspnet-version:
35
+ - 4.0.30319
36
+ x-powered-by:
37
37
  - 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><ChangeAccountRequestResponse xmlns="#Bonsai"><ChangeAccountRequestResult>-1</ChangeAccountRequestResult><ResultCode>-304</ResultCode></ChangeAccountRequestResponse></soap:Body></soap:Envelope>
40
- http_version: "1.1"
41
- recorded_at: Fri, 28 Mar 2014 00:22:41 GMT
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/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:ChangeAccountRequest><tns:ItemRequestXml>&lt;itemRequest/&gt;</tns:ItemRequestXml><tns:AccountChangeXml>&lt;ClientChange TreeID='1736' ShopperID='922411'/&gt;</tns:AccountChangeXml><tns:RenewalPFID>0</tns:RenewalPFID><tns:IDType>ORION</tns:IDType><tns:ResourceType>flugel</tns:ResourceType><tns:RenewalPeriods>0</tns:RenewalPeriods><tns:ResourceID>10e16f14-b606-11e3-a45e-0050569575d8</tns:ResourceID></tns:ChangeAccountRequest></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: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>&lt;itemRequest/&gt;</tns:ItemRequestXml><tns:AccountChangeXml>&lt;ClientChange
11
+ TreeID='2402' ShopperID='923518'/&gt;</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
- - "694"
13
- accept:
14
- - "*/*"
15
- soapaction:
16
- - "\"#Bonsai/ChangeAccountRequest\""
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
- content-type:
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
- server:
30
+ content-type:
31
+ - text/xml; charset=utf-8
32
+ server:
31
33
  - Microsoft-IIS/7.0
32
- date:
33
- - Fri, 28 Mar 2014 00:22:38 GMT
34
- connection:
35
- - close
36
- x-powered-by:
34
+ x-aspnet-version:
35
+ - 4.0.30319
36
+ x-powered-by:
37
37
  - 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><ChangeAccountRequestResponse xmlns="#Bonsai"><ChangeAccountRequestResult>-1</ChangeAccountRequestResult><ResultCode>-100</ResultCode></ChangeAccountRequestResponse></soap:Body></soap:Envelope>
40
- http_version: "1.1"
41
- recorded_at: Fri, 28 Mar 2014 00:22:41 GMT
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/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:ChangeAccountRequest><tns:ItemRequestXml>&lt;itemRequest/&gt;</tns:ItemRequestXml><tns:AccountChangeXml>&lt;ClientChange TreeID='73541' ShopperID='922411'/&gt;</tns:AccountChangeXml><tns:RenewalPFID>0</tns:RenewalPFID><tns:IDType>ORION</tns:IDType><tns:ResourceType>outright</tns:ResourceType><tns:RenewalPeriods>0</tns:RenewalPeriods><tns:ResourceID>10e16f14-b606-11e3-a45e-0050569575d8</tns:ResourceID></tns:ChangeAccountRequest></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: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>&lt;itemRequest/&gt;</tns:ItemRequestXml><tns:AccountChangeXml>&lt;ClientChange
11
+ TreeID='73541' ShopperID='923518'/&gt;</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
- - "697"
13
- accept:
14
- - "*/*"
15
- soapaction:
16
- - "\"#Bonsai/ChangeAccountRequest\""
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
- content-type:
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
- server:
30
+ content-type:
31
+ - text/xml; charset=utf-8
32
+ server:
31
33
  - Microsoft-IIS/7.0
32
- date:
33
- - Fri, 28 Mar 2014 00:22:40 GMT
34
- connection:
35
- - close
36
- x-powered-by:
34
+ x-aspnet-version:
35
+ - 4.0.30319
36
+ x-powered-by:
37
37
  - 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><ChangeAccountRequestResponse xmlns="#Bonsai"><ChangeAccountRequestResult>-1</ChangeAccountRequestResult><ResultCode>-999</ResultCode></ChangeAccountRequestResponse></soap:Body></soap:Envelope>
40
- http_version: "1.1"
41
- recorded_at: Fri, 28 Mar 2014 00:22:42 GMT
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>&lt;Status&gt;SUCCESS&lt;/Status&gt;</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>&lt;itemRequest/&gt;</tns:ItemRequestXml><tns:AccountPurchaseChangeXml>&lt;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'/&gt;</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