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

21 lines
760 B
TypeScript

import { 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 Account } from './Account';
import { Schema as WithdrawChannel } from './WithdrawChannel';
import { Schema as AccountOper } from './AccountOper';
export interface Schema extends EntityShape {
account: Account;
price: Price;
channel: WithdrawChannel;
opers: AccountOper[];
}
type IState = 'withdrawing' | 'successful' | 'failed';
type IAction = 'succeed' | 'fail';
export declare const IActionDef: ActionDef<IAction, IState>;
type Action = IAction;
export declare const entityDesc: EntityDesc<Schema, Action, '', {
iState: IState;
}>;
export {};