Compare commits

..

No commits in common. "836a8d8d6583f5f5f2dfbfee4d554a6ab6d3c683" and "9fda72d3c0be26ce64cb1a00539d826da6dd2533" have entirely different histories.

8 changed files with 278 additions and 129 deletions

View File

@ -56,7 +56,6 @@ import { Languages } from "./model/Languages";
import { LanguageType } from "./model/LanguageType"; import { LanguageType } from "./model/LanguageType";
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 { MultiValuedAttribute } from "./model/MultiValuedAttribute"; import { MultiValuedAttribute } from "./model/MultiValuedAttribute";
import { OfferCount } from "./model/OfferCount"; import { OfferCount } from "./model/OfferCount";
import { OfferPrice } from "./model/OfferPrice"; import { OfferPrice } from "./model/OfferPrice";
@ -64,9 +63,6 @@ import { OfferSavings } from "./model/OfferSavings";
import { PartnerType } from "./model/PartnerType"; import { PartnerType } from "./model/PartnerType";
import { Price } from "./model/Price"; import { Price } from "./model/Price";
import { PriceType } from "./model/PriceType"; import { PriceType } from "./model/PriceType";
import { ProductAdvertisingAPIClientException } from "./model/ProductAdvertisingAPIClientException";
import { ProductAdvertisingAPIServiceException } from "./model/ProductAdvertisingAPIServiceException";
import { ProductInfo } from "./model/ProductInfo";
import { Properties } from "./model/Properties"; import { Properties } from "./model/Properties";
import { Rating } from "./model/Rating"; import { Rating } from "./model/Rating";
import { Refinement } from "./model/Refinement"; import { Refinement } from "./model/Refinement";
@ -75,7 +71,6 @@ import { SearchRefinements } from "./model/SearchRefinements";
import { SingleBooleanValuedAttribute } from "./model/SingleBooleanValuedAttribute"; import { SingleBooleanValuedAttribute } from "./model/SingleBooleanValuedAttribute";
import { SingleIntegerValuedAttribute } from "./model/SingleIntegerValuedAttribute"; import { SingleIntegerValuedAttribute } from "./model/SingleIntegerValuedAttribute";
import { SingleStringValuedAttribute } from "./model/SingleStringValuedAttribute"; import { SingleStringValuedAttribute } from "./model/SingleStringValuedAttribute";
import { TradeInPrice } from "./model/TradeInPrice";
import { UnitBasedAttribute } from "./model/UnitBasedAttribute"; import { UnitBasedAttribute } from "./model/UnitBasedAttribute";
import { VariationDimension } from "./model/VariationDimension"; import { VariationDimension } from "./model/VariationDimension";
import { VariationSummary } from "./model/VariationSummary"; import { VariationSummary } from "./model/VariationSummary";

View File

@ -40,5 +40,7 @@ export class MaxPrice {
* @param {module:model/MaxPrice} obj Optional instance to populate. * @param {module:model/MaxPrice} obj Optional instance to populate.
* @return {module:model/MaxPrice} The populated <code>MaxPrice</code> instance. * @return {module:model/MaxPrice} The populated <code>MaxPrice</code> instance.
*/ */
public static constructFromObject(data: any, _obj?: any) { return data; } public static constructFromObject(data: any, _obj?: any) {
return data;
}
}; };

View File

@ -21,18 +21,42 @@
* *
*/ */
/** (function(root, factory) {
* The MinPrice model module. if (typeof define === 'function' && define.amd) {
* @module model/MinPrice // AMD. Register as an anonymous module.
* @version 1.0.0 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.MinPrice = factory(root.ProductAdvertisingAPIv1.ApiClient);
}
}(this, function(ApiClient) {
'use strict';
/**
* The MinPrice model module.
* @module model/MinPrice
* @version 1.0.0
*/
/**
* Constructs a new <code>MinPrice</code>.
* @alias module:model/MinPrice
* @class
*/
var exports = function() {
var _this = this;
};
/**
* Constructs a new <code>MinPrice</code>.
* @alias module:model/MinPrice
* @class
*/
export class MinPrice {
/** /**
* Constructs a <code>MinPrice</code> from a plain JavaScript object, optionally creating a new instance. * Constructs a <code>MinPrice</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. * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
@ -40,5 +64,14 @@ export class MinPrice {
* @param {module:model/MinPrice} obj Optional instance to populate. * @param {module:model/MinPrice} obj Optional instance to populate.
* @return {module:model/MinPrice} The populated <code>MinPrice</code> instance. * @return {module:model/MinPrice} The populated <code>MinPrice</code> instance.
*/ */
public static constructFromObject(data: any, _obj?: MinPrice) { return data; } exports.constructFromObject = function(data, obj) {
}; return data;
}
return exports;
}));

