@mozaic-io/mozaic-sdk-node
Version:
The Mozaic Node SDK enables you to pay your creators easily via the Mozaic API.
32 lines • 1.12 kB
TypeScript
import { Mozaic } from "../..";
import { Configuration, InvoicesApi } from "../../api";
import { BaseResource } from "../BaseResource";
/**
* @group Resources
*/
export declare class Invoices extends BaseResource {
private _mozaic;
private _invoicesApi;
/**
* @internal
* You should not call this constructor directly. Instead, use the Mozaic main
* entry point to get access to the SDK classes.
* @param configuration
*/
constructor(mozaic: Mozaic, configuration: Configuration);
/**
* Get the underlying API for direct calls to the Mozaic API.
*/
get InvoicesApi(): InvoicesApi;
/**
*
* @param invoiceId Downloads 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.
*
* @returns an ArrayBuffer containing the bytes of an Invoice PDF. It can be saved using:
*
* ```fs.writeFileSync(fileName, Buffer.from(arrayBuffer));```
*/
getInvoice(invoiceId: string): Promise<ArrayBuffer>;
}
//# sourceMappingURL=Invoices.d.ts.map