UNPKG

bc-clearpay-sdk

Version:

BetterCommerce's ClearPay NodeJS SDK enables BC client applications to integrate with ClearPay merchant API system. It publishes an interface to interact with [ClearPay API v2](https://developers.clearpay.co.uk/clearpay-online/reference) endpoints.

31 lines (30 loc) 884 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.BaseException = void 0; class BaseException extends Error { constructor(httpResponseCode, status, errorCode, errorMessage) { super(errorMessage); this.httpResponseCode = httpResponseCode; this.status = status; this.errorCode = errorCode; this.errorMessage = errorMessage; this.httpResponseCode = httpResponseCode; this.status = status; this.errorCode = errorCode; this.errorMessage = errorMessage; } getHttpResponseCode() { return this.httpResponseCode; } getStatus() { return this.status; } getErrorCode() { return this.errorCode; } getErrorMessage() { return this.errorMessage; } } exports.BaseException = BaseException; ;