View File

@ -21,26 +21,43 @@
* *
*/ */
/** (function(root, factory) {
* The ProductAdvertisingAPIClientException model module. if (typeof define === 'function' && define.amd) {
* @module model/ProductAdvertisingAPIClientException // AMD. Register as an anonymous module.
* @version 1.0.0 define(['ApiClient', 'model/ErrorData'], factory);
*/ } else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
module.exports = factory(require('../ApiClient'), require('./ErrorData'));
} else {
// Browser globals (root is window)
if (!root.ProductAdvertisingAPIv1) {
root.ProductAdvertisingAPIv1 = {};
}
root.ProductAdvertisingAPIv1.ProductAdvertisingAPIClientException = factory(root.ProductAdvertisingAPIv1.ApiClient, root.ProductAdvertisingAPIv1.ErrorData);
}
}(this, function(ApiClient, ErrorData) {
'use strict';
import { ApiClient } from "../ApiClient";
import { ErrorData } from "./ErrorData";
/**
* Constructs a new <code>ProductAdvertisingAPIClientException</code>.
* @alias module:model/ProductAdvertisingAPIClientException
* @class
*/
export class ProductAdvertisingAPIClientException {
/** /**
* @member {Array.<module:model/ErrorData>} Errors * The ProductAdvertisingAPIClientException model module.
* @module model/ProductAdvertisingAPIClientException
* @version 1.0.0
*/ */
public Errors?: ErrorData[];
/**
* Constructs a new <code>ProductAdvertisingAPIClientException</code>.
* @alias module:model/ProductAdvertisingAPIClientException
* @class
*/
var exports = function() {
var _this = this;
};
/** /**
* Constructs a <code>ProductAdvertisingAPIClientException</code> from a plain JavaScript object, optionally creating a new instance. * Constructs a <code>ProductAdvertisingAPIClientException</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. * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
@ -48,14 +65,25 @@ export class ProductAdvertisingAPIClientException {
* @param {module:model/ProductAdvertisingAPIClientException} obj Optional instance to populate. * @param {module:model/ProductAdvertisingAPIClientException} obj Optional instance to populate.
* @return {module:model/ProductAdvertisingAPIClientException} The populated <code>ProductAdvertisingAPIClientException</code> instance. * @return {module:model/ProductAdvertisingAPIClientException} The populated <code>ProductAdvertisingAPIClientException</code> instance.
*/ */
public static constructFromObject(data: any, obj?: ProductAdvertisingAPIClientException) { exports.constructFromObject = function(data, obj) {
if (data) { if (data) {
obj = obj || new ProductAdvertisingAPIClientException(); obj = obj || new exports();
if (data.hasOwnProperty('Errors')) { if (data.hasOwnProperty('Errors')) {
obj.Errors = ApiClient.convertToType(data['Errors'], [ErrorData]); obj['Errors'] = ApiClient.convertToType(data['Errors'], [ErrorData]);
} }
} }
return obj; return obj;
} }
};
/**
* @member {Array.<module:model/ErrorData>} Errors
*/
exports.prototype['Errors'] = undefined;
return exports;
}));

View File

