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

11 lines
633 B
TypeScript

import { EntityDict } from '../../oak-app-domain';
import PayClazz from '../../types/PayClazz';
import { BRC } from '../../types/RuntimeCxt';
export declare const AppTypeToPayChannelDict: {
[k in EntityDict['application']['OpSchema']['type']]: string[];
};
type PayClazzConstructor = <ED extends EntityDict>(application: ED['application']['Schema'], channel: string, context: BRC) => Promise<PayClazz>;
export declare function registerAppPayClazzConstructor(channel: string, constructor: PayClazzConstructor): void;
export declare function getPayClazz(appId: string, channel: string, context: BRC): Promise<PayClazz>;
export {};