Refactored model/WebsiteSalesRank.
This commit is contained in:
parent
d1c1164e5f
commit
dd15339ae3
|
|
@ -28,6 +28,7 @@ import { BrowseNodeAncestor } from "./model/BrowseNodeAncestor";
|
|||
import { BrowseNodeChild } from "./model/BrowseNodeChild";
|
||||
import { ByLineInfo } from "./model/ByLineInfo";
|
||||
import { Classifications } from "./model/Classifications";
|
||||
import { DefaultApi } from "./api/DefaultApi";
|
||||
import { Condition } from "./model/Condition";
|
||||
import { Contributor } from "./model/Contributor";
|
||||
import { OfferSavings } from "./model/OfferSavings";
|
||||
|
|
@ -35,6 +36,7 @@ import { PriceType } from "./model/PriceType";
|
|||
import { SingleBooleanValuedAttribute } from "./model/SingleBooleanValuedAttribute";
|
||||
import { SingleIntegerValuedAttribute } from "./model/SingleIntegerValuedAttribute";
|
||||
import { SingleStringValuedAttribute } from "./model/SingleStringValuedAttribute";
|
||||
import { WebsiteSalesRank } from "./model/WebsiteSalesRank";
|
||||
|
||||
/**
|
||||
* ProductAdvertisingAPI 5.0 NodeJS SDK.<br>
|
||||
|
|
@ -65,7 +67,7 @@ import { SingleStringValuedAttribute } from "./model/SingleStringValuedAttribute
|
|||
* </pre>
|
||||
* </p>
|
||||
* @module index
|
||||
* @version 1.0.0
|
||||
* @version 2.0.0
|
||||
*/
|
||||
export {
|
||||
/**
|
||||
|
|
@ -517,10 +519,10 @@ export {
|
|||
* The WebsiteSalesRank model constructor.
|
||||
* @property {module:model/WebsiteSalesRank}
|
||||
*/
|
||||
WebsiteSalesRank: WebsiteSalesRank,
|
||||
WebsiteSalesRank,
|
||||
/**
|
||||
* The DefaultApi service constructor.
|
||||
* @property {module:api/DefaultApi}
|
||||
*/
|
||||
DefaultApi: DefaultApi
|
||||
DefaultApi
|
||||
};
|
||||
|
|
@ -21,46 +21,36 @@
|
|||
*
|
||||
*/
|
||||
|
||||
(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.WebsiteSalesRank = factory(root.ProductAdvertisingAPIv1.ApiClient);
|
||||
}
|
||||
}(this, function(ApiClient) {
|
||||
'use strict';
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
/**
|
||||
* The WebsiteSalesRank model module.
|
||||
* @module model/WebsiteSalesRank
|
||||
* @version 1.0.0
|
||||
*/
|
||||
|
||||
/**
|
||||
import { ApiClient } from "../ApiClient";
|
||||
|
||||
/**
|
||||
* Constructs a new <code>WebsiteSalesRank</code>.
|
||||
* @alias module:model/WebsiteSalesRank
|
||||
* @class
|
||||
*/
|
||||
var exports = function() {
|
||||
var _this = this;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
export class WebsiteSalesRank {
|
||||
/**
|
||||
* @member {String} ContextFreeName
|
||||
*/
|
||||
public ContextFreeName?: string;
|
||||
/**
|
||||
* @member {String} DisplayName
|
||||
*/
|
||||
public DisplayName?: string;
|
||||
/**
|
||||
* @member {String} Id
|
||||
*/
|
||||
public Id?: string;
|
||||
/**
|
||||
* @member {Number} SalesRank
|
||||
*/
|
||||
public SalesRank?: number;
|
||||
/**
|
||||
* Constructs a <code>WebsiteSalesRank</code> from a plain JavaScript object, optionally creating a new instance.
|
||||
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
||||
|
|
@ -68,46 +58,23 @@
|
|||
* @param {module:model/WebsiteSalesRank} obj Optional instance to populate.
|
||||
* @return {module:model/WebsiteSalesRank} The populated <code>WebsiteSalesRank</code> instance.
|
||||
*/
|
||||
exports.constructFromObject = function(data, obj) {
|
||||
public static constructFromObject(data: any, obj?: WebsiteSalesRank) {
|
||||
if (data) {
|
||||
obj = obj || new exports();
|
||||
obj = obj || new WebsiteSalesRank();
|
||||
|
||||
if (data.hasOwnProperty('ContextFreeName')) {
|
||||
obj['ContextFreeName'] = ApiClient.convertToType(data['ContextFreeName'], 'String');
|
||||
obj.ContextFreeName = ApiClient.convertToType(data['ContextFreeName'], 'String');
|
||||
}
|
||||
if (data.hasOwnProperty('DisplayName')) {
|
||||
obj['DisplayName'] = ApiClient.convertToType(data['DisplayName'], 'String');
|
||||
obj.DisplayName = ApiClient.convertToType(data['DisplayName'], 'String');
|
||||
}
|
||||
if (data.hasOwnProperty('Id')) {
|
||||
obj['Id'] = ApiClient.convertToType(data['Id'], 'String');
|
||||
obj.Id = ApiClient.convertToType(data['Id'], 'String');
|
||||
}
|
||||
if (data.hasOwnProperty('SalesRank')) {
|
||||
obj['SalesRank'] = ApiClient.convertToType(data['SalesRank'], 'Number');
|
||||
obj.SalesRank = ApiClient.convertToType(data['SalesRank'], 'Number');
|
||||
}
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
|
||||
/**
|
||||
* @member {String} ContextFreeName
|
||||
*/
|
||||
exports.prototype['ContextFreeName'] = undefined;
|
||||
/**
|
||||
* @member {String} DisplayName
|
||||
*/
|
||||
exports.prototype['DisplayName'] = undefined;
|
||||
/**
|
||||
* @member {String} Id
|
||||
*/
|
||||
exports.prototype['Id'] = undefined;
|
||||
/**
|
||||
* @member {Number} SalesRank
|
||||
*/
|
||||
exports.prototype['SalesRank'] = undefined;
|
||||
|
||||
|
||||
|
||||
return exports;
|
||||
}));
|
||||
|
||||
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user