Compare commits

..

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

4 changed files with 110 additions and 53 deletions

View File

@ -49,8 +49,6 @@ 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 { ImageSize } from "./model/ImageSize"; import { ImageSize } from "./model/ImageSize";
import { ImageType } from "./model/ImageType";
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";

View File

@ -47,7 +47,6 @@ export class ImageSize {
* @member {Number} Width * @member {Number} Width
*/ */
public Width?: number; public Width?: number;
/** /**
* Constructs a <code>ImageSize</code> from a plain JavaScript object, optionally creating a new instance. * Constructs a <code>ImageSize</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.

View File

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

View File

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