UNPKG

@rudymalhi/intacct-sdk

Version:

Sage Intacct SDK for JavaScript

27 lines 1.05 kB
"use strict"; /** * @module Intacct/SDK/Functions/Company */ Object.defineProperty(exports, "__esModule", { value: true }); const AbstractFunction_1 = require("../AbstractFunction"); class AbstractContact extends AbstractFunction_1.default { writeXmlMailAddress(xml) { if (this.addressLine1 != null || this.addressLine2 != null || this.city != null || this.stateProvince != null || this.zipPostalCode != null || this.country != null) { xml.writeStartElement("MAILADDRESS"); xml.writeElement("ADDRESS1", this.addressLine1); xml.writeElement("ADDRESS2", this.addressLine2); xml.writeElement("CITY", this.city); xml.writeElement("STATE", this.stateProvince); xml.writeElement("ZIP", this.zipPostalCode); xml.writeElement("COUNTRY", this.country); xml.writeEndElement(); // MAILADDRESS } } } exports.default = AbstractContact; //# sourceMappingURL=AbstractContact.js.map