mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-11 18:59:20 +08:00
feat(connector): (checkout_dot_com) add support for multiple partial captures (#1977)
This commit is contained in:
@@ -239,6 +239,16 @@ impl PaymentsPreProcessingData for types::PaymentsPreProcessingData {
|
||||
}
|
||||
}
|
||||
|
||||
pub trait PaymentsCaptureRequestData {
|
||||
fn is_multiple_capture(&self) -> bool;
|
||||
}
|
||||
|
||||
impl PaymentsCaptureRequestData for types::PaymentsCaptureData {
|
||||
fn is_multiple_capture(&self) -> bool {
|
||||
self.multiple_capture_data.is_some()
|
||||
}
|
||||
}
|
||||
|
||||
pub trait PaymentsAuthorizeRequestData {
|
||||
fn is_auto_capture(&self) -> Result<bool, Error>;
|
||||
fn get_email(&self) -> Result<Email, Error>;
|
||||
|
||||
Reference in New Issue
Block a user