mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-30 01:27:31 +08:00
feat: add support for updating surcharge_applicable field intent (#2647)
This commit is contained in:
@ -178,6 +178,10 @@ pub enum PaymentIntentUpdate {
|
||||
merchant_decision: Option<String>,
|
||||
updated_by: String,
|
||||
},
|
||||
SurchargeApplicableUpdate {
|
||||
surcharge_applicable: bool,
|
||||
updated_by: String,
|
||||
},
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, Default)]
|
||||
@ -386,6 +390,14 @@ impl From<PaymentIntentUpdate> for PaymentIntentUpdateInternal {
|
||||
updated_by,
|
||||
..Default::default()
|
||||
},
|
||||
PaymentIntentUpdate::SurchargeApplicableUpdate {
|
||||
surcharge_applicable,
|
||||
updated_by,
|
||||
} => Self {
|
||||
surcharge_applicable: Some(surcharge_applicable),
|
||||
updated_by,
|
||||
..Default::default()
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user