Compare commits

..

4 Commits

5 changed files with 132 additions and 256 deletions

View File

@ -39,14 +39,18 @@ import { ContentRating } from "./model/ContentRating";
import { Contributor } from "./model/Contributor"; import { Contributor } from "./model/Contributor";
import { CustomerReviews } from "./model/CustomerReviews"; import { CustomerReviews } from "./model/CustomerReviews";
import { DeliveryFlag } from "./model/DeliveryFlag"; import { DeliveryFlag } from "./model/DeliveryFlag";
import { DimensionBasedAttribute } from "./model/DimensionBasedAttribute";
import { DurationPrice } from "./model/DurationPrice";
import { Languages } from "./model/Languages"; import { Languages } from "./model/Languages";
import { LanguageType } from "./model/LanguageType"; import { LanguageType } from "./model/LanguageType";
import { OfferPrice } from "./model/OfferPrice";
import { OfferSavings } from "./model/OfferSavings"; import { OfferSavings } from "./model/OfferSavings";
import { PriceType } from "./model/PriceType"; import { PriceType } from "./model/PriceType";
import { Rating } from "./model/Rating"; import { Rating } from "./model/Rating";
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";
import { UnitBasedAttribute } from "./model/UnitBasedAttribute";
import { WebsiteSalesRank } from "./model/WebsiteSalesRank"; import { WebsiteSalesRank } from "./model/WebsiteSalesRank";
/** /**

View File

@ -21,45 +21,36 @@
* *
*/ */
(function(root, factory) { /**
if (typeof define === 'function' && define.amd) { * The DimensionBasedAttribute model module.
// AMD. Register as an anonymous module. * @module model/DimensionBasedAttribute
define(['ApiClient', 'model/UnitBasedAttribute'], 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'), require('./UnitBasedAttribute'));
} else {
// Browser globals (root is window)
if (!root.ProductAdvertisingAPIv1) {
root.ProductAdvertisingAPIv1 = {};
}
root.ProductAdvertisingAPIv1.DimensionBasedAttribute = factory(root.ProductAdvertisingAPIv1.ApiClient, root.ProductAdvertisingAPIv1.UnitBasedAttribute);
}
}(this, function(ApiClient, UnitBasedAttribute) {
'use strict';
import { UnitBasedAttribute } from "./UnitBasedAttribute";
/**
* Constructs a new <code>DimensionBasedAttribute</code>.
* @alias module:model/DimensionBasedAttribute
* @class
*/
export class DimensionBasedAttribute {
/** /**
* The DimensionBasedAttribute model module. * @member {module:model/UnitBasedAttribute} Height
* @module model/DimensionBasedAttribute
* @version 1.0.0
*/ */
public Height?: UnitBasedAttribute;
/** /**
* Constructs a new <code>DimensionBasedAttribute</code>. * @member {module:model/UnitBasedAttribute} Length
* @alias module:model/DimensionBasedAttribute
* @class
*/ */
var exports = function() { public Length?: UnitBasedAttribute;
var _this = this; /**
* @member {module:model/UnitBasedAttribute} Weight
*/
public Weight?: UnitBasedAttribute
/**
* @member {module:model/UnitBasedAttribute} Width
}; */
public Width?: UnitBasedAttribute;
/** /**
* Constructs a <code>DimensionBasedAttribute</code> from a plain JavaScript object, optionally creating a new instance. * Constructs a <code>DimensionBasedAttribute</code> from a plain JavaScript object, optionally creating a new instance.
@ -68,46 +59,23 @@
* @param {module:model/DimensionBasedAttribute} obj Optional instance to populate. * @param {module:model/DimensionBasedAttribute} obj Optional instance to populate.
* @return {module:model/DimensionBasedAttribute} The populated <code>DimensionBasedAttribute</code> instance. * @return {module:model/DimensionBasedAttribute} The populated <code>DimensionBasedAttribute</code> instance.
*/ */
exports.constructFromObject = function(data, obj) { public static constructFromObject(data: any, obj?: DimensionBasedAttribute) {
if (data) { if (data) {
obj = obj || new exports(); obj = obj || new DimensionBasedAttribute();
if (data.hasOwnProperty('Height')) { if (data.hasOwnProperty('Height')) {
obj['Height'] = UnitBasedAttribute.constructFromObject(data['Height']); obj.Height = UnitBasedAttribute.constructFromObject(data['Height']);
} }
if (data.hasOwnProperty('Length')) { if (data.hasOwnProperty('Length')) {
obj['Length'] = UnitBasedAttribute.constructFromObject(data['Length']); obj.Length = UnitBasedAttribute.constructFromObject(data['Length']);
} }
if (data.hasOwnProperty('Weight')) { if (data.hasOwnProperty('Weight')) {
obj['Weight'] = UnitBasedAttribute.constructFromObject(data['Weight']); obj.Weight = UnitBasedAttribute.constructFromObject(data['Weight']);
} }
if (data.hasOwnProperty('Width')) { if (data.hasOwnProperty('Width')) {
obj['Width'] = UnitBasedAttribute.constructFromObject(data['Width']); obj.Width = UnitBasedAttribute.constructFromObject(data['Width']);
} }
} }
return obj; return obj;
} }
};
/**
* @member {module:model/UnitBasedAttribute} Height
*/
exports.prototype['Height'] = undefined;
/**
* @member {module:model/UnitBasedAttribute} Length
*/
exports.prototype['Length'] = undefined;
/**
* @member {module:model/UnitBasedAttribute} Weight
*/
exports.prototype['Weight'] = undefined;
/**
* @member {module:model/UnitBasedAttribute} Width
*/
exports.prototype['Width'] = undefined;
return exports;
}));

