cybersource-rest-client
Version:
Node.js SDK for the CyberSource REST API
113 lines (95 loc) • 3.85 kB
JavaScript
/**
* CyberSource Merged Spec
* All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html
*
* OpenAPI spec version: 0.0.1
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
*
* Swagger Codegen version: 2.4.38
*
* Do not edit the class manually.
*
*/
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['ApiClient'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
module.exports = factory(require('../ApiClient'));
} else {
// Browser globals (root is window)
if (!root.CyberSource) {
root.CyberSource = {};
}
root.CyberSource.Acpv1tokensDeviceInformationDeviceData = factory(root.CyberSource.ApiClient);
}
}(this, function(ApiClient) {
'use strict';
/**
* The Acpv1tokensDeviceInformationDeviceData model module.
* @module model/Acpv1tokensDeviceInformationDeviceData
* @version 0.0.1
*/
/**
* Constructs a new <code>Acpv1tokensDeviceInformationDeviceData</code>.
* Device data.
* @alias module:model/Acpv1tokensDeviceInformationDeviceData
* @class
* @param type {String} Type of device being used. Example values are: - Mobile Phone - Tablet - Tablet - Laptop - Personal Assistant - Connected Auto - Home Appliance - Wearable - Stationary Computer - E-Reader - Handheld Gaming Devices - Other
* @param brand {String} Brand name of the device.
*/
var exports = function(type, brand) {
var _this = this;
_this['type'] = type;
_this['brand'] = brand;
};
/**
* Constructs a <code>Acpv1tokensDeviceInformationDeviceData</code> from a plain JavaScript object, optionally creating a new instance.
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
* @param {Object} data The plain JavaScript object bearing properties of interest.
* @param {module:model/Acpv1tokensDeviceInformationDeviceData} obj Optional instance to populate.
* @return {module:model/Acpv1tokensDeviceInformationDeviceData} The populated <code>Acpv1tokensDeviceInformationDeviceData</code> instance.
*/
exports.constructFromObject = function(data, obj) {
if (data) {
obj = obj || new exports();
if (data.hasOwnProperty('type')) {
obj['type'] = ApiClient.convertToType(data['type'], 'String');
}
if (data.hasOwnProperty('manufacturer')) {
obj['manufacturer'] = ApiClient.convertToType(data['manufacturer'], 'String');
}
if (data.hasOwnProperty('brand')) {
obj['brand'] = ApiClient.convertToType(data['brand'], 'String');
}
if (data.hasOwnProperty('model')) {
obj['model'] = ApiClient.convertToType(data['model'], 'String');
}
}
return obj;
}
/**
* Type of device being used. Example values are: - Mobile Phone - Tablet - Tablet - Laptop - Personal Assistant - Connected Auto - Home Appliance - Wearable - Stationary Computer - E-Reader - Handheld Gaming Devices - Other
* @member {String} type
*/
exports.prototype['type'] = undefined;
/**
* Manufacturer of the device.
* @member {String} manufacturer
*/
exports.prototype['manufacturer'] = undefined;
/**
* Brand name of the device.
* @member {String} brand
*/
exports.prototype['brand'] = undefined;
/**
* Specific model of the device.
* @member {String} model
*/
exports.prototype['model'] = undefined;
return exports;
}));