mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 17:19:15 +08:00
feat(core): conditionally return captures list during payment sync. (#2033)
This commit is contained in:
@ -2198,6 +2198,8 @@ pub struct PaymentsRetrieveRequest {
|
||||
pub merchant_connector_details: Option<admin::MerchantConnectorDetailsWrap>,
|
||||
/// This is a token which expires after 15 minutes, used from the client to authenticate and create sessions from the SDK
|
||||
pub client_secret: Option<String>,
|
||||
/// If enabled provides list of captures linked to latest attempt
|
||||
pub expand_captures: Option<bool>,
|
||||
/// If enabled provides list of attempts linked to payment intent
|
||||
pub expand_attempts: Option<bool>,
|
||||
}
|
||||
@ -2597,6 +2599,8 @@ pub struct PaymentRetrieveBody {
|
||||
pub force_sync: Option<bool>,
|
||||
/// This is a token which expires after 15 minutes, used from the client to authenticate and create sessions from the SDK
|
||||
pub client_secret: Option<String>,
|
||||
/// If enabled provides list of captures linked to latest attempt
|
||||
pub expand_captures: Option<bool>,
|
||||
/// If enabled provides list of attempts linked to payment intent
|
||||
pub expand_attempts: Option<bool>,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user