View File

@ -21,43 +21,29 @@
* *
*/ */
(function(root, factory) { /**
if (typeof define === 'function' && define.amd) { * The DurationPrice model module.
// AMD. Register as an anonymous module. * @module model/DurationPrice
define(['ApiClient', 'model/OfferPrice', 'model/UnitBasedAttribute'], 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'), require('./OfferPrice'), require('./UnitBasedAttribute'));
} else {
// Browser globals (root is window)
if (!root.ProductAdvertisingAPIv1) {
root.ProductAdvertisingAPIv1 = {};
}
root.ProductAdvertisingAPIv1.DurationPrice = factory(root.ProductAdvertisingAPIv1.ApiClient, root.ProductAdvertisingAPIv1.OfferPrice, root.ProductAdvertisingAPIv1.UnitBasedAttribute);
}
}(this, function(ApiClient, OfferPrice, UnitBasedAttribute) {
'use strict';
import { OfferPrice } from "./OfferPrice";
import { UnitBasedAttribute } from "./UnitBasedAttribute";
/**
* Constructs a new <code>DurationPrice</code>.
* @alias module:model/DurationPrice
* @class
*/
export class DurationPrice {
/** /**
* The DurationPrice model module. * @member {module:model/OfferPrice} Price
* @module model/DurationPrice
* @version 1.0.0
*/ */
public Price?: OfferPrice;
/** /**
* Constructs a new <code>DurationPrice</code>. * @member {module:model/UnitBasedAttribute} Duration
* @alias module:model/DurationPrice
* @class
*/ */
var exports = function() { public Duration?: UnitBasedAttribute;
var _this = this;
};
/** /**
* Constructs a <code>DurationPrice</code> from a plain JavaScript object, optionally creating a new instance. * Constructs a <code>DurationPrice</code> from a plain JavaScript object, optionally creating a new instance.
@ -66,32 +52,17 @@
* @param {module:model/DurationPrice} obj Optional instance to populate. * @param {module:model/DurationPrice} obj Optional instance to populate.
* @return {module:model/DurationPrice} The populated <code>DurationPrice</code> instance. * @return {module:model/DurationPrice} The populated <code>DurationPrice</code> instance.
*/ */
exports.constructFromObject = function(data, obj) { public static constructFromObject(data: any, obj?: DurationPrice) {
if (data) { if (data) {
obj = obj || new exports(); obj = obj || new DurationPrice();
if (data.hasOwnProperty('Price')) { if (data.hasOwnProperty('Price')) {
obj['Price'] = OfferPrice.constructFromObject(data['Price']); obj.Price = OfferPrice.constructFromObject(data['Price']);
} }
if (data.hasOwnProperty('Duration')) { if (data.hasOwnProperty('Duration')) {
obj['Duration'] = UnitBasedAttribute.constructFromObject(data['Duration']); obj.Duration = UnitBasedAttribute.constructFromObject(data['Duration']);
} }
} }
return obj; return obj;
} }
};
/**
* @member {module:model/OfferPrice} Price
*/
exports.prototype['Price'] = undefined;
/**
* @member {module:model/UnitBasedAttribute} Duration
*/
exports.prototype['Duration'] = undefined;
return exports;
}));

