Exemple #1
0
        /**
         * Mailing Address (for the licence)
         */
        private SBNCreateProgramAccountRequestBodyMailingAddress getMailingAddress()
        {
            //mailing address for the licence
            var mailingAddress = new SBNCreateProgramAccountRequestBodyMailingAddress();

            mailingAddress.foreignLegacy     = GetForeignLegacyMailing();
            mailingAddress.municipality      = "ToGetFromDynamics";
            mailingAddress.provinceStateCode = "ToGetFromDynamics";
            mailingAddress.postalCode        = "ToGetFromDynamics";
            mailingAddress.countryCode       = "ToGetFromDynamics";

            return(mailingAddress);
        }
        /**
         * Mailing Address (for the licence)
         */
        private SBNCreateProgramAccountRequestBodyMailingAddress getMailingAddress(MicrosoftDynamicsCRMadoxioLicences licence)
        {
            //mailing address for the licence
            var mailingAddress = new SBNCreateProgramAccountRequestBodyMailingAddress();

            mailingAddress.foreignLegacy     = GetForeignLegacyMailing(licence);
            mailingAddress.municipality      = licence.AdoxioEstablishment.AdoxioAddresscity;
            mailingAddress.provinceStateCode = "BC";
            mailingAddress.postalCode        = Utils.FormatPostalCode(licence.AdoxioEstablishment.AdoxioAddresspostalcode);
            mailingAddress.countryCode       = "CA";

            return(mailingAddress);
        }