Refactored model/ContentRating. Removed unneeded import from Classifications.
This commit is contained in:
parent
ec1a72ab2b
commit
8e2db07c9c
|
|
@ -22,6 +22,9 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { ApiClient } from "./ApiClient";
|
import { ApiClient } from "./ApiClient";
|
||||||
|
|
||||||
|
import { DefaultApi } from "./api/DefaultApi";
|
||||||
|
|
||||||
import { Availability } from "./model/Availability";
|
import { Availability } from "./model/Availability";
|
||||||
import { BrowseNode } from "./model/BrowseNode";
|
import { BrowseNode } from "./model/BrowseNode";
|
||||||
import { BrowseNodeAncestor } from "./model/BrowseNodeAncestor";
|
import { BrowseNodeAncestor } from "./model/BrowseNodeAncestor";
|
||||||
|
|
@ -30,8 +33,8 @@ import { BrowseNodeInfo } from "./model/BrowseNodeInfo";
|
||||||
import { BrowseNodesResult } from "./model/BrowseNodesResult";
|
import { BrowseNodesResult } from "./model/BrowseNodesResult";
|
||||||
import { ByLineInfo } from "./model/ByLineInfo";
|
import { ByLineInfo } from "./model/ByLineInfo";
|
||||||
import { Classifications } from "./model/Classifications";
|
import { Classifications } from "./model/Classifications";
|
||||||
import { DefaultApi } from "./api/DefaultApi";
|
|
||||||
import { Condition } from "./model/Condition";
|
import { Condition } from "./model/Condition";
|
||||||
|
import { ContentRating } from "./model/ContentRating";
|
||||||
import { Contributor } from "./model/Contributor";
|
import { Contributor } from "./model/Contributor";
|
||||||
import { OfferSavings } from "./model/OfferSavings";
|
import { OfferSavings } from "./model/OfferSavings";
|
||||||
import { PriceType } from "./model/PriceType";
|
import { PriceType } from "./model/PriceType";
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,6 @@
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { ApiClient } from "../ApiClient";
|
|
||||||
import { SingleStringValuedAttribute } from "./SingleStringValuedAttribute";
|
import { SingleStringValuedAttribute } from "./SingleStringValuedAttribute";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -15,32 +15,14 @@
|
||||||
* permissions and limitations under the License.
|
* permissions and limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { SingleStringValuedAttribute } from "./SingleStringValuedAttribute";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ProductAdvertisingAPI
|
* ProductAdvertisingAPI
|
||||||
* https://webservices.amazon.com/paapi5/documentation/index.html
|
* https://webservices.amazon.com/paapi5/documentation/index.html
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
|
||||||
// AMD. Register as an anonymous module.
|
|
||||||
define(['ApiClient', 'model/SingleStringValuedAttribute'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
|
||||||
module.exports = factory(require('../ApiClient'), require('./SingleStringValuedAttribute'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
if (!root.ProductAdvertisingAPIv1) {
|
|
||||||
root.ProductAdvertisingAPIv1 = {};
|
|
||||||
}
|
|
||||||
root.ProductAdvertisingAPIv1.ContentRating = factory(root.ProductAdvertisingAPIv1.ApiClient, root.ProductAdvertisingAPIv1.SingleStringValuedAttribute);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient, SingleStringValuedAttribute) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The ContentRating model module.
|
* The ContentRating model module.
|
||||||
* @module model/ContentRating
|
* @module model/ContentRating
|
||||||
|
|
@ -52,11 +34,11 @@
|
||||||
* @alias module:model/ContentRating
|
* @alias module:model/ContentRating
|
||||||
* @class
|
* @class
|
||||||
*/
|
*/
|
||||||
var exports = function() {
|
export class ContentRating {
|
||||||
var _this = this;
|
/**
|
||||||
|
* @member {module:model/SingleStringValuedAttribute} AudienceRating
|
||||||
|
*/
|
||||||
};
|
public AudienceRating?: SingleStringValuedAttribute;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>ContentRating</code> from a plain JavaScript object, optionally creating a new instance.
|
* Constructs a <code>ContentRating</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
|
|
@ -65,25 +47,14 @@
|
||||||
* @param {module:model/ContentRating} obj Optional instance to populate.
|
* @param {module:model/ContentRating} obj Optional instance to populate.
|
||||||
* @return {module:model/ContentRating} The populated <code>ContentRating</code> instance.
|
* @return {module:model/ContentRating} The populated <code>ContentRating</code> instance.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(data, obj) {
|
public static constructFromObject(data: any, obj?: ContentRating) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new exports();
|
obj = obj || new ContentRating();
|
||||||
|
|
||||||
if (data.hasOwnProperty('AudienceRating')) {
|
if (data.hasOwnProperty('AudienceRating')) {
|
||||||
obj['AudienceRating'] = SingleStringValuedAttribute.constructFromObject(data['AudienceRating']);
|
obj.AudienceRating = SingleStringValuedAttribute.constructFromObject(data['AudienceRating']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
|
};
|
||||||
/**
|
|
||||||
* @member {module:model/SingleStringValuedAttribute} AudienceRating
|
|
||||||
*/
|
|
||||||
exports.prototype['AudienceRating'] = undefined;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
|
||||||
|
|
||||||
|
|
||||||
Loading…
Reference in New Issue
Block a user