bc-payments-sdk
Version:
BetterCommerce's Payments NodeJS SDK is a complete solution for storefront clients that integrate payments. `bc-payments-sdk` is a single point interface for storefront clients for interacting with payment gateways.
31 lines (30 loc) • 846 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.BCException = void 0;
class BCException 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.BCException = BCException;
;