UNPKG

cybersource-rest-client

Version:

Node.js SDK for the CyberSource REST API

111 lines (91 loc) 3.88 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.TmsEmbeddedInstrumentIdentifierCard = factory(root.CyberSource.ApiClient); } }(this, function(ApiClient) { 'use strict'; /** * The TmsEmbeddedInstrumentIdentifierCard model module. * @module model/TmsEmbeddedInstrumentIdentifierCard * @version 0.0.1 */ /** * Constructs a new <code>TmsEmbeddedInstrumentIdentifierCard</code>. * The expirationMonth, expirationYear and securityCode is sent to the issuer as part of network token enrollment and is not stored under the Instrument Identifier. * @alias module:model/TmsEmbeddedInstrumentIdentifierCard * @class */ var exports = function() { var _this = this; }; /** * Constructs a <code>TmsEmbeddedInstrumentIdentifierCard</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/TmsEmbeddedInstrumentIdentifierCard} obj Optional instance to populate. * @return {module:model/TmsEmbeddedInstrumentIdentifierCard} The populated <code>TmsEmbeddedInstrumentIdentifierCard</code> instance. */ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); if (data.hasOwnProperty('number')) { obj['number'] = ApiClient.convertToType(data['number'], 'String'); } if (data.hasOwnProperty('expirationMonth')) { obj['expirationMonth'] = ApiClient.convertToType(data['expirationMonth'], 'String'); } if (data.hasOwnProperty('expirationYear')) { obj['expirationYear'] = ApiClient.convertToType(data['expirationYear'], 'String'); } if (data.hasOwnProperty('securityCode')) { obj['securityCode'] = ApiClient.convertToType(data['securityCode'], 'String'); } } return obj; } /** * The customer's payment card number, also known as the Primary Account Number (PAN). You can also use this field for encoded account numbers. * @member {String} number */ exports.prototype['number'] = undefined; /** * Two-digit month in which the payment card expires. Format: `MM`. Possible Values: `01` through `12`. * @member {String} expirationMonth */ exports.prototype['expirationMonth'] = undefined; /** * Four-digit year in which the credit card expires. Format: `YYYY`. * @member {String} expirationYear */ exports.prototype['expirationYear'] = undefined; /** * Card Verification Code. This value is sent to the issuer to support the approval of a network token provision. It is not persisted against the Instrument Identifier. * @member {String} securityCode */ exports.prototype['securityCode'] = undefined; return exports; }));