mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-31 01:57:45 +08:00
feat(router): add payments create-intent flow for v2 (#6193)
Co-authored-by: hrithikesh026 <hrithikesh.vm@juspay.in> Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com> Co-authored-by: Hrithikesh <61539176+hrithikesh026@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
9576ee37a6
commit
afa803e0f9
@ -264,6 +264,12 @@ pub fn generate_time_ordered_id(prefix: &str) -> String {
|
||||
format!("{prefix}_{}", uuid::Uuid::now_v7().as_simple())
|
||||
}
|
||||
|
||||
/// Generate a time-ordered (time-sortable) unique identifier using the current time without prefix
|
||||
#[inline]
|
||||
pub fn generate_time_ordered_id_without_prefix() -> String {
|
||||
uuid::Uuid::now_v7().as_simple().to_string()
|
||||
}
|
||||
|
||||
#[allow(missing_docs)]
|
||||
pub trait DbConnectionParams {
|
||||
fn get_username(&self) -> &str;
|
||||
|
||||
Reference in New Issue
Block a user