pub enum Source {
StandaloneStaffSale {
staff_id: StaffId,
},
ReservationCheckout {
reservation_id: Id,
},
ExternalPosReconciliation,
}Expand description
Source of the retail sale attempt, used to prevent unsupported POS or reservation mutations.
Variants§
StandaloneStaffSale
Staff-originated counter sale that may draft when policy and inventory allow it.
ReservationCheckout
Reservation checkout context that can propose an attachment but cannot send customer copy without approval.
Fields
ExternalPosReconciliation
Imported POS reconciliation source that is recorded for review instead of mutating checkout from domain code.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Source
impl<'de> Deserialize<'de> for Source
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 Source
impl StructuralPartialEq for Source
Auto Trait Implementations§
impl Freeze for Source
impl RefUnwindSafe for Source
impl Send for Source
impl Sync for Source
impl Unpin for Source
impl UnsafeUnpin for Source
impl UnwindSafe for Source
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