View File

@ -21,26 +21,6 @@
* *
*/ */
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['ApiClient', 'model/OfferSavings', 'model/PriceType'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
module.exports = factory(require('../ApiClient'), require('./OfferSavings'), require('./PriceType'));
} else {
// Browser globals (root is window)
if (!root.ProductAdvertisingAPIv1) {
root.ProductAdvertisingAPIv1 = {};
}
root.ProductAdvertisingAPIv1.OfferPrice = factory(root.ProductAdvertisingAPIv1.ApiClient, root.ProductAdvertisingAPIv1.OfferSavings, root.ProductAdvertisingAPIv1.PriceType);
}
}(this, function(ApiClient, OfferSavings, PriceType) {
'use strict';
/** /**
* The OfferPrice model module. * The OfferPrice model module.
* @module model/OfferPrice * @module model/OfferPrice
@ -48,23 +28,43 @@
*/ */
import { ApiClient } from '../ApiClient'; import { ApiClient } from '../ApiClient';
import { OfferSavings } from './OfferSavings';
import { PriceType } from './PriceType';
/**
* Constructs a new <code>OfferPrice</code>.
* @alias module:model/OfferPrice
* @class
*/
export class OfferPrice {
/** /**
* Constructs a new <code>OfferPrice</code>. * @member {Number} Amount
* @alias module:model/OfferPrice
* @class
*/ */
var exports = function() { public Amount?: number;
var _this = this; /**
* @member {String} Currency
*/
public Currency?: string;
/**
* @member {String} DisplayAmount
*/
public DisplayAmount?: string;
/**
}; * @member {Number} PricePerUnit
*/
public PricePerUnit?: number;
/**
* @member {module:model/PriceType} PriceType
*/
public PriceType?: PriceType;
/**
* @member {String} PriceTypeLabel
*/
public PriceTypeLabel?: string;
/**
* @member {module:model/OfferSavings} Savings
*/
public Savings?: OfferSavings;
/** /**
* Constructs a <code>OfferPrice</code> from a plain JavaScript object, optionally creating a new instance. * Constructs a <code>OfferPrice</code> from a plain JavaScript object, optionally creating a new instance.
@ -73,67 +73,32 @@ import { ApiClient } from '../ApiClient';
* @param {module:model/OfferPrice} obj Optional instance to populate. * @param {module:model/OfferPrice} obj Optional instance to populate.
* @return {module:model/OfferPrice} The populated <code>OfferPrice</code> instance. * @return {module:model/OfferPrice} The populated <code>OfferPrice</code> instance.
*/ */
exports.constructFromObject = function(data, obj) { public static constructFromObject(data: any, obj?: OfferPrice) {
if (data) { if (data) {
obj = obj || new exports(); obj = obj || new OfferPrice();
if (data.hasOwnProperty('Amount')) { if (data.hasOwnProperty('Amount')) {
obj['Amount'] = ApiClient.convertToType(data['Amount'], 'Number'); obj.Amount = ApiClient.convertToType(data['Amount'], 'Number');
} }
if (data.hasOwnProperty('Currency')) { if (data.hasOwnProperty('Currency')) {
obj['Currency'] = ApiClient.convertToType(data['Currency'], 'String'); obj.Currency = ApiClient.convertToType(data['Currency'], 'String');
} }
if (data.hasOwnProperty('DisplayAmount')) { if (data.hasOwnProperty('DisplayAmount')) {
obj['DisplayAmount'] = ApiClient.convertToType(data['DisplayAmount'], 'String'); obj.DisplayAmount = ApiClient.convertToType(data['DisplayAmount'], 'String');
} }
if (data.hasOwnProperty('PricePerUnit')) { if (data.hasOwnProperty('PricePerUnit')) {
obj['PricePerUnit'] = ApiClient.convertToType(data['PricePerUnit'], 'Number'); obj.PricePerUnit = ApiClient.convertToType(data['PricePerUnit'], 'Number');
} }
if (data.hasOwnProperty('PriceType')) { if (data.hasOwnProperty('PriceType')) {
obj['PriceType'] = PriceType.constructFromObject(data['PriceType']); obj.PriceType = PriceType.constructFromObject(data['PriceType']);
} }
if (data.hasOwnProperty('PriceTypeLabel')) { if (data.hasOwnProperty('PriceTypeLabel')) {
obj['PriceTypeLabel'] = ApiClient.convertToType(data['PriceTypeLabel'], 'String'); obj.PriceTypeLabel = ApiClient.convertToType(data['PriceTypeLabel'], 'String');
} }
if (data.hasOwnProperty('Savings')) { if (data.hasOwnProperty('Savings')) {
obj['Savings'] = OfferSavings.constructFromObject(data['Savings']); obj.Savings = OfferSavings.constructFromObject(data['Savings']);
} }
} }
return obj; return obj;
} }
};
/**
* @member {Number} Amount
*/
exports.prototype['Amount'] = undefined;
/**
* @member {String} Currency
*/
exports.prototype['Currency'] = undefined;
/**
* @member {String} DisplayAmount
*/
exports.prototype['DisplayAmount'] = undefined;
/**
* @member {Number} PricePerUnit
*/
exports.prototype['PricePerUnit'] = undefined;
/**
* @member {module:model/PriceType} PriceType
*/
exports.prototype['PriceType'] = undefined;
/**
* @member {String} PriceTypeLabel
*/
exports.prototype['PriceTypeLabel'] = undefined;
/**
* @member {module:model/OfferSavings} Savings
*/
exports.prototype['Savings'] = undefined;
return exports;
}));

