import { PayGroup } from "./model"; import { WalletPassDataType } from "./PaymentMethods/WalletPass/serve"; /** * 计算walletPass列表数据的总金额 * @param list */ export declare const calcWalletPassListAmount: (list: any[]) => any; /** * 将walletPass列表数据转换为prepare_payments需要的数据格式 * @param list */ export declare const formatWalletPassList2PreparePayments: (list?: any[]) => { voucher_id: any; amount: number; tag: any; }[]; /** * walletPass支付params * @param payGroup */ export declare const formatWalletPassParams: (payGroup: PayGroup) => { order_id: string; payment_group_id: number; payments: { amount: string | number; wallet_pass_use_value: any; voucher_id: any; tag: any; wallet_pass_usage_unit: any; metadata: { unique_payment_number: any; }; }[]; }; /** * @title: 获取是否walletPass和三方支付的组合支付 * @description: 三方支付 (stripe 支付宝 微信 苹果 谷歌) * @return: * * @Author: shengjie.zuo * @Date: 2024-08-30 10:06:17 */ export declare const getIsWalletPassAndTripartitePayment: (payGroup: PayGroup) => boolean | 0 | undefined; export declare const isFranchiseeShop: (path?: any, history?: any) => any; /** * @title: 获取当前连锁加盟店铺shopid * @description: * @param {any} param1 * @return {*} * @Author: chensheng.gu * @Date: 2024-08-07 10:04 */ export declare const getFranchiseeShopId: (path?: any, history?: any) => number; export declare const formatFranchiseeRoute: (url: string, history?: any) => string; export declare const getAvailableMaxAmount: (data: WalletPassDataType) => string | number; export declare const clientPayment: (params: { order_id: number; type: "aliPay" | "wxPay" | 'google_pay'; values: any; interaction?: any; }) => void; /** * 获取唯一幂等token * @returns */ export declare const getUniqueIdempotencyToken: () => string;