Compare commits

...

5 Commits

8 changed files with 129 additions and 278 deletions

View File

@ -56,6 +56,7 @@ import { Languages } from "./model/Languages";
import { LanguageType } from "./model/LanguageType";
import { MaxPrice } from "./model/MaxPrice";
import { Merchant } from "./model/Merchant";
import { MinPrice } from "./model/MinPrice";
import { MultiValuedAttribute } from "./model/MultiValuedAttribute";
import { OfferCount } from "./model/OfferCount";
import { OfferPrice } from "./model/OfferPrice";
@ -63,6 +64,9 @@ import { OfferSavings } from "./model/OfferSavings";
import { PartnerType } from "./model/PartnerType";
import { Price } from "./model/Price";
import { PriceType } from "./model/PriceType";
import { ProductAdvertisingAPIClientException } from "./model/ProductAdvertisingAPIClientException";
import { ProductAdvertisingAPIServiceException } from "./model/ProductAdvertisingAPIServiceException";
import { ProductInfo } from "./model/ProductInfo";
import { Properties } from "./model/Properties";
import { Rating } from "./model/Rating";
import { Refinement } from "./model/Refinement";
@ -71,6 +75,7 @@ import { SearchRefinements } from "./model/SearchRefinements";
import { SingleBooleanValuedAttribute } from "./model/SingleBooleanValuedAttribute";
import { SingleIntegerValuedAttribute } from "./model/SingleIntegerValuedAttribute";
import { SingleStringValuedAttribute } from "./model/SingleStringValuedAttribute";
import { TradeInPrice } from "./model/TradeInPrice";
import { UnitBasedAttribute } from "./model/UnitBasedAttribute";
import { VariationDimension } from "./model/VariationDimension";
import { VariationSummary } from "./model/VariationSummary";

View File

@ -40,7 +40,5 @@ export class MaxPrice {
* @param {module:model/MaxPrice} obj Optional instance to populate.
* @return {module:model/MaxPrice} The populated <code>MaxPrice</code> instance.
*/
public static constructFromObject(data: any, _obj?: any) {
return data;
}
public static constructFromObject(data: any, _obj?: any) { return data; }
};

View File

@ -21,42 +21,18 @@
*
*/
(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.MinPrice = factory(root.ProductAdvertisingAPIv1.ApiClient);
}
}(this, function(ApiClient) {
'use strict';
/**
/**
* The MinPrice model module.
* @module model/MinPrice
* @version 1.0.0
*/
/**
/**
* Constructs a new <code>MinPrice</code>.
* @alias module:model/MinPrice
* @class
*/
var exports = function() {
var _this = this;
};
export class MinPrice {
/**
* Constructs a <code>MinPrice</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.
@ -64,14 +40,5 @@
* @param {module:model/MinPrice} obj Optional instance to populate.
* @return {module:model/MinPrice} The populated <code>MinPrice</code> instance.
*/
exports.constructFromObject = function(data, obj) {
return data;
}
return exports;
}));
public static constructFromObject(data: any, _obj?: MinPrice) { return data; }
};

View File

