Compare commits

..

No commits in common. "f2a0197648737be65ac0ae4071a04190b32c5e82" and "dedccb86cc829a7c73c500ffe7af3eb8639badd4" have entirely different histories.

7 changed files with 322 additions and 143 deletions

View File

@ -54,7 +54,6 @@ 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 { MaxPrice } from "./model/MaxPrice";
import { Merchant } from "./model/Merchant"; import { Merchant } from "./model/Merchant";
import { MultiValuedAttribute } from "./model/MultiValuedAttribute"; import { MultiValuedAttribute } from "./model/MultiValuedAttribute";
import { OfferCount } from "./model/OfferCount"; import { OfferCount } from "./model/OfferCount";
@ -62,16 +61,11 @@ import { OfferPrice } from "./model/OfferPrice";
import { OfferSavings } from "./model/OfferSavings"; import { OfferSavings } from "./model/OfferSavings";
import { PartnerType } from "./model/PartnerType"; import { PartnerType } from "./model/PartnerType";
import { PriceType } from "./model/PriceType"; import { PriceType } from "./model/PriceType";
import { Properties } from "./model/Properties";
import { Rating } from "./model/Rating"; import { Rating } from "./model/Rating";
import { Refinement } from "./model/Refinement";
import { RefinementBin } from "./model/RefinementBin";
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 { UnitBasedAttribute } from "./model/UnitBasedAttribute"; import { UnitBasedAttribute } from "./model/UnitBasedAttribute";
import { VariationDimension } from "./model/VariationDimension";
import { WebsiteSalesRank } from "./model/WebsiteSalesRank"; import { WebsiteSalesRank } from "./model/WebsiteSalesRank";
/** /**

View File

@ -21,6 +21,26 @@
* *
*/ */
(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.MaxPrice = factory(root.ProductAdvertisingAPIv1.ApiClient);
}
}(this, function(ApiClient) {
'use strict';
/** /**
* The MaxPrice model module. * The MaxPrice model module.
* @module model/MaxPrice * @module model/MaxPrice
@ -32,7 +52,11 @@
* @alias module:model/MaxPrice * @alias module:model/MaxPrice
* @class * @class
*/ */
export class MaxPrice { var exports = function() {
var _this = this;
};
/** /**
* Constructs a <code>MaxPrice</code> from a plain JavaScript object, optionally creating a new instance. * Constructs a <code>MaxPrice</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,7 +64,14 @@ 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) { exports.constructFromObject = function(data, obj) {
return data; return data;
} }
};
return exports;
}));

View File

@ -21,21 +21,44 @@
* *
*/ */
(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.Properties = factory(root.ProductAdvertisingAPIv1.ApiClient);
}
}(this, function(ApiClient) {
'use strict';
/** /**
* The Properties model module. * The Properties model module.
* @module model/Properties * @module model/Properties
* @version 1.0.0 * @version 1.0.0
*/ */
import { ApiClient } from "../ApiClient";
/** /**
* Constructs a new <code>Properties</code>. * Constructs a new <code>Properties</code>.
* @alias module:model/Properties * @alias module:model/Properties
* @class * @class
* @extends Object * @extends Object
*/ */
export class Properties { var exports = function() {
var _this = this;
return _this;
};
/** /**
* Constructs a <code>Properties</code> from a plain JavaScript object, optionally creating a new instance. * Constructs a <code>Properties</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.
@ -43,11 +66,19 @@ export class Properties {
* @param {module:model/Properties} obj Optional instance to populate. * @param {module:model/Properties} obj Optional instance to populate.
* @return {module:model/Properties} The populated <code>Properties</code> instance. * @return {module:model/Properties} The populated <code>Properties</code> instance.
*/ */
public static constructFromObject(data: any, obj?: Properties) { exports.constructFromObject = function(data, obj) {
if (data) { if (data) {
obj = obj || new Properties(); obj = obj || new exports();
ApiClient.constructFromObject(data, obj, 'String'); ApiClient.constructFromObject(data, obj, 'String');
} }
return obj; return obj;
} }
};
return exports;
}));

View File

@ -21,33 +21,44 @@
* *
*/ */
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['ApiClient', 'model/RefinementBin'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
module.exports = factory(require('../ApiClient'), require('./RefinementBin'));
} else {
// Browser globals (root is window)
if (!root.ProductAdvertisingAPIv1) {
root.ProductAdvertisingAPIv1 = {};
}
root.ProductAdvertisingAPIv1.Refinement = factory(root.ProductAdvertisingAPIv1.ApiClient, root.ProductAdvertisingAPIv1.RefinementBin);
}
}(this, function(ApiClient, RefinementBin) {
'use strict';
/** /**
* The Refinement model module. * The Refinement model module.
* @module model/Refinement * @module model/Refinement
* @version 1.0.0 * @version 1.0.0
*/ */
import { ApiClient } from "../ApiClient";
import { RefinementBin } from "./RefinementBin";
/** /**
* Constructs a new <code>Refinement</code>. * Constructs a new <code>Refinement</code>.
* @alias module:model/Refinement * @alias module:model/Refinement
* @class * @class
*/ */
export class Refinement { var exports = function() {
/** var _this = this;
* @member {Array.<module:model/RefinementBin>} Bins
*/
public Bins?: RefinementBin[];
/**
* @member {String} DisplayName };
*/
public DisplayName?: string;
/**
* @member {String} Id
*/
public Id?: string;
/** /**
* Constructs a <code>Refinement</code> from a plain JavaScript object, optionally creating a new instance. * Constructs a <code>Refinement</code> from a plain JavaScript object, optionally creating a new instance.
@ -56,20 +67,39 @@ export class Refinement {
* @param {module:model/Refinement} obj Optional instance to populate. * @param {module:model/Refinement} obj Optional instance to populate.
* @return {module:model/Refinement} The populated <code>Refinement</code> instance. * @return {module:model/Refinement} The populated <code>Refinement</code> instance.
*/ */
public static constructFromObject(data: any, obj?: Refinement) { exports.constructFromObject = function(data, obj) {
if (data) { if (data) {
obj = obj || new Refinement(); obj = obj || new exports();
if (data.hasOwnProperty('Bins')) { if (data.hasOwnProperty('Bins')) {
obj.Bins = ApiClient.convertToType(data['Bins'], [RefinementBin]); obj['Bins'] = ApiClient.convertToType(data['Bins'], [RefinementBin]);
} }
if (data.hasOwnProperty('DisplayName')) { if (data.hasOwnProperty('DisplayName')) {
obj.DisplayName = ApiClient.convertToType(data['DisplayName'], 'String'); obj['DisplayName'] = ApiClient.convertToType(data['DisplayName'], 'String');
} }
if (data.hasOwnProperty('Id')) { if (data.hasOwnProperty('Id')) {
obj.Id = ApiClient.convertToType(data['Id'], 'String'); obj['Id'] = ApiClient.convertToType(data['Id'], 'String');
} }
} }
return obj; return obj;
} }
};
/**
* @member {Array.<module:model/RefinementBin>} Bins
*/
exports.prototype['Bins'] = undefined;
/**
* @member {String} DisplayName
*/
exports.prototype['DisplayName'] = undefined;
/**
* @member {String} Id
*/
exports.prototype['Id'] = undefined;
return exports;
}));

