pub struct TransferOrders { /* private fields */ }Expand description
Transfer order operations.
Implementations§
Source§impl TransferOrders
impl TransferOrders
Sourcepub fn is_supported(&self) -> bool
pub fn is_supported(&self) -> bool
Whether transfer orders are supported by the active backend.
Sourcepub fn create(&self, input: CreateTransferOrder) -> Result<TransferOrder>
pub fn create(&self, input: CreateTransferOrder) -> Result<TransferOrder>
Create a new transfer order.
Sourcepub fn get(&self, id: TransferOrderId) -> Result<Option<TransferOrder>>
pub fn get(&self, id: TransferOrderId) -> Result<Option<TransferOrder>>
Get a transfer order by ID.
Sourcepub fn list(&self, filter: TransferOrderFilter) -> Result<Vec<TransferOrder>>
pub fn list(&self, filter: TransferOrderFilter) -> Result<Vec<TransferOrder>>
List transfer orders with optional filtering.
Sourcepub fn ship(&self, id: TransferOrderId) -> Result<TransferOrder>
pub fn ship(&self, id: TransferOrderId) -> Result<TransferOrder>
Mark a transfer order as shipped from the source.
Sourcepub fn receive_line(
&self,
id: TransferOrderId,
item_id: TransferOrderItemId,
quantity: Decimal,
) -> Result<TransferOrder>
pub fn receive_line( &self, id: TransferOrderId, item_id: TransferOrderItemId, quantity: Decimal, ) -> Result<TransferOrder>
Receive a quantity against a single line at the destination.
Sourcepub fn cancel(&self, id: TransferOrderId) -> Result<TransferOrder>
pub fn cancel(&self, id: TransferOrderId) -> Result<TransferOrder>
Cancel a transfer order.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for TransferOrders
impl !UnwindSafe for TransferOrders
impl Freeze for TransferOrders
impl Send for TransferOrders
impl Sync for TransferOrders
impl Unpin for TransferOrders
impl UnsafeUnpin for TransferOrders
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