UNPKG

cybersource-rest-client

Version:

Node.js SDK for the CyberSource REST API

234 lines (198 loc) 9.91 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/InlineResponse2013SetupsPaymentsAlternativePaymentMethods', 'model/InlineResponse2013SetupsPaymentsCardProcessing', 'model/InlineResponse2013SetupsPaymentsDigitalPayments'], factory); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. module.exports = factory(require('../ApiClient'), require('./InlineResponse2013SetupsPaymentsAlternativePaymentMethods'), require('./InlineResponse2013SetupsPaymentsCardProcessing'), require('./InlineResponse2013SetupsPaymentsDigitalPayments')); } else { // Browser globals (root is window) if (!root.CyberSource) { root.CyberSource = {}; } root.CyberSource.InlineResponse2013SetupsPayments = factory(root.CyberSource.ApiClient, root.CyberSource.InlineResponse2013SetupsPaymentsAlternativePaymentMethods, root.CyberSource.InlineResponse2013SetupsPaymentsCardProcessing, root.CyberSource.InlineResponse2013SetupsPaymentsDigitalPayments); } }(this, function(ApiClient, InlineResponse2013SetupsPaymentsAlternativePaymentMethods, InlineResponse2013SetupsPaymentsCardProcessing, InlineResponse2013SetupsPaymentsDigitalPayments) { 'use strict'; /** * The InlineResponse2013SetupsPayments model module. * @module model/InlineResponse2013SetupsPayments * @version 0.0.1 */ /** * Constructs a new <code>InlineResponse2013SetupsPayments</code>. * @alias module:model/InlineResponse2013SetupsPayments * @class */ var exports = function() { var _this = this; }; /** * Constructs a <code>InlineResponse2013SetupsPayments</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/InlineResponse2013SetupsPayments} obj Optional instance to populate. * @return {module:model/InlineResponse2013SetupsPayments} The populated <code>InlineResponse2013SetupsPayments</code> instance. */ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); if (data.hasOwnProperty('cardProcessing')) { obj['cardProcessing'] = InlineResponse2013SetupsPaymentsCardProcessing.constructFromObject(data['cardProcessing']); } if (data.hasOwnProperty('alternativePaymentMethods')) { obj['alternativePaymentMethods'] = InlineResponse2013SetupsPaymentsAlternativePaymentMethods.constructFromObject(data['alternativePaymentMethods']); } if (data.hasOwnProperty('cardPresentConnect')) { obj['cardPresentConnect'] = InlineResponse2013SetupsPaymentsCardProcessing.constructFromObject(data['cardPresentConnect']); } if (data.hasOwnProperty('eCheck')) { obj['eCheck'] = InlineResponse2013SetupsPaymentsCardProcessing.constructFromObject(data['eCheck']); } if (data.hasOwnProperty('payerAuthentication')) { obj['payerAuthentication'] = InlineResponse2013SetupsPaymentsCardProcessing.constructFromObject(data['payerAuthentication']); } if (data.hasOwnProperty('digitalPayments')) { obj['digitalPayments'] = InlineResponse2013SetupsPaymentsDigitalPayments.constructFromObject(data['digitalPayments']); } if (data.hasOwnProperty('secureAcceptance')) { obj['secureAcceptance'] = InlineResponse2013SetupsPaymentsCardProcessing.constructFromObject(data['secureAcceptance']); } if (data.hasOwnProperty('virtualTerminal')) { obj['virtualTerminal'] = InlineResponse2013SetupsPaymentsCardProcessing.constructFromObject(data['virtualTerminal']); } if (data.hasOwnProperty('currencyConversion')) { obj['currencyConversion'] = InlineResponse2013SetupsPaymentsCardProcessing.constructFromObject(data['currencyConversion']); } if (data.hasOwnProperty('tax')) { obj['tax'] = InlineResponse2013SetupsPaymentsDigitalPayments.constructFromObject(data['tax']); } if (data.hasOwnProperty('customerInvoicing')) { obj['customerInvoicing'] = InlineResponse2013SetupsPaymentsDigitalPayments.constructFromObject(data['customerInvoicing']); } if (data.hasOwnProperty('recurringBilling')) { obj['recurringBilling'] = InlineResponse2013SetupsPaymentsCardProcessing.constructFromObject(data['recurringBilling']); } if (data.hasOwnProperty('cybsReadyTerminal')) { obj['cybsReadyTerminal'] = InlineResponse2013SetupsPaymentsCardProcessing.constructFromObject(data['cybsReadyTerminal']); } if (data.hasOwnProperty('paymentOrchestration')) { obj['paymentOrchestration'] = InlineResponse2013SetupsPaymentsDigitalPayments.constructFromObject(data['paymentOrchestration']); } if (data.hasOwnProperty('payouts')) { obj['payouts'] = InlineResponse2013SetupsPaymentsCardProcessing.constructFromObject(data['payouts']); } if (data.hasOwnProperty('payByLink')) { obj['payByLink'] = InlineResponse2013SetupsPaymentsDigitalPayments.constructFromObject(data['payByLink']); } if (data.hasOwnProperty('unifiedCheckout')) { obj['unifiedCheckout'] = InlineResponse2013SetupsPaymentsDigitalPayments.constructFromObject(data['unifiedCheckout']); } if (data.hasOwnProperty('receivablesManager')) { obj['receivablesManager'] = InlineResponse2013SetupsPaymentsDigitalPayments.constructFromObject(data['receivablesManager']); } if (data.hasOwnProperty('serviceFee')) { obj['serviceFee'] = InlineResponse2013SetupsPaymentsCardProcessing.constructFromObject(data['serviceFee']); } if (data.hasOwnProperty('batchUpload')) { obj['batchUpload'] = InlineResponse2013SetupsPaymentsDigitalPayments.constructFromObject(data['batchUpload']); } } return obj; } /** * @member {module:model/InlineResponse2013SetupsPaymentsCardProcessing} cardProcessing */ exports.prototype['cardProcessing'] = undefined; /** * @member {module:model/InlineResponse2013SetupsPaymentsAlternativePaymentMethods} alternativePaymentMethods */ exports.prototype['alternativePaymentMethods'] = undefined; /** * @member {module:model/InlineResponse2013SetupsPaymentsCardProcessing} cardPresentConnect */ exports.prototype['cardPresentConnect'] = undefined; /** * @member {module:model/InlineResponse2013SetupsPaymentsCardProcessing} eCheck */ exports.prototype['eCheck'] = undefined; /** * @member {module:model/InlineResponse2013SetupsPaymentsCardProcessing} payerAuthentication */ exports.prototype['payerAuthentication'] = undefined; /** * @member {module:model/InlineResponse2013SetupsPaymentsDigitalPayments} digitalPayments */ exports.prototype['digitalPayments'] = undefined; /** * @member {module:model/InlineResponse2013SetupsPaymentsCardProcessing} secureAcceptance */ exports.prototype['secureAcceptance'] = undefined; /** * @member {module:model/InlineResponse2013SetupsPaymentsCardProcessing} virtualTerminal */ exports.prototype['virtualTerminal'] = undefined; /** * @member {module:model/InlineResponse2013SetupsPaymentsCardProcessing} currencyConversion */ exports.prototype['currencyConversion'] = undefined; /** * @member {module:model/InlineResponse2013SetupsPaymentsDigitalPayments} tax */ exports.prototype['tax'] = undefined; /** * @member {module:model/InlineResponse2013SetupsPaymentsDigitalPayments} customerInvoicing */ exports.prototype['customerInvoicing'] = undefined; /** * @member {module:model/InlineResponse2013SetupsPaymentsCardProcessing} recurringBilling */ exports.prototype['recurringBilling'] = undefined; /** * @member {module:model/InlineResponse2013SetupsPaymentsCardProcessing} cybsReadyTerminal */ exports.prototype['cybsReadyTerminal'] = undefined; /** * @member {module:model/InlineResponse2013SetupsPaymentsDigitalPayments} paymentOrchestration */ exports.prototype['paymentOrchestration'] = undefined; /** * @member {module:model/InlineResponse2013SetupsPaymentsCardProcessing} payouts */ exports.prototype['payouts'] = undefined; /** * @member {module:model/InlineResponse2013SetupsPaymentsDigitalPayments} payByLink */ exports.prototype['payByLink'] = undefined; /** * @member {module:model/InlineResponse2013SetupsPaymentsDigitalPayments} unifiedCheckout */ exports.prototype['unifiedCheckout'] = undefined; /** * @member {module:model/InlineResponse2013SetupsPaymentsDigitalPayments} receivablesManager */ exports.prototype['receivablesManager'] = undefined; /** * @member {module:model/InlineResponse2013SetupsPaymentsCardProcessing} serviceFee */ exports.prototype['serviceFee'] = undefined; /** * @member {module:model/InlineResponse2013SetupsPaymentsDigitalPayments} batchUpload */ exports.prototype['batchUpload'] = undefined; return exports; }));