square_api_client/models/processing_fee.rs
1//! Model struct for ProcessingFee type.
2
3use serde::{Deserialize, Serialize};
4
5use super::{enums::ProcessingFeeType, DateTime, Money};
6
7/// Represents the Square processing fee.
8#[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)]
9pub struct ProcessingFee {
10 /// The timestamp of when the fee takes effect.
11 pub effective_at: Option<DateTime>,
12 /// The type of fee assessed or adjusted.
13 pub r#type: Option<ProcessingFeeType>,
14 /// The fee amount, which might be negative, that is assessed or adjusted by Square.
15 ///
16 /// Positive values represent funds being assessed, while negative values represent funds being
17 /// returned.
18 pub amount_money: Option<Money>,
19}