import { ICallbackParams } from '../interfaces/requestParams/CallbackPayloadParams'; import { CheckoutConfig } from '../interfaces/CheckoutConfig'; import { IApiResponseObject } from '../interfaces/responses/ApiResponse'; import { IGetPaymentModesParams } from '../interfaces/requestParams/GetPaymentModesParams'; import { ICallbackPayload } from '../interfaces/responses/CallbackPayload'; import { IProcessedPaymentModesResponse } from '../utils/responseProcessor'; export default class CheckoutUtils { private config; constructor(config: typeof CheckoutConfig); /** * Retrieves available payment modes for the current order. * * @param params - Optional parameters to customize the payment modes request * @returns Promise resolving to payment modes data * * @example * ```typescript * // Basic usage * const paymentModes = await checkoutUtils.getPaymentModes(); * * // With custom parameters * const paymentModes = await checkoutUtils.getPaymentModes({ * order_id: 'custom_order_123', * os: 'android', * upi_app_package_names: ['com.phonepe.app', 'com.google.android.apps.nbu.paisa.user'] * }); * ``` */ getPaymentModes: (params?: Partial) => Promise>; getCallbackPayload: (callbackParams?: ICallbackParams) => Promise>; }