diff --git a/src/index.ts b/src/index.ts
index c08a747..e8edc0f 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -62,7 +62,9 @@ import { OfferPrice } from "./model/OfferPrice";
import { OfferSavings } from "./model/OfferSavings";
import { PartnerType } from "./model/PartnerType";
import { PriceType } from "./model/PriceType";
+import { Properties } from "./model/Properties";
import { Rating } from "./model/Rating";
+import { RefinementBin } from "./model/RefinementBin";
import { SingleBooleanValuedAttribute } from "./model/SingleBooleanValuedAttribute";
import { SingleIntegerValuedAttribute } from "./model/SingleIntegerValuedAttribute";
import { SingleStringValuedAttribute } from "./model/SingleStringValuedAttribute";
diff --git a/src/model/Properties.ts b/src/model/Properties.ts
index 48f0857..73004e0 100644
--- a/src/model/Properties.ts
+++ b/src/model/Properties.ts
@@ -21,44 +21,21 @@
*
*/
-(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.Properties = factory(root.ProductAdvertisingAPIv1.ApiClient);
- }
-}(this, function(ApiClient) {
- 'use strict';
+/**
+ * The Properties model module.
+ * @module model/Properties
+ * @version 1.0.0
+ */
+import { ApiClient } from "../ApiClient";
-
-
- /**
- * The Properties model module.
- * @module model/Properties
- * @version 1.0.0
- */
-
- /**
- * Constructs a new Properties.
- * @alias module:model/Properties
- * @class
- * @extends Object
- */
- var exports = function() {
- var _this = this;
-
- return _this;
- };
-
+/**
+ * Constructs a new Properties.
+ * @alias module:model/Properties
+ * @class
+ * @extends Object
+ */
+export class Properties {
/**
* Constructs a Properties 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.
@@ -66,19 +43,11 @@
* @param {module:model/Properties} obj Optional instance to populate.
* @return {module:model/Properties} The populated Properties instance.
*/
- exports.constructFromObject = function(data, obj) {
+ public static constructFromObject(data: any, obj?: Properties) {
if (data) {
- obj = obj || new exports();
+ obj = obj || new Properties();
ApiClient.constructFromObject(data, obj, 'String');
-
}
return obj;
}
-
-
-
-
- return exports;
-}));
-
-
+};
diff --git a/src/model/RefinementBin.ts b/src/model/RefinementBin.ts
index 935a25f..916bf4c 100644
--- a/src/model/RefinementBin.ts
+++ b/src/model/RefinementBin.ts
@@ -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.RefinementBin = factory(root.ProductAdvertisingAPIv1.ApiClient);
- }
-}(this, function(ApiClient) {
- 'use strict';
-
-
+/**
+ * The RefinementBin model module.
+ * @module model/RefinementBin
+ * @version 1.0.0
+ */
+import { ApiClient } from "../ApiClient";
+/**
+ * Constructs a new RefinementBin.
+ * @alias module:model/RefinementBin
+ * @class
+ */
+export class RefinementBin {
/**
- * The RefinementBin model module.
- * @module model/RefinementBin
- * @version 1.0.0
+ * @member {String} DisplayName
*/
-
+ public DisplayName?: string;
/**
- * Constructs a new RefinementBin.
- * @alias module:model/RefinementBin
- * @class
+ * @member {String} Id
*/
- var exports = function() {
- var _this = this;
-
-
-
- };
+ public Id?: string;
/**
* Constructs a RefinementBin from a plain JavaScript object, optionally creating a new instance.
@@ -66,32 +51,17 @@
* @param {module:model/RefinementBin} obj Optional instance to populate.
* @return {module:model/RefinementBin} The populated RefinementBin instance.
*/
- exports.constructFromObject = function(data, obj) {
+ public static constructFromObject(data: any, obj?: RefinementBin) {
if (data) {
- obj = obj || new exports();
+ obj = obj || new RefinementBin();
if (data.hasOwnProperty('DisplayName')) {
- obj['DisplayName'] = ApiClient.convertToType(data['DisplayName'], 'String');
+ obj.DisplayName = ApiClient.convertToType(data['DisplayName'], 'String');
}
if (data.hasOwnProperty('Id')) {
- obj['Id'] = ApiClient.convertToType(data['Id'], 'String');
+ obj.Id = ApiClient.convertToType(data['Id'], 'String');
}
}
return obj;
}
-
- /**
- * @member {String} DisplayName
- */
- exports.prototype['DisplayName'] = undefined;
- /**
- * @member {String} Id
- */
- exports.prototype['Id'] = undefined;
-
-
-
- return exports;
-}));
-
-
+};