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§
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,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".