@ -21,42 +21,25 @@
*
*/
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['ApiClient', 'model/ErrorData'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
module.exports = factory(require('../ApiClient'), require('./ErrorData'));
} else {
// Browser globals (root is window)
if (!root.ProductAdvertisingAPIv1) {
root.ProductAdvertisingAPIv1 = {};
}
root.ProductAdvertisingAPIv1.ProductAdvertisingAPIClientException = factory(root.ProductAdvertisingAPIv1.ApiClient, root.ProductAdvertisingAPIv1.ErrorData);
}
}(this, function(ApiClient, ErrorData) {
'use strict';
/**
/**
* The ProductAdvertisingAPIClientException model module.
* @module model/ProductAdvertisingAPIClientException
* @version 1.0.0
*/
/**
import { ApiClient } from "../ApiClient";
import { ErrorData } from "./ErrorData";
/**
* Constructs a new <code>ProductAdvertisingAPIClientException</code>.
* @alias module:model/ProductAdvertisingAPIClientException
* @class
*/
var exports = function() {
var _this = this;
};
export class ProductAdvertisingAPIClientException {
/**
* @member {Array.<module:model/ErrorData>} Errors
*/
public Errors?: ErrorData[];
/**
* Constructs a <code>ProductAdvertisingAPIClientException</code> from a plain JavaScript object, optionally creating a new instance.
@ -65,25 +48,14 @@
* @param {module:model/ProductAdvertisingAPIClientException} obj Optional instance to populate.
* @return {module:model/ProductAdvertisingAPIClientException} The populated <code>ProductAdvertisingAPIClientException</code> instance.
*/
exports.constructFromObject = function(data, obj) {
public static constructFromObject(data: any, obj?: ProductAdvertisingAPIClientException) {
if (data) {
obj = obj || new exports();
obj = obj || new ProductAdvertisingAPIClientException();
if (data.hasOwnProperty('Errors')) {
obj['Errors'] = ApiClient.convertToType(data['Errors'], [ErrorData]);
obj.Errors = ApiClient.convertToType(data['Errors'], [ErrorData]);
}
}
return obj;
}
/**
* @member {Array.<module:model/ErrorData>} Errors
*/
exports.prototype['Errors'] = undefined;
return exports;
}));
};

View File

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

View File

