diff --git a/src/index.ts b/src/index.ts
index f3e477e..000b2ba 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -50,6 +50,7 @@ import { GetItemsRequest } from "./model/GetItemsRequest";
import { GetItemsResource } from "./model/GetItemsResource";
import { ImageSize } from "./model/ImageSize";
import { ImageType } from "./model/ImageType";
+import { Images } from "./model/Images";
import { ItemIdType } from "./model/ItemIdType";
import { Languages } from "./model/Languages";
import { LanguageType } from "./model/LanguageType";
diff --git a/src/model/Images.ts b/src/model/Images.ts
index cd95e26..e7ec41c 100644
--- a/src/model/Images.ts
+++ b/src/model/Images.ts
@@ -21,43 +21,29 @@
*
*/
-(function(root, factory) {
- if (typeof define === 'function' && define.amd) {
- // AMD. Register as an anonymous module.
- 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';
-
-
+/**
+ * The Images model module.
+ * @module model/Images
+ * @version 1.0.0
+ */
+import { ApiClient } from "../ApiClient";
+import { ImageType } from "./ImageType";
+/**
+ * Constructs a new Images.
+ * @alias module:model/Images
+ * @class
+ */
+export class Images {
/**
- * The Images model module.
- * @module model/Images
- * @version 1.0.0
+ * @member {module:model/ImageType} Primary
*/
-
+ public Primary?: ImageType;
/**
- * Constructs a new Images.
- * @alias module:model/Images
- * @class
+ * @member {Array.} Variants
*/
- var exports = function() {
- var _this = this;
-
-
-
- };
+ public Variants?: ImageType;
/**
* Constructs a Images from a plain JavaScript object, optionally creating a new instance.
@@ -66,32 +52,17 @@
* @param {module:model/Images} obj Optional instance to populate.
* @return {module:model/Images} The populated Images instance.
*/
- exports.constructFromObject = function(data, obj) {
+ public static constructFromObject(data: any, obj?: Images) {
if (data) {
- obj = obj || new exports();
+ obj = obj || new Images();
if (data.hasOwnProperty('Primary')) {
- obj['Primary'] = ImageType.constructFromObject(data['Primary']);
+ obj.Primary = ImageType.constructFromObject(data['Primary']);
}
if (data.hasOwnProperty('Variants')) {
- obj['Variants'] = ApiClient.convertToType(data['Variants'], [ImageType]);
+ obj.Variants = ApiClient.convertToType(data['Variants'], [ImageType]);
}
}
return obj;
}
-
- /**
- * @member {module:model/ImageType} Primary
- */
- exports.prototype['Primary'] = undefined;
- /**
- * @member {Array.} Variants
- */
- exports.prototype['Variants'] = undefined;
-
-
-
- return exports;
-}));
-
-
+};