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

25 lines
964 B
TypeScript

import { String, Text, 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';
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;
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'];
}>;