Sage.Integration.Northwind.Application.NorthwindConnector.GetCustomisations C# (CSharp) Method

GetCustomisations() public method

GetCustomisations is called after GetConfiguration, either when a new integration is being created or when an integration is enabled. It is a request to the ERP system for customisation information.
public GetCustomisations ( NorthwindConfig nwConfig ) : ERPCustomisations
nwConfig NorthwindConfig
return Sage.Integration.Northwind.Application.API.ERPCustomisations
        public ERPCustomisations GetCustomisations(NorthwindConfig nwConfig)
        {
            ERPCustomisations result;
            result =  new ERPCustomisations();

            result.Version = nwConfig.CustomisationVersion;

            XmlDocument resultDoc = new XmlDocument();

            resultDoc.LoadXml(@"<?xml version=""1.0"" encoding=""utf-8"" ?><getcustomisationsresponse/>");

            AddCustomisations(ref resultDoc, "AdditionalStockDetails");
            AddCustomisations(ref resultDoc, "ProductsPurchased");
            AddCustomisations(ref resultDoc, "SalesInvoices");
            AddCustomisations(ref resultDoc, "AccountTab");
            AddCustomisations(ref resultDoc, "ErpSelections");

            AddSelesReps(ref resultDoc, nwConfig);

            result.CustomisationData = resultDoc.DocumentElement;
            return result;
        }