UNPKG

cybersource-rest-client

Version:

Node.js SDK for the CyberSource REST API

101 lines (82 loc) 6.19 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.PtsV2PaymentsPost201ResponseProcessorInformationMerchantAdvice = factory(root.CyberSource.ApiClient); } }(this, function(ApiClient) { 'use strict'; /** * The PtsV2PaymentsPost201ResponseProcessorInformationMerchantAdvice model module. * @module model/PtsV2PaymentsPost201ResponseProcessorInformationMerchantAdvice * @version 0.0.1 */ /** * Constructs a new <code>PtsV2PaymentsPost201ResponseProcessorInformationMerchantAdvice</code>. * @alias module:model/PtsV2PaymentsPost201ResponseProcessorInformationMerchantAdvice * @class */ var exports = function() { var _this = this; }; /** * Constructs a <code>PtsV2PaymentsPost201ResponseProcessorInformationMerchantAdvice</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/PtsV2PaymentsPost201ResponseProcessorInformationMerchantAdvice} obj Optional instance to populate. * @return {module:model/PtsV2PaymentsPost201ResponseProcessorInformationMerchantAdvice} The populated <code>PtsV2PaymentsPost201ResponseProcessorInformationMerchantAdvice</code> instance. */ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); if (data.hasOwnProperty('code')) { obj['code'] = ApiClient.convertToType(data['code'], 'String'); } if (data.hasOwnProperty('codeRaw')) { obj['codeRaw'] = ApiClient.convertToType(data['codeRaw'], 'String'); } if (data.hasOwnProperty('nameMatch')) { obj['nameMatch'] = ApiClient.convertToType(data['nameMatch'], 'String'); } } return obj; } /** * - Merchant should update their retry logic to ensure retry is not attempted for the cards for which Issuer won't approve the transactions and where the retry is allowed. - Card Processing Associations provides this data which is being passed through in the following data element irrespective of the Card Associations. Usage of this data must be always associated with the Card Associations card types for merchant processing retry logic. - In additions to the Merchant Advice code, Associations also provides the decline response codes which provides the reason for decline. Association response code will be a pass-through value. #### Processors supported: - HSBC - Barclays - FDC Nash - FDI Global - Elavon America - VPC - Rede - Payment tech Salem #### Possible values: | Card Type | Advice Code | Description | | ----------- | ------------- | ------------------------------------------- | | VISA | 1 | Issuer never approves | | VISA | 2 | Issuer cannot approve at this time | | VISA | 3 | Data quality/revalidate payment information | | MasterCard | 01 | New account information available | | MasterCard | 02 | Try Again Later | | MasterCard | 03 | Do Not Try Again | | MasterCard | 04 | Token not supported | | MasterCard | 21 | Do not honor | | MasterCard | 22 | Merchant does not qualify for product code | | MasterCard | 24 | Retry after 1 hour | | MasterCard | 25 | Retry after 24 hours | | MasterCard | 26 | Retry after 2 days | | MasterCard | 27 | Retry after 4 days | | MasterCard | 28 | Retry after 6 days | | MasterCard | 29 | Retry after 8 days | | MasterCard | 30 | Retry after 10 days | | MasterCard | 40 | Consumer non-reloadable prepaid card | | MasterCard | 41 | Consumer single-use virtual card number | | MasterCard | 42 | Sanctions score exceeds threshold value | | MasterCard | 99 | Do Not Try Again | * @member {String} code */ exports.prototype['code'] = undefined; /** * Raw merchant advice code sent directly from the processor. This field is used only for Mastercard. #### CyberSource through VisaNet The value for this field corresponds to the following data in the TC 33 capture file1: - Record: CP01 TCR7 - Position: 96-99 - Field: Response Data-Merchant Advice Code * @member {String} codeRaw */ exports.prototype['codeRaw'] = undefined; /** * #### Visa Platform Connect The field contains will contain the Account Name Request Result for zero amount Authorization request. Valid values are: 00 = Name Match Performed 01 = Name Match not Performed 02 = Name Match not supported * @member {String} nameMatch */ exports.prototype['nameMatch'] = undefined; return exports; }));