square_api_client/models/
cash_payment_details.rs

1//! Model struct for CashPaymentDetails type.
2
3use serde::{Deserialize, Serialize};
4
5use super::Money;
6
7/// Stores details about a cash payment.
8///
9/// Contains only non-confidential information. For more information, see [Take Cash
10/// Payments](https://developer.squareup.com/docs/payments-api/take-payments/cash-payments).
11#[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)]
12pub struct CashPaymentDetails {
13    /// The amount and currency of the money supplied by the buyer.
14    pub buyer_supplied_money: Option<Money>,
15    /// The amount of change due back to the buyer. This read-only field is calculated from the
16    /// `amount_money` and `buyer_supplied_money` fields.
17    pub change_back_money: Option<Money>,
18}