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

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Compare self to key and return true if they are equal.

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more