Compare commits

..

No commits in common. "66883a30fae588ffb1a58923d67c59d27381bc39" and "96634eb9112bea5ecd9641fcbd96a8b6983ccddb" have entirely different histories.

4 changed files with 226 additions and 145 deletions

View File

@ -48,10 +48,7 @@ import { GetBrowseNodesResource } from "./model/GetBrowseNodesResource";
import { GetBrowseNodesResponse } from "./model/GetBrowseNodesResponse"; import { GetBrowseNodesResponse } from "./model/GetBrowseNodesResponse";
import { GetItemsRequest } from "./model/GetItemsRequest"; import { GetItemsRequest } from "./model/GetItemsRequest";
import { GetItemsResource } from "./model/GetItemsResource"; import { GetItemsResource } from "./model/GetItemsResource";
import { GetItemsResponse } from "./model/GetItemsResponse";
import { GetVariationsRequest } from "./model/GetVariationsRequest";
import { GetVariationsResource } from "./model/GetVariationsResource"; import { GetVariationsResource } from "./model/GetVariationsResource";
import { GetVariationsResponse } from "./model/GetVariationsResponse";
import { ImageSize } from "./model/ImageSize"; import { ImageSize } from "./model/ImageSize";
import { ImageType } from "./model/ImageType"; import { ImageType } from "./model/ImageType";
import { Images } from "./model/Images"; import { Images } from "./model/Images";

View File

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

View File

