Refactored model/TradeInInfo.
This commit is contained in:
parent
6f313822c0
commit
74d3ac8a36
|
|
@ -81,6 +81,7 @@ import { SingleBooleanValuedAttribute } from "./model/SingleBooleanValuedAttribu
|
||||||
import { SingleIntegerValuedAttribute } from "./model/SingleIntegerValuedAttribute";
|
import { SingleIntegerValuedAttribute } from "./model/SingleIntegerValuedAttribute";
|
||||||
import { SingleStringValuedAttribute } from "./model/SingleStringValuedAttribute";
|
import { SingleStringValuedAttribute } from "./model/SingleStringValuedAttribute";
|
||||||
import { TechnicalInfo } from "./model/TechnicalInfo";
|
import { TechnicalInfo } from "./model/TechnicalInfo";
|
||||||
|
import { TradeInInfo } from "./model/TradeInInfo";
|
||||||
import { TradeInPrice } from "./model/TradeInPrice";
|
import { TradeInPrice } from "./model/TradeInPrice";
|
||||||
import { UnitBasedAttribute } from "./model/UnitBasedAttribute";
|
import { UnitBasedAttribute } from "./model/UnitBasedAttribute";
|
||||||
import { VariationDimension } from "./model/VariationDimension";
|
import { VariationDimension } from "./model/VariationDimension";
|
||||||
|
|
|
||||||
|
|
@ -21,43 +21,29 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
/**
|
||||||
if (typeof define === 'function' && define.amd) {
|
* The TradeInInfo model module.
|
||||||
// AMD. Register as an anonymous module.
|
* @module model/TradeInInfo
|
||||||
define(['ApiClient', 'model/TradeInPrice'], 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('./TradeInPrice'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
if (!root.ProductAdvertisingAPIv1) {
|
|
||||||
root.ProductAdvertisingAPIv1 = {};
|
|
||||||
}
|
|
||||||
root.ProductAdvertisingAPIv1.TradeInInfo = factory(root.ProductAdvertisingAPIv1.ApiClient, root.ProductAdvertisingAPIv1.TradeInPrice);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient, TradeInPrice) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
import { ApiClient } from "../ApiClient";
|
||||||
|
import { TradeInPrice } from "./TradeInPrice";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructs a new <code>TradeInInfo</code>.
|
||||||
|
* @alias module:model/TradeInInfo
|
||||||
|
* @class
|
||||||
|
*/
|
||||||
|
export class TradeInInfo {
|
||||||
/**
|
/**
|
||||||
* The TradeInInfo model module.
|
* @member {Boolean} IsEligibleForTradeIn
|
||||||
* @module model/TradeInInfo
|
|
||||||
* @version 1.0.0
|
|
||||||
*/
|
*/
|
||||||
|
public IsEligibleForTradeIn?: boolean;
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>TradeInInfo</code>.
|
* @member {module:model/TradeInPrice} Price
|
||||||
* @alias module:model/TradeInInfo
|
|
||||||
* @class
|
|
||||||
*/
|
*/
|
||||||
var exports = function() {
|
public Price?: TradeInPrice;
|
||||||
var _this = this;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>TradeInInfo</code> from a plain JavaScript object, optionally creating a new instance.
|
* Constructs a <code>TradeInInfo</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
|
|
@ -66,32 +52,17 @@
|
||||||
* @param {module:model/TradeInInfo} obj Optional instance to populate.
|
* @param {module:model/TradeInInfo} obj Optional instance to populate.
|
||||||
* @return {module:model/TradeInInfo} The populated <code>TradeInInfo</code> instance.
|
* @return {module:model/TradeInInfo} The populated <code>TradeInInfo</code> instance.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(data, obj) {
|
public static constructFromObject(data: any, obj?: TradeInInfo) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new exports();
|
obj = obj || new TradeInInfo();
|
||||||
|
|
||||||
if (data.hasOwnProperty('IsEligibleForTradeIn')) {
|
if (data.hasOwnProperty('IsEligibleForTradeIn')) {
|
||||||
obj['IsEligibleForTradeIn'] = ApiClient.convertToType(data['IsEligibleForTradeIn'], 'Boolean');
|
obj.IsEligibleForTradeIn = ApiClient.convertToType(data['IsEligibleForTradeIn'], 'Boolean');
|
||||||
}
|
}
|
||||||
if (data.hasOwnProperty('Price')) {
|
if (data.hasOwnProperty('Price')) {
|
||||||
obj['Price'] = TradeInPrice.constructFromObject(data['Price']);
|
obj.Price = TradeInPrice.constructFromObject(data['Price']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
|
};
|
||||||
/**
|
|
||||||
* @member {Boolean} IsEligibleForTradeIn
|
|
||||||
*/
|
|
||||||
exports.prototype['IsEligibleForTradeIn'] = undefined;
|
|
||||||
/**
|
|
||||||
* @member {module:model/TradeInPrice} Price
|
|
||||||
*/
|
|
||||||
exports.prototype['Price'] = undefined;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user