Compare commits
5 Commits
dedccb86cc
...
f2a0197648
| Author | SHA1 | Date | |
|---|---|---|---|
| f2a0197648 | |||
| 4a2e1717d8 | |||
| 7bcabac672 | |||
| 25a3bca6bf | |||
| 4b72b5f6ea |
|
|
@ -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 { 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";
|
||||||
|
|
@ -61,11 +62,16 @@ 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";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -15,48 +15,24 @@
|
||||||
* permissions and limitations under the License.
|
* permissions and limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ProductAdvertisingAPI
|
* ProductAdvertisingAPI
|
||||||
* https://webservices.amazon.com/paapi5/documentation/index.html
|
* https://webservices.amazon.com/paapi5/documentation/index.html
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
/**
|
||||||
if (typeof define === 'function' && define.amd) {
|
* The MaxPrice model module.
|
||||||
// AMD. Register as an anonymous module.
|
* @module model/MaxPrice
|
||||||
define(['ApiClient'], factory);
|
* @version 1.0.0
|
||||||
} 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.
|
|
||||||
* @module model/MaxPrice
|
|
||||||
* @version 1.0.0
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Constructs a new <code>MaxPrice</code>.
|
|
||||||
* @alias module:model/MaxPrice
|
|
||||||
* @class
|
|
||||||
*/
|
|
||||||
var exports = function() {
|
|
||||||
var _this = this;
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructs a new <code>MaxPrice</code>.
|
||||||
|
* @alias module:model/MaxPrice
|
||||||
|
* @class
|
||||||
|
*/
|
||||||
|
export class MaxPrice {
|
||||||
/**
|
/**
|
||||||
* 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.
|
||||||
|
|
@ -64,14 +40,7 @@
|
||||||
* @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.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(data, obj) {
|
public static constructFromObject(data: any, _obj?: any) {
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -21,44 +21,21 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
/**
|
||||||
if (typeof define === 'function' && define.amd) {
|
* The Properties model module.
|
||||||
// AMD. Register as an anonymous module.
|
* @module model/Properties
|
||||||
define(['ApiClient'], factory);
|
* @version 1.0.0
|
||||||
} 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';
|
|
||||||
|
|
||||||
|
import { ApiClient } from "../ApiClient";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructs a new <code>Properties</code>.
|
||||||
/**
|
* @alias module:model/Properties
|
||||||
* The Properties model module.
|
* @class
|
||||||
* @module model/Properties
|
* @extends Object
|
||||||
* @version 1.0.0
|
*/
|
||||||
*/
|
export class Properties {
|
||||||
|
|
||||||
/**
|
|
||||||
* Constructs a new <code>Properties</code>.
|
|
||||||
* @alias module:model/Properties
|
|
||||||
* @class
|
|
||||||
* @extends Object
|
|
||||||
*/
|
|
||||||
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.
|
||||||
|
|
@ -66,19 +43,11 @@
|
||||||
* @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.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(data, obj) {
|
public static constructFromObject(data: any, obj?: Properties) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new exports();
|
obj = obj || new Properties();
|
||||||
ApiClient.constructFromObject(data, obj, 'String');
|
ApiClient.constructFromObject(data, obj, 'String');
|
||||||
|
|
||||||
}
|
}
|
||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -21,44 +21,33 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
/**
|
||||||
if (typeof define === 'function' && define.amd) {
|
* The Refinement model module.
|
||||||
// AMD. Register as an anonymous module.
|
* @module model/Refinement
|
||||||
define(['ApiClient', 'model/RefinementBin'], factory);
|
* @version 1.0.0
|
||||||
} 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';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
import { ApiClient } from "../ApiClient";
|
||||||
|
import { RefinementBin } from "./RefinementBin";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructs a new <code>Refinement</code>.
|
||||||
|
* @alias module:model/Refinement
|
||||||
|
* @class
|
||||||
|
*/
|
||||||
|
export class Refinement {
|
||||||
/**
|
/**
|
||||||
* The Refinement model module.
|
* @member {Array.<module:model/RefinementBin>} Bins
|
||||||
* @module model/Refinement
|
|
||||||
* @version 1.0.0
|
|
||||||
*/
|
*/
|
||||||
|
public Bins?: RefinementBin[];
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>Refinement</code>.
|
* @member {String} DisplayName
|
||||||
* @alias module:model/Refinement
|
|
||||||
* @class
|
|
||||||
*/
|
*/
|
||||||
var exports = function() {
|
public DisplayName?: string;
|
||||||
var _this = this;
|
/**
|
||||||
|
* @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.
|
||||||
|
|
@ -67,39 +56,20 @@
|
||||||
* @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.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(data, obj) {
|
public static constructFromObject(data: any, obj?: Refinement) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new exports();
|
obj = obj || new Refinement();
|
||||||
|
|
||||||
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;
|
|
||||||
}));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -21,43 +21,28 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
/**
|
||||||
if (typeof define === 'function' && define.amd) {
|
* The RefinementBin model module.
|
||||||
// AMD. Register as an anonymous module.
|
* @module model/RefinementBin
|
||||||
define(['ApiClient'], factory);
|
* @version 1.0.0
|
||||||
} 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';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
import { ApiClient } from "../ApiClient";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructs a new <code>RefinementBin</code>.
|
||||||
|
* @alias module:model/RefinementBin
|
||||||
|
* @class
|
||||||
|
*/
|
||||||
|
export class RefinementBin {
|
||||||
/**
|
/**
|
||||||
* The RefinementBin model module.
|
* @member {String} DisplayName
|
||||||
* @module model/RefinementBin
|
|
||||||
* @version 1.0.0
|
|
||||||
*/
|
*/
|
||||||
|
public DisplayName?: string;
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>RefinementBin</code>.
|
* @member {String} Id
|
||||||
* @alias module:model/RefinementBin
|
|
||||||
* @class
|
|
||||||
*/
|
*/
|
||||||
var exports = function() {
|
public Id?: string;
|
||||||
var _this = this;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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.
|
||||||
|
|
@ -66,32 +51,17 @@
|
||||||
* @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.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(data, obj) {
|
public static constructFromObject(data: any, obj?: RefinementBin) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new exports();
|
obj = obj || new 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 {String} DisplayName
|
|
||||||
*/
|
|
||||||
exports.prototype['DisplayName'] = undefined;
|
|
||||||
/**
|
|
||||||
* @member {String} Id
|
|
||||||
*/
|
|
||||||
exports.prototype['Id'] = undefined;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -21,45 +21,33 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
/**
|
||||||
if (typeof define === 'function' && define.amd) {
|
* The SearchRefinements model module.
|
||||||
// AMD. Register as an anonymous module.
|
* @module model/SearchRefinements
|
||||||
define(['ApiClient', 'model/Refinement'], factory);
|
* @version 1.0.0
|
||||||
} 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';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
import { ApiClient } from "../ApiClient";
|
||||||
|
import { Refinement } from "./Refinement";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructs a new <code>SearchRefinements</code>.
|
||||||
|
* @alias module:model/SearchRefinements
|
||||||
|
* @class
|
||||||
|
*/
|
||||||
|
export class SearchRefinements {
|
||||||
/**
|
/**
|
||||||
* The SearchRefinements model module.
|
* @member {module:model/Refinement} BrowseNode
|
||||||
* @module model/SearchRefinements
|
|
||||||
* @version 1.0.0
|
|
||||||
*/
|
*/
|
||||||
|
public BrowseNode?: Refinement
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>SearchRefinements</code>.
|
* @member {Array.<module:model/Refinement>} OtherRefinements
|
||||||
* @alias module:model/SearchRefinements
|
|
||||||
* @class
|
|
||||||
*/
|
*/
|
||||||
var exports = function() {
|
public OtherRefinements?: Refinement[]
|
||||||
var _this = this;
|
/**
|
||||||
|
* @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.
|
||||||
|
|
@ -67,39 +55,20 @@
|
||||||
* @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.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(data, obj) {
|
public static constructFromObject(data: any, obj?: SearchRefinements) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new exports();
|
obj = obj || new SearchRefinements();
|
||||||
|
|
||||||
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;
|
|
||||||
}));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -21,45 +21,36 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
/**
|
||||||
if (typeof define === 'function' && define.amd) {
|
* The VariationDimension model module.
|
||||||
// AMD. Register as an anonymous module.
|
* @module model/VariationDimension
|
||||||
define(['ApiClient'], factory);
|
* @version 1.0.0
|
||||||
} 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';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
import { ApiClient } from "../ApiClient";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructs a new <code>VariationDimension</code>.
|
||||||
|
* @alias module:model/VariationDimension
|
||||||
|
* @class
|
||||||
|
*/
|
||||||
|
export class VariationDimension {
|
||||||
/**
|
/**
|
||||||
* The VariationDimension model module.
|
* @member {String} DisplayName
|
||||||
* @module model/VariationDimension
|
|
||||||
* @version 1.0.0
|
|
||||||
*/
|
*/
|
||||||
|
public DisplayName?: string;
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>VariationDimension</code>.
|
* @member {String} Locale
|
||||||
* @alias module:model/VariationDimension
|
|
||||||
* @class
|
|
||||||
*/
|
*/
|
||||||
var exports = function() {
|
public Locale?: string;
|
||||||
var _this = this;
|
/**
|
||||||
|
* @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.
|
||||||
|
|
@ -68,46 +59,23 @@
|
||||||
* @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.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(data, obj) {
|
public static constructFromObject(data: any, obj?: VariationDimension) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new exports();
|
obj = obj || new VariationDimension();
|
||||||
|
|
||||||
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;
|
|
||||||
}));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user