UNPKG

cybersource-rest-client

Version:

Node.js SDK for the CyberSource REST API

110 lines (90 loc) 5.1 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.TssV2TransactionsGet200ResponseProcessorInformationMultiProcessorRouting = factory(root.CyberSource.ApiClient); } }(this, function(ApiClient) { 'use strict'; /** * The TssV2TransactionsGet200ResponseProcessorInformationMultiProcessorRouting model module. * @module model/TssV2TransactionsGet200ResponseProcessorInformationMultiProcessorRouting * @version 0.0.1 */ /** * Constructs a new <code>TssV2TransactionsGet200ResponseProcessorInformationMultiProcessorRouting</code>. * @alias module:model/TssV2TransactionsGet200ResponseProcessorInformationMultiProcessorRouting * @class */ var exports = function() { var _this = this; }; /** * Constructs a <code>TssV2TransactionsGet200ResponseProcessorInformationMultiProcessorRouting</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/TssV2TransactionsGet200ResponseProcessorInformationMultiProcessorRouting} obj Optional instance to populate. * @return {module:model/TssV2TransactionsGet200ResponseProcessorInformationMultiProcessorRouting} The populated <code>TssV2TransactionsGet200ResponseProcessorInformationMultiProcessorRouting</code> instance. */ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); if (data.hasOwnProperty('name')) { obj['name'] = ApiClient.convertToType(data['name'], 'String'); } if (data.hasOwnProperty('responseCode')) { obj['responseCode'] = ApiClient.convertToType(data['responseCode'], 'String'); } if (data.hasOwnProperty('reasonCode')) { obj['reasonCode'] = ApiClient.convertToType(data['reasonCode'], 'String'); } if (data.hasOwnProperty('sequence')) { obj['sequence'] = ApiClient.convertToType(data['sequence'], 'String'); } } return obj; } /** * Name of the Processor. * @member {String} name */ exports.prototype['name'] = undefined; /** * For most processors, this is the error message sent directly from the bank. Returned only when the processor returns this value. **Important** Do not use this field to evaluate the result of the authorization. #### PIN debit Response value that is returned by the processor or bank. **Important** Do not use this field to evaluate the results of the transaction request. Returned by PIN debit credit, PIN debit purchase, and PIN debit reversal. #### AIBMS If this value is `08`, you can accept the transaction if the customer provides you with identification. #### Atos This value is the response code sent from Atos and it might also include the response code from the bank. Format: `aa,bb` with the two values separated by a comma and where: - `aa` is the two-digit error message from Atos. - `bb` is the optional two-digit error message from the bank. #### Comercio Latino This value is the status code and the error or response code received from the processor separated by a colon. Format: [status code]:E[error code] or [status code]:R[response code] Example `2:R06` #### JCN Gateway Processor-defined detail error code. The associated response category code is in the `processorInformation.responseCategoryCode` field. String (3) #### paypalgateway Processor generated ID for the itemized detail. * @member {String} responseCode */ exports.prototype['responseCode'] = undefined; /** * Indicates the reason why a request succeeded or failed and possible action to take if a request fails. For details, see the appendix of reason codes in the documentation for the relevant payment method. * @member {String} reasonCode */ exports.prototype['reasonCode'] = undefined; /** * The order in which the transaction was routed to the processor * @member {String} sequence */ exports.prototype['sequence'] = undefined; return exports; }));