oak-pay-business/lib/types/Exception.d.ts

97 lines
3.5 KiB
TypeScript

import { OakException, OpRecord } from 'oak-domain/lib/types';
import { EntityDict } from '../oak-app-domain/index';
/**
* 退款时级联创建的opers的price总和小于本次退款金额-订单未结算金额
*/
export declare class refundOpersNotEnough<ED extends EntityDict> extends OakException<ED> {
price: number;
constructor(price: number, message?: string, _module?: string, params?: Record<string, any>);
getSerialData(): {
price: number;
name: string;
message: string;
_module: string | undefined;
params: Record<string, any> | undefined;
opRecords: OpRecord<ED>[];
tag1: string | undefined;
tag2: boolean | undefined;
tag3: any;
};
}
/**
* 退款时级联创建的opers的price总和大于订单已结算金额
*/
export declare class refundOpersExceed<ED extends EntityDict> extends OakException<ED> {
price: number;
constructor(price: number, message?: string, _module?: string, params?: Record<string, any>);
getSerialData(): {
price: number;
name: string;
message: string;
_module: string | undefined;
params: Record<string, any> | undefined;
opRecords: OpRecord<ED>[];
tag1: string | undefined;
tag2: boolean | undefined;
tag3: any;
};
}
/**
* 退款时settlePlan金额超出order可计划结算金额
*/
export declare class settlePlanExceed<ED extends EntityDict> extends OakException<ED> {
price: number;
constructor(price: number, message?: string, _module?: string, params?: Record<string, any>);
getSerialData(): {
price: number;
name: string;
message: string;
_module: string | undefined;
params: Record<string, any> | undefined;
opRecords: OpRecord<ED>[];
tag1: string | undefined;
tag2: boolean | undefined;
tag3: any;
};
}
export declare class UploadShipException<ED extends EntityDict> extends OakException<ED> {
reason: any;
constructor(reason: any, message?: string, _module?: string, params?: Record<string, any>);
getSerialData(): {
reason: any;
name: string;
message: string;
_module: string | undefined;
params: Record<string, any> | undefined;
opRecords: OpRecord<ED>[];
tag1: string | undefined;
tag2: boolean | undefined;
tag3: any;
};
}
export declare class ExternalPayUtilException<ED extends EntityDict> extends OakException<ED> {
reason: any;
constructor(reason: any, message?: string, _module?: string, params?: Record<string, any>);
getSerialData(): {
reason: any;
name: string;
message: string;
_module: string | undefined;
params: Record<string, any> | undefined;
opRecords: OpRecord<ED>[];
tag1: string | undefined;
tag2: boolean | undefined;
tag3: any;
};
}
export declare class RefundExceedMax<ED extends EntityDict> extends OakException<ED> {
constructor(message?: string, _module?: string, params?: Record<string, any>);
}
export declare class PayUnRefundable<ED extends EntityDict> extends OakException<ED> {
constructor(message?: string, _module?: string, params?: Record<string, any>);
}
export declare class StartPayFailure<ED extends EntityDict> extends OakException<ED> {
constructor(message: string, _module?: string, params?: Record<string, any>);
}
export declare function makeException<ED extends EntityDict>(msg: string | object): OakException<ED> | undefined;