cybersource-rest-client-typescript
Version:
NodeJS client for cybersource-rest-client-typescript
100 lines (81 loc) • 4.1 kB
JavaScript
/**
* 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.3.0
*
* Do not edit the class manually.
*
*/
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['ApiClient', 'model/Ptsv1pushfundstransferAggregatorInformationSubMerchant'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
module.exports = factory(require('../ApiClient'), require('./Ptsv1pushfundstransferAggregatorInformationSubMerchant'));
} else {
// Browser globals (root is window)
if (!root.CyberSource) {
root.CyberSource = {};
}
root.CyberSource.Ptsv1pushfundstransferAggregatorInformation = factory(root.CyberSource.ApiClient, root.CyberSource.Ptsv1pushfundstransferAggregatorInformationSubMerchant);
}
}(this, function(ApiClient, Ptsv1pushfundstransferAggregatorInformationSubMerchant) {
'use strict';
/**
* The Ptsv1pushfundstransferAggregatorInformation model module.
* @module model/Ptsv1pushfundstransferAggregatorInformation
* @version 0.0.1
*/
/**
* Constructs a new <code>Ptsv1pushfundstransferAggregatorInformation</code>.
* @alias module:model/Ptsv1pushfundstransferAggregatorInformation
* @class
*/
var exports = function() {
var _this = this;
};
/**
* Constructs a <code>Ptsv1pushfundstransferAggregatorInformation</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/Ptsv1pushfundstransferAggregatorInformation} obj Optional instance to populate.
* @return {module:model/Ptsv1pushfundstransferAggregatorInformation} The populated <code>Ptsv1pushfundstransferAggregatorInformation</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'] = Ptsv1pushfundstransferAggregatorInformationSubMerchant.constructFromObject(data['subMerchant']);
}
}
return obj;
}
/**
* Value that identifies you as a payment aggregator. Get this value from the processor. FDC Compass This value must consist of uppercase letters. Visa Platform Connect The value for this field corresponds to the following data in the TC 33 capture file: - `Record`: CP01 TCR6 - `Position`: 95-105 - `Field`: Market Identifier / Payment Facilitator ID
* @member {String} aggregatorId
*/
exports.prototype['aggregatorId'] = undefined;
/**
* Your payment aggregator business name. Visa Platform COnnect 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. For processor-specific information, see the aggregator_name field in Credit Card Services Using the SCMP API.
* @member {String} name
*/
exports.prototype['name'] = undefined;
/**
* @member {module:model/Ptsv1pushfundstransferAggregatorInformationSubMerchant} subMerchant
*/
exports.prototype['subMerchant'] = undefined;
return exports;
}));