Refactored model/ManufactureInfo.
This commit is contained in:
parent
6736514c21
commit
ccfa4e267f
|
|
@ -54,6 +54,7 @@ import { Images } from "./model/Images";
|
||||||
import { ItemIdType } from "./model/ItemIdType";
|
import { ItemIdType } from "./model/ItemIdType";
|
||||||
import { Languages } from "./model/Languages";
|
import { Languages } from "./model/Languages";
|
||||||
import { LanguageType } from "./model/LanguageType";
|
import { LanguageType } from "./model/LanguageType";
|
||||||
|
import { ManufactureInfo } from "./model/ManufactureInfo";
|
||||||
import { MaxPrice } from "./model/MaxPrice";
|
import { MaxPrice } from "./model/MaxPrice";
|
||||||
import { Merchant } from "./model/Merchant";
|
import { Merchant } from "./model/Merchant";
|
||||||
import { MinPrice } from "./model/MinPrice";
|
import { MinPrice } from "./model/MinPrice";
|
||||||
|
|
|
||||||
|
|
@ -21,44 +21,32 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
|
||||||
// AMD. Register as an anonymous module.
|
|
||||||
define(['ApiClient', 'model/SingleStringValuedAttribute'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
module.exports = factory(require('../ApiClient'), require('./SingleStringValuedAttribute'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
if (!root.ProductAdvertisingAPIv1) {
|
|
||||||
root.ProductAdvertisingAPIv1 = {};
|
|
||||||
}
|
|
||||||
root.ProductAdvertisingAPIv1.ManufactureInfo = factory(root.ProductAdvertisingAPIv1.ApiClient, root.ProductAdvertisingAPIv1.SingleStringValuedAttribute);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient, SingleStringValuedAttribute) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The ManufactureInfo model module.
|
* The ManufactureInfo model module.
|
||||||
* @module model/ManufactureInfo
|
* @module model/ManufactureInfo
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { SingleStringValuedAttribute } from "./SingleStringValuedAttribute";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>ManufactureInfo</code>.
|
* Constructs a new <code>ManufactureInfo</code>.
|
||||||
* @alias module:model/ManufactureInfo
|
* @alias module:model/ManufactureInfo
|
||||||
* @class
|
* @class
|
||||||
*/
|
*/
|
||||||
var exports = function() {
|
export class ManufactureInfo {
|
||||||
var _this = this;
|
/**
|
||||||
|
* @member {module:model/SingleStringValuedAttribute} ItemPartNumber
|
||||||
|
*/
|
||||||
|
public ItemPartNumber?: SingleStringValuedAttribute;
|
||||||
|
/**
|
||||||
};
|
* @member {module:model/SingleStringValuedAttribute} Model
|
||||||
|
*/
|
||||||
|
public Model?: SingleStringValuedAttribute;
|
||||||
|
/**
|
||||||
|
* @member {module:model/SingleStringValuedAttribute} Warranty
|
||||||
|
*/
|
||||||
|
public Warranty?: SingleStringValuedAttribute;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>ManufactureInfo</code> from a plain JavaScript object, optionally creating a new instance.
|
* Constructs a <code>ManufactureInfo</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
|
|
@ -67,39 +55,20 @@
|
||||||
* @param {module:model/ManufactureInfo} obj Optional instance to populate.
|
* @param {module:model/ManufactureInfo} obj Optional instance to populate.
|
||||||
* @return {module:model/ManufactureInfo} The populated <code>ManufactureInfo</code> instance.
|
* @return {module:model/ManufactureInfo} The populated <code>ManufactureInfo</code> instance.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(data, obj) {
|
public static constructFromObject(data: any, obj?: ManufactureInfo) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new exports();
|
obj = obj || new ManufactureInfo();
|
||||||
|
|
||||||
if (data.hasOwnProperty('ItemPartNumber')) {
|
if (data.hasOwnProperty('ItemPartNumber')) {
|
||||||
obj['ItemPartNumber'] = SingleStringValuedAttribute.constructFromObject(data['ItemPartNumber']);
|
obj.ItemPartNumber = SingleStringValuedAttribute.constructFromObject(data['ItemPartNumber']);
|
||||||
}
|
}
|
||||||
if (data.hasOwnProperty('Model')) {
|
if (data.hasOwnProperty('Model')) {
|
||||||
obj['Model'] = SingleStringValuedAttribute.constructFromObject(data['Model']);
|
obj.Model = SingleStringValuedAttribute.constructFromObject(data['Model']);
|
||||||
}
|
}
|
||||||
if (data.hasOwnProperty('Warranty')) {
|
if (data.hasOwnProperty('Warranty')) {
|
||||||
obj['Warranty'] = SingleStringValuedAttribute.constructFromObject(data['Warranty']);
|
obj.Warranty = SingleStringValuedAttribute.constructFromObject(data['Warranty']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
|
};
|
||||||
/**
|
|
||||||
* @member {module:model/SingleStringValuedAttribute} ItemPartNumber
|
|
||||||
*/
|
|
||||||
exports.prototype['ItemPartNumber'] = undefined;
|
|
||||||
/**
|
|
||||||
* @member {module:model/SingleStringValuedAttribute} Model
|
|
||||||
*/
|
|
||||||
exports.prototype['Model'] = undefined;
|
|
||||||
/**
|
|
||||||
* @member {module:model/SingleStringValuedAttribute} Warranty
|
|
||||||
*/
|
|
||||||
exports.prototype['Warranty'] = undefined;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user