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.
17 lines (16 loc) • 663 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.InvalidRequestException = void 0;
const BCException_1 = require("./BCException");
class InvalidRequestException extends BCException_1.BCException {
constructor(httpResponseCode = undefined, status = undefined, errorCode = undefined, errorMessage = undefined) {
if (httpResponseCode == undefined) {
super(400, "invalid_request", "invalid_request", "Please pass valid arguments.");
}
else {
super(httpResponseCode, status, errorCode, errorMessage);
}
}
}
exports.InvalidRequestException = InvalidRequestException;
;