UNPKG

bc-elavon-sdk

Version:

BetterCommerce's Elavon NodeJS SDK enables BC client applications to integrate with Elavon merchant API system. It publishes an interface to interact with [Elavon API](https://developer.elavon.com/products/checkout-js/v1/api-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; ;