Home > @vsf-enterprise/sapcc > UseOrderComposable

UseOrderComposable interface

Composable method allowing to fetch and place orders.


export interface UseOrderComposable 


Property Type Description
error ComputedProperty<UseOrderError> An indicator of useOrder composable methods errors
load (props: LoadOrderProps) => Promise<void> A method for loading an existing order.
loading ComputedProperty<UseOrderLoading> An indicator of useOrder composable methods progress
order ComputedProperty<Order> An order object.
place (props: PlaceOrderProps) => Promise<void> A method for making an order from an existing cart.
set (newOrder: Order | null) => void A method for setting the order property manually.