pub enum PriceAdjustment {
None,
PolicyDiscount {
reason: PriceExceptionReason,
},
ManagerComp {
reason: PriceExceptionReason,
},
RefundOrReversal {
reason: PriceExceptionReason,
},
}Expand description
Price adjustment or comp that triggers manager review before checkout mutation.
Variants§
None
No discount, comp, refund, or reversal is requested.
PolicyDiscount
Approval reason shown to staff or managers before checkout work proceeds.
Fields
§
reason: PriceExceptionReasonManager-readable reason for the discount, comp, refund, or reversal request.
ManagerComp
Approval reason shown to staff or managers before checkout work proceeds.
Fields
§
reason: PriceExceptionReasonManager-readable reason for the discount, comp, refund, or reversal request.
RefundOrReversal
Approval reason shown to staff or managers before checkout work proceeds.
Fields
§
reason: PriceExceptionReasonManager-readable reason for the discount, comp, refund, or reversal request.
Implementations§
Source§impl PriceAdjustment
impl PriceAdjustment
Sourcepub const fn requires_manager_approval(self) -> bool
pub const fn requires_manager_approval(self) -> bool
Reports whether this price action must stop for manager approval before checkout changes.
Trait Implementations§
Source§impl Clone for PriceAdjustment
impl Clone for PriceAdjustment
Source§fn clone(&self) -> PriceAdjustment
fn clone(&self) -> PriceAdjustment
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PriceAdjustment
impl Debug for PriceAdjustment
Source§impl<'de> Deserialize<'de> for PriceAdjustment
impl<'de> Deserialize<'de> for PriceAdjustment
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 PriceAdjustment
impl PartialEq for PriceAdjustment
Source§impl Serialize for PriceAdjustment
impl Serialize for PriceAdjustment
impl Copy for PriceAdjustment
impl Eq for PriceAdjustment
impl StructuralPartialEq for PriceAdjustment
Auto Trait Implementations§
impl Freeze for PriceAdjustment
impl RefUnwindSafe for PriceAdjustment
impl Send for PriceAdjustment
impl Sync for PriceAdjustment
impl Unpin for PriceAdjustment
impl UnsafeUnpin for PriceAdjustment
impl UnwindSafe for PriceAdjustment
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