Refactored model/DimensionBasedAttribute.
This commit is contained in:
parent
efdce7e4f6
commit
ca5f4c5629
|
|
@ -39,6 +39,7 @@ import { ContentRating } from "./model/ContentRating";
|
|||
import { Contributor } from "./model/Contributor";
|
||||
import { CustomerReviews } from "./model/CustomerReviews";
|
||||
import { DeliveryFlag } from "./model/DeliveryFlag";
|
||||
import { DimensionBasedAttribute } from "./model/DimensionBasedAttribute";
|
||||
import { Languages } from "./model/Languages";
|
||||
import { LanguageType } from "./model/LanguageType";
|
||||
import { OfferSavings } from "./model/OfferSavings";
|
||||
|
|
|
|||
|
|
@ -21,45 +21,36 @@
|
|||
*
|
||||
*/
|
||||
|
||||
(function(root, factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
// AMD. Register as an anonymous module.
|
||||
define(['ApiClient', 'model/UnitBasedAttribute'], factory);
|
||||
} else if (typeof module === 'object' && module.exports) {
|
||||
// CommonJS-like environments that support module.exports, like Node.
|
||||
module.exports = factory(require('../ApiClient'), require('./UnitBasedAttribute'));
|
||||
} else {
|
||||
// Browser globals (root is window)
|
||||
if (!root.ProductAdvertisingAPIv1) {
|
||||
root.ProductAdvertisingAPIv1 = {};
|
||||
}
|
||||
root.ProductAdvertisingAPIv1.DimensionBasedAttribute = factory(root.ProductAdvertisingAPIv1.ApiClient, root.ProductAdvertisingAPIv1.UnitBasedAttribute);
|
||||
}
|
||||
}(this, function(ApiClient, UnitBasedAttribute) {
|
||||
'use strict';
|
||||
|
||||
|
||||
/**
|
||||
* The DimensionBasedAttribute model module.
|
||||
* @module model/DimensionBasedAttribute
|
||||
* @version 1.0.0
|
||||
*/
|
||||
|
||||
import { UnitBasedAttribute } from "./UnitBasedAttribute";
|
||||
|
||||
/**
|
||||
* Constructs a new <code>DimensionBasedAttribute</code>.
|
||||
* @alias module:model/DimensionBasedAttribute
|
||||
* @class
|
||||
*/
|
||||
export class DimensionBasedAttribute {
|
||||
/**
|
||||
* The DimensionBasedAttribute model module.
|
||||
* @module model/DimensionBasedAttribute
|
||||
* @version 1.0.0
|
||||
* @member {module:model/UnitBasedAttribute} Height
|
||||
*/
|
||||
|
||||
public Height?: UnitBasedAttribute;
|
||||
/**
|
||||
* Constructs a new <code>DimensionBasedAttribute</code>.
|
||||
* @alias module:model/DimensionBasedAttribute
|
||||
* @class
|
||||
* @member {module:model/UnitBasedAttribute} Length
|
||||
*/
|
||||
var exports = function() {
|
||||
var _this = this;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
public Length?: UnitBasedAttribute;
|
||||
/**
|
||||
* @member {module:model/UnitBasedAttribute} Weight
|
||||
*/
|
||||
public Weight?: UnitBasedAttribute
|
||||
/**
|
||||
* @member {module:model/UnitBasedAttribute} Width
|
||||
*/
|
||||
public Width?: UnitBasedAttribute;
|
||||
|
||||
/**
|
||||
* Constructs a <code>DimensionBasedAttribute</code> from a plain JavaScript object, optionally creating a new instance.
|
||||
|
|
@ -68,46 +59,23 @@
|
|||
* @param {module:model/DimensionBasedAttribute} obj Optional instance to populate.
|
||||
* @return {module:model/DimensionBasedAttribute} The populated <code>DimensionBasedAttribute</code> instance.
|
||||
*/
|
||||
exports.constructFromObject = function(data, obj) {
|
||||
public static constructFromObject(data: any, obj?: DimensionBasedAttribute) {
|
||||
if (data) {
|
||||
obj = obj || new exports();
|
||||
obj = obj || new DimensionBasedAttribute();
|
||||
|
||||
if (data.hasOwnProperty('Height')) {
|
||||
obj['Height'] = UnitBasedAttribute.constructFromObject(data['Height']);
|
||||
obj.Height = UnitBasedAttribute.constructFromObject(data['Height']);
|
||||
}
|
||||
if (data.hasOwnProperty('Length')) {
|
||||
obj['Length'] = UnitBasedAttribute.constructFromObject(data['Length']);
|
||||
obj.Length = UnitBasedAttribute.constructFromObject(data['Length']);
|
||||
}
|
||||
if (data.hasOwnProperty('Weight')) {
|
||||
obj['Weight'] = UnitBasedAttribute.constructFromObject(data['Weight']);
|
||||
obj.Weight = UnitBasedAttribute.constructFromObject(data['Weight']);
|
||||
}
|
||||
if (data.hasOwnProperty('Width')) {
|
||||
obj['Width'] = UnitBasedAttribute.constructFromObject(data['Width']);
|
||||
obj.Width = UnitBasedAttribute.constructFromObject(data['Width']);
|
||||
}
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
|
||||
/**
|
||||
* @member {module:model/UnitBasedAttribute} Height
|
||||
*/
|
||||
exports.prototype['Height'] = undefined;
|
||||
/**
|
||||
* @member {module:model/UnitBasedAttribute} Length
|
||||
*/
|
||||
exports.prototype['Length'] = undefined;
|
||||
/**
|
||||
* @member {module:model/UnitBasedAttribute} Weight
|
||||
*/
|
||||
exports.prototype['Weight'] = undefined;
|
||||
/**
|
||||
* @member {module:model/UnitBasedAttribute} Width
|
||||
*/
|
||||
exports.prototype['Width'] = undefined;
|
||||
|
||||
|
||||
|
||||
return exports;
|
||||
}));
|
||||
|
||||
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user