UNPKG

cybersource-rest-client

Version:

Node.js SDK for the CyberSource REST API

83 lines (66 loc) 3.94 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.Microformv2sessionsTransientTokenResponseOptions = factory(root.CyberSource.ApiClient); } }(this, function(ApiClient) { 'use strict'; /** * The Microformv2sessionsTransientTokenResponseOptions model module. * @module model/Microformv2sessionsTransientTokenResponseOptions * @version 0.0.1 */ /** * Constructs a new <code>Microformv2sessionsTransientTokenResponseOptions</code>. * @alias module:model/Microformv2sessionsTransientTokenResponseOptions * @class */ var exports = function() { var _this = this; }; /** * Constructs a <code>Microformv2sessionsTransientTokenResponseOptions</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/Microformv2sessionsTransientTokenResponseOptions} obj Optional instance to populate. * @return {module:model/Microformv2sessionsTransientTokenResponseOptions} The populated <code>Microformv2sessionsTransientTokenResponseOptions</code> instance. */ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); if (data.hasOwnProperty('includeCardPrefix')) { obj['includeCardPrefix'] = ApiClient.convertToType(data['includeCardPrefix'], 'Boolean'); } } return obj; } /** * Use the transientTokenResponseOptions.includeCardPrefix field to choose your preferred card number prefix length: 6-digit, 8-digit, or no card number prefix. Possible values: - True - False<br><br> To select the type of card number prefix: - No field included: A 6-digit prefix is returned (default) - True: An 8-digit prefix is returned - False: No prefix is returned<br><br> The following conditions apply: - 8-digit card number prefixes only apply to Discover, JCB, Mastercard, UnionPay, and Visa brands with 16-digit card numbers or more. - Any card with less than 16-digit numbers will return a 6-digit prefix even when the transientTokenResponseOptions.includeCardPrefix field is set to true. - Any card brand other than Discover, JCB, Mastercard, UnionPay, or Visa will return a 6-digit prefix even when the transientTokenResponseOptions.includeCardPrefix field is set to true. - If any card brand is co-branded with Discover, JCB, Mastercard, UnionPay, or Visa, an 8-digit prefix will be returned if the transientTokenResponseOptions.includeCardPrefix field is set to true.<br><br> **Important:** If your application does NOT require a card number prefix for routing or identification purposes, set the transientTokenResponseOptions.includeCardPrefix field to False. This will minimize your personal data exposure. * @member {Boolean} includeCardPrefix */ exports.prototype['includeCardPrefix'] = undefined; return exports; }));