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:
Sai Harsha Vardhan
2023-11-30 16:56:34 +05:30
committed by GitHub
parent 1e60c71098
commit 1ca2ba4594
88 changed files with 363 additions and 11 deletions

View File

@ -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)]