pub enum OrderLineItemTaxType {
UnknownTax,
Additive,
Inclusive,
}
Expand description
Indicates how the tax is applied to the associated line item or order.
Variants
UnknownTax
Used for reporting only. The original transaction tax type is currently not supported by the API.
Additive
The tax is an additive tax. The tax amount is added on top of the price. For example, an item with a cost of 1.00 USD and a 10% additive tax has a total cost to the buyer of 1.10 USD.
Inclusive
The tax is an inclusive tax. Inclusive taxes are already included in the line item price or order total. For example, an item with a cost of 1.00 USD and a 10% inclusive tax has a pretax cost of 0.91 USD (91 cents) and a 0.09 (9 cents) tax for a total cost of 1.00 USD to the buyer.
Trait Implementations
sourceimpl Clone for OrderLineItemTaxType
impl Clone for OrderLineItemTaxType
sourcefn clone(&self) -> OrderLineItemTaxType
fn clone(&self) -> OrderLineItemTaxType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for OrderLineItemTaxType
impl Debug for OrderLineItemTaxType
sourceimpl<'de> Deserialize<'de> for OrderLineItemTaxType
impl<'de> Deserialize<'de> for OrderLineItemTaxType
sourcefn 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>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<OrderLineItemTaxType> for OrderLineItemTaxType
impl PartialEq<OrderLineItemTaxType> for OrderLineItemTaxType
sourcefn eq(&self, other: &OrderLineItemTaxType) -> bool
fn eq(&self, other: &OrderLineItemTaxType) -> bool
sourceimpl Serialize for OrderLineItemTaxType
impl Serialize for OrderLineItemTaxType
impl Eq for OrderLineItemTaxType
impl StructuralEq for OrderLineItemTaxType
impl StructuralPartialEq for OrderLineItemTaxType
Auto Trait Implementations
impl RefUnwindSafe for OrderLineItemTaxType
impl Send for OrderLineItemTaxType
impl Sync for OrderLineItemTaxType
impl Unpin for OrderLineItemTaxType
impl UnwindSafe for OrderLineItemTaxType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.