import { PaymentMethod } from '../payment'; import { IFeeCalc, IPaymentChannel, ITransactions, TransactionParams } from './merchant.interface'; import { BaseOptions } from '../global'; /** * The class contains methods to access the Merchant API on Tripay. * */ export declare class Merchant { /** * HTTP Request * */ private request; /** * Creates a new instance of the Merchant class. * * @param {BaseOptions} options - The options for configuring the Merchant instance. */ constructor(options: BaseOptions); /** * Obtaining a list of active payment channels on your Merchant account, * including complete information including transaction fees for each channel. * * @param {PaymentMethod} code - Optional. The payment method code. * @throws {TripayError} Throws an error if the code parameter is incorrect. * @return {Promise} Returns a promise that resolves to an array of payment channels. * @see [Payment Channels - Tripay](https://tripay.co.id/developer?tab=merchant-payment-channel) */ paymentChannel(code?: PaymentMethod): Promise; /** * Getting the transaction fee calculation details for each channel based on the specified amount. * * @param {number} amount - The amount for which to calculate the fee. * @param {PaymentMethod} [code] - The payment method code. Optional. * @throws {TripayError} Throws an error if the code parameter is provided but is not a valid payment method. * @return {Promise} Returns a promise that resolves to an array of IFeeCalc objects representing the calculated fees. * @see [Fee Calculator - Tripay](https://tripay.co.id/developer?tab=merchant-fee-calculator) */ feeCalc(amount: number, code?: PaymentMethod): Promise; /** * To obtain a list of merchant transactions. * * @param {TransactionParams} params - Optional parameters for the transaction request. * @throws {TripayError} Throws an error if the method parameter is provided but is not a valid payment method. * @return {Promise} A promise that resolves to the transactions and pagination information. * @see [Transactions List](https://tripay.co.id/developer?tab=merchant-transactions) */ transactions(params?: TransactionParams): Promise; }