@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.
36 lines (27 loc) • 714 B
JavaScript
;
const AbstractResponsePart = require('../AbstractResponsePart');
class Device extends AbstractResponsePart {
/**
* @param {Object} values
* @param {String} [values.id]
* @param {String} [values.ipAddress]
*/
constructor(values) {
if (typeof values !== 'object') {
values = {};
}
super(values);
if (Object.hasOwn(values, 'id')) {
this.id = values.id;
}
if (Object.hasOwn(values, 'ipAddress')) {
this.ipAddress = values.ipAddress;
}
}
initValues() {
super.initValues();
this.id = null;
this.ipAddress = null;
}
}
module.exports = Device;