import Core from "../interfaces/core"; import { Invoice, InvoiceParams } from "../types/invoices"; import { List, ListOption } from "../types"; import BaseResource from "./base"; export default class InvoicesResource extends BaseResource implements Core { constructor(apiKey: string, maxRetries: number, timeout: number); private getMetadata; /** Creates an invoice */ create(params: InvoiceParams): Promise; /** Creates an invoice in draft mode */ draft(params: InvoiceParams): Promise; /** Retrieves an invoice by its id. */ retrieve(id: string): Promise; update(id: string, params: InvoiceParams): Promise; /** Manually pay an invoice. */ pay(id: string): Promise; /** Sends a draft invoice to the customer. */ sendDraftInvoice(id: string): Promise; /** * Sends a payment reminder for an invoice to the customer. */ sendReminder(id: string): Promise; /** Returns a list of invoices. */ list(options?: ListOption): Promise>; }