18 lines
957 B
TypeScript
18 lines
957 B
TypeScript
import { EntityDict } from '../oak-app-domain';
|
|
import { EntityDict as BaseEntityDict } from 'oak-domain/lib/types/Entity';
|
|
import { Feature, BasicFeatures } from 'oak-frontend-base';
|
|
import { FeatureDict as Ogb0FeatureDict } from "oak-general-business";
|
|
import { FeatureDict } from "../features";
|
|
export type PayChannels = PayChannel[];
|
|
export type PayChannel = {
|
|
entityId: string;
|
|
entity: string;
|
|
label?: string;
|
|
};
|
|
export type PayChannelOption = PayChannel & {
|
|
label: string;
|
|
value: string;
|
|
};
|
|
export type StartPayRoutine = <ED extends EntityDict & BaseEntityDict, FD extends Record<string, Feature>>(pay: ED['pay']['Schema'], features: FeatureDict<ED> & BasicFeatures<ED> & Ogb0FeatureDict<ED> & FD) => Promise<void>;
|
|
export type JudgeCanPay = <ED extends EntityDict & BaseEntityDict, FD extends Record<string, Feature>>(pay: ED['pay']['Schema'], features: FeatureDict<ED> & BasicFeatures<ED> & Ogb0FeatureDict<ED> & FD) => boolean;
|