Refactored model/VariationDimension.
This commit is contained in:
parent
4b72b5f6ea
commit
25a3bca6bf
|
|
@ -67,6 +67,7 @@ import { SingleBooleanValuedAttribute } from "./model/SingleBooleanValuedAttribu
|
||||||
import { SingleIntegerValuedAttribute } from "./model/SingleIntegerValuedAttribute";
|
import { SingleIntegerValuedAttribute } from "./model/SingleIntegerValuedAttribute";
|
||||||
import { SingleStringValuedAttribute } from "./model/SingleStringValuedAttribute";
|
import { SingleStringValuedAttribute } from "./model/SingleStringValuedAttribute";
|
||||||
import { UnitBasedAttribute } from "./model/UnitBasedAttribute";
|
import { UnitBasedAttribute } from "./model/UnitBasedAttribute";
|
||||||
|
import { VariationDimension } from "./model/VariationDimension";
|
||||||
import { WebsiteSalesRank } from "./model/WebsiteSalesRank";
|
import { WebsiteSalesRank } from "./model/WebsiteSalesRank";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -21,45 +21,36 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(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.VariationDimension = factory(root.ProductAdvertisingAPIv1.ApiClient);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The VariationDimension model module.
|
* The VariationDimension model module.
|
||||||
* @module model/VariationDimension
|
* @module model/VariationDimension
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { ApiClient } from "../ApiClient";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>VariationDimension</code>.
|
* Constructs a new <code>VariationDimension</code>.
|
||||||
* @alias module:model/VariationDimension
|
* @alias module:model/VariationDimension
|
||||||
* @class
|
* @class
|
||||||
*/
|
*/
|
||||||
var exports = function() {
|
export class VariationDimension {
|
||||||
var _this = this;
|
/**
|
||||||
|
* @member {String} DisplayName
|
||||||
|
*/
|
||||||
|
public DisplayName?: string;
|
||||||
|
/**
|
||||||
|
* @member {String} Locale
|
||||||
};
|
*/
|
||||||
|
public Locale?: string;
|
||||||
|
/**
|
||||||
|
* @member {String} Name
|
||||||
|
*/
|
||||||
|
public Name?: string;
|
||||||
|
/**
|
||||||
|
* @member {Array.<String>} Values
|
||||||
|
*/
|
||||||
|
public Values?: string[];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>VariationDimension</code> from a plain JavaScript object, optionally creating a new instance.
|
* Constructs a <code>VariationDimension</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
|
|
@ -68,46 +59,23 @@
|
||||||
* @param {module:model/VariationDimension} obj Optional instance to populate.
|
* @param {module:model/VariationDimension} obj Optional instance to populate.
|
||||||
* @return {module:model/VariationDimension} The populated <code>VariationDimension</code> instance.
|
* @return {module:model/VariationDimension} The populated <code>VariationDimension</code> instance.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(data, obj) {
|
public static constructFromObject(data: any, obj?: VariationDimension) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new exports();
|
obj = obj || new VariationDimension();
|
||||||
|
|
||||||
if (data.hasOwnProperty('DisplayName')) {
|
if (data.hasOwnProperty('DisplayName')) {
|
||||||
obj['DisplayName'] = ApiClient.convertToType(data['DisplayName'], 'String');
|
obj.DisplayName = ApiClient.convertToType(data['DisplayName'], 'String');
|
||||||
}
|
}
|
||||||
if (data.hasOwnProperty('Locale')) {
|
if (data.hasOwnProperty('Locale')) {
|
||||||
obj['Locale'] = ApiClient.convertToType(data['Locale'], 'String');
|
obj.Locale = ApiClient.convertToType(data['Locale'], 'String');
|
||||||
}
|
}
|
||||||
if (data.hasOwnProperty('Name')) {
|
if (data.hasOwnProperty('Name')) {
|
||||||
obj['Name'] = ApiClient.convertToType(data['Name'], 'String');
|
obj.Name = ApiClient.convertToType(data['Name'], 'String');
|
||||||
}
|
}
|
||||||
if (data.hasOwnProperty('Values')) {
|
if (data.hasOwnProperty('Values')) {
|
||||||
obj['Values'] = ApiClient.convertToType(data['Values'], ['String']);
|
obj.Values = ApiClient.convertToType(data['Values'], ['String']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
|
};
|
||||||
/**
|
|
||||||
* @member {String} DisplayName
|
|
||||||
*/
|
|
||||||
exports.prototype['DisplayName'] = undefined;
|
|
||||||
/**
|
|
||||||
* @member {String} Locale
|
|
||||||
*/
|
|
||||||
exports.prototype['Locale'] = undefined;
|
|
||||||
/**
|
|
||||||
* @member {String} Name
|
|
||||||
*/
|
|
||||||
exports.prototype['Name'] = undefined;
|
|
||||||
/**
|
|
||||||
* @member {Array.<String>} Values
|
|
||||||
*/
|
|
||||||
exports.prototype['Values'] = undefined;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user