UNPKG

cybersource-rest-client

Version:

Node.js SDK for the CyberSource REST API

91 lines (73 loc) 4.24 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', 'model/Ptsv2paymentsidreversalsPaymentInformationPaymentType'], factory); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. module.exports = factory(require('../ApiClient'), require('./Ptsv2paymentsidreversalsPaymentInformationPaymentType')); } else { // Browser globals (root is window) if (!root.CyberSource) { root.CyberSource = {}; } root.CyberSource.Ptsv2paymentsidreversalsPaymentInformation = factory(root.CyberSource.ApiClient, root.CyberSource.Ptsv2paymentsidreversalsPaymentInformationPaymentType); } }(this, function(ApiClient, Ptsv2paymentsidreversalsPaymentInformationPaymentType) { 'use strict'; /** * The Ptsv2paymentsidreversalsPaymentInformation model module. * @module model/Ptsv2paymentsidreversalsPaymentInformation * @version 0.0.1 */ /** * Constructs a new <code>Ptsv2paymentsidreversalsPaymentInformation</code>. * @alias module:model/Ptsv2paymentsidreversalsPaymentInformation * @class */ var exports = function() { var _this = this; }; /** * Constructs a <code>Ptsv2paymentsidreversalsPaymentInformation</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/Ptsv2paymentsidreversalsPaymentInformation} obj Optional instance to populate. * @return {module:model/Ptsv2paymentsidreversalsPaymentInformation} The populated <code>Ptsv2paymentsidreversalsPaymentInformation</code> instance. */ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); if (data.hasOwnProperty('paymentType')) { obj['paymentType'] = Ptsv2paymentsidreversalsPaymentInformationPaymentType.constructFromObject(data['paymentType']); } if (data.hasOwnProperty('merchantLimitedAcceptanceIndicator')) { obj['merchantLimitedAcceptanceIndicator'] = ApiClient.convertToType(data['merchantLimitedAcceptanceIndicator'], 'String'); } } return obj; } /** * @member {module:model/Ptsv2paymentsidreversalsPaymentInformationPaymentType} paymentType */ exports.prototype['paymentType'] = undefined; /** * Mastercard One Credential merchant limited acceptance indicator. Mastercard One Credential connects multiple Mastercard payment methods and allows cardhollers to access various options and set payment preferences. This field indicates which Mastercard One Credential funding PAN acceptance brands should NOT be assigned for this transaction. This field flows in ISO field 34, DSID 02 tag DB, mapped to Mastercard Data Element (DE) 48, Sub element 02, Subfield 01. Possible values: - `C`: Do not assign a Mastercard One Credential funding PAN containing the Mastercard Credit Acceptance Brand for this transaction - `D`: Do not assign a Mastercard One Credential funding PAN containing the Debit Mastercard Acceptance Brand for this transaction - `M`: Do not assign a Mastercard One Credential funding PAN containing the Maestro Acceptance Brand for this transaction This field is supported for Authorization reversal request. #### Used by **Authorization Reversal Request** Optional field. * @member {String} merchantLimitedAcceptanceIndicator */ exports.prototype['merchantLimitedAcceptanceIndicator'] = undefined; return exports; }));