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) 537 B
'use strict'; const AbstractMapper = require('../../Mapper/AbstractMapper'); const PaymentMethod = require('../PaymentMethod'); class PaymentMethodMapper extends AbstractMapper { mapResponseToModel() { const values = { name: typeof this.source.name !== 'undefined' ? this.source.name : null, description: typeof this.source.description !== 'undefined' ? this.source.description : null }; this._modelObject = new PaymentMethod(values); } } module.exports = PaymentMethodMapper;