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§
Source§impl Clone for OrderLineItemTaxType
impl Clone for OrderLineItemTaxType
Source§fn clone(&self) -> OrderLineItemTaxType
fn clone(&self) -> OrderLineItemTaxType
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for OrderLineItemTaxType
impl Debug for OrderLineItemTaxType
Source§impl<'de> Deserialize<'de> for OrderLineItemTaxType
impl<'de> Deserialize<'de> for OrderLineItemTaxType
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for OrderLineItemTaxType
impl PartialEq for OrderLineItemTaxType
Source§impl Serialize for OrderLineItemTaxType
impl Serialize for OrderLineItemTaxType
impl Eq for OrderLineItemTaxType
impl StructuralPartialEq for OrderLineItemTaxType
Auto Trait Implementations§
impl Freeze for OrderLineItemTaxType
impl RefUnwindSafe for OrderLineItemTaxType
impl Send for OrderLineItemTaxType
impl Sync for OrderLineItemTaxType
impl Unpin for OrderLineItemTaxType
impl UnwindSafe for OrderLineItemTaxType
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.