import { gracely } from "gracely"; import { isoly } from "isoly"; import { http } from "cloudly-http"; import { isly } from "isly2"; import { Card } from "../../Card"; import { Operation } from "../../Operation"; import { Rail } from "../../Rail"; import { Rule } from "../../Rule"; import { Supplier } from "../../Supplier"; import { Transaction } from "../../Transaction"; import { Notes } from "./Notes"; export declare class Transactions { private readonly client; readonly Notes: Notes; constructor(client: http.Client); create(account: string, transaction: Transaction.Creatable): Promise; list(options?: string | Transactions.Query): Promise<(Transaction[] & { cursor?: string; }) | gracely.Error>; fetch(transaction: string, account?: string): Promise; getOperations(transactionId: string): Promise; getState(transactionId: string): Promise; statistics(range: isoly.DateRange, queries?: { cursor?: string; scheme?: Card.Scheme; supplier?: Supplier; limit?: number; }): Promise; } export declare namespace Transactions { interface Query { id?: string; account?: string; limit?: number; cursor?: string; start?: isoly.DateTime; end?: isoly.DateTime; currency?: string; organization?: string; references?: string[]; rail?: Rail; type?: Transaction.Types; } namespace Query { const type: isly.Object<{ id: string | undefined; account: string | undefined; limit: number | undefined; cursor: string | undefined; start: string | undefined; end: string | undefined; currency: string | undefined; organization: string | undefined; rail: "paxgiro" | "mastercard" | "diners" | "visa" | "internal" | "transfer" | "paxgiro-credit" | "fasterpayments" | "chaps" | "bacs" | "credit" | undefined; type: "card" | "internal" | "external" | "system" | undefined; }>; function parse(query: string | http.Request["search"]): Query; } }