import type * as Square from "../index"; /** * Represents additional data for rules with the `SPEND` accrual type. */ export interface LoyaltyProgramAccrualRuleSpendData { /** * The amount that buyers must spend to earn points. * For example, given an "Earn 1 point for every $10 spent" accrual rule, a buyer who spends $105 earns 10 points. */ amountMoney: Square.Money; /** * The IDs of any `CATEGORY` catalog objects that are excluded from points accrual. * * You can use the [BatchRetrieveCatalogObjects](api-endpoint:Catalog-BatchRetrieveCatalogObjects) * endpoint to retrieve information about the excluded categories. */ excludedCategoryIds?: string[] | null; /** * The IDs of any `ITEM_VARIATION` catalog objects that are excluded from points accrual. * * You can use the [BatchRetrieveCatalogObjects](api-endpoint:Catalog-BatchRetrieveCatalogObjects) * endpoint to retrieve information about the excluded item variations. */ excludedItemVariationIds?: string[] | null; /** * Indicates how taxes should be treated when calculating the purchase amount used for points accrual. * See [LoyaltyProgramAccrualRuleTaxMode](#type-loyaltyprogramaccrualruletaxmode) for possible values */ taxMode: Square.LoyaltyProgramAccrualRuleTaxMode; }