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,
|
Clone,
|
||||||
Debug,
|
Debug,
|
||||||
Eq,
|
Eq,
|
||||||
Default,
|
|
||||||
Hash,
|
Hash,
|
||||||
PartialEq,
|
PartialEq,
|
||||||
serde::Deserialize,
|
serde::Deserialize,
|
||||||
@ -2279,7 +2278,6 @@ pub enum FrmSuggestion {
|
|||||||
#[serde(rename_all = "snake_case")]
|
#[serde(rename_all = "snake_case")]
|
||||||
#[strum(serialize_all = "snake_case")]
|
#[strum(serialize_all = "snake_case")]
|
||||||
pub enum ReconStatus {
|
pub enum ReconStatus {
|
||||||
#[default]
|
|
||||||
NotRequested,
|
NotRequested,
|
||||||
Requested,
|
Requested,
|
||||||
Active,
|
Active,
|
||||||
|
|||||||
@ -98,6 +98,6 @@ pub struct MerchantAccountUpdateInternal {
|
|||||||
pub organization_id: Option<String>,
|
pub organization_id: Option<String>,
|
||||||
pub is_recon_enabled: bool,
|
pub is_recon_enabled: bool,
|
||||||
pub default_profile: Option<Option<String>>,
|
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>,
|
pub payment_link_config: Option<serde_json::Value>,
|
||||||
}
|
}
|
||||||
|
|||||||
@ -134,7 +134,7 @@ impl From<MerchantAccountUpdate> for MerchantAccountUpdateInternal {
|
|||||||
..Default::default()
|
..Default::default()
|
||||||
},
|
},
|
||||||
MerchantAccountUpdate::ReconUpdate { recon_status } => Self {
|
MerchantAccountUpdate::ReconUpdate { recon_status } => Self {
|
||||||
recon_status,
|
recon_status: Some(recon_status),
|
||||||
..Default::default()
|
..Default::default()
|
||||||
},
|
},
|
||||||
MerchantAccountUpdate::UnsetDefaultProfile => Self {
|
MerchantAccountUpdate::UnsetDefaultProfile => Self {
|
||||||
|
|||||||
Reference in New Issue
Block a user