mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-27 19:46:48 +08:00
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:
@ -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,
|
||||
|
||||
@ -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>,
|
||||
}
|
||||
|
||||
@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user