@ -21,24 +21,42 @@
* *
*/ */
/** (function(root, factory) {
* The ProductAdvertisingAPIServiceException model module. if (typeof define === 'function' && define.amd) {
* @module model/ProductAdvertisingAPIServiceException // AMD. Register as an anonymous module.
* @version 1.0.0 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.ProductAdvertisingAPIServiceException = factory(root.ProductAdvertisingAPIv1.ApiClient);
}
}(this, function(ApiClient) {
'use strict';
import { ApiClient } from "../ApiClient";
/**
* Constructs a new <code>ProductAdvertisingAPIServiceException</code>.
* @alias module:model/ProductAdvertisingAPIServiceException
* @class
*/
export class ProductAdvertisingAPIServiceException {
/** /**
* @member {String} message * The ProductAdvertisingAPIServiceException model module.
* @module model/ProductAdvertisingAPIServiceException
* @version 1.0.0
*/ */
public message?: string;
/**
* Constructs a new <code>ProductAdvertisingAPIServiceException</code>.
* @alias module:model/ProductAdvertisingAPIServiceException
* @class
*/
var exports = function() {
var _this = this;
};
/** /**
* Constructs a <code>ProductAdvertisingAPIServiceException</code> from a plain JavaScript object, optionally creating a new instance. * Constructs a <code>ProductAdvertisingAPIServiceException</code> from a plain JavaScript object, optionally creating a new instance.
@ -47,14 +65,25 @@ export class ProductAdvertisingAPIServiceException {
* @param {module:model/ProductAdvertisingAPIServiceException} obj Optional instance to populate. * @param {module:model/ProductAdvertisingAPIServiceException} obj Optional instance to populate.
* @return {module:model/ProductAdvertisingAPIServiceException} The populated <code>ProductAdvertisingAPIServiceException</code> instance. * @return {module:model/ProductAdvertisingAPIServiceException} The populated <code>ProductAdvertisingAPIServiceException</code> instance.
*/ */
public static constructFromObject(data: any, obj?: ProductAdvertisingAPIServiceException) { exports.constructFromObject = function(data, obj) {
if (data) { if (data) {
obj = obj || new ProductAdvertisingAPIServiceException(); obj = obj || new exports();
if (data.hasOwnProperty('message')) { if (data.hasOwnProperty('message')) {
obj.message = ApiClient.convertToType(data['message'], 'String'); obj['message'] = ApiClient.convertToType(data['message'], 'String');
} }
} }
return obj; return obj;
} }
};
/**
* @member {String} message
*/
exports.prototype['message'] = undefined;
return exports;
}));

View File

