square_api_client/models/
catalog_quick_amount.rs

1//! Model struct for CatalogQuickAmount type.
2
3use serde::{Deserialize, Serialize};
4
5use super::{enums::CatalogQuickAmountType, Money};
6
7/// Represents a Quick Amount in the Catalog.
8#[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)]
9pub struct CatalogQuickAmount {
10    /// Represents the type of the Quick Amount.
11    pub r#type: CatalogQuickAmountType,
12    /// Represents the actual amount of the Quick Amount with Money type.
13    pub amount: Money,
14    /// Describes the ranking of the Quick Amount provided by machine learning model, in the range
15    /// [0, 100]. MANUAL type amount will always have score = 100.
16    pub score: Option<i64>,
17    /// The order in which this Quick Amount should be displayed.
18    pub ordinal: Option<i64>,
19}