@ -21,88 +21,57 @@
* *
*/ */
import { ApiClient } from "../ApiClient"; (function(root, factory) {
import { Condition } from "./Condition"; if (typeof define === 'function' && define.amd) {
import { GetVariationsResource } from "./GetVariationsResource"; // AMD. Register as an anonymous module.
import { Merchant } from "./Merchant"; define(['ApiClient', 'model/Condition', 'model/GetVariationsResource', 'model/Merchant', 'model/OfferCount', 'model/PartnerType', 'model/Properties'], factory);
import { OfferCount } from "./OfferCount"; } else if (typeof module === 'object' && module.exports) {
import { PartnerType } from "./PartnerType"; // CommonJS-like environments that support module.exports, like Node.
import { Properties } from "./Properties"; module.exports = factory(require('../ApiClient'), require('./Condition'), require('./GetVariationsResource'), require('./Merchant'), require('./OfferCount'), require('./PartnerType'), require('./Properties'));
} else {
// Browser globals (root is window)
if (!root.ProductAdvertisingAPIv1) {
root.ProductAdvertisingAPIv1 = {};
}
root.ProductAdvertisingAPIv1.GetVariationsRequest = factory(root.ProductAdvertisingAPIv1.ApiClient, root.ProductAdvertisingAPIv1.Condition, root.ProductAdvertisingAPIv1.GetVariationsResource, root.ProductAdvertisingAPIv1.Merchant, root.ProductAdvertisingAPIv1.OfferCount, root.ProductAdvertisingAPIv1.PartnerType, root.ProductAdvertisingAPIv1.Properties);
}
}(this, function(ApiClient, Condition, GetVariationsResource, Merchant, OfferCount, PartnerType, Properties) {
'use strict';
/**
* The GetVariationsRequest model module.
* @module model/GetVariationsRequest
* @version 1.0.0
*/
/**
* Constructs a new <code>GetVariationsRequest</code>.
* @alias module:model/GetVariationsRequest
* @class
* @param ASIN {String}
* @param partnerTag {String}
* @param partnerType {module:model/PartnerType}
*/
export class GetVariationsRequest {
/**
* @member {String} ASIN
*/
public ASIN?: string;
/**
* @member {module:model/Condition} Condition
*/
public Condition?: Condition;
/**
* @member {String} CurrencyOfPreference
*/
public CurrencyOfPreference?: string;
/**
* @member {Array.<String>} LanguagesOfPreference
*/
public LanguagesOfPreference?: string[];
/**
* @member {String} Marketplace
*/
public Marketplace?: string;
/**
* @member {module:model/Merchant} Merchant
*/
public Merchant?: Merchant;
/**
* @member {module:model/OfferCount} OfferCount
*/
public OfferCount?: OfferCount
/**
* @member {String} PartnerTag
*/
public PartnerTag?: string;
/**
* @member {module:model/PartnerType} PartnerType
*/
public PartnerType?: PartnerType;
/**
* @member {module:model/Properties} Properties
*/
public Properties?: Properties;
/**
* @member {Array.<module:model/GetVariationsResource>} Resources
*/
public Resources?: GetVariationsResource[];
/**
* @member {Number} VariationCount
*/
public VariationCount?: number;
/**
* @member {Number} VariationPage
*/
public VariationPage?: number;
// not sure whether I need this or not:
// public constructor(ASIN, partnerTag, partnerType) { /**
// this.ASIN = ASIN; * The GetVariationsRequest model module.
// this.PartnerTag = partnerTag; * @module model/GetVariationsRequest
// this.PartnerType = partnerType; * @version 1.0.0
// }; */
/**
* Constructs a new <code>GetVariationsRequest</code>.
* @alias module:model/GetVariationsRequest
* @class
* @param ASIN {String}
* @param partnerTag {String}
* @param partnerType {module:model/PartnerType}
*/
var exports = function(ASIN, partnerTag, partnerType) {
var _this = this;
_this['ASIN'] = ASIN;
_this['PartnerTag'] = partnerTag;
_this['PartnerType'] = partnerType;
};
/** /**
* Constructs a <code>GetVariationsRequest</code> from a plain JavaScript object, optionally creating a new instance. * Constructs a <code>GetVariationsRequest</code> from a plain JavaScript object, optionally creating a new instance.
@ -111,50 +80,109 @@ export class GetVariationsRequest {
* @param {module:model/GetVariationsRequest} obj Optional instance to populate. * @param {module:model/GetVariationsRequest} obj Optional instance to populate.
* @return {module:model/GetVariationsRequest} The populated <code>GetVariationsRequest</code> instance. * @return {module:model/GetVariationsRequest} The populated <code>GetVariationsRequest</code> instance.
*/ */
public static constructFromObject(data: any, obj?: GetVariationsRequest) { exports.constructFromObject = function(data, obj) {
if (data) { if (data) {
obj = obj || new GetVariationsRequest(); obj = obj || new exports();
if (data.hasOwnProperty('ASIN')) { if (data.hasOwnProperty('ASIN')) {
obj.ASIN = ApiClient.convertToType(data['ASIN'], 'String'); obj['ASIN'] = ApiClient.convertToType(data['ASIN'], 'String');
} }
if (data.hasOwnProperty('Condition')) { if (data.hasOwnProperty('Condition')) {
obj.Condition = Condition.constructFromObject(data['Condition']); obj['Condition'] = Condition.constructFromObject(data['Condition']);
} }
if (data.hasOwnProperty('CurrencyOfPreference')) { if (data.hasOwnProperty('CurrencyOfPreference')) {
obj.CurrencyOfPreference = ApiClient.convertToType(data['CurrencyOfPreference'], 'String'); obj['CurrencyOfPreference'] = ApiClient.convertToType(data['CurrencyOfPreference'], 'String');
} }
if (data.hasOwnProperty('LanguagesOfPreference')) { if (data.hasOwnProperty('LanguagesOfPreference')) {
obj.LanguagesOfPreference = ApiClient.convertToType(data['LanguagesOfPreference'], ['String']); obj['LanguagesOfPreference'] = ApiClient.convertToType(data['LanguagesOfPreference'], ['String']);
} }
if (data.hasOwnProperty('Marketplace')) { if (data.hasOwnProperty('Marketplace')) {
obj.Marketplace = ApiClient.convertToType(data['Marketplace'], 'String'); obj['Marketplace'] = ApiClient.convertToType(data['Marketplace'], 'String');
} }
if (data.hasOwnProperty('Merchant')) { if (data.hasOwnProperty('Merchant')) {
obj.Merchant = Merchant.constructFromObject(data['Merchant']); obj['Merchant'] = Merchant.constructFromObject(data['Merchant']);
} }
if (data.hasOwnProperty('OfferCount')) { if (data.hasOwnProperty('OfferCount')) {
obj.OfferCount = OfferCount.constructFromObject(data['OfferCount']); obj['OfferCount'] = OfferCount.constructFromObject(data['OfferCount']);
} }
if (data.hasOwnProperty('PartnerTag')) { if (data.hasOwnProperty('PartnerTag')) {
obj.PartnerTag = ApiClient.convertToType(data['PartnerTag'], 'String'); obj['PartnerTag'] = ApiClient.convertToType(data['PartnerTag'], 'String');
} }
if (data.hasOwnProperty('PartnerType')) { if (data.hasOwnProperty('PartnerType')) {
obj.PartnerType = PartnerType.constructFromObject(data['PartnerType']); obj['PartnerType'] = PartnerType.constructFromObject(data['PartnerType']);
} }
if (data.hasOwnProperty('Properties')) { if (data.hasOwnProperty('Properties')) {
obj.Properties = Properties.constructFromObject(data['Properties']); obj['Properties'] = Properties.constructFromObject(data['Properties']);
} }
if (data.hasOwnProperty('Resources')) { if (data.hasOwnProperty('Resources')) {
obj.Resources = ApiClient.convertToType(data['Resources'], [GetVariationsResource]); obj['Resources'] = ApiClient.convertToType(data['Resources'], [GetVariationsResource]);
} }
if (data.hasOwnProperty('VariationCount')) { if (data.hasOwnProperty('VariationCount')) {
obj.VariationCount = ApiClient.convertToType(data['VariationCount'], 'Number'); obj['VariationCount'] = ApiClient.convertToType(data['VariationCount'], 'Number');
} }
if (data.hasOwnProperty('VariationPage')) { if (data.hasOwnProperty('VariationPage')) {
obj.VariationPage = ApiClient.convertToType(data['VariationPage'], 'Number'); obj['VariationPage'] = ApiClient.convertToType(data['VariationPage'], 'Number');
} }
} }
return obj; return obj;
} }
};
/**
* @member {String} ASIN
*/
exports.prototype['ASIN'] = undefined;
/**
* @member {module:model/Condition} Condition
*/
exports.prototype['Condition'] = undefined;
/**
* @member {String} CurrencyOfPreference
*/
exports.prototype['CurrencyOfPreference'] = undefined;
/**
* @member {Array.<String>} LanguagesOfPreference
*/
exports.prototype['LanguagesOfPreference'] = undefined;
/**
* @member {String} Marketplace
*/
exports.prototype['Marketplace'] = undefined;
/**
* @member {module:model/Merchant} Merchant
*/
exports.prototype['Merchant'] = undefined;
/**
* @member {module:model/OfferCount} OfferCount
*/
exports.prototype['OfferCount'] = undefined;
/**
* @member {String} PartnerTag
*/
exports.prototype['PartnerTag'] = undefined;
/**
* @member {module:model/PartnerType} PartnerType
*/
exports.prototype['PartnerType'] = undefined;
/**
* @member {module:model/Properties} Properties
*/
exports.prototype['Properties'] = undefined;
/**
* @member {Array.<module:model/GetVariationsResource>} Resources
*/
exports.prototype['Resources'] = undefined;
/**
* @member {Number} VariationCount
*/
exports.prototype['VariationCount'] = undefined;
/**
* @member {Number} VariationPage
*/
exports.prototype['VariationPage'] = undefined;
return exports;
}));

