UNPKG

cybersource-rest-client

Version:

Node.js SDK for the CyberSource REST API

111 lines (91 loc) 5.33 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.GetSubscriptionResponse1PaymentInstrumentCard = factory(root.CyberSource.ApiClient); } }(this, function(ApiClient) { 'use strict'; /** * The GetSubscriptionResponse1PaymentInstrumentCard model module. * @module model/GetSubscriptionResponse1PaymentInstrumentCard * @version 0.0.1 */ /** * Constructs a new <code>GetSubscriptionResponse1PaymentInstrumentCard</code>. * The masked number (PAN), expirationMonth, expirationYear and type of the card used during transaction. * @alias module:model/GetSubscriptionResponse1PaymentInstrumentCard * @class */ var exports = function() { var _this = this; }; /** * Constructs a <code>GetSubscriptionResponse1PaymentInstrumentCard</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/GetSubscriptionResponse1PaymentInstrumentCard} obj Optional instance to populate. * @return {module:model/GetSubscriptionResponse1PaymentInstrumentCard} The populated <code>GetSubscriptionResponse1PaymentInstrumentCard</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('type')) { obj['type'] = ApiClient.convertToType(data['type'], 'String'); } } return obj; } /** * The masked customer's payment card number, also known as the Primary Account Number (PAN). * @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; /** * Value that indicates the card type. Possible Values v2 : v1: * 001 : visa * 002 : mastercard - Eurocard—European regional brand of Mastercard * 003 : american express * 004 : discover * 005 : diners club * 006 : carte blanche * 007 : jcb * 008 : optima * 011 : twinpay credit * 012 : twinpay debit * 013 : walmart * 014 : enRoute * 015 : lowes consumer * 016 : home depot consumer * 017 : mbna * 018 : dicks sportswear * 019 : casual corner * 020 : sears * 021 : jal * 023 : disney * 024 : maestro uk domestic * 025 : sams club consumer * 026 : sams club business * 028 : bill me later * 029 : bebe * 030 : restoration hardware * 031 : delta online — use this value only for Ingenico ePayments. For other processors, use 001 for all Visa card types. * 032 : solo * 033 : visa electron * 034 : dankort * 035 : laser * 036 : carte bleue — formerly Cartes Bancaires * 037 : carta si * 038 : pinless debit * 039 : encoded account * 040 : uatp * 041 : household * 042 : maestro international * 043 : ge money uk * 044 : korean cards * 045 : style * 046 : jcrew * 047 : payease china processing ewallet * 048 : payease china processing bank transfer * 049 : meijer private label * 050 : hipercard — supported only by the Comercio Latino processor. * 051 : aura — supported only by the Comercio Latino processor. * 052 : redecard * 054 : elo — supported only by the Comercio Latino processor. * 055 : capital one private label * 056 : synchrony private label * 057 : costco private label * 060 : mada * 062 : china union pay * 063 : falabella private label * @member {String} type */ exports.prototype['type'] = undefined; return exports; }));