20 lines
639 B
TypeScript
20 lines
639 B
TypeScript
import { EntityDesc } from 'oak-domain/lib/types';
|
|
import { Schema as ApAccount } from './ApAccount';
|
|
import { Schema as Pay } from './Pay';
|
|
import { Schema as AbstractPayProduct } from './AbstractPayProduct';
|
|
export type Config = {
|
|
prepayMethod?: 'POST' | 'GET';
|
|
returnUrl?: string;
|
|
qrPayMode?: 0 | 1 | 2 | 3 | 4;
|
|
qrCodeWidth?: number;
|
|
};
|
|
export interface Schema extends AbstractPayProduct {
|
|
apAccount: ApAccount;
|
|
type: 'native' | 'mp' | 'jsapi' | 'h5' | 'app' | 'person' | 'code';
|
|
pays: Pay[];
|
|
config?: Config;
|
|
}
|
|
export declare const entityDesc: EntityDesc<Schema, '', '', {
|
|
type: Schema['type'];
|
|
}>;
|