@yengapay/nodejs-sdk
Version:
Official Node.js SDK for YengaPay - Accept mobile money payments and send payouts in West Africa
24 lines (23 loc) • 757 B
TypeScript
/**
* YengaPay SDK Error Classes
*/
export declare class YengaPayError extends Error {
statusCode?: number | undefined;
code?: string | undefined;
constructor(message: string, statusCode?: number | undefined, code?: string | undefined);
}
export declare class AuthenticationError extends YengaPayError {
constructor(message?: string);
}
export declare class ValidationError extends YengaPayError {
constructor(message: string);
}
export declare class NotFoundError extends YengaPayError {
constructor(message: string);
}
export declare class PaymentError extends YengaPayError {
constructor(message: string, statusCode?: number);
}
export declare class NetworkError extends YengaPayError {
constructor(message?: string);
}