Internal
Get the underlying API for direct calls to the Mozaic API.
Protected
executeDownloads an invoice by it's invoiceId. The invoiceId can be found on a payment cycle that has been completed as well as other areas of the Mozaic SDK.
an ArrayBuffer containing the bytes of an Invoice PDF. It can be saved using:
fs.writeFileSync(fileName, Buffer.from(arrayBuffer));
Protected
throwProtected
throwA helper function that will either return the variable's value or throw an exception if the value is null or undefined. Unit testing is simplified by avoiding ??
The name of the variable being checked
The value of the variable being checked
The value of the variable if it is available, otherwise an exception is thrown.
You should not call this constructor directly. Instead, use the Mozaic main entry point to get access to the SDK classes.