oak-pay-business/lib/entities/OfflineAccount.d.ts

23 lines
908 B
TypeScript

import { String, Text, Boolean } from 'oak-domain/lib/types/DataType';
import { EntityDesc } from 'oak-domain/lib/types';
import { Schema as Pay } from './Pay';
import { Schema as SysAccountOper } from './SysAccountOper';
import { Schema as AbstractPayAccount } from './AbstractPayAccount';
import { Schema as WithdrawChannel } from './WithdrawChannel';
export interface Schema extends AbstractPayAccount {
type: 'bank' | 'alipay' | 'wechat' | 'shouqianba' | 'others';
channel?: String<32>;
name?: String<64>;
qrCode?: Text;
allowDeposit: Boolean;
allowPay: Boolean;
pays: Pay[];
opers: SysAccountOper[];
channels: WithdrawChannel[];
enabled: Boolean;
}
export type Action = 'pay' | 'refund' | 'withdrawTransfer' | 'compensate' | 'moveIn' | 'moveOut' | 'deposit' | 'tax';
export declare const entityDesc: EntityDesc<Schema, Action, '', {
type: Schema['type'];
}>;