@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.
18 lines (13 loc) • 507 B
JavaScript
;
const AbstractMapper = require('../../Mapper/AbstractMapper');
const ReasonCode = require('../ReasonCode');
class ReasonCodeMapper extends AbstractMapper {
mapResponseToModel() {
const values = {
code: typeof this.source.code !== 'undefined' ? this.source.code : null,
reason: typeof this.source.reason !== 'undefined' ? this.source.reason : null
};
this._modelObject = new ReasonCode(values);
}
}
module.exports = ReasonCodeMapper;