Refactored model/RefinementBin.
This commit is contained in:
parent
25a3bca6bf
commit
7bcabac672
|
|
@ -62,7 +62,9 @@ import { OfferPrice } from "./model/OfferPrice";
|
|||
import { OfferSavings } from "./model/OfferSavings";
|
||||
import { PartnerType } from "./model/PartnerType";
|
||||
import { PriceType } from "./model/PriceType";
|
||||
import { Properties } from "./model/Properties";
|
||||
import { Rating } from "./model/Rating";
|
||||
import { RefinementBin } from "./model/RefinementBin";
|
||||
import { SingleBooleanValuedAttribute } from "./model/SingleBooleanValuedAttribute";
|
||||
import { SingleIntegerValuedAttribute } from "./model/SingleIntegerValuedAttribute";
|
||||
import { SingleStringValuedAttribute } from "./model/SingleStringValuedAttribute";
|
||||
|
|
|
|||
|
|
@ -21,44 +21,21 @@
|
|||
*
|
||||
*/
|
||||
|
||||
(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.Properties = factory(root.ProductAdvertisingAPIv1.ApiClient);
|
||||
}
|
||||
}(this, function(ApiClient) {
|
||||
'use strict';
|
||||
/**
|
||||
* The Properties model module.
|
||||
* @module model/Properties
|
||||
* @version 1.0.0
|
||||
*/
|
||||
|
||||
import { ApiClient } from "../ApiClient";
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* The Properties model module.
|
||||
* @module model/Properties
|
||||
* @version 1.0.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* Constructs a new <code>Properties</code>.
|
||||
* @alias module:model/Properties
|
||||
* @class
|
||||
* @extends Object
|
||||
*/
|
||||
var exports = function() {
|
||||
var _this = this;
|
||||
|
||||
return _this;
|
||||
};
|
||||
|
||||
/**
|
||||
* Constructs a new <code>Properties</code>.
|
||||
* @alias module:model/Properties
|
||||
* @class
|
||||
* @extends Object
|
||||
*/
|
||||
export class Properties {
|
||||
/**
|
||||
* Constructs a <code>Properties</code> from a plain JavaScript object, optionally creating a new instance.
|
||||
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
||||
|
|
@ -66,19 +43,11 @@
|
|||
* @param {module:model/Properties} obj Optional instance to populate.
|
||||
* @return {module:model/Properties} The populated <code>Properties</code> instance.
|
||||
*/
|
||||
exports.constructFromObject = function(data, obj) {
|
||||
public static constructFromObject(data: any, obj?: Properties) {
|
||||
if (data) {
|
||||
obj = obj || new exports();
|
||||
obj = obj || new Properties();
|
||||
ApiClient.constructFromObject(data, obj, 'String');
|
||||
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
return exports;
|
||||
}));
|
||||
|
||||
|
||||
};
|
||||
|
|
|
|||
|
|
@ -21,43 +21,28 @@
|
|||
*
|
||||
*/
|
||||
|
||||
(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.RefinementBin = factory(root.ProductAdvertisingAPIv1.ApiClient);
|
||||
}
|
||||
}(this, function(ApiClient) {
|
||||
'use strict';
|
||||
|
||||
|
||||
/**
|
||||
* The RefinementBin model module.
|
||||
* @module model/RefinementBin
|
||||
* @version 1.0.0
|
||||
*/
|
||||
|
||||
import { ApiClient } from "../ApiClient";
|
||||
|
||||
/**
|
||||
* Constructs a new <code>RefinementBin</code>.
|
||||
* @alias module:model/RefinementBin
|
||||
* @class
|
||||
*/
|
||||
export class RefinementBin {
|
||||
/**
|
||||
* The RefinementBin model module.
|
||||
* @module model/RefinementBin
|
||||
* @version 1.0.0
|
||||
* @member {String} DisplayName
|
||||
*/
|
||||
|
||||
public DisplayName?: string;
|
||||
/**
|
||||
* Constructs a new <code>RefinementBin</code>.
|
||||
* @alias module:model/RefinementBin
|
||||
* @class
|
||||
* @member {String} Id
|
||||
*/
|
||||
var exports = function() {
|
||||
var _this = this;
|
||||
|
||||
|
||||
|
||||
};
|
||||
public Id?: string;
|
||||
|
||||
/**
|
||||
* Constructs a <code>RefinementBin</code> from a plain JavaScript object, optionally creating a new instance.
|
||||
|
|
@ -66,32 +51,17 @@
|
|||
* @param {module:model/RefinementBin} obj Optional instance to populate.
|
||||
* @return {module:model/RefinementBin} The populated <code>RefinementBin</code> instance.
|
||||
*/
|
||||
exports.constructFromObject = function(data, obj) {
|
||||
public static constructFromObject(data: any, obj?: RefinementBin) {
|
||||
if (data) {
|
||||
obj = obj || new exports();
|
||||
obj = obj || new RefinementBin();
|
||||
|
||||
if (data.hasOwnProperty('DisplayName')) {
|
||||
obj['DisplayName'] = ApiClient.convertToType(data['DisplayName'], 'String');
|
||||
obj.DisplayName = ApiClient.convertToType(data['DisplayName'], 'String');
|
||||
}
|
||||
if (data.hasOwnProperty('Id')) {
|
||||
obj['Id'] = ApiClient.convertToType(data['Id'], 'String');
|
||||
obj.Id = ApiClient.convertToType(data['Id'], 'String');
|
||||
}
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
|
||||
/**
|
||||
* @member {String} DisplayName
|
||||
*/
|
||||
exports.prototype['DisplayName'] = undefined;
|
||||
/**
|
||||
* @member {String} Id
|
||||
*/
|
||||
exports.prototype['Id'] = undefined;
|
||||
|
||||
|
||||
|
||||
return exports;
|
||||
}));
|
||||
|
||||
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user