/*** * * SaaSquatch Type Definitions * * This file was automatically generated. DO NOT edit it by hand, instead edit the related JSON Schema file. * * Generated on 2026-03-20T21:11:42.771Z * ***/ /*** * PredefinedReward.schema.json * Generated on 2026-03-20T21:11:43.069Z * This file was automatically generated. DO NOT edit it by hand, instead edit the related JSON Schema file. ***/ export type PredefiendReward = (({ rewardType?: "PCT_DISCOUNT" amount: DiscountPercent validityDuration?: DurationRewardIsValid pendingDuration?: DurationRewardIsPending [k: string]: unknown } | { rewardType?: "CREDIT" amount: CreditAmount unit: Unit validityDuration?: DurationRewardIsValid pendingDuration?: DurationRewardIsPending [k: string]: unknown } | (({ fuelTankType?: "PCT_DISCOUNT" amount: DiscountPercent1 validityDuration?: DurationRewardIsValid pendingDuration?: DurationRewardIsPending [k: string]: unknown } | { fuelTankType?: "CREDIT" amount: CreditAmount1 unit: Unit1 [k: string]: unknown }) & { rewardType?: "FUELTANK" fuelTankType: RewardType validityDuration?: DurationRewardIsValid pendingDuration?: DurationRewardIsPending [k: string]: unknown }) | { rewardType?: "INTEGRATION" amount: RewardAmount unit?: GiftCardType integrationId?: IntegrationIdentifier integrationSettings?: IntegrationSettings pendingDuration?: DurationRewardIsPending [k: string]: unknown }) & { rewardType: ("PCT_DISCOUNT" | "CREDIT" | "FUELTANK" | "INTEGRATION") key?: RewardKey [k: string]: unknown }) export type DiscountPercent = number /** * This interface was referenced by `Reward`'s JSON-Schema * via the `definition` "validityDuration". */ export type DurationRewardIsValid = string /** * This interface was referenced by `Reward`'s JSON-Schema * via the `definition` "pendingDuration". */ export type DurationRewardIsPending = string export type CreditAmount = number export type Unit = string export type DiscountPercent1 = number export type CreditAmount1 = number export type Unit1 = string export type RewardType = ("PCT_DISCOUNT" | "CREDIT") export type RewardAmount = number export type GiftCardType = string export type IntegrationIdentifier = string export type EmailTemplateID = string export type RewardKey = string /** * Establishes the available configuration for pre-defined. */ export interface PreDefinedRewardsSchema { reward?: PredefiendReward [k: string]: unknown } export interface IntegrationSettings { templateId?: EmailTemplateID giftId?: string utid?: string [k: string]: unknown } /** * This interface was referenced by `PreDefinedRewardsSchema`'s JSON-Schema * via the `definition` "reward". */ export interface Reward { [k: string]: unknown }