mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-02 21:07:58 +08:00
feat(router): add auto retries configs in profile CRUD apis (#6134)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
c7bb9ccda3
commit
bf47b560c2
@ -3537,6 +3537,8 @@ impl ProfileCreateBridge for api::ProfileCreate {
|
||||
.always_collect_shipping_details_from_wallet_connector,
|
||||
dynamic_routing_algorithm: None,
|
||||
is_network_tokenization_enabled: self.is_network_tokenization_enabled,
|
||||
is_auto_retries_enabled: self.is_auto_retries_enabled.unwrap_or_default(),
|
||||
max_auto_retries_enabled: self.max_auto_retries_enabled.map(i16::from),
|
||||
}))
|
||||
}
|
||||
|
||||
@ -3884,6 +3886,8 @@ impl ProfileUpdateBridge for api::ProfileUpdate {
|
||||
is_tax_connector_enabled: self.is_tax_connector_enabled,
|
||||
dynamic_routing_algorithm: self.dynamic_routing_algorithm,
|
||||
is_network_tokenization_enabled: self.is_network_tokenization_enabled,
|
||||
is_auto_retries_enabled: self.is_auto_retries_enabled,
|
||||
max_auto_retries_enabled: self.max_auto_retries_enabled.map(i16::from),
|
||||
},
|
||||
)))
|
||||
}
|
||||
|
||||
@ -168,6 +168,8 @@ impl ForeignTryFrom<domain::Profile> for ProfileResponse {
|
||||
tax_connector_id: item.tax_connector_id,
|
||||
is_tax_connector_enabled: item.is_tax_connector_enabled,
|
||||
is_network_tokenization_enabled: item.is_network_tokenization_enabled,
|
||||
is_auto_retries_enabled: item.is_auto_retries_enabled,
|
||||
max_auto_retries_enabled: item.max_auto_retries_enabled,
|
||||
})
|
||||
}
|
||||
}
|
||||
@ -353,5 +355,7 @@ pub async fn create_profile_from_merchant_account(
|
||||
is_tax_connector_enabled: request.is_tax_connector_enabled,
|
||||
dynamic_routing_algorithm: None,
|
||||
is_network_tokenization_enabled: request.is_network_tokenization_enabled,
|
||||
is_auto_retries_enabled: request.is_auto_retries_enabled.unwrap_or_default(),
|
||||
max_auto_retries_enabled: request.max_auto_retries_enabled.map(i16::from),
|
||||
}))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user