Compare commits

...

2 Commits

4 changed files with 355 additions and 403 deletions

View File

@ -47,6 +47,8 @@ import { GetBrowseNodesRequest } from "./model/GetBrowseNodesRequest";
import { GetBrowseNodesResource } from "./model/GetBrowseNodesResource";
import { GetBrowseNodesResponse } from "./model/GetBrowseNodesResponse";
import { GetItemsRequest } from "./model/GetItemsRequest";
import { GetItemsResource } from "./model/GetItemsResource";
import { ItemIdType } from "./model/ItemIdType";
import { Languages } from "./model/Languages";
import { LanguageType } from "./model/LanguageType";
import { MultiValuedAttribute } from "./model/MultiValuedAttribute";

View File

@ -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.GetItemsResource = factory(root.ProductAdvertisingAPIv1.ApiClient);
}
}(this, function(ApiClient) {
'use strict';
/**
* Enum class GetItemsResource.
* @enum {}
* @readonly
*/
var exports = {
export const GetItemsResourceValues = {
/**
* value: "BrowseNodeInfo.BrowseNodes"
* @const
@ -339,18 +321,26 @@
* value: "RentalOffers.Listings.MerchantInfo"
* @const
*/
"RentalOffers.Listings.MerchantInfo": "RentalOffers.Listings.MerchantInfo" };
"RentalOffers.Listings.MerchantInfo": "RentalOffers.Listings.MerchantInfo",
};
/**
* Enum class GetItemsResource.
* @enum {}
* @readonly
*/
export class GetItemsResource {
[key: string]: any;
public constructor() {
const self = this;
Object.keys(GetItemsResourceValues).forEach((key: string) => self[key] = GetItemsResource[key]);
}
/**
* 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.
* @return {module:model/GetItemsResource} The enum <code>GetItemsResource</code> value.
*/
exports.constructFromObject = function(object) {
return object;
}
return exports;
}));
public static constructFromObject(object: string) { return object; }
};

View File

@ -21,46 +21,35 @@
*
*/
(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.ItemIdType = factory(root.ProductAdvertisingAPIv1.ApiClient);
}
}(this, function(ApiClient) {
'use strict';
/**
* Enum class ItemIdType.
* @enum {}
* @readonly
*/
export const ItemIdTypeValues = {
/**
* value: "ASIN"
* @const
*/
"ASIN": "ASIN",
};
/**
* Enum class ItemIdType.
* @enum {}
* @readonly
*/
var exports = {
export class ItemIdType {
/**
* value: "ASIN"
* @const
*/
"ASIN": "ASIN" };
public static get ASIN() { return ItemIdTypeValues.ASIN; }
/**
* Returns a <code>ItemIdType</code> enum value from a Javascript object name.
* @param {Object} data The plain JavaScript object containing the name of the enum value.
* @return {module:model/ItemIdType} The enum <code>ItemIdType</code> value.
*/
exports.constructFromObject = function(object) {
return object;
}
return exports;
}));
public static constructFromObject(object: any) { return object;}
};

View File

@ -21,42 +21,20 @@
*
*/
(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.OfferCount = factory(root.ProductAdvertisingAPIv1.ApiClient);
}
}(this, function(ApiClient) {
'use strict';
/**
* The OfferCount model module.
* @module model/OfferCount
* @version 1.0.0
*/
// I'm not really even sure why this is a whole code module.
/**
* Constructs a new <code>OfferCount</code>.
* @alias module:model/OfferCount
* @class
*/
var exports = function() {
var _this = this;
};
export class OfferCount {
/**
* Constructs a <code>OfferCount</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.
@ -64,14 +42,7 @@
* @param {module:model/OfferCount} obj Optional instance to populate.
* @return {module:model/OfferCount} The populated <code>OfferCount</code> instance.
*/
exports.constructFromObject = function(data, obj) {
public static constructFromObject(data: any, _obj?: string) {
return data;
}
return exports;
}));
};