Files
18xchat/assets/Scripts/chat18x/payment/PaymentFlow.ts
T
2025-09-18 18:28:28 +08:00

14 lines
442 B
TypeScript

/**
* 支付流程的相关接口
*
*/
import type proto from "db://assets/Scripts/proto/proto.pb.js";
import { type OpenStrategy } from "./PaymentOpener";
export interface PaymentFlow {
/** 开始支付流程 */
run(orderId: string, payUrl: string, open: OpenStrategy): Promise<proto.cs.ICSQueryOrderRes | null>;
/** 恢复未完成订单 */
resume(orderId: string, payUrl: string): Promise<proto.cs.ICSQueryOrderRes | null>;
}