UNPKG

cybersource-rest-client

Version:

Node.js SDK for the CyberSource REST API

101 lines (82 loc) 3.83 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/Notificationsubscriptionsv2webhooksSecurityPolicyConfigAdditionalConfig'], factory); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. module.exports = factory(require('../ApiClient'), require('./Notificationsubscriptionsv2webhooksSecurityPolicyConfigAdditionalConfig')); } else { // Browser globals (root is window) if (!root.CyberSource) { root.CyberSource = {}; } root.CyberSource.Notificationsubscriptionsv2webhooksSecurityPolicyConfig = factory(root.CyberSource.ApiClient, root.CyberSource.Notificationsubscriptionsv2webhooksSecurityPolicyConfigAdditionalConfig); } }(this, function(ApiClient, Notificationsubscriptionsv2webhooksSecurityPolicyConfigAdditionalConfig) { 'use strict'; /** * The Notificationsubscriptionsv2webhooksSecurityPolicyConfig model module. * @module model/Notificationsubscriptionsv2webhooksSecurityPolicyConfig * @version 0.0.1 */ /** * Constructs a new <code>Notificationsubscriptionsv2webhooksSecurityPolicyConfig</code>. * Optional configuration object for if your API or server requires oAuth for an incoming webhook. * @alias module:model/Notificationsubscriptionsv2webhooksSecurityPolicyConfig * @class */ var exports = function() { var _this = this; }; /** * Constructs a <code>Notificationsubscriptionsv2webhooksSecurityPolicyConfig</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/Notificationsubscriptionsv2webhooksSecurityPolicyConfig} obj Optional instance to populate. * @return {module:model/Notificationsubscriptionsv2webhooksSecurityPolicyConfig} The populated <code>Notificationsubscriptionsv2webhooksSecurityPolicyConfig</code> instance. */ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); if (data.hasOwnProperty('oAuthURL')) { obj['oAuthURL'] = ApiClient.convertToType(data['oAuthURL'], 'String'); } if (data.hasOwnProperty('oAuthTokenType')) { obj['oAuthTokenType'] = ApiClient.convertToType(data['oAuthTokenType'], 'String'); } if (data.hasOwnProperty('additionalConfig')) { obj['additionalConfig'] = Notificationsubscriptionsv2webhooksSecurityPolicyConfigAdditionalConfig.constructFromObject(data['additionalConfig']); } } return obj; } /** * Client direct endpoint to the oAuth server. * @member {String} oAuthURL */ exports.prototype['oAuthURL'] = undefined; /** * Token type for the oAuth config. Possible values: - Bearer * @member {String} oAuthTokenType */ exports.prototype['oAuthTokenType'] = undefined; /** * @member {module:model/Notificationsubscriptionsv2webhooksSecurityPolicyConfigAdditionalConfig} additionalConfig */ exports.prototype['additionalConfig'] = undefined; return exports; }));