use serde::{Serialize, Deserialize};
///Represents a per-transaction tipping configuration
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
pub struct TerminalReaderReaderResourceTippingConfig {
///Amount used to calculate tip suggestions on tipping selection screen for this transaction. Must be a positive integer in the smallest currency unit (e.g., 100 cents to represent $1.00 or 100 to represent ¥100, a zero-decimal currency).
#[serde(skip_serializing_if = "Option::is_none")]
pub amount_eligible: Option<i64>,
}
impl std::fmt::Display for TerminalReaderReaderResourceTippingConfig {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
write!(f, "{}", serde_json::to_string(self).unwrap())
}
}