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

19 lines
631 B
TypeScript

import { String, Price } from 'oak-domain/lib/types/DataType';
import { EntityShape } from 'oak-domain/lib/types/Entity';
import { EntityDesc } from 'oak-domain/lib/types';
import { Schema as Pay } from './Pay';
import { Schema as Refund } from './Refund';
import { Schema as Withdraw } from './Withdraw';
export interface Schema extends EntityShape {
delta: Price;
type: 'pay' | 'refund' | 'withdraw' | 'compensate';
entity: String<32>;
entityId: String<64>;
pay?: Pay;
refund?: Refund;
withdraw?: Withdraw;
}
export declare const entityDesc: EntityDesc<Schema, '', '', {
type: Schema['type'];
}>;