Commit 193ef3c15b461bf42c670909c0109d347b817d66

Authored by Nathan Ockerman
Committed by GitHub
1 parent d110ea95

LM issue 845 - ship weight quantity calculations (#8)

* added ship-weight to business model calculated from sale order lines in xml

* changed login cred for tests
lib/syspro/business_objects/models/sor_detail.rb
@@ -20,7 +20,7 @@ module Syspro @@ -20,7 +20,7 @@ module Syspro
20 :jobs_exist_flag, :alternate_key, :hierarchy_flag, :deposit_flag, :edi_source, :mult_ship_code, 20 :jobs_exist_flag, :alternate_key, :hierarchy_flag, :deposit_flag, :edi_source, :mult_ship_code,
21 :company_tax_no, :last_operator, :operator, :state, :county_zip, :extended_tax_code, :web_created, 21 :company_tax_no, :last_operator, :operator, :state, :county_zip, :extended_tax_code, :web_created,
22 :quote, :dispatches_made, :live_disp_exist, :num_dispatches, :include_in_mrp, :header_text, 22 :quote, :dispatches_made, :live_disp_exist, :num_dispatches, :include_in_mrp, :header_text,
23 - :header_notes, :commissions, :sales_order_lines 23 + :header_notes, :commissions, :sales_order_lines, :ship_weight
24 end 24 end
25 end 25 end
26 end 26 end
lib/syspro/business_objects/parsers/sorqry_parser.rb
@@ -7,6 +7,7 @@ module Syspro @@ -7,6 +7,7 @@ module Syspro
7 attr_reader :doc 7 attr_reader :doc
8 8
9 def initialize(doc) 9 def initialize(doc)
  10 + @calculated_weight = 0
10 @doc = doc 11 @doc = doc
11 end 12 end
12 13
@@ -124,6 +125,7 @@ module Syspro @@ -124,6 +125,7 @@ module Syspro
124 # Inner Nested Structure Parsing 125 # Inner Nested Structure Parsing
125 sor.commissions = parse_commissions(doc) 126 sor.commissions = parse_commissions(doc)
126 sor.sales_order_lines = parse_sales_order_lines(doc) 127 sor.sales_order_lines = parse_sales_order_lines(doc)
  128 + sor.ship_weight = @calculated_weight
127 129
128 sor 130 sor
129 end 131 end
@@ -140,6 +142,7 @@ module Syspro @@ -140,6 +142,7 @@ module Syspro
140 sales_order_lines = doc.first_element_child.xpath("SalesOrderLine") 142 sales_order_lines = doc.first_element_child.xpath("SalesOrderLine")
141 sales_order_lines_obj = {} 143 sales_order_lines_obj = {}
142 144
  145 +
143 sales_order_lines.children.each do |el| 146 sales_order_lines.children.each do |el|
144 next if el.name == "text" 147 next if el.name == "text"
145 148
@@ -183,6 +186,15 @@ module Syspro @@ -183,6 +186,15 @@ module Syspro
183 merchandise_arr = el.children.map do |el_child| 186 merchandise_arr = el.children.map do |el_child|
184 next if el_child.name == "text" 187 next if el_child.name == "text"
185 188
  189 + if el_child.name == "MOrderQty"
  190 + @calculated_weight = @calculated_weight + el_child.text.split(' ')[0].split(',').join().to_f
  191 +
  192 + {
  193 + name: el_child.name,
  194 + text: el_child.text
  195 + }
  196 + end
  197 +
186 # NOTE: These first three in the following 198 # NOTE: These first three in the following
187 # conditionals are "Merchandise" elements with 199 # conditionals are "Merchandise" elements with
188 # thier own nested structure that need parsed 200 # thier own nested structure that need parsed
test/cassettes/test_client_block_execution.yml
@@ -8,7 +8,7 @@ http_interactions: @@ -8,7 +8,7 @@ http_interactions:
8 string: '' 8 string: ''
9 headers: 9 headers:
10 User-Agent: 10 User-Agent:
11 - - Syspro/7 RubyBindings/1.0.0.alpha.1 11 + - Syspro/7 RubyBindings/1.0.0.alpha.2
12 Content-Type: 12 Content-Type:
13 - application/x-www-form-urlencoded 13 - application/x-www-form-urlencoded
14 Accept-Encoding: 14 Accept-Encoding:
@@ -27,10 +27,10 @@ http_interactions: @@ -27,10 +27,10 @@ http_interactions:
27 Server: 27 Server:
28 - Microsoft-HTTPAPI/2.0 28 - Microsoft-HTTPAPI/2.0
29 Date: 29 Date:
30 - - Thu, 17 May 2018 16:51:34 GMT 30 + - Wed, 09 Jan 2019 00:28:44 GMT
31 body: 31 body:
32 encoding: UTF-8 32 encoding: UTF-8
33 string: 7.0.0.6 33 string: 7.0.0.6
34 http_version: 34 http_version:
35 - recorded_at: Thu, 17 May 2018 16:51:34 GMT 35 + recorded_at: Wed, 09 Jan 2019 00:28:43 GMT
36 recorded_with: VCR 4.0.0 36 recorded_with: VCR 4.0.0
test/cassettes/test_get_syspro_version.yml
@@ -8,7 +8,7 @@ http_interactions: @@ -8,7 +8,7 @@ http_interactions:
8 string: '' 8 string: ''
9 headers: 9 headers:
10 User-Agent: 10 User-Agent:
11 - - Syspro/7 RubyBindings/1.0.0.alpha.1 11 + - Syspro/7 RubyBindings/1.0.0.alpha.2
12 Content-Type: 12 Content-Type:
13 - application/x-www-form-urlencoded 13 - application/x-www-form-urlencoded
14 Accept-Encoding: 14 Accept-Encoding:
@@ -27,10 +27,10 @@ http_interactions: @@ -27,10 +27,10 @@ http_interactions:
27 Server: 27 Server:
28 - Microsoft-HTTPAPI/2.0 28 - Microsoft-HTTPAPI/2.0
29 Date: 29 Date:
30 - - Thu, 17 May 2018 16:51:34 GMT 30 + - Wed, 09 Jan 2019 00:28:44 GMT
31 body: 31 body:
32 encoding: UTF-8 32 encoding: UTF-8
33 string: 7.0.0.6 33 string: 7.0.0.6
34 http_version: 34 http_version:
35 - recorded_at: Thu, 17 May 2018 16:51:34 GMT 35 + recorded_at: Wed, 09 Jan 2019 00:28:43 GMT
36 recorded_with: VCR 4.0.0 36 recorded_with: VCR 4.0.0
test/cassettes/test_logoff_error.yml
@@ -8,7 +8,7 @@ http_interactions: @@ -8,7 +8,7 @@ http_interactions:
8 string: '' 8 string: ''
9 headers: 9 headers:
10 User-Agent: 10 User-Agent:
11 - - Syspro/7 RubyBindings/1.0.0.alpha.1 11 + - Syspro/7 RubyBindings/1.0.0.alpha.2
12 Content-Type: 12 Content-Type:
13 - application/x-www-form-urlencoded 13 - application/x-www-form-urlencoded
14 Accept-Encoding: 14 Accept-Encoding:
@@ -27,10 +27,10 @@ http_interactions: @@ -27,10 +27,10 @@ http_interactions:
27 Server: 27 Server:
28 - Microsoft-HTTPAPI/2.0 28 - Microsoft-HTTPAPI/2.0
29 Date: 29 Date:
30 - - Thu, 17 May 2018 16:53:03 GMT 30 + - Wed, 09 Jan 2019 00:28:31 GMT
31 body: 31 body:
32 encoding: UTF-8 32 encoding: UTF-8
33 string: 'ERROR: Unable to read the SYSPRO base directory registry string BaseDir8' 33 string: 'ERROR: Unable to read the SYSPRO base directory registry string BaseDir8'
34 http_version: 34 http_version:
35 - recorded_at: Thu, 17 May 2018 16:53:03 GMT 35 + recorded_at: Wed, 09 Jan 2019 00:28:30 GMT
36 recorded_with: VCR 4.0.0 36 recorded_with: VCR 4.0.0
test/cassettes/test_logon.yml
@@ -2,13 +2,13 @@ @@ -2,13 +2,13 @@
2 http_interactions: 2 http_interactions:
3 - request: 3 - request:
4 method: get 4 method: get
5 - uri: http://syspro.wildlandlabs.com:90/SYSPROWCFService/Rest/logon?CompanyId=L&CompanyPassword=&Operator=wland&OperatorPassword=piperita2016 5 + uri: http://syspro.wildlandlabs.com:90/SYSPROWCFService/Rest/logon?CompanyId=L&CompanyPassword=&Operator=wland&OperatorPassword=Piperita2018
6 body: 6 body:
7 encoding: US-ASCII 7 encoding: US-ASCII
8 string: '' 8 string: ''
9 headers: 9 headers:
10 User-Agent: 10 User-Agent:
11 - - Syspro/7 RubyBindings/1.0.0.alpha.1 11 + - Syspro/7 RubyBindings/1.0.0.alpha.2
12 Content-Type: 12 Content-Type:
13 - application/x-www-form-urlencoded 13 - application/x-www-form-urlencoded
14 Accept-Encoding: 14 Accept-Encoding:
@@ -27,10 +27,10 @@ http_interactions: @@ -27,10 +27,10 @@ http_interactions:
27 Server: 27 Server:
28 - Microsoft-HTTPAPI/2.0 28 - Microsoft-HTTPAPI/2.0
29 Date: 29 Date:
30 - - Thu, 17 May 2018 16:53:03 GMT 30 + - Wed, 09 Jan 2019 00:28:38 GMT
31 body: 31 body:
32 encoding: UTF-8 32 encoding: UTF-8
33 - string: 'CED6A1CD9634DD409665A876B0722D0900 ' 33 + string: '77094D60E26B934D8280505BAF8C262400 '
34 http_version: 34 http_version:
35 - recorded_at: Thu, 17 May 2018 16:53:03 GMT 35 + recorded_at: Wed, 09 Jan 2019 00:28:37 GMT
36 recorded_with: VCR 4.0.0 36 recorded_with: VCR 4.0.0
test/cassettes/test_logon_error.yml
@@ -8,7 +8,7 @@ http_interactions: @@ -8,7 +8,7 @@ http_interactions:
8 string: '' 8 string: ''
9 headers: 9 headers:
10 User-Agent: 10 User-Agent:
11 - - Syspro/7 RubyBindings/1.0.0.alpha.1 11 + - Syspro/7 RubyBindings/1.0.0.alpha.2
12 Content-Type: 12 Content-Type:
13 - application/x-www-form-urlencoded 13 - application/x-www-form-urlencoded
14 Accept-Encoding: 14 Accept-Encoding:
@@ -27,10 +27,10 @@ http_interactions: @@ -27,10 +27,10 @@ http_interactions:
27 Server: 27 Server:
28 - Microsoft-HTTPAPI/2.0 28 - Microsoft-HTTPAPI/2.0
29 Date: 29 Date:
30 - - Thu, 17 May 2018 16:52:54 GMT 30 + - Wed, 09 Jan 2019 00:28:39 GMT
31 body: 31 body:
32 encoding: UTF-8 32 encoding: UTF-8
33 string: 'ERROR: Invalid operator password' 33 string: 'ERROR: Invalid operator password'
34 http_version: 34 http_version:
35 - recorded_at: Thu, 17 May 2018 16:52:54 GMT 35 + recorded_at: Wed, 09 Jan 2019 00:28:39 GMT
36 recorded_with: VCR 4.0.0 36 recorded_with: VCR 4.0.0
test/cassettes/test_por_query.yml
@@ -2,13 +2,13 @@ @@ -2,13 +2,13 @@
2 http_interactions: 2 http_interactions:
3 - request: 3 - request:
4 method: get 4 method: get
5 - uri: http://syspro.wildlandlabs.com:90/SYSPROWCFService/Rest/logon?CompanyId=L&CompanyPassword=&Operator=wland&OperatorPassword=piperita2016 5 + uri: http://syspro.wildlandlabs.com:90/SYSPROWCFService/Rest/logon?CompanyId=L&CompanyPassword=&Operator=wland&OperatorPassword=Piperita2018
6 body: 6 body:
7 encoding: US-ASCII 7 encoding: US-ASCII
8 string: '' 8 string: ''
9 headers: 9 headers:
10 User-Agent: 10 User-Agent:
11 - - Syspro/7 RubyBindings/1.0.0.alpha.1 11 + - Syspro/7 RubyBindings/1.0.0.alpha.2
12 Content-Type: 12 Content-Type:
13 - application/x-www-form-urlencoded 13 - application/x-www-form-urlencoded
14 Accept-Encoding: 14 Accept-Encoding:
@@ -27,21 +27,21 @@ http_interactions: @@ -27,21 +27,21 @@ http_interactions:
27 Server: 27 Server:
28 - Microsoft-HTTPAPI/2.0 28 - Microsoft-HTTPAPI/2.0
29 Date: 29 Date:
30 - - Thu, 17 May 2018 16:52:35 GMT 30 + - Wed, 09 Jan 2019 00:28:34 GMT
31 body: 31 body:
32 encoding: UTF-8 32 encoding: UTF-8
33 - string: 'C6897E2FC9768F4DA49CA2144341435700 ' 33 + string: 'E4B229FC9C2F7A4BA70D10AF87DBB35600 '
34 http_version: 34 http_version:
35 - recorded_at: Thu, 17 May 2018 16:52:35 GMT 35 + recorded_at: Wed, 09 Jan 2019 00:28:33 GMT
36 - request: 36 - request:
37 method: get 37 method: get
38 - uri: http://syspro.wildlandlabs.com:90/SYSPROWCFService/Rest/Query/Query?BusinessObject=PORQRY&UserId=C6897E2FC9768F4DA49CA2144341435700%20%20&XmlIn=%3C?xml%20version=%221.0%22%20encoding=%22Windows-1252%22?%3E%0A%3CQuery%20xmlns:xsd=%22http://www.w3.org/2001/XMLSchema-instance%22%20xsd:noNamespaceSchemaLocation=%22PORQRY.XSD%22%3E%0A%20%20%3CKey%3E%0A%20%20%20%20%3CPurchaseOrder%3E%2000001%3C/PurchaseOrder%3E%0A%20%20%3C/Key%3E%0A%20%20%3COption%3E%0A%20%20%20%20%3CIncludeStockedLines%3EY%3C/IncludeStockedLines%3E%0A%20%20%20%20%3CIncludeNonStockedLines%3EY%3C/IncludeNonStockedLines%3E%0A%20%20%20%20%3CIncludeFreightLines%3EY%3C/IncludeFreightLines%3E%0A%20%20%20%20%3CIncludeMiscellaneousLines%3EY%3C/IncludeMiscellaneousLines%3E%0A%20%20%20%20%3CIncludeCommentLines%3EY%3C/IncludeCommentLines%3E%0A%20%20%20%20%3CIncludeCompletedLines%3EY%3C/IncludeCompletedLines%3E%0A%20%20%20%20%3CIncludeGrns%3EY%3C/IncludeGrns%3E%0A%20%20%20%20%3CIncludeHistory%3EY%3C/IncludeHistory%3E%0A%20%20%20%20%3CIncludeLctDetails%3EY%3C/IncludeLctDetails%3E%0A%20%20%20%20%3CIncludeRequisitionDetails%3EY%3C/IncludeRequisitionDetails%3E%0A%20%20%20%20%3CIncludeRequisitionRouting%3EY%3C/IncludeRequisitionRouting%3E%0A%20%20%20%20%3CIncludeSalesOrders%3EY%3C/IncludeSalesOrders%3E%0A%20%20%20%20%3CIncludeCustomForms%3EY%3C/IncludeCustomForms%3E%20%0A%20%20%20%20%3CXslStylesheet/%3E%0A%20%20%3C/Option%3E%0A%20%20%3CFilter%3E%0A%20%20%20%20%3CLineNo%20FilterType=%22A%22%20FilterValue=%22%22/%3E%20%20%20%20%20%0A%20%20%3C/Filter%3E%0A%3C/Query%3E%0A%0A 38 + uri: http://syspro.wildlandlabs.com:90/SYSPROWCFService/Rest/Query/Query?BusinessObject=PORQRY&UserId=E4B229FC9C2F7A4BA70D10AF87DBB35600%20%20&XmlIn=%3C?xml%20version=%221.0%22%20encoding=%22Windows-1252%22?%3E%0A%3CQuery%20xmlns:xsd=%22http://www.w3.org/2001/XMLSchema-instance%22%20xsd:noNamespaceSchemaLocation=%22PORQRY.XSD%22%3E%0A%20%20%3CKey%3E%0A%20%20%20%20%3CPurchaseOrder%3E%2000001%3C/PurchaseOrder%3E%0A%20%20%3C/Key%3E%0A%20%20%3COption%3E%0A%20%20%20%20%3CIncludeStockedLines%3EY%3C/IncludeStockedLines%3E%0A%20%20%20%20%3CIncludeNonStockedLines%3EY%3C/IncludeNonStockedLines%3E%0A%20%20%20%20%3CIncludeFreightLines%3EY%3C/IncludeFreightLines%3E%0A%20%20%20%20%3CIncludeMiscellaneousLines%3EY%3C/IncludeMiscellaneousLines%3E%0A%20%20%20%20%3CIncludeCommentLines%3EY%3C/IncludeCommentLines%3E%0A%20%20%20%20%3CIncludeCompletedLines%3EY%3C/IncludeCompletedLines%3E%0A%20%20%20%20%3CIncludeGrns%3EY%3C/IncludeGrns%3E%0A%20%20%20%20%3CIncludeHistory%3EY%3C/IncludeHistory%3E%0A%20%20%20%20%3CIncludeLctDetails%3EY%3C/IncludeLctDetails%3E%0A%20%20%20%20%3CIncludeRequisitionDetails%3EY%3C/IncludeRequisitionDetails%3E%0A%20%20%20%20%3CIncludeRequisitionRouting%3EY%3C/IncludeRequisitionRouting%3E%0A%20%20%20%20%3CIncludeSalesOrders%3EY%3C/IncludeSalesOrders%3E%0A%20%20%20%20%3CIncludeCustomForms%3EY%3C/IncludeCustomForms%3E%20%0A%20%20%20%20%3CXslStylesheet/%3E%0A%20%20%3C/Option%3E%0A%20%20%3CFilter%3E%0A%20%20%20%20%3CLineNo%20FilterType=%22A%22%20FilterValue=%22%22/%3E%20%20%20%20%20%0A%20%20%3C/Filter%3E%0A%3C/Query%3E%0A%0A
39 body: 39 body:
40 encoding: US-ASCII 40 encoding: US-ASCII
41 string: '' 41 string: ''
42 headers: 42 headers:
43 User-Agent: 43 User-Agent:
44 - - Syspro/7 RubyBindings/1.0.0.alpha.1 44 + - Syspro/7 RubyBindings/1.0.0.alpha.2
45 Content-Type: 45 Content-Type:
46 - application/x-www-form-urlencoded 46 - application/x-www-form-urlencoded
47 Accept-Encoding: 47 Accept-Encoding:
@@ -60,11 +60,11 @@ http_interactions: @@ -60,11 +60,11 @@ http_interactions:
60 Server: 60 Server:
61 - Microsoft-HTTPAPI/2.0 61 - Microsoft-HTTPAPI/2.0
62 Date: 62 Date:
63 - - Thu, 17 May 2018 16:52:40 GMT 63 + - Wed, 09 Jan 2019 00:28:38 GMT
64 body: 64 body:
65 encoding: UTF-8 65 encoding: UTF-8
66 string: "<?xml version=\"1.0\" encoding=\"Windows-1252\"?>\n<PorDetail Language='05' 66 string: "<?xml version=\"1.0\" encoding=\"Windows-1252\"?>\n<PorDetail Language='05'
67 - Language2='EN' CssStyle='' DecFormat='1' DateFormat='01' Role='01' Version='7.0.021' 67 + Language2='EN' CssStyle='' DecFormat='1' DateFormat='01' Role='01' Version='7.0.022'
68 OperatorPrimaryRole=' ' >\n<PurchaseOrder> 00001</PurchaseOrder>\n<Supplier>UTE002</Supplier>\n<SupplierName>UTEXAM 68 OperatorPrimaryRole=' ' >\n<PurchaseOrder> 00001</PurchaseOrder>\n<Supplier>UTE002</Supplier>\n<SupplierName>UTEXAM
69 LOGISTICS LIMITED(ZERO)</SupplierName>\n<SupplierClass/>\n<Customer/>\n<CustomerName/>\n<CustomerPoNumber/>\n<SupplierAddr1/>\n<SupplierAddr2/>\n<SupplierAddr3/>\n<SupplierAddr3Locality/>\n<SupplierAddr4/>\n<SupplierAddr5/>\n<SupPostalCode/>\n<Currency>$</Currency>\n<LocalSupplier>Y</LocalSupplier>\n<Description>DOLLAR</Description>\n<DeliveryName>ULL 69 LOGISTICS LIMITED(ZERO)</SupplierName>\n<SupplierClass/>\n<Customer/>\n<CustomerName/>\n<CustomerPoNumber/>\n<SupplierAddr1/>\n<SupplierAddr2/>\n<SupplierAddr3/>\n<SupplierAddr3Locality/>\n<SupplierAddr4/>\n<SupplierAddr5/>\n<SupPostalCode/>\n<Currency>$</Currency>\n<LocalSupplier>Y</LocalSupplier>\n<Description>DOLLAR</Description>\n<DeliveryName>ULL
70 OWNED @ PDI</DeliveryName>\n<DeliveryAddr1/>\n<DeliveryAddr2/>\n<DeliveryAddr3/>\n<DeliveryAddr3Locality/>\n<DeliveryAddr4/>\n<DeliveryAddr5/>\n<PostalCode/>\n<DeliveryGpsLat> 70 OWNED @ PDI</DeliveryName>\n<DeliveryAddr1/>\n<DeliveryAddr2/>\n<DeliveryAddr3/>\n<DeliveryAddr3Locality/>\n<DeliveryAddr4/>\n<DeliveryAddr5/>\n<PostalCode/>\n<DeliveryGpsLat>
@@ -146,5 +146,5 @@ http_interactions: @@ -146,5 +146,5 @@ http_interactions:
146 \ 0.00</CurrentReceivedToDateValue>\n<CurrentOutstandingValue> 0.00</CurrentOutstandingValue>\n<Edited_CurrentOrderValue> 146 \ 0.00</CurrentReceivedToDateValue>\n<CurrentOutstandingValue> 0.00</CurrentOutstandingValue>\n<Edited_CurrentOrderValue>
147 \ 0.00</Edited_CurrentOrderValue>\n<Edited_CurrentReceivedToDateValue>0.00</Edited_CurrentReceivedToDateValue>\n<Edited_CurrentOutstandingValue>0.00</Edited_CurrentOutstandingValue>\n</CurrentValues>\n<FirstReceiptDate/>\n<OrderCompleteDate/>\n</PurchaseOrderTotals>\n</PorDetail>\n " 147 \ 0.00</Edited_CurrentOrderValue>\n<Edited_CurrentReceivedToDateValue>0.00</Edited_CurrentReceivedToDateValue>\n<Edited_CurrentOutstandingValue>0.00</Edited_CurrentOutstandingValue>\n</CurrentValues>\n<FirstReceiptDate/>\n<OrderCompleteDate/>\n</PurchaseOrderTotals>\n</PorDetail>\n "
148 http_version: 148 http_version:
149 - recorded_at: Thu, 17 May 2018 16:52:40 GMT 149 + recorded_at: Wed, 09 Jan 2019 00:28:37 GMT
150 recorded_with: VCR 4.0.0 150 recorded_with: VCR 4.0.0
test/cassettes/test_query_browse.yml
@@ -2,13 +2,13 @@ @@ -2,13 +2,13 @@
2 http_interactions: 2 http_interactions:
3 - request: 3 - request:
4 method: get 4 method: get
5 - uri: http://syspro.wildlandlabs.com:90/SYSPROWCFService/Rest/logon?CompanyId=L&CompanyPassword=&Operator=wland&OperatorPassword=piperita2016 5 + uri: http://syspro.wildlandlabs.com:90/SYSPROWCFService/Rest/logon?CompanyId=L&CompanyPassword=&Operator=wland&OperatorPassword=Piperita2018
6 body: 6 body:
7 encoding: US-ASCII 7 encoding: US-ASCII
8 string: '' 8 string: ''
9 headers: 9 headers:
10 User-Agent: 10 User-Agent:
11 - - Syspro/7 RubyBindings/1.0.0.alpha.1 11 + - Syspro/7 RubyBindings/1.0.0.alpha.2
12 Content-Type: 12 Content-Type:
13 - application/x-www-form-urlencoded 13 - application/x-www-form-urlencoded
14 Accept-Encoding: 14 Accept-Encoding:
@@ -27,21 +27,21 @@ http_interactions: @@ -27,21 +27,21 @@ http_interactions:
27 Server: 27 Server:
28 - Microsoft-HTTPAPI/2.0 28 - Microsoft-HTTPAPI/2.0
29 Date: 29 Date:
30 - - Thu, 17 May 2018 16:52:05 GMT 30 + - Wed, 09 Jan 2019 00:28:39 GMT
31 body: 31 body:
32 encoding: UTF-8 32 encoding: UTF-8
33 - string: 'AA79E916A9C2814A887CB5F77952335400 ' 33 + string: '42F9885C71D1C94C8D76D156C187573D00 '
34 http_version: 34 http_version:
35 - recorded_at: Thu, 17 May 2018 16:52:05 GMT 35 + recorded_at: Wed, 09 Jan 2019 00:28:39 GMT
36 - request: 36 - request:
37 method: get 37 method: get
38 - uri: http://syspro.wildlandlabs.com:90/SYSPROWCFService/Rest/Query/Browse?UserId=AA79E916A9C2814A887CB5F77952335400%20%20&XmlIn=%3C?xml%20version=%221.0%22%20encoding=%22Windows-1252%22?%3E%0A%3CBrowse%20xmlns:xsd=%22http://www.w3.org/2001/XMLSchema-instance%22%20xsd:noNamespaceSchemaLocation=%22COMBRW.XSD%22%3E%0A%20%20%3CBrowseName%3EInvMaster%3C/BrowseName%3E%0A%20%20%3CStartAtKey/%3E%0A%20%20%3CStartCondition%3E%3C/StartCondition%3E%0A%20%20%3CReturnRows%3E5%3C/ReturnRows%3E%0A%20%20%0A%20%20%3CBrowseDetails%3E%0A%20%20%20%20%3CTableName%3EInvMaster%3C/TableName%3E%0A%20%20%20%20%3CTitle%3EStockCodes%3C/Title%3E%0A%20%20%20%20%0A%20%20%20%20%20%20%3CColumn%3E%0A%20%20%20%20%20%20%20%20%3CColumnName%3EStockCode%3C/ColumnName%3E%0A%20%20%20%20%20%20%20%20%0A%20%20%20%20%20%20%20%20%0A%20%20%20%20%20%20%3C/Column%3E%0A%20%20%20%20%0A%20%20%3C/BrowseDetails%3E%0A%3C/Browse%3E%0A%0A 38 + uri: http://syspro.wildlandlabs.com:90/SYSPROWCFService/Rest/Query/Browse?UserId=42F9885C71D1C94C8D76D156C187573D00%20%20&XmlIn=%3C?xml%20version=%221.0%22%20encoding=%22Windows-1252%22?%3E%0A%3CBrowse%20xmlns:xsd=%22http://www.w3.org/2001/XMLSchema-instance%22%20xsd:noNamespaceSchemaLocation=%22COMBRW.XSD%22%3E%0A%20%20%3CBrowseName%3EInvMaster%3C/BrowseName%3E%0A%20%20%3CStartAtKey%3E%3C/StartAtKey%3E%0A%20%20%3CStartCondition%3E%3C/StartCondition%3E%0A%20%20%3CReturnRows%3E5%3C/ReturnRows%3E%0A%20%20%0A%3C/Browse%3E%0A%0A
39 body: 39 body:
40 encoding: US-ASCII 40 encoding: US-ASCII
41 string: '' 41 string: ''
42 headers: 42 headers:
43 User-Agent: 43 User-Agent:
44 - - Syspro/7 RubyBindings/1.0.0.alpha.1 44 + - Syspro/7 RubyBindings/1.0.0.alpha.2
45 Content-Type: 45 Content-Type:
46 - application/x-www-form-urlencoded 46 - application/x-www-form-urlencoded
47 Accept-Encoding: 47 Accept-Encoding:
@@ -54,19 +54,25 @@ http_interactions: @@ -54,19 +54,25 @@ http_interactions:
54 message: OK 54 message: OK
55 headers: 55 headers:
56 Content-Length: 56 Content-Length:
57 - - '944' 57 + - '1899'
58 Content-Type: 58 Content-Type:
59 - application/octet-stream 59 - application/octet-stream
60 Server: 60 Server:
61 - Microsoft-HTTPAPI/2.0 61 - Microsoft-HTTPAPI/2.0
62 Date: 62 Date:
63 - - Thu, 17 May 2018 16:52:09 GMT 63 + - Wed, 09 Jan 2019 00:28:41 GMT
64 body: 64 body:
65 encoding: UTF-8 65 encoding: UTF-8
66 string: "<?xml version=\"1.0\" encoding=\"Windows-1252\"?>\n<InvMaster Language='05' 66 string: "<?xml version=\"1.0\" encoding=\"Windows-1252\"?>\n<InvMaster Language='05'
67 - Language2='EN' CssStyle='' DecFormat='1' DateFormat='01' Role='01' Version='7.0.036'  
68 - OperatorPrimaryRole=' '>\n<Title>StockCodes</Title>\n<Row>\n<StockCode>\n<Value>02</Value>\n<DataType>AlphaNumeric</DataType>\n</StockCode>\n</Row>\n<Row>\n<StockCode>\n<Value>021</Value>\n<DataType>AlphaNumeric</DataType>\n</StockCode>\n</Row>\n<Row>\n<StockCode>\n<Value>0214011IFF</Value>\n<DataType>AlphaNumeric</DataType>\n</StockCode>\n</Row>\n<Row>\n<StockCode>\n<Value>022</Value>\n<DataType>AlphaNumeric</DataType>\n</StockCode>\n</Row>\n<Row>\n<StockCode>\n<Value>023</Value>\n<DataType>AlphaNumeric</DataType>\n</StockCode>\n</Row>\n<NextPrevKey>\n<PrevKey>02</PrevKey>\n<NextKey>023</NextKey>\n<Fwd>True</Fwd>\n<Back>False</Back>\n</NextPrevKey>\n<HeaderDetails>\n<Header>Stock  
69 - code</Header>\n<Key>StockCode</Key>\n<KeyDescription>Stock code</KeyDescription>\n<Table>InvMaster</Table>\n</HeaderDetails>\n</InvMaster>\n " 67 + Language2='EN' CssStyle='' DecFormat='1' DateFormat='01' Role='01' Version='7.0.038'
  68 + OperatorPrimaryRole=' '>\n<Title>Stock Codes</Title>\n<Row>\n<StockCode>\n<Value>02</Value>\n<DataType>AlphaNumeric</DataType>\n</StockCode>\n<Description>\n<Value>STR</Value>\n<DataType>AlphaNumeric</DataType>\n</Description>\n<LongDesc>\n<Value>SPEARMINT
  69 + TERPENES</Value>\n<DataType>AlphaNumeric</DataType>\n</LongDesc>\n</Row>\n<Row>\n<StockCode>\n<Value>021</Value>\n<DataType>AlphaNumeric</DataType>\n</StockCode>\n<Description>\n<Value>STR</Value>\n<DataType>AlphaNumeric</DataType>\n</Description>\n<LongDesc>\n<Value>SPEARMINT
  70 + TERPENES NATIVE</Value>\n<DataType>AlphaNumeric</DataType>\n</LongDesc>\n</Row>\n<Row>\n<StockCode>\n<Value>0214011IFF</Value>\n<DataType>AlphaNumeric</DataType>\n</StockCode>\n<Description>\n<Value>00196998</Value>\n<DataType>AlphaNumeric</DataType>\n</Description>\n<LongDesc>\n<Value>SPEARMINT
  71 + TERPENES</Value>\n<DataType>AlphaNumeric</DataType>\n</LongDesc>\n</Row>\n<Row>\n<StockCode>\n<Value>022</Value>\n<DataType>AlphaNumeric</DataType>\n</StockCode>\n<Description>\n<Value>STR</Value>\n<DataType>AlphaNumeric</DataType>\n</Description>\n<LongDesc>\n<Value>SPEARMINT
  72 + TERPENES SCOTCH</Value>\n<DataType>AlphaNumeric</DataType>\n</LongDesc>\n</Row>\n<Row>\n<StockCode>\n<Value>023</Value>\n<DataType>AlphaNumeric</DataType>\n</StockCode>\n<Description>\n<Value>STR</Value>\n<DataType>AlphaNumeric</DataType>\n</Description>\n<LongDesc>\n<Value>SPEARMINT
  73 + TERPENES INDIAN</Value>\n<DataType>AlphaNumeric</DataType>\n</LongDesc>\n</Row>\n<NextPrevKey>\n<PrevKey>02</PrevKey>\n<NextKey>023</NextKey>\n<Fwd>True</Fwd>\n<Back>False</Back>\n</NextPrevKey>\n<HeaderDetails>\n<Header>Stock
  74 + code</Header>\n<Header>Description</Header>\n<Header>Long description</Header>\n<Key>StockCode</Key>\n<KeyDescription>Stock
  75 + code</KeyDescription>\n<Table>InvMaster</Table>\n</HeaderDetails>\n</InvMaster>\n "
70 http_version: 76 http_version:
71 - recorded_at: Thu, 17 May 2018 16:52:09 GMT 77 + recorded_at: Wed, 09 Jan 2019 00:28:40 GMT
72 recorded_with: VCR 4.0.0 78 recorded_with: VCR 4.0.0
test/cassettes/test_query_fetch.yml
@@ -2,13 +2,13 @@ @@ -2,13 +2,13 @@
2 http_interactions: 2 http_interactions:
3 - request: 3 - request:
4 method: get 4 method: get
5 - uri: http://syspro.wildlandlabs.com:90/SYSPROWCFService/Rest/logon?CompanyId=L&CompanyPassword=&Operator=wland&OperatorPassword=piperita2016 5 + uri: http://syspro.wildlandlabs.com:90/SYSPROWCFService/Rest/logon?CompanyId=L&CompanyPassword=&Operator=wland&OperatorPassword=Piperita2018
6 body: 6 body:
7 encoding: US-ASCII 7 encoding: US-ASCII
8 string: '' 8 string: ''
9 headers: 9 headers:
10 User-Agent: 10 User-Agent:
11 - - Syspro/7 RubyBindings/1.0.0.alpha.1 11 + - Syspro/7 RubyBindings/1.0.0.alpha.2
12 Content-Type: 12 Content-Type:
13 - application/x-www-form-urlencoded 13 - application/x-www-form-urlencoded
14 Accept-Encoding: 14 Accept-Encoding:
@@ -27,21 +27,21 @@ http_interactions: @@ -27,21 +27,21 @@ http_interactions:
27 Server: 27 Server:
28 - Microsoft-HTTPAPI/2.0 28 - Microsoft-HTTPAPI/2.0
29 Date: 29 Date:
30 - - Thu, 17 May 2018 16:51:47 GMT 30 + - Wed, 09 Jan 2019 00:28:43 GMT
31 body: 31 body:
32 encoding: UTF-8 32 encoding: UTF-8
33 - string: '5302D42E29F95946813203EF51DF25CE00 ' 33 + string: '298FDAC63B744A44B5512B1057C0FB2A00 '
34 http_version: 34 http_version:
35 - recorded_at: Thu, 17 May 2018 16:51:47 GMT 35 + recorded_at: Wed, 09 Jan 2019 00:28:42 GMT
36 - request: 36 - request:
37 method: get 37 method: get
38 - uri: http://syspro.wildlandlabs.com:90/SYSPROWCFService/Rest/Query/Fetch?UserId=5302D42E29F95946813203EF51DF25CE00%20%20&XmlIn=%3C?xml%20version=%221.0%22%20encoding=%22Windows-1252%22?%3E%0A%3CFetch%20xmlns:xsd=%22http://www.w3.org/2001/XMLSchema-instance%22%20xsd:noNamespaceSchemaLocation=%22COMFCH.XSD%22%3E%0A%20%20%3CTableName%3EInvMaster%3C/TableName%3E%0A%20%20%3CKey%3E02%3C/Key%3E%0A%20%20%0A%20%20%3CFullKeyProvided%3EY%3C/FullKeyProvided%3E%0A%20%20%3CDefaultType%3E%3C/DefaultType%3E%0A%20%20%3CEspressoFetch%3EN%3C/EspressoFetch%3E%0A%3C/Fetch%3E%0A%0A 38 + uri: http://syspro.wildlandlabs.com:90/SYSPROWCFService/Rest/Query/Fetch?UserId=298FDAC63B744A44B5512B1057C0FB2A00%20%20&XmlIn=%3C?xml%20version=%221.0%22%20encoding=%22Windows-1252%22?%3E%0A%3CFetch%20xmlns:xsd=%22http://www.w3.org/2001/XMLSchema-instance%22%20xsd:noNamespaceSchemaLocation=%22COMFCH.XSD%22%3E%0A%20%20%3CTableName%3EInvMaster%3C/TableName%3E%0A%20%20%3CKey%3E02%3C/Key%3E%0A%20%20%0A%20%20%3CFullKeyProvided%3EY%3C/FullKeyProvided%3E%0A%20%20%3CDefaultType%3E%3C/DefaultType%3E%0A%20%20%3CEspressoFetch%3EN%3C/EspressoFetch%3E%0A%3C/Fetch%3E%0A%0A
39 body: 39 body:
40 encoding: US-ASCII 40 encoding: US-ASCII
41 string: '' 41 string: ''
42 headers: 42 headers:
43 User-Agent: 43 User-Agent:
44 - - Syspro/7 RubyBindings/1.0.0.alpha.1 44 + - Syspro/7 RubyBindings/1.0.0.alpha.2
45 Content-Type: 45 Content-Type:
46 - application/x-www-form-urlencoded 46 - application/x-www-form-urlencoded
47 Accept-Encoding: 47 Accept-Encoding:
@@ -60,7 +60,7 @@ http_interactions: @@ -60,7 +60,7 @@ http_interactions:
60 Server: 60 Server:
61 - Microsoft-HTTPAPI/2.0 61 - Microsoft-HTTPAPI/2.0
62 Date: 62 Date:
63 - - Thu, 17 May 2018 16:51:56 GMT 63 + - Wed, 09 Jan 2019 00:28:44 GMT
64 body: 64 body:
65 encoding: UTF-8 65 encoding: UTF-8
66 string: "<?xml version=\"1.0\" encoding=\"Windows-1252\"?>\n<InvMaster Language='05' 66 string: "<?xml version=\"1.0\" encoding=\"Windows-1252\"?>\n<InvMaster Language='05'
@@ -92,5 +92,5 @@ http_interactions: @@ -92,5 +92,5 @@ http_interactions:
92 \ 0.000</LoadingFactor>\n<SupplUnitCode/>\n<StorageSecurity/>\n<StorageHazard/>\n<StorageCondition/>\n<ProductShelfLife> 92 \ 0.000</LoadingFactor>\n<SupplUnitCode/>\n<StorageSecurity/>\n<StorageHazard/>\n<StorageCondition/>\n<ProductShelfLife>
93 \ 0</ProductShelfLife>\n<InternalShelfLife> 0</InternalShelfLife>\n<AltMethodFlag/>\n<AltSisoFlag/>\n<AltReductionFlag/>\n<WithTaxExpenseType/>\n</InvMaster>\n " 93 \ 0</ProductShelfLife>\n<InternalShelfLife> 0</InternalShelfLife>\n<AltMethodFlag/>\n<AltSisoFlag/>\n<AltReductionFlag/>\n<WithTaxExpenseType/>\n</InvMaster>\n "
94 http_version: 94 http_version:
95 - recorded_at: Thu, 17 May 2018 16:51:56 GMT 95 + recorded_at: Wed, 09 Jan 2019 00:28:43 GMT
96 recorded_with: VCR 4.0.0 96 recorded_with: VCR 4.0.0
test/cassettes/test_query_query.yml
@@ -2,13 +2,13 @@ @@ -2,13 +2,13 @@
2 http_interactions: 2 http_interactions:
3 - request: 3 - request:
4 method: get 4 method: get
5 - uri: http://syspro.wildlandlabs.com:90/SYSPROWCFService/Rest/logon?CompanyId=L&CompanyPassword=&Operator=wland&OperatorPassword=piperita2016 5 + uri: http://syspro.wildlandlabs.com:90/SYSPROWCFService/Rest/logon?CompanyId=L&CompanyPassword=&Operator=wland&OperatorPassword=Piperita2018
6 body: 6 body:
7 encoding: US-ASCII 7 encoding: US-ASCII
8 string: '' 8 string: ''
9 headers: 9 headers:
10 User-Agent: 10 User-Agent:
11 - - Syspro/7 RubyBindings/1.0.0.alpha.1 11 + - Syspro/7 RubyBindings/1.0.0.alpha.2
12 Content-Type: 12 Content-Type:
13 - application/x-www-form-urlencoded 13 - application/x-www-form-urlencoded
14 Accept-Encoding: 14 Accept-Encoding:
@@ -27,21 +27,21 @@ http_interactions: @@ -27,21 +27,21 @@ http_interactions:
27 Server: 27 Server:
28 - Microsoft-HTTPAPI/2.0 28 - Microsoft-HTTPAPI/2.0
29 Date: 29 Date:
30 - - Thu, 17 May 2018 16:52:18 GMT 30 + - Wed, 09 Jan 2019 00:28:41 GMT
31 body: 31 body:
32 encoding: UTF-8 32 encoding: UTF-8
33 - string: '4D735EA6DD5ADB46B6E0058EA86DBC4D00 ' 33 + string: '5164D8F79E0BC54E94AA768802A7936100 '
34 http_version: 34 http_version:
35 - recorded_at: Thu, 17 May 2018 16:52:18 GMT 35 + recorded_at: Wed, 09 Jan 2019 00:28:40 GMT
36 - request: 36 - request:
37 method: get 37 method: get
38 - uri: http://syspro.wildlandlabs.com:90/SYSPROWCFService/Rest/Query/Query?BusinessObject=COMFND&UserId=4D735EA6DD5ADB46B6E0058EA86DBC4D00%20%20&XmlIn=%3C?xml%20version=%221.0%22%20encoding=%22Windows-1252%22?%3E%0A%3CQuery%20xmlns:xsd=%22http://www.w3.org/2001/XMLSchema-instance%22%20xsd:noNamespaceSchemaLocation=%22COMFND.XSD%22%3E%0A%20%20%3CTableName%3EInvMaster%3C/TableName%3E%0A%20%20%3CReturnRows%3E5%3C/ReturnRows%3E%0A%20%20%3CColumns%3E%0A%20%20%20%20%0A%20%20%20%20%20%20%3CColumn%3EStockCode%3C/Column%3E%0A%20%20%20%20%0A%20%20%3C/Columns%3E%0A%20%20%0A%20%20%20%20%3CWhere%3E%0A%20%20%20%20%20%20%0A%20%20%20%20%20%20%20%20%3CExpression%3E%0A%20%20%20%20%20%20%20%20%20%20%3COpenBracket%3E(%3C/OpenBracket%3E%0A%20%20%20%20%20%20%20%20%20%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%3CAndOr%3EAnd%3C/AndOr%3E%0A%20%20%20%20%20%20%20%20%20%20%0A%20%20%20%20%20%20%20%20%20%20%3CColumn%3EStockCode%3C/Column%3E%0A%20%20%20%20%20%20%20%20%20%20%3CCondition%3EEQ%3C/Condition%3E%0A%20%20%20%20%20%20%20%20%20%20%3CValue%3E02%3C/Value%3E%0A%20%20%20%20%20%20%20%20%20%20%3CCloseBracket%3E)%3C/CloseBracket%3E%0A%20%20%20%20%20%20%20%20%3C/Expression%3E%0A%20%20%20%20%20%20%0A%20%20%20%20%3C/Where%3E%0A%20%20%0A%20%20%3COrderBy%3E%0A%20%20%20%20%3CColumn%3EStockCode%3C/Column%3E%0A%20%20%3C/OrderBy%3E%0A%3C/Query%3E%0A 38 + uri: http://syspro.wildlandlabs.com:90/SYSPROWCFService/Rest/Query/Query?BusinessObject=COMFND&UserId=5164D8F79E0BC54E94AA768802A7936100%20%20&XmlIn=%3C?xml%20version=%221.0%22%20encoding=%22Windows-1252%22?%3E%0A%3CQuery%20xmlns:xsd=%22http://www.w3.org/2001/XMLSchema-instance%22%20xsd:noNamespaceSchemaLocation=%22COMFND.XSD%22%3E%0A%20%20%3CTableName%3EInvMaster%3C/TableName%3E%0A%20%20%3CReturnRows%3E5%3C/ReturnRows%3E%0A%20%20%3CColumns%3E%0A%20%20%20%20%0A%20%20%20%20%20%20%3CColumn%3EStockCode%3C/Column%3E%0A%20%20%20%20%0A%20%20%3C/Columns%3E%0A%20%20%0A%20%20%20%20%3CWhere%3E%0A%20%20%20%20%20%20%0A%20%20%20%20%20%20%20%20%3CExpression%3E%0A%20%20%20%20%20%20%20%20%20%20%3COpenBracket%3E(%3C/OpenBracket%3E%0A%20%20%20%20%20%20%20%20%20%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%3CAndOr%3EAnd%3C/AndOr%3E%0A%20%20%20%20%20%20%20%20%20%20%0A%20%20%20%20%20%20%20%20%20%20%3CColumn%3EStockCode%3C/Column%3E%0A%20%20%20%20%20%20%20%20%20%20%3CCondition%3EEQ%3C/Condition%3E%0A%20%20%20%20%20%20%20%20%20%20%3CValue%3E02%3C/Value%3E%0A%20%20%20%20%20%20%20%20%20%20%3CCloseBracket%3E)%3C/CloseBracket%3E%0A%20%20%20%20%20%20%20%20%3C/Expression%3E%0A%20%20%20%20%20%20%0A%20%20%20%20%3C/Where%3E%0A%20%20%0A%20%20%3COrderBy%3E%0A%20%20%20%20%3CColumn%3EStockCode%3C/Column%3E%0A%20%20%3C/OrderBy%3E%0A%3C/Query%3E%0A
39 body: 39 body:
40 encoding: US-ASCII 40 encoding: US-ASCII
41 string: '' 41 string: ''
42 headers: 42 headers:
43 User-Agent: 43 User-Agent:
44 - - Syspro/7 RubyBindings/1.0.0.alpha.1 44 + - Syspro/7 RubyBindings/1.0.0.alpha.2
45 Content-Type: 45 Content-Type:
46 - application/x-www-form-urlencoded 46 - application/x-www-form-urlencoded
47 Accept-Encoding: 47 Accept-Encoding:
@@ -60,13 +60,13 @@ http_interactions: @@ -60,13 +60,13 @@ http_interactions:
60 Server: 60 Server:
61 - Microsoft-HTTPAPI/2.0 61 - Microsoft-HTTPAPI/2.0
62 Date: 62 Date:
63 - - Thu, 17 May 2018 16:52:26 GMT 63 + - Wed, 09 Jan 2019 00:28:43 GMT
64 body: 64 body:
65 encoding: UTF-8 65 encoding: UTF-8
66 string: "<?xml version=\"1.0\" encoding=\"Windows-1252\"?>\n<InvMaster Language='05' 66 string: "<?xml version=\"1.0\" encoding=\"Windows-1252\"?>\n<InvMaster Language='05'
67 - Language2='EN' CssStyle='' DecFormat='1' DateFormat='01' Role='01' Version='7.0.048' 67 + Language2='EN' CssStyle='' DecFormat='1' DateFormat='01' Role='01' Version='7.0.053'
68 OperatorPrimaryRole=' '>\n<HeaderDetails>\n<TableName>InvMaster</TableName>\n<Columns>\n<Column>StockCode</Column>\n</Columns>\n<OrderBy>\n<Column>StockCode</Column>\n</OrderBy>\n</HeaderDetails>\n<Row>\n<StockCode>02</StockCode>\n</Row>\n<RowsReturned> 68 OperatorPrimaryRole=' '>\n<HeaderDetails>\n<TableName>InvMaster</TableName>\n<Columns>\n<Column>StockCode</Column>\n</Columns>\n<OrderBy>\n<Column>StockCode</Column>\n</OrderBy>\n</HeaderDetails>\n<Row>\n<StockCode>02</StockCode>\n</Row>\n<RowsReturned>
69 \ 1</RowsReturned>\n</InvMaster>\n " 69 \ 1</RowsReturned>\n</InvMaster>\n "
70 http_version: 70 http_version:
71 - recorded_at: Thu, 17 May 2018 16:52:26 GMT 71 + recorded_at: Wed, 09 Jan 2019 00:28:42 GMT
72 recorded_with: VCR 4.0.0 72 recorded_with: VCR 4.0.0
test/cassettes/test_sor_query.yml
@@ -2,13 +2,13 @@ @@ -2,13 +2,13 @@
2 http_interactions: 2 http_interactions:
3 - request: 3 - request:
4 method: get 4 method: get
5 - uri: http://syspro.wildlandlabs.com:90/SYSPROWCFService/Rest/logon?CompanyId=L&CompanyPassword=&Operator=wland&OperatorPassword=piperita2016 5 + uri: http://syspro.wildlandlabs.com:90/SYSPROWCFService/Rest/logon?CompanyId=L&CompanyPassword=&Operator=wland&OperatorPassword=Piperita2018
6 body: 6 body:
7 encoding: US-ASCII 7 encoding: US-ASCII
8 string: '' 8 string: ''
9 headers: 9 headers:
10 User-Agent: 10 User-Agent:
11 - - Syspro/7 RubyBindings/1.0.0.alpha.1 11 + - Syspro/7 RubyBindings/1.0.0.alpha.2
12 Content-Type: 12 Content-Type:
13 - application/x-www-form-urlencoded 13 - application/x-www-form-urlencoded
14 Accept-Encoding: 14 Accept-Encoding:
@@ -27,21 +27,21 @@ http_interactions: @@ -27,21 +27,21 @@ http_interactions:
27 Server: 27 Server:
28 - Microsoft-HTTPAPI/2.0 28 - Microsoft-HTTPAPI/2.0
29 Date: 29 Date:
30 - - Thu, 17 May 2018 16:52:48 GMT 30 + - Wed, 09 Jan 2019 00:28:32 GMT
31 body: 31 body:
32 encoding: UTF-8 32 encoding: UTF-8
33 - string: '6FDE76F80A298C409BEA62CB2CB0F58B00 ' 33 + string: 'F3FD8466E601D44CB900D3B5B267692200 '
34 http_version: 34 http_version:
35 - recorded_at: Thu, 17 May 2018 16:52:48 GMT 35 + recorded_at: Wed, 09 Jan 2019 00:28:31 GMT
36 - request: 36 - request:
37 method: get 37 method: get
38 - uri: http://syspro.wildlandlabs.com:90/SYSPROWCFService/Rest/Query/Query?BusinessObject=SORQRY&UserId=6FDE76F80A298C409BEA62CB2CB0F58B00%20%20&XmlIn=%3C?xml%20version=%221.0%22%20encoding=%22Windows-1252%22?%3E%0A%3CQuery%20xmlns:xsd=%22http://www.w3.org/2001/XMLSchema-instance%22%20xsd:noNamespaceSchemaLocation=%22SORQRY.XSD%22%3E%0A%20%20%3CKey%3E%0A%20%20%20%20%3CSalesOrder%3E16R069%3C/SalesOrder%3E%0A%20%20%20%20%0A%20%20%3C/Key%3E%0A%20%20%3COption%3E%0A%20%20%20%20%3CIncludeStockedLines%3EN%3C/IncludeStockedLines%3E%0A%20%20%20%20%20%20%3CIncludeNonStockedLines%3EN%3C/IncludeNonStockedLines%3E%0A%20%20%20%20%20%20%3CIncludeFreightLines%3EN%3C/IncludeFreightLines%3E%0A%20%20%20%20%20%20%3CIncludeMiscLines%3EN%3C/IncludeMiscLines%3E%0A%20%20%20%20%20%20%3CIncludeCommentLines%3EN%3C/IncludeCommentLines%3E%0A%20%20%20%20%20%20%3CIncludeCompletedLines%3EN%3C/IncludeCompletedLines%3E%0A%20%20%20%20%20%20%3CIncludeSerials%3EN%3C/IncludeSerials%3E%0A%20%20%20%20%20%20%3CIncludeLots%3EN%3C/IncludeLots%3E%0A%20%20%20%20%20%20%3CIncludeBins%3EN%3C/IncludeBins%3E%0A%20%20%20%20%20%20%3CIncludeAttachedItems%3EN%3C/IncludeAttachedItems%3E%0A%20%20%20%20%20%20%3CIncludeCustomForms%3EN%3C/IncludeCustomForms%3E%0A%20%20%20%20%20%20%3CIncludeDetailLineCustomForms%3EN%3C/IncludeDetailLineCustomForms%3E%0A%20%20%20%20%20%20%3CIncludeValues%3EN%3C/IncludeValues%3E%0A%20%20%20%20%20%20%3CReturnLineShipDate%3EN%3C/ReturnLineShipDate%3E%0A%20%20%20%20%20%20%3CXslStylesheet/%3E%0A%20%20%3C/Option%3E%0A%3C/Query%3E%0A%0A 38 + uri: http://syspro.wildlandlabs.com:90/SYSPROWCFService/Rest/Query/Query?BusinessObject=SORQRY&UserId=F3FD8466E601D44CB900D3B5B267692200%20%20&XmlIn=%3C?xml%20version=%221.0%22%20encoding=%22Windows-1252%22?%3E%0A%3CQuery%20xmlns:xsd=%22http://www.w3.org/2001/XMLSchema-instance%22%20xsd:noNamespaceSchemaLocation=%22SORQRY.XSD%22%3E%0A%20%20%3CKey%3E%0A%20%20%20%20%3CSalesOrder%3E16R069%3C/SalesOrder%3E%0A%20%20%20%20%0A%20%20%3C/Key%3E%0A%20%20%3COption%3E%0A%20%20%20%20%3CIncludeStockedLines%3EN%3C/IncludeStockedLines%3E%0A%20%20%20%20%20%20%3CIncludeNonStockedLines%3EN%3C/IncludeNonStockedLines%3E%0A%20%20%20%20%20%20%3CIncludeFreightLines%3EN%3C/IncludeFreightLines%3E%0A%20%20%20%20%20%20%3CIncludeMiscLines%3EN%3C/IncludeMiscLines%3E%0A%20%20%20%20%20%20%3CIncludeCommentLines%3EN%3C/IncludeCommentLines%3E%0A%20%20%20%20%20%20%3CIncludeCompletedLines%3EN%3C/IncludeCompletedLines%3E%0A%20%20%20%20%20%20%3CIncludeSerials%3EN%3C/IncludeSerials%3E%0A%20%20%20%20%20%20%3CIncludeLots%3EN%3C/IncludeLots%3E%0A%20%20%20%20%20%20%3CIncludeBins%3EN%3C/IncludeBins%3E%0A%20%20%20%20%20%20%3CIncludeAttachedItems%3EN%3C/IncludeAttachedItems%3E%0A%20%20%20%20%20%20%3CIncludeCustomForms%3EN%3C/IncludeCustomForms%3E%0A%20%20%20%20%20%20%3CIncludeDetailLineCustomForms%3EN%3C/IncludeDetailLineCustomForms%3E%0A%20%20%20%20%20%20%3CIncludeValues%3EN%3C/IncludeValues%3E%0A%20%20%20%20%20%20%3CReturnLineShipDate%3EN%3C/ReturnLineShipDate%3E%0A%20%20%20%20%20%20%3CXslStylesheet/%3E%0A%20%20%3C/Option%3E%0A%3C/Query%3E%0A%0A
39 body: 39 body:
40 encoding: US-ASCII 40 encoding: US-ASCII
41 string: '' 41 string: ''
42 headers: 42 headers:
43 User-Agent: 43 User-Agent:
44 - - Syspro/7 RubyBindings/1.0.0.alpha.1 44 + - Syspro/7 RubyBindings/1.0.0.alpha.2
45 Content-Type: 45 Content-Type:
46 - application/x-www-form-urlencoded 46 - application/x-www-form-urlencoded
47 Accept-Encoding: 47 Accept-Encoding:
@@ -60,7 +60,7 @@ http_interactions: @@ -60,7 +60,7 @@ http_interactions:
60 Server: 60 Server:
61 - Microsoft-HTTPAPI/2.0 61 - Microsoft-HTTPAPI/2.0
62 Date: 62 Date:
63 - - Thu, 17 May 2018 16:52:53 GMT 63 + - Wed, 09 Jan 2019 00:28:34 GMT
64 body: 64 body:
65 encoding: UTF-8 65 encoding: UTF-8
66 string: "<?xml version=\"1.0\" encoding=\"Windows-1252\"?>\n<SorDetail Language='05' 66 string: "<?xml version=\"1.0\" encoding=\"Windows-1252\"?>\n<SorDetail Language='05'
@@ -82,5 +82,5 @@ http_interactions: @@ -82,5 +82,5 @@ http_interactions:
82 \ 0.000000</ShipGpsLat>\n<ShipGpsLong> 0.000000</ShipGpsLong>\n<ShipComplete>N</ShipComplete>\n<Email/>\n<FixExchangeRate>N</FixExchangeRate>\n<ExchangeRate> 82 \ 0.000000</ShipGpsLat>\n<ShipGpsLong> 0.000000</ShipGpsLong>\n<ShipComplete>N</ShipComplete>\n<Email/>\n<FixExchangeRate>N</FixExchangeRate>\n<ExchangeRate>
83 \ 1.000000</ExchangeRate>\n<Edited_ExchangeRate>1.000000</Edited_ExchangeRate>\n<MulDiv>M</MulDiv>\n<ConsolidatedOrder/>\n<GstDeduction>I</GstDeduction>\n<CreditedInvDate/>\n<Job/>\n<SerialisedFlag/>\n<CounterSalesFlag/>\n<Nationality/>\n<DeliveryTerms/>\n<ShippingLocation/>\n<TransactionNature>000</TransactionNature>\n<TransportMode>00</TransportMode>\n<ProcessFlag>0</ProcessFlag>\n<JobsExistFlag/>\n<AlternateKey/>\n<HierarchyFlag/>\n<DepositFlag/>\n<EdiSource/>\n<MultShipCode/>\n<CompanyTaxNo/>\n<LastOperator>MATTB</LastOperator>\n<Operator/>\n<State/>\n<CountyZip/>\n<ExtendedTaxCode/>\n<WebCreated/>\n<Quote/>\n<DispatchesMade/>\n<LiveDispExist/>\n<NumDispatches>0</NumDispatches>\n<IncludeInMrp>Y</IncludeInMrp>\n<HeaderText>\n</HeaderText>\n<HeaderNotes>\n</HeaderNotes>\n</SorDetail>\n " 83 \ 1.000000</ExchangeRate>\n<Edited_ExchangeRate>1.000000</Edited_ExchangeRate>\n<MulDiv>M</MulDiv>\n<ConsolidatedOrder/>\n<GstDeduction>I</GstDeduction>\n<CreditedInvDate/>\n<Job/>\n<SerialisedFlag/>\n<CounterSalesFlag/>\n<Nationality/>\n<DeliveryTerms/>\n<ShippingLocation/>\n<TransactionNature>000</TransactionNature>\n<TransportMode>00</TransportMode>\n<ProcessFlag>0</ProcessFlag>\n<JobsExistFlag/>\n<AlternateKey/>\n<HierarchyFlag/>\n<DepositFlag/>\n<EdiSource/>\n<MultShipCode/>\n<CompanyTaxNo/>\n<LastOperator>MATTB</LastOperator>\n<Operator/>\n<State/>\n<CountyZip/>\n<ExtendedTaxCode/>\n<WebCreated/>\n<Quote/>\n<DispatchesMade/>\n<LiveDispExist/>\n<NumDispatches>0</NumDispatches>\n<IncludeInMrp>Y</IncludeInMrp>\n<HeaderText>\n</HeaderText>\n<HeaderNotes>\n</HeaderNotes>\n</SorDetail>\n "
84 http_version: 84 http_version:
85 - recorded_at: Thu, 17 May 2018 16:52:53 GMT 85 + recorded_at: Wed, 09 Jan 2019 00:28:33 GMT
86 recorded_with: VCR 4.0.0 86 recorded_with: VCR 4.0.0
test/cassettes/test_successful_logoff.yml
@@ -2,13 +2,13 @@ @@ -2,13 +2,13 @@
2 http_interactions: 2 http_interactions:
3 - request: 3 - request:
4 method: get 4 method: get
5 - uri: http://syspro.wildlandlabs.com:90/SYSPROWCFService/Rest/logon?CompanyId=L&CompanyPassword=&Operator=wland&OperatorPassword=piperita2016 5 + uri: http://syspro.wildlandlabs.com:90/SYSPROWCFService/Rest/logon?CompanyId=L&CompanyPassword=&Operator=wland&OperatorPassword=Piperita2018
6 body: 6 body:
7 encoding: US-ASCII 7 encoding: US-ASCII
8 string: '' 8 string: ''
9 headers: 9 headers:
10 User-Agent: 10 User-Agent:
11 - - Syspro/7 RubyBindings/1.0.0.alpha.1 11 + - Syspro/7 RubyBindings/1.0.0.alpha.2
12 Content-Type: 12 Content-Type:
13 - application/x-www-form-urlencoded 13 - application/x-www-form-urlencoded
14 Accept-Encoding: 14 Accept-Encoding:
@@ -27,21 +27,21 @@ http_interactions: @@ -27,21 +27,21 @@ http_interactions:
27 Server: 27 Server:
28 - Microsoft-HTTPAPI/2.0 28 - Microsoft-HTTPAPI/2.0
29 Date: 29 Date:
30 - - Thu, 17 May 2018 16:53:11 GMT 30 + - Wed, 09 Jan 2019 00:28:31 GMT
31 body: 31 body:
32 encoding: UTF-8 32 encoding: UTF-8
33 - string: 'A23FDE0669C9E64D9D0C165DDE9324AD00 ' 33 + string: '4A540294F5C15A4F8084B3E0905E44F200 '
34 http_version: 34 http_version:
35 - recorded_at: Thu, 17 May 2018 16:53:11 GMT 35 + recorded_at: Wed, 09 Jan 2019 00:28:30 GMT
36 - request: 36 - request:
37 method: get 37 method: get
38 - uri: http://syspro.wildlandlabs.com:90/SYSPROWCFService/Rest/logoff?UserId=A23FDE0669C9E64D9D0C165DDE9324AD00%20%20 38 + uri: http://syspro.wildlandlabs.com:90/SYSPROWCFService/Rest/logoff?UserId=4A540294F5C15A4F8084B3E0905E44F200%20%20
39 body: 39 body:
40 encoding: US-ASCII 40 encoding: US-ASCII
41 string: '' 41 string: ''
42 headers: 42 headers:
43 User-Agent: 43 User-Agent:
44 - - Syspro/7 RubyBindings/1.0.0.alpha.1 44 + - Syspro/7 RubyBindings/1.0.0.alpha.2
45 Content-Type: 45 Content-Type:
46 - application/x-www-form-urlencoded 46 - application/x-www-form-urlencoded
47 Accept-Encoding: 47 Accept-Encoding:
@@ -60,10 +60,10 @@ http_interactions: @@ -60,10 +60,10 @@ http_interactions:
60 Server: 60 Server:
61 - Microsoft-HTTPAPI/2.0 61 - Microsoft-HTTPAPI/2.0
62 Date: 62 Date:
63 - - Thu, 17 May 2018 16:53:11 GMT 63 + - Wed, 09 Jan 2019 00:28:32 GMT
64 body: 64 body:
65 encoding: UTF-8 65 encoding: UTF-8
66 string: '0' 66 string: '0'
67 http_version: 67 http_version:
68 - recorded_at: Thu, 17 May 2018 16:53:11 GMT 68 + recorded_at: Wed, 09 Jan 2019 00:28:31 GMT
69 recorded_with: VCR 4.0.0 69 recorded_with: VCR 4.0.0
test/logoff_test.rb
@@ -8,7 +8,7 @@ class LogoffTest &lt; Minitest::Test @@ -8,7 +8,7 @@ class LogoffTest &lt; Minitest::Test
8 after { VCR.eject_cassette } 8 after { VCR.eject_cassette }
9 9
10 let(:username) { 'wland' } 10 let(:username) { 'wland' }
11 - let(:password) { 'piperita2016' } 11 + let(:password) { 'Piperita2018' }
12 let(:company) { 'L' } 12 let(:company) { 'L' }
13 let(:company_password) { '' } 13 let(:company_password) { '' }
14 14
test/logon_test.rb
@@ -8,7 +8,7 @@ class LogonTest &lt; Minitest::Test @@ -8,7 +8,7 @@ class LogonTest &lt; Minitest::Test
8 after { VCR.eject_cassette } 8 after { VCR.eject_cassette }
9 9
10 let(:username) { 'wland' } 10 let(:username) { 'wland' }
11 - let(:password) { 'piperita2016' } 11 + let(:password) { 'Piperita2018' }
12 let(:company) { 'L' } 12 let(:company) { 'L' }
13 let(:company_password) { '' } 13 let(:company_password) { '' }
14 14
@@ -5,8 +5,8 @@ class PorTest &lt; Minitest::Test @@ -5,8 +5,8 @@ class PorTest &lt; Minitest::Test
5 before { VCR.insert_cassette name } 5 before { VCR.insert_cassette name }
6 after { VCR.eject_cassette } 6 after { VCR.eject_cassette }
7 7
8 - let(:username) { 'wland' }  
9 - let(:password) { 'piperita2016' } 8 + let(:username) { 'wland' }
  9 + let(:password) { 'Piperita2018' }
10 let(:company) { 'L' } 10 let(:company) { 'L' }
11 let(:company_password) { '' } 11 let(:company_password) { '' }
12 let(:user_id) do 12 let(:user_id) do
test/query_test.rb
@@ -8,7 +8,7 @@ class QueryTest &lt; Minitest::Test @@ -8,7 +8,7 @@ class QueryTest &lt; Minitest::Test
8 after { VCR.eject_cassette } 8 after { VCR.eject_cassette }
9 9
10 let(:username) { 'wland' } 10 let(:username) { 'wland' }
11 - let(:password) { 'piperita2016' } 11 + let(:password) { 'Piperita2018' }
12 let(:company) { 'L' } 12 let(:company) { 'L' }
13 let(:company_password) { '' } 13 let(:company_password) { '' }
14 let(:user_id) do 14 let(:user_id) do
@@ -8,7 +8,7 @@ class SorTest &lt; Minitest::Test @@ -8,7 +8,7 @@ class SorTest &lt; Minitest::Test
8 after { VCR.eject_cassette } 8 after { VCR.eject_cassette }
9 9
10 let(:username) { 'wland' } 10 let(:username) { 'wland' }
11 - let(:password) { 'piperita2016' } 11 + let(:password) { 'Piperita2018' }
12 let(:company) { 'L' } 12 let(:company) { 'L' }
13 let(:company_password) { '' } 13 let(:company_password) { '' }
14 let(:user_id) do 14 let(:user_id) do
@@ -39,4 +39,3 @@ class SorTest &lt; Minitest::Test @@ -39,4 +39,3 @@ class SorTest &lt; Minitest::Test
39 assert_kind_of Syspro::BusinessObjects::Models::SorDetail, sor_result 39 assert_kind_of Syspro::BusinessObjects::Models::SorDetail, sor_result
40 end 40 end
41 end 41 end
42 -