View File

@ -21,45 +21,36 @@
* *
*/ */
(function(root, factory) { /**
if (typeof define === 'function' && define.amd) { * The UnitBasedAttribute model module.
// AMD. Register as an anonymous module. * @module model/UnitBasedAttribute
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.UnitBasedAttribute = factory(root.ProductAdvertisingAPIv1.ApiClient);
}
}(this, function(ApiClient) {
'use strict';
import { ApiClient } from "../ApiClient";
/**
* Constructs a new <code>UnitBasedAttribute</code>.
* @alias module:model/UnitBasedAttribute
* @class
*/
export class UnitBasedAttribute{
/** /**
* The UnitBasedAttribute model module. * @member {Number} DisplayValue
* @module model/UnitBasedAttribute
* @version 1.0.0
*/ */
public DisplayValue?: number;
/** /**
* Constructs a new <code>UnitBasedAttribute</code>. * @member {String} Label
* @alias module:model/UnitBasedAttribute
* @class
*/ */
var exports = function() { public Label?: string;
var _this = this; /**
* @member {String} Locale
*/
public Locale?: string;
/**
* @member {String} Unit
}; */
public Unit?: string;
/** /**
* Constructs a <code>UnitBasedAttribute</code> from a plain JavaScript object, optionally creating a new instance. * Constructs a <code>UnitBasedAttribute</code> from a plain JavaScript object, optionally creating a new instance.
@ -68,46 +59,23 @@
* @param {module:model/UnitBasedAttribute} obj Optional instance to populate. * @param {module:model/UnitBasedAttribute} obj Optional instance to populate.
* @return {module:model/UnitBasedAttribute} The populated <code>UnitBasedAttribute</code> instance. * @return {module:model/UnitBasedAttribute} The populated <code>UnitBasedAttribute</code> instance.
*/ */
exports.constructFromObject = function(data, obj) { public static constructFromObject(data: any, obj?: UnitBasedAttribute) {
if (data) { if (data) {
obj = obj || new exports(); obj = obj || new UnitBasedAttribute();
if (data.hasOwnProperty('DisplayValue')) { if (data.hasOwnProperty('DisplayValue')) {
obj['DisplayValue'] = ApiClient.convertToType(data['DisplayValue'], 'Number'); obj.DisplayValue = ApiClient.convertToType(data['DisplayValue'], 'Number');
} }
if (data.hasOwnProperty('Label')) { if (data.hasOwnProperty('Label')) {
obj['Label'] = ApiClient.convertToType(data['Label'], 'String'); obj.Label = ApiClient.convertToType(data['Label'], '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('Unit')) { if (data.hasOwnProperty('Unit')) {
obj['Unit'] = ApiClient.convertToType(data['Unit'], 'String'); obj.Unit = ApiClient.convertToType(data['Unit'], 'String');
} }
} }
return obj; return obj;
} }
};
/**
* @member {Number} DisplayValue
*/
exports.prototype['DisplayValue'] = undefined;
/**
* @member {String} Label
*/
exports.prototype['Label'] = undefined;
/**
* @member {String} Locale
*/
exports.prototype['Locale'] = undefined;
/**
* @member {String} Unit
*/
exports.prototype['Unit'] = undefined;
return exports;
}));