pub enum OrderLineItemDiscountType {
UnknownDiscount,
FixedPercentage,
FixedAmount,
VariablePercentage,
VariableAmount,
}
Expand description
Indicates how the discount is applied to the associated line item or order.
Variants§
UnknownDiscount
Used for reporting only. The original transaction discount type is currently not supported by the API.
FixedPercentage
Apply the discount as a fixed percentage (such as 5%) off the item price.
FixedAmount
Apply the discount as a fixed monetary value (such as $1.00) off the item price.
VariablePercentage
Apply the discount as a variable percentage based on the item price.
The specific discount percentage of a VARIABLE_PERCENTAGE
discount is assigned at the time
of the purchase.
VariableAmount
Apply the discount as a variable amount based on the item price.
The specific discount amount of a VARIABLE_AMOUNT
discount is assigned at the time of the
purchase.
Trait Implementations§
Source§impl Clone for OrderLineItemDiscountType
impl Clone for OrderLineItemDiscountType
Source§fn clone(&self) -> OrderLineItemDiscountType
fn clone(&self) -> OrderLineItemDiscountType
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 OrderLineItemDiscountType
impl Debug for OrderLineItemDiscountType
Source§impl<'de> Deserialize<'de> for OrderLineItemDiscountType
impl<'de> Deserialize<'de> for OrderLineItemDiscountType
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
impl Eq for OrderLineItemDiscountType
impl StructuralPartialEq for OrderLineItemDiscountType
Auto Trait Implementations§
impl Freeze for OrderLineItemDiscountType
impl RefUnwindSafe for OrderLineItemDiscountType
impl Send for OrderLineItemDiscountType
impl Sync for OrderLineItemDiscountType
impl Unpin for OrderLineItemDiscountType
impl UnwindSafe for OrderLineItemDiscountType
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.