import AccountManager from "../account"; export type InvoiceInfos = { id: number; amount: number; status: string; type: string; expires: string; created: string; }; export declare function convertRawToInvoice(accountManager: AccountManager, raw: S): S extends InvoiceInfos[] ? Invoice[] : Invoice; export default class Invoice { private accountManager; constructor(accountManager: AccountManager, infos: InvoiceInfos); /** * The Internal Id of the Invoice * @since 0.0.1 */ id: number; /** * The Amount of Money the Invoice handled * @since 0.0.1 */ amount: number; /** * The Status of the Invoice * @since 0.0.1 */ status: 'PENDING' | 'PAID' | 'CANCELLED'; /** * The Type of the Invoice * @since 0.0.1 */ type: 'PAY_SERVER' | 'PAY_USER' | 'ADD_BALANCE' | 'ADD_DONATION'; /** * The Date when the Invoice expires * @since 0.0.1 */ expires: Date; /** * The Date when the Invoice was created * @since 0.0.1 */ created: Date; /** * Pay this Invoice * @since 0.1.16 */ pay(method: 'paypal'): import("../..").Response; /** * Cancel this Invoice * @since 0.0.1 */ cancel(): import("../..").Response; }