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

22 lines
900 B
TypeScript

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