@ -21,47 +21,47 @@
*
*/
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['ApiClient', 'model/DimensionBasedAttribute', 'model/SingleBooleanValuedAttribute', 'model/SingleIntegerValuedAttribute', 'model/SingleStringValuedAttribute'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
module.exports = factory(require('../ApiClient'), require('./DimensionBasedAttribute'), require('./SingleBooleanValuedAttribute'), require('./SingleIntegerValuedAttribute'), require('./SingleStringValuedAttribute'));
} else {
// Browser globals (root is window)
if (!root.ProductAdvertisingAPIv1) {
root.ProductAdvertisingAPIv1 = {};
}
root.ProductAdvertisingAPIv1.ProductInfo = factory(root.ProductAdvertisingAPIv1.ApiClient, root.ProductAdvertisingAPIv1.DimensionBasedAttribute, root.ProductAdvertisingAPIv1.SingleBooleanValuedAttribute, root.ProductAdvertisingAPIv1.SingleIntegerValuedAttribute, root.ProductAdvertisingAPIv1.SingleStringValuedAttribute);
}
}(this, function(ApiClient, DimensionBasedAttribute, SingleBooleanValuedAttribute, SingleIntegerValuedAttribute, SingleStringValuedAttribute) {
'use strict';
/**
/**
* The ProductInfo model module.
* @module model/ProductInfo
* @version 1.0.0
*/
/**
import { DimensionBasedAttribute } from "./DimensionBasedAttribute";
import { SingleBooleanValuedAttribute } from "./SingleBooleanValuedAttribute";
import { SingleIntegerValuedAttribute } from "./SingleIntegerValuedAttribute";
import { SingleStringValuedAttribute } from "./SingleStringValuedAttribute";
/**
* Constructs a new <code>ProductInfo</code>.
* @alias module:model/ProductInfo
* @class
*/
var exports = function() {
var _this = this;
};
export class ProductInfo {
/**
* @member {module:model/SingleStringValuedAttribute} Color
*/
public Color?: SingleStringValuedAttribute
/**
* @member {module:model/SingleBooleanValuedAttribute} IsAdultProduct
*/
public IsAdultProduct?: SingleBooleanValuedAttribute;
/**
* @member {module:model/DimensionBasedAttribute} ItemDimensions
*/
public ItemDimensions?: DimensionBasedAttribute;
/**
* @member {module:model/SingleStringValuedAttribute} ReleaseDate
*/
public ReleaseDate?: SingleStringValuedAttribute;
/**
* @member {module:model/SingleStringValuedAttribute} Size
*/
public Size?: SingleStringValuedAttribute;
/**
* @member {module:model/SingleIntegerValuedAttribute} UnitCount
*/
public UnitCount?: SingleIntegerValuedAttribute
/**
* Constructs a <code>ProductInfo</code> from a plain JavaScript object, optionally creating a new instance.
@ -70,60 +70,29 @@
* @param {module:model/ProductInfo} obj Optional instance to populate.
* @return {module:model/ProductInfo} The populated <code>ProductInfo</code> instance.
*/
exports.constructFromObject = function(data, obj) {
public static constructFromObject(data: any, obj?: ProductInfo) {
if (data) {
obj = obj || new exports();
obj = obj || new ProductInfo();
if (data.hasOwnProperty('Color')) {
obj['Color'] = SingleStringValuedAttribute.constructFromObject(data['Color']);
obj.Color = SingleStringValuedAttribute.constructFromObject(data['Color']);
}
if (data.hasOwnProperty('IsAdultProduct')) {
obj['IsAdultProduct'] = SingleBooleanValuedAttribute.constructFromObject(data['IsAdultProduct']);
obj.IsAdultProduct = SingleBooleanValuedAttribute.constructFromObject(data['IsAdultProduct']);
}
if (data.hasOwnProperty('ItemDimensions')) {
obj['ItemDimensions'] = DimensionBasedAttribute.constructFromObject(data['ItemDimensions']);
obj.ItemDimensions = DimensionBasedAttribute.constructFromObject(data['ItemDimensions']);
}
if (data.hasOwnProperty('ReleaseDate')) {
obj['ReleaseDate'] = SingleStringValuedAttribute.constructFromObject(data['ReleaseDate']);
obj.ReleaseDate = SingleStringValuedAttribute.constructFromObject(data['ReleaseDate']);
}
if (data.hasOwnProperty('Size')) {
obj['Size'] = SingleStringValuedAttribute.constructFromObject(data['Size']);
obj.Size = SingleStringValuedAttribute.constructFromObject(data['Size']);
}
if (data.hasOwnProperty('UnitCount')) {
obj['UnitCount'] = SingleIntegerValuedAttribute.constructFromObject(data['UnitCount']);
obj.UnitCount = SingleIntegerValuedAttribute.constructFromObject(data['UnitCount']);
}
}
return obj;
}
/**
* @member {module:model/SingleStringValuedAttribute} Color
*/
exports.prototype['Color'] = undefined;
/**
* @member {module:model/SingleBooleanValuedAttribute} IsAdultProduct
*/
exports.prototype['IsAdultProduct'] = undefined;
/**
* @member {module:model/DimensionBasedAttribute} ItemDimensions
*/
exports.prototype['ItemDimensions'] = undefined;
/**
* @member {module:model/SingleStringValuedAttribute} ReleaseDate
*/
exports.prototype['ReleaseDate'] = undefined;
/**
* @member {module:model/SingleStringValuedAttribute} Size
*/
exports.prototype['Size'] = undefined;
/**
* @member {module:model/SingleIntegerValuedAttribute} UnitCount
*/
exports.prototype['UnitCount'] = undefined;
return exports;
}));
};

View File

@ -55,7 +55,7 @@ export class SingleBooleanValuedAttribute {
* @param {module:model/SingleBooleanValuedAttribute} obj Optional instance to populate.
* @return {module:model/SingleBooleanValuedAttribute} The populated <code>SingleBooleanValuedAttribute</code> instance.
*/
public constructFromObject(data: any, obj?: SingleBooleanValuedAttribute) {
public static constructFromObject(data: any, obj?: SingleBooleanValuedAttribute) {
if (data) {
obj = obj || new SingleBooleanValuedAttribute();

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