Refactored model/Languages.
This commit is contained in:
parent
23fb0cc99a
commit
d18bcfa1d7
|
|
@ -36,6 +36,7 @@ import { Classifications } from "./model/Classifications";
|
||||||
import { Condition } from "./model/Condition";
|
import { Condition } from "./model/Condition";
|
||||||
import { ContentRating } from "./model/ContentRating";
|
import { ContentRating } from "./model/ContentRating";
|
||||||
import { Contributor } from "./model/Contributor";
|
import { Contributor } from "./model/Contributor";
|
||||||
|
import { Languages } from "./model/Languages";
|
||||||
import { LanguageType } from "./model/LanguageType";
|
import { LanguageType } from "./model/LanguageType";
|
||||||
import { OfferSavings } from "./model/OfferSavings";
|
import { OfferSavings } from "./model/OfferSavings";
|
||||||
import { PriceType } from "./model/PriceType";
|
import { PriceType } from "./model/PriceType";
|
||||||
|
|
|
||||||
|
|
@ -15,50 +15,38 @@
|
||||||
* permissions and limitations under the License.
|
* permissions and limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { LanguageType } from "./LanguageType";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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) {
|
* The Languages model module.
|
||||||
// AMD. Register as an anonymous module.
|
* @module model/Languages
|
||||||
define(['ApiClient', 'model/LanguageType'], 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('./LanguageType'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
if (!root.ProductAdvertisingAPIv1) {
|
|
||||||
root.ProductAdvertisingAPIv1 = {};
|
|
||||||
}
|
|
||||||
root.ProductAdvertisingAPIv1.Languages = factory(root.ProductAdvertisingAPIv1.ApiClient, root.ProductAdvertisingAPIv1.LanguageType);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient, LanguageType) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructs a new <code>Languages</code>.
|
||||||
|
* @alias module:model/Languages
|
||||||
|
* @class
|
||||||
|
*/
|
||||||
|
export class Languages {
|
||||||
/**
|
/**
|
||||||
* The Languages model module.
|
* @member {Array.<module:model/LanguageType>} DisplayValues
|
||||||
* @module model/Languages
|
|
||||||
* @version 1.0.0
|
|
||||||
*/
|
*/
|
||||||
|
public DisplayValues?: LanguageType[];
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>Languages</code>.
|
* @member {String} Label
|
||||||
* @alias module:model/Languages
|
|
||||||
* @class
|
|
||||||
*/
|
*/
|
||||||
var exports = function() {
|
public Label?: string;
|
||||||
var _this = this;
|
/**
|
||||||
|
* @member {String} Locale
|
||||||
|
*/
|
||||||
|
public Locale?: string;
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>Languages</code> from a plain JavaScript object, optionally creating a new instance.
|
* Constructs a <code>Languages</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
|
|
@ -67,39 +55,20 @@
|
||||||
* @param {module:model/Languages} obj Optional instance to populate.
|
* @param {module:model/Languages} obj Optional instance to populate.
|
||||||
* @return {module:model/Languages} The populated <code>Languages</code> instance.
|
* @return {module:model/Languages} The populated <code>Languages</code> instance.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(data, obj) {
|
public static constructFromObject(data: any, obj?: Languages) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new exports();
|
obj = obj || new Languages();
|
||||||
|
|
||||||
if (data.hasOwnProperty('DisplayValues')) {
|
if (data.hasOwnProperty('DisplayValues')) {
|
||||||
obj['DisplayValues'] = ApiClient.convertToType(data['DisplayValues'], [LanguageType]);
|
obj.DisplayValues = ApiClient.convertToType(data['DisplayValues'], [LanguageType]);
|
||||||
}
|
}
|
||||||
if (data.hasOwnProperty('Label')) {
|
if (data.hasOwnProperty('Label')) {
|
||||||
obj['Label'] = ApiClient.convertToType(data['Label'], 'String');
|
obj.Label = ApiClient.convertToType(data['Label'], 'String');
|
||||||
}
|
}
|
||||||
if (data.hasOwnProperty('Locale')) {
|
if (data.hasOwnProperty('Locale')) {
|
||||||
obj['Locale'] = ApiClient.convertToType(data['Locale'], 'String');
|
obj.Locale = ApiClient.convertToType(data['Locale'], 'String');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
|
};
|
||||||
/**
|
|
||||||
* @member {Array.<module:model/LanguageType>} DisplayValues
|
|
||||||
*/
|
|
||||||
exports.prototype['DisplayValues'] = undefined;
|
|
||||||
/**
|
|
||||||
* @member {String} Label
|
|
||||||
*/
|
|
||||||
exports.prototype['Label'] = undefined;
|
|
||||||
/**
|
|
||||||
* @member {String} Locale
|
|
||||||
*/
|
|
||||||
exports.prototype['Locale'] = undefined;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user