squareup 2.13.0

Rust SDK for the Square Developer API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Model struct for CatalogQuickAmountsSettings type.

use serde::{Deserialize, Serialize};

use super::{CatalogQuickAmount, enums::CatalogQuickAmountsSettingsOption};

/// A parent Catalog Object model represents a set of Quick Amounts and the settings control the
/// amounts.
#[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)]
pub struct CatalogQuickAmountsSettings {
    /// Represents the option seller currently uses on Quick Amounts.
    pub option: CatalogQuickAmountsSettingsOption,
    /// Represents location's eligibility for auto amounts The boolean should be consistent with
    /// whether there are AUTO amounts in the `amounts`.
    pub eligible_for_auto_amounts: Option<bool>,
    /// Represents a set of Quick Amounts at this location.
    pub amounts: Option<Vec<CatalogQuickAmount>>,
}