diff --git a/src/index.ts b/src/index.ts
index 5c54bab..271ed35 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -88,6 +88,7 @@ import { Rating } from "./model/Rating";
import { Refinement } from "./model/Refinement";
import { RefinementBin } from "./model/RefinementBin";
import { RentalOfferListing } from "./model/RentalOfferListing";
+import { RentalOffers } from "./model/RentalOffers";
import { SearchRefinements } from "./model/SearchRefinements";
import { SingleBooleanValuedAttribute } from "./model/SingleBooleanValuedAttribute";
import { SingleIntegerValuedAttribute } from "./model/SingleIntegerValuedAttribute";
diff --git a/src/model/RentalOffers.ts b/src/model/RentalOffers.ts
index b5de45f..738cb06 100644
--- a/src/model/RentalOffers.ts
+++ b/src/model/RentalOffers.ts
@@ -21,42 +21,25 @@
*
*/
-(function(root, factory) {
- if (typeof define === 'function' && define.amd) {
- // AMD. Register as an anonymous module.
- define(['ApiClient', 'model/RentalOfferListing'], factory);
- } else if (typeof module === 'object' && module.exports) {
- // CommonJS-like environments that support module.exports, like Node.
- module.exports = factory(require('../ApiClient'), require('./RentalOfferListing'));
- } else {
- // Browser globals (root is window)
- if (!root.ProductAdvertisingAPIv1) {
- root.ProductAdvertisingAPIv1 = {};
- }
- root.ProductAdvertisingAPIv1.RentalOffers = factory(root.ProductAdvertisingAPIv1.ApiClient, root.ProductAdvertisingAPIv1.RentalOfferListing);
- }
-}(this, function(ApiClient, RentalOfferListing) {
- 'use strict';
-
-
+/**
+ * The RentalOffers model module.
+ * @module model/RentalOffers
+ * @version 1.0.0
+ */
+import { ApiClient } from "../ApiClient";
+import { RentalOfferListing } from "./RentalOfferListing";
+/**
+ * Constructs a new RentalOffers.
+ * @alias module:model/RentalOffers
+ * @class
+ */
+export class RentalOffers {
/**
- * The RentalOffers model module.
- * @module model/RentalOffers
- * @version 1.0.0
+ * @member {Array.} Listings
*/
-
- /**
- * Constructs a new RentalOffers.
- * @alias module:model/RentalOffers
- * @class
- */
- var exports = function() {
- var _this = this;
-
-
- };
+ public Listings?: RentalOfferListing[];
/**
* Constructs a RentalOffers from a plain JavaScript object, optionally creating a new instance.
@@ -65,25 +48,14 @@
* @param {module:model/RentalOffers} obj Optional instance to populate.
* @return {module:model/RentalOffers} The populated RentalOffers instance.
*/
- exports.constructFromObject = function(data, obj) {
+ public static constructFromObject(data: any, obj?: RentalOffers) {
if (data) {
- obj = obj || new exports();
+ obj = obj || new RentalOffers();
if (data.hasOwnProperty('Listings')) {
- obj['Listings'] = ApiClient.convertToType(data['Listings'], [RentalOfferListing]);
+ obj.Listings = ApiClient.convertToType(data['Listings'], [RentalOfferListing]);
}
}
return obj;
}
-
- /**
- * @member {Array.} Listings
- */
- exports.prototype['Listings'] = undefined;
-
-
-
- return exports;
-}));
-
-
+};