pub enum InventoryState {
Show 15 variants
Custom,
InStock,
Sold,
ReturnedByCustomer,
ReservedForSale,
SoldOnline,
OrderedFromVendor,
ReceivedFromVendor,
InTransitTo,
None,
Waste,
UnlinkedReturn,
Composed,
Decomposed,
SuportedByNewerVersion,
}
Expand description
A type of state for the related quantity of items
Variants§
Custom
The related quantity of items are in a custom state. READ-ONLY: the Inventory API cannot move quantities to or from this state.
InStock
The related quantity of items are on hand and available for sale.
Sold
The related quantity of items were sold as part of an itemized transaction. Quantities in the SOLD state are no longer tracked.
ReturnedByCustomer
The related quantity of items were returned through the Square Point of Sale application, but are not yet available for sale. READ-ONLY: the Inventory API cannot move quantities to or from this state.
ReservedForSale
The related quantity of items are on hand, but not currently available for sale. READ-ONLY: the Inventory API cannot move quantities to or from this state.
SoldOnline
The related quantity of items were sold online. READ-ONLY: the Inventory API cannot move quantities to or from this state.
OrderedFromVendor
The related quantity of items were ordered from a vendor but not yet received. READ-ONLY: the Inventory API cannot move quantities to or from this state.
ReceivedFromVendor
The related quantity of items were received from a vendor but are not yet available for sale. READ-ONLY: the Inventory API cannot move quantities to or from this state.
InTransitTo
The related quantity of items are in transit between locations. READ-ONLY*: the Inventory API cannot move quantities to or from this state.
None
A placeholder indicating that the related quantity of items are not currently tracked in Square. Transferring quantities from the NONE state to a tracked state (e.g., IN_STOCK) introduces stock into the system.
Waste
The related quantity of items are lost or damaged and cannot be sold.
UnlinkedReturn
The related quantity of items were returned but not linked to a previous transaction. Unlinked returns are not tracked in Square. Transferring a quantity from UNLINKED_RETURN to a tracked state (e.g., IN_STOCK) introduces new stock into the system.
Composed
The related quantity of items that are part of a composition consisting one or more components.
Decomposed
The related quantity of items that are part of a component.
SuportedByNewerVersion
This state is not supported by this version of the Square API. We recommend that you upgrade the client to use the appropriate version of the Square API supporting this state.
Trait Implementations§
Source§impl Clone for InventoryState
impl Clone for InventoryState
Source§fn clone(&self) -> InventoryState
fn clone(&self) -> InventoryState
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for InventoryState
impl Debug for InventoryState
Source§impl<'de> Deserialize<'de> for InventoryState
impl<'de> Deserialize<'de> for InventoryState
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>,
Source§impl PartialEq for InventoryState
impl PartialEq for InventoryState
Source§impl Serialize for InventoryState
impl Serialize for InventoryState
impl Eq for InventoryState
impl StructuralPartialEq for InventoryState
Auto Trait Implementations§
impl Freeze for InventoryState
impl RefUnwindSafe for InventoryState
impl Send for InventoryState
impl Sync for InventoryState
impl Unpin for InventoryState
impl UnwindSafe for InventoryState
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
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
key
and return true
if they are equal.