Skip to main content

MerchantCheckoutService

Trait MerchantCheckoutService 

Source
pub trait MerchantCheckoutService: Send + Sync {
    // Required methods
    fn create_checkout<'life0, 'async_trait>(
        &'life0 self,
        command: CreateCheckoutCommand,
    ) -> Pin<Box<dyn Future<Output = Result<TransactionRecord, AdkError>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: 'async_trait;
    fn update_checkout<'life0, 'async_trait>(
        &'life0 self,
        command: UpdateCheckoutCommand,
    ) -> Pin<Box<dyn Future<Output = Result<TransactionRecord, AdkError>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: 'async_trait;
    fn get_checkout<'life0, 'async_trait>(
        &'life0 self,
        lookup: TransactionLookup,
    ) -> Pin<Box<dyn Future<Output = Result<Option<TransactionRecord>, AdkError>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: 'async_trait;
    fn complete_checkout<'life0, 'async_trait>(
        &'life0 self,
        command: CompleteCheckoutCommand,
    ) -> Pin<Box<dyn Future<Output = Result<TransactionRecord, AdkError>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: 'async_trait;
    fn cancel_checkout<'life0, 'async_trait>(
        &'life0 self,
        command: CancelCheckoutCommand,
    ) -> Pin<Box<dyn Future<Output = Result<TransactionRecord, AdkError>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: 'async_trait;
    fn apply_order_update<'life0, 'async_trait>(
        &'life0 self,
        command: OrderUpdateCommand,
    ) -> Pin<Box<dyn Future<Output = Result<TransactionRecord, AdkError>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: 'async_trait;
}
Available on crate feature payments only.
Expand description

Backend-facing checkout operations shared by ACP and AP2 adapters.

Required Methods§

Source

fn create_checkout<'life0, 'async_trait>( &'life0 self, command: CreateCheckoutCommand, ) -> Pin<Box<dyn Future<Output = Result<TransactionRecord, AdkError>> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: 'async_trait,

Source

fn update_checkout<'life0, 'async_trait>( &'life0 self, command: UpdateCheckoutCommand, ) -> Pin<Box<dyn Future<Output = Result<TransactionRecord, AdkError>> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: 'async_trait,

Source

fn get_checkout<'life0, 'async_trait>( &'life0 self, lookup: TransactionLookup, ) -> Pin<Box<dyn Future<Output = Result<Option<TransactionRecord>, AdkError>> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: 'async_trait,

Source

fn complete_checkout<'life0, 'async_trait>( &'life0 self, command: CompleteCheckoutCommand, ) -> Pin<Box<dyn Future<Output = Result<TransactionRecord, AdkError>> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: 'async_trait,

Source

fn cancel_checkout<'life0, 'async_trait>( &'life0 self, command: CancelCheckoutCommand, ) -> Pin<Box<dyn Future<Output = Result<TransactionRecord, AdkError>> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: 'async_trait,

Source

fn apply_order_update<'life0, 'async_trait>( &'life0 self, command: OrderUpdateCommand, ) -> Pin<Box<dyn Future<Output = Result<TransactionRecord, AdkError>> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: 'async_trait,

Implementors§