Click or drag to resize

ESDocumentSupplierAccount Class

Ecommerce standards document that holds a list of supplier account records
Inheritance Hierarchy
SystemObject
  EcommerceStandardsDocumentsESDocument
    EcommerceStandardsDocumentsESDocumentSupplierAccount

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

The ESDocumentSupplierAccount type exposes the following members.

Constructors
  NameDescription
Public methodESDocumentSupplierAccount
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 supplier account records
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 Supplier Account Ecommerce Standards document in its JSON serialised form
{
    "version": 1.5,
    "resultStatus": 1,
    "message":"The supplier account data has been successfully obtained.",
    "dataTransferMode": "COMPLETE",
    "totalDataRecords": 3,
    "configs":{"dataFields":"keySupplierAccountID,keyPriceLevelID,supplierAccountCode,accountName,contactName,orgName,authorityNumbers,authorityNumberLabels,authorityNumberTypes,email,accountClass,paymentTypes,territory,shippingMethod,isOnHold,isOutsideBalance,isOutsideTerms,balance,limit,termsType,termsDescription,termsValue1,termsValue2"},
    "dataRecords":
     [
        {
            "keySupplierAccountID":"SUP1",
            "keyPriceLevelID":"PL001",
            "supplierAccountCode":"SUP001"
        },
        {
            "keySupplierAccountID":"SUP2",
            "keyPriceLevelID":"PL004",
            "supplierAccountCode":"SUPL004",
            "accountName":"Suppliers Inc.",
            "contactName":"John Smith",
            "orgName":"Suppliers Inc.",
            "authorityNumbers":["2342342334","3432424424243"],
            "authorityNumberLabels":["ABN", "ACN"],
            "authorityNumberTypes":[1,2],
            "phone":"+610987654321",
            "email":"js@esdstandards.somewhere",
            "accountClass":"primary",
            "paymentTypes":"CC",
            "territory":"Melb Rural",
            "shippingMethod":"Truck",
            "isOnHold":"N",
            "isOutsideBalance":"N",
            "isOutsideTerms":"N",
            "balance":1000.00,
            "limit":0,
            "termsType":"GND",
            "termsDescription":"Pay before 14 days",
            "termsValue1":"14",
            "termsValue2":"",
            "keyGLAccountID","6011-Stationery"
        },
        {
            "keySupplierAccountID":"SUP3",
            "keyPriceLevelID":"PL001",
            "supplierAccountCode":"SUP003",
            "accountName":"ESD Industries",
            "contactName":"Joey Joe Joe",
            "orgName":"ESD Industries",
            "authorityNumber":"1234567890",
            "authorityNumberLabel":"ABN",
            "phone":"+61123456789",
            "email":"esd@esdstandards.somewhere",
            "accountClass":"secondary",
            "paymentTypes":"AC,CC,DD",
            "territory":"Melb Metro",
            "discount":0,
            "shippingMethod":"",
            "isOnHold":"N",
            "isOutsideBalance":"Y",
            "isOutsideTerms":"N",
            "balance":-2000.00,
            "limit":1000,
            "termsType":"DOM",
            "termsDescription":"Pay on the 15th day of the month",
            "termsValue1":"15",
            "keyGLAccountID","6012-Electricity"
        }
    ]
}
See Also