1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Model struct for OrderReward type

use serde::{Deserialize, Serialize};

/// Represents a reward that can be applied to an order if the necessary reward tier criteria are met.
///
/// Rewards are created through the Loyalty API.
#[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)]
pub struct OrderReward {
    /// The identifier of the reward.
    pub id: String,
    /// The identifier of the reward tier corresponding to this reward.
    pub reward_tier_id: String,
}