UNPKG

cybersource-rest-client

Version:

Node.js SDK for the CyberSource REST API

119 lines (98 loc) 7.91 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.PtsV2PaymentsPost201ResponseIssuerInformation = factory(root.CyberSource.ApiClient); } }(this, function(ApiClient) { 'use strict'; /** * The PtsV2PaymentsPost201ResponseIssuerInformation model module. * @module model/PtsV2PaymentsPost201ResponseIssuerInformation * @version 0.0.1 */ /** * Constructs a new <code>PtsV2PaymentsPost201ResponseIssuerInformation</code>. * @alias module:model/PtsV2PaymentsPost201ResponseIssuerInformation * @class */ var exports = function() { var _this = this; }; /** * Constructs a <code>PtsV2PaymentsPost201ResponseIssuerInformation</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/PtsV2PaymentsPost201ResponseIssuerInformation} obj Optional instance to populate. * @return {module:model/PtsV2PaymentsPost201ResponseIssuerInformation} The populated <code>PtsV2PaymentsPost201ResponseIssuerInformation</code> instance. */ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); if (data.hasOwnProperty('country')) { obj['country'] = ApiClient.convertToType(data['country'], 'String'); } if (data.hasOwnProperty('discretionaryData')) { obj['discretionaryData'] = ApiClient.convertToType(data['discretionaryData'], 'String'); } if (data.hasOwnProperty('countrySpecificDiscretionaryData')) { obj['countrySpecificDiscretionaryData'] = ApiClient.convertToType(data['countrySpecificDiscretionaryData'], 'String'); } if (data.hasOwnProperty('responseCode')) { obj['responseCode'] = ApiClient.convertToType(data['responseCode'], 'String'); } if (data.hasOwnProperty('pinRequestIndicator')) { obj['pinRequestIndicator'] = ApiClient.convertToType(data['pinRequestIndicator'], 'String'); } } return obj; } /** * Country in which the card was issued. This information enables you to determine whether the card was issued domestically or internationally. Use the two-character [ISO Standard Country Codes](https://developer.cybersource.com/library/documentation/sbc/quickref/countries_alpha_list.pdf). This field is supported for Visa, Mastercard, Discover, Diners Club, JCB, and Maestro (International) on Chase Paymentech Solutions. * @member {String} country */ exports.prototype['country'] = undefined; /** * Data defined by the issuer. The value for this reply field will probably be the same as the value that you submitted in the authorization request, but it is possible for the processor, issuer, or acquirer to modify the value. This field is supported only for Visa transactions on **CyberSource through VisaNet**. * @member {String} discretionaryData */ exports.prototype['discretionaryData'] = undefined; /** * Data defined by the issuer. This national use field contains two subfields for information unique to the processing of Visa transactions by members in Japan. This subfield contains the Katakana text to be printed on the receipt. * @member {String} countrySpecificDiscretionaryData */ exports.prototype['countrySpecificDiscretionaryData'] = undefined; /** * This is the raw Association/Issuer Response Codes. You can use 'issuer/association' response codes to identify when you can retry to authorize a declined transaction and increase successful transaction volumes. You'll receive an association/issuer response code for the majority of transactions. #### Processors supported: - HSBC - FDC Nashville Global - SIX Currently SIX is not receiving Association/Issuer Response Codes here it receives the additional authorization code that must be printed on the receipt when returned by the processor. #### Possible values: | Card Type | Response Code | Description | | ----------- | ------------- | ------------------------------------------------------------------------------ | | VISA | 000 | Successful approval/completion or that V.I.P. PIN verification is successful | | VISA | 001 | Refer to card issuer | | VISA | 002 | Refer to card issuer, special condition | | VISA | 003 | Invalid merchant or service provider | | VISA | 004 | Pickup card | | MasterCard | 000 | Approved or completed successfully | | MasterCard | 001 | Refer to card issuer | | MasterCard | 003 | Invalid merchant | | MasterCard | 004 | Capture card | | MasterCard | 005 | Do not honor | | AMEX | 000 | Approved | | AMEX | 001 | Approve with ID | | AMEX | 002 | Partial Approval (Prepaid Cards only) | | AMEX | 100 | Deny | | AMEX | 101 | Expired Card/Invalid Expiration Date | | Discover | 000 | Approved or completed successfully | | Discover | 001 | Reserved for future USE | | Discover | 002 | Reserved for future USE | | Discover | 003 | Invalid Merchant | | Discover | 004 | Capture Card | * @member {String} responseCode */ exports.prototype['responseCode'] = undefined; /** * This field contains value '1' which is sent by Issuer in the response when PIN is requested by issuer, This field is only supported for Visa Platform Connect. * @member {String} pinRequestIndicator */ exports.prototype['pinRequestIndicator'] = undefined; return exports; }));