pub struct Request {
pub offering: LocationOffering,
pub quantity: Quantity,
pub source: Source,
pub price_adjustment: PriceAdjustment,
}Expand description
Retail sale request combining offering, quantity, source, and price-adjustment context.
Fields§
§offering: LocationOfferingLocation offering being checked for sellability, usage policy, and available units.
quantity: QuantityPositive unit count staff want to sell or attach to checkout.
source: SourceSale origin used to block unsupported POS or reservation mutations.
price_adjustment: PriceAdjustmentDiscount, comp, refund, or reversal context that may require manager approval.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Request
impl<'de> Deserialize<'de> for Request
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 Request
impl StructuralPartialEq for Request
Auto Trait Implementations§
impl Freeze for Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnsafeUnpin for Request
impl UnwindSafe for Request
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