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

28 lines
955 B
TypeScript

import { String, Text, Price } from 'oak-domain/lib/types/DataType';
import { EntityShape } from 'oak-domain/lib/types/Entity';
import { EntityDesc, ActionDef } from 'oak-domain/lib/types';
import { Schema as Withdraw } from './Withdraw';
import { Schema as User } from './User';
import { Schema as WithdrawAccount } from './WithdrawAccount';
import { Schema as AccountOper } from './AccountOper';
type IState = 'transferring' | 'successful' | 'failed';
type IAction = 'succeed' | 'fail';
export declare const IActionDef: ActionDef<IAction, IState>;
export interface Schema extends EntityShape {
withdraw: Withdraw;
withdrawAccount: WithdrawAccount;
price: Price;
loss: Price;
operator?: User;
creator: User;
externalId?: String<128>;
meta: Object;
reason?: Text;
sysOpers: AccountOper[];
}
type Action = IAction;
export declare const entityDesc: EntityDesc<Schema, Action, '', {
iState: IState;
}>;
export {};