Struct squareup::models::CatalogTax
source · pub struct CatalogTax {
pub name: Option<String>,
pub calculation_phase: Option<TaxCalculationPhase>,
pub inclusion_type: Option<TaxInclusionType>,
pub percentage: Option<String>,
pub applies_to_custom_amounts: Option<bool>,
pub enabled: Option<bool>,
pub applies_to_product_set_id: Option<String>,
}Expand description
A tax applicable to an item.
Fields§
§name: Option<String>The tax’s name. This is a searchable attribute for use in applicable query filters, and its value length is of Unicode code points.
Max Length 255
calculation_phase: Option<TaxCalculationPhase>Whether the tax is calculated based on a payment’s subtotal or total.
inclusion_type: Option<TaxInclusionType>Whether the tax is ADDITIVE or INCLUSIVE.
percentage: Option<String>The percentage of the tax in decimal form, using a '.' as the decimal separator and
without a '%' sign. A value of 7.5 corresponds to 7.5%.
applies_to_custom_amounts: Option<bool>If true, the fee applies to custom amounts entered into the Square Point of Sale app that
are not associated with a particular CatalogItem.
enabled: Option<bool>A Boolean flag to indicate whether the tax is displayed as enabled (true) in the Square
Point of Sale app or not (false).
applies_to_product_set_id: Option<String>The ID of a CatalogProductSet object. If set, the tax is applicable to all products in the product set.
Trait Implementations§
source§impl Clone for CatalogTax
impl Clone for CatalogTax
source§fn clone(&self) -> CatalogTax
fn clone(&self) -> CatalogTax
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for CatalogTax
impl Debug for CatalogTax
source§impl Default for CatalogTax
impl Default for CatalogTax
source§fn default() -> CatalogTax
fn default() -> CatalogTax
source§impl<'de> Deserialize<'de> for CatalogTax
impl<'de> Deserialize<'de> for CatalogTax
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl PartialEq for CatalogTax
impl PartialEq for CatalogTax
source§fn eq(&self, other: &CatalogTax) -> bool
fn eq(&self, other: &CatalogTax) -> bool
self and other values to be equal, and is used
by ==.source§impl Serialize for CatalogTax
impl Serialize for CatalogTax
impl Eq for CatalogTax
impl StructuralPartialEq for CatalogTax
Auto Trait Implementations§
impl RefUnwindSafe for CatalogTax
impl Send for CatalogTax
impl Sync for CatalogTax
impl Unpin for CatalogTax
impl UnwindSafe for CatalogTax
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.