UNPKG

cybersource-rest-client

Version:

Node.js SDK for the CyberSource REST API

145 lines (121 loc) 5.49 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/Ptsv2paymentsAggregatorInformationSubMerchant'], factory); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. module.exports = factory(require('../ApiClient'), require('./Ptsv2paymentsAggregatorInformationSubMerchant')); } else { // Browser globals (root is window) if (!root.CyberSource) { root.CyberSource = {}; } root.CyberSource.Ptsv2paymentsAggregatorInformation = factory(root.CyberSource.ApiClient, root.CyberSource.Ptsv2paymentsAggregatorInformationSubMerchant); } }(this, function(ApiClient, Ptsv2paymentsAggregatorInformationSubMerchant) { 'use strict'; /** * The Ptsv2paymentsAggregatorInformation model module. * @module model/Ptsv2paymentsAggregatorInformation * @version 0.0.1 */ /** * Constructs a new <code>Ptsv2paymentsAggregatorInformation</code>. * @alias module:model/Ptsv2paymentsAggregatorInformation * @class */ var exports = function() { var _this = this; }; /** * Constructs a <code>Ptsv2paymentsAggregatorInformation</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/Ptsv2paymentsAggregatorInformation} obj Optional instance to populate. * @return {module:model/Ptsv2paymentsAggregatorInformation} The populated <code>Ptsv2paymentsAggregatorInformation</code> instance. */ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); if (data.hasOwnProperty('aggregatorId')) { obj['aggregatorId'] = ApiClient.convertToType(data['aggregatorId'], 'String'); } if (data.hasOwnProperty('name')) { obj['name'] = ApiClient.convertToType(data['name'], 'String'); } if (data.hasOwnProperty('subMerchant')) { obj['subMerchant'] = Ptsv2paymentsAggregatorInformationSubMerchant.constructFromObject(data['subMerchant']); } if (data.hasOwnProperty('streetAddress')) { obj['streetAddress'] = ApiClient.convertToType(data['streetAddress'], 'String'); } if (data.hasOwnProperty('city')) { obj['city'] = ApiClient.convertToType(data['city'], 'String'); } if (data.hasOwnProperty('state')) { obj['state'] = ApiClient.convertToType(data['state'], 'String'); } if (data.hasOwnProperty('postalCode')) { obj['postalCode'] = ApiClient.convertToType(data['postalCode'], 'String'); } if (data.hasOwnProperty('country')) { obj['country'] = ApiClient.convertToType(data['country'], 'String'); } } return obj; } /** * Value that identifies you as a payment aggregator. Get this value from the processor. #### CyberSource through VisaNet The value for this field corresponds to the following data in the TC 33 capture file5: - Record: CP01 TCR6 - Position: 95-105 - Field: Payment Facilitator ID This field is supported for Visa, Mastercard and Discover Transactions. **FDC Compass**\\ This value must consist of uppercase characters. * @member {String} aggregatorId */ exports.prototype['aggregatorId'] = undefined; /** * Your payment aggregator business name. **American Express Direct**\\ The maximum length of the aggregator name depends on the length of the sub-merchant name. The combined length for both values must not exceed 36 characters.\\ #### CyberSource through VisaNet With American Express, the maximum length of the aggregator name depends on the length of the sub-merchant name. The combined length for both values must not exceed 36 characters. The value for this field does not map to the TC 33 capture file5. **FDC Compass**\\ This value must consist of uppercase characters. * @member {String} name */ exports.prototype['name'] = undefined; /** * @member {module:model/Ptsv2paymentsAggregatorInformationSubMerchant} subMerchant */ exports.prototype['subMerchant'] = undefined; /** * Acquirer street name. * @member {String} streetAddress */ exports.prototype['streetAddress'] = undefined; /** * Acquirer city. * @member {String} city */ exports.prototype['city'] = undefined; /** * Acquirer state. * @member {String} state */ exports.prototype['state'] = undefined; /** * Acquirer postal code. * @member {String} postalCode */ exports.prototype['postalCode'] = undefined; /** * Acquirer country. * @member {String} country */ exports.prototype['country'] = undefined; return exports; }));