UNPKG

@rudymalhi/intacct-sdk

Version:

Sage Intacct SDK for JavaScript

28 lines 1.14 kB
"use strict"; /** * @module Intacct/SDK/Functions/Company */ Object.defineProperty(exports, "__esModule", { value: true }); const AbstractAttachments_1 = require("./AbstractAttachments"); class AttachmentsCreate extends AbstractAttachments_1.default { writeXml(xml) { xml.writeStartElement("function"); xml.writeAttribute("controlid", this.controlId, true); xml.writeStartElement("create_supdoc"); xml.writeElement("supdocid", this.attachmentsId, true); xml.writeElement("supdocname", this.attachmentsName, true); xml.writeElement("supdocfoldername", this.attachmentFolderName); xml.writeElement("supdocdescription", this.description); if (this.files != null && this.files.length > 0) { xml.writeStartElement("attachments"); for (const file of this.files) { file.writeXml(xml); } xml.writeEndElement(); // attachments } xml.writeEndElement(); // create_supdoc xml.writeEndElement(); // function } } exports.default = AttachmentsCreate; //# sourceMappingURL=AttachmentsCreate.js.map