pub struct SqliteBackorderRepository { /* private fields */ }Available on crate feature
sqlite only.Implementations§
Source§impl SqliteBackorderRepository
impl SqliteBackorderRepository
pub const fn new(pool: Pool<SqliteConnectionManager>) -> Self
Trait Implementations§
Source§impl BackorderRepository for SqliteBackorderRepository
impl BackorderRepository for SqliteBackorderRepository
Source§fn create_backorder(&self, input: CreateBackorder) -> Result<Backorder>
fn create_backorder(&self, input: CreateBackorder) -> Result<Backorder>
Create a backorder
Source§fn get_backorder_by_number(&self, number: &str) -> Result<Option<Backorder>>
fn get_backorder_by_number(&self, number: &str) -> Result<Option<Backorder>>
Get backorder by number
Source§fn update_backorder(
&self,
id: Uuid,
input: UpdateBackorder,
) -> Result<Backorder>
fn update_backorder( &self, id: Uuid, input: UpdateBackorder, ) -> Result<Backorder>
Update backorder
Source§fn list_backorders(&self, filter: BackorderFilter) -> Result<Vec<Backorder>>
fn list_backorders(&self, filter: BackorderFilter) -> Result<Vec<Backorder>>
List backorders
Source§fn get_backorders_for_order(&self, order_id: Uuid) -> Result<Vec<Backorder>>
fn get_backorders_for_order(&self, order_id: Uuid) -> Result<Vec<Backorder>>
Get backorders for order
Source§fn get_backorders_for_customer(
&self,
customer_id: Uuid,
) -> Result<Vec<Backorder>>
fn get_backorders_for_customer( &self, customer_id: Uuid, ) -> Result<Vec<Backorder>>
Get backorders for customer
Source§fn fulfill_backorder(&self, input: FulfillBackorder) -> Result<Backorder>
fn fulfill_backorder(&self, input: FulfillBackorder) -> Result<Backorder>
Fulfill backorder (partial or full)
Source§fn get_fulfillment_history(
&self,
backorder_id: Uuid,
) -> Result<Vec<BackorderFulfillment>>
fn get_fulfillment_history( &self, backorder_id: Uuid, ) -> Result<Vec<BackorderFulfillment>>
Get fulfillment history for backorder
Source§fn allocate_backorder(
&self,
input: AllocateBackorder,
) -> Result<BackorderAllocation>
fn allocate_backorder( &self, input: AllocateBackorder, ) -> Result<BackorderAllocation>
Allocate inventory to backorder
Source§fn get_allocations(
&self,
backorder_id: Uuid,
) -> Result<Vec<BackorderAllocation>>
fn get_allocations( &self, backorder_id: Uuid, ) -> Result<Vec<BackorderAllocation>>
Get allocations for backorder
Source§fn release_allocation(&self, allocation_id: Uuid) -> Result<BackorderAllocation>
fn release_allocation(&self, allocation_id: Uuid) -> Result<BackorderAllocation>
Release allocation
Source§fn confirm_allocation(&self, allocation_id: Uuid) -> Result<BackorderAllocation>
fn confirm_allocation(&self, allocation_id: Uuid) -> Result<BackorderAllocation>
Confirm allocation
Source§fn expire_allocations(&self) -> Result<u32>
fn expire_allocations(&self) -> Result<u32>
Expire old allocations
Source§fn auto_allocate_inventory(&self, sku: &str) -> Result<Vec<BackorderAllocation>>
fn auto_allocate_inventory(&self, sku: &str) -> Result<Vec<BackorderAllocation>>
Auto-allocate available inventory to pending backorders
Source§fn get_summary(&self) -> Result<BackorderSummary>
fn get_summary(&self) -> Result<BackorderSummary>
Get backorder summary
Source§fn get_sku_summary(&self, sku: &str) -> Result<Option<SkuBackorderSummary>>
fn get_sku_summary(&self, sku: &str) -> Result<Option<SkuBackorderSummary>>
Get SKU backorder summary
Source§fn count_pending(&self) -> Result<u64>
fn count_pending(&self) -> Result<u64>
Count pending backorders
Auto Trait Implementations§
impl !RefUnwindSafe for SqliteBackorderRepository
impl !UnwindSafe for SqliteBackorderRepository
impl Freeze for SqliteBackorderRepository
impl Send for SqliteBackorderRepository
impl Sync for SqliteBackorderRepository
impl Unpin for SqliteBackorderRepository
impl UnsafeUnpin for SqliteBackorderRepository
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