UNPKG

cybersource-rest-client

Version:

Node.js SDK for the CyberSource REST API

103 lines (85 loc) 3.62 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.Acpv1tokensAuthenticatedIdentities = factory(root.CyberSource.ApiClient); } }(this, function(ApiClient) { 'use strict'; /** * The Acpv1tokensAuthenticatedIdentities model module. * @module model/Acpv1tokensAuthenticatedIdentities * @version 0.0.1 */ /** * Constructs a new <code>Acpv1tokensAuthenticatedIdentities</code>. * Authenticated Identities data. Contains the identity assertion from the authentication provider. * @alias module:model/Acpv1tokensAuthenticatedIdentities * @class * @param id {String} This is a distinctive and non-transparent identifier provided by VISA for correlation purposes in the previous, related API. Field Mapping when authenticationMethodType is 'FIDO2': - On Success: FidoResponse.identifier - On Error: AuthContext.identifier */ var exports = function(id) { var _this = this; _this['id'] = id; }; /** * Constructs a <code>Acpv1tokensAuthenticatedIdentities</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/Acpv1tokensAuthenticatedIdentities} obj Optional instance to populate. * @return {module:model/Acpv1tokensAuthenticatedIdentities} The populated <code>Acpv1tokensAuthenticatedIdentities</code> instance. */ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); if (data.hasOwnProperty('data')) { obj['data'] = ApiClient.convertToType(data['data'], 'String'); } if (data.hasOwnProperty('provider')) { obj['provider'] = ApiClient.convertToType(data['provider'], 'String'); } if (data.hasOwnProperty('id')) { obj['id'] = ApiClient.convertToType(data['id'], 'String'); } } return obj; } /** * Data related to the authenticated identity. * @member {String} data */ exports.prototype['data'] = undefined; /** * Provider of the authenticated identity. * @member {String} provider */ exports.prototype['provider'] = undefined; /** * This is a distinctive and non-transparent identifier provided by VISA for correlation purposes in the previous, related API. Field Mapping when authenticationMethodType is 'FIDO2': - On Success: FidoResponse.identifier - On Error: AuthContext.identifier * @member {String} id */ exports.prototype['id'] = undefined; return exports; }));