Refactored model/OfferAvailability.
This commit is contained in:
parent
836a8d8d65
commit
b6d939ea05
|
|
@ -58,6 +58,7 @@ import { MaxPrice } from "./model/MaxPrice";
|
||||||
import { Merchant } from "./model/Merchant";
|
import { Merchant } from "./model/Merchant";
|
||||||
import { MinPrice } from "./model/MinPrice";
|
import { MinPrice } from "./model/MinPrice";
|
||||||
import { MultiValuedAttribute } from "./model/MultiValuedAttribute";
|
import { MultiValuedAttribute } from "./model/MultiValuedAttribute";
|
||||||
|
import { OfferAvailability } from "./model/OfferAvailability";
|
||||||
import { OfferCount } from "./model/OfferCount";
|
import { OfferCount } from "./model/OfferCount";
|
||||||
import { OfferPrice } from "./model/OfferPrice";
|
import { OfferPrice } from "./model/OfferPrice";
|
||||||
import { OfferSavings } from "./model/OfferSavings";
|
import { OfferSavings } from "./model/OfferSavings";
|
||||||
|
|
|
||||||
|
|
@ -21,45 +21,36 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
/**
|
||||||
if (typeof define === 'function' && define.amd) {
|
* The OfferAvailability model module.
|
||||||
// AMD. Register as an anonymous module.
|
* @module model/OfferAvailability
|
||||||
define(['ApiClient'], 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'));
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
|
||||||
if (!root.ProductAdvertisingAPIv1) {
|
|
||||||
root.ProductAdvertisingAPIv1 = {};
|
|
||||||
}
|
|
||||||
root.ProductAdvertisingAPIv1.OfferAvailability = factory(root.ProductAdvertisingAPIv1.ApiClient);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
import { ApiClient } from "../ApiClient";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructs a new <code>OfferAvailability</code>.
|
||||||
|
* @alias module:model/OfferAvailability
|
||||||
|
* @class
|
||||||
|
*/
|
||||||
|
export class OfferAvailability {
|
||||||
/**
|
/**
|
||||||
* The OfferAvailability model module.
|
* @member {Number} MaxOrderQuantity
|
||||||
* @module model/OfferAvailability
|
|
||||||
* @version 1.0.0
|
|
||||||
*/
|
*/
|
||||||
|
public MaxOrderQuantity?: number;
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>OfferAvailability</code>.
|
* @member {String} Message
|
||||||
* @alias module:model/OfferAvailability
|
|
||||||
* @class
|
|
||||||
*/
|
*/
|
||||||
var exports = function() {
|
public Message?: string;
|
||||||
var _this = this;
|
/**
|
||||||
|
* @member {Number} MinOrderQuantity
|
||||||
|
*/
|
||||||
|
public MinOrderQuantity?: number;
|
||||||
|
/**
|
||||||
|
* @member {String} Type
|
||||||
};
|
*/
|
||||||
|
public Type?: string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>OfferAvailability</code> from a plain JavaScript object, optionally creating a new instance.
|
* Constructs a <code>OfferAvailability</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
|
|
@ -68,46 +59,23 @@
|
||||||
* @param {module:model/OfferAvailability} obj Optional instance to populate.
|
* @param {module:model/OfferAvailability} obj Optional instance to populate.
|
||||||
* @return {module:model/OfferAvailability} The populated <code>OfferAvailability</code> instance.
|
* @return {module:model/OfferAvailability} The populated <code>OfferAvailability</code> instance.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(data, obj) {
|
public static constructFromObject(data: any, obj?: OfferAvailability) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new exports();
|
obj = obj || new OfferAvailability();
|
||||||
|
|
||||||
if (data.hasOwnProperty('MaxOrderQuantity')) {
|
if (data.hasOwnProperty('MaxOrderQuantity')) {
|
||||||
obj['MaxOrderQuantity'] = ApiClient.convertToType(data['MaxOrderQuantity'], 'Number');
|
obj.MaxOrderQuantity = ApiClient.convertToType(data['MaxOrderQuantity'], 'Number');
|
||||||
}
|
}
|
||||||
if (data.hasOwnProperty('Message')) {
|
if (data.hasOwnProperty('Message')) {
|
||||||
obj['Message'] = ApiClient.convertToType(data['Message'], 'String');
|
obj.Message = ApiClient.convertToType(data['Message'], 'String');
|
||||||
}
|
}
|
||||||
if (data.hasOwnProperty('MinOrderQuantity')) {
|
if (data.hasOwnProperty('MinOrderQuantity')) {
|
||||||
obj['MinOrderQuantity'] = ApiClient.convertToType(data['MinOrderQuantity'], 'Number');
|
obj.MinOrderQuantity = ApiClient.convertToType(data['MinOrderQuantity'], 'Number');
|
||||||
}
|
}
|
||||||
if (data.hasOwnProperty('Type')) {
|
if (data.hasOwnProperty('Type')) {
|
||||||
obj['Type'] = ApiClient.convertToType(data['Type'], 'String');
|
obj.Type = ApiClient.convertToType(data['Type'], 'String');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
|
};
|
||||||
/**
|
|
||||||
* @member {Number} MaxOrderQuantity
|
|
||||||
*/
|
|
||||||
exports.prototype['MaxOrderQuantity'] = undefined;
|
|
||||||
/**
|
|
||||||
* @member {String} Message
|
|
||||||
*/
|
|
||||||
exports.prototype['Message'] = undefined;
|
|
||||||
/**
|
|
||||||
* @member {Number} MinOrderQuantity
|
|
||||||
*/
|
|
||||||
exports.prototype['MinOrderQuantity'] = undefined;
|
|
||||||
/**
|
|
||||||
* @member {String} Type
|
|
||||||
*/
|
|
||||||
exports.prototype['Type'] = undefined;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
|
||||||
|
|
||||||
|
|
||||||
Loading…
Reference in New Issue
Block a user