cybersource-rest-client
Version:
Node.js SDK for the CyberSource REST API
137 lines (114 loc) • 4.86 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.Acpv1instructionsinstructionIdcredentialsOrderInformationItemsPolicies = factory(root.CyberSource.ApiClient);
}
}(this, function(ApiClient) {
'use strict';
/**
* The Acpv1instructionsinstructionIdcredentialsOrderInformationItemsPolicies model module.
* @module model/Acpv1instructionsinstructionIdcredentialsOrderInformationItemsPolicies
* @version 0.0.1
*/
/**
* Constructs a new <code>Acpv1instructionsinstructionIdcredentialsOrderInformationItemsPolicies</code>.
* Policies related to the item.
* @alias module:model/Acpv1instructionsinstructionIdcredentialsOrderInformationItemsPolicies
* @class
*/
var exports = function() {
var _this = this;
};
/**
* Constructs a <code>Acpv1instructionsinstructionIdcredentialsOrderInformationItemsPolicies</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/Acpv1instructionsinstructionIdcredentialsOrderInformationItemsPolicies} obj Optional instance to populate.
* @return {module:model/Acpv1instructionsinstructionIdcredentialsOrderInformationItemsPolicies} The populated <code>Acpv1instructionsinstructionIdcredentialsOrderInformationItemsPolicies</code> instance.
*/
exports.constructFromObject = function(data, obj) {
if (data) {
obj = obj || new exports();
if (data.hasOwnProperty('termsAndConditions')) {
obj['termsAndConditions'] = ApiClient.convertToType(data['termsAndConditions'], 'String');
}
if (data.hasOwnProperty('cancellationPolicy')) {
obj['cancellationPolicy'] = ApiClient.convertToType(data['cancellationPolicy'], 'String');
}
if (data.hasOwnProperty('refundPolicy')) {
obj['refundPolicy'] = ApiClient.convertToType(data['refundPolicy'], 'String');
}
if (data.hasOwnProperty('disputePolicy')) {
obj['disputePolicy'] = ApiClient.convertToType(data['disputePolicy'], 'String');
}
if (data.hasOwnProperty('shippingPolicy')) {
obj['shippingPolicy'] = ApiClient.convertToType(data['shippingPolicy'], 'String');
}
if (data.hasOwnProperty('discountAndPromotions')) {
obj['discountAndPromotions'] = ApiClient.convertToType(data['discountAndPromotions'], 'String');
}
if (data.hasOwnProperty('propertyName')) {
obj['propertyName'] = ApiClient.convertToType(data['propertyName'], Object);
}
}
return obj;
}
/**
* Any specific terms and conditions related to the sale, payment, use of the product.
* @member {String} termsAndConditions
*/
exports.prototype['termsAndConditions'] = undefined;
/**
* Any specific terms and conditions related to the cancellation of the order.
* @member {String} cancellationPolicy
*/
exports.prototype['cancellationPolicy'] = undefined;
/**
* Any specific terms and conditions related to the refund.
* @member {String} refundPolicy
*/
exports.prototype['refundPolicy'] = undefined;
/**
* Any specific terms and conditions related to the dispute.
* @member {String} disputePolicy
*/
exports.prototype['disputePolicy'] = undefined;
/**
* Any specific terms and conditions related to the shipping.
* @member {String} shippingPolicy
*/
exports.prototype['shippingPolicy'] = undefined;
/**
* Any specific terms and conditions related to the discount.
* @member {String} discountAndPromotions
*/
exports.prototype['discountAndPromotions'] = undefined;
/**
* @member {Object} propertyName
*/
exports.prototype['propertyName'] = undefined;
return exports;
}));