coa-allin-pay
Version:
通联支付SDK for Node.js
207 lines (206 loc) • 5.11 kB
TypeScript
/// <reference types="node" />
declare const config: {
endpoint: string;
notify: string;
sysId: string;
accountSetNo: string;
platformAccountSetNo: string;
wxMiniPay: {
mchId: string;
appWxaId: string;
appWxaName: string;
};
wxIsvMiniPay: {
mchId: string;
appWxaId: string;
appWxaName: string;
};
wxOrgMiniPay: {
vspCusId: string;
subAppWxaId: string;
limitPay: string;
};
wxSubMiniPay: {
mchId: string;
appWxaId: string;
appWxaName: string;
};
wxOrgCashierPay: {
vspCusId: string;
limitPay: string;
};
bankAcct: {
acctName: string;
acctNo: string;
};
privateKey: Buffer;
allinPublicKey: Buffer;
bankPrivateKey: Buffer;
platformBizUserId: string;
consumerIp: string;
};
declare const memberInfo: {
country: null;
subAcctNo: string;
isSignContract: boolean;
contractNo: string;
payFailAmount: number;
remark: null;
source: number;
province: null;
userState: number;
identityType: number;
ContractNo: string;
identityCardNo: string;
isSetPayPwd: boolean;
acctOrgType: number;
signContractTime: string;
area: null;
registerIp: null;
address: null;
registerTime: string;
signAgreementNum: string;
isIdentityChecked: boolean;
userId: string;
isPhoneChecked: boolean;
realNameTime: string;
phone: string;
name: string;
};
declare const bankCardInfo: {
bankCardPro: number;
bankCardNo: string;
city: string;
unionBank: string;
cardType: number;
bankName: string;
bankCityNo: string;
bindState: number;
province: string;
bindTime: string;
phone: string;
bindMethod: number;
branchBankName: string;
isSafeCard: boolean;
};
declare const cardBinInfo: {
bankCode: string;
cardBin: string;
cardName: string;
cardType: number;
bankName: string;
cardState: number;
cardLenth: number;
cardTypeLabel: string;
};
declare const inExpDetail: {
changeTime: string;
oriAmount: number;
tradeNo: string;
curFreezenAmount: number;
accountSetName: string;
chgAmount: number;
type: string;
curAmount: number;
bizOrderNo: string;
};
export declare namespace AllinPay {
export type Config = typeof config;
export interface SetCompanyBasicInfo {
companyName: string;
authType: 2;
uniCredit: string;
identityType: 1;
legalName: string;
legalIds: string;
legalPhone: string;
accountNo: string;
parentBankName: string;
bankName: string;
unionBank: string;
}
export interface UpdateCompanyBasicInfo {
companyName?: string;
legalName?: string;
legalIds?: string;
legalPhone?: string;
}
export interface OrderDetail {
buyerBizUserId: string;
amount: number;
orderNo: string;
chnltrxid?: string;
errorMessage?: string;
orderStatus: number;
payDatetime: string;
bizOrderNo: string;
}
export interface PaymentInformationDetail {
collOrderNo: string;
collAmount: number;
payerName: string;
payerId: string;
collTime: string;
payTotalAmount: number;
unPayTotalAmount: number;
receiverInfoList?: Array<{
receiverId: string;
receiverName: string;
managedCollAmount: number;
payAmount: number;
unPayAmount: number;
status: number;
}>;
}
export type MemberType = 2 | 3;
export type MemberInfo = typeof memberInfo;
export type BankCardInfo = typeof bankCardInfo;
export type CardBinInfo = typeof cardBinInfo;
export type InExpDetail = typeof inExpDetail;
export interface SplitRuleItem {
bizUserId: string;
amount: number;
fee: number;
}
export interface RecieverListItem {
bizUserId: string;
amount: number;
}
interface CollectPayListItem {
bizOrderNo: string;
amount: number;
}
export interface BatchPayListItem {
bizOrderNo: string;
collectPayList: CollectPayListItem[];
bizUserId: string;
amount: number;
fee: number;
splitRuleList?: SplitRuleItem[];
}
export interface OrderRefundListItem {
splitBizOrderNo: string;
amount: number;
bizUserId: string;
splitRefundList: Array<{
bizUserId: string;
amount: number;
feeAmount: number;
accountSetNo?: string;
}>;
totalSplitAmount?: number;
totalSplitfeeAmount?: number;
}
export {};
}
export declare namespace AllinPaySyb {
interface Config {
endpoint: string;
appId: string;
orgId: string;
cusId: string;
sybPrivateKey: Buffer;
sybPublicKey: Buffer;
}
}
export {};