octicon-rss(16/)
You've already forked hyperswitch
mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-10 01:46:06 +08:00
refactor(payment_id): add payment id domain type (#5738)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
octicon-git-branch(16/)
octicon-tag(16/)
committed by
GitHub
gitea-unlock(16/)
parent
4b0564e0e8
commit
7296cceba3
octicon-diff(16/tw-mr-1) 150 changed files with 880 additions and 803 deletions
@@ -172,12 +172,9 @@ pub async fn generate_sample_data(
|
||||
.change_context(SampleDataError::InternalServerError)?;
|
||||
|
||||
for num in 1..=sample_data_size {
|
||||
let payment_id = common_utils::generate_id_with_default_len("test");
|
||||
let attempt_id = crate::utils::get_payment_attempt_id(&payment_id, 1);
|
||||
let client_secret = common_utils::generate_id(
|
||||
consts::ID_LENGTH,
|
||||
format!("{}_secret", payment_id.clone()).as_str(),
|
||||
);
|
||||
let payment_id = id_type::PaymentId::generate_test_payment_id_for_sample_data();
|
||||
let attempt_id = payment_id.get_attempt_id(1);
|
||||
let client_secret = payment_id.generate_client_secret();
|
||||
let amount = thread_rng().gen_range(min_amount..=max_amount);
|
||||
|
||||
let created_at @ modified_at @ last_synced =
|
||||
|
||||
Reference in New Issue
Block a user