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 { ContentRating } from "./model/ContentRating";
|
||||||
import { Contributor } from "./model/Contributor";
|
import { Contributor } from "./model/Contributor";
|
||||||
import { CustomerReviews } from "./model/CustomerReviews";
|
import { CustomerReviews } from "./model/CustomerReviews";
|
||||||
|
import { DeliveryFlag } from "./model/DeliveryFlag";
|
||||||
import { Languages } from "./model/Languages";
|
import { Languages } from "./model/Languages";
|
||||||
import { LanguageType } from "./model/LanguageType";
|
import { LanguageType } from "./model/LanguageType";
|
||||||
import { OfferSavings } from "./model/OfferSavings";
|
import { OfferSavings } from "./model/OfferSavings";
|
||||||
|
|
|
||||||
|
|
@ -21,61 +21,67 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
/**
|
||||||
if (typeof define === 'function' && define.amd) {
|
* Enum class DeliveryFlag.
|
||||||
// AMD. Register as an anonymous module.
|
* @enum {}
|
||||||
define(['ApiClient'], factory);
|
* @readonly
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
*/
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
export const enum DeliveryFlagValues {
|
||||||
module.exports = factory(require('../ApiClient'));
|
/**
|
||||||
} else {
|
* value: "AmazonGlobal"
|
||||||
// Browser globals (root is window)
|
* @const
|
||||||
if (!root.ProductAdvertisingAPIv1) {
|
*/
|
||||||
root.ProductAdvertisingAPIv1 = {};
|
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 class DeliveryFlag.
|
||||||
* @enum {}
|
* @enum {}
|
||||||
* @readonly
|
* @readonly
|
||||||
*/
|
*/
|
||||||
var exports = {
|
export class DeliveryFlag extends String {
|
||||||
/**
|
/**
|
||||||
* value: "AmazonGlobal"
|
* value: "AmazonGlobal"
|
||||||
* @const
|
* @const
|
||||||
*/
|
*/
|
||||||
"AmazonGlobal": "AmazonGlobal",
|
public static get AmazonGlobal() { return DeliveryFlagValues.AmazonGlobal; }
|
||||||
/**
|
/**
|
||||||
* value: "FreeShipping"
|
* value: "FreeShipping"
|
||||||
* @const
|
* @const
|
||||||
*/
|
*/
|
||||||
"FreeShipping": "FreeShipping",
|
public static get FreeShipping() { return DeliveryFlagValues.FreeShipping; }
|
||||||
/**
|
/**
|
||||||
* value: "FulfilledByAmazon"
|
* value: "FulfilledByAmazon"
|
||||||
* @const
|
* @const
|
||||||
*/
|
*/
|
||||||
"FulfilledByAmazon": "FulfilledByAmazon",
|
public static get FulfilledByAmazon() { return DeliveryFlagValues.FulfilledByAmazon; }
|
||||||
/**
|
/**
|
||||||
* value: "Prime"
|
* value: "Prime"
|
||||||
* @const
|
* @const
|
||||||
*/
|
*/
|
||||||
"Prime": "Prime" };
|
public static get Prime() { return DeliveryFlagValues.Prime; }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns a <code>DeliveryFlag</code> enum value from a Javascript object name.
|
* 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.
|
* @param {Object} data The plain JavaScript object containing the name of the enum value.
|
||||||
* @return {module:model/DeliveryFlag} The enum <code>DeliveryFlag</code> 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 object;
|
||||||
}
|
}
|
||||||
|
};
|
||||||
return exports;
|
|
||||||
}));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user