Compare commits
No commits in common. "6f7d4afb9f36d4eeb6b09c49cf4c1e24d37693a5" and "cbc8c0d41bc1262b98218d5b4ecda1506c09128f" have entirely different histories.
6f7d4afb9f
...
cbc8c0d41b
|
|
@ -48,7 +48,7 @@
|
||||||
* @param {module:model/GetBrowseNodesRequest} getBrowseNodesRequest GetBrowseNodesRequest
|
* @param {module:model/GetBrowseNodesRequest} getBrowseNodesRequest GetBrowseNodesRequest
|
||||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetBrowseNodesResponse} and HTTP response
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetBrowseNodesResponse} and HTTP response
|
||||||
*/
|
*/
|
||||||
public getBrowseNodesWithHttpInfo(getBrowseNodesRequest: GetBrowseNodesRequest) {
|
public getBrowseNodesWithHttpInfo(getBrowseNodesRequest) {
|
||||||
var postBody = getBrowseNodesRequest;
|
var postBody = getBrowseNodesRequest;
|
||||||
|
|
||||||
// verify the required parameter 'getBrowseNodesRequest' is set
|
// verify the required parameter 'getBrowseNodesRequest' is set
|
||||||
|
|
@ -84,7 +84,7 @@
|
||||||
* @param {module:model/GetBrowseNodesRequest} getBrowseNodesRequest GetBrowseNodesRequest
|
* @param {module:model/GetBrowseNodesRequest} getBrowseNodesRequest GetBrowseNodesRequest
|
||||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetBrowseNodesResponse}
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetBrowseNodesResponse}
|
||||||
*/
|
*/
|
||||||
public getBrowseNodes(getBrowseNodesRequest: GetBrowseNodesRequest) {
|
public getBrowseNodes(getBrowseNodesRequest) {
|
||||||
return this.getBrowseNodesWithHttpInfo(getBrowseNodesRequest)
|
return this.getBrowseNodesWithHttpInfo(getBrowseNodesRequest)
|
||||||
.then(function(response_and_data) {
|
.then(function(response_and_data) {
|
||||||
return response_and_data.data;
|
return response_and_data.data;
|
||||||
|
|
@ -96,7 +96,7 @@
|
||||||
* @param {module:model/GetItemsRequest} getItemsRequest GetItemsRequest
|
* @param {module:model/GetItemsRequest} getItemsRequest GetItemsRequest
|
||||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetItemsResponse} and HTTP response
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetItemsResponse} and HTTP response
|
||||||
*/
|
*/
|
||||||
public getItemsWithHttpInfo(getItemsRequest: GetItemsRequest) {
|
public getItemsWithHttpInfo(getItemsRequest) {
|
||||||
var postBody = getItemsRequest;
|
var postBody = getItemsRequest;
|
||||||
|
|
||||||
// verify the required parameter 'getItemsRequest' is set
|
// verify the required parameter 'getItemsRequest' is set
|
||||||
|
|
@ -132,7 +132,7 @@
|
||||||
* @param {module:model/GetItemsRequest} getItemsRequest GetItemsRequest
|
* @param {module:model/GetItemsRequest} getItemsRequest GetItemsRequest
|
||||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetItemsResponse}
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetItemsResponse}
|
||||||
*/
|
*/
|
||||||
public getItems(getItemsRequest: GetItemsRequest) {
|
public getItems(getItemsRequest) {
|
||||||
return this.getItemsWithHttpInfo(getItemsRequest)
|
return this.getItemsWithHttpInfo(getItemsRequest)
|
||||||
.then(function(response_and_data) {
|
.then(function(response_and_data) {
|
||||||
return response_and_data.data;
|
return response_and_data.data;
|
||||||
|
|
@ -144,7 +144,7 @@
|
||||||
* @param {module:model/GetVariationsRequest} getVariationsRequest GetVariationsRequest
|
* @param {module:model/GetVariationsRequest} getVariationsRequest GetVariationsRequest
|
||||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetVariationsResponse} and HTTP response
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetVariationsResponse} and HTTP response
|
||||||
*/
|
*/
|
||||||
public getVariationsWithHttpInfo(getVariationsRequest: GetVariationsRequest) {
|
public getVariationsWithHttpInfo(getVariationsRequest) {
|
||||||
var postBody = getVariationsRequest;
|
var postBody = getVariationsRequest;
|
||||||
|
|
||||||
// verify the required parameter 'getVariationsRequest' is set
|
// verify the required parameter 'getVariationsRequest' is set
|
||||||
|
|
@ -180,7 +180,7 @@
|
||||||
* @param {module:model/GetVariationsRequest} getVariationsRequest GetVariationsRequest
|
* @param {module:model/GetVariationsRequest} getVariationsRequest GetVariationsRequest
|
||||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetVariationsResponse}
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetVariationsResponse}
|
||||||
*/
|
*/
|
||||||
public getVariations(getVariationsRequest: GetVariationsRequest) {
|
public getVariations(getVariationsRequest) {
|
||||||
return this.getVariationsWithHttpInfo(getVariationsRequest)
|
return this.getVariationsWithHttpInfo(getVariationsRequest)
|
||||||
.then(function(response_and_data) {
|
.then(function(response_and_data) {
|
||||||
return response_and_data.data;
|
return response_and_data.data;
|
||||||
|
|
@ -192,7 +192,7 @@
|
||||||
* @param {module:model/SearchItemsRequest} searchItemsRequest SearchItemsRequest
|
* @param {module:model/SearchItemsRequest} searchItemsRequest SearchItemsRequest
|
||||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SearchItemsResponse} and HTTP response
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SearchItemsResponse} and HTTP response
|
||||||
*/
|
*/
|
||||||
public searchItemsWithHttpInfo(searchItemsRequest: SearchItemsRequest) {
|
public searchItemsWithHttpInfo(searchItemsRequest) {
|
||||||
var postBody = searchItemsRequest;
|
var postBody = searchItemsRequest;
|
||||||
|
|
||||||
// verify the required parameter 'searchItemsRequest' is set
|
// verify the required parameter 'searchItemsRequest' is set
|
||||||
|
|
@ -228,7 +228,7 @@
|
||||||
* @param {module:model/SearchItemsRequest} searchItemsRequest SearchItemsRequest
|
* @param {module:model/SearchItemsRequest} searchItemsRequest SearchItemsRequest
|
||||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SearchItemsResponse}
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SearchItemsResponse}
|
||||||
*/
|
*/
|
||||||
public searchItems(searchItemsRequest: SearchItemsRequest) {
|
public searchItems(searchItemsRequest) {
|
||||||
return this.searchItemsWithHttpInfo(searchItemsRequest)
|
return this.searchItemsWithHttpInfo(searchItemsRequest)
|
||||||
.then(function(response_and_data) {
|
.then(function(response_and_data) {
|
||||||
return response_and_data.data;
|
return response_and_data.data;
|
||||||
|
|
|
||||||
|
|
@ -42,16 +42,11 @@ import { DeliveryFlag } from "./model/DeliveryFlag";
|
||||||
import { DimensionBasedAttribute } from "./model/DimensionBasedAttribute";
|
import { DimensionBasedAttribute } from "./model/DimensionBasedAttribute";
|
||||||
import { DurationPrice } from "./model/DurationPrice";
|
import { DurationPrice } from "./model/DurationPrice";
|
||||||
import { ErrorData } from "./model/ErrorData";
|
import { ErrorData } from "./model/ErrorData";
|
||||||
import { ExternalIds } from "./model/ExternalIds";
|
|
||||||
import { GetBrowseNodesRequest } from "./model/GetBrowseNodesRequest";
|
|
||||||
import { GetBrowseNodesResource } from "./model/GetBrowseNodesResource";
|
|
||||||
import { GetBrowseNodesResponse } from "./model/GetBrowseNodesResponse";
|
|
||||||
import { Languages } from "./model/Languages";
|
import { Languages } from "./model/Languages";
|
||||||
import { LanguageType } from "./model/LanguageType";
|
import { LanguageType } from "./model/LanguageType";
|
||||||
import { MultiValuedAttribute } from "./model/MultiValuedAttribute";
|
import { MultiValuedAttribute } from "./model/MultiValuedAttribute";
|
||||||
import { OfferPrice } from "./model/OfferPrice";
|
import { OfferPrice } from "./model/OfferPrice";
|
||||||
import { OfferSavings } from "./model/OfferSavings";
|
import { OfferSavings } from "./model/OfferSavings";
|
||||||
import { PartnerType } from "./model/PartnerType";
|
|
||||||
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";
|
||||||
|
|
|
||||||
|
|
@ -21,32 +21,44 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { MultiValuedAttribute } from "./MultiValuedAttribute";
|
(function(root, factory) {
|
||||||
|
if (typeof define === 'function' && define.amd) {
|
||||||
|
// AMD. Register as an anonymous module.
|
||||||
|
define(['ApiClient', 'model/MultiValuedAttribute'], factory);
|
||||||
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
|
// CommonJS-like environments that support module.exports, like Node.
|
||||||
|
module.exports = factory(require('../ApiClient'), require('./MultiValuedAttribute'));
|
||||||
|
} else {
|
||||||
|
// Browser globals (root is window)
|
||||||
|
if (!root.ProductAdvertisingAPIv1) {
|
||||||
|
root.ProductAdvertisingAPIv1 = {};
|
||||||
|
}
|
||||||
|
root.ProductAdvertisingAPIv1.ExternalIds = factory(root.ProductAdvertisingAPIv1.ApiClient, root.ProductAdvertisingAPIv1.MultiValuedAttribute);
|
||||||
|
}
|
||||||
|
}(this, function(ApiClient, MultiValuedAttribute) {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The ExternalIds model module.
|
|
||||||
* @module model/ExternalIds
|
|
||||||
* @version 1.0.0
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Constructs a new <code>ExternalIds</code>.
|
|
||||||
* @alias module:model/ExternalIds
|
|
||||||
* @class
|
|
||||||
*/
|
|
||||||
export class ExternalIds {
|
|
||||||
/**
|
/**
|
||||||
* @member {module:model/MultiValuedAttribute} EANs
|
* The ExternalIds model module.
|
||||||
|
* @module model/ExternalIds
|
||||||
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
public EANs?: MultiValuedAttribute
|
|
||||||
/**
|
/**
|
||||||
* @member {module:model/MultiValuedAttribute} ISBNs
|
* Constructs a new <code>ExternalIds</code>.
|
||||||
|
* @alias module:model/ExternalIds
|
||||||
|
* @class
|
||||||
*/
|
*/
|
||||||
public ISBNs?: MultiValuedAttribute;
|
var exports = function() {
|
||||||
/**
|
var _this = this;
|
||||||
* @member {module:model/MultiValuedAttribute} UPCs
|
|
||||||
*/
|
|
||||||
public UPCs?: MultiValuedAttribute;
|
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>ExternalIds</code> from a plain JavaScript object, optionally creating a new instance.
|
* Constructs a <code>ExternalIds</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
|
|
@ -55,20 +67,39 @@ export class ExternalIds {
|
||||||
* @param {module:model/ExternalIds} obj Optional instance to populate.
|
* @param {module:model/ExternalIds} obj Optional instance to populate.
|
||||||
* @return {module:model/ExternalIds} The populated <code>ExternalIds</code> instance.
|
* @return {module:model/ExternalIds} The populated <code>ExternalIds</code> instance.
|
||||||
*/
|
*/
|
||||||
public static constructFromObject(data: any, obj?: ExternalIds) {
|
exports.constructFromObject = function(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new ExternalIds();
|
obj = obj || new exports();
|
||||||
|
|
||||||
if (data.hasOwnProperty('EANs')) {
|
if (data.hasOwnProperty('EANs')) {
|
||||||
obj.EANs = MultiValuedAttribute.constructFromObject(data['EANs']);
|
obj['EANs'] = MultiValuedAttribute.constructFromObject(data['EANs']);
|
||||||
}
|
}
|
||||||
if (data.hasOwnProperty('ISBNs')) {
|
if (data.hasOwnProperty('ISBNs')) {
|
||||||
obj.ISBNs = MultiValuedAttribute.constructFromObject(data['ISBNs']);
|
obj['ISBNs'] = MultiValuedAttribute.constructFromObject(data['ISBNs']);
|
||||||
}
|
}
|
||||||
if (data.hasOwnProperty('UPCs')) {
|
if (data.hasOwnProperty('UPCs')) {
|
||||||
obj.UPCs = MultiValuedAttribute.constructFromObject(data['UPCs']);
|
obj['UPCs'] = MultiValuedAttribute.constructFromObject(data['UPCs']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
};
|
|
||||||
|
/**
|
||||||
|
* @member {module:model/MultiValuedAttribute} EANs
|
||||||
|
*/
|
||||||
|
exports.prototype['EANs'] = undefined;
|
||||||
|
/**
|
||||||
|
* @member {module:model/MultiValuedAttribute} ISBNs
|
||||||
|
*/
|
||||||
|
exports.prototype['ISBNs'] = undefined;
|
||||||
|
/**
|
||||||
|
* @member {module:model/MultiValuedAttribute} UPCs
|
||||||
|
*/
|
||||||
|
exports.prototype['UPCs'] = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
return exports;
|
||||||
|
}));
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -21,56 +21,50 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
(function(root, factory) {
|
||||||
* The GetBrowseNodesRequest model module.
|
if (typeof define === 'function' && define.amd) {
|
||||||
* @module model/GetBrowseNodesRequest
|
// AMD. Register as an anonymous module.
|
||||||
* @version 1.0.0
|
define(['ApiClient', 'model/GetBrowseNodesResource', 'model/PartnerType'], factory);
|
||||||
*/
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
|
// CommonJS-like environments that support module.exports, like Node.
|
||||||
|
module.exports = factory(require('../ApiClient'), require('./GetBrowseNodesResource'), require('./PartnerType'));
|
||||||
|
} else {
|
||||||
|
// Browser globals (root is window)
|
||||||
|
if (!root.ProductAdvertisingAPIv1) {
|
||||||
|
root.ProductAdvertisingAPIv1 = {};
|
||||||
|
}
|
||||||
|
root.ProductAdvertisingAPIv1.GetBrowseNodesRequest = factory(root.ProductAdvertisingAPIv1.ApiClient, root.ProductAdvertisingAPIv1.GetBrowseNodesResource, root.ProductAdvertisingAPIv1.PartnerType);
|
||||||
|
}
|
||||||
|
}(this, function(ApiClient, GetBrowseNodesResource, PartnerType) {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
import { ApiClient } from "../ApiClient";
|
|
||||||
import { PartnerType } from "./PartnerType";
|
|
||||||
import { GetBrowseNodesResource } from "./GetBrowseNodesResource";
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Constructs a new <code>GetBrowseNodesRequest</code>.
|
|
||||||
* @alias module:model/GetBrowseNodesRequest
|
|
||||||
* @class
|
|
||||||
* @param browseNodeIds {Array.<String>}
|
|
||||||
* @param partnerTag {String}
|
|
||||||
* @param partnerType {module:model/PartnerType}
|
|
||||||
*/
|
|
||||||
export class GetBrowseNodesRequest {
|
|
||||||
/**
|
|
||||||
* @member {Array.<String>} BrowseNodeIds
|
|
||||||
*/
|
|
||||||
public BrowseNodeIds?: string[];
|
|
||||||
/**
|
|
||||||
* @member {Array.<String>} LanguagesOfPreference
|
|
||||||
*/
|
|
||||||
public LanguagesOfPreference?: string[];
|
|
||||||
/**
|
|
||||||
* @member {String} Marketplace
|
|
||||||
*/
|
|
||||||
public Marketplace?: string;
|
|
||||||
/**
|
|
||||||
* @member {String} PartnerTag
|
|
||||||
*/
|
|
||||||
public PartnerTag?: string;
|
|
||||||
/**
|
|
||||||
* @member {module:model/PartnerType} PartnerType
|
|
||||||
*/
|
|
||||||
public PartnerType?: PartnerType;
|
|
||||||
/**
|
|
||||||
* @member {Array.<module:model/GetBrowseNodesResource>} Resources
|
|
||||||
*/
|
|
||||||
public Resources?: GetBrowseNodesResource;
|
|
||||||
|
|
||||||
// not sure if this is ever going to be relevant:
|
|
||||||
// public constructor(browseNodeIds, partnerTag, partnerType) {
|
/**
|
||||||
// this.BrowseNodeIds = browseNodeIds;
|
* The GetBrowseNodesRequest model module.
|
||||||
// this.PartnerTag = partnerTag;
|
* @module model/GetBrowseNodesRequest
|
||||||
// this.PartnerType = partnerType;
|
* @version 1.0.0
|
||||||
// };
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructs a new <code>GetBrowseNodesRequest</code>.
|
||||||
|
* @alias module:model/GetBrowseNodesRequest
|
||||||
|
* @class
|
||||||
|
* @param browseNodeIds {Array.<String>}
|
||||||
|
* @param partnerTag {String}
|
||||||
|
* @param partnerType {module:model/PartnerType}
|
||||||
|
*/
|
||||||
|
var exports = function(browseNodeIds, partnerTag, partnerType) {
|
||||||
|
var _this = this;
|
||||||
|
|
||||||
|
_this['BrowseNodeIds'] = browseNodeIds;
|
||||||
|
|
||||||
|
|
||||||
|
_this['PartnerTag'] = partnerTag;
|
||||||
|
_this['PartnerType'] = partnerType;
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>GetBrowseNodesRequest</code> from a plain JavaScript object, optionally creating a new instance.
|
* Constructs a <code>GetBrowseNodesRequest</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
|
|
@ -79,29 +73,60 @@ export class GetBrowseNodesRequest {
|
||||||
* @param {module:model/GetBrowseNodesRequest} obj Optional instance to populate.
|
* @param {module:model/GetBrowseNodesRequest} obj Optional instance to populate.
|
||||||
* @return {module:model/GetBrowseNodesRequest} The populated <code>GetBrowseNodesRequest</code> instance.
|
* @return {module:model/GetBrowseNodesRequest} The populated <code>GetBrowseNodesRequest</code> instance.
|
||||||
*/
|
*/
|
||||||
public static constructFromObject = function(data: any, obj?: GetBrowseNodesRequest) {
|
exports.constructFromObject = function(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new GetBrowseNodesRequest();
|
obj = obj || new exports();
|
||||||
|
|
||||||
if (data.hasOwnProperty('BrowseNodeIds')) {
|
if (data.hasOwnProperty('BrowseNodeIds')) {
|
||||||
obj.BrowseNodeIds = ApiClient.convertToType(data['BrowseNodeIds'], ['String']);
|
obj['BrowseNodeIds'] = ApiClient.convertToType(data['BrowseNodeIds'], ['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('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('Resources')) {
|
if (data.hasOwnProperty('Resources')) {
|
||||||
obj.Resources = ApiClient.convertToType(data['Resources'], [GetBrowseNodesResource]);
|
obj['Resources'] = ApiClient.convertToType(data['Resources'], [GetBrowseNodesResource]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
};
|
|
||||||
|
/**
|
||||||
|
* @member {Array.<String>} BrowseNodeIds
|
||||||
|
*/
|
||||||
|
exports.prototype['BrowseNodeIds'] = undefined;
|
||||||
|
/**
|
||||||
|
* @member {Array.<String>} LanguagesOfPreference
|
||||||
|
*/
|
||||||
|
exports.prototype['LanguagesOfPreference'] = undefined;
|
||||||
|
/**
|
||||||
|
* @member {String} Marketplace
|
||||||
|
*/
|
||||||
|
exports.prototype['Marketplace'] = undefined;
|
||||||
|
/**
|
||||||
|
* @member {String} PartnerTag
|
||||||
|
*/
|
||||||
|
exports.prototype['PartnerTag'] = undefined;
|
||||||
|
/**
|
||||||
|
* @member {module:model/PartnerType} PartnerType
|
||||||
|
*/
|
||||||
|
exports.prototype['PartnerType'] = undefined;
|
||||||
|
/**
|
||||||
|
* @member {Array.<module:model/GetBrowseNodesResource>} Resources
|
||||||
|
*/
|
||||||
|
exports.prototype['Resources'] = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
return exports;
|
||||||
|
}));
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -21,44 +21,51 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
(function(root, factory) {
|
||||||
* Enum class GetBrowseNodesResource.
|
if (typeof define === 'function' && define.amd) {
|
||||||
* @enum {}
|
// AMD. Register as an anonymous module.
|
||||||
* @readonly
|
define(['ApiClient'], factory);
|
||||||
*/
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
export const enum GetBrowseNodesResourceValues {
|
// CommonJS-like environments that support module.exports, like Node.
|
||||||
/**
|
module.exports = factory(require('../ApiClient'));
|
||||||
* value: "BrowseNodes.Ancestor"
|
} else {
|
||||||
* @const
|
// Browser globals (root is window)
|
||||||
*/
|
if (!root.ProductAdvertisingAPIv1) {
|
||||||
Ancestor = "BrowseNodes.Ancestor",
|
root.ProductAdvertisingAPIv1 = {};
|
||||||
/**
|
}
|
||||||
* value: "BrowseNodes.Children"
|
root.ProductAdvertisingAPIv1.GetBrowseNodesResource = factory(root.ProductAdvertisingAPIv1.ApiClient);
|
||||||
* @const
|
}
|
||||||
*/
|
}(this, function(ApiClient) {
|
||||||
Children = "BrowseNodes.Children"
|
'use strict';
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Enum class GetBrowseNodesResource.
|
|
||||||
* @enum {}
|
|
||||||
* @readonly
|
|
||||||
*/
|
|
||||||
export class GetBrowseNodesResource extends String {
|
|
||||||
/**
|
/**
|
||||||
* value: "BrowseNodes.Ancestor"
|
* Enum class GetBrowseNodesResource.
|
||||||
* @const
|
* @enum {}
|
||||||
|
* @readonly
|
||||||
*/
|
*/
|
||||||
public static get Ancestor() { return GetBrowseNodesResourceValues.Ancestor; }
|
var exports = {
|
||||||
/**
|
/**
|
||||||
* value: "BrowseNodes.Children"
|
* value: "BrowseNodes.Ancestor"
|
||||||
* @const
|
* @const
|
||||||
*/
|
*/
|
||||||
public static get Children() { return GetBrowseNodesResourceValues.Children; }
|
"Ancestor": "BrowseNodes.Ancestor",
|
||||||
|
/**
|
||||||
|
* value: "BrowseNodes.Children"
|
||||||
|
* @const
|
||||||
|
*/
|
||||||
|
"Children": "BrowseNodes.Children" };
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns a <code>GetBrowseNodesResource</code> enum value from a Javascript object name.
|
* Returns a <code>GetBrowseNodesResource</code> enum value from a Javascript object name.
|
||||||
* @param {Object} data The plain JavaScript object containing the name of the enum value.
|
* @param {Object} data The plain JavaScript object containing the name of the enum value.
|
||||||
* @return {module:model/GetBrowseNodesResource} The enum <code>GetBrowseNodesResource</code> value.
|
* @return {module:model/GetBrowseNodesResource} The enum <code>GetBrowseNodesResource</code> value.
|
||||||
*/
|
*/
|
||||||
public static constructFromObject(object: GetBrowseNodesResource|GetBrowseNodesResourceValues|string) { return object; }
|
exports.constructFromObject = function(object) {
|
||||||
};
|
return object;
|
||||||
|
}
|
||||||
|
|
||||||
|
return exports;
|
||||||
|
}));
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -21,30 +21,43 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
(function(root, factory) {
|
||||||
* The GetBrowseNodesResponse model module.
|
if (typeof define === 'function' && define.amd) {
|
||||||
* @module model/GetBrowseNodesResponse
|
// AMD. Register as an anonymous module.
|
||||||
* @version 1.0.0
|
define(['ApiClient', 'model/BrowseNodesResult', '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('./BrowseNodesResult'), require('./ErrorData'));
|
||||||
|
} else {
|
||||||
|
// Browser globals (root is window)
|
||||||
|
if (!root.ProductAdvertisingAPIv1) {
|
||||||
|
root.ProductAdvertisingAPIv1 = {};
|
||||||
|
}
|
||||||
|
root.ProductAdvertisingAPIv1.GetBrowseNodesResponse = factory(root.ProductAdvertisingAPIv1.ApiClient, root.ProductAdvertisingAPIv1.BrowseNodesResult, root.ProductAdvertisingAPIv1.ErrorData);
|
||||||
|
}
|
||||||
|
}(this, function(ApiClient, BrowseNodesResult, ErrorData) {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
import { ApiClient } from "../ApiClient";
|
|
||||||
import { BrowseNodesResult } from "./BrowseNodesResult";
|
|
||||||
import { ErrorData } from "./ErrorData";
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Constructs a new <code>GetBrowseNodesResponse</code>.
|
|
||||||
* @alias module:model/GetBrowseNodesResponse
|
|
||||||
* @class
|
|
||||||
*/
|
|
||||||
export class GetBrowseNodesResponse {
|
|
||||||
/**
|
/**
|
||||||
* @member {module:model/BrowseNodesResult} BrowseNodesResult
|
* The GetBrowseNodesResponse model module.
|
||||||
|
* @module model/GetBrowseNodesResponse
|
||||||
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
public BrowseNodesResult?: BrowseNodesResult;
|
|
||||||
/**
|
/**
|
||||||
* @member {Array.<module:model/ErrorData>} Errors
|
* Constructs a new <code>GetBrowseNodesResponse</code>.
|
||||||
|
* @alias module:model/GetBrowseNodesResponse
|
||||||
|
* @class
|
||||||
*/
|
*/
|
||||||
public Errors?: ErrorData[];
|
var exports = function() {
|
||||||
|
var _this = this;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>GetBrowseNodesResponse</code> from a plain JavaScript object, optionally creating a new instance.
|
* Constructs a <code>GetBrowseNodesResponse</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
|
|
@ -53,17 +66,32 @@ export class GetBrowseNodesResponse {
|
||||||
* @param {module:model/GetBrowseNodesResponse} obj Optional instance to populate.
|
* @param {module:model/GetBrowseNodesResponse} obj Optional instance to populate.
|
||||||
* @return {module:model/GetBrowseNodesResponse} The populated <code>GetBrowseNodesResponse</code> instance.
|
* @return {module:model/GetBrowseNodesResponse} The populated <code>GetBrowseNodesResponse</code> instance.
|
||||||
*/
|
*/
|
||||||
public static constructFromObject(data: any, obj?: GetBrowseNodesResponse) {
|
exports.constructFromObject = function(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new GetBrowseNodesResponse();
|
obj = obj || new exports();
|
||||||
|
|
||||||
if (data.hasOwnProperty('BrowseNodesResult')) {
|
if (data.hasOwnProperty('BrowseNodesResult')) {
|
||||||
obj.BrowseNodesResult = BrowseNodesResult.constructFromObject(data['BrowseNodesResult']);
|
obj['BrowseNodesResult'] = BrowseNodesResult.constructFromObject(data['BrowseNodesResult']);
|
||||||
}
|
}
|
||||||
if (data.hasOwnProperty('Errors')) {
|
if (data.hasOwnProperty('Errors')) {
|
||||||
obj.Errors = ApiClient.convertToType(data['Errors'], [ErrorData]);
|
obj['Errors'] = ApiClient.convertToType(data['Errors'], [ErrorData]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
};
|
|
||||||
|
/**
|
||||||
|
* @member {module:model/BrowseNodesResult} BrowseNodesResult
|
||||||
|
*/
|
||||||
|
exports.prototype['BrowseNodesResult'] = undefined;
|
||||||
|
/**
|
||||||
|
* @member {Array.<module:model/ErrorData>} Errors
|
||||||
|
*/
|
||||||
|
exports.prototype['Errors'] = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
return exports;
|
||||||
|
}));
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -21,35 +21,46 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
(function(root, factory) {
|
||||||
* Enum class PartnerType.
|
if (typeof define === 'function' && define.amd) {
|
||||||
* @enum {}
|
// AMD. Register as an anonymous module.
|
||||||
* @readonly
|
define(['ApiClient'], factory);
|
||||||
*/
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
export enum PartnerTypeValues {
|
// CommonJS-like environments that support module.exports, like Node.
|
||||||
/**
|
module.exports = factory(require('../ApiClient'));
|
||||||
* value: "Associates"
|
} else {
|
||||||
* @const
|
// Browser globals (root is window)
|
||||||
*/
|
if (!root.ProductAdvertisingAPIv1) {
|
||||||
Associates = "Associates"
|
root.ProductAdvertisingAPIv1 = {};
|
||||||
};
|
}
|
||||||
|
root.ProductAdvertisingAPIv1.PartnerType = factory(root.ProductAdvertisingAPIv1.ApiClient);
|
||||||
|
}
|
||||||
|
}(this, function(ApiClient) {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Enum class PartnerType.
|
|
||||||
* @enum {}
|
|
||||||
* @readonly
|
|
||||||
*/
|
|
||||||
export class PartnerType extends String {
|
|
||||||
/**
|
/**
|
||||||
* value: "Associates"
|
* Enum class PartnerType.
|
||||||
* @const
|
* @enum {}
|
||||||
|
* @readonly
|
||||||
*/
|
*/
|
||||||
public static get Associates() { return PartnerTypeValues.Associates; }
|
var exports = {
|
||||||
|
/**
|
||||||
|
* value: "Associates"
|
||||||
|
* @const
|
||||||
|
*/
|
||||||
|
"Associates": "Associates" };
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns a <code>PartnerType</code> enum value from a Javascript object name.
|
* Returns a <code>PartnerType</code> enum value from a Javascript object name.
|
||||||
* @param {Object} data The plain JavaScript object containing the name of the enum value.
|
* @param {Object} data The plain JavaScript object containing the name of the enum value.
|
||||||
* @return {module:model/PartnerType} The enum <code>PartnerType</code> value.
|
* @return {module:model/PartnerType} The enum <code>PartnerType</code> value.
|
||||||
*/
|
*/
|
||||||
public static constructFromObject(object: PartnerType|PartnerTypeValues|string) { return object; }
|
exports.constructFromObject = function(object) {
|
||||||
};
|
return object;
|
||||||
|
}
|
||||||
|
|
||||||
|
return exports;
|
||||||
|
}));
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user