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
@@ -0,0 +1,48 @@
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:03 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:04 GMT
48
+ recorded_with: VCR 2.8.0
@@ -1,44 +1,63 @@
1
- ---
2
- http_interactions:
3
- - request:
1
+ ---
2
+ http_interactions:
3
+ - request:
4
4
  method: post
5
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>&lt;itemRequest/&gt;</tns:ItemRequestXml><tns:IDType>ORION</tns:IDType><tns:ResourceID>10e16f14-b606-11e3-a45e-0050569575d8</tns:ResourceID><tns:AccountPurchaseChangeXml>&lt;ClientChange TreeID='1737' 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'/&gt;</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:
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: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
11
+ TreeID='2418' ShopperID='923518' TransactionCurrency='USD' RequestingApp='outright'
12
+ RequestingAppHost='LM126196-SSAND.local' ClientAddr='127.0.0.1' EnteredBy='customer'
13
+ OrderSource='Online' RedirectToBasket='false' EstimateOnly='false' SendConfirmEmail='false'/&gt;</tns:AccountPurchaseChangeXml></tns:PurchaseChangeAccountRequest></env:Body></env:Envelope>
14
+ headers:
15
+ soapaction:
16
+ - ! '"#Bonsai/PurchaseChangeAccountRequest"'
17
+ content-type:
16
18
  - text/xml;charset=UTF-8
17
- response:
18
- status:
19
+ content-length:
20
+ - '956'
21
+ accept:
22
+ - ! '*/*'
23
+ user-agent:
24
+ - Ruby
25
+ response:
26
+ status:
19
27
  code: 200
20
28
  message: OK
21
- headers:
22
- connection:
23
- - close
24
- x-aspnet-version:
25
- - 4.0.30319
26
- content-length:
27
- - "1186"
28
- date:
29
- - Fri, 28 Mar 2014 00:23:05 GMT
30
- x-powered-by:
31
- - ASP.NET
32
- cache-control:
29
+ headers:
30
+ cache-control:
33
31
  - private, max-age=0
34
- server:
35
- - Microsoft-IIS/7.0
36
- content-type:
32
+ content-type:
37
33
  - 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>&lt;ORDER&gt;&lt;ORDERDETAIL _handling_total="0" _oadjust_subtotal="9995" _shipping_total="0" _tax_total="0" _total_total="9995" basket_type="gdshop" bill_to_email="test@outright.com" order_id="1493513" pipeline_response_level="1" privatelabelid="1" shopper_id="922411" source_code="???" third_party_shipping_amount="" transactioncurrency="USD"/&gt;&lt;ITEMS&gt;&lt;ITEM _oadjust_adjustedprice="9995" dept_id="2438" duration="0.500" gdshop_product_typeid="454" group_id="1291752265" name="Outright - Plus Annual 2 years" period_description="Period(s)" pf_id="2703" quantity="1" recurring_payment="annual" trans_method="service" _row_id="0"/&gt;&lt;/ITEMS&gt;&lt;BASKETERRORS/&gt;&lt;PURCHASEERRORS/&gt;&lt;/ORDER&gt;
