oak-pay-business/es/types/ShipClazz.d.ts

16 lines
698 B
TypeScript

import { EntityDict } from '../oak-app-domain';
import { BRC } from '../types/RuntimeCxt';
export default interface ShipClazz {
eOrder(ship: EntityDict['ship']['OpSchema'], context: BRC): Promise<string>;
preOrder(ship: EntityDict['ship']['OpSchema'], context: BRC): Promise<string | void>;
cancelOrder(ship: EntityDict['ship']['OpSchema'], context: BRC): Promise<void>;
getState(ship: EntityDict['ship']['OpSchema']): Promise<{
iState: EntityDict['ship']['OpSchema']['iState'];
extraPaths?: EntityDict['ship']['OpSchema']['extraPaths'];
}>;
getPrintInfo(ship: EntityDict['ship']['OpSchema']): Promise<{
type: 'html';
data: string;
}>;
}