oak-pay-business/lib/utils/payClazz/WechatPay/WechatPay.d.ts

18 lines
806 B
TypeScript

import { OpSchema, UpdateOperationData } from "../../../oak-app-domain/Pay/Schema";
import PayClazz from "../../../types/PayClazz";
import { WechatPayChannel, WechatPayConfig } from "../../../types/PayConfig";
import { BRC } from "../../../types/RuntimeCxt";
export default class WechatPay implements PayClazz {
channel: string;
constructor(channel: WechatPayChannel, appId: string, config: WechatPayConfig);
prepay(pay: OpSchema, data: UpdateOperationData, context: BRC): Promise<void>;
getState(pay: OpSchema): Promise<string | null | undefined>;
close(pay: OpSchema): Promise<void>;
decodeNotification(params: Record<string, string>, body: any): Promise<{
payId: string;
iState: string | null | undefined;
extra?: any;
answer: string;
}[]>;
}