diff --git a/src/index.ts b/src/index.ts
index 4c7f205..c66cd4a 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -36,6 +36,7 @@ import { Classifications } from "./model/Classifications";
import { Condition } from "./model/Condition";
import { ContentRating } from "./model/ContentRating";
import { Contributor } from "./model/Contributor";
+import { Languages } from "./model/Languages";
import { LanguageType } from "./model/LanguageType";
import { OfferSavings } from "./model/OfferSavings";
import { PriceType } from "./model/PriceType";
diff --git a/src/model/Languages.ts b/src/model/Languages.ts
index b30b67c..edbfc6b 100644
--- a/src/model/Languages.ts
+++ b/src/model/Languages.ts
@@ -15,51 +15,39 @@
* 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
+ * @version 1.0.0
+ */
+/**
+ * Constructs a new Languages.
+ * @alias module:model/Languages
+ * @class
+ */
+export class Languages {
/**
- * The Languages model module.
- * @module model/Languages
- * @version 1.0.0
+ * @member {Array.} DisplayValues
*/
-
+ public DisplayValues?: LanguageType[];
/**
- * Constructs a new Languages.
- * @alias module:model/Languages
- * @class
+ * @member {String} Label
*/
- var exports = function() {
- var _this = this;
-
-
-
-
- };
-
+ public Label?: string;
+ /**
+ * @member {String} Locale
+ */
+ public Locale?: string;
+
/**
* Constructs a Languages from a plain JavaScript object, optionally creating a new instance.
* Copies all relevant properties from data to obj if supplied or a new instance if not.
@@ -67,39 +55,20 @@
* @param {module:model/Languages} obj Optional instance to populate.
* @return {module:model/Languages} The populated Languages 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.} DisplayValues
- */
- exports.prototype['DisplayValues'] = undefined;
- /**
- * @member {String} Label
- */
- exports.prototype['Label'] = undefined;
- /**
- * @member {String} Locale
- */
- exports.prototype['Locale'] = undefined;
-
-
-
- return exports;
-}));
-
-
+};