ESDocumentSellUnit Class |
Namespace: EcommerceStandardsDocuments
The ESDocumentSellUnit type exposes the following members.
Name | Description | |
---|---|---|
ESDocumentSellUnit | Constructor |
Name | Description | |
---|---|---|
configs | A dictionary of additional configurations and settings to include with each Ecommerce Standard Document. Typically documents would contain the "dataFields" key that would have a comma delimited list of record properties that are expected to contain data when reading the document's records. Any records not containing data for properties in list could then have the data set to a default when saved to a database. (Inherited from ESDocument.) | |
dataRecords | List of sell unit records | |
dataTransferMode | Denotes if the data being placed into document is a complete data set, or partial data being transferred containing only data changes. (Inherited from ESDocument.) | |
message | Message providing details of if the data could be obtained when requesting the document. The message gives meaning to the result status. (Inherited from ESDocument.) | |
resultStatus |
Code that denotes if the data could be successfully obtained for the document, and if not why.
See ESDocumentConstants Class for the list of status codes
(Inherited from ESDocument.) | |
totalDataRecords | The total number of records placed within document.
For documents that contain multiple record lists, please check the relevant documentation to see how this number applies.
(Inherited from ESDocument.) | |
version |
Version of the Ecommerce Standards Document.
Verifying the version of the document is critical for systems transferring and manipulating the data.
(Inherited from ESDocument.) |
{ "version": 1.5, "resultStatus": 1, "message":"The sell unit data has been successfully obtained.", "dataTransferMode": "COMPLETE", "totalDataRecords": 3, "configs":{"dataFields":"keySellUnitID,sellUnitCode,sellUnitLabel,isBaseUnit,baseQuantity,parentQuantity,keySellUnitParentID"}, "dataRecords": [ { "keySellUnitID":"1" }, { "keySellUnitID":"2", "sellUnitCode":"EA", "sellUnitLabel":"EACH", "isBaseUnit":"Y" }, { "keySellUnitID":"3", "sellUnitCode":"PK", "sellUnitLabel":"Pack", "isBaseUnit":"N", "keySellUnitParentID":"2" }, { "keySellUnitID":"4", "sellUnitCode":"CT", "sellUnitLabel":"Carton", "isBaseUnit":"N", "keySellUnitParentID":"3" }, { "keySellUnitID":"5", "sellUnitCode":"CN", "sellUnitLabel":"Container", "isBaseUnit":"N", "keySellUnitParentID":"4" }, { "keySellUnitID":"6", "sellUnitCode":"SHIP", "sellUnitLabel":"Ship Load", "isBaseUnit":"N", "keySellUnitParentID":"5" }, { "keySellUnitID":"7", "sellUnitCode":"TRAIN", "sellUnitLabel":"Train Load", "isBaseUnit":"N", "keySellUnitParentID":"5" }, { "keySellUnitID":"8", "sellUnitCode":"HOUR", "sellUnitLabel":"Hour", "isBaseUnit":"Y" }, { "keySellUnitID":"9", "sellUnitCode":"LABOUR PACK", "sellUnitLabel":"Pack Of Labour Hours", "keySellUnitParentID":"8", "isBaseUnit":"N" } ] }