Skip to main content

Interface.ILoyaltyService

Loyalty operations for wallet passes and tier retrieval.

Properties

PropertyTypeDescription
addToAppleWallet() => Promise<void>Adds an Apple Wallet pass.
addToGoogleWallet() => Promise<string>Returns a Google Wallet URL to add the pass.
getOptimisticBalance() => Promise<string>Returns the current loyalty optimistic balance.
getRewardTier() => Promise< | { application: string; bgImageUrl?: string | null; createdAt: string; currencyToPointRatio: number; id: string; name: string; requiredVisits: number; updatedAt: string; } | null>Returns the current loyalty reward tier, or null if none.