async fetchAndSend() {
        // TODO: update how you fetch your files.
        const document = fs.readFileSync(path.join(__dirname, '../sbds/document.xml'), 'utf-8');
        if (!document) {
            throw new Error('Error reading the document');
        }
        return this.send(document);
    }
/**
     * Fetch your XML documents and send them to CoAPI.
     * You can set up your ftp server to retrieve your documents, however,
     * we are getting our document from the sbds folder here.
     * 
     * In order to successfully send a document,
     * you must be sure that it follows the guidelines provided by Sovos
     * For more information: [developer guide](https://developer-guide.sovos.com/connect-once-api/general-concepts/standard-business-document)
     */
Fetch your XML documents and send them to CoAPI.
You can set up your ftp server to retrieve your documents, however,
we are getting our document from the sbds folder here.

In order to successfully send a document,
you must be sure that it follows the guidelines provided by Sovos
For more information: [developer guide]
Fetch your XML documents and send them to CoAPI . You can set up your ftp server to retrieve your documents however we are getting our document from the sbds folder here . In order to successfully send a document you must be sure that it follows the guidelines provided by Sovos For more information : [ developer guide ]
async fetchAndSend() {
        const document = fs.readFileSync(path.join(__dirname, '../sbds/document.xml'), 'utf-8');
        if (!document) {
            throw new Error('Error reading the document');
        }
        return this.send(document);
    }
async fetchAndSend ( ) { const document = fs . readFileSync ( path . join ( __dirname , '../sbds/document.xml' ) , 'utf-8' ) ; if ( ! document ) { throw new Error ( 'Error reading the document' ) ; } return this . send ( document ) ; }
Fetch your XML documents and send them to CoAPI.
Fetch your XML documents and send them to CoAPI .
// TODO: update how you fetch your files.