Refactored model/MultiValuedAttribute.

This commit is contained in:
David Ball 2024-07-17 22:01:18 -04:00
parent 37e0f852a6
commit cbc8c0d41b
2 changed files with 28 additions and 58 deletions

View File

@ -44,6 +44,7 @@ import { DurationPrice } from "./model/DurationPrice";
import { ErrorData } from "./model/ErrorData"; import { ErrorData } from "./model/ErrorData";
import { Languages } from "./model/Languages"; import { Languages } from "./model/Languages";
import { LanguageType } from "./model/LanguageType"; import { LanguageType } from "./model/LanguageType";
import { MultiValuedAttribute } from "./model/MultiValuedAttribute";
import { OfferPrice } from "./model/OfferPrice"; import { OfferPrice } from "./model/OfferPrice";
import { OfferSavings } from "./model/OfferSavings"; import { OfferSavings } from "./model/OfferSavings";
import { PriceType } from "./model/PriceType"; import { PriceType } from "./model/PriceType";

View File

@ -21,44 +21,32 @@
* *
*/ */
(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.MultiValuedAttribute = factory(root.ProductAdvertisingAPIv1.ApiClient);
}
}(this, function(ApiClient) {
'use strict';
/**
* The MultiValuedAttribute model module. * The MultiValuedAttribute model module.
* @module model/MultiValuedAttribute * @module model/MultiValuedAttribute
* @version 1.0.0 * @version 1.0.0
*/ */
/** import { ApiClient } from "../ApiClient";
/**
* Constructs a new <code>MultiValuedAttribute</code>. * Constructs a new <code>MultiValuedAttribute</code>.
* @alias module:model/MultiValuedAttribute * @alias module:model/MultiValuedAttribute
* @class * @class
*/ */
var exports = function() { export class MultiValuedAttribute {
var _this = this; /**
* @member {Array.<String>} DisplayValues
*/
public DisplayValues?: string[];
/**
}; * @member {String} Label
*/
public Label?: string;
/**
* @member {String} Locale
*/
public Locale?: string;
/** /**
* Constructs a <code>MultiValuedAttribute</code> from a plain JavaScript object, optionally creating a new instance. * Constructs a <code>MultiValuedAttribute</code> from a plain JavaScript object, optionally creating a new instance.
@ -67,39 +55,20 @@
* @param {module:model/MultiValuedAttribute} obj Optional instance to populate. * @param {module:model/MultiValuedAttribute} obj Optional instance to populate.
* @return {module:model/MultiValuedAttribute} The populated <code>MultiValuedAttribute</code> instance. * @return {module:model/MultiValuedAttribute} The populated <code>MultiValuedAttribute</code> instance.
*/ */
exports.constructFromObject = function(data, obj) { public static constructFromObject(data: any, obj?: MultiValuedAttribute) {
if (data) { if (data) {
obj = obj || new exports(); obj = obj || new MultiValuedAttribute();
if (data.hasOwnProperty('DisplayValues')) { if (data.hasOwnProperty('DisplayValues')) {
obj['DisplayValues'] = ApiClient.convertToType(data['DisplayValues'], ['String']); obj.DisplayValues = ApiClient.convertToType(data['DisplayValues'], ['String']);
} }
if (data.hasOwnProperty('Label')) { if (data.hasOwnProperty('Label')) {
obj['Label'] = ApiClient.convertToType(data['Label'], 'String'); obj.Label = ApiClient.convertToType(data['Label'], 'String');
} }
if (data.hasOwnProperty('Locale')) { if (data.hasOwnProperty('Locale')) {
obj['Locale'] = ApiClient.convertToType(data['Locale'], 'String'); obj.Locale = ApiClient.convertToType(data['Locale'], 'String');
} }
} }
return obj; return obj;
} }
};
/**
* @member {Array.<String>} DisplayValues
*/
exports.prototype['DisplayValues'] = undefined;
/**
* @member {String} Label
*/
exports.prototype['Label'] = undefined;
/**
* @member {String} Locale
*/
exports.prototype['Locale'] = undefined;
return exports;
}));