pub enum Decision {
DraftAllowed,
ReviewRequired {
reason: ReviewReason,
gate: ReviewGate,
},
Denied {
reason: DenialReason,
},
}Expand description
POS decision describing whether a sale draft is allowed, needs review, or is denied.
Variants§
DraftAllowed
Sale may be drafted internally because product, inventory, source, and price policy all passed.
ReviewRequired
Sale must pause for the named approval gate before POS, reservation, payment, refund, or discount action.
Fields
§
reason: ReviewReasonApproval reason shown to staff or managers before checkout work proceeds.
§
gate: ReviewGateApproval gate that must be satisfied before the retail workflow can proceed.
Denied
Sale is blocked before checkout because product, inventory, or source policy failed.
Fields
§
reason: DenialReasonDenial reason explaining why checkout work must not proceed.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Decision
impl<'de> Deserialize<'de> for Decision
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 Decision
impl StructuralPartialEq for Decision
Auto Trait Implementations§
impl Freeze for Decision
impl RefUnwindSafe for Decision
impl Send for Decision
impl Sync for Decision
impl Unpin for Decision
impl UnsafeUnpin for Decision
impl UnwindSafe for Decision
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