UNPKG

cybersource-rest-client

Version:

Node.js SDK for the CyberSource REST API

115 lines (94 loc) 4.7 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/Invoicingv2invoicesClientReferenceInformation', 'model/Iplv2paymentlinksidOrderInformation', 'model/Iplv2paymentlinksidProcessingInformation', 'model/Iplv2paymentlinksidPurchaseInformation'], factory); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. module.exports = factory(require('../ApiClient'), require('./Invoicingv2invoicesClientReferenceInformation'), require('./Iplv2paymentlinksidOrderInformation'), require('./Iplv2paymentlinksidProcessingInformation'), require('./Iplv2paymentlinksidPurchaseInformation')); } else { // Browser globals (root is window) if (!root.CyberSource) { root.CyberSource = {}; } root.CyberSource.UpdatePaymentLinkRequest = factory(root.CyberSource.ApiClient, root.CyberSource.Invoicingv2invoicesClientReferenceInformation, root.CyberSource.Iplv2paymentlinksidOrderInformation, root.CyberSource.Iplv2paymentlinksidProcessingInformation, root.CyberSource.Iplv2paymentlinksidPurchaseInformation); } }(this, function(ApiClient, Invoicingv2invoicesClientReferenceInformation, Iplv2paymentlinksidOrderInformation, Iplv2paymentlinksidProcessingInformation, Iplv2paymentlinksidPurchaseInformation) { 'use strict'; /** * The UpdatePaymentLinkRequest model module. * @module model/UpdatePaymentLinkRequest * @version 0.0.1 */ /** * Constructs a new <code>UpdatePaymentLinkRequest</code>. * @alias module:model/UpdatePaymentLinkRequest * @class */ var exports = function() { var _this = this; }; /** * Constructs a <code>UpdatePaymentLinkRequest</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/UpdatePaymentLinkRequest} obj Optional instance to populate. * @return {module:model/UpdatePaymentLinkRequest} The populated <code>UpdatePaymentLinkRequest</code> instance. */ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); if (data.hasOwnProperty('status')) { obj['status'] = ApiClient.convertToType(data['status'], 'String'); } if (data.hasOwnProperty('clientReferenceInformation')) { obj['clientReferenceInformation'] = Invoicingv2invoicesClientReferenceInformation.constructFromObject(data['clientReferenceInformation']); } if (data.hasOwnProperty('processingInformation')) { obj['processingInformation'] = Iplv2paymentlinksidProcessingInformation.constructFromObject(data['processingInformation']); } if (data.hasOwnProperty('purchaseInformation')) { obj['purchaseInformation'] = Iplv2paymentlinksidPurchaseInformation.constructFromObject(data['purchaseInformation']); } if (data.hasOwnProperty('orderInformation')) { obj['orderInformation'] = Iplv2paymentlinksidOrderInformation.constructFromObject(data['orderInformation']); } } return obj; } /** * The status of the purchase or donation link. Possible values: - ACTIVE - INACTIVE * @member {String} status */ exports.prototype['status'] = undefined; /** * @member {module:model/Invoicingv2invoicesClientReferenceInformation} clientReferenceInformation */ exports.prototype['clientReferenceInformation'] = undefined; /** * @member {module:model/Iplv2paymentlinksidProcessingInformation} processingInformation */ exports.prototype['processingInformation'] = undefined; /** * @member {module:model/Iplv2paymentlinksidPurchaseInformation} purchaseInformation */ exports.prototype['purchaseInformation'] = undefined; /** * @member {module:model/Iplv2paymentlinksidOrderInformation} orderInformation */ exports.prototype['orderInformation'] = undefined; return exports; }));