UNPKG

cybersource-rest-client

Version:

Node.js SDK for the CyberSource REST API

131 lines (108 loc) 6.65 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/PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE', 'model/PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION', 'model/PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION', 'model/PtsV2PaymentsPost201ResponseEmbeddedActionsTOKENCREATE', 'model/PtsV2PaymentsPost201ResponseEmbeddedActionsTOKENUPDATE', 'model/PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING'], factory); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. module.exports = factory(require('../ApiClient'), require('./PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE'), require('./PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION'), require('./PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION'), require('./PtsV2PaymentsPost201ResponseEmbeddedActionsTOKENCREATE'), require('./PtsV2PaymentsPost201ResponseEmbeddedActionsTOKENUPDATE'), require('./PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING')); } else { // Browser globals (root is window) if (!root.CyberSource) { root.CyberSource = {}; } root.CyberSource.PtsV2PaymentsPost201ResponseEmbeddedActions = factory(root.CyberSource.ApiClient, root.CyberSource.PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE, root.CyberSource.PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION, root.CyberSource.PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION, root.CyberSource.PtsV2PaymentsPost201ResponseEmbeddedActionsTOKENCREATE, root.CyberSource.PtsV2PaymentsPost201ResponseEmbeddedActionsTOKENUPDATE, root.CyberSource.PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING); } }(this, function(ApiClient, PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE, PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION, PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION, PtsV2PaymentsPost201ResponseEmbeddedActionsTOKENCREATE, PtsV2PaymentsPost201ResponseEmbeddedActionsTOKENUPDATE, PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING) { 'use strict'; /** * The PtsV2PaymentsPost201ResponseEmbeddedActions model module. * @module model/PtsV2PaymentsPost201ResponseEmbeddedActions * @version 0.0.1 */ /** * Constructs a new <code>PtsV2PaymentsPost201ResponseEmbeddedActions</code>. * Contains embedded actions, that includes status and response for every actions in the list. * @alias module:model/PtsV2PaymentsPost201ResponseEmbeddedActions * @class */ var exports = function() { var _this = this; }; /** * Constructs a <code>PtsV2PaymentsPost201ResponseEmbeddedActions</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/PtsV2PaymentsPost201ResponseEmbeddedActions} obj Optional instance to populate. * @return {module:model/PtsV2PaymentsPost201ResponseEmbeddedActions} The populated <code>PtsV2PaymentsPost201ResponseEmbeddedActions</code> instance. */ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); if (data.hasOwnProperty('CAPTURE')) { obj['CAPTURE'] = PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE.constructFromObject(data['CAPTURE']); } if (data.hasOwnProperty('DECISION')) { obj['DECISION'] = PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION.constructFromObject(data['DECISION']); } if (data.hasOwnProperty('CONSUMER_AUTHENTICATION')) { obj['CONSUMER_AUTHENTICATION'] = PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION.constructFromObject(data['CONSUMER_AUTHENTICATION']); } if (data.hasOwnProperty('VALIDATE_CONSUMER_AUTHENTICATION')) { obj['VALIDATE_CONSUMER_AUTHENTICATION'] = PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION.constructFromObject(data['VALIDATE_CONSUMER_AUTHENTICATION']); } if (data.hasOwnProperty('WATCHLIST_SCREENING')) { obj['WATCHLIST_SCREENING'] = PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING.constructFromObject(data['WATCHLIST_SCREENING']); } if (data.hasOwnProperty('TOKEN_CREATE')) { obj['TOKEN_CREATE'] = PtsV2PaymentsPost201ResponseEmbeddedActionsTOKENCREATE.constructFromObject(data['TOKEN_CREATE']); } if (data.hasOwnProperty('TOKEN_UPDATE')) { obj['TOKEN_UPDATE'] = PtsV2PaymentsPost201ResponseEmbeddedActionsTOKENUPDATE.constructFromObject(data['TOKEN_UPDATE']); } } return obj; } /** * @member {module:model/PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE} CAPTURE */ exports.prototype['CAPTURE'] = undefined; /** * @member {module:model/PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION} DECISION */ exports.prototype['DECISION'] = undefined; /** * @member {module:model/PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION} CONSUMER_AUTHENTICATION */ exports.prototype['CONSUMER_AUTHENTICATION'] = undefined; /** * @member {module:model/PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION} VALIDATE_CONSUMER_AUTHENTICATION */ exports.prototype['VALIDATE_CONSUMER_AUTHENTICATION'] = undefined; /** * @member {module:model/PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING} WATCHLIST_SCREENING */ exports.prototype['WATCHLIST_SCREENING'] = undefined; /** * @member {module:model/PtsV2PaymentsPost201ResponseEmbeddedActionsTOKENCREATE} TOKEN_CREATE */ exports.prototype['TOKEN_CREATE'] = undefined; /** * @member {module:model/PtsV2PaymentsPost201ResponseEmbeddedActionsTOKENUPDATE} TOKEN_UPDATE */ exports.prototype['TOKEN_UPDATE'] = undefined; return exports; }));