14 lines
442 B
TypeScript
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>;
|
|
} |