oak-pay-business/es/entities/WpProduct.d.ts

19 lines
697 B
TypeScript

import { Boolean, Decimal } from 'oak-domain/lib/types/DataType';
import { EntityShape } from 'oak-domain/lib/types/Entity';
import { EntityDesc } from 'oak-domain/lib/types';
import { Schema as WpAccount } from './WpAccount';
import { Schema as Application } from 'oak-general-business/lib/entities/Application';
import { Schema as Pay } from './Pay';
export interface Schema extends EntityShape {
wpAccount: WpAccount;
type: 'native' | 'mp' | 'jsapi' | 'h5' | 'app';
taxLossRatio?: Decimal<4, 2>;
application: Application;
enabled: Boolean;
shipping: Boolean;
pays: Pay[];
}
export declare const entityDesc: EntityDesc<Schema, '', '', {
type: Schema['type'];
}>;