UNPKG

cybersource-rest-client

Version:

Node.js SDK for the CyberSource REST API

106 lines (86 loc) 4.64 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/Ptsv2refreshpaymentstatusidAgreementInformation', 'model/Ptsv2refreshpaymentstatusidClientReferenceInformation', 'model/Ptsv2refreshpaymentstatusidPaymentInformation', 'model/Ptsv2refreshpaymentstatusidProcessingInformation'], factory); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. module.exports = factory(require('../ApiClient'), require('./Ptsv2refreshpaymentstatusidAgreementInformation'), require('./Ptsv2refreshpaymentstatusidClientReferenceInformation'), require('./Ptsv2refreshpaymentstatusidPaymentInformation'), require('./Ptsv2refreshpaymentstatusidProcessingInformation')); } else { // Browser globals (root is window) if (!root.CyberSource) { root.CyberSource = {}; } root.CyberSource.RefreshPaymentStatusRequest = factory(root.CyberSource.ApiClient, root.CyberSource.Ptsv2refreshpaymentstatusidAgreementInformation, root.CyberSource.Ptsv2refreshpaymentstatusidClientReferenceInformation, root.CyberSource.Ptsv2refreshpaymentstatusidPaymentInformation, root.CyberSource.Ptsv2refreshpaymentstatusidProcessingInformation); } }(this, function(ApiClient, Ptsv2refreshpaymentstatusidAgreementInformation, Ptsv2refreshpaymentstatusidClientReferenceInformation, Ptsv2refreshpaymentstatusidPaymentInformation, Ptsv2refreshpaymentstatusidProcessingInformation) { 'use strict'; /** * The RefreshPaymentStatusRequest model module. * @module model/RefreshPaymentStatusRequest * @version 0.0.1 */ /** * Constructs a new <code>RefreshPaymentStatusRequest</code>. * @alias module:model/RefreshPaymentStatusRequest * @class */ var exports = function() { var _this = this; }; /** * Constructs a <code>RefreshPaymentStatusRequest</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/RefreshPaymentStatusRequest} obj Optional instance to populate. * @return {module:model/RefreshPaymentStatusRequest} The populated <code>RefreshPaymentStatusRequest</code> instance. */ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); if (data.hasOwnProperty('paymentInformation')) { obj['paymentInformation'] = Ptsv2refreshpaymentstatusidPaymentInformation.constructFromObject(data['paymentInformation']); } if (data.hasOwnProperty('clientReferenceInformation')) { obj['clientReferenceInformation'] = Ptsv2refreshpaymentstatusidClientReferenceInformation.constructFromObject(data['clientReferenceInformation']); } if (data.hasOwnProperty('agreementInformation')) { obj['agreementInformation'] = Ptsv2refreshpaymentstatusidAgreementInformation.constructFromObject(data['agreementInformation']); } if (data.hasOwnProperty('processingInformation')) { obj['processingInformation'] = Ptsv2refreshpaymentstatusidProcessingInformation.constructFromObject(data['processingInformation']); } } return obj; } /** * @member {module:model/Ptsv2refreshpaymentstatusidPaymentInformation} paymentInformation */ exports.prototype['paymentInformation'] = undefined; /** * @member {module:model/Ptsv2refreshpaymentstatusidClientReferenceInformation} clientReferenceInformation */ exports.prototype['clientReferenceInformation'] = undefined; /** * @member {module:model/Ptsv2refreshpaymentstatusidAgreementInformation} agreementInformation */ exports.prototype['agreementInformation'] = undefined; /** * @member {module:model/Ptsv2refreshpaymentstatusidProcessingInformation} processingInformation */ exports.prototype['processingInformation'] = undefined; return exports; }));