square_api_client/models/
order_reward.rs

1//! Model struct for OrderReward type
2
3use serde::{Deserialize, Serialize};
4
5/// Represents a reward that can be applied to an order if the necessary reward tier criteria are met.
6///
7/// Rewards are created through the Loyalty API.
8#[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)]
9pub struct OrderReward {
10    /// The identifier of the reward.
11    pub id: String,
12    /// The identifier of the reward tier corresponding to this reward.
13    pub reward_tier_id: String,
14}