Click or drag to resize

ESDocumentLocation Class

Ecommerce standards document that contains a list of location records
Inheritance Hierarchy
SystemObject
  EcommerceStandardsDocumentsESDocument
    EcommerceStandardsDocumentsESDocumentLocation

Namespace:  EcommerceStandardsDocuments
Assembly:  EcommerceStandardsDocuments.Library (in EcommerceStandardsDocuments.Library.dll) Version: 1.5.0.0 (1.0.0.0)

The ESDocumentLocation type exposes the following members.

Constructors
  NameDescription
Public methodESDocumentLocation
Constructor
Top
Fields
  NameDescription
Public fieldconfigs
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.)
Public fielddataRecords
List of Location records. The data records property must be the last property in the JSON data when serialised.
Public fielddataTransferMode
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.)
Public fieldmessage
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.)
Public fieldresultStatus
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.)
Public fieldtotalDataRecords
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.)
Public fieldversion
Version of the Ecommerce Standards Document. Verifying the version of the document is critical for systems transferring and manipulating the data.
(Inherited from ESDocument.)
Top
Examples
An example of the Location Ecommerce Standards document in its JSON serialised form
{
    "version": 1.5,
    "resultStatus": 1,
    "message":"The location data has been successfully obtained.",
    "dataTransferMode": "COMPLETE",
    "totalDataRecords": 3,
    "configs":{
        "dataFieldsLocation":"keyLocationID,locationCode,locationName,address1,address2,address3,region,country,postcode,contact,phone,fax,isActive,isGeographic,latitude,longitude",
        "dataFieldsLocationStock":"keyProductID,qtyAvailable,qtyOnHand,qtyOrdered,qtyBackordered,qtyReserved,qtyConsigned"
     },
    "dataRecords":
        [
            {
                "keyLocationID":"111",
                "locationCode":"LOC-111",
                "locationName":"Local Store"
            },
            {
                "keyLocationID":"123",
                "locationCode":"LOC-123",
                "locationName":"Head Office",
                "address1":"234",
                "address2":"Bourke Street",
                "address3":"Melbourne",
                "region":"Victoria",
                "country":"Australia",
                "postcode":"3000",
                "contact":"John Doe",
                "phone":"+614001112222",
                "fax":"+614002223333",
                "email":"headoffice@example.com",
                "isActive":"Y",
                "isGeographic":"Y",
                "latitude":45.123,
                "longitude":-72.123,
                "website":"www.example.com",
                "locationType":"OFFICE",
                "productStock":[],
                "attributes":[]
            },
            {
                "keyLocationID":"456",
                "locationCode":"LCT-456",
                "locationName":"Warehouse",
                "address1":"237",
                "address2":"Bourke Street",
                "address3":"Melbourne",
                "region":"Victoria",
                "country":"Australia",
                "postcode":"3000",
                "contact":"Max Smith",
                "phone":"+614003334444",
                "fax":"+614005556666",
                "email":"warehouse@example.com",
                "isActive":"Y",
                "isGeographic":"Y",
                "latitude":45.423,
                "longitude":-72.823,
                "website":"www.example.com",
                "locationType":"WAREHOUSE",
                "productStock":
                [
                    {
                        "keyProductID":"ABC",
                        "qtyAvailable":432
                    },
                    {
                        "keyProductID":"DEF",
                        "qtyAvailable":0,
                        "qtyOnHand":0,
                        "qtyOrdered":5,
                        "qtyBackordered":10,
                        "qtyReserved":11,
                        "qtyConsigned":3
                    }
                ],
                "attributes":
                [
                    {
                        "keyAttributeProfileID":"BD",
                        "keyAttributeID":"BRAND-NAME",
                        "stringValue": "Acme Shoes"
                    },
                    {
                        "keyAttributeProfileID":"BD",
                        "keyAttributeID":"BRAND-NAME",
                        "stringValue": "Swisho Shoes"
                    },
                    {
                        "keyAttributeProfileID":"BD",
                        "keyAttributeID":"BRAND-NAME",
                        "stringValue": "Budgety Shoes"
                    }
                ]
            }
        ]
}
See Also