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

use serde::{Deserialize, Serialize};

use super::Money;

///  Represents the details of a tender with `type` `CASH`.
#[derive(Clone, Debug, Deserialize, Eq, PartialEq, Serialize)]
pub struct TenderCashDetails {
    /// The total amount of cash provided by the buyer, before change is given.
    pub buyer_tendered_money: Option<Money>,
    /// The amount of change returned to the buyer.
    pub change_back_money: Option<Money>,
}