UNPKG

cybersource-rest-client

Version:

Node.js SDK for the CyberSource REST API

173 lines (146 loc) 6.89 kB
/** * 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.Tmsv2tokenstokenIdpaymentcredentialsDeviceInformation = factory(root.CyberSource.ApiClient); } }(this, function(ApiClient) { 'use strict'; /** * The Tmsv2tokenstokenIdpaymentcredentialsDeviceInformation model module. * @module model/Tmsv2tokenstokenIdpaymentcredentialsDeviceInformation * @version 0.0.1 */ /** * Constructs a new <code>Tmsv2tokenstokenIdpaymentcredentialsDeviceInformation</code>. * @alias module:model/Tmsv2tokenstokenIdpaymentcredentialsDeviceInformation * @class */ var exports = function() { var _this = this; }; /** * Constructs a <code>Tmsv2tokenstokenIdpaymentcredentialsDeviceInformation</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/Tmsv2tokenstokenIdpaymentcredentialsDeviceInformation} obj Optional instance to populate. * @return {module:model/Tmsv2tokenstokenIdpaymentcredentialsDeviceInformation} The populated <code>Tmsv2tokenstokenIdpaymentcredentialsDeviceInformation</code> instance. */ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); if (data.hasOwnProperty('platformType')) { obj['platformType'] = ApiClient.convertToType(data['platformType'], 'String'); } if (data.hasOwnProperty('ipAddress')) { obj['ipAddress'] = ApiClient.convertToType(data['ipAddress'], 'String'); } if (data.hasOwnProperty('httpAcceptContent')) { obj['httpAcceptContent'] = ApiClient.convertToType(data['httpAcceptContent'], 'String'); } if (data.hasOwnProperty('httpBrowserLanguage')) { obj['httpBrowserLanguage'] = ApiClient.convertToType(data['httpBrowserLanguage'], 'String'); } if (data.hasOwnProperty('httpBrowserJavaEnabled')) { obj['httpBrowserJavaEnabled'] = ApiClient.convertToType(data['httpBrowserJavaEnabled'], 'Boolean'); } if (data.hasOwnProperty('httpBrowserJavaScriptEnabled')) { obj['httpBrowserJavaScriptEnabled'] = ApiClient.convertToType(data['httpBrowserJavaScriptEnabled'], 'Boolean'); } if (data.hasOwnProperty('httpBrowserColorDepth')) { obj['httpBrowserColorDepth'] = ApiClient.convertToType(data['httpBrowserColorDepth'], 'String'); } if (data.hasOwnProperty('httpBrowserScreenHeight')) { obj['httpBrowserScreenHeight'] = ApiClient.convertToType(data['httpBrowserScreenHeight'], 'String'); } if (data.hasOwnProperty('httpBrowserScreenWidth')) { obj['httpBrowserScreenWidth'] = ApiClient.convertToType(data['httpBrowserScreenWidth'], 'String'); } if (data.hasOwnProperty('httpBrowserTimeDifference')) { obj['httpBrowserTimeDifference'] = ApiClient.convertToType(data['httpBrowserTimeDifference'], 'String'); } if (data.hasOwnProperty('userAgentBrowserValue')) { obj['userAgentBrowserValue'] = ApiClient.convertToType(data['userAgentBrowserValue'], 'String'); } } return obj; } /** * Platform type. Possible Values: - iOS: iOS app - ANDROID: Android app - WINDOWS: Windows app - WEB: Browser-based app * @member {String} platformType */ exports.prototype['platformType'] = undefined; /** * IP address of the customer. * @member {String} ipAddress */ exports.prototype['ipAddress'] = undefined; /** * The exact content of the HTTP accept header. * @member {String} httpAcceptContent */ exports.prototype['httpAcceptContent'] = undefined; /** * Value represents the browser language as defined in IETF BCP47. Example:en-US, refer https://en.wikipedia.org/wiki/IETF_language_tag for more details. * @member {String} httpBrowserLanguage */ exports.prototype['httpBrowserLanguage'] = undefined; /** * A Boolean value that represents the ability of the cardholder browser to execute Java. Value is returned from the navigator.javaEnabled property. Possible Values:True/False * @member {Boolean} httpBrowserJavaEnabled */ exports.prototype['httpBrowserJavaEnabled'] = undefined; /** * A Boolean value that represents the ability of the cardholder browser to execute JavaScript. Possible Values:True/False. **Note**: Merchants should be able to know the values from fingerprint details of cardholder's browser. * @member {Boolean} httpBrowserJavaScriptEnabled */ exports.prototype['httpBrowserJavaScriptEnabled'] = undefined; /** * Value represents the bit depth of the color palette for displaying images, in bits per pixel. Example : 24, refer https://en.wikipedia.org/wiki/Color_depth for more details * @member {String} httpBrowserColorDepth */ exports.prototype['httpBrowserColorDepth'] = undefined; /** * Total height of the Cardholder's screen in pixels. * @member {String} httpBrowserScreenHeight */ exports.prototype['httpBrowserScreenHeight'] = undefined; /** * Total width of the cardholder's screen in pixels. * @member {String} httpBrowserScreenWidth */ exports.prototype['httpBrowserScreenWidth'] = undefined; /** * Time difference between UTC time and the cardholder browser local time, in minutes. * @member {String} httpBrowserTimeDifference */ exports.prototype['httpBrowserTimeDifference'] = undefined; /** * Value of the User-Agent header sent by the customer's web browser. Note If the customer's browser provides a value, you must include it in your request. * @member {String} userAgentBrowserValue */ exports.prototype['userAgentBrowserValue'] = undefined; return exports; }));