UNPKG

cybersource-rest-client

Version:

Node.js SDK for the CyberSource REST API

92 lines (74 loc) 4.68 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.Ptsv2paymentsidcapturesPaymentInformationCard = factory(root.CyberSource.ApiClient); } }(this, function(ApiClient) { 'use strict'; /** * The Ptsv2paymentsidcapturesPaymentInformationCard model module. * @module model/Ptsv2paymentsidcapturesPaymentInformationCard * @version 0.0.1 */ /** * Constructs a new <code>Ptsv2paymentsidcapturesPaymentInformationCard</code>. * @alias module:model/Ptsv2paymentsidcapturesPaymentInformationCard * @class */ var exports = function() { var _this = this; }; /** * Constructs a <code>Ptsv2paymentsidcapturesPaymentInformationCard</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/Ptsv2paymentsidcapturesPaymentInformationCard} obj Optional instance to populate. * @return {module:model/Ptsv2paymentsidcapturesPaymentInformationCard} The populated <code>Ptsv2paymentsidcapturesPaymentInformationCard</code> instance. */ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); if (data.hasOwnProperty('sourceAccountType')) { obj['sourceAccountType'] = ApiClient.convertToType(data['sourceAccountType'], 'String'); } if (data.hasOwnProperty('sourceAccountTypeDetails')) { obj['sourceAccountTypeDetails'] = ApiClient.convertToType(data['sourceAccountTypeDetails'], 'String'); } } return obj; } /** * Flag that specifies the type of account associated with the card. The cardholder provides this information during the payment process. This field is required in the following cases: - Debit transactions on Cielo and Comercio Latino. - Transactions with Brazilian-issued cards on CyberSource through VisaNet. - Applicable only for CyberSource through VisaNet (CtV). **Note** Combo cards in Brazil contain credit and debit functionality in a single card. Visa systems use a credit bank identification number (BIN) for this type of card. Using the BIN to determine whether a card is debit or credit can cause transactions with these cards to be processed incorrectly. CyberSource strongly recommends that you include this field for combo card transactions. Possible values include the following. - `CH`: Checking account - `CR`: Credit card account - `SA`: Saving account - `LI`: Line of credit or credit portion of combo card - `PP`: Prepaid card account or prepaid portion of combo card - `UA`: Universal account If useAs is set to credit/debit and there is a value in SourceAccountType, the value in the SourceAccountType field will take precedence. If useAs is set to CR/DB and there is a value in SourceAccountType, the value in the useAs field will take precedence. * @member {String} sourceAccountType */ exports.prototype['sourceAccountType'] = undefined; /** * Type of account that is being used when the value for the override_payment_method field is line of credit (LI) or prepaid card (PP). Possible values for line of credit: - `AGRC`: Visa Agro Custeio - `AGRE`: Visa Agro Electron - `AGRI`: Visa Agro Investimento - `AGRO`: Visa Agro Possible values for prepaid card: - `VVA`: Visa Vale Alimentacao - `VVF`: Visa Vale Flex - `VVR`: Visa Vale Refeicao This field is supported only for combo card transactions in Brazil on CyberSource through VisaNet. * @member {String} sourceAccountTypeDetails */ exports.prototype['sourceAccountTypeDetails'] = undefined; return exports; }));