square_api_client/models/
catalog_quick_amounts_settings.rs

1//! Model struct for CatalogQuickAmountsSettings type.
2
3use serde::{Deserialize, Serialize};
4
5use super::{enums::CatalogQuickAmountsSettingsOption, CatalogQuickAmount};
6
7/// A parent Catalog Object model represents a set of Quick Amounts and the settings control the
8/// amounts.
9#[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)]
10pub struct CatalogQuickAmountsSettings {
11    /// Represents the option seller currently uses on Quick Amounts.
12    pub option: CatalogQuickAmountsSettingsOption,
13    /// Represents location's eligibility for auto amounts The boolean should be consistent with
14    /// whether there are AUTO amounts in the `amounts`.
15    pub eligible_for_auto_amounts: Option<bool>,
16    /// Represents a set of Quick Amounts at this location.
17    pub amounts: Option<Vec<CatalogQuickAmount>>,
18}