import { BillsStatic } from "./../interfaces/BillsStatic"; import BaseCrud from "./BaseCrud"; import { PaymentsStatic } from "../interfaces/PaymentsStatic"; import { BaseStatic } from "../interfaces/BaseStatic"; /** * @deprecated Use BillsV4 instead */ export default class Bills extends BaseCrud { constructor(apiToken: string); /** * issue a bill * * @param {number} id * @returns {Promise<{ success: boolean }>} * @memberof Bills */ issue(id: number): Promise<{ success: boolean; }>; /** * revert a bill issue * * @param {number} id * @returns {Promise<{ success: boolean }>} * @memberof Bills */ revertIssue(id: number): Promise<{ success: boolean; }>; /** * List all payments for this bill * * @param {number} billId * @param {BaseStatic.BaseOptions} [options] * @returns {Promise} * @memberof Bills */ listPayments(billId: number, options?: BaseStatic.BaseOptions): Promise; /** * Show a specific payment for this bill * * @param {number} billId * @param {number} paymentId * @param {BaseStatic.BaseOptions} [options] * @returns {Promise} * @memberof Bills */ showPayment(billId: number, paymentId: number, options?: BaseStatic.BaseOptions): Promise; /** * Create a new payment for this bill * * @param {number} billId * @param {PaymentsStatic.PaymentCreate} payment * @returns {Promise} * @memberof Bills */ createPayment(billId: number, payment: PaymentsStatic.PaymentCreate): Promise; /** * delete a specific payment for this bill * * @param {number} billId * @param {number} paymentId * @returns {Promise} * @memberof Bills */ deletePayment(billId: number, paymentId: number): Promise; }