feat(connector): (checkout_dot_com) add support for multiple partial captures (#1977)

This commit is contained in:
Hrithikesh
2023-08-29 16:40:51 +05:30
committed by GitHub
parent a93eea734f
commit 784702d9c5
4 changed files with 41 additions and 12 deletions

View File

@@ -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>;