Refactored model/DeliveryFlag.
This commit is contained in:
parent
99665a01e5
commit
4133f678f7
|
|
@ -38,6 +38,7 @@ import { ContentInfo } from "./model/ContentInfo";
|
|||
import { ContentRating } from "./model/ContentRating";
|
||||
import { Contributor } from "./model/Contributor";
|
||||
import { CustomerReviews } from "./model/CustomerReviews";
|
||||
import { DeliveryFlag } from "./model/DeliveryFlag";
|
||||
import { Languages } from "./model/Languages";
|
||||
import { LanguageType } from "./model/LanguageType";
|
||||
import { OfferSavings } from "./model/OfferSavings";
|
||||
|
|
|
|||
|
|
@ -21,61 +21,67 @@
|
|||
*
|
||||
*/
|
||||
|
||||
(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 = {};
|
||||
/**
|
||||
* Enum class DeliveryFlag.
|
||||
* @enum {}
|
||||
* @readonly
|
||||
*/
|
||||
export const enum DeliveryFlagValues {
|
||||
/**
|
||||
* value: "AmazonGlobal"
|
||||
* @const
|
||||
*/
|
||||
AmazonGlobal = "AmazonGlobal",
|
||||
/**
|
||||
* value: "FreeShipping"
|
||||
* @const
|
||||
*/
|
||||
FreeShipping = "FreeShipping",
|
||||
/**
|
||||
* value: "FulfilledByAmazon"
|
||||
* @const
|
||||
*/
|
||||
FulfilledByAmazon = "FulfilledByAmazon",
|
||||
/**
|
||||
* value: "Prime"
|
||||
* @const
|
||||
*/
|
||||
Prime = "Prime",
|
||||
}
|
||||
root.ProductAdvertisingAPIv1.DeliveryFlag = factory(root.ProductAdvertisingAPIv1.ApiClient);
|
||||
}
|
||||
}(this, function(ApiClient) {
|
||||
'use strict';
|
||||
|
||||
|
||||
/**
|
||||
* Enum class DeliveryFlag.
|
||||
* @enum {}
|
||||
* @readonly
|
||||
*/
|
||||
var exports = {
|
||||
export class DeliveryFlag extends String {
|
||||
/**
|
||||
* value: "AmazonGlobal"
|
||||
* @const
|
||||
*/
|
||||
"AmazonGlobal": "AmazonGlobal",
|
||||
public static get AmazonGlobal() { return DeliveryFlagValues.AmazonGlobal; }
|
||||
/**
|
||||
* value: "FreeShipping"
|
||||
* @const
|
||||
*/
|
||||
"FreeShipping": "FreeShipping",
|
||||
public static get FreeShipping() { return DeliveryFlagValues.FreeShipping; }
|
||||
/**
|
||||
* value: "FulfilledByAmazon"
|
||||
* @const
|
||||
*/
|
||||
"FulfilledByAmazon": "FulfilledByAmazon",
|
||||
public static get FulfilledByAmazon() { return DeliveryFlagValues.FulfilledByAmazon; }
|
||||
/**
|
||||
* value: "Prime"
|
||||
* @const
|
||||
*/
|
||||
"Prime": "Prime" };
|
||||
public static get Prime() { return DeliveryFlagValues.Prime; }
|
||||
|
||||
/**
|
||||
* Returns a <code>DeliveryFlag</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/DeliveryFlag} The enum <code>DeliveryFlag</code> value.
|
||||
*/
|
||||
exports.constructFromObject = function(object) {
|
||||
public static constructFromObject(object: DeliveryFlag|DeliveryFlagValues|string) {
|
||||
return object;
|
||||
}
|
||||
|
||||
return exports;
|
||||
}));
|
||||
|
||||
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user