import type * as Square from "../index"; /** * Represents an accrual rule, which defines how buyers can earn points from the base [loyalty program](entity:LoyaltyProgram). */ export interface LoyaltyProgramAccrualRule { /** * The type of the accrual rule that defines how buyers can earn points. * See [LoyaltyProgramAccrualRuleType](#type-loyaltyprogramaccrualruletype) for possible values */ accrualType: Square.LoyaltyProgramAccrualRuleType; /** * The number of points that * buyers earn based on the `accrual_type`. */ points?: number | null; /** Additional data for rules with the `VISIT` accrual type. */ visitData?: Square.LoyaltyProgramAccrualRuleVisitData; /** Additional data for rules with the `SPEND` accrual type. */ spendData?: Square.LoyaltyProgramAccrualRuleSpendData; /** Additional data for rules with the `ITEM_VARIATION` accrual type. */ itemVariationData?: Square.LoyaltyProgramAccrualRuleItemVariationData; /** Additional data for rules with the `CATEGORY` accrual type. */ categoryData?: Square.LoyaltyProgramAccrualRuleCategoryData; }