feat(router): add support for partial authorization (#8833)

Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
Sai Harsha Vardhan
2025-08-06 19:38:09 +05:30
committed by GitHub
parent 654c15ee19
commit c354e62f9d
67 changed files with 537 additions and 79 deletions

View File

@ -1214,6 +1214,9 @@ pub struct PaymentsRequest {
/// Date the payer placed the order.
#[serde(default, with = "common_utils::custom_serde::iso8601::option")]
pub order_date: Option<PrimitiveDateTime>,
/// Allow partial authorization for this payment
pub enable_partial_authorization: Option<bool>,
}
#[derive(Clone, Debug, PartialEq, serde::Serialize, serde::Deserialize, ToSchema)]
@ -5272,6 +5275,9 @@ pub struct PaymentsResponse {
/// Contains whole connector response
#[schema(value_type = Option<String>)]
pub whole_connector_response: Option<Secret<String>>,
/// Allow partial authorization for this payment
pub enable_partial_authorization: Option<bool>,
}
#[cfg(feature = "v2")]