View File

@ -21,28 +21,43 @@
* *
*/ */
(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.RefinementBin = factory(root.ProductAdvertisingAPIv1.ApiClient);
}
}(this, function(ApiClient) {
'use strict';
/** /**
* The RefinementBin model module. * The RefinementBin model module.
* @module model/RefinementBin * @module model/RefinementBin
* @version 1.0.0 * @version 1.0.0
*/ */
import { ApiClient } from "../ApiClient";
/** /**
* Constructs a new <code>RefinementBin</code>. * Constructs a new <code>RefinementBin</code>.
* @alias module:model/RefinementBin * @alias module:model/RefinementBin
* @class * @class
*/ */
export class RefinementBin { var exports = function() {
/** var _this = this;
* @member {String} DisplayName
*/
public DisplayName?: string;
/** };
* @member {String} Id
*/
public Id?: string;
/** /**
* Constructs a <code>RefinementBin</code> from a plain JavaScript object, optionally creating a new instance. * Constructs a <code>RefinementBin</code> from a plain JavaScript object, optionally creating a new instance.
@ -51,17 +66,32 @@ export class RefinementBin {
* @param {module:model/RefinementBin} obj Optional instance to populate. * @param {module:model/RefinementBin} obj Optional instance to populate.
* @return {module:model/RefinementBin} The populated <code>RefinementBin</code> instance. * @return {module:model/RefinementBin} The populated <code>RefinementBin</code> instance.
*/ */
public static constructFromObject(data: any, obj?: RefinementBin) { exports.constructFromObject = function(data, obj) {
if (data) { if (data) {
obj = obj || new RefinementBin(); obj = obj || new exports();
if (data.hasOwnProperty('DisplayName')) { if (data.hasOwnProperty('DisplayName')) {
obj.DisplayName = ApiClient.convertToType(data['DisplayName'], 'String'); obj['DisplayName'] = ApiClient.convertToType(data['DisplayName'], 'String');
} }
if (data.hasOwnProperty('Id')) { if (data.hasOwnProperty('Id')) {
obj.Id = ApiClient.convertToType(data['Id'], 'String'); obj['Id'] = ApiClient.convertToType(data['Id'], 'String');
} }
} }
return obj; return obj;
} }
};
/**
* @member {String} DisplayName
*/
exports.prototype['DisplayName'] = undefined;
/**
* @member {String} Id
*/
exports.prototype['Id'] = undefined;
return exports;
}));

