square_api_client/models/
order_rounding_adjustment.rs

1//! Model struct for OrderRoundingAdjustment type
2
3use serde::{Deserialize, Serialize};
4
5use super::Money;
6
7/// A rounding adjustment of the money being returned.
8///
9/// Commonly used to apply cash rounding when the minimum unit of the account is smaller than the
10/// lowest physical denomination of the currency.
11#[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)]
12pub struct OrderRoundingAdjustment {
13    /// A unique ID that identifies the rounding adjustment only within this order.
14    pub uid: Option<String>,
15    /// The name of the rounding adjustment from the original sale order.
16    pub name: Option<String>,
17    /// The actual rounding adjustment amount.
18    pub amount_money: Option<Money>,
19}