41
- </OrderXml></PurchaseChangeAccountRequestResponse></soap:Body></soap:Envelope>
42
- http_version: "1.1"
43
- recorded_at: Fri, 28 Mar 2014 00:23:07 GMT
34
+ server:
35
+ - Microsoft-IIS/7.0
36
+ x-aspnet-version:
37
+ - 4.0.30319
38
+ x-powered-by:
39
+ - ASP.NET
40
+ date:
41
+ - Fri, 18 Apr 2014 16:29:26 GMT
42
+ connection:
43
+ - close
44
+ content-length:
45
+ - '1182'
46
+ body:
47
+ encoding: US-ASCII
48
+ string: ! '<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
49
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><PurchaseChangeAccountRequestResponse
50
+ xmlns="#Bonsai"><PurchaseChangeAccountRequestResult>0</PurchaseChangeAccountRequestResult><ResultCode>0</ResultCode><Error
51
+ /><OrderXml>&lt;ORDER&gt;&lt;ORDERDETAIL _handling_total="0" _oadjust_subtotal="767"
52
+ _shipping_total="0" _tax_total="0" _total_total="767" basket_type="gdshop"
53
+ bill_to_email="danica@outright.com" order_id="1495222" pipeline_response_level="1"
54
+ privatelabelid="1" shopper_id="923518" source_code="???" third_party_shipping_amount=""
55
+ transactioncurrency="USD"/&gt;&lt;ITEMS&gt;&lt;ITEM _oadjust_adjustedprice="767"
56
+ dept_id="2438" duration="0.767" gdshop_product_typeid="454" group_id="730750375"
57
+ name="Get Paid Premium - Monthly" period_description="Month(s)" pf_id="326388"
58
+ quantity="1" recurring_payment="monthly" trans_method="service" _row_id="0"/&gt;&lt;/ITEMS&gt;&lt;BASKETERRORS/&gt;&lt;PURCHASEERRORS/&gt;&lt;/ORDER&gt;
59
+
60
+ </OrderXml></PurchaseChangeAccountRequestResponse></soap:Body></soap:Envelope>'
61
+ http_version: '1.1'
62
+ recorded_at: Fri, 18 Apr 2014 16:30:24 GMT
44
63
  recorded_with: VCR 2.8.0
@@ -1,42 +1,54 @@
1
- ---
2
- http_interactions:
3
- - request:
1
+ ---
2
+ http_interactions:
3
+ - request:
4
4
  method: post
5
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>&lt;itemRequest/&gt;</tns:ItemRequestXml><tns:IDType>ORION</tns:IDType><tns:ResourceID>10e16f14-b606-11e3-a45e-0050569575d8</tns:ResourceID><tns:AccountPurchaseChangeXml>&lt;ClientChange TreeID='1735' 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'/&gt;</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:
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: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
11
+ TreeID='2410' ShopperID='923518' TransactionCurrency='USD' RequestingApp='outright'
12
+ RequestingAppHost='LM126196-SSAND.local' ClientAddr='127.0.0.1' EnteredBy='customer'
13
+ OrderSource='Online' RedirectToBasket='false' EstimateOnly='false' SendConfirmEmail='false'/&gt;</tns:AccountPurchaseChangeXml></tns:PurchaseChangeAccountRequest></env:Body></env:Envelope>
14
+ headers:
15
+ soapaction:
16
+ - ! '"#Bonsai/PurchaseChangeAccountRequest"'
17
+ content-type:
16
18
  - text/xml;charset=UTF-8
17
- response:
18
- status:
19
+ content-length:
20
+ - '956'
21
+ accept:
22
+ - ! '*/*'
23
+ user-agent:
24
+ - Ruby
25
+ response:
26
+ status:
19
27
  code: 200
20
28
  message: OK
21
- headers:
22
- connection:
23
- - close
24
- x-aspnet-version:
25
- - 4.0.30319
26
- content-length:
27
- - "460"
28
- date:
29
- - Fri, 28 Mar 2014 00:23:09 GMT
30
- x-powered-by:
31
- - ASP.NET
32
- cache-control:
29
+ headers:
30
+ cache-control:
33
31
  - private, max-age=0
34
- server:
35
- - Microsoft-IIS/7.0
36
- content-type:
32
+ content-type:
37
33
  - text/xml; charset=utf-8
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><PurchaseChangeAccountRequestResponse xmlns="#Bonsai"><PurchaseChangeAccountRequestResult>1</PurchaseChangeAccountRequestResult><ResultCode>0</ResultCode><Error /><OrderXml /></PurchaseChangeAccountRequestResponse></soap:Body></soap:Envelope>
40
- http_version: "1.1"
41
- recorded_at: Fri, 28 Mar 2014 00:23:11 GMT
34
+ server:
35
+ - Microsoft-IIS/7.0
36
+ x-aspnet-version:
37
+ - 4.0.30319
38
+ x-powered-by:
39
+ - ASP.NET
40
+ date:
41
+ - Fri, 18 Apr 2014 16:29:27 GMT
42
+ connection:
43
+ - close
44
+ content-length:
45
+ - '460'
46
+ body:
47
+ encoding: US-ASCII
48
+ string: <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
49
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><PurchaseChangeAccountRequestResponse
50
+ xmlns="#Bonsai"><PurchaseChangeAccountRequestResult>1</PurchaseChangeAccountRequestResult><ResultCode>0</ResultCode><Error
51
+ /><OrderXml /></PurchaseChangeAccountRequestResponse></soap:Body></soap:Envelope>
52
+ http_version: '1.1'
53
+ recorded_at: Fri, 18 Apr 2014 16:30:26 GMT
42
54
  recorded_with: VCR 2.8.0
