import { AxiosResponse } from "axios"; import { ApiRequest } from "../client/ApiRequest"; import { IOptions, IRequestOptions, IStandardParameters, IStandardResponse } from "../types"; export interface ILedgerEntry { /** * The ledger entry's numeric ID. */ ledger_entry_id: number; /** * The ledger's numeric ID. */ ledger_id: number; /** * The sequence allows ledger entries to be sorted chronologically. The higher the sequence, the more recent the entry. */ sequence: number; /** * The amount of money credited to the ledger. */ credit_amount: number; /** * The amount of money debited from the ledger. */ debit_amount: number; /** * Details what kind of ledger entry this is: a payment, refund, reversal of a failed refund, disbursement, returned disbursement, recoupment, miscellaneous credit, miscellaneous debit, or bill payment */ entry_type: string; /** * Depending on the entry_type, this is the id of the corresponding payment, payment adjustment, or disbursement. */ reference_id: number; /** * The amount of money in the shop's ledger the moment after this entry was applied. */ running_balance: number; /** * The date and time the ledger entry was created in Epoch seconds. */ create_date: number; } export interface IFindLedgerEntriesParameters { shop_id: string | number; min_created?: number; max_created?: number; limit?: number; offset?: number; page?: number; } export interface IFindLedgerEntryParameters { shop_id: string | number; ledger_entry_id: number; } export declare class LedgerEntry extends ApiRequest { constructor(options: IOptions); /** * Get a Shop Payment Account Ledger's Entries */ findLedgerEntries(params: IFindLedgerEntriesParameters & IStandardParameters, extra?: IRequestOptions): Promise>>; /** * Get a Shop Payment Account Ledger Entry */ findLedgerEntry(params: IFindLedgerEntryParameters & IStandardParameters, extra?: IRequestOptions): Promise>>; }