@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.
40 lines (32 loc) • 903 B
JavaScript
;
const AbstractResponsePart = require('./AbstractResponsePart');
class FraudScreening extends AbstractResponsePart {
/**
* @param {Object} values
* @param {Number} [values.scoring]
* @param {Number} [values.result]
* @param {Number} [values.review]
*/
constructor(values) {
if (typeof values !== 'object') {
values = {};
}
super(values);
if (Object.hasOwn(values, 'scoring')) {
this.scoring = values.scoring;
}
if (Object.hasOwn(values, 'result')) {
this.result = values.result;
}
if (Object.hasOwn(values, 'review')) {
this.review = values.review;
}
}
initValues() {
super.initValues();
this.scoring = null;
this.result = null;
this.review = null;
}
}
module.exports = FraudScreening;