@@ -1,42 +1,54 @@
1
- ---
2
- http_interactions:
3
- - request:
1
+ ---
2
+ http_interactions:
3
+ - request:
4
4
  method: post
5
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>&lt;itemRequest/&gt;</tns:ItemRequestXml><tns:IDType>ORION</tns:IDType><tns:ResourceID>unknown</tns:ResourceID><tns:AccountPurchaseChangeXml>&lt;ClientChange TreeID='1737' 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'/&gt;</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
- - "927"
15
- content-type:
6
+ body:
7
+ encoding: US-ASCII
8
+ string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
9
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="#Bonsai"
10
+ xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Body><tns:PurchaseChangeAccountRequest><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:AccountPurchaseChangeXml>&lt;ClientChange
11
+ TreeID='2418' ShopperID='923518' TransactionCurrency='USD' RequestingApp='outright'
12
+ RequestingAppHost='LM126196-SSAND.local' ClientAddr='127.0.0.1' EnteredBy='customer'
13
+ OrderSource='Online' RedirectToBasket='false' EstimateOnly='false' SendConfirmEmail='false'/&gt;</tns:AccountPurchaseChangeXml></tns:PurchaseChangeAccountRequest></env:Body></env:Envelope>
14
+ headers:
15
+ soapaction:
16
+ - ! '"#Bonsai/PurchaseChangeAccountRequest"'
17
+ content-type:
16
18
  - text/xml;charset=UTF-8
17
- response:
18
- status:
19
+ content-length:
20
+ - '927'
21
+ accept:
22
+ - ! '*/*'
23
+ user-agent:
24
+ - Ruby
25
+ response:
26
+ status:
19
27
  code: 200
20
28
  message: OK
21
- headers:
22
- connection:
23
- - close
24
- x-aspnet-version:
25
- - 4.0.30319
26
- content-length:
27
- - "507"
28
- date:
29
- - Fri, 28 Mar 2014 00:23:06 GMT
30
- x-powered-by:
31
- - ASP.NET
32
- cache-control:
29
+ headers:
30
+ cache-control:
33
31
  - private, max-age=0
34
- server:
35
- - Microsoft-IIS/7.0
36
- content-type:
32
+ content-type:
37
33
  - text/xml; charset=utf-8
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><PurchaseChangeAccountRequestResponse xmlns="#Bonsai"><PurchaseChangeAccountRequestResult>-1</PurchaseChangeAccountRequestResult><ResultCode>-304</ResultCode><Error>Invalid external resource ID provided</Error><OrderXml /></PurchaseChangeAccountRequestResponse></soap:Body></soap:Envelope>
40
- http_version: "1.1"
41
- recorded_at: Fri, 28 Mar 2014 00:23:08 GMT
34
+ server:
35
+ - Microsoft-IIS/7.0
36
+ x-aspnet-version:
37
+ - 4.0.30319
38
+ x-powered-by:
39
+ - ASP.NET
40
+ date:
41
+ - Fri, 18 Apr 2014 16:29:26 GMT
42
+ connection:
43
+ - close
44
+ content-length:
45
+ - '507'
46
+ body:
47
+ encoding: US-ASCII
48
+ string: <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
49
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><PurchaseChangeAccountRequestResponse
50
+ xmlns="#Bonsai"><PurchaseChangeAccountRequestResult>-1</PurchaseChangeAccountRequestResult><ResultCode>-304</ResultCode><Error>Invalid
51
+ external resource ID provided</Error><OrderXml /></PurchaseChangeAccountRequestResponse></soap:Body></soap:Envelope>
52
+ http_version: '1.1'
53
+ recorded_at: Fri, 18 Apr 2014 16:30:25 GMT
42
54
  recorded_with: VCR 2.8.0
