@hipay/hipay-enterprise-sdk-nodejs
Version:
The HiPay Enterprise SDK for NodeJS is a library for developers who want to integrate HiPay Enterprise payment methods to any NodeJS platform.
29 lines (23 loc) • 480 B
JavaScript
;
class Response {
/**
* @param {Object} body
* @param {Number} status
* @param {Object} headers
*/
constructor(body, status, headers) {
this._body = body;
this._statusCode = status;
this._headers = headers;
}
get statusCode() {
return this._statusCode;
}
get headers() {
return this._headers;
}
get body() {
return this._body;
}
}
module.exports = Response;