feat(core): Add support for updating metadata after payment has been authorized (#7776)

Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
Swangi Kumari
2025-04-15 12:37:26 +05:30
committed by GitHub
parent c58e93bfdb
commit 92f6821316
39 changed files with 1241 additions and 59 deletions

View File

@ -334,11 +334,17 @@ pub enum AuthorizationStatus {
#[router_derive::diesel_enum(storage_type = "text")]
#[serde(rename_all = "snake_case")]
#[strum(serialize_all = "snake_case")]
pub enum SessionUpdateStatus {
pub enum PaymentResourceUpdateStatus {
Success,
Failure,
}
impl PaymentResourceUpdateStatus {
pub fn is_success(&self) -> bool {
matches!(self, Self::Success)
}
}
#[derive(
Clone,
Debug,