mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-30 09:38:33 +08:00
refactor(router): add domain type for merchant_connector_account id (#5685)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com> Co-authored-by: Sanchith Hegde <sanchith.hegde@juspay.in>
This commit is contained in:
committed by
GitHub
parent
f33e1bb65c
commit
771f48cfe0
@ -233,6 +233,14 @@ pub fn generate_profile_id_of_default_length() -> id_type::ProfileId {
|
||||
id_type::ProfileId::generate()
|
||||
}
|
||||
|
||||
/// Generate a merchant_connector_account id with default length, with prefix as `mca`
|
||||
pub fn generate_merchant_connector_account_id_of_default_length(
|
||||
) -> id_type::MerchantConnectorAccountId {
|
||||
use id_type::GenerateId;
|
||||
|
||||
id_type::MerchantConnectorAccountId::generate()
|
||||
}
|
||||
|
||||
/// Generate a nanoid with the given prefix and a default length
|
||||
#[inline]
|
||||
pub fn generate_id_with_default_len(prefix: &str) -> String {
|
||||
|
||||
Reference in New Issue
Block a user