pub trait CheckoutContext: InvoiceCalculator + ItemTitleResolver + InventoryController + ShippingCalculator + PriceCalculator {
    fn start_transaction<'life0, 'async_trait>(
        &'life0 mut self
    ) -> Pin<Box<dyn Future<Output = Result<(), CheckoutError>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: Send + 'async_trait
, { ... }
fn commit_transaction<'life0, 'async_trait>(
        &'life0 mut self
    ) -> Pin<Box<dyn Future<Output = Result<(), CheckoutError>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: Send + 'async_trait
, { ... }
fn abort_transaction<'life0, 'async_trait>(
        &'life0 mut self
    ) -> Pin<Box<dyn Future<Output = Result<(), CheckoutError>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: Send + 'async_trait
, { ... }
fn on_create<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        _co: &'life1 Checkout
    ) -> Pin<Box<dyn Future<Output = Result<(), CheckoutError>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: Send + 'async_trait
, { ... }
fn on_add_item<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 mut self,
        _co: &'life1 Checkout,
        _sku: &'life2 str,
        _quantity: u64
    ) -> Pin<Box<dyn Future<Output = Result<(), CheckoutError>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: Send + 'async_trait
, { ... }
fn on_remove_item<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 mut self,
        _co: &'life1 Checkout,
        _sku: &'life2 str,
        _quantity: u64
    ) -> Pin<Box<dyn Future<Output = Result<(), CheckoutError>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: Send + 'async_trait
, { ... }
fn on_confirm_items<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        _co: &'life1 Checkout
    ) -> Pin<Box<dyn Future<Output = Result<(), CheckoutError>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: Send + 'async_trait
, { ... }
fn on_update_shipping_address<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        _co: &'life1 Checkout
    ) -> Pin<Box<dyn Future<Output = Result<(), CheckoutError>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: Send + 'async_trait
, { ... }
fn on_update_fulfillment_type<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        _co: &'life1 Checkout
    ) -> Pin<Box<dyn Future<Output = Result<(), CheckoutError>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: Send + 'async_trait
, { ... } }

Provided methods

Implementors