import type * as Square from "../index"; /** * Represents a Square loyalty program. Loyalty programs define how buyers can earn points and redeem points for rewards. * Square sellers can have only one loyalty program, which is created and managed from the Seller Dashboard. * For more information, see [Loyalty Program Overview](https://developer.squareup.com/docs/loyalty/overview). */ export interface LoyaltyProgram { /** * The Square-assigned ID of the loyalty program. Updates to * the loyalty program do not modify the identifier. */ id?: string; /** * Whether the program is currently active. * See [LoyaltyProgramStatus](#type-loyaltyprogramstatus) for possible values */ status?: Square.LoyaltyProgramStatus; /** The list of rewards for buyers, sorted by ascending points. */ rewardTiers?: Square.LoyaltyProgramRewardTier[] | null; /** If present, details for how points expire. */ expirationPolicy?: Square.LoyaltyProgramExpirationPolicy; /** A cosmetic name for the “points” currency. */ terminology?: Square.LoyaltyProgramTerminology; /** The [locations](entity:Location) at which the program is active. */ locationIds?: string[] | null; /** The timestamp when the program was created, in RFC 3339 format. */ createdAt?: string; /** The timestamp when the reward was last updated, in RFC 3339 format. */ updatedAt?: string; /** * Defines how buyers can earn loyalty points from the base loyalty program. * To check for associated [loyalty promotions](entity:LoyaltyPromotion) that enable * buyers to earn extra points, call [ListLoyaltyPromotions](api-endpoint:Loyalty-ListLoyaltyPromotions). */ accrualRules?: Square.LoyaltyProgramAccrualRule[] | null; }