square_api_client/models/
order_pricing_options.rs

1//! Model struct for OrderPricingOptions type
2
3use serde::{Deserialize, Serialize};
4
5/// Pricing options for an order.
6///
7/// The options affect how the order's price is calculated. They can be used, for example, to apply
8/// automatic price adjustments that are based on preconfigured [pricing rules](CatalogPricingRule).
9#[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)]
10pub struct OrderPricingOptions {
11    /// The option to determine whether pricing rule-based discounts are automatically applied to an
12    /// order.
13    pub auto_apply_discounts: Option<bool>,
14    /// The option to determine whether rule-based taxes are automatically applied to an order when
15    /// the criteria of the corresponding rules are met.
16    pub auto_apply_taxes: Option<bool>,
17}