From 4b72b5f6ea23d54fbde5e01611aedb2e9e617b1d Mon Sep 17 00:00:00 2001 From: David Ball Date: Wed, 17 Jul 2024 23:33:15 -0400 Subject: [PATCH] Refactored model/MaxPrice. --- src/index.ts | 1 + src/model/MaxPrice.ts | 59 ++++++++++--------------------------------- 2 files changed, 15 insertions(+), 45 deletions(-) diff --git a/src/index.ts b/src/index.ts index 000b2ba..37bad5a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -54,6 +54,7 @@ import { Images } from "./model/Images"; import { ItemIdType } from "./model/ItemIdType"; import { Languages } from "./model/Languages"; import { LanguageType } from "./model/LanguageType"; +import { MaxPrice } from "./model/MaxPrice"; import { Merchant } from "./model/Merchant"; import { MultiValuedAttribute } from "./model/MultiValuedAttribute"; import { OfferCount } from "./model/OfferCount"; diff --git a/src/model/MaxPrice.ts b/src/model/MaxPrice.ts index d523c02..1350a8e 100644 --- a/src/model/MaxPrice.ts +++ b/src/model/MaxPrice.ts @@ -15,48 +15,24 @@ * permissions and limitations under the License. */ - /** +/** * 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'], 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.MaxPrice = factory(root.ProductAdvertisingAPIv1.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The MaxPrice model module. - * @module model/MaxPrice - * @version 1.0.0 - */ - - /** - * Constructs a new MaxPrice. - * @alias module:model/MaxPrice - * @class - */ - var exports = function() { - var _this = this; - - }; +/** + * The MaxPrice model module. + * @module model/MaxPrice + * @version 1.0.0 + */ +/** + * Constructs a new MaxPrice. + * @alias module:model/MaxPrice + * @class + */ +export class MaxPrice { /** * Constructs a MaxPrice 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. @@ -64,14 +40,7 @@ * @param {module:model/MaxPrice} obj Optional instance to populate. * @return {module:model/MaxPrice} The populated MaxPrice instance. */ - exports.constructFromObject = function(data, obj) { + public static constructFromObject(data: any, _obj?: any) { return data; } - - - - - return exports; -})); - - +};