UNPKG

cybersource-rest-client

Version:

Node.js SDK for the CyberSource REST API

101 lines (82 loc) 3.86 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.RiskV1AuthenticationSetupsPost201ResponseConsumerAuthenticationInformation = factory(root.CyberSource.ApiClient); } }(this, function(ApiClient) { 'use strict'; /** * The RiskV1AuthenticationSetupsPost201ResponseConsumerAuthenticationInformation model module. * @module model/RiskV1AuthenticationSetupsPost201ResponseConsumerAuthenticationInformation * @version 0.0.1 */ /** * Constructs a new <code>RiskV1AuthenticationSetupsPost201ResponseConsumerAuthenticationInformation</code>. * @alias module:model/RiskV1AuthenticationSetupsPost201ResponseConsumerAuthenticationInformation * @class */ var exports = function() { var _this = this; }; /** * Constructs a <code>RiskV1AuthenticationSetupsPost201ResponseConsumerAuthenticationInformation</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/RiskV1AuthenticationSetupsPost201ResponseConsumerAuthenticationInformation} obj Optional instance to populate. * @return {module:model/RiskV1AuthenticationSetupsPost201ResponseConsumerAuthenticationInformation} The populated <code>RiskV1AuthenticationSetupsPost201ResponseConsumerAuthenticationInformation</code> instance. */ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); if (data.hasOwnProperty('accessToken')) { obj['accessToken'] = ApiClient.convertToType(data['accessToken'], 'String'); } if (data.hasOwnProperty('referenceId')) { obj['referenceId'] = ApiClient.convertToType(data['referenceId'], 'String'); } if (data.hasOwnProperty('deviceDataCollectionUrl')) { obj['deviceDataCollectionUrl'] = ApiClient.convertToType(data['deviceDataCollectionUrl'], 'String'); } } return obj; } /** * JSON Web Token (JWT) used to authenticate the consumer with the authentication provider, such as, CardinalCommerce or Rupay. Note - Max Length of this field is 2048 characters. * @member {String} accessToken */ exports.prototype['accessToken'] = undefined; /** * This identifier represents cardinal has started device data collection session and this must be passed in Authentication JWT to Cardinal when invoking the deviceDataCollectionUrl. * @member {String} referenceId */ exports.prototype['referenceId'] = undefined; /** * The deviceDataCollectionUrl is the location to send the Authentication JWT when invoking the Device Data collection process. * @member {String} deviceDataCollectionUrl */ exports.prototype['deviceDataCollectionUrl'] = undefined; return exports; }));