mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-27 11:24:45 +08:00
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:
committed by
GitHub
parent
654c15ee19
commit
c354e62f9d
@ -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")]
|
||||
|
||||
Reference in New Issue
Block a user