Compare commits
5 Commits
cbc8c0d41b
...
6f7d4afb9f
| Author | SHA1 | Date | |
|---|---|---|---|
| 6f7d4afb9f | |||
| 65ad911dd5 | |||
| 6c28615b36 | |||
| 7eb9ce57b7 | |||
| 720e08b3c6 |
|
|
@ -48,7 +48,7 @@
|
|||
* @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
|
||||
*/
|
||||
public getBrowseNodesWithHttpInfo(getBrowseNodesRequest) {
|
||||
public getBrowseNodesWithHttpInfo(getBrowseNodesRequest: GetBrowseNodesRequest) {
|
||||
var postBody = getBrowseNodesRequest;
|
||||
|
||||
// verify the required parameter 'getBrowseNodesRequest' is set
|
||||
|
|
@ -84,7 +84,7 @@
|
|||
* @param {module:model/GetBrowseNodesRequest} getBrowseNodesRequest GetBrowseNodesRequest
|
||||
* @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)
|
||||
.then(function(response_and_data) {
|
||||
return response_and_data.data;
|
||||
|
|
@ -96,7 +96,7 @@
|
|||
* @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
|
||||
*/
|
||||
public getItemsWithHttpInfo(getItemsRequest) {
|
||||
public getItemsWithHttpInfo(getItemsRequest: GetItemsRequest) {
|
||||
var postBody = getItemsRequest;
|
||||
|
||||
// verify the required parameter 'getItemsRequest' is set
|
||||
|
|
@ -132,7 +132,7 @@
|
|||
* @param {module:model/GetItemsRequest} getItemsRequest GetItemsRequest
|
||||
* @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)
|
||||
.then(function(response_and_data) {
|
||||
return response_and_data.data;
|
||||
|
|
@ -144,7 +144,7 @@
|
|||
* @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
|
||||
*/
|
||||
public getVariationsWithHttpInfo(getVariationsRequest) {
|
||||
public getVariationsWithHttpInfo(getVariationsRequest: GetVariationsRequest) {
|
||||
var postBody = getVariationsRequest;
|
||||
|
||||
// verify the required parameter 'getVariationsRequest' is set
|
||||
|
|
@ -180,7 +180,7 @@
|
|||
* @param {module:model/GetVariationsRequest} getVariationsRequest GetVariationsRequest
|
||||
* @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)
|
||||
.then(function(response_and_data) {
|
||||
return response_and_data.data;
|
||||
|
|
@ -192,7 +192,7 @@
|
|||
* @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
|
||||
*/
|
||||
public searchItemsWithHttpInfo(searchItemsRequest) {
|
||||
public searchItemsWithHttpInfo(searchItemsRequest: SearchItemsRequest) {
|
||||
var postBody = searchItemsRequest;
|
||||
|
||||
// verify the required parameter 'searchItemsRequest' is set
|
||||
|
|
@ -228,7 +228,7 @@
|
|||
* @param {module:model/SearchItemsRequest} searchItemsRequest SearchItemsRequest
|
||||
* @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)
|
||||
.then(function(response_and_data) {
|
||||
return response_and_data.data;
|
||||
|
|
|
|||
|
|
@ -42,11 +42,16 @@ import { DeliveryFlag } from "./model/DeliveryFlag";
|
|||
import { DimensionBasedAttribute } from "./model/DimensionBasedAttribute";
|
||||
import { DurationPrice } from "./model/DurationPrice";
|
||||
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 { LanguageType } from "./model/LanguageType";
|
||||
import { MultiValuedAttribute } from "./model/MultiValuedAttribute";
|
||||
import { OfferPrice } from "./model/OfferPrice";
|
||||
import { OfferSavings } from "./model/OfferSavings";
|
||||
import { PartnerType } from "./model/PartnerType";
|
||||
import { PriceType } from "./model/PriceType";
|
||||
import { Rating } from "./model/Rating";
|
||||
import { SingleBooleanValuedAttribute } from "./model/SingleBooleanValuedAttribute";
|
||||
|
|
|
|||
|
|
@ -21,25 +21,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
(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';
|
||||
|
||||
|
||||
|
||||
import { MultiValuedAttribute } from "./MultiValuedAttribute";
|
||||
|
||||
/**
|
||||
* The ExternalIds model module.
|
||||
|
|
@ -52,13 +34,19 @@
|
|||
* @alias module:model/ExternalIds
|
||||
* @class
|
||||
*/
|
||||
var exports = function() {
|
||||
var _this = this;
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
export class ExternalIds {
|
||||
/**
|
||||
* @member {module:model/MultiValuedAttribute} EANs
|
||||
*/
|
||||
public EANs?: MultiValuedAttribute
|
||||
/**
|
||||
* @member {module:model/MultiValuedAttribute} ISBNs
|
||||
*/
|
||||
public ISBNs?: MultiValuedAttribute;
|
||||
/**
|
||||
* @member {module:model/MultiValuedAttribute} UPCs
|
||||
*/
|
||||
public UPCs?: MultiValuedAttribute;
|
||||
|
||||
/**
|
||||
* 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.
|
||||
* @return {module:model/ExternalIds} The populated <code>ExternalIds</code> instance.
|
||||
*/
|
||||
exports.constructFromObject = function(data, obj) {
|
||||
public static constructFromObject(data: any, obj?: ExternalIds) {
|
||||
if (data) {
|
||||
obj = obj || new exports();
|
||||
obj = obj || new ExternalIds();
|
||||
|
||||
if (data.hasOwnProperty('EANs')) {
|
||||
obj['EANs'] = MultiValuedAttribute.constructFromObject(data['EANs']);
|
||||
obj.EANs = MultiValuedAttribute.constructFromObject(data['EANs']);
|
||||
}
|
||||
if (data.hasOwnProperty('ISBNs')) {
|
||||
obj['ISBNs'] = MultiValuedAttribute.constructFromObject(data['ISBNs']);
|
||||
obj.ISBNs = MultiValuedAttribute.constructFromObject(data['ISBNs']);
|
||||
}
|
||||
if (data.hasOwnProperty('UPCs')) {
|
||||
obj['UPCs'] = MultiValuedAttribute.constructFromObject(data['UPCs']);
|
||||
obj.UPCs = MultiValuedAttribute.constructFromObject(data['UPCs']);
|
||||
}
|
||||
}
|
||||
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,32 +21,16 @@
|
|||
*
|
||||
*/
|
||||
|
||||
(function(root, factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
// AMD. Register as an anonymous module.
|
||||
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';
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* The GetBrowseNodesRequest model module.
|
||||
* @module model/GetBrowseNodesRequest
|
||||
* @version 1.0.0
|
||||
*/
|
||||
|
||||
import { ApiClient } from "../ApiClient";
|
||||
import { PartnerType } from "./PartnerType";
|
||||
import { GetBrowseNodesResource } from "./GetBrowseNodesResource";
|
||||
|
||||
/**
|
||||
* Constructs a new <code>GetBrowseNodesRequest</code>.
|
||||
* @alias module:model/GetBrowseNodesRequest
|
||||
|
|
@ -55,16 +39,38 @@
|
|||
* @param partnerTag {String}
|
||||
* @param partnerType {module:model/PartnerType}
|
||||
*/
|
||||
var exports = function(browseNodeIds, partnerTag, partnerType) {
|
||||
var _this = this;
|
||||
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;
|
||||
|
||||
_this['BrowseNodeIds'] = browseNodeIds;
|
||||
|
||||
|
||||
_this['PartnerTag'] = partnerTag;
|
||||
_this['PartnerType'] = partnerType;
|
||||
|
||||
};
|
||||
// not sure if this is ever going to be relevant:
|
||||
// public constructor(browseNodeIds, partnerTag, partnerType) {
|
||||
// this.BrowseNodeIds = browseNodeIds;
|
||||
// this.PartnerTag = partnerTag;
|
||||
// this.PartnerType = partnerType;
|
||||
// };
|
||||
|
||||
/**
|
||||
* 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.
|
||||
* @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) {
|
||||
obj = obj || new exports();
|
||||
obj = obj || new GetBrowseNodesRequest();
|
||||
|
||||
if (data.hasOwnProperty('BrowseNodeIds')) {
|
||||
obj['BrowseNodeIds'] = ApiClient.convertToType(data['BrowseNodeIds'], ['String']);
|
||||
obj.BrowseNodeIds = ApiClient.convertToType(data['BrowseNodeIds'], ['String']);
|
||||
}
|
||||
if (data.hasOwnProperty('LanguagesOfPreference')) {
|
||||
obj['LanguagesOfPreference'] = ApiClient.convertToType(data['LanguagesOfPreference'], ['String']);
|
||||
obj.LanguagesOfPreference = ApiClient.convertToType(data['LanguagesOfPreference'], ['String']);
|
||||
}
|
||||
if (data.hasOwnProperty('Marketplace')) {
|
||||
obj['Marketplace'] = ApiClient.convertToType(data['Marketplace'], 'String');
|
||||
obj.Marketplace = ApiClient.convertToType(data['Marketplace'], 'String');
|
||||
}
|
||||
if (data.hasOwnProperty('PartnerTag')) {
|
||||
obj['PartnerTag'] = ApiClient.convertToType(data['PartnerTag'], 'String');
|
||||
obj.PartnerTag = ApiClient.convertToType(data['PartnerTag'], 'String');
|
||||
}
|
||||
if (data.hasOwnProperty('PartnerType')) {
|
||||
obj['PartnerType'] = PartnerType.constructFromObject(data['PartnerType']);
|
||||
obj.PartnerType = PartnerType.constructFromObject(data['PartnerType']);
|
||||
}
|
||||
if (data.hasOwnProperty('Resources')) {
|
||||
obj['Resources'] = ApiClient.convertToType(data['Resources'], [GetBrowseNodesResource]);
|
||||
obj.Resources = ApiClient.convertToType(data['Resources'], [GetBrowseNodesResource]);
|
||||
}
|
||||
}
|
||||
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) {
|
||||
// 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.GetBrowseNodesResource = factory(root.ProductAdvertisingAPIv1.ApiClient);
|
||||
}
|
||||
}(this, function(ApiClient) {
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* Enum class GetBrowseNodesResource.
|
||||
* @enum {}
|
||||
* @readonly
|
||||
*/
|
||||
export const enum GetBrowseNodesResourceValues {
|
||||
/**
|
||||
* value: "BrowseNodes.Ancestor"
|
||||
* @const
|
||||
*/
|
||||
Ancestor = "BrowseNodes.Ancestor",
|
||||
/**
|
||||
* value: "BrowseNodes.Children"
|
||||
* @const
|
||||
*/
|
||||
Children = "BrowseNodes.Children"
|
||||
};
|
||||
|
||||
/**
|
||||
* Enum class GetBrowseNodesResource.
|
||||
* @enum {}
|
||||
* @readonly
|
||||
*/
|
||||
var exports = {
|
||||
export class GetBrowseNodesResource extends String {
|
||||
/**
|
||||
* value: "BrowseNodes.Ancestor"
|
||||
* @const
|
||||
*/
|
||||
"Ancestor": "BrowseNodes.Ancestor",
|
||||
public static get Ancestor() { return GetBrowseNodesResourceValues.Ancestor; }
|
||||
/**
|
||||
* value: "BrowseNodes.Children"
|
||||
* @const
|
||||
*/
|
||||
"Children": "BrowseNodes.Children" };
|
||||
|
||||
public static get Children() { return GetBrowseNodesResourceValues.Children; }
|
||||
/**
|
||||
* 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.
|
||||
* @return {module:model/GetBrowseNodesResource} The enum <code>GetBrowseNodesResource</code> value.
|
||||
*/
|
||||
exports.constructFromObject = function(object) {
|
||||
return object;
|
||||
}
|
||||
|
||||
return exports;
|
||||
}));
|
||||
|
||||
|
||||
public static constructFromObject(object: GetBrowseNodesResource|GetBrowseNodesResourceValues|string) { return object; }
|
||||
};
|
||||
|
|
|
|||
|
|
@ -21,43 +21,30 @@
|
|||
*
|
||||
*/
|
||||
|
||||
(function(root, factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
// AMD. Register as an anonymous module.
|
||||
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';
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* The GetBrowseNodesResponse model module.
|
||||
* @module model/GetBrowseNodesResponse
|
||||
* @version 1.0.0
|
||||
*/
|
||||
|
||||
import { ApiClient } from "../ApiClient";
|
||||
import { BrowseNodesResult } from "./BrowseNodesResult";
|
||||
import { ErrorData } from "./ErrorData";
|
||||
|
||||
/**
|
||||
* Constructs a new <code>GetBrowseNodesResponse</code>.
|
||||
* @alias module:model/GetBrowseNodesResponse
|
||||
* @class
|
||||
*/
|
||||
var exports = function() {
|
||||
var _this = this;
|
||||
|
||||
|
||||
|
||||
};
|
||||
export class GetBrowseNodesResponse {
|
||||
/**
|
||||
* @member {module:model/BrowseNodesResult} BrowseNodesResult
|
||||
*/
|
||||
public BrowseNodesResult?: BrowseNodesResult;
|
||||
/**
|
||||
* @member {Array.<module:model/ErrorData>} Errors
|
||||
*/
|
||||
public Errors?: ErrorData[];
|
||||
|
||||
/**
|
||||
* 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.
|
||||
* @return {module:model/GetBrowseNodesResponse} The populated <code>GetBrowseNodesResponse</code> instance.
|
||||
*/
|
||||
exports.constructFromObject = function(data, obj) {
|
||||
public static constructFromObject(data: any, obj?: GetBrowseNodesResponse) {
|
||||
if (data) {
|
||||
obj = obj || new exports();
|
||||
obj = obj || new GetBrowseNodesResponse();
|
||||
|
||||
if (data.hasOwnProperty('BrowseNodesResult')) {
|
||||
obj['BrowseNodesResult'] = BrowseNodesResult.constructFromObject(data['BrowseNodesResult']);
|
||||
obj.BrowseNodesResult = BrowseNodesResult.constructFromObject(data['BrowseNodesResult']);
|
||||
}
|
||||
if (data.hasOwnProperty('Errors')) {
|
||||
obj['Errors'] = ApiClient.convertToType(data['Errors'], [ErrorData]);
|
||||
obj.Errors = ApiClient.convertToType(data['Errors'], [ErrorData]);
|
||||
}
|
||||
}
|
||||
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) {
|
||||
// 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.PartnerType = factory(root.ProductAdvertisingAPIv1.ApiClient);
|
||||
}
|
||||
}(this, function(ApiClient) {
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* Enum class PartnerType.
|
||||
* @enum {}
|
||||
* @readonly
|
||||
*/
|
||||
export enum PartnerTypeValues {
|
||||
/**
|
||||
* value: "Associates"
|
||||
* @const
|
||||
*/
|
||||
Associates = "Associates"
|
||||
};
|
||||
|
||||
/**
|
||||
* Enum class PartnerType.
|
||||
* @enum {}
|
||||
* @readonly
|
||||
*/
|
||||
var exports = {
|
||||
export class PartnerType extends String {
|
||||
/**
|
||||
* value: "Associates"
|
||||
* @const
|
||||
*/
|
||||
"Associates": "Associates" };
|
||||
public static get Associates() { return PartnerTypeValues.Associates; }
|
||||
|
||||
/**
|
||||
* 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.
|
||||
* @return {module:model/PartnerType} The enum <code>PartnerType</code> value.
|
||||
*/
|
||||
exports.constructFromObject = function(object) {
|
||||
return object;
|
||||
}
|
||||
|
||||
return exports;
|
||||
}));
|
||||
|
||||
|
||||
public static constructFromObject(object: PartnerType|PartnerTypeValues|string) { return object; }
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user