/*** * * 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 * ***/ /*** * RewardApiInput.schema.json * Generated on 2026-03-20T21:11:43.388Z * This file was automatically generated. DO NOT edit it by hand, instead edit the related JSON Schema file. ***/ /** * Defines the reward API data input structure. */ export type RewardAPIInput = (({ type: "PCT_DISCOUNT" discountPercent: DiscountPercent name?: RewardName dateExpires?: RewardExpiryDate cancellable?: Cancellable dateScheduledFor?: ScheduledRewardGivenDate } | { type: "FUELTANK" fuelTankCode: FuelTankCode unit?: Unit amount: Amount dateExpires?: RewardExpiryDate fuelTankType: FuelTankType cancellable?: Cancellable } | { type: "CREDIT" unit: Unit name?: RewardName assignedCredit: AssignedCredit dateExpires?: RewardExpiryDate cancellable?: Cancellable dateScheduledFor?: ScheduledRewardGivenDate } | { type: "INTEGRATION" unit: Unit name?: RewardName description?: RewardDescription valueInCents: RewardAmount integrationSettings: IntegrationSettings }) & { type?: RewardType [k: string]: unknown }) /** * The discount associated with this reward */ export type DiscountPercent = number /** * This interface was referenced by `undefined`'s JSON-Schema * via the `definition` "rewardName". */ export type RewardName = (string | null) /** * The date this reward will expire * * This interface was referenced by `undefined`'s JSON-Schema * via the `definition` "rewardDateExpires". */ export type RewardExpiryDate = (number | null) /** * Whether this reward can be cancelled * * This interface was referenced by `undefined`'s JSON-Schema * via the `definition` "rewardCancellable". */ export type Cancellable = (boolean | null) /** * If the reward is created in a PENDING state this is the date we will attempt to 'give' it * * This interface was referenced by `undefined`'s JSON-Schema * via the `definition` "rewardDateScheduledFor". */ export type ScheduledRewardGivenDate = (number | null) /** * The associated coupon code uploaded via the fuel tank API or portal code manager */ export type FuelTankCode = string /** * The unit of credit associated with this reward (i.e. months or usd) * * This interface was referenced by `undefined`'s JSON-Schema * via the `definition` "rewardUnit". */ export type Unit = string /** * The amount of credit or discount to be given */ export type Amount = string /** * The type of fuel tank reward being given */ export type FuelTankType = ("PCT_DISCOUNT" | "CREDIT") /** * The initial redeemable credit assigned to be assigned to reward */ export type AssignedCredit = number /** * This text describes the integration reward given in more detail */ export type RewardDescription = string /** * The value in base currency unit (i.e. cents) to be assigned to this reward */ export type RewardAmount = string export type EmailTemplateID = string export type RewardType = ("PCT_DISCOUNT" | "FUELTANK" | "CREDIT" | "INTEGRATION") /** * This interface was referenced by `undefined`'s JSON-Schema * via the `definition` "integrationSettings". */ export interface IntegrationSettings { templateId?: EmailTemplateID giftId?: string utid?: string [k: string]: unknown }