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.

25 lines (18 loc) 506 B
'use strict'; const Convert = require('../../../Helper/Convert'); const MapperInterface = require('./MapperInterface'); class AbstractMapper extends MapperInterface { constructor(source) { super(); this._source = Convert.arrayKeysToCamelCase(source); this._modelObject = null; } get source() { return this._source; } get mappedObject() { this.mapResponseToModel(); return this._modelObject; } } module.exports = AbstractMapper;