Compare commits
8 Commits
2bd8ddf350
...
d4f6695395
| Author | SHA1 | Date | |
|---|---|---|---|
| d4f6695395 | |||
| 77180aea4e | |||
| 96a090a7d0 | |||
| 74d3ac8a36 | |||
| 6f313822c0 | |||
| ccfa4e267f | |||
| 6736514c21 | |||
| f49cdea458 |
|
|
@ -51,18 +51,24 @@ import { GetItemsResource } from "./model/GetItemsResource";
|
|||
import { ImageSize } from "./model/ImageSize";
|
||||
import { ImageType } from "./model/ImageType";
|
||||
import { Images } from "./model/Images";
|
||||
import { Item } from "./model/Item";
|
||||
import { ItemIdType } from "./model/ItemIdType";
|
||||
import { ItemInfo } from "./model/ItemInfo";
|
||||
import { Languages } from "./model/Languages";
|
||||
import { LanguageType } from "./model/LanguageType";
|
||||
import { ManufactureInfo } from "./model/ManufactureInfo";
|
||||
import { MaxPrice } from "./model/MaxPrice";
|
||||
import { Merchant } from "./model/Merchant";
|
||||
import { MinPrice } from "./model/MinPrice";
|
||||
import { MultiValuedAttribute } from "./model/MultiValuedAttribute";
|
||||
import { OfferAvailability } from "./model/OfferAvailability";
|
||||
import { OfferCondition } from "./model/OfferCondition";
|
||||
import { OfferConditionNote } from "./model/OfferConditionNote";
|
||||
import { OfferCount } from "./model/OfferCount";
|
||||
import { OfferPrice } from "./model/OfferPrice";
|
||||
import { OfferSavings } from "./model/OfferSavings";
|
||||
import { OfferSubCondition } from "./model/OfferSubCondition";
|
||||
import { OfferSummary } from "./model/OfferSummary";
|
||||
import { PartnerType } from "./model/PartnerType";
|
||||
import { Price } from "./model/Price";
|
||||
import { PriceType } from "./model/PriceType";
|
||||
|
|
@ -77,6 +83,8 @@ import { SearchRefinements } from "./model/SearchRefinements";
|
|||
import { SingleBooleanValuedAttribute } from "./model/SingleBooleanValuedAttribute";
|
||||
import { SingleIntegerValuedAttribute } from "./model/SingleIntegerValuedAttribute";
|
||||
import { SingleStringValuedAttribute } from "./model/SingleStringValuedAttribute";
|
||||
import { TechnicalInfo } from "./model/TechnicalInfo";
|
||||
import { TradeInInfo } from "./model/TradeInInfo";
|
||||
import { TradeInPrice } from "./model/TradeInPrice";
|
||||
import { UnitBasedAttribute } from "./model/UnitBasedAttribute";
|
||||
import { VariationDimension } from "./model/VariationDimension";
|
||||
|
|
|
|||
|
|
@ -21,52 +21,71 @@
|
|||
*
|
||||
*/
|
||||
|
||||
(function(root, factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
// AMD. Register as an anonymous module.
|
||||
define(['ApiClient', 'model/BrowseNodeInfo', 'model/CustomerReviews', 'model/Images', 'model/ItemInfo', 'model/Offers', 'model/RentalOffers', 'model/VariationAttribute'], factory);
|
||||
} else if (typeof module === 'object' && module.exports) {
|
||||
// CommonJS-like environments that support module.exports, like Node.
|
||||
module.exports = factory(require('../ApiClient'), require('./BrowseNodeInfo'), require('./CustomerReviews'), require('./Images'), require('./ItemInfo'), require('./Offers'), require('./RentalOffers'), require('./VariationAttribute'));
|
||||
} else {
|
||||
// Browser globals (root is window)
|
||||
if (!root.ProductAdvertisingAPIv1) {
|
||||
root.ProductAdvertisingAPIv1 = {};
|
||||
}
|
||||
root.ProductAdvertisingAPIv1.Item = factory(root.ProductAdvertisingAPIv1.ApiClient, root.ProductAdvertisingAPIv1.BrowseNodeInfo, root.ProductAdvertisingAPIv1.CustomerReviews, root.ProductAdvertisingAPIv1.Images, root.ProductAdvertisingAPIv1.ItemInfo, root.ProductAdvertisingAPIv1.Offers, root.ProductAdvertisingAPIv1.RentalOffers, root.ProductAdvertisingAPIv1.VariationAttribute);
|
||||
}
|
||||
}(this, function(ApiClient, BrowseNodeInfo, CustomerReviews, Images, ItemInfo, Offers, RentalOffers, VariationAttribute) {
|
||||
'use strict';
|
||||
|
||||
|
||||
/**
|
||||
* The Item model module.
|
||||
* @module model/Item
|
||||
* @version 1.0.0
|
||||
*/
|
||||
|
||||
import { ApiClient } from "../ApiClient";
|
||||
import { BrowseNodeInfo } from "./BrowseNodeInfo";
|
||||
import { CustomerReviews } from "./CustomerReviews";
|
||||
import { Images } from "./Images";
|
||||
import { ItemInfo } from "./ItemInfo";
|
||||
import { Offers } from "./Offers";
|
||||
import { RentalOffers } from "./RentalOffers";
|
||||
import { VariationAttribute } from "./VariationAttribute";
|
||||
|
||||
/**
|
||||
* Constructs a new <code>Item</code>.
|
||||
* @alias module:model/Item
|
||||
* @class
|
||||
*/
|
||||
export class Item {
|
||||
/**
|
||||
* The Item model module.
|
||||
* @module model/Item
|
||||
* @version 1.0.0
|
||||
* @member {String} ASIN
|
||||
*/
|
||||
|
||||
public ASIN?: string;
|
||||
/**
|
||||
* Constructs a new <code>Item</code>.
|
||||
* @alias module:model/Item
|
||||
* @class
|
||||
* @member {module:model/BrowseNodeInfo} BrowseNodeInfo
|
||||
*/
|
||||
var exports = function() {
|
||||
var _this = this;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
public BrowseNodeInfo?: BrowseNodeInfo;
|
||||
/**
|
||||
* @member {module:model/CustomerReviews} CustomerReviews
|
||||
*/
|
||||
public CustomerReviews?: CustomerReviews;
|
||||
/**
|
||||
* @member {String} DetailPageURL
|
||||
*/
|
||||
public DetailPageURL?: string;
|
||||
/**
|
||||
* @member {module:model/Images} Images
|
||||
*/
|
||||
public Images?: Images;
|
||||
/**
|
||||
* @member {module:model/ItemInfo} ItemInfo
|
||||
*/
|
||||
public ItemInfo?: ItemInfo;
|
||||
/**
|
||||
* @member {module:model/Offers} Offers
|
||||
*/
|
||||
public Offers?: Offers;
|
||||
/**
|
||||
* @member {String} ParentASIN
|
||||
*/
|
||||
public ParentASIN?: string;
|
||||
/**
|
||||
* @member {module:model/RentalOffers} RentalOffers
|
||||
*/
|
||||
public RentalOffers?: RentalOffers;
|
||||
/**
|
||||
* @member {Number} Score
|
||||
*/
|
||||
public Score?: number;
|
||||
/**
|
||||
* @member {Array.<module:model/VariationAttribute>} VariationAttributes
|
||||
*/
|
||||
public VariationAttributes?: VariationAttribute[];
|
||||
|
||||
/**
|
||||
* Constructs a <code>Item</code> from a plain JavaScript object, optionally creating a new instance.
|
||||
|
|
@ -75,9 +94,9 @@
|
|||
* @param {module:model/Item} obj Optional instance to populate.
|
||||
* @return {module:model/Item} The populated <code>Item</code> instance.
|
||||
*/
|
||||
exports.constructFromObject = function(data, obj) {
|
||||
public static constructFromObject(data: any, obj?: Item) {
|
||||
if (data) {
|
||||
obj = obj || new exports();
|
||||
obj = obj || new Item();
|
||||
|
||||
if (data.hasOwnProperty('ASIN')) {
|
||||
obj['ASIN'] = ApiClient.convertToType(data['ASIN'], 'String');
|
||||
|
|
@ -115,55 +134,4 @@
|
|||
}
|
||||
return obj;
|
||||
}
|
||||
|
||||
/**
|
||||
* @member {String} ASIN
|
||||
*/
|
||||
exports.prototype['ASIN'] = undefined;
|
||||
/**
|
||||
* @member {module:model/BrowseNodeInfo} BrowseNodeInfo
|
||||
*/
|
||||
exports.prototype['BrowseNodeInfo'] = undefined;
|
||||
/**
|
||||
* @member {module:model/CustomerReviews} CustomerReviews
|
||||
*/
|
||||
exports.prototype['CustomerReviews'] = undefined;
|
||||
/**
|
||||
* @member {String} DetailPageURL
|
||||
*/
|
||||
exports.prototype['DetailPageURL'] = undefined;
|
||||
/**
|
||||
* @member {module:model/Images} Images
|
||||
*/
|
||||
exports.prototype['Images'] = undefined;
|
||||
/**
|
||||
* @member {module:model/ItemInfo} ItemInfo
|
||||
*/
|
||||
exports.prototype['ItemInfo'] = undefined;
|
||||
/**
|
||||
* @member {module:model/Offers} Offers
|
||||
*/
|
||||
exports.prototype['Offers'] = undefined;
|
||||
/**
|
||||
* @member {String} ParentASIN
|
||||
*/
|
||||
exports.prototype['ParentASIN'] = undefined;
|
||||
/**
|
||||
* @member {module:model/RentalOffers} RentalOffers
|
||||
*/
|
||||
exports.prototype['RentalOffers'] = undefined;
|
||||
/**
|
||||
* @member {Number} Score
|
||||
*/
|
||||
exports.prototype['Score'] = undefined;
|
||||
/**
|
||||
* @member {Array.<module:model/VariationAttribute>} VariationAttributes
|
||||
*/
|
||||
exports.prototype['VariationAttributes'] = undefined;
|
||||
|
||||
|
||||
|
||||
return exports;
|
||||
}));
|
||||
|
||||
|
||||
};
|
||||
|
|
|
|||
|
|
@ -21,52 +21,74 @@
|
|||
*
|
||||
*/
|
||||
|
||||
(function(root, factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
// AMD. Register as an anonymous module.
|
||||
define(['ApiClient', 'model/ByLineInfo', 'model/Classifications', 'model/ContentInfo', 'model/ContentRating', 'model/ExternalIds', 'model/ManufactureInfo', 'model/MultiValuedAttribute', 'model/ProductInfo', 'model/SingleStringValuedAttribute', 'model/TechnicalInfo', 'model/TradeInInfo'], factory);
|
||||
} else if (typeof module === 'object' && module.exports) {
|
||||
// CommonJS-like environments that support module.exports, like Node.
|
||||
module.exports = factory(require('../ApiClient'), require('./ByLineInfo'), require('./Classifications'), require('./ContentInfo'), require('./ContentRating'), require('./ExternalIds'), require('./ManufactureInfo'), require('./MultiValuedAttribute'), require('./ProductInfo'), require('./SingleStringValuedAttribute'), require('./TechnicalInfo'), require('./TradeInInfo'));
|
||||
} else {
|
||||
// Browser globals (root is window)
|
||||
if (!root.ProductAdvertisingAPIv1) {
|
||||
root.ProductAdvertisingAPIv1 = {};
|
||||
}
|
||||
root.ProductAdvertisingAPIv1.ItemInfo = factory(root.ProductAdvertisingAPIv1.ApiClient, root.ProductAdvertisingAPIv1.ByLineInfo, root.ProductAdvertisingAPIv1.Classifications, root.ProductAdvertisingAPIv1.ContentInfo, root.ProductAdvertisingAPIv1.ContentRating, root.ProductAdvertisingAPIv1.ExternalIds, root.ProductAdvertisingAPIv1.ManufactureInfo, root.ProductAdvertisingAPIv1.MultiValuedAttribute, root.ProductAdvertisingAPIv1.ProductInfo, root.ProductAdvertisingAPIv1.SingleStringValuedAttribute, root.ProductAdvertisingAPIv1.TechnicalInfo, root.ProductAdvertisingAPIv1.TradeInInfo);
|
||||
}
|
||||
}(this, function(ApiClient, ByLineInfo, Classifications, ContentInfo, ContentRating, ExternalIds, ManufactureInfo, MultiValuedAttribute, ProductInfo, SingleStringValuedAttribute, TechnicalInfo, TradeInInfo) {
|
||||
'use strict';
|
||||
|
||||
|
||||
/**
|
||||
* The ItemInfo model module.
|
||||
* @module model/ItemInfo
|
||||
* @version 1.0.0
|
||||
*/
|
||||
|
||||
import { ByLineInfo } from "./ByLineInfo";
|
||||
import { Classifications } from "./Classifications";
|
||||
import { ContentInfo } from "./ContentInfo";
|
||||
import { ContentRating } from "./ContentRating";
|
||||
import { ExternalIds } from "./ExternalIds";
|
||||
import { ManufactureInfo } from "./ManufactureInfo";
|
||||
import { MultiValuedAttribute } from "./MultiValuedAttribute";
|
||||
import { ProductInfo } from "./ProductInfo";
|
||||
import { SingleStringValuedAttribute } from "./SingleStringValuedAttribute";
|
||||
import { TechnicalInfo } from "./TechnicalInfo";
|
||||
import { TradeInInfo } from "./TradeInInfo";
|
||||
|
||||
/**
|
||||
* Constructs a new <code>ItemInfo</code>.
|
||||
* @alias module:model/ItemInfo
|
||||
* @class
|
||||
*/
|
||||
export class ItemInfo {
|
||||
/**
|
||||
* The ItemInfo model module.
|
||||
* @module model/ItemInfo
|
||||
* @version 1.0.0
|
||||
* @member {module:model/ByLineInfo} ByLineInfo
|
||||
*/
|
||||
|
||||
public ByLineInfo?: ByLineInfo;
|
||||
/**
|
||||
* Constructs a new <code>ItemInfo</code>.
|
||||
* @alias module:model/ItemInfo
|
||||
* @class
|
||||
* @member {module:model/Classifications} Classifications
|
||||
*/
|
||||
var exports = function() {
|
||||
var _this = this;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
public Classifications?: Classifications;
|
||||
/**
|
||||
* @member {module:model/ContentInfo} ContentInfo
|
||||
*/
|
||||
public ContentInfo?: ContentInfo;
|
||||
/**
|
||||
* @member {module:model/ContentRating} ContentRating
|
||||
*/
|
||||
public ContentRating?: ContentRating;
|
||||
/**
|
||||
* @member {module:model/ExternalIds} ExternalIds
|
||||
*/
|
||||
public ExternalIds?: ExternalIds;
|
||||
/**
|
||||
* @member {module:model/MultiValuedAttribute} Features
|
||||
*/
|
||||
public Features?: MultiValuedAttribute;
|
||||
/**
|
||||
* @member {module:model/ManufactureInfo} ManufactureInfo
|
||||
*/
|
||||
public ManufactureInfo?: ManufactureInfo;
|
||||
/**
|
||||
* @member {module:model/ProductInfo} ProductInfo
|
||||
*/
|
||||
public ProductInfo?: ProductInfo;
|
||||
/**
|
||||
* @member {module:model/TechnicalInfo} TechnicalInfo
|
||||
*/
|
||||
public TechnicalInfo?: TechnicalInfo;
|
||||
/**
|
||||
* @member {module:model/SingleStringValuedAttribute} Title
|
||||
*/
|
||||
public Title?: SingleStringValuedAttribute;
|
||||
/**
|
||||
* @member {module:model/TradeInInfo} TradeInInfo
|
||||
*/
|
||||
public TradeInInfo?: TradeInInfo;
|
||||
|
||||
/**
|
||||
* Constructs a <code>ItemInfo</code> from a plain JavaScript object, optionally creating a new instance.
|
||||
|
|
@ -75,95 +97,44 @@
|
|||
* @param {module:model/ItemInfo} obj Optional instance to populate.
|
||||
* @return {module:model/ItemInfo} The populated <code>ItemInfo</code> instance.
|
||||
*/
|
||||
exports.constructFromObject = function(data, obj) {
|
||||
public static constructFromObject(data: any, obj?: ItemInfo) {
|
||||
if (data) {
|
||||
obj = obj || new exports();
|
||||
obj = obj || new ItemInfo();
|
||||
|
||||
if (data.hasOwnProperty('ByLineInfo')) {
|
||||
obj['ByLineInfo'] = ByLineInfo.constructFromObject(data['ByLineInfo']);
|
||||
obj.ByLineInfo = ByLineInfo.constructFromObject(data['ByLineInfo']);
|
||||
}
|
||||
if (data.hasOwnProperty('Classifications')) {
|
||||
obj['Classifications'] = Classifications.constructFromObject(data['Classifications']);
|
||||
obj.Classifications = Classifications.constructFromObject(data['Classifications']);
|
||||
}
|
||||
if (data.hasOwnProperty('ContentInfo')) {
|
||||
obj['ContentInfo'] = ContentInfo.constructFromObject(data['ContentInfo']);
|
||||
obj.ContentInfo = ContentInfo.constructFromObject(data['ContentInfo']);
|
||||
}
|
||||
if (data.hasOwnProperty('ContentRating')) {
|
||||
obj['ContentRating'] = ContentRating.constructFromObject(data['ContentRating']);
|
||||
obj.ContentRating = ContentRating.constructFromObject(data['ContentRating']);
|
||||
}
|
||||
if (data.hasOwnProperty('ExternalIds')) {
|
||||
obj['ExternalIds'] = ExternalIds.constructFromObject(data['ExternalIds']);
|
||||
obj.ExternalIds = ExternalIds.constructFromObject(data['ExternalIds']);
|
||||
}
|
||||
if (data.hasOwnProperty('Features')) {
|
||||
obj['Features'] = MultiValuedAttribute.constructFromObject(data['Features']);
|
||||
obj.Features = MultiValuedAttribute.constructFromObject(data['Features']);
|
||||
}
|
||||
if (data.hasOwnProperty('ManufactureInfo')) {
|
||||
obj['ManufactureInfo'] = ManufactureInfo.constructFromObject(data['ManufactureInfo']);
|
||||
obj.ManufactureInfo = ManufactureInfo.constructFromObject(data['ManufactureInfo']);
|
||||
}
|
||||
if (data.hasOwnProperty('ProductInfo')) {
|
||||
obj['ProductInfo'] = ProductInfo.constructFromObject(data['ProductInfo']);
|
||||
obj.ProductInfo = ProductInfo.constructFromObject(data['ProductInfo']);
|
||||
}
|
||||
if (data.hasOwnProperty('TechnicalInfo')) {
|
||||
obj['TechnicalInfo'] = TechnicalInfo.constructFromObject(data['TechnicalInfo']);
|
||||
obj.TechnicalInfo = TechnicalInfo.constructFromObject(data['TechnicalInfo']);
|
||||
}
|
||||
if (data.hasOwnProperty('Title')) {
|
||||
obj['Title'] = SingleStringValuedAttribute.constructFromObject(data['Title']);
|
||||
obj.Title = SingleStringValuedAttribute.constructFromObject(data['Title']);
|
||||
}
|
||||
if (data.hasOwnProperty('TradeInInfo')) {
|
||||
obj['TradeInInfo'] = TradeInInfo.constructFromObject(data['TradeInInfo']);
|
||||
obj.TradeInInfo = TradeInInfo.constructFromObject(data['TradeInInfo']);
|
||||
}
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
|
||||
/**
|
||||
* @member {module:model/ByLineInfo} ByLineInfo
|
||||
*/
|
||||
exports.prototype['ByLineInfo'] = undefined;
|
||||
/**
|
||||
* @member {module:model/Classifications} Classifications
|
||||
*/
|
||||
exports.prototype['Classifications'] = undefined;
|
||||
/**
|
||||
* @member {module:model/ContentInfo} ContentInfo
|
||||
*/
|
||||
exports.prototype['ContentInfo'] = undefined;
|
||||
/**
|
||||
* @member {module:model/ContentRating} ContentRating
|
||||
*/
|
||||
exports.prototype['ContentRating'] = undefined;
|
||||
/**
|
||||
* @member {module:model/ExternalIds} ExternalIds
|
||||
*/
|
||||
exports.prototype['ExternalIds'] = undefined;
|
||||
/**
|
||||
* @member {module:model/MultiValuedAttribute} Features
|
||||
*/
|
||||
exports.prototype['Features'] = undefined;
|
||||
/**
|
||||
* @member {module:model/ManufactureInfo} ManufactureInfo
|
||||
*/
|
||||
exports.prototype['ManufactureInfo'] = undefined;
|
||||
/**
|
||||
* @member {module:model/ProductInfo} ProductInfo
|
||||
*/
|
||||
exports.prototype['ProductInfo'] = undefined;
|
||||
/**
|
||||
* @member {module:model/TechnicalInfo} TechnicalInfo
|
||||
*/
|
||||
exports.prototype['TechnicalInfo'] = undefined;
|
||||
/**
|
||||
* @member {module:model/SingleStringValuedAttribute} Title
|
||||
*/
|
||||
exports.prototype['Title'] = undefined;
|
||||
/**
|
||||
* @member {module:model/TradeInInfo} TradeInInfo
|
||||
*/
|
||||
exports.prototype['TradeInInfo'] = undefined;
|
||||
|
||||
|
||||
|
||||
return exports;
|
||||
}));
|
||||
|
||||
|
||||
};
|
||||
|
|
|
|||
|
|
@ -21,45 +21,33 @@
|
|||
*
|
||||
*/
|
||||
|
||||
(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.
|
||||
* @module model/ManufactureInfo
|
||||
* @version 1.0.0
|
||||
*/
|
||||
|
||||
import { SingleStringValuedAttribute } from "./SingleStringValuedAttribute";
|
||||
|
||||
/**
|
||||
* Constructs a new <code>ManufactureInfo</code>.
|
||||
* @alias module:model/ManufactureInfo
|
||||
* @class
|
||||
*/
|
||||
export class ManufactureInfo {
|
||||
/**
|
||||
* The ManufactureInfo model module.
|
||||
* @module model/ManufactureInfo
|
||||
* @version 1.0.0
|
||||
* @member {module:model/SingleStringValuedAttribute} ItemPartNumber
|
||||
*/
|
||||
|
||||
public ItemPartNumber?: SingleStringValuedAttribute;
|
||||
/**
|
||||
* Constructs a new <code>ManufactureInfo</code>.
|
||||
* @alias module:model/ManufactureInfo
|
||||
* @class
|
||||
* @member {module:model/SingleStringValuedAttribute} Model
|
||||
*/
|
||||
var exports = function() {
|
||||
var _this = this;
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
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.
|
||||
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
||||
|
|
@ -67,39 +55,20 @@
|
|||
* @param {module:model/ManufactureInfo} obj Optional instance to populate.
|
||||
* @return {module:model/ManufactureInfo} The populated <code>ManufactureInfo</code> instance.
|
||||
*/
|
||||
exports.constructFromObject = function(data, obj) {
|
||||
public static constructFromObject(data: any, obj?: ManufactureInfo) {
|
||||
if (data) {
|
||||
obj = obj || new exports();
|
||||
obj = obj || new ManufactureInfo();
|
||||
|
||||
if (data.hasOwnProperty('ItemPartNumber')) {
|
||||
obj['ItemPartNumber'] = SingleStringValuedAttribute.constructFromObject(data['ItemPartNumber']);
|
||||
obj.ItemPartNumber = SingleStringValuedAttribute.constructFromObject(data['ItemPartNumber']);
|
||||
}
|
||||
if (data.hasOwnProperty('Model')) {
|
||||
obj['Model'] = SingleStringValuedAttribute.constructFromObject(data['Model']);
|
||||
obj.Model = SingleStringValuedAttribute.constructFromObject(data['Model']);
|
||||
}
|
||||
if (data.hasOwnProperty('Warranty')) {
|
||||
obj['Warranty'] = SingleStringValuedAttribute.constructFromObject(data['Warranty']);
|
||||
obj.Warranty = SingleStringValuedAttribute.constructFromObject(data['Warranty']);
|
||||
}
|
||||
}
|
||||
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;
|
||||
}));
|
||||
|
||||
|
||||
};
|
||||
|
|
|
|||
|
|
@ -21,47 +21,46 @@
|
|||
*
|
||||
*/
|
||||
|
||||
(function(root, factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
// AMD. Register as an anonymous module.
|
||||
define(['ApiClient', 'model/OfferConditionNote', 'model/OfferSubCondition'], factory);
|
||||
} else if (typeof module === 'object' && module.exports) {
|
||||
// CommonJS-like environments that support module.exports, like Node.
|
||||
module.exports = factory(require('../ApiClient'), require('./OfferConditionNote'), require('./OfferSubCondition'));
|
||||
} else {
|
||||
// Browser globals (root is window)
|
||||
if (!root.ProductAdvertisingAPIv1) {
|
||||
root.ProductAdvertisingAPIv1 = {};
|
||||
}
|
||||
root.ProductAdvertisingAPIv1.OfferCondition = factory(root.ProductAdvertisingAPIv1.ApiClient, root.ProductAdvertisingAPIv1.OfferConditionNote, root.ProductAdvertisingAPIv1.OfferSubCondition);
|
||||
}
|
||||
}(this, function(ApiClient, OfferConditionNote, OfferSubCondition) {
|
||||
'use strict';
|
||||
|
||||
|
||||
/**
|
||||
* The OfferCondition model module.
|
||||
* @module model/OfferCondition
|
||||
* @version 1.0.0
|
||||
*/
|
||||
|
||||
import { ApiClient } from "../ApiClient";
|
||||
import { OfferConditionNote } from "./OfferConditionNote";
|
||||
import { OfferSubCondition } from "./OfferSubCondition";
|
||||
|
||||
/**
|
||||
* Constructs a new <code>OfferCondition</code>.
|
||||
* @alias module:model/OfferCondition
|
||||
* @class
|
||||
*/
|
||||
export class OfferCondition {
|
||||
/**
|
||||
* The OfferCondition model module.
|
||||
* @module model/OfferCondition
|
||||
* @version 1.0.0
|
||||
* @member {String} DisplayValue
|
||||
*/
|
||||
|
||||
public DisplayValue?: string;
|
||||
/**
|
||||
* Constructs a new <code>OfferCondition</code>.
|
||||
* @alias module:model/OfferCondition
|
||||
* @class
|
||||
* @member {String} Label
|
||||
*/
|
||||
var exports = function() {
|
||||
var _this = this;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
public Label?: string;
|
||||
/**
|
||||
* @member {String} Locale
|
||||
*/
|
||||
public Locale?: string;
|
||||
/**
|
||||
* @member {String} Value
|
||||
*/
|
||||
public Value?: string;
|
||||
/**
|
||||
* @member {module:model/OfferSubCondition} SubCondition
|
||||
*/
|
||||
public SubCondition?: OfferSubCondition;
|
||||
/**
|
||||
* @member {module:model/OfferConditionNote} ConditionNote
|
||||
*/
|
||||
public ConditionNote?: OfferConditionNote;
|
||||
|
||||
/**
|
||||
* Constructs a <code>OfferCondition</code> from a plain JavaScript object, optionally creating a new instance.
|
||||
|
|
@ -70,60 +69,29 @@
|
|||
* @param {module:model/OfferCondition} obj Optional instance to populate.
|
||||
* @return {module:model/OfferCondition} The populated <code>OfferCondition</code> instance.
|
||||
*/
|
||||
exports.constructFromObject = function(data, obj) {
|
||||
public static constructFromObject(data: any, obj?: OfferCondition) {
|
||||
if (data) {
|
||||
obj = obj || new exports();
|
||||
obj = obj || new OfferCondition();
|
||||
|
||||
if (data.hasOwnProperty('DisplayValue')) {
|
||||
obj['DisplayValue'] = ApiClient.convertToType(data['DisplayValue'], 'String');
|
||||
obj.DisplayValue = ApiClient.convertToType(data['DisplayValue'], 'String');
|
||||
}
|
||||
if (data.hasOwnProperty('Label')) {
|
||||
obj['Label'] = ApiClient.convertToType(data['Label'], 'String');
|
||||
obj.Label = ApiClient.convertToType(data['Label'], 'String');
|
||||
}
|
||||
if (data.hasOwnProperty('Locale')) {
|
||||
obj['Locale'] = ApiClient.convertToType(data['Locale'], 'String');
|
||||
obj.Locale = ApiClient.convertToType(data['Locale'], 'String');
|
||||
}
|
||||
if (data.hasOwnProperty('Value')) {
|
||||
obj['Value'] = ApiClient.convertToType(data['Value'], 'String');
|
||||
obj.Value = ApiClient.convertToType(data['Value'], 'String');
|
||||
}
|
||||
if (data.hasOwnProperty('SubCondition')) {
|
||||
obj['SubCondition'] = OfferSubCondition.constructFromObject(data['SubCondition']);
|
||||
obj.SubCondition = OfferSubCondition.constructFromObject(data['SubCondition']);
|
||||
}
|
||||
if (data.hasOwnProperty('ConditionNote')) {
|
||||
obj['ConditionNote'] = OfferConditionNote.constructFromObject(data['ConditionNote']);
|
||||
obj.ConditionNote = OfferConditionNote.constructFromObject(data['ConditionNote']);
|
||||
}
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
|
||||
/**
|
||||
* @member {String} DisplayValue
|
||||
*/
|
||||
exports.prototype['DisplayValue'] = undefined;
|
||||
/**
|
||||
* @member {String} Label
|
||||
*/
|
||||
exports.prototype['Label'] = undefined;
|
||||
/**
|
||||
* @member {String} Locale
|
||||
*/
|
||||
exports.prototype['Locale'] = undefined;
|
||||
/**
|
||||
* @member {String} Value
|
||||
*/
|
||||
exports.prototype['Value'] = undefined;
|
||||
/**
|
||||
* @member {module:model/OfferSubCondition} SubCondition
|
||||
*/
|
||||
exports.prototype['SubCondition'] = undefined;
|
||||
/**
|
||||
* @member {module:model/OfferConditionNote} ConditionNote
|
||||
*/
|
||||
exports.prototype['ConditionNote'] = undefined;
|
||||
|
||||
|
||||
|
||||
return exports;
|
||||
}));
|
||||
|
||||
|
||||
};
|
||||
|
|
|
|||
|
|
@ -21,45 +21,36 @@
|
|||
*
|
||||
*/
|
||||
|
||||
(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.ProductAdvertisingAPIv1) {
|
||||
root.ProductAdvertisingAPIv1 = {};
|
||||
}
|
||||
root.ProductAdvertisingAPIv1.OfferSubCondition = factory(root.ProductAdvertisingAPIv1.ApiClient);
|
||||
}
|
||||
}(this, function(ApiClient) {
|
||||
'use strict';
|
||||
|
||||
|
||||
/**
|
||||
* The OfferSubCondition model module.
|
||||
* @module model/OfferSubCondition
|
||||
* @version 1.0.0
|
||||
*/
|
||||
|
||||
import { ApiClient } from "../ApiClient";
|
||||
|
||||
/**
|
||||
* Constructs a new <code>OfferSubCondition</code>.
|
||||
* @alias module:model/OfferSubCondition
|
||||
* @class
|
||||
*/
|
||||
export class OfferSubCondition {
|
||||
/**
|
||||
* The OfferSubCondition model module.
|
||||
* @module model/OfferSubCondition
|
||||
* @version 1.0.0
|
||||
* @member {String} DisplayValue
|
||||
*/
|
||||
|
||||
public DisplayValue?: string;
|
||||
/**
|
||||
* Constructs a new <code>OfferSubCondition</code>.
|
||||
* @alias module:model/OfferSubCondition
|
||||
* @class
|
||||
* @member {String} Label
|
||||
*/
|
||||
var exports = function() {
|
||||
var _this = this;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
public Label?: string;
|
||||
/**
|
||||
* @member {String} Locale
|
||||
*/
|
||||
public Locale?: string;
|
||||
/**
|
||||
* @member {String} Value
|
||||
*/
|
||||
public Value?: string;
|
||||
|
||||
/**
|
||||
* Constructs a <code>OfferSubCondition</code> from a plain JavaScript object, optionally creating a new instance.
|
||||
|
|
@ -68,46 +59,23 @@
|
|||
* @param {module:model/OfferSubCondition} obj Optional instance to populate.
|
||||
* @return {module:model/OfferSubCondition} The populated <code>OfferSubCondition</code> instance.
|
||||
*/
|
||||
exports.constructFromObject = function(data, obj) {
|
||||
public static constructFromObject(data: any, obj?: OfferSubCondition) {
|
||||
if (data) {
|
||||
obj = obj || new exports();
|
||||
obj = obj || new OfferSubCondition();
|
||||
|
||||
if (data.hasOwnProperty('DisplayValue')) {
|
||||
obj['DisplayValue'] = ApiClient.convertToType(data['DisplayValue'], 'String');
|
||||
obj.DisplayValue = ApiClient.convertToType(data['DisplayValue'], 'String');
|
||||
}
|
||||
if (data.hasOwnProperty('Label')) {
|
||||
obj['Label'] = ApiClient.convertToType(data['Label'], 'String');
|
||||
obj.Label = ApiClient.convertToType(data['Label'], 'String');
|
||||
}
|
||||
if (data.hasOwnProperty('Locale')) {
|
||||
obj['Locale'] = ApiClient.convertToType(data['Locale'], 'String');
|
||||
obj.Locale = ApiClient.convertToType(data['Locale'], 'String');
|
||||
}
|
||||
if (data.hasOwnProperty('Value')) {
|
||||
obj['Value'] = ApiClient.convertToType(data['Value'], 'String');
|
||||
obj.Value = ApiClient.convertToType(data['Value'], 'String');
|
||||
}
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
|
||||
/**
|
||||
* @member {String} DisplayValue
|
||||
*/
|
||||
exports.prototype['DisplayValue'] = undefined;
|
||||
/**
|
||||
* @member {String} Label
|
||||
*/
|
||||
exports.prototype['Label'] = undefined;
|
||||
/**
|
||||
* @member {String} Locale
|
||||
*/
|
||||
exports.prototype['Locale'] = undefined;
|
||||
/**
|
||||
* @member {String} Value
|
||||
*/
|
||||
exports.prototype['Value'] = undefined;
|
||||
|
||||
|
||||
|
||||
return exports;
|
||||
}));
|
||||
|
||||
|
||||
};
|
||||
|
|
|
|||
|
|
@ -21,45 +21,38 @@
|
|||
*
|
||||
*/
|
||||
|
||||
(function(root, factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
// AMD. Register as an anonymous module.
|
||||
define(['ApiClient', 'model/OfferCondition', 'model/OfferPrice'], factory);
|
||||
} else if (typeof module === 'object' && module.exports) {
|
||||
// CommonJS-like environments that support module.exports, like Node.
|
||||
module.exports = factory(require('../ApiClient'), require('./OfferCondition'), require('./OfferPrice'));
|
||||
} else {
|
||||
// Browser globals (root is window)
|
||||
if (!root.ProductAdvertisingAPIv1) {
|
||||
root.ProductAdvertisingAPIv1 = {};
|
||||
}
|
||||
root.ProductAdvertisingAPIv1.OfferSummary = factory(root.ProductAdvertisingAPIv1.ApiClient, root.ProductAdvertisingAPIv1.OfferCondition, root.ProductAdvertisingAPIv1.OfferPrice);
|
||||
}
|
||||
}(this, function(ApiClient, OfferCondition, OfferPrice) {
|
||||
'use strict';
|
||||
|
||||
|
||||
/**
|
||||
* The OfferSummary model module.
|
||||
* @module model/OfferSummary
|
||||
* @version 1.0.0
|
||||
*/
|
||||
|
||||
import { ApiClient } from "../ApiClient";
|
||||
import { OfferCondition } from "./OfferCondition";
|
||||
import { OfferPrice } from "./OfferPrice";
|
||||
|
||||
/**
|
||||
* Constructs a new <code>OfferSummary</code>.
|
||||
* @alias module:model/OfferSummary
|
||||
* @class
|
||||
*/
|
||||
export class OfferSummary {
|
||||
/**
|
||||
* The OfferSummary model module.
|
||||
* @module model/OfferSummary
|
||||
* @version 1.0.0
|
||||
* @member {module:model/OfferCondition} Condition
|
||||
*/
|
||||
|
||||
public Condition?: OfferCondition;
|
||||
/**
|
||||
* Constructs a new <code>OfferSummary</code>.
|
||||
* @alias module:model/OfferSummary
|
||||
* @class
|
||||
* @member {module:model/OfferPrice} HighestPrice
|
||||
*/
|
||||
var exports = function() {
|
||||
var _this = this;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
public HighestPrice?: OfferPrice;
|
||||
/**
|
||||
* @member {module:model/OfferPrice} LowestPrice
|
||||
*/
|
||||
public LowestPrice?: OfferPrice;
|
||||
/**
|
||||
* @member {Number} OfferCount
|
||||
*/
|
||||
public OfferCount?: number;
|
||||
|
||||
/**
|
||||
* Constructs a <code>OfferSummary</code> from a plain JavaScript object, optionally creating a new instance.
|
||||
|
|
@ -68,46 +61,23 @@
|
|||
* @param {module:model/OfferSummary} obj Optional instance to populate.
|
||||
* @return {module:model/OfferSummary} The populated <code>OfferSummary</code> instance.
|
||||
*/
|
||||
exports.constructFromObject = function(data, obj) {
|
||||
public static constructFromObject(data: any, obj?: OfferSummary) {
|
||||
if (data) {
|
||||
obj = obj || new exports();
|
||||
obj = obj || new OfferSummary();
|
||||
|
||||
if (data.hasOwnProperty('Condition')) {
|
||||
obj['Condition'] = OfferCondition.constructFromObject(data['Condition']);
|
||||
obj.Condition = OfferCondition.constructFromObject(data['Condition']);
|
||||
}
|
||||
if (data.hasOwnProperty('HighestPrice')) {
|
||||
obj['HighestPrice'] = OfferPrice.constructFromObject(data['HighestPrice']);
|
||||
obj.HighestPrice = OfferPrice.constructFromObject(data['HighestPrice']);
|
||||
}
|
||||
if (data.hasOwnProperty('LowestPrice')) {
|
||||
obj['LowestPrice'] = OfferPrice.constructFromObject(data['LowestPrice']);
|
||||
obj.LowestPrice = OfferPrice.constructFromObject(data['LowestPrice']);
|
||||
}
|
||||
if (data.hasOwnProperty('OfferCount')) {
|
||||
obj['OfferCount'] = ApiClient.convertToType(data['OfferCount'], 'Number');
|
||||
obj.OfferCount = ApiClient.convertToType(data['OfferCount'], 'Number');
|
||||
}
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
|
||||
/**
|
||||
* @member {module:model/OfferCondition} Condition
|
||||
*/
|
||||
exports.prototype['Condition'] = undefined;
|
||||
/**
|
||||
* @member {module:model/OfferPrice} HighestPrice
|
||||
*/
|
||||
exports.prototype['HighestPrice'] = undefined;
|
||||
/**
|
||||
* @member {module:model/OfferPrice} LowestPrice
|
||||
*/
|
||||
exports.prototype['LowestPrice'] = undefined;
|
||||
/**
|
||||
* @member {Number} OfferCount
|
||||
*/
|
||||
exports.prototype['OfferCount'] = undefined;
|
||||
|
||||
|
||||
|
||||
return exports;
|
||||
}));
|
||||
|
||||
|
||||
};
|
||||
|
|
|
|||
|
|
@ -21,43 +21,29 @@
|
|||
*
|
||||
*/
|
||||
|
||||
(function(root, factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
// AMD. Register as an anonymous module.
|
||||
define(['ApiClient', 'model/MultiValuedAttribute', '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('./MultiValuedAttribute'), require('./SingleStringValuedAttribute'));
|
||||
} else {
|
||||
// Browser globals (root is window)
|
||||
if (!root.ProductAdvertisingAPIv1) {
|
||||
root.ProductAdvertisingAPIv1 = {};
|
||||
}
|
||||
root.ProductAdvertisingAPIv1.TechnicalInfo = factory(root.ProductAdvertisingAPIv1.ApiClient, root.ProductAdvertisingAPIv1.MultiValuedAttribute, root.ProductAdvertisingAPIv1.SingleStringValuedAttribute);
|
||||
}
|
||||
}(this, function(ApiClient, MultiValuedAttribute, SingleStringValuedAttribute) {
|
||||
'use strict';
|
||||
|
||||
|
||||
/**
|
||||
* The TechnicalInfo model module.
|
||||
* @module model/TechnicalInfo
|
||||
* @version 1.0.0
|
||||
*/
|
||||
|
||||
import { MultiValuedAttribute } from "./MultiValuedAttribute";
|
||||
import { SingleStringValuedAttribute } from "./SingleStringValuedAttribute";
|
||||
|
||||
/**
|
||||
* Constructs a new <code>TechnicalInfo</code>.
|
||||
* @alias module:model/TechnicalInfo
|
||||
* @class
|
||||
*/
|
||||
export class TechnicalInfo {
|
||||
/**
|
||||
* The TechnicalInfo model module.
|
||||
* @module model/TechnicalInfo
|
||||
* @version 1.0.0
|
||||
* @member {module:model/SingleStringValuedAttribute} EnergyEfficiencyClass
|
||||
*/
|
||||
|
||||
public EnergyEfficiencyClass?: SingleStringValuedAttribute;
|
||||
/**
|
||||
* Constructs a new <code>TechnicalInfo</code>.
|
||||
* @alias module:model/TechnicalInfo
|
||||
* @class
|
||||
* @member {module:model/MultiValuedAttribute} Formats
|
||||
*/
|
||||
var exports = function() {
|
||||
var _this = this;
|
||||
|
||||
|
||||
|
||||
};
|
||||
public Formats?: MultiValuedAttribute;
|
||||
|
||||
/**
|
||||
* Constructs a <code>TechnicalInfo</code> from a plain JavaScript object, optionally creating a new instance.
|
||||
|
|
@ -66,32 +52,17 @@
|
|||
* @param {module:model/TechnicalInfo} obj Optional instance to populate.
|
||||
* @return {module:model/TechnicalInfo} The populated <code>TechnicalInfo</code> instance.
|
||||
*/
|
||||
exports.constructFromObject = function(data, obj) {
|
||||
public static constructFromObject(data: any, obj?: TechnicalInfo) {
|
||||
if (data) {
|
||||
obj = obj || new exports();
|
||||
obj = obj || new TechnicalInfo();
|
||||
|
||||
if (data.hasOwnProperty('EnergyEfficiencyClass')) {
|
||||
obj['EnergyEfficiencyClass'] = SingleStringValuedAttribute.constructFromObject(data['EnergyEfficiencyClass']);
|
||||
obj.EnergyEfficiencyClass = SingleStringValuedAttribute.constructFromObject(data['EnergyEfficiencyClass']);
|
||||
}
|
||||
if (data.hasOwnProperty('Formats')) {
|
||||
obj['Formats'] = MultiValuedAttribute.constructFromObject(data['Formats']);
|
||||
obj.Formats = MultiValuedAttribute.constructFromObject(data['Formats']);
|
||||
}
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
|
||||
/**
|
||||
* @member {module:model/SingleStringValuedAttribute} EnergyEfficiencyClass
|
||||
*/
|
||||
exports.prototype['EnergyEfficiencyClass'] = undefined;
|
||||
/**
|
||||
* @member {module:model/MultiValuedAttribute} Formats
|
||||
*/
|
||||
exports.prototype['Formats'] = undefined;
|
||||
|
||||
|
||||
|
||||
return exports;
|
||||
}));
|
||||
|
||||
|
||||
};
|
||||
|
|
|
|||
|
|
@ -21,43 +21,29 @@
|
|||
*
|
||||
*/
|
||||
|
||||
(function(root, factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
// AMD. Register as an anonymous module.
|
||||
define(['ApiClient', 'model/TradeInPrice'], factory);
|
||||
} else if (typeof module === 'object' && module.exports) {
|
||||
// CommonJS-like environments that support module.exports, like Node.
|
||||
module.exports = factory(require('../ApiClient'), require('./TradeInPrice'));
|
||||
} else {
|
||||
// Browser globals (root is window)
|
||||
if (!root.ProductAdvertisingAPIv1) {
|
||||
root.ProductAdvertisingAPIv1 = {};
|
||||
}
|
||||
root.ProductAdvertisingAPIv1.TradeInInfo = factory(root.ProductAdvertisingAPIv1.ApiClient, root.ProductAdvertisingAPIv1.TradeInPrice);
|
||||
}
|
||||
}(this, function(ApiClient, TradeInPrice) {
|
||||
'use strict';
|
||||
|
||||
|
||||
/**
|
||||
* The TradeInInfo model module.
|
||||
* @module model/TradeInInfo
|
||||
* @version 1.0.0
|
||||
*/
|
||||
|
||||
import { ApiClient } from "../ApiClient";
|
||||
import { TradeInPrice } from "./TradeInPrice";
|
||||
|
||||
/**
|
||||
* Constructs a new <code>TradeInInfo</code>.
|
||||
* @alias module:model/TradeInInfo
|
||||
* @class
|
||||
*/
|
||||
export class TradeInInfo {
|
||||
/**
|
||||
* The TradeInInfo model module.
|
||||
* @module model/TradeInInfo
|
||||
* @version 1.0.0
|
||||
* @member {Boolean} IsEligibleForTradeIn
|
||||
*/
|
||||
|
||||
public IsEligibleForTradeIn?: boolean;
|
||||
/**
|
||||
* Constructs a new <code>TradeInInfo</code>.
|
||||
* @alias module:model/TradeInInfo
|
||||
* @class
|
||||
* @member {module:model/TradeInPrice} Price
|
||||
*/
|
||||
var exports = function() {
|
||||
var _this = this;
|
||||
|
||||
|
||||
|
||||
};
|
||||
public Price?: TradeInPrice;
|
||||
|
||||
/**
|
||||
* Constructs a <code>TradeInInfo</code> from a plain JavaScript object, optionally creating a new instance.
|
||||
|
|
@ -66,32 +52,17 @@
|
|||
* @param {module:model/TradeInInfo} obj Optional instance to populate.
|
||||
* @return {module:model/TradeInInfo} The populated <code>TradeInInfo</code> instance.
|
||||
*/
|
||||
exports.constructFromObject = function(data, obj) {
|
||||
public static constructFromObject(data: any, obj?: TradeInInfo) {
|
||||
if (data) {
|
||||
obj = obj || new exports();
|
||||
obj = obj || new TradeInInfo();
|
||||
|
||||
if (data.hasOwnProperty('IsEligibleForTradeIn')) {
|
||||
obj['IsEligibleForTradeIn'] = ApiClient.convertToType(data['IsEligibleForTradeIn'], 'Boolean');
|
||||
obj.IsEligibleForTradeIn = ApiClient.convertToType(data['IsEligibleForTradeIn'], 'Boolean');
|
||||
}
|
||||
if (data.hasOwnProperty('Price')) {
|
||||
obj['Price'] = TradeInPrice.constructFromObject(data['Price']);
|
||||
obj.Price = TradeInPrice.constructFromObject(data['Price']);
|
||||
}
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
|
||||
/**
|
||||
* @member {Boolean} IsEligibleForTradeIn
|
||||
*/
|
||||
exports.prototype['IsEligibleForTradeIn'] = undefined;
|
||||
/**
|
||||
* @member {module:model/TradeInPrice} Price
|
||||
*/
|
||||
exports.prototype['Price'] = undefined;
|
||||
|
||||
|
||||
|
||||
return exports;
|
||||
}));
|
||||
|
||||
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user