cybersource-rest-client
Version:
Node.js SDK for the CyberSource REST API
92 lines (74 loc) • 3.34 kB
JavaScript
/**
* 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'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
module.exports = factory(require('../ApiClient'));
} else {
// Browser globals (root is window)
if (!root.CyberSource) {
root.CyberSource = {};
}
root.CyberSource.GetAllSubscriptionsResponseOrderInformationAmountDetailsSurcharge = factory(root.CyberSource.ApiClient);
}
}(this, function(ApiClient) {
'use strict';
/**
* The GetAllSubscriptionsResponseOrderInformationAmountDetailsSurcharge model module.
* @module model/GetAllSubscriptionsResponseOrderInformationAmountDetailsSurcharge
* @version 0.0.1
*/
/**
* Constructs a new <code>GetAllSubscriptionsResponseOrderInformationAmountDetailsSurcharge</code>.
* @alias module:model/GetAllSubscriptionsResponseOrderInformationAmountDetailsSurcharge
* @class
*/
var exports = function() {
var _this = this;
};
/**
* Constructs a <code>GetAllSubscriptionsResponseOrderInformationAmountDetailsSurcharge</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/GetAllSubscriptionsResponseOrderInformationAmountDetailsSurcharge} obj Optional instance to populate.
* @return {module:model/GetAllSubscriptionsResponseOrderInformationAmountDetailsSurcharge} The populated <code>GetAllSubscriptionsResponseOrderInformationAmountDetailsSurcharge</code> instance.
*/
exports.constructFromObject = function(data, obj) {
if (data) {
obj = obj || new exports();
if (data.hasOwnProperty('amount')) {
obj['amount'] = ApiClient.convertToType(data['amount'], 'String');
}
if (data.hasOwnProperty('description')) {
obj['description'] = ApiClient.convertToType(data['description'], 'String');
}
}
return obj;
}
/**
* Surcharge amount that you are charging the customer for this subscription. The surcharge amount will be added to the billing amount. The issuer can provide information about the surcharge amount to the customer. **NOTE**: This field is supported only for CyberSource through VisaNet (CtV) for Payouts. For CtV, the maximum string length is 8.
* @member {String} amount
*/
exports.prototype['amount'] = undefined;
/**
* Description of the surcharge.
* @member {String} description
*/
exports.prototype['description'] = undefined;
return exports;
}));