/* tslint:disable */ /* eslint-disable */ /** * My API * API documentation for my Laravel app * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export */ export const DiscountType = { Shipping: 'shipping', Subtotal: 'subtotal', Product: 'product' } as const; export type DiscountType = typeof DiscountType[keyof typeof DiscountType]; export function instanceOfDiscountType(value: any): boolean { for (const key in DiscountType) { if (Object.prototype.hasOwnProperty.call(DiscountType, key)) { if (DiscountType[key as keyof typeof DiscountType] === value) { return true; } } } return false; } export function DiscountTypeFromJSON(json: any): DiscountType { return DiscountTypeFromJSONTyped(json, false); } export function DiscountTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): DiscountType { return json as DiscountType; } export function DiscountTypeToJSON(value?: DiscountType | null): any { return value as any; } export function DiscountTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): DiscountType { return value as DiscountType; }