/** * ## Payment * This module provides functionalities for processing and managing payments directly through the kiosk. * * @packageDocumentation */ import { PaymentTerminalCaptureDto, PaymentTerminalCommandDto, PaymentTerminalCorrectionDto, PaymentTerminalDto, PaymentTerminalPreAuthDto, PaymentTerminalPurchaseDto, PaymentTerminalRefundDto, PaymentTerminalTransaction } from '@eflyn/esuite-client'; import { PaymentApproveOptions } from './payment-approve-options'; export * from './payment-approve-options'; export declare class Payment { /** * Process an approved payment on the kiosk using a pre-built * workflow and components. * @example * ```javascript * // Use the following method when a message needs to be submitted: * eflyn.payment.approve(options); * ``` * @param options An object containing options for processing a payment. */ approve(options: PaymentApproveOptions): Promise; /** * Process an custom cash payment on the kiosk using a pre-built * workflow and components. * @example * ```javascript * // Use the following method when a message needs to be submitted: * eflyn.payment.cash(options); * ``` * @param options An object containing options for processing a payment. */ cash(options: PaymentApproveOptions): Promise; /** * Process a purchase transaction with a payment terminal. * @example * ```javascript * eflyn.payment.purchase(dto) { throw new Error('Not Implemented') }; * ``` */ purchase(purchaseDto: PaymentTerminalPurchaseDto): Promise; /** * Process a refund transaction with a payment terminal. * @example * ```javascript * eflyn.payment.refund(dto) { throw new Error('Not Implemented') }; * ``` */ refund(refundDto: PaymentTerminalRefundDto): Promise; /** * Process a refund using a dialog * @param options */ refundDialog(options: PaymentApproveOptions): Promise; /** * Process a correction/void transaction with a payment terminal. * @example * ```javascript * eflyn.payment.correction(dto) { throw new Error('Not Implemented') }; * ``` */ correction(voidDto: PaymentTerminalCorrectionDto): Promise; /** * Cancel a running transaction or clear the terminal. * @example * ```javascript * eflyn.payment.cancel(dto) { throw new Error('Not Implemented') }; * ``` */ cancel(cancelDto: PaymentTerminalDto): Promise; /** * Specialized commands for certain devices (such as initialize) * @example * ```javascript * eflyn.payment.command(dto) { throw new Error('Not Implemented') }; * ``` */ command(commandDto: PaymentTerminalCommandDto): Promise; /** * Process pre-authorized transaction * @example * ```javascript * eflyn.payment.preAuth(dto) { throw new Error('Not Implemented') }; * ``` */ preAuth(preAuthDto: PaymentTerminalPreAuthDto): Promise; /** * Process credit capture transaction * @example * ```javascript * eflyn.payment.capture(dto) { throw new Error('Not Implemented') }; * ``` */ capture(captureDto: PaymentTerminalCaptureDto): Promise; }