UNPKG

@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) 490 B
'use strict'; const AbstractMapper = require('../../Mapper/AbstractMapper'); const Device = require('../Device'); class DeviceMapper extends AbstractMapper { mapResponseToModel() { const values = { id: typeof this.source.id !== 'undefined' ? this.source.id : null, ipAddress: typeof this.source.ipAddress !== 'undefined' ? this.source.ipAddress : null }; this._modelObject = new Device(values); } } module.exports = DeviceMapper;