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

36 lines
1.2 KiB
TypeScript

import { String, Text, Boolean, Int } from 'oak-domain/lib/types/DataType';
import { EntityDesc } from 'oak-domain/lib/types';
import { Schema as AliPay } from './AliPay';
import { Schema as SysAccountOper } from './SysAccountOper';
import { Schema as AbstractPayAccount } from './AbstractPayAccount';
import { Schema as WithdrawChannel } from './WithdrawChannel';
export interface Schema extends AbstractPayAccount {
aliPay: AliPay;
appId: String<128>;
mchId: String<128>;
publicKeyPath?: Text;
privateKeyPath?: Text;
opers: SysAccountOper[];
channels: WithdrawChannel[];
enabled: Boolean;
mode: 'publicKey' | 'certificate';
alipayRootCertPath?: Text;
alipayPublicCertPath?: Text;
appCertPath?: Text;
endpoint?: String<128>;
setting: 'userId' | 'openId';
callbackUrl?: Text;
encryptKey?: Text;
keyType: "PKCS1" | "PKCS8";
gateway?: Text;
timeout?: Int<4>;
wsServiceUrl?: Text;
needEncrypt?: Boolean;
}
export type Action = 'pay' | 'refund' | 'withdrawTransfer' | 'compensate' | 'moveIn' | 'moveOut' | 'deposit' | 'tax';
export declare const entityDesc: EntityDesc<Schema, Action, '', {
mode: Schema['mode'];
setting: Schema['setting'];
keyType: Schema['keyType'];
}>;