Compare commits
5 Commits
cbc8c0d41b
...
6f7d4afb9f
| Author | SHA1 | Date | |
|---|---|---|---|
| 6f7d4afb9f | |||
| 65ad911dd5 | |||
| 6c28615b36 | |||
| 7eb9ce57b7 | |||
| 720e08b3c6 |
|
|
@ -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) {
|
public getBrowseNodesWithHttpInfo(getBrowseNodesRequest: 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) {
|
public getBrowseNodes(getBrowseNodesRequest: 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) {
|
public getItemsWithHttpInfo(getItemsRequest: 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) {
|
public getItems(getItemsRequest: 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) {
|
public getVariationsWithHttpInfo(getVariationsRequest: 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) {
|
public getVariations(getVariationsRequest: 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) {
|
public searchItemsWithHttpInfo(searchItemsRequest: 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) {
|
public searchItems(searchItemsRequest: 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,11 +42,16 @@ 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,44 +21,32 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
import { MultiValuedAttribute } from "./MultiValuedAttribute";
|
||||||
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 {
|
||||||
/**
|
/**
|
||||||
* The ExternalIds model module.
|
* @member {module:model/MultiValuedAttribute} EANs
|
||||||
* @module model/ExternalIds
|
|
||||||
* @version 1.0.0
|
|
||||||
*/
|
*/
|
||||||
|
public EANs?: MultiValuedAttribute
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>ExternalIds</code>.
|
* @member {module:model/MultiValuedAttribute} ISBNs
|
||||||
* @alias module:model/ExternalIds
|
|
||||||
* @class
|
|
||||||
*/
|
*/
|
||||||
var exports = function() {
|
public ISBNs?: MultiValuedAttribute;
|
||||||
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.
|
||||||
|
|
@ -67,39 +55,20 @@
|
||||||
* @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.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(data, obj) {
|
public static constructFromObject(data: any, obj?: ExternalIds) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new exports();
|
obj = obj || new ExternalIds();
|
||||||
|
|
||||||
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,50 +21,56 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
/**
|
||||||
if (typeof define === 'function' && define.amd) {
|
* The GetBrowseNodesRequest model module.
|
||||||
// AMD. Register as an anonymous module.
|
* @module model/GetBrowseNodesRequest
|
||||||
define(['ApiClient', 'model/GetBrowseNodesResource', 'model/PartnerType'], 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('./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 {
|
||||||
/**
|
/**
|
||||||
* The GetBrowseNodesRequest model module.
|
* @member {Array.<String>} BrowseNodeIds
|
||||||
* @module model/GetBrowseNodesRequest
|
|
||||||
* @version 1.0.0
|
|
||||||
*/
|
*/
|
||||||
|
public BrowseNodeIds?: string[];
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>GetBrowseNodesRequest</code>.
|
* @member {Array.<String>} LanguagesOfPreference
|
||||||
* @alias module:model/GetBrowseNodesRequest
|
|
||||||
* @class
|
|
||||||
* @param browseNodeIds {Array.<String>}
|
|
||||||
* @param partnerTag {String}
|
|
||||||
* @param partnerType {module:model/PartnerType}
|
|
||||||
*/
|
*/
|
||||||
var exports = function(browseNodeIds, partnerTag, partnerType) {
|
public LanguagesOfPreference?: string[];
|
||||||
var _this = this;
|
/**
|
||||||
|
* @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;
|
||||||
|
|
||||||
_this['BrowseNodeIds'] = browseNodeIds;
|
// not sure if this is ever going to be relevant:
|
||||||
|
// public constructor(browseNodeIds, partnerTag, partnerType) {
|
||||||
|
// this.BrowseNodeIds = browseNodeIds;
|
||||||
_this['PartnerTag'] = partnerTag;
|
// this.PartnerTag = partnerTag;
|
||||||
_this['PartnerType'] = partnerType;
|
// 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.
|
||||||
|
|
@ -73,60 +79,29 @@
|
||||||
* @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.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(data, obj) {
|
public static constructFromObject = function(data: any, obj?: GetBrowseNodesRequest) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new exports();
|
obj = obj || new GetBrowseNodesRequest();
|
||||||
|
|
||||||
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,51 +21,44 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
/**
|
||||||
if (typeof define === 'function' && define.amd) {
|
* Enum class GetBrowseNodesResource.
|
||||||
// AMD. Register as an anonymous module.
|
* @enum {}
|
||||||
define(['ApiClient'], factory);
|
* @readonly
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
*/
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
export const enum GetBrowseNodesResourceValues {
|
||||||
module.exports = factory(require('../ApiClient'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
if (!root.ProductAdvertisingAPIv1) {
|
|
||||||
root.ProductAdvertisingAPIv1 = {};
|
|
||||||
}
|
|
||||||
root.ProductAdvertisingAPIv1.GetBrowseNodesResource = factory(root.ProductAdvertisingAPIv1.ApiClient);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Enum class GetBrowseNodesResource.
|
* value: "BrowseNodes.Ancestor"
|
||||||
* @enum {}
|
* @const
|
||||||
* @readonly
|
|
||||||
*/
|
*/
|
||||||
var exports = {
|
Ancestor = "BrowseNodes.Ancestor",
|
||||||
/**
|
/**
|
||||||
* value: "BrowseNodes.Ancestor"
|
* value: "BrowseNodes.Children"
|
||||||
* @const
|
* @const
|
||||||
*/
|
*/
|
||||||
"Ancestor": "BrowseNodes.Ancestor",
|
Children = "BrowseNodes.Children"
|
||||||
/**
|
};
|
||||||
* value: "BrowseNodes.Children"
|
|
||||||
* @const
|
|
||||||
*/
|
|
||||||
"Children": "BrowseNodes.Children" };
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Enum class GetBrowseNodesResource.
|
||||||
|
* @enum {}
|
||||||
|
* @readonly
|
||||||
|
*/
|
||||||
|
export class GetBrowseNodesResource extends String {
|
||||||
|
/**
|
||||||
|
* value: "BrowseNodes.Ancestor"
|
||||||
|
* @const
|
||||||
|
*/
|
||||||
|
public static get Ancestor() { return GetBrowseNodesResourceValues.Ancestor; }
|
||||||
|
/**
|
||||||
|
* value: "BrowseNodes.Children"
|
||||||
|
* @const
|
||||||
|
*/
|
||||||
|
public static get Children() { return GetBrowseNodesResourceValues.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.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(object) {
|
public static constructFromObject(object: GetBrowseNodesResource|GetBrowseNodesResourceValues|string) { return object; }
|
||||||
return object;
|
};
|
||||||
}
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -21,43 +21,30 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
/**
|
||||||
if (typeof define === 'function' && define.amd) {
|
* The GetBrowseNodesResponse model module.
|
||||||
// AMD. Register as an anonymous module.
|
* @module model/GetBrowseNodesResponse
|
||||||
define(['ApiClient', 'model/BrowseNodesResult', 'model/ErrorData'], 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('./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 {
|
||||||
/**
|
/**
|
||||||
* The GetBrowseNodesResponse model module.
|
* @member {module:model/BrowseNodesResult} BrowseNodesResult
|
||||||
* @module model/GetBrowseNodesResponse
|
|
||||||
* @version 1.0.0
|
|
||||||
*/
|
*/
|
||||||
|
public BrowseNodesResult?: BrowseNodesResult;
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>GetBrowseNodesResponse</code>.
|
* @member {Array.<module:model/ErrorData>} Errors
|
||||||
* @alias module:model/GetBrowseNodesResponse
|
|
||||||
* @class
|
|
||||||
*/
|
*/
|
||||||
var exports = function() {
|
public Errors?: ErrorData[];
|
||||||
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.
|
||||||
|
|
@ -66,32 +53,17 @@
|
||||||
* @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.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(data, obj) {
|
public static constructFromObject(data: any, obj?: GetBrowseNodesResponse) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new exports();
|
obj = obj || new GetBrowseNodesResponse();
|
||||||
|
|
||||||
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,46 +21,35 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
/**
|
||||||
if (typeof define === 'function' && define.amd) {
|
* Enum class PartnerType.
|
||||||
// AMD. Register as an anonymous module.
|
* @enum {}
|
||||||
define(['ApiClient'], factory);
|
* @readonly
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
*/
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
export enum PartnerTypeValues {
|
||||||
module.exports = factory(require('../ApiClient'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
if (!root.ProductAdvertisingAPIv1) {
|
|
||||||
root.ProductAdvertisingAPIv1 = {};
|
|
||||||
}
|
|
||||||
root.ProductAdvertisingAPIv1.PartnerType = factory(root.ProductAdvertisingAPIv1.ApiClient);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Enum class PartnerType.
|
* value: "Associates"
|
||||||
* @enum {}
|
* @const
|
||||||
* @readonly
|
|
||||||
*/
|
*/
|
||||||
var exports = {
|
Associates = "Associates"
|
||||||
/**
|
};
|
||||||
* value: "Associates"
|
|
||||||
* @const
|
/**
|
||||||
*/
|
* Enum class PartnerType.
|
||||||
"Associates": "Associates" };
|
* @enum {}
|
||||||
|
* @readonly
|
||||||
|
*/
|
||||||
|
export class PartnerType extends String {
|
||||||
|
/**
|
||||||
|
* value: "Associates"
|
||||||
|
* @const
|
||||||
|
*/
|
||||||
|
public static get Associates() { return PartnerTypeValues.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.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(object) {
|
public static constructFromObject(object: PartnerType|PartnerTypeValues|string) { return object; }
|
||||||
return object;
|
};
|
||||||
}
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user