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