View File

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

View File

@ -21,36 +21,45 @@
* *
*/ */
(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.VariationDimension = factory(root.ProductAdvertisingAPIv1.ApiClient);
}
}(this, function(ApiClient) {
'use strict';
/** /**
* The VariationDimension model module. * The VariationDimension model module.
* @module model/VariationDimension * @module model/VariationDimension
* @version 1.0.0 * @version 1.0.0
*/ */
import { ApiClient } from "../ApiClient";
/** /**
* Constructs a new <code>VariationDimension</code>. * Constructs a new <code>VariationDimension</code>.
* @alias module:model/VariationDimension * @alias module:model/VariationDimension
* @class * @class
*/ */
export class VariationDimension { var exports = function() {
/** var _this = this;
* @member {String} DisplayName
*/
public DisplayName?: string;
/**
* @member {String} Locale
*/ };
public Locale?: string;
/**
* @member {String} Name
*/
public Name?: string;
/**
* @member {Array.<String>} Values
*/
public Values?: string[];
/** /**
* Constructs a <code>VariationDimension</code> from a plain JavaScript object, optionally creating a new instance. * Constructs a <code>VariationDimension</code> from a plain JavaScript object, optionally creating a new instance.
@ -59,23 +68,46 @@ export class VariationDimension {
* @param {module:model/VariationDimension} obj Optional instance to populate. * @param {module:model/VariationDimension} obj Optional instance to populate.
* @return {module:model/VariationDimension} The populated <code>VariationDimension</code> instance. * @return {module:model/VariationDimension} The populated <code>VariationDimension</code> instance.
*/ */
public static constructFromObject(data: any, obj?: VariationDimension) { exports.constructFromObject = function(data, obj) {
if (data) { if (data) {
obj = obj || new VariationDimension(); obj = obj || new exports();
if (data.hasOwnProperty('DisplayName')) { if (data.hasOwnProperty('DisplayName')) {
obj.DisplayName = ApiClient.convertToType(data['DisplayName'], 'String'); obj['DisplayName'] = ApiClient.convertToType(data['DisplayName'], 'String');
} }
if (data.hasOwnProperty('Locale')) { if (data.hasOwnProperty('Locale')) {
obj.Locale = ApiClient.convertToType(data['Locale'], 'String'); obj['Locale'] = ApiClient.convertToType(data['Locale'], 'String');
} }
if (data.hasOwnProperty('Name')) { if (data.hasOwnProperty('Name')) {
obj.Name = ApiClient.convertToType(data['Name'], 'String'); obj['Name'] = ApiClient.convertToType(data['Name'], 'String');
} }
if (data.hasOwnProperty('Values')) { if (data.hasOwnProperty('Values')) {
obj.Values = ApiClient.convertToType(data['Values'], ['String']); obj['Values'] = ApiClient.convertToType(data['Values'], ['String']);
} }
} }
return obj; return obj;
} }
};
/**
* @member {String} DisplayName
*/
exports.prototype['DisplayName'] = undefined;
/**
* @member {String} Locale
*/
exports.prototype['Locale'] = undefined;
/**
* @member {String} Name
*/
exports.prototype['Name'] = undefined;
/**
* @member {Array.<String>} Values
*/
exports.prototype['Values'] = undefined;
return exports;
}));