Refactored several model/ files.
This commit is contained in:
parent
79eac5977b
commit
6496104e30
|
|
@ -48,6 +48,7 @@ import { GetBrowseNodesResource } from "./model/GetBrowseNodesResource";
|
||||||
import { GetBrowseNodesResponse } from "./model/GetBrowseNodesResponse";
|
import { GetBrowseNodesResponse } from "./model/GetBrowseNodesResponse";
|
||||||
import { GetItemsRequest } from "./model/GetItemsRequest";
|
import { GetItemsRequest } from "./model/GetItemsRequest";
|
||||||
import { GetItemsResource } from "./model/GetItemsResource";
|
import { GetItemsResource } from "./model/GetItemsResource";
|
||||||
|
import { GetVariationsResource } from "./model/GetVariationsResource";
|
||||||
import { ImageSize } from "./model/ImageSize";
|
import { ImageSize } from "./model/ImageSize";
|
||||||
import { ImageType } from "./model/ImageType";
|
import { ImageType } from "./model/ImageType";
|
||||||
import { Images } from "./model/Images";
|
import { Images } from "./model/Images";
|
||||||
|
|
@ -60,6 +61,8 @@ import { ManufactureInfo } from "./model/ManufactureInfo";
|
||||||
import { MaxPrice } from "./model/MaxPrice";
|
import { MaxPrice } from "./model/MaxPrice";
|
||||||
import { Merchant } from "./model/Merchant";
|
import { Merchant } from "./model/Merchant";
|
||||||
import { MinPrice } from "./model/MinPrice";
|
import { MinPrice } from "./model/MinPrice";
|
||||||
|
import { MinReviewsRating } from "./model/MinReviewsRating";
|
||||||
|
import { MinSavingPercent } from "./model/MinSavingPercent";
|
||||||
import { MultiValuedAttribute } from "./model/MultiValuedAttribute";
|
import { MultiValuedAttribute } from "./model/MultiValuedAttribute";
|
||||||
import { OfferAvailability } from "./model/OfferAvailability";
|
import { OfferAvailability } from "./model/OfferAvailability";
|
||||||
import { OfferCondition } from "./model/OfferCondition";
|
import { OfferCondition } from "./model/OfferCondition";
|
||||||
|
|
@ -90,12 +93,14 @@ import { RefinementBin } from "./model/RefinementBin";
|
||||||
import { RentalOfferListing } from "./model/RentalOfferListing";
|
import { RentalOfferListing } from "./model/RentalOfferListing";
|
||||||
import { RentalOffers } from "./model/RentalOffers";
|
import { RentalOffers } from "./model/RentalOffers";
|
||||||
import { SearchItemsRequest } from "./model/SearchItemsRequest";
|
import { SearchItemsRequest } from "./model/SearchItemsRequest";
|
||||||
|
import { SearchItemsResource } from "./model/SearchItemsResource";
|
||||||
import { SearchItemsResponse } from "./model/SearchItemsResponse";
|
import { SearchItemsResponse } from "./model/SearchItemsResponse";
|
||||||
import { SearchRefinements } from "./model/SearchRefinements";
|
import { SearchRefinements } from "./model/SearchRefinements";
|
||||||
import { SearchResult } from "./model/SearchResult";
|
import { SearchResult } from "./model/SearchResult";
|
||||||
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 { SortBy } from "./model/SortBy";
|
||||||
import { TechnicalInfo } from "./model/TechnicalInfo";
|
import { TechnicalInfo } from "./model/TechnicalInfo";
|
||||||
import { TradeInInfo } from "./model/TradeInInfo";
|
import { TradeInInfo } from "./model/TradeInInfo";
|
||||||
import { TradeInPrice } from "./model/TradeInPrice";
|
import { TradeInPrice } from "./model/TradeInPrice";
|
||||||
|
|
|
||||||
|
|
@ -337,6 +337,7 @@ export class GetItemsResource {
|
||||||
const self = this;
|
const self = this;
|
||||||
Object.keys(GetItemsResourceValues).forEach((key: string) => self[key] = GetItemsResource[key]);
|
Object.keys(GetItemsResourceValues).forEach((key: string) => self[key] = GetItemsResource[key]);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns a <code>GetItemsResource</code> enum value from a Javascript object name.
|
* Returns a <code>GetItemsResource</code> enum value from a Javascript object name.
|
||||||
* @param {Object} data The plain JavaScript object containing the name of the enum value.
|
* @param {Object} data The plain JavaScript object containing the name of the enum value.
|
||||||
|
|
|
||||||
|
|
@ -21,30 +21,12 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(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.GetVariationsResource = factory(root.ProductAdvertisingAPIv1.ApiClient);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Enum class GetVariationsResource.
|
* Enum class GetVariationsResource.
|
||||||
* @enum {}
|
* @enum {}
|
||||||
* @readonly
|
* @readonly
|
||||||
*/
|
*/
|
||||||
var exports = {
|
export const GetVariationsResourceValues = {
|
||||||
/**
|
/**
|
||||||
* value: "BrowseNodeInfo.BrowseNodes"
|
* value: "BrowseNodeInfo.BrowseNodes"
|
||||||
* @const
|
* @const
|
||||||
|
|
@ -354,18 +336,26 @@
|
||||||
* value: "VariationSummary.VariationDimension"
|
* value: "VariationSummary.VariationDimension"
|
||||||
* @const
|
* @const
|
||||||
*/
|
*/
|
||||||
"VariationSummary.VariationDimension": "VariationSummary.VariationDimension" };
|
"VariationSummary.VariationDimension": "VariationSummary.VariationDimension"
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Enum class GetVariationsResource.
|
||||||
|
* @enum {}
|
||||||
|
* @readonly
|
||||||
|
*/
|
||||||
|
export class GetVariationsResource {
|
||||||
|
[key: string]: any;
|
||||||
|
|
||||||
|
public constructor() {
|
||||||
|
const self = this;
|
||||||
|
Object.keys(GetVariationsResourceValues).forEach((key: string) => self[key] = GetVariationsResourceValues[key]);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns a <code>GetVariationsResource</code> enum value from a Javascript object name.
|
* Returns a <code>GetVariationsResource</code> enum value from a Javascript object name.
|
||||||
* @param {Object} data The plain JavaScript object containing the name of the enum value.
|
* @param {Object} data The plain JavaScript object containing the name of the enum value.
|
||||||
* @return {module:model/GetVariationsResource} The enum <code>GetVariationsResource</code> value.
|
* @return {module:model/GetVariationsResource} The enum <code>GetVariationsResource</code> value.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(object) {
|
public static constructFromObject(object: any) { return object; }
|
||||||
return object;
|
};
|
||||||
}
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -21,26 +21,6 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(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.MinReviewsRating = factory(root.ProductAdvertisingAPIv1.ApiClient);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The MinReviewsRating model module.
|
* The MinReviewsRating model module.
|
||||||
* @module model/MinReviewsRating
|
* @module model/MinReviewsRating
|
||||||
|
|
@ -52,11 +32,7 @@
|
||||||
* @alias module:model/MinReviewsRating
|
* @alias module:model/MinReviewsRating
|
||||||
* @class
|
* @class
|
||||||
*/
|
*/
|
||||||
var exports = function() {
|
export class MinReviewsRating {
|
||||||
var _this = this;
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>MinReviewsRating</code> from a plain JavaScript object, optionally creating a new instance.
|
* Constructs a <code>MinReviewsRating</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,5 @@
|
||||||
* @param {module:model/MinReviewsRating} obj Optional instance to populate.
|
* @param {module:model/MinReviewsRating} obj Optional instance to populate.
|
||||||
* @return {module:model/MinReviewsRating} The populated <code>MinReviewsRating</code> instance.
|
* @return {module:model/MinReviewsRating} The populated <code>MinReviewsRating</code> instance.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(data, obj) {
|
public static constructFromObject(data: any, _obj?: MinReviewsRating) { return data; }
|
||||||
return data;
|
};
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -21,26 +21,6 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(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.MinSavingPercent = factory(root.ProductAdvertisingAPIv1.ApiClient);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The MinSavingPercent model module.
|
* The MinSavingPercent model module.
|
||||||
* @module model/MinSavingPercent
|
* @module model/MinSavingPercent
|
||||||
|
|
@ -52,11 +32,7 @@
|
||||||
* @alias module:model/MinSavingPercent
|
* @alias module:model/MinSavingPercent
|
||||||
* @class
|
* @class
|
||||||
*/
|
*/
|
||||||
var exports = function() {
|
export class MinSavingPercent {
|
||||||
var _this = this;
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>MinSavingPercent</code> from a plain JavaScript object, optionally creating a new instance.
|
* Constructs a <code>MinSavingPercent</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,5 @@
|
||||||
* @param {module:model/MinSavingPercent} obj Optional instance to populate.
|
* @param {module:model/MinSavingPercent} obj Optional instance to populate.
|
||||||
* @return {module:model/MinSavingPercent} The populated <code>MinSavingPercent</code> instance.
|
* @return {module:model/MinSavingPercent} The populated <code>MinSavingPercent</code> instance.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(data, obj) {
|
public static constructFromObject(data: any, _obj?: MinSavingPercent) { return data; }
|
||||||
return data;
|
};
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -21,30 +21,12 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(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.SearchItemsResource = factory(root.ProductAdvertisingAPIv1.ApiClient);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Enum class SearchItemsResource.
|
* Enum class SearchItemsResource.
|
||||||
* @enum {}
|
* @enum {}
|
||||||
* @readonly
|
* @readonly
|
||||||
*/
|
*/
|
||||||
var exports = {
|
export const SearchItemsResourceValues = {
|
||||||
/**
|
/**
|
||||||
* value: "BrowseNodeInfo.BrowseNodes"
|
* value: "BrowseNodeInfo.BrowseNodes"
|
||||||
* @const
|
* @const
|
||||||
|
|
@ -344,18 +326,21 @@
|
||||||
* value: "SearchRefinements"
|
* value: "SearchRefinements"
|
||||||
* @const
|
* @const
|
||||||
*/
|
*/
|
||||||
"SearchRefinements": "SearchRefinements" };
|
"SearchRefinements": "SearchRefinements"
|
||||||
|
};
|
||||||
|
|
||||||
|
export class SearchItemsResource {
|
||||||
|
[key: string]: any;
|
||||||
|
|
||||||
|
public constructor() {
|
||||||
|
const self = this;
|
||||||
|
Object.keys(SearchItemsResourceValues).forEach((key: string) => self[key] = SearchItemsResourceValues[key]);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns a <code>SearchItemsResource</code> enum value from a Javascript object name.
|
* Returns a <code>SearchItemsResource</code> enum value from a Javascript object name.
|
||||||
* @param {Object} data The plain JavaScript object containing the name of the enum value.
|
* @param {Object} data The plain JavaScript object containing the name of the enum value.
|
||||||
* @return {module:model/SearchItemsResource} The enum <code>SearchItemsResource</code> value.
|
* @return {module:model/SearchItemsResource} The enum <code>SearchItemsResource</code> value.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(object) {
|
public static constructFromObject(object: any) { return object; }
|
||||||
return object;
|
};
|
||||||
}
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -21,30 +21,12 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(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.SortBy = factory(root.ProductAdvertisingAPIv1.ApiClient);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Enum class SortBy.
|
* Enum class SortBy.
|
||||||
* @enum {}
|
* @enum {}
|
||||||
* @readonly
|
* @readonly
|
||||||
*/
|
*/
|
||||||
var exports = {
|
export const SortByValues = {
|
||||||
/**
|
/**
|
||||||
* value: "AvgCustomerReviews"
|
* value: "AvgCustomerReviews"
|
||||||
* @const
|
* @const
|
||||||
|
|
@ -74,18 +56,26 @@
|
||||||
* value: "Relevance"
|
* value: "Relevance"
|
||||||
* @const
|
* @const
|
||||||
*/
|
*/
|
||||||
"Relevance": "Relevance" };
|
"Relevance": "Relevance",
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Enum class SortBy.
|
||||||
|
* @enum {}
|
||||||
|
* @readonly
|
||||||
|
*/
|
||||||
|
export class SortBy {
|
||||||
|
[key: string]: any;
|
||||||
|
|
||||||
|
public constructor() {
|
||||||
|
const self = this;
|
||||||
|
Object.keys(SortByValues).forEach((key: string) => self[key] = SortByValues[key]);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns a <code>SortBy</code> enum value from a Javascript object name.
|
* Returns a <code>SortBy</code> enum value from a Javascript object name.
|
||||||
* @param {Object} data The plain JavaScript object containing the name of the enum value.
|
* @param {Object} data The plain JavaScript object containing the name of the enum value.
|
||||||
* @return {module:model/SortBy} The enum <code>SortBy</code> value.
|
* @return {module:model/SortBy} The enum <code>SortBy</code> value.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(object) {
|
public static constructFromObject(object: any) { return object; }
|
||||||
return object;
|
};
|
||||||
}
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user