Compare commits
6 Commits
8e2db07c9c
...
4133f678f7
| Author | SHA1 | Date | |
|---|---|---|---|
| 4133f678f7 | |||
| 99665a01e5 | |||
| 2f9d2264fa | |||
| 9385da795d | |||
| d18bcfa1d7 | |||
| 23fb0cc99a |
|
|
@ -34,10 +34,16 @@ import { BrowseNodesResult } from "./model/BrowseNodesResult";
|
|||
import { ByLineInfo } from "./model/ByLineInfo";
|
||||
import { Classifications } from "./model/Classifications";
|
||||
import { Condition } from "./model/Condition";
|
||||
import { ContentInfo } from "./model/ContentInfo";
|
||||
import { ContentRating } from "./model/ContentRating";
|
||||
import { Contributor } from "./model/Contributor";
|
||||
import { CustomerReviews } from "./model/CustomerReviews";
|
||||
import { DeliveryFlag } from "./model/DeliveryFlag";
|
||||
import { Languages } from "./model/Languages";
|
||||
import { LanguageType } from "./model/LanguageType";
|
||||
import { OfferSavings } from "./model/OfferSavings";
|
||||
import { PriceType } from "./model/PriceType";
|
||||
import { Rating } from "./model/Rating";
|
||||
import { SingleBooleanValuedAttribute } from "./model/SingleBooleanValuedAttribute";
|
||||
import { SingleIntegerValuedAttribute } from "./model/SingleIntegerValuedAttribute";
|
||||
import { SingleStringValuedAttribute } from "./model/SingleStringValuedAttribute";
|
||||
|
|
|
|||
|
|
@ -21,45 +21,38 @@
|
|||
*
|
||||
*/
|
||||
|
||||
(function(root, factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
// AMD. Register as an anonymous module.
|
||||
define(['ApiClient', 'model/Languages', '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('./Languages'), require('./SingleIntegerValuedAttribute'), require('./SingleStringValuedAttribute'));
|
||||
} else {
|
||||
// Browser globals (root is window)
|
||||
if (!root.ProductAdvertisingAPIv1) {
|
||||
root.ProductAdvertisingAPIv1 = {};
|
||||
}
|
||||
root.ProductAdvertisingAPIv1.ContentInfo = factory(root.ProductAdvertisingAPIv1.ApiClient, root.ProductAdvertisingAPIv1.Languages, root.ProductAdvertisingAPIv1.SingleIntegerValuedAttribute, root.ProductAdvertisingAPIv1.SingleStringValuedAttribute);
|
||||
}
|
||||
}(this, function(ApiClient, Languages, SingleIntegerValuedAttribute, SingleStringValuedAttribute) {
|
||||
'use strict';
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* The ContentInfo model module.
|
||||
* @module model/ContentInfo
|
||||
* @version 1.0.0
|
||||
*/
|
||||
|
||||
import { Languages } from "./Languages";
|
||||
import { SingleIntegerValuedAttribute } from "./SingleIntegerValuedAttribute";
|
||||
import { SingleStringValuedAttribute } from "./SingleStringValuedAttribute";
|
||||
|
||||
/**
|
||||
* Constructs a new <code>ContentInfo</code>.
|
||||
* @alias module:model/ContentInfo
|
||||
* @class
|
||||
*/
|
||||
var exports = function() {
|
||||
var _this = this;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
export class ContentInfo {
|
||||
/**
|
||||
* @member {module:model/SingleStringValuedAttribute} Edition
|
||||
*/
|
||||
public Edition?: SingleStringValuedAttribute;
|
||||
/**
|
||||
* @member {module:model/Languages} Languages
|
||||
*/
|
||||
public Languages?: Languages;
|
||||
/**
|
||||
* @member {module:model/SingleIntegerValuedAttribute} PagesCount
|
||||
*/
|
||||
public PagesCount?: SingleIntegerValuedAttribute
|
||||
/**
|
||||
* @member {module:model/SingleStringValuedAttribute} PublicationDate
|
||||
*/
|
||||
public PublicationDate?: SingleStringValuedAttribute;
|
||||
|
||||
/**
|
||||
* Constructs a <code>ContentInfo</code> from a plain JavaScript object, optionally creating a new instance.
|
||||
|
|
@ -68,46 +61,23 @@
|
|||
* @param {module:model/ContentInfo} obj Optional instance to populate.
|
||||
* @return {module:model/ContentInfo} The populated <code>ContentInfo</code> instance.
|
||||
*/
|
||||
exports.constructFromObject = function(data, obj) {
|
||||
public static constructFromObject(data: any, obj?: ContentInfo) {
|
||||
if (data) {
|
||||
obj = obj || new exports();
|
||||
obj = obj || new ContentInfo();
|
||||
|
||||
if (data.hasOwnProperty('Edition')) {
|
||||
obj['Edition'] = SingleStringValuedAttribute.constructFromObject(data['Edition']);
|
||||
obj.Edition = SingleStringValuedAttribute.constructFromObject(data['Edition']);
|
||||
}
|
||||
if (data.hasOwnProperty('Languages')) {
|
||||
obj['Languages'] = Languages.constructFromObject(data['Languages']);
|
||||
obj.Languages = Languages.constructFromObject(data['Languages']);
|
||||
}
|
||||
if (data.hasOwnProperty('PagesCount')) {
|
||||
obj['PagesCount'] = SingleIntegerValuedAttribute.constructFromObject(data['PagesCount']);
|
||||
obj.PagesCount = SingleIntegerValuedAttribute.constructFromObject(data['PagesCount']);
|
||||
}
|
||||
if (data.hasOwnProperty('PublicationDate')) {
|
||||
obj['PublicationDate'] = SingleStringValuedAttribute.constructFromObject(data['PublicationDate']);
|
||||
obj.PublicationDate = SingleStringValuedAttribute.constructFromObject(data['PublicationDate']);
|
||||
}
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
|
||||
/**
|
||||
* @member {module:model/SingleStringValuedAttribute} Edition
|
||||
*/
|
||||
exports.prototype['Edition'] = undefined;
|
||||
/**
|
||||
* @member {module:model/Languages} Languages
|
||||
*/
|
||||
exports.prototype['Languages'] = undefined;
|
||||
/**
|
||||
* @member {module:model/SingleIntegerValuedAttribute} PagesCount
|
||||
*/
|
||||
exports.prototype['PagesCount'] = undefined;
|
||||
/**
|
||||
* @member {module:model/SingleStringValuedAttribute} PublicationDate
|
||||
*/
|
||||
exports.prototype['PublicationDate'] = undefined;
|
||||
|
||||
|
||||
|
||||
return exports;
|
||||
}));
|
||||
|
||||
|
||||
};
|
||||
|
|
|
|||
|
|
@ -21,43 +21,29 @@
|
|||
*
|
||||
*/
|
||||
|
||||
(function(root, factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
// AMD. Register as an anonymous module.
|
||||
define(['ApiClient', 'model/Rating'], factory);
|
||||
} else if (typeof module === 'object' && module.exports) {
|
||||
// CommonJS-like environments that support module.exports, like Node.
|
||||
module.exports = factory(require('../ApiClient'), require('./Rating'));
|
||||
} else {
|
||||
// Browser globals (root is window)
|
||||
if (!root.ProductAdvertisingAPIv1) {
|
||||
root.ProductAdvertisingAPIv1 = {};
|
||||
}
|
||||
root.ProductAdvertisingAPIv1.CustomerReviews = factory(root.ProductAdvertisingAPIv1.ApiClient, root.ProductAdvertisingAPIv1.Rating);
|
||||
}
|
||||
}(this, function(ApiClient, Rating) {
|
||||
'use strict';
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* The CustomerReviews model module.
|
||||
* @module model/CustomerReviews
|
||||
* @version 1.0.0
|
||||
*/
|
||||
|
||||
import { ApiClient } from "../ApiClient";
|
||||
import { Rating } from "./Rating";
|
||||
|
||||
/**
|
||||
* Constructs a new <code>CustomerReviews</code>.
|
||||
* @alias module:model/CustomerReviews
|
||||
* @class
|
||||
*/
|
||||
var exports = function() {
|
||||
var _this = this;
|
||||
|
||||
|
||||
|
||||
};
|
||||
export class CustomerReviews {
|
||||
/**
|
||||
* @member {Number} Count
|
||||
*/
|
||||
public Count?: number;
|
||||
/**
|
||||
* @member {module:model/Rating} StarRating
|
||||
*/
|
||||
public StarRating?: Rating;
|
||||
|
||||
/**
|
||||
* Constructs a <code>CustomerReviews</code> from a plain JavaScript object, optionally creating a new instance.
|
||||
|
|
@ -66,32 +52,17 @@
|
|||
* @param {module:model/CustomerReviews} obj Optional instance to populate.
|
||||
* @return {module:model/CustomerReviews} The populated <code>CustomerReviews</code> instance.
|
||||
*/
|
||||
exports.constructFromObject = function(data, obj) {
|
||||
public static constructFromObject(data: any, obj?: CustomerReviews) {
|
||||
if (data) {
|
||||
obj = obj || new exports();
|
||||
obj = obj || new CustomerReviews();
|
||||
|
||||
if (data.hasOwnProperty('Count')) {
|
||||
obj['Count'] = ApiClient.convertToType(data['Count'], 'Number');
|
||||
obj.Count = ApiClient.convertToType(data['Count'], 'Number');
|
||||
}
|
||||
if (data.hasOwnProperty('StarRating')) {
|
||||
obj['StarRating'] = Rating.constructFromObject(data['StarRating']);
|
||||
obj.StarRating = Rating.constructFromObject(data['StarRating']);
|
||||
}
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
|
||||
/**
|
||||
* @member {Number} Count
|
||||
*/
|
||||
exports.prototype['Count'] = undefined;
|
||||
/**
|
||||
* @member {module:model/Rating} StarRating
|
||||
*/
|
||||
exports.prototype['StarRating'] = undefined;
|
||||
|
||||
|
||||
|
||||
return exports;
|
||||
}));
|
||||
|
||||
|
||||
};
|
||||
|
|
@ -21,61 +21,67 @@
|
|||
*
|
||||
*/
|
||||
|
||||
(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 = {};
|
||||
/**
|
||||
* Enum class DeliveryFlag.
|
||||
* @enum {}
|
||||
* @readonly
|
||||
*/
|
||||
export const enum DeliveryFlagValues {
|
||||
/**
|
||||
* value: "AmazonGlobal"
|
||||
* @const
|
||||
*/
|
||||
AmazonGlobal = "AmazonGlobal",
|
||||
/**
|
||||
* value: "FreeShipping"
|
||||
* @const
|
||||
*/
|
||||
FreeShipping = "FreeShipping",
|
||||
/**
|
||||
* value: "FulfilledByAmazon"
|
||||
* @const
|
||||
*/
|
||||
FulfilledByAmazon = "FulfilledByAmazon",
|
||||
/**
|
||||
* value: "Prime"
|
||||
* @const
|
||||
*/
|
||||
Prime = "Prime",
|
||||
}
|
||||
root.ProductAdvertisingAPIv1.DeliveryFlag = factory(root.ProductAdvertisingAPIv1.ApiClient);
|
||||
}
|
||||
}(this, function(ApiClient) {
|
||||
'use strict';
|
||||
|
||||
|
||||
/**
|
||||
* Enum class DeliveryFlag.
|
||||
* @enum {}
|
||||
* @readonly
|
||||
*/
|
||||
var exports = {
|
||||
export class DeliveryFlag extends String {
|
||||
/**
|
||||
* value: "AmazonGlobal"
|
||||
* @const
|
||||
*/
|
||||
"AmazonGlobal": "AmazonGlobal",
|
||||
public static get AmazonGlobal() { return DeliveryFlagValues.AmazonGlobal; }
|
||||
/**
|
||||
* value: "FreeShipping"
|
||||
* @const
|
||||
*/
|
||||
"FreeShipping": "FreeShipping",
|
||||
public static get FreeShipping() { return DeliveryFlagValues.FreeShipping; }
|
||||
/**
|
||||
* value: "FulfilledByAmazon"
|
||||
* @const
|
||||
*/
|
||||
"FulfilledByAmazon": "FulfilledByAmazon",
|
||||
public static get FulfilledByAmazon() { return DeliveryFlagValues.FulfilledByAmazon; }
|
||||
/**
|
||||
* value: "Prime"
|
||||
* @const
|
||||
*/
|
||||
"Prime": "Prime" };
|
||||
public static get Prime() { return DeliveryFlagValues.Prime; }
|
||||
|
||||
/**
|
||||
* Returns a <code>DeliveryFlag</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/DeliveryFlag} The enum <code>DeliveryFlag</code> value.
|
||||
*/
|
||||
exports.constructFromObject = function(object) {
|
||||
public static constructFromObject(object: DeliveryFlag|DeliveryFlagValues|string) {
|
||||
return object;
|
||||
}
|
||||
|
||||
return exports;
|
||||
}));
|
||||
|
||||
|
||||
};
|
||||
|
|
|
|||
|
|
@ -21,43 +21,28 @@
|
|||
*
|
||||
*/
|
||||
|
||||
(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.LanguageType = factory(root.ProductAdvertisingAPIv1.ApiClient);
|
||||
}
|
||||
}(this, function(ApiClient) {
|
||||
'use strict';
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* The LanguageType model module.
|
||||
* @module model/LanguageType
|
||||
* @version 1.0.0
|
||||
*/
|
||||
|
||||
import { ApiClient } from "../ApiClient";
|
||||
|
||||
/**
|
||||
* Constructs a new <code>LanguageType</code>.
|
||||
* @alias module:model/LanguageType
|
||||
* @class
|
||||
*/
|
||||
var exports = function() {
|
||||
var _this = this;
|
||||
|
||||
|
||||
|
||||
};
|
||||
export class LanguageType {
|
||||
/**
|
||||
* @member {String} DisplayValue
|
||||
*/
|
||||
public DisplayValue?: string;
|
||||
/**
|
||||
* @member {String} Type
|
||||
*/
|
||||
public Type?: string;
|
||||
|
||||
/**
|
||||
* Constructs a <code>LanguageType</code> from a plain JavaScript object, optionally creating a new instance.
|
||||
|
|
@ -66,32 +51,17 @@
|
|||
* @param {module:model/LanguageType} obj Optional instance to populate.
|
||||
* @return {module:model/LanguageType} The populated <code>LanguageType</code> instance.
|
||||
*/
|
||||
exports.constructFromObject = function(data, obj) {
|
||||
public static constructFromObject(data: any, obj?: LanguageType) {
|
||||
if (data) {
|
||||
obj = obj || new exports();
|
||||
obj = obj || new LanguageType();
|
||||
|
||||
if (data.hasOwnProperty('DisplayValue')) {
|
||||
obj['DisplayValue'] = ApiClient.convertToType(data['DisplayValue'], 'String');
|
||||
obj.DisplayValue = ApiClient.convertToType(data['DisplayValue'], 'String');
|
||||
}
|
||||
if (data.hasOwnProperty('Type')) {
|
||||
obj['Type'] = ApiClient.convertToType(data['Type'], 'String');
|
||||
obj.Type = ApiClient.convertToType(data['Type'], 'String');
|
||||
}
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
|
||||
/**
|
||||
* @member {String} DisplayValue
|
||||
*/
|
||||
exports.prototype['DisplayValue'] = undefined;
|
||||
/**
|
||||
* @member {String} Type
|
||||
*/
|
||||
exports.prototype['Type'] = undefined;
|
||||
|
||||
|
||||
|
||||
return exports;
|
||||
}));
|
||||
|
||||
|
||||
};
|
||||
|
|
|
|||
|
|
@ -15,32 +15,14 @@
|
|||
* permissions and limitations under the License.
|
||||
*/
|
||||
|
||||
import { LanguageType } from "./LanguageType";
|
||||
|
||||
/**
|
||||
* ProductAdvertisingAPI
|
||||
* https://webservices.amazon.com/paapi5/documentation/index.html
|
||||
*
|
||||
*/
|
||||
|
||||
(function(root, factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
// AMD. Register as an anonymous module.
|
||||
define(['ApiClient', 'model/LanguageType'], factory);
|
||||
} else if (typeof module === 'object' && module.exports) {
|
||||
// CommonJS-like environments that support module.exports, like Node.
|
||||
module.exports = factory(require('../ApiClient'), require('./LanguageType'));
|
||||
} else {
|
||||
// Browser globals (root is window)
|
||||
if (!root.ProductAdvertisingAPIv1) {
|
||||
root.ProductAdvertisingAPIv1 = {};
|
||||
}
|
||||
root.ProductAdvertisingAPIv1.Languages = factory(root.ProductAdvertisingAPIv1.ApiClient, root.ProductAdvertisingAPIv1.LanguageType);
|
||||
}
|
||||
}(this, function(ApiClient, LanguageType) {
|
||||
'use strict';
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* The Languages model module.
|
||||
* @module model/Languages
|
||||
|
|
@ -52,13 +34,19 @@
|
|||
* @alias module:model/Languages
|
||||
* @class
|
||||
*/
|
||||
var exports = function() {
|
||||
var _this = this;
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
export class Languages {
|
||||
/**
|
||||
* @member {Array.<module:model/LanguageType>} DisplayValues
|
||||
*/
|
||||
public DisplayValues?: LanguageType[];
|
||||
/**
|
||||
* @member {String} Label
|
||||
*/
|
||||
public Label?: string;
|
||||
/**
|
||||
* @member {String} Locale
|
||||
*/
|
||||
public Locale?: string;
|
||||
|
||||
/**
|
||||
* Constructs a <code>Languages</code> from a plain JavaScript object, optionally creating a new instance.
|
||||
|
|
@ -67,39 +55,20 @@
|
|||
* @param {module:model/Languages} obj Optional instance to populate.
|
||||
* @return {module:model/Languages} The populated <code>Languages</code> instance.
|
||||
*/
|
||||
exports.constructFromObject = function(data, obj) {
|
||||
public static constructFromObject(data: any, obj?: Languages) {
|
||||
if (data) {
|
||||
obj = obj || new exports();
|
||||
obj = obj || new Languages();
|
||||
|
||||
if (data.hasOwnProperty('DisplayValues')) {
|
||||
obj['DisplayValues'] = ApiClient.convertToType(data['DisplayValues'], [LanguageType]);
|
||||
obj.DisplayValues = ApiClient.convertToType(data['DisplayValues'], [LanguageType]);
|
||||
}
|
||||
if (data.hasOwnProperty('Label')) {
|
||||
obj['Label'] = ApiClient.convertToType(data['Label'], 'String');
|
||||
obj.Label = ApiClient.convertToType(data['Label'], 'String');
|
||||
}
|
||||
if (data.hasOwnProperty('Locale')) {
|
||||
obj['Locale'] = ApiClient.convertToType(data['Locale'], 'String');
|
||||
obj.Locale = ApiClient.convertToType(data['Locale'], 'String');
|
||||
}
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
|
||||
/**
|
||||
* @member {Array.<module:model/LanguageType>} DisplayValues
|
||||
*/
|
||||
exports.prototype['DisplayValues'] = undefined;
|
||||
/**
|
||||
* @member {String} Label
|
||||
*/
|
||||
exports.prototype['Label'] = undefined;
|
||||
/**
|
||||
* @member {String} Locale
|
||||
*/
|
||||
exports.prototype['Locale'] = undefined;
|
||||
|
||||
|
||||
|
||||
return exports;
|
||||
}));
|
||||
|
||||
|
||||
};
|
||||
|
|
|
|||
|
|
@ -21,42 +21,24 @@
|
|||
*
|
||||
*/
|
||||
|
||||
(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.Rating = factory(root.ProductAdvertisingAPIv1.ApiClient);
|
||||
}
|
||||
}(this, function(ApiClient) {
|
||||
'use strict';
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* The Rating model module.
|
||||
* @module model/Rating
|
||||
* @version 1.0.0
|
||||
*/
|
||||
|
||||
import { ApiClient } from "../ApiClient";
|
||||
|
||||
/**
|
||||
* Constructs a new <code>Rating</code>.
|
||||
* @alias module:model/Rating
|
||||
* @class
|
||||
*/
|
||||
var exports = function() {
|
||||
var _this = this;
|
||||
|
||||
|
||||
};
|
||||
export class Rating {
|
||||
/**
|
||||
* @member {Number} Value
|
||||
*/
|
||||
public Value?: number;
|
||||
|
||||
/**
|
||||
* Constructs a <code>Rating</code> from a plain JavaScript object, optionally creating a new instance.
|
||||
|
|
@ -65,25 +47,15 @@
|
|||
* @param {module:model/Rating} obj Optional instance to populate.
|
||||
* @return {module:model/Rating} The populated <code>Rating</code> instance.
|
||||
*/
|
||||
exports.constructFromObject = function(data, obj) {
|
||||
public static constructFromObject(data: any, obj?: Rating) {
|
||||
if (data) {
|
||||
obj = obj || new exports();
|
||||
obj = obj || new Rating();
|
||||
|
||||
if (data.hasOwnProperty('Value')) {
|
||||
obj['Value'] = ApiClient.convertToType(data['Value'], 'Number');
|
||||
obj.Value = ApiClient.convertToType(data['Value'], 'Number');
|
||||
}
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
|
||||
/**
|
||||
* @member {Number} Value
|
||||
*/
|
||||
exports.prototype['Value'] = undefined;
|
||||
|
||||
|
||||
|
||||
return exports;
|
||||
}));
|
||||
|
||||
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user