/** * Provides metadata when the event `type` is `REDEEM_REWARD`. */ export interface LoyaltyEventRedeemReward { /** The ID of the [loyalty program](entity:LoyaltyProgram). */ loyaltyProgramId?: string; /** * The ID of the redeemed [loyalty reward](entity:LoyaltyReward). * This field is returned only if the event source is `LOYALTY_API`. */ rewardId?: string; /** * The ID of the [order](entity:Order) that redeemed the reward. * This field is returned only if the Orders API is used to process orders. */ orderId?: string; }