@@ -1,42 +1,55 @@
1
- ---
2
- http_interactions:
3
- - request:
1
+ ---
2
+ http_interactions:
3
+ - request:
4
4
  method: post
5
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>&lt;itemRequest/&gt;</tns:ItemRequestXml><tns:IDType>ORION</tns:IDType><tns:ResourceID>10e16f14-b606-11e3-a45e-0050569575d8</tns:ResourceID><tns:AccountPurchaseChangeXml>&lt;ClientChange TreeID='1737' 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'/&gt;</tns:AccountPurchaseChangeXml><tns:ResourceType>flugel</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
- - "954"
15
- content-type:
6
+ body:
7
+ encoding: US-ASCII
8
+ string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
9
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="#Bonsai"
10
+ xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Body><tns:PurchaseChangeAccountRequest><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:AccountPurchaseChangeXml>&lt;ClientChange
11
+ TreeID='2418' ShopperID='923518' TransactionCurrency='USD' RequestingApp='outright'
12
+ RequestingAppHost='LM126196-SSAND.local' ClientAddr='127.0.0.1' EnteredBy='customer'
13
+ OrderSource='Online' RedirectToBasket='false' EstimateOnly='false' SendConfirmEmail='false'/&gt;</tns:AccountPurchaseChangeXml></tns:PurchaseChangeAccountRequest></env:Body></env:Envelope>
14
+ headers:
15
+ soapaction:
16
+ - ! '"#Bonsai/PurchaseChangeAccountRequest"'
17
+ content-type:
16
18
  - text/xml;charset=UTF-8
17
- response:
18
- status:
19
+ content-length:
20
+ - '954'
21
+ accept:
22
+ - ! '*/*'
23
+ user-agent:
24
+ - Ruby
25
+ response:
26
+ status:
19
27
  code: 200
20
28
  message: OK
21
- headers:
22
- connection:
23
- - close
24
- x-aspnet-version:
25
- - 4.0.30319
26
- content-length:
27
- - "535"
28
- date:
29
- - Fri, 28 Mar 2014 00:23:05 GMT
30
- x-powered-by:
31
- - ASP.NET
32
- cache-control:
29
+ headers:
30
+ cache-control:
33
31
  - private, max-age=0
34
- server:
35
- - Microsoft-IIS/7.0
36
- content-type:
32
+ content-type:
37
33
  - text/xml; charset=utf-8
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><PurchaseChangeAccountRequestResponse xmlns="#Bonsai"><PurchaseChangeAccountRequestResult>-1</PurchaseChangeAccountRequestResult><ResultCode>-100</ResultCode><Error>No row found for requested resource mapping [ResourceType] flugel</Error><OrderXml /></PurchaseChangeAccountRequestResponse></soap:Body></soap:Envelope>
40
- http_version: "1.1"
41
- recorded_at: Fri, 28 Mar 2014 00:23:08 GMT
34
+ server:
35
+ - Microsoft-IIS/7.0
36
+ x-aspnet-version:
37
+ - 4.0.30319
38
+ x-powered-by:
39
+ - ASP.NET
40
+ date:
41
+ - Fri, 18 Apr 2014 16:29:26 GMT
42
+ connection:
43
+ - close
44
+ content-length:
45
+ - '535'
46
+ body:
47
+ encoding: US-ASCII
48
+ string: <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
49
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><PurchaseChangeAccountRequestResponse
50
+ xmlns="#Bonsai"><PurchaseChangeAccountRequestResult>-1</PurchaseChangeAccountRequestResult><ResultCode>-100</ResultCode><Error>No
51
+ row found for requested resource mapping [ResourceType] flugel</Error><OrderXml
52
+ /></PurchaseChangeAccountRequestResponse></soap:Body></soap:Envelope>
53
+ http_version: '1.1'
54
+ recorded_at: Fri, 18 Apr 2014 16:30:25 GMT
42
55
  recorded_with: VCR 2.8.0
