/** * Klaviyo API * The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. * * Contact: developers@klaviyo.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { RequestFile } from './models'; import { NumericOperatorNumericFilterValue } from './numericOperatorNumericFilterValue'; import { PriceDropConditionFilter } from './priceDropConditionFilter'; export class PriceDropTrigger { 'type': PriceDropTrigger.TypeEnum | 'price-drop'; 'triggerFilter': PriceDropConditionFilter; 'priceDropAmountValue': NumericOperatorNumericFilterValue; /** * Price Drop amount type. */ 'priceDropAmountUnit'?: PriceDropTrigger.PriceDropAmountUnitEnum | 'currency' | 'percent' = PriceDropTrigger.PriceDropAmountUnitEnum.Currency; 'audience': Array | Array<'checkout-started' | 'viewed'>; 'timeframeDays'?: number = 30; /** * Currency type. */ 'currencyType'?: PriceDropTrigger.CurrencyTypeEnum | 'usd' = PriceDropTrigger.CurrencyTypeEnum.Usd; static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "type", "baseName": "type", "type": "PriceDropTrigger.TypeEnum" }, { "name": "triggerFilter", "baseName": "trigger_filter", "type": "PriceDropConditionFilter" }, { "name": "priceDropAmountValue", "baseName": "price_drop_amount_value", "type": "NumericOperatorNumericFilterValue" }, { "name": "priceDropAmountUnit", "baseName": "price_drop_amount_unit", "type": "PriceDropTrigger.PriceDropAmountUnitEnum" }, { "name": "audience", "baseName": "audience", "type": "Array" }, { "name": "timeframeDays", "baseName": "timeframe_days", "type": "number" }, { "name": "currencyType", "baseName": "currency_type", "type": "PriceDropTrigger.CurrencyTypeEnum" } ]; static getAttributeTypeMap() { return PriceDropTrigger.attributeTypeMap; } } export namespace PriceDropTrigger { export enum TypeEnum { PriceDrop = 'price-drop' } export enum PriceDropAmountUnitEnum { Currency = 'currency', Percent = 'percent' } export enum AudienceEnum { CheckoutStarted = 'checkout-started', Viewed = 'viewed' } export enum CurrencyTypeEnum { Usd = 'usd' } }