mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-30 09:38:33 +08:00
feat(routing): add domain type for Routing id (#5733)
Co-authored-by: Sanchith Hegde <sanchith.hegde@juspay.in> Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -233,6 +233,12 @@ pub fn generate_profile_id_of_default_length() -> id_type::ProfileId {
|
||||
id_type::ProfileId::generate()
|
||||
}
|
||||
|
||||
/// Generate a routing id with default length, with prefix as `routing`
|
||||
pub fn generate_routing_id_of_default_length() -> id_type::RoutingId {
|
||||
use id_type::GenerateId;
|
||||
|
||||
id_type::RoutingId::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 {
|
||||
|
||||
Reference in New Issue
Block a user