createDocumentActionItem(documentId, metadata) {
        return {
            documentId,
            metadata
        };
    }
/**
     * This method helps build metadata object for the post request
     * when you want to execute an action on a document or multiple documents.
     * You may want to add extra information in your documents' metadata
     * especially if you are executing these actions:
     * "document.correction" or "document.distribute"
     * 
     * This is just a helper method just to remind you of what is needed for
     * an item (document object) in the document action payload.
     * 
     * For more information, please visit:
     * [developer guide](https://developer.sovos.com/apis/e-invoicing#operation/Document_PostActionMultipleDocs)

     * @param {string} documentId Id of the document
     * @param {Object} metadata Metadata options for the document to be sent
     * @param {string} metadata.reason - required. Reason why you're executing this action on the document
     * @param {string|null} [metadata.reasonCode]
     * @param {string|null} [metadata.companyId]
     * @param {string|null} [metadata.branchId]
     * @param {string|null} [metadata.documentType]
     * @param {string|null} [metadata.documentReferenceID]
     */
This method helps build metadata object for the post request
when you want to execute an action on a document or multiple documents.
You may want to add extra information in your documents' metadata
especially if you are executing these actions:
"document.correction" or "document.distribute"

This is just a helper method just to remind you of what is needed for
an item (document object) in the document action payload.

For more information, please visit:
[developer guide]

@param {string} documentId Id of the document
@param {Object} metadata Metadata options for the document to be sent
@param {string} metadata.reason - required.
This method helps build metadata object for the post request when you want to execute an action on a document or multiple documents . You may want to add extra information in your documents ' metadata especially if you are executing these actions : " document . correction " or " document . distribute " This is just a helper method just to remind you of what is needed for an item ( document object ) in the document action payload . For more information please visit : [ developer guide ] @param { string } documentId Id of the document @param { Object } metadata Metadata options for the document to be sent @param { string } metadata . reason - required .
createDocumentActionItem(documentId, metadata) {
        return {
            documentId,
            metadata
        };
    }
createDocumentActionItem ( documentId , metadata ) { return { documentId , metadata } ; }
This method helps build metadata object for the post request
 when you want to execute an action on a document or multiple documents.
This method helps build metadata object for the post request when you want to execute an action on a document or multiple documents .