16 lines
558 B
TypeScript
16 lines
558 B
TypeScript
import { EntityDict } from '../oak-app-domain';
|
|
type IState = EntityDict['pay']['OpSchema']['iState'];
|
|
export default interface PayClazz {
|
|
type: string;
|
|
prepay(pay: EntityDict['pay']['OpSchema']): Promise<[string, object]>;
|
|
getState(pay: EntityDict['pay']['OpSchema']): Promise<IState>;
|
|
close(pay: EntityDict['pay']['OpSchema']): Promise<void>;
|
|
decodeNotification(params: Record<string, string>, body: any): Promise<Array<{
|
|
payId: string;
|
|
iState: IState;
|
|
extra?: any;
|
|
answer: string;
|
|
}>>;
|
|
}
|
|
export {};
|