ESDocumentCategory Class |
Namespace: EcommerceStandardsDocuments
The ESDocumentCategory type exposes the following members.
Name | Description | |
---|---|---|
categoryTreeRecords | List of category tree records | |
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 category 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 category data has been successfully obtained.", "dataTransferMode": "COMPLETE", "totalDataRecords": 3, "configs":{ "dataFieldsCategoryTree":"keyCategoryTreeID,categoryTreeCode,name,description,ordering,isMakerModelCategoryTree", "dataFields":"keyCategoryID,categoryCode,keyCategoryParentID,name,description1,description2,description3,description4,metaTitle,metaKeywords,metaDescription,ordering" }, "categoryTreeRecords": [ { "keyCategoryTreeID":"1", "name":"Product Catalogue", }, { "keyCategoryTreeID":"2-BRANDS", "categoryTreeCode":"BRANDS", "name":"Product Brands", "description":"View all the brands of products we sell.", "ordering":2, "isMakerModelCategoryTree": "N" }, { "keyCategoryTreeID":"3-MAKE-MODEL", "categoryTreeCode":"MAKEMODEL", "name":"Make Model", "description":"Contains categories that allow products belonging to each model of a maker/manufacturer to be assigned to.", "ordering":3, "isMakerModelCategoryTree": "Y" } ], "dataRecords": [ { "keyCategoryID":"2", "categoryCode":"Home and Stationery" }, { "keyCategoryID":"123", "categoryCode":"tables-chairs", "keyCategoryTreeID":"1", "keyCategoryParentID":"2", "name":"Tables and Chairs", "description1":"View our extensive range of tables and chairs", "description2":"Range includes products from the ESD designers", "description3":"", "description4":"", "metaTitle":"Tables and Chairs From ESD Designers", "metaKeywords":"tables chairs esd furniture designers", "metaDescription":"Tables and chairs from the ESD designers", "ordering": 2, "keyProductIDs":["TAB-1","53432","CHAIR-5"], "keyDownloadIDs":[], "keyLabourIDs":[] }, { "keyCategoryID":"124", "categoryCode":"paper", "keyCategoryTreeID":"1", "keyCategoryParentID":"2", "name":"Paper Products", "description1":"View our extensive range of paper", "description2":"Range includes paper only sources from sustainable environments", "description3":"", "description4":"", "metaTitle":"Paper Products", "metaKeywords":"paper products environmental", "metaDescription":"Paper products from sustainable environments", "ordering": 1, "keyProductIDs":["PROD-001","PROD-002"], "keyDownloadIDs":["DOWN-1", "DOWN-2","DOWN-3"], "keyLabourIDs":[] }, { "keyCategoryID":"124", "categoryCode":"acme-brand", "keyCategoryTreeID":"2-BRANDS", "keyCategoryParentID":null, "name":"Paper Products", "description1":"View All Acme Brand's products", "description2":"Range shows all products made by the Acme corporation.", "description3":"", "description4":"", "metaTitle":"Acme Products", "metaKeywords":"", "metaDescription":"", "ordering": 1, "keyProductIDs":["PROD-003","PROD-004"], "keyDownloadIDs":[], "keyLabourIDs":[] } ] }