Refactored model/MultiValuedAttribute.
This commit is contained in:
parent
37e0f852a6
commit
cbc8c0d41b
|
|
@ -44,6 +44,7 @@ import { DurationPrice } from "./model/DurationPrice";
|
|||
import { ErrorData } from "./model/ErrorData";
|
||||
import { Languages } from "./model/Languages";
|
||||
import { LanguageType } from "./model/LanguageType";
|
||||
import { MultiValuedAttribute } from "./model/MultiValuedAttribute";
|
||||
import { OfferPrice } from "./model/OfferPrice";
|
||||
import { OfferSavings } from "./model/OfferSavings";
|
||||
import { PriceType } from "./model/PriceType";
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
* @module model/MultiValuedAttribute
|
||||
* @version 1.0.0
|
||||
*/
|
||||
|
||||
/**
|
||||
import { ApiClient } from "../ApiClient";
|
||||
|
||||
/**
|
||||
* Constructs a new <code>MultiValuedAttribute</code>.
|
||||
* @alias module:model/MultiValuedAttribute
|
||||
* @class
|
||||
*/
|
||||
var exports = function() {
|
||||
var _this = this;
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
export class MultiValuedAttribute {
|
||||
/**
|
||||
* @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.
|
||||
|
|
@ -67,39 +55,20 @@
|
|||
* @param {module:model/MultiValuedAttribute} obj Optional instance to populate.
|
||||
* @return {module:model/MultiValuedAttribute} The populated <code>MultiValuedAttribute</code> instance.
|
||||
*/
|
||||
exports.constructFromObject = function(data, obj) {
|
||||
public static constructFromObject(data: any, obj?: MultiValuedAttribute) {
|
||||
if (data) {
|
||||
obj = obj || new exports();
|
||||
obj = obj || new MultiValuedAttribute();
|
||||
|
||||
if (data.hasOwnProperty('DisplayValues')) {
|
||||
obj['DisplayValues'] = ApiClient.convertToType(data['DisplayValues'], ['String']);
|
||||
obj.DisplayValues = ApiClient.convertToType(data['DisplayValues'], ['String']);
|
||||
}
|
||||
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.<String>} DisplayValues
|
||||
*/
|
||||
exports.prototype['DisplayValues'] = undefined;
|
||||
/**
|
||||
* @member {String} Label
|
||||
*/
|
||||
exports.prototype['Label'] = undefined;
|
||||
/**
|
||||
* @member {String} Locale
|
||||
*/
|
||||
exports.prototype['Locale'] = undefined;
|
||||
|
||||
|
||||
|
||||
return exports;
|
||||
}));
|
||||
|
||||
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user