@@ -1,42 +1,54 @@
1
- ---
2
- http_interactions:
3
- - request:
1
+ ---
2
+ http_interactions:
3
+ - request:
4
4
  method: post
5
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>&lt;itemRequest/&gt;</tns:ItemRequestXml><tns:IDType>ORION</tns:IDType><tns:ResourceID>10e16f14-b606-11e3-a45e-0050569575d8</tns:ResourceID><tns:AccountPurchaseChangeXml>&lt;ClientChange TreeID='73223' 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'/&gt;</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
- - "957"
15
- content-type:
6
+ body:
7
+ encoding: US-ASCII
8
+ string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
9
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="#Bonsai"
10
+ 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
11
+ TreeID='73223' ShopperID='923518' TransactionCurrency='USD' RequestingApp='outright'
12
+ RequestingAppHost='LM126196-SSAND.local' ClientAddr='127.0.0.1' EnteredBy='customer'
13
+ OrderSource='Online' RedirectToBasket='false' EstimateOnly='false' SendConfirmEmail='false'/&gt;</tns:AccountPurchaseChangeXml></tns:PurchaseChangeAccountRequest></env:Body></env:Envelope>
14
+ headers:
15
+ soapaction:
16
+ - ! '"#Bonsai/PurchaseChangeAccountRequest"'
17
+ content-type:
16
18
  - text/xml;charset=UTF-8
17
- response:
18
- status:
19
+ content-length:
20
+ - '957'
21
+ accept:
22
+ - ! '*/*'
23
+ user-agent:
24
+ - Ruby
25
+ response:
26
+ status:
19
27
  code: 200
20
28
  message: OK
21
- headers:
22
- connection:
23
- - close
24
- x-aspnet-version:
25
- - 4.0.30319
26
- content-length:
27
- - "530"
28
- date:
29
- - Fri, 28 Mar 2014 00:23:06 GMT
30
- x-powered-by:
31
- - ASP.NET
32
- cache-control:
29
+ headers:
30
+ cache-control:
33
31
  - private, max-age=0
34
- server:
35
- - Microsoft-IIS/7.0
36
- content-type:
32
+ content-type:
37
33
  - text/xml; charset=utf-8
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><PurchaseChangeAccountRequestResponse xmlns="#Bonsai"><PurchaseChangeAccountRequestResult>-1</PurchaseChangeAccountRequestResult><ResultCode>-999</ResultCode><Error>Unable to get tree ID from requested Tree ID [TREE ID] 73223</Error><OrderXml /></PurchaseChangeAccountRequestResponse></soap:Body></soap:Envelope>
40
- http_version: "1.1"
41
- recorded_at: Fri, 28 Mar 2014 00:23:09 GMT
34
+ server:
35
+ - Microsoft-IIS/7.0
36
+ x-aspnet-version:
37
+ - 4.0.30319
38
+ x-powered-by:
39
+ - ASP.NET
40
+ date:
41
+ - Fri, 18 Apr 2014 16:29:27 GMT
42
+ connection:
43
+ - close
44
+ content-length:
45
+ - '530'
46
+ body:
47
+ encoding: US-ASCII
48
+ string: <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
49
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><PurchaseChangeAccountRequestResponse
50
+ xmlns="#Bonsai"><PurchaseChangeAccountRequestResult>-1</PurchaseChangeAccountRequestResult><ResultCode>-999</ResultCode><Error>Unable
51
+ to get tree ID from requested Tree ID [TREE ID] 73223</Error><OrderXml /></PurchaseChangeAccountRequestResponse></soap:Body></soap:Envelope>
52
+ http_version: '1.1'
53
+ recorded_at: Fri, 18 Apr 2014 16:30:25 GMT
42
54
  recorded_with: VCR 2.8.0