UNPKG

@pisell/pisellos

Version:

一个可扩展的前端模块化SDK框架,支持插件系统

20 lines (19 loc) 704 B
import { CashPayment } from './types'; import type { PaymentModule } from './index'; /** * 现金支付实现 */ export declare class CashPaymentImpl implements CashPayment { private paymentModule; constructor(paymentModule: PaymentModule); processCashPayment(amount: number, orderUuid: string): Promise<void>; getCashBalance(): Promise<number>; /** * 获取推荐支付金额 * 基于目标金额和货币类型,返回最优支付金额建议 * @param money 目标支付金额 * @param currency 货币代码 (如: 'CNY', 'USD', 'EUR' 等) * @returns 推荐支付金额数组 */ getRecommendedAmount(money: number, currency: string): number[]; }