fix(recon): make recon status optional in merchant account (#4654)

Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
chikke srujan
2024-05-16 19:31:50 +05:30
committed by GitHub
parent 27ae437a88
commit 84cb2bcb6b
3 changed files with 2 additions and 4 deletions

View File

@ -2265,7 +2265,6 @@ pub enum FrmSuggestion {
Clone,
Debug,
Eq,
Default,
Hash,
PartialEq,
serde::Deserialize,
@ -2279,7 +2278,6 @@ pub enum FrmSuggestion {
#[serde(rename_all = "snake_case")]
#[strum(serialize_all = "snake_case")]
pub enum ReconStatus {
#[default]
NotRequested,
Requested,
Active,

View File

@ -98,6 +98,6 @@ pub struct MerchantAccountUpdateInternal {
pub organization_id: Option<String>,
pub is_recon_enabled: bool,
pub default_profile: Option<Option<String>>,
pub recon_status: storage_enums::ReconStatus,
pub recon_status: Option<storage_enums::ReconStatus>,
pub payment_link_config: Option<serde_json::Value>,
}

View File

@ -134,7 +134,7 @@ impl From<MerchantAccountUpdate> for MerchantAccountUpdateInternal {
..Default::default()
},
MerchantAccountUpdate::ReconUpdate { recon_status } => Self {
recon_status,
recon_status: Some(recon_status),
..Default::default()
},
MerchantAccountUpdate::UnsetDefaultProfile => Self {