View File

@ -15,36 +15,49 @@
* permissions and limitations under the License. * permissions and limitations under the License.
*/ */
/** /**
* ProductAdvertisingAPI * ProductAdvertisingAPI
* https://webservices.amazon.com/paapi5/documentation/index.html * https://webservices.amazon.com/paapi5/documentation/index.html
* *
*/ */
/** (function(root, factory) {
* The GetVariationsResponse model module. if (typeof define === 'function' && define.amd) {
* @module model/GetVariationsResponse // AMD. Register as an anonymous module.
* @version 1.0.0 define(['ApiClient', 'model/ErrorData', 'model/VariationsResult'], factory);
*/ } else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
module.exports = factory(require('../ApiClient'), require('./ErrorData'), require('./VariationsResult'));
} else {
// Browser globals (root is window)
if (!root.ProductAdvertisingAPIv1) {
root.ProductAdvertisingAPIv1 = {};
}
root.ProductAdvertisingAPIv1.GetVariationsResponse = factory(root.ProductAdvertisingAPIv1.ApiClient, root.ProductAdvertisingAPIv1.ErrorData, root.ProductAdvertisingAPIv1.VariationsResult);
}
}(this, function(ApiClient, ErrorData, VariationsResult) {
'use strict';
import { ApiClient } from "../ApiClient";
import { ErrorData } from "./ErrorData";
import { VariationsResult } from "./VariationsResult";
/**
* Constructs a new <code>GetVariationsResponse</code>.
* @alias module:model/GetVariationsResponse
* @class
*/
export class GetVariationsResponse {
/** /**
* @member {Array.<module:model/ErrorData>} Errors * The GetVariationsResponse model module.
* @module model/GetVariationsResponse
* @version 1.0.0
*/ */
public Errors?: ErrorData[]
/** /**
* @member {module:model/VariationsResult} VariationsResult * Constructs a new <code>GetVariationsResponse</code>.
* @alias module:model/GetVariationsResponse
* @class
*/ */
public VariationsResult?: VariationsResult; var exports = function() {
var _this = this;
};
/** /**
* Constructs a <code>GetVariationsResponse</code> from a plain JavaScript object, optionally creating a new instance. * Constructs a <code>GetVariationsResponse</code> from a plain JavaScript object, optionally creating a new instance.
@ -53,17 +66,32 @@ export class GetVariationsResponse {
* @param {module:model/GetVariationsResponse} obj Optional instance to populate. * @param {module:model/GetVariationsResponse} obj Optional instance to populate.
* @return {module:model/GetVariationsResponse} The populated <code>GetVariationsResponse</code> instance. * @return {module:model/GetVariationsResponse} The populated <code>GetVariationsResponse</code> instance.
*/ */
public static constructFromObject(data: any, obj?: GetVariationsResponse) { exports.constructFromObject = function(data, obj) {
if (data) { if (data) {
obj = obj || new GetVariationsResponse(); obj = obj || new exports();
if (data.hasOwnProperty('Errors')) { if (data.hasOwnProperty('Errors')) {
obj.Errors = ApiClient.convertToType(data['Errors'], [ErrorData]); obj['Errors'] = ApiClient.convertToType(data['Errors'], [ErrorData]);
} }
if (data.hasOwnProperty('VariationsResult')) { if (data.hasOwnProperty('VariationsResult')) {
obj.VariationsResult = VariationsResult.constructFromObject(data['VariationsResult']); obj['VariationsResult'] = VariationsResult.constructFromObject(data['VariationsResult']);
} }
} }
return obj; return obj;
} }
};
/**
* @member {Array.<module:model/ErrorData>} Errors
*/
exports.prototype['Errors'] = undefined;
/**
* @member {module:model/VariationsResult} VariationsResult
*/
exports.prototype['VariationsResult'] = undefined;
return exports;
}));