@ -21,47 +21,47 @@
* *
*/ */
/** (function(root, factory) {
* The ProductInfo model module. if (typeof define === 'function' && define.amd) {
* @module model/ProductInfo // AMD. Register as an anonymous module.
* @version 1.0.0 define(['ApiClient', 'model/DimensionBasedAttribute', 'model/SingleBooleanValuedAttribute', 'model/SingleIntegerValuedAttribute', '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('./DimensionBasedAttribute'), require('./SingleBooleanValuedAttribute'), require('./SingleIntegerValuedAttribute'), require('./SingleStringValuedAttribute'));
} else {
// Browser globals (root is window)
if (!root.ProductAdvertisingAPIv1) {
root.ProductAdvertisingAPIv1 = {};
}
root.ProductAdvertisingAPIv1.ProductInfo = factory(root.ProductAdvertisingAPIv1.ApiClient, root.ProductAdvertisingAPIv1.DimensionBasedAttribute, root.ProductAdvertisingAPIv1.SingleBooleanValuedAttribute, root.ProductAdvertisingAPIv1.SingleIntegerValuedAttribute, root.ProductAdvertisingAPIv1.SingleStringValuedAttribute);
}
}(this, function(ApiClient, DimensionBasedAttribute, SingleBooleanValuedAttribute, SingleIntegerValuedAttribute, SingleStringValuedAttribute) {
'use strict';
import { DimensionBasedAttribute } from "./DimensionBasedAttribute";
import { SingleBooleanValuedAttribute } from "./SingleBooleanValuedAttribute";
import { SingleIntegerValuedAttribute } from "./SingleIntegerValuedAttribute";
import { SingleStringValuedAttribute } from "./SingleStringValuedAttribute";
/**
* Constructs a new <code>ProductInfo</code>.
* @alias module:model/ProductInfo
* @class
*/
export class ProductInfo {
/** /**
* @member {module:model/SingleStringValuedAttribute} Color * The ProductInfo model module.
* @module model/ProductInfo
* @version 1.0.0
*/ */
public Color?: SingleStringValuedAttribute
/** /**
* @member {module:model/SingleBooleanValuedAttribute} IsAdultProduct * Constructs a new <code>ProductInfo</code>.
* @alias module:model/ProductInfo
* @class
*/ */
public IsAdultProduct?: SingleBooleanValuedAttribute; var exports = function() {
/** var _this = this;
* @member {module:model/DimensionBasedAttribute} ItemDimensions
*/
public ItemDimensions?: DimensionBasedAttribute;
/**
* @member {module:model/SingleStringValuedAttribute} ReleaseDate
*/
public ReleaseDate?: SingleStringValuedAttribute;
/** };
* @member {module:model/SingleStringValuedAttribute} Size
*/
public Size?: SingleStringValuedAttribute;
/**
* @member {module:model/SingleIntegerValuedAttribute} UnitCount
*/
public UnitCount?: SingleIntegerValuedAttribute
/** /**
* Constructs a <code>ProductInfo</code> from a plain JavaScript object, optionally creating a new instance. * Constructs a <code>ProductInfo</code> from a plain JavaScript object, optionally creating a new instance.
@ -70,29 +70,60 @@ export class ProductInfo {
* @param {module:model/ProductInfo} obj Optional instance to populate. * @param {module:model/ProductInfo} obj Optional instance to populate.
* @return {module:model/ProductInfo} The populated <code>ProductInfo</code> instance. * @return {module:model/ProductInfo} The populated <code>ProductInfo</code> instance.
*/ */
public static constructFromObject(data: any, obj?: ProductInfo) { exports.constructFromObject = function(data, obj) {
if (data) { if (data) {
obj = obj || new ProductInfo(); obj = obj || new exports();
if (data.hasOwnProperty('Color')) { if (data.hasOwnProperty('Color')) {
obj.Color = SingleStringValuedAttribute.constructFromObject(data['Color']); obj['Color'] = SingleStringValuedAttribute.constructFromObject(data['Color']);
} }
if (data.hasOwnProperty('IsAdultProduct')) { if (data.hasOwnProperty('IsAdultProduct')) {
obj.IsAdultProduct = SingleBooleanValuedAttribute.constructFromObject(data['IsAdultProduct']); obj['IsAdultProduct'] = SingleBooleanValuedAttribute.constructFromObject(data['IsAdultProduct']);
} }
if (data.hasOwnProperty('ItemDimensions')) { if (data.hasOwnProperty('ItemDimensions')) {
obj.ItemDimensions = DimensionBasedAttribute.constructFromObject(data['ItemDimensions']); obj['ItemDimensions'] = DimensionBasedAttribute.constructFromObject(data['ItemDimensions']);
} }
if (data.hasOwnProperty('ReleaseDate')) { if (data.hasOwnProperty('ReleaseDate')) {
obj.ReleaseDate = SingleStringValuedAttribute.constructFromObject(data['ReleaseDate']); obj['ReleaseDate'] = SingleStringValuedAttribute.constructFromObject(data['ReleaseDate']);
} }
if (data.hasOwnProperty('Size')) { if (data.hasOwnProperty('Size')) {
obj.Size = SingleStringValuedAttribute.constructFromObject(data['Size']); obj['Size'] = SingleStringValuedAttribute.constructFromObject(data['Size']);
} }
if (data.hasOwnProperty('UnitCount')) { if (data.hasOwnProperty('UnitCount')) {
obj.UnitCount = SingleIntegerValuedAttribute.constructFromObject(data['UnitCount']); obj['UnitCount'] = SingleIntegerValuedAttribute.constructFromObject(data['UnitCount']);
} }
} }
return obj; return obj;
} }
};
/**
* @member {module:model/SingleStringValuedAttribute} Color
*/
exports.prototype['Color'] = undefined;
/**
* @member {module:model/SingleBooleanValuedAttribute} IsAdultProduct
*/
exports.prototype['IsAdultProduct'] = undefined;
/**
* @member {module:model/DimensionBasedAttribute} ItemDimensions
*/
exports.prototype['ItemDimensions'] = undefined;
/**
* @member {module:model/SingleStringValuedAttribute} ReleaseDate
*/
exports.prototype['ReleaseDate'] = undefined;
/**
* @member {module:model/SingleStringValuedAttribute} Size
*/
exports.prototype['Size'] = undefined;
/**
* @member {module:model/SingleIntegerValuedAttribute} UnitCount
*/
exports.prototype['UnitCount'] = undefined;
return exports;
}));

