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 { OfferSavings } from "./model/OfferSavings";
|
||||||
import { PartnerType } from "./model/PartnerType";
|
import { PartnerType } from "./model/PartnerType";
|
||||||
import { PriceType } from "./model/PriceType";
|
import { PriceType } from "./model/PriceType";
|
||||||
|
import { Properties } from "./model/Properties";
|
||||||
import { Rating } from "./model/Rating";
|
import { Rating } from "./model/Rating";
|
||||||
|
import { RefinementBin } from "./model/RefinementBin";
|
||||||
import { SingleBooleanValuedAttribute } from "./model/SingleBooleanValuedAttribute";
|
import { SingleBooleanValuedAttribute } from "./model/SingleBooleanValuedAttribute";
|
||||||
import { SingleIntegerValuedAttribute } from "./model/SingleIntegerValuedAttribute";
|
import { SingleIntegerValuedAttribute } from "./model/SingleIntegerValuedAttribute";
|
||||||
import { SingleStringValuedAttribute } from "./model/SingleStringValuedAttribute";
|
import { SingleStringValuedAttribute } from "./model/SingleStringValuedAttribute";
|
||||||
|
|
|
||||||
|
|
@ -21,44 +21,21 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
/**
|
||||||
if (typeof define === 'function' && define.amd) {
|
* The Properties model module.
|
||||||
// AMD. Register as an anonymous module.
|
* @module model/Properties
|
||||||
define(['ApiClient'], factory);
|
* @version 1.0.0
|
||||||
} 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';
|
|
||||||
|
|
||||||
|
import { ApiClient } from "../ApiClient";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructs a new <code>Properties</code>.
|
||||||
/**
|
* @alias module:model/Properties
|
||||||
* The Properties model module.
|
* @class
|
||||||
* @module model/Properties
|
* @extends Object
|
||||||
* @version 1.0.0
|
*/
|
||||||
*/
|
export class Properties {
|
||||||
|
|
||||||
/**
|
|
||||||
* Constructs a new <code>Properties</code>.
|
|
||||||
* @alias module:model/Properties
|
|
||||||
* @class
|
|
||||||
* @extends Object
|
|
||||||
*/
|
|
||||||
var exports = function() {
|
|
||||||
var _this = this;
|
|
||||||
|
|
||||||
return _this;
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>Properties</code> from a plain JavaScript object, optionally creating a new instance.
|
* 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.
|
* 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.
|
* @param {module:model/Properties} obj Optional instance to populate.
|
||||||
* @return {module:model/Properties} The populated <code>Properties</code> instance.
|
* @return {module:model/Properties} The populated <code>Properties</code> instance.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(data, obj) {
|
public static constructFromObject(data: any, obj?: Properties) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new exports();
|
obj = obj || new Properties();
|
||||||
ApiClient.constructFromObject(data, obj, 'String');
|
ApiClient.constructFromObject(data, obj, 'String');
|
||||||
|
|
||||||
}
|
}
|
||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -21,43 +21,28 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
/**
|
||||||
if (typeof define === 'function' && define.amd) {
|
* The RefinementBin model module.
|
||||||
// AMD. Register as an anonymous module.
|
* @module model/RefinementBin
|
||||||
define(['ApiClient'], factory);
|
* @version 1.0.0
|
||||||
} 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';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
import { ApiClient } from "../ApiClient";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructs a new <code>RefinementBin</code>.
|
||||||
|
* @alias module:model/RefinementBin
|
||||||
|
* @class
|
||||||
|
*/
|
||||||
|
export class RefinementBin {
|
||||||
/**
|
/**
|
||||||
* The RefinementBin model module.
|
* @member {String} DisplayName
|
||||||
* @module model/RefinementBin
|
|
||||||
* @version 1.0.0
|
|
||||||
*/
|
*/
|
||||||
|
public DisplayName?: string;
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>RefinementBin</code>.
|
* @member {String} Id
|
||||||
* @alias module:model/RefinementBin
|
|
||||||
* @class
|
|
||||||
*/
|
*/
|
||||||
var exports = function() {
|
public Id?: string;
|
||||||
var _this = this;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>RefinementBin</code> from a plain JavaScript object, optionally creating a new instance.
|
* 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.
|
* @param {module:model/RefinementBin} obj Optional instance to populate.
|
||||||
* @return {module:model/RefinementBin} The populated <code>RefinementBin</code> instance.
|
* @return {module:model/RefinementBin} The populated <code>RefinementBin</code> instance.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(data, obj) {
|
public static constructFromObject(data: any, obj?: RefinementBin) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new exports();
|
obj = obj || new RefinementBin();
|
||||||
|
|
||||||
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('Id')) {
|
if (data.hasOwnProperty('Id')) {
|
||||||
obj['Id'] = ApiClient.convertToType(data['Id'], 'String');
|
obj.Id = ApiClient.convertToType(data['Id'], 'String');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return obj;
|
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