mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 17:19:15 +08:00
feat(router): make core changes in payments flow to support incremental authorization (#3009)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
1e60c71098
commit
1ca2ba4594
@ -310,6 +310,9 @@ pub struct PaymentsRequest {
|
||||
/// The type of the payment that differentiates between normal and various types of mandate payments
|
||||
#[schema(value_type = Option<PaymentType>)]
|
||||
pub payment_type: Option<api_enums::PaymentType>,
|
||||
|
||||
///Request for an incremental authorization
|
||||
pub request_incremental_authorization: Option<bool>,
|
||||
}
|
||||
|
||||
impl PaymentsRequest {
|
||||
@ -2210,6 +2213,9 @@ pub struct PaymentsResponse {
|
||||
|
||||
/// Identifier of the connector ( merchant connector account ) which was chosen to make the payment
|
||||
pub merchant_connector_id: Option<String>,
|
||||
|
||||
/// If true incremental authorization can be performed on this payment
|
||||
pub incremental_authorization_allowed: Option<bool>,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, serde::Deserialize, ToSchema, serde::Serialize)]
|
||||
|
||||
Reference in New Issue
Block a user