Refactored model/Availability.
This commit is contained in:
parent
839bab9679
commit
fd3200940b
|
|
@ -22,6 +22,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { ApiClient } from "./ApiClient";
|
import { ApiClient } from "./ApiClient";
|
||||||
|
import { Availability } from "./model/Availability";
|
||||||
import { ByLineInfo } from "./model/ByLineInfo";
|
import { ByLineInfo } from "./model/ByLineInfo";
|
||||||
import { Classifications } from "./model/Classifications";
|
import { Classifications } from "./model/Classifications";
|
||||||
import { Condition } from "./model/Condition";
|
import { Condition } from "./model/Condition";
|
||||||
|
|
@ -73,7 +74,7 @@ export {
|
||||||
* The Availability model constructor.
|
* The Availability model constructor.
|
||||||
* @property {module:model/Availability}
|
* @property {module:model/Availability}
|
||||||
*/
|
*/
|
||||||
Availability: Availability,
|
Availability,
|
||||||
/**
|
/**
|
||||||
* The BrowseNode model constructor.
|
* The BrowseNode model constructor.
|
||||||
* @property {module:model/BrowseNode}
|
* @property {module:model/BrowseNode}
|
||||||
|
|
|
||||||
|
|
@ -21,51 +21,41 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
export const enum AvailabilityValues {
|
||||||
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.Availability = factory(root.ProductAdvertisingAPIv1.ApiClient);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Enum class Availability.
|
* value: "Available"
|
||||||
* @enum {}
|
* @const
|
||||||
* @readonly
|
|
||||||
*/
|
*/
|
||||||
var exports = {
|
Available = "Available",
|
||||||
/**
|
/**
|
||||||
* value: "Available"
|
* value: "IncludeOutOfStock"
|
||||||
* @const
|
* @const
|
||||||
*/
|
*/
|
||||||
"Available": "Available",
|
IncludeOutOfStock = "IncludeOutOfStock",
|
||||||
/**
|
}
|
||||||
* value: "IncludeOutOfStock"
|
|
||||||
* @const
|
|
||||||
*/
|
|
||||||
"IncludeOutOfStock": "IncludeOutOfStock" };
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Enum class Availability.
|
||||||
|
* @enum {}
|
||||||
|
* @readonly
|
||||||
|
*/
|
||||||
|
export class Availability extends String {
|
||||||
|
/**
|
||||||
|
* value: "Available"
|
||||||
|
* @const
|
||||||
|
*/
|
||||||
|
public static get Available() { return AvailabilityValues.Available; }
|
||||||
|
/**
|
||||||
|
* value: "IncludeOutOfStock"
|
||||||
|
* @const
|
||||||
|
*/
|
||||||
|
public static get IncludeOutOfStock() { return AvailabilityValues.IncludeOutOfStock; }
|
||||||
/**
|
/**
|
||||||
* Returns a <code>Availability</code> enum value from a Javascript object name.
|
* Returns a <code>Availability</code> enum value from a Javascript object name.
|
||||||
* @param {Object} data The plain JavaScript object containing the name of the enum value.
|
* @param {Object} data The plain JavaScript object containing the name of the enum value.
|
||||||
* @return {module:model/Availability} The enum <code>Availability</code> value.
|
* @return {module:model/Availability} The enum <code>Availability</code> value.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(object) {
|
public static constructFromObject(object: Availability|AvailabilityValues|string) {
|
||||||
return object;
|
return object;
|
||||||
}
|
}
|
||||||
|
};
|
||||||
return exports;
|
|
||||||
}));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user