UNPKG

cybersource-rest-client

Version:

Node.js SDK for the CyberSource REST API

218 lines (186 loc) 8.16 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/CardProcessingConfigCommonAcquirerAgreementAcquirerCodePaymentOptions'], factory); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. module.exports = factory(require('../ApiClient'), require('./CardProcessingConfigCommonAcquirerAgreementAcquirerCodePaymentOptions')); } else { // Browser globals (root is window) if (!root.CyberSource) { root.CyberSource = {}; } root.CyberSource.CardProcessingConfigCommonAcquirerAgreementAcquirerCode = factory(root.CyberSource.ApiClient, root.CyberSource.CardProcessingConfigCommonAcquirerAgreementAcquirerCodePaymentOptions); } }(this, function(ApiClient, CardProcessingConfigCommonAcquirerAgreementAcquirerCodePaymentOptions) { 'use strict'; /** * The CardProcessingConfigCommonAcquirerAgreementAcquirerCode model module. * @module model/CardProcessingConfigCommonAcquirerAgreementAcquirerCode * @version 0.0.1 */ /** * Constructs a new <code>CardProcessingConfigCommonAcquirerAgreementAcquirerCode</code>. * Contains the specific configuration details for an acquirer. * @alias module:model/CardProcessingConfigCommonAcquirerAgreementAcquirerCode * @class */ var exports = function() { var _this = this; }; /** * Constructs a <code>CardProcessingConfigCommonAcquirerAgreementAcquirerCode</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/CardProcessingConfigCommonAcquirerAgreementAcquirerCode} obj Optional instance to populate. * @return {module:model/CardProcessingConfigCommonAcquirerAgreementAcquirerCode} The populated <code>CardProcessingConfigCommonAcquirerAgreementAcquirerCode</code> instance. */ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); if (data.hasOwnProperty('acquirerAccountId')) { obj['acquirerAccountId'] = ApiClient.convertToType(data['acquirerAccountId'], 'String'); } if (data.hasOwnProperty('summerBonusStartDate')) { obj['summerBonusStartDate'] = ApiClient.convertToType(data['summerBonusStartDate'], 'String'); } if (data.hasOwnProperty('summerBonusEndDate')) { obj['summerBonusEndDate'] = ApiClient.convertToType(data['summerBonusEndDate'], 'String'); } if (data.hasOwnProperty('summerBonusMonth')) { obj['summerBonusMonth'] = ApiClient.convertToType(data['summerBonusMonth'], 'String'); } if (data.hasOwnProperty('winterBonusStartDate')) { obj['winterBonusStartDate'] = ApiClient.convertToType(data['winterBonusStartDate'], 'String'); } if (data.hasOwnProperty('winterBonusEndDate')) { obj['winterBonusEndDate'] = ApiClient.convertToType(data['winterBonusEndDate'], 'String'); } if (data.hasOwnProperty('winterBonusMonth')) { obj['winterBonusMonth'] = ApiClient.convertToType(data['winterBonusMonth'], 'String'); } if (data.hasOwnProperty('numberOfInstallments')) { obj['numberOfInstallments'] = ApiClient.convertToType(data['numberOfInstallments'], 'String'); } if (data.hasOwnProperty('paymentModes')) { obj['paymentModes'] = ApiClient.convertToType(data['paymentModes'], 'String'); } if (data.hasOwnProperty('numberOfInstallmentPayments')) { obj['numberOfInstallmentPayments'] = ApiClient.convertToType(data['numberOfInstallmentPayments'], 'String'); } if (data.hasOwnProperty('numberOfIntegratedInstallments')) { obj['numberOfIntegratedInstallments'] = ApiClient.convertToType(data['numberOfIntegratedInstallments'], 'String'); } if (data.hasOwnProperty('numberOfBonusPayments')) { obj['numberOfBonusPayments'] = ApiClient.convertToType(data['numberOfBonusPayments'], 'String'); } if (data.hasOwnProperty('centerName')) { obj['centerName'] = ApiClient.convertToType(data['centerName'], 'String'); } if (data.hasOwnProperty('fbnIdentificationFlag')) { obj['fbnIdentificationFlag'] = ApiClient.convertToType(data['fbnIdentificationFlag'], 'String'); } if (data.hasOwnProperty('retailSupported')) { obj['retailSupported'] = ApiClient.convertToType(data['retailSupported'], 'Boolean'); } if (data.hasOwnProperty('paymentOptions')) { obj['paymentOptions'] = CardProcessingConfigCommonAcquirerAgreementAcquirerCodePaymentOptions.constructFromObject(data['paymentOptions']); } } return obj; } /** * Account number for the acquirer. * @member {String} acquirerAccountId */ exports.prototype['acquirerAccountId'] = undefined; /** * Bonus start date for the summer period. * @member {String} summerBonusStartDate */ exports.prototype['summerBonusStartDate'] = undefined; /** * Bonus end date for the summer period. * @member {String} summerBonusEndDate */ exports.prototype['summerBonusEndDate'] = undefined; /** * Bonus month for the summer period . * @member {String} summerBonusMonth */ exports.prototype['summerBonusMonth'] = undefined; /** * Bonus start date for the winter period. * @member {String} winterBonusStartDate */ exports.prototype['winterBonusStartDate'] = undefined; /** * Bonus end date for the winter period. * @member {String} winterBonusEndDate */ exports.prototype['winterBonusEndDate'] = undefined; /** * Bonus month for the winter period . * @member {String} winterBonusMonth */ exports.prototype['winterBonusMonth'] = undefined; /** * Comma-separated list of the number of installments. * @member {String} numberOfInstallments */ exports.prototype['numberOfInstallments'] = undefined; /** * Comma-separated list of payment modes. * @member {String} paymentModes */ exports.prototype['paymentModes'] = undefined; /** * Comma-separated list of the number of installment payments. * @member {String} numberOfInstallmentPayments */ exports.prototype['numberOfInstallmentPayments'] = undefined; /** * Comma-separated list of the number of integrated installments. * @member {String} numberOfIntegratedInstallments */ exports.prototype['numberOfIntegratedInstallments'] = undefined; /** * Comma-separated list of the number of bonus payments. * @member {String} numberOfBonusPayments */ exports.prototype['numberOfBonusPayments'] = undefined; /** * Center name provided by the acquirer. * @member {String} centerName */ exports.prototype['centerName'] = undefined; /** * FBN (For Benefit Of) Identification flag. * @member {String} fbnIdentificationFlag */ exports.prototype['fbnIdentificationFlag'] = undefined; /** * Indicates if retail transactions are supported. * @member {Boolean} retailSupported */ exports.prototype['retailSupported'] = undefined; /** * @member {module:model/CardProcessingConfigCommonAcquirerAgreementAcquirerCodePaymentOptions} paymentOptions */ exports.prototype['paymentOptions'] = undefined; return exports; }));