19 lines
819 B
TypeScript
19 lines
819 B
TypeScript
import { String, Text, Boolean } from 'oak-domain/lib/types/DataType';
|
|
import { EntityDesc } from 'oak-domain/lib/types';
|
|
import { Schema as WechatPay } from './WechatPay';
|
|
import { Schema as SysAccountOper } from './SysAccountOper';
|
|
import { Schema as AbstractPayAccount } from './AbstractPayAccount';
|
|
import { Schema as WithdrawChannel } from './WithdrawChannel';
|
|
export interface Schema extends AbstractPayAccount {
|
|
wechatPay: WechatPay;
|
|
mchId: String<128>;
|
|
publicKeyFilePath: Text;
|
|
privateKeyFilePath: Text;
|
|
apiV3Key: String<32>;
|
|
opers: SysAccountOper[];
|
|
channels: WithdrawChannel[];
|
|
enabled: Boolean;
|
|
}
|
|
export type Action = 'pay' | 'refund' | 'withdrawTransfer' | 'compensate' | 'moveIn' | 'moveOut' | 'deposit' | 'tax';
|
|
export declare const entityDesc: EntityDesc<Schema, Action>;
|