import { String, Text, Price, Boolean } from 'oak-domain/lib/types/DataType'; import { EntityDesc } from 'oak-domain/lib/types'; import { Schema as System } from './System'; import { Schema as Pay } from './Pay'; import { Schema as SysAccountOper } from './SysAccountOper'; import { Schema as AbstractAccount } from './AbstractAccount'; import { Schema as WithdrawChannel } from './WithdrawChannel'; import { SysAccountOperType as sysAction } from '../types/sysAccountOper'; export interface Schema extends AbstractAccount { type: 'bank' | 'alipay' | 'wechat' | 'shouqianba' | 'others'; channel?: String<32>; name?: String<64>; qrCode?: Text; allowDeposit: Boolean; allowPay: Boolean; system: System; price: Price; pays: Pay[]; opers: SysAccountOper[]; channels: WithdrawChannel[]; enabled: Boolean; } export type Action = sysAction | 'deposit' | 'tax'; export declare const entityDesc: EntityDesc;