UNPKG

cybersource-rest-client

Version:

Node.js SDK for the CyberSource REST API

138 lines (115 loc) 5.82 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.Tmsv2TokenizedCardMetadataIssuerCapabilities = factory(root.CyberSource.ApiClient); } }(this, function(ApiClient) { 'use strict'; /** * The Tmsv2TokenizedCardMetadataIssuerCapabilities model module. * @module model/Tmsv2TokenizedCardMetadataIssuerCapabilities * @version 0.0.1 */ /** * Constructs a new <code>Tmsv2TokenizedCardMetadataIssuerCapabilities</code>. * Flags indicating what authentication, binding, and trusted-beneficiary enrollment capabilities the issuer supports. Supported only for VTS Tokens. * @alias module:model/Tmsv2TokenizedCardMetadataIssuerCapabilities * @class */ var exports = function() { var _this = this; }; /** * Constructs a <code>Tmsv2TokenizedCardMetadataIssuerCapabilities</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/Tmsv2TokenizedCardMetadataIssuerCapabilities} obj Optional instance to populate. * @return {module:model/Tmsv2TokenizedCardMetadataIssuerCapabilities} The populated <code>Tmsv2TokenizedCardMetadataIssuerCapabilities</code> instance. */ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); if (data.hasOwnProperty('deviceBindingSupported')) { obj['deviceBindingSupported'] = ApiClient.convertToType(data['deviceBindingSupported'], 'Boolean'); } if (data.hasOwnProperty('cardholderVerificationSupported')) { obj['cardholderVerificationSupported'] = ApiClient.convertToType(data['cardholderVerificationSupported'], 'Boolean'); } if (data.hasOwnProperty('trustedBeneficiaryEnrollmentSupported')) { obj['trustedBeneficiaryEnrollmentSupported'] = ApiClient.convertToType(data['trustedBeneficiaryEnrollmentSupported'], 'Boolean'); } if (data.hasOwnProperty('delegatedAuthenticationSupported')) { obj['delegatedAuthenticationSupported'] = ApiClient.convertToType(data['delegatedAuthenticationSupported'], 'Boolean'); } if (data.hasOwnProperty('oboDeviceBindingSupported')) { obj['oboDeviceBindingSupported'] = ApiClient.convertToType(data['oboDeviceBindingSupported'], 'Boolean'); } if (data.hasOwnProperty('tokenLcmNotificationsSupported')) { obj['tokenLcmNotificationsSupported'] = ApiClient.convertToType(data['tokenLcmNotificationsSupported'], 'Boolean'); } if (data.hasOwnProperty('fpanLcmNotificationsSupported')) { obj['fpanLcmNotificationsSupported'] = ApiClient.convertToType(data['fpanLcmNotificationsSupported'], 'Boolean'); } } return obj; } /** * Indicates if the issuer supports device binding. * @member {Boolean} deviceBindingSupported */ exports.prototype['deviceBindingSupported'] = undefined; /** * Indicates if the issuer participates in step-up authentication that requires cardholder verification. * @member {Boolean} cardholderVerificationSupported */ exports.prototype['cardholderVerificationSupported'] = undefined; /** * Indicates if the issuer supports trusted beneficiary enrollment. e.g allowing cardholders to designate trusted merchants or payment recipients that can be exempt from step-up authentication. * @member {Boolean} trustedBeneficiaryEnrollmentSupported */ exports.prototype['trustedBeneficiaryEnrollmentSupported'] = undefined; /** * Indicates if the issuer supports delegated authentication. e.g allowing approved thrird parties to perform authentication on behalf of the issuer. * @member {Boolean} delegatedAuthenticationSupported */ exports.prototype['delegatedAuthenticationSupported'] = undefined; /** * Indicates if the issuer supports on-behalf-of device binding. e.g allowing approved third parties to perform device binding on behalf of the issuer. * @member {Boolean} oboDeviceBindingSupported */ exports.prototype['oboDeviceBindingSupported'] = undefined; /** * Indicates if the issuer supports receiving token lifecycle management notifications. e.g receiving updates on changes to the token's status or attributes. * @member {Boolean} tokenLcmNotificationsSupported */ exports.prototype['tokenLcmNotificationsSupported'] = undefined; /** * Indicates if the issuer supports receiving PAN lifecycle management notifications. e.g receiving updates on changes to the underlying card's status or attributes. * @member {Boolean} fpanLcmNotificationsSupported */ exports.prototype['fpanLcmNotificationsSupported'] = undefined; return exports; }));