UNPKG

cybersource-rest-client

Version:

Node.js SDK for the CyberSource REST API

146 lines (122 loc) 8.93 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.PtsV2PaymentsPost201ResponseClearingInformation = factory(root.CyberSource.ApiClient); } }(this, function(ApiClient) { 'use strict'; /** * The PtsV2PaymentsPost201ResponseClearingInformation model module. * @module model/PtsV2PaymentsPost201ResponseClearingInformation * @version 0.0.1 */ /** * Constructs a new <code>PtsV2PaymentsPost201ResponseClearingInformation</code>. * @alias module:model/PtsV2PaymentsPost201ResponseClearingInformation * @class */ var exports = function() { var _this = this; }; /** * Constructs a <code>PtsV2PaymentsPost201ResponseClearingInformation</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/PtsV2PaymentsPost201ResponseClearingInformation} obj Optional instance to populate. * @return {module:model/PtsV2PaymentsPost201ResponseClearingInformation} The populated <code>PtsV2PaymentsPost201ResponseClearingInformation</code> instance. */ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); if (data.hasOwnProperty('authorizationCharacteristicsIndicator')) { obj['authorizationCharacteristicsIndicator'] = ApiClient.convertToType(data['authorizationCharacteristicsIndicator'], 'String'); } if (data.hasOwnProperty('accountfundingSource')) { obj['accountfundingSource'] = ApiClient.convertToType(data['accountfundingSource'], 'String'); } if (data.hasOwnProperty('cardholderIdMethod')) { obj['cardholderIdMethod'] = ApiClient.convertToType(data['cardholderIdMethod'], 'String'); } if (data.hasOwnProperty('marketSpecificDataIdentifier')) { obj['marketSpecificDataIdentifier'] = ApiClient.convertToType(data['marketSpecificDataIdentifier'], 'String'); } if (data.hasOwnProperty('posEntryMode')) { obj['posEntryMode'] = ApiClient.convertToType(data['posEntryMode'], 'String'); } if (data.hasOwnProperty('electronicCommerceIndicator')) { obj['electronicCommerceIndicator'] = ApiClient.convertToType(data['electronicCommerceIndicator'], 'String'); } if (data.hasOwnProperty('spendQualifiedIndicator')) { obj['spendQualifiedIndicator'] = ApiClient.convertToType(data['spendQualifiedIndicator'], 'String'); } if (data.hasOwnProperty('validationCode')) { obj['validationCode'] = ApiClient.convertToType(data['validationCode'], 'String'); } } return obj; } /** * This field contains the code used by the acquirer to request CPS qualification. If applicable, V.I.P. changes the code to reflect the results of its CPS evaluation. Use this field only for clearing with your acquirer. * @member {String} authorizationCharacteristicsIndicator */ exports.prototype['authorizationCharacteristicsIndicator'] = undefined; /** * This field contains the product account funding source value from Visa required for Clearing. Use this field only for clearing with your acquirer. Possible values: - C (Credit) - D (Debit) - H (Charge) - P (Prepaid) - R (Deferred debit) * @member {String} accountfundingSource */ exports.prototype['accountfundingSource'] = undefined; /** * This 1-digit code identifies the cardholder identification method used for a transaction. Use this field only for clearing with your acquirer. Possible values: - 0 - Not specified - 1 - Signature - 2 - Online PIN - 3 - Unattended terminal, no PIN pad - 4 - Mail/Telephone/Electronic Commerce * @member {String} cardholderIdMethod */ exports.prototype['cardholderIdMethod'] = undefined; /** * This field contains the industry for which market-specific data has been provided. Use this field only for clearing with your acquirer. Possible values: - A: Auto Rental - B: Bill Payment - E: Electronic commerce transaction aggregation - H: Hotel - J: B2B invoice payments - M: Healthcare (medical) - N: Failed Market-Specific Data edit, or not applicable - T: Transit (in healthcare transactions only) - X: Extended Authorization * @member {String} marketSpecificDataIdentifier */ exports.prototype['marketSpecificDataIdentifier'] = undefined; /** * This field contains a 4-digit code indicating the method used to enter the account number and card expiration date and, if an electronic terminal is used, the capability of the terminal to capture online PINs for transactions processed through VisaNet. Use this field only for clearing with your acquirer. Possible Values: Positions 1-2: PAN and Date Entry Mode - 00 - Unknown or terminal not used. - 01 - Manual (key entry). - 02 - Visa: Magnetic stripe read; CVV checking may not be possible. PLUS: Track 2 contents read, but transaction not eligible for CVV checking. - 03 - Optical code - 04 - Reserved for future use. - 05 - Contact integrated circuit card read using VSDC chip data rules; Online CAM authentication method; iCVV checking possible. - 06 - Reserved for future use. - 07 - Contactless device-read-originated using qVSDC chip data rules; Online CAM authentication method; iCVV checking possible. - 10 - Credential on file: Transaction initiated using a credential that has previously been stored on file. - 90 - Magnetic stripe read and exact content of Track 1 or Track 2 included (CVV check possible). - 91 - Contactless device-read-originated using magnetic stripe data rules; dCVV checking is possible; Online CAM checking possible for MSD CVN 17 only. - 95 - Integrated circuit card read; CVV or iCVV checking may not be possible. Position 3: PIN Entry Capability - 0 - Unknown. - 1 - Indicates terminal can accept and forward online PINs. - 2 - Indicates terminal cannot accept and forward online PINs. - 8 - Terminal PIN pad down. - 9 - Reserved for future use. Position 4: Fill - 0 - Unused. * @member {String} posEntryMode */ exports.prototype['posEntryMode'] = undefined; /** * This field contains 2-digit code that identifies the level of security used in an electronic commerce transaction over an open network (for example, the Internet) or the type of mail or telephone order. Use this field only for clearing with your acquirer. Possible values: - 00 - Not applicable - 01 - Single transaction of a mail/phone order - 02 - Recurring transaction - 03 - Installment payment - 04 - Unknown classification - 05 - Secure electronic commerce transaction - 06 - Non-authenticated security transaction at a 3-D Secure-capable merchant, and merchant attempted to authenticate the cardholder using 3-D Secure - 07 - Non-authenticated Security Transaction - 08 - Non-secure transaction * @member {String} electronicCommerceIndicator */ exports.prototype['electronicCommerceIndicator'] = undefined; /** * This field is determined using the point-of-sale spend history and the defined product-level spend requirement for the country of issuance. Use this field only for clearing with your acquirer. Possible values: - Space - Spend-processing does not apply. - B - Base spend-assessment threshold defined by Visa has been met. - N - Spend-assessment threshold defined by Visa has not been met. - Q - Qualified spend-assessment threshold defined by Visa has been met. * @member {String} spendQualifiedIndicator */ exports.prototype['spendQualifiedIndicator'] = undefined; /** * This field ensures that key fields used in authorization messages match their respective fields in clearing transaction. Use this field only for clearing with your acquirer. * @member {String} validationCode */ exports.prototype['validationCode'] = undefined; return exports; }));