@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.
19 lines (14 loc) • 616 B
JavaScript
;
const AbstractMapper = require('./AbstractMapper');
const FraudScreening = require('../FraudScreening');
class FraudScreeningMapper extends AbstractMapper {
mapResponseToModel() {
const values = {
scoring: typeof this.source.scoring !== 'undefined' ? this.source.scoring : null,
result: typeof this.source.result !== 'undefined' ? this.source.result : null,
review: typeof this.source.review !== 'undefined' ? this.source.review : null
};
this._modelObject = new FraudScreening(values);
}
}
module.exports = FraudScreeningMapper;