View File

@ -55,7 +55,7 @@ export class SingleBooleanValuedAttribute {
* @param {module:model/SingleBooleanValuedAttribute} obj Optional instance to populate. * @param {module:model/SingleBooleanValuedAttribute} obj Optional instance to populate.
* @return {module:model/SingleBooleanValuedAttribute} The populated <code>SingleBooleanValuedAttribute</code> instance. * @return {module:model/SingleBooleanValuedAttribute} The populated <code>SingleBooleanValuedAttribute</code> instance.
*/ */
public static constructFromObject(data: any, obj?: SingleBooleanValuedAttribute) { public constructFromObject(data: any, obj?: SingleBooleanValuedAttribute) {
if (data) { if (data) {
obj = obj || new SingleBooleanValuedAttribute(); obj = obj || new SingleBooleanValuedAttribute();

View File

@ -21,33 +21,45 @@
* *
*/ */
/** (function(root, factory) {
* The TradeInPrice model module. if (typeof define === 'function' && define.amd) {
* @module model/TradeInPrice // AMD. Register as an anonymous module.
* @version 1.0.0 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.TradeInPrice = factory(root.ProductAdvertisingAPIv1.ApiClient);
}
}(this, function(ApiClient) {
'use strict';
import { ApiClient } from "../ApiClient";
/**
* Constructs a new <code>TradeInPrice</code>.
* @alias module:model/TradeInPrice
* @class
*/
export class TradeInPrice {
/** /**
* @member {Number} Amount * The TradeInPrice model module.
* @module model/TradeInPrice
* @version 1.0.0
*/ */
public Amount?: number;
/** /**
* @member {String} Currency * Constructs a new <code>TradeInPrice</code>.
* @alias module:model/TradeInPrice
* @class
*/ */
public Currency?: string; var exports = function() {
/** var _this = this;
* @member {String} DisplayAmount
*/
public DisplayAmount?: string;
};
/** /**
* Constructs a <code>TradeInPrice</code> from a plain JavaScript object, optionally creating a new instance. * Constructs a <code>TradeInPrice</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. * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
@ -55,20 +67,39 @@ export class TradeInPrice {
* @param {module:model/TradeInPrice} obj Optional instance to populate. * @param {module:model/TradeInPrice} obj Optional instance to populate.
* @return {module:model/TradeInPrice} The populated <code>TradeInPrice</code> instance. * @return {module:model/TradeInPrice} The populated <code>TradeInPrice</code> instance.
*/ */
public static constructFromObject(data: any, obj?: TradeInPrice) { exports.constructFromObject = function(data, obj) {
if (data) { if (data) {
obj = obj || new TradeInPrice(); obj = obj || new exports();
if (data.hasOwnProperty('Amount')) { if (data.hasOwnProperty('Amount')) {
obj.Amount = ApiClient.convertToType(data['Amount'], 'Number'); obj['Amount'] = ApiClient.convertToType(data['Amount'], 'Number');
} }
if (data.hasOwnProperty('Currency')) { if (data.hasOwnProperty('Currency')) {
obj.Currency = ApiClient.convertToType(data['Currency'], 'String'); obj['Currency'] = ApiClient.convertToType(data['Currency'], 'String');
} }
if (data.hasOwnProperty('DisplayAmount')) { if (data.hasOwnProperty('DisplayAmount')) {
obj.DisplayAmount = ApiClient.convertToType(data['DisplayAmount'], 'String'); obj['DisplayAmount'] = ApiClient.convertToType(data['DisplayAmount'], 'String');
} }
} }
return obj; return obj;
} }
};
/**
* @member {Number} Amount
*/
exports.prototype['Amount'] = undefined;
/**
* @member {String} Currency
*/
exports.prototype['Currency'] = undefined;
/**
* @member {String} DisplayAmount
*/
exports.prototype['DisplayAmount'] = undefined;
return exports;
}));