import { IOpenPaymentListParams, IOpenPaymentParams, IOpenTransaction, IOpenTransactionLists } from './open-transaction.interface'; import { TransactionOptions } from '../transaction.interface'; /** * Represents an open transaction. * */ export declare class OpenTransaction { /** * HTTP Request */ private request; /** * The private key for authentication. */ private privateKey; /** * The merchant code for identification. */ private merchantCode; /** * Constructs a new OpenTransaction instance. * * @param {TransactionOptions} options - The transaction options. */ constructor(options: TransactionOptions); /** * Creating a new transaction or generating a payment code for Open Payment type. * * @param {IOpenPaymentParams} params - The payment parameters. * @returns A promise that resolves to the created transaction. * @throws {TripayError} Throws an error if failed to create the transaction. * @see [Create Open Payment - Tripay](https://tripay.co.id/developer?tab=open-payment-create) */ create(params: IOpenPaymentParams): Promise; /** * Fetching the details of the previously made open payment transaction. * * @param {string} uuid - The UUID of the transaction. * @returns A promise that resolves to the transaction details. * @throws {TripayError} Throws an error if failed to retrieve the transaction. * @see [Detail Open Payment - Tripay](https://tripay.co.id/developer?tab=open-payment-detail) */ detail(uuid: string): Promise; /** * Retrieving a list of incoming payments for open payment. * * @param {string} uuid - The UUID of the payment. * @param {IOpenPaymentListParams} params - The list parameters. * @returns A promise that resolves to the list of transactions. * @throws {TripayError} Throws an error if failed to list the transactions. * @see [Open Transactions List - Tripay](https://tripay.co.id/developer?tab=open-payment-transactions) */ list(uuid: string, params?: IOpenPaymentListParams): Promise; /** * Formats a date and time to a string in the format "YYYY-MM-DD HH:mm:ss". * * @param {Date} date - The date to format. * @returns The formatted date and time string. */ private formatDateTime; }