Compare commits

..

No commits in common. "3291b2e11e1ad582268959f8d41fc55446c23d03" and "4133f678f7ff78605daf8423db7c45fb2fd32340" have entirely different histories.

5 changed files with 256 additions and 132 deletions

View File

@ -39,18 +39,14 @@ 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,36 +21,45 @@
* *
*/ */
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['ApiClient', 'model/UnitBasedAttribute'], factory);
} 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';
/** /**
* The DimensionBasedAttribute model module. * The DimensionBasedAttribute model module.
* @module model/DimensionBasedAttribute * @module model/DimensionBasedAttribute
* @version 1.0.0 * @version 1.0.0
*/ */
import { UnitBasedAttribute } from "./UnitBasedAttribute";
/** /**
* Constructs a new <code>DimensionBasedAttribute</code>. * Constructs a new <code>DimensionBasedAttribute</code>.
* @alias module:model/DimensionBasedAttribute * @alias module:model/DimensionBasedAttribute
* @class * @class
*/ */
export class DimensionBasedAttribute { var exports = function() {
/** var _this = this;
* @member {module:model/UnitBasedAttribute} Height
*/
public Height?: UnitBasedAttribute;
/**
* @member {module:model/UnitBasedAttribute} Length
*/ };
public Length?: UnitBasedAttribute;
/**
* @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.
@ -59,23 +68,46 @@ export class DimensionBasedAttribute {
* @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.
*/ */
public static constructFromObject(data: any, obj?: DimensionBasedAttribute) { exports.constructFromObject = function(data, obj) {
if (data) { if (data) {
obj = obj || new DimensionBasedAttribute(); obj = obj || new exports();
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,29 +21,43 @@
* *
*/ */
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['ApiClient', 'model/OfferPrice', 'model/UnitBasedAttribute'], factory);
} 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';
/** /**
* The DurationPrice model module. * The DurationPrice model module.
* @module model/DurationPrice * @module model/DurationPrice
* @version 1.0.0 * @version 1.0.0
*/ */
import { OfferPrice } from "./OfferPrice";
import { UnitBasedAttribute } from "./UnitBasedAttribute";
/** /**
* Constructs a new <code>DurationPrice</code>. * Constructs a new <code>DurationPrice</code>.
* @alias module:model/DurationPrice * @alias module:model/DurationPrice
* @class * @class
*/ */
export class DurationPrice { var exports = function() {
/** var _this = this;
* @member {module:model/OfferPrice} Price
*/
public Price?: OfferPrice;
/** };
* @member {module:model/UnitBasedAttribute} Duration
*/
public Duration?: UnitBasedAttribute;
/** /**
* 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.
@ -52,17 +66,32 @@ export class DurationPrice {
* @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.
*/ */
public static constructFromObject(data: any, obj?: DurationPrice) { exports.constructFromObject = function(data, obj) {
if (data) { if (data) {
obj = obj || new DurationPrice(); obj = obj || new exports();
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,6 +21,26 @@
* *
*/ */
(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
@ -28,43 +48,23 @@
*/ */
import { ApiClient } from '../ApiClient'; import { ApiClient } from '../ApiClient';
import { OfferSavings } from './OfferSavings';
import { PriceType } from './PriceType';
/** /**
* Constructs a new <code>OfferPrice</code>. * Constructs a new <code>OfferPrice</code>.
* @alias module:model/OfferPrice * @alias module:model/OfferPrice
* @class * @class
*/ */
export class OfferPrice { var exports = function() {
/** var _this = this;
* @member {Number} Amount
*/
public Amount?: number;
/**
* @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,32 +73,67 @@ export class OfferPrice {
* @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.
*/ */
public static constructFromObject(data: any, obj?: OfferPrice) { exports.constructFromObject = function(data, obj) {
if (data) { if (data) {
obj = obj || new OfferPrice(); obj = obj || new exports();
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,36 +21,45 @@
* *
*/ */
(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.UnitBasedAttribute = factory(root.ProductAdvertisingAPIv1.ApiClient);
}
}(this, function(ApiClient) {
'use strict';
/** /**
* The UnitBasedAttribute model module. * The UnitBasedAttribute model module.
* @module model/UnitBasedAttribute * @module model/UnitBasedAttribute
* @version 1.0.0 * @version 1.0.0
*/ */
import { ApiClient } from "../ApiClient";
/** /**
* Constructs a new <code>UnitBasedAttribute</code>. * Constructs a new <code>UnitBasedAttribute</code>.
* @alias module:model/UnitBasedAttribute * @alias module:model/UnitBasedAttribute
* @class * @class
*/ */
export class UnitBasedAttribute{ var exports = function() {
/** var _this = this;
* @member {Number} DisplayValue
*/
public DisplayValue?: number;
/**
* @member {String} Label
*/ };
public Label?: string;
/**
* @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.
@ -59,23 +68,46 @@ export class UnitBasedAttribute{
* @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.
*/ */
public static constructFromObject(data: any, obj?: UnitBasedAttribute) { exports.constructFromObject = function(data, obj) {
if (data) { if (data) {
obj = obj || new UnitBasedAttribute(); obj = obj || new exports();
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;
}));