mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-28 20:23:43 +08:00
feat(payouts): add domain type for PayoutId (#8395)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -41,7 +41,7 @@ pub enum PartitionKey<'a> {
|
||||
},
|
||||
MerchantIdPayoutId {
|
||||
merchant_id: &'a common_utils::id_type::MerchantId,
|
||||
payout_id: &'a str,
|
||||
payout_id: &'a common_utils::id_type::PayoutId,
|
||||
},
|
||||
MerchantIdPayoutAttemptId {
|
||||
merchant_id: &'a common_utils::id_type::MerchantId,
|
||||
@ -93,8 +93,9 @@ impl std::fmt::Display for PartitionKey<'_> {
|
||||
merchant_id,
|
||||
payout_id,
|
||||
} => f.write_str(&format!(
|
||||
"mid_{}_po_{payout_id}",
|
||||
merchant_id.get_string_repr()
|
||||
"mid_{}_po_{}",
|
||||
merchant_id.get_string_repr(),
|
||||
payout_id.get_string_repr()
|
||||
)),
|
||||
PartitionKey::MerchantIdPayoutAttemptId {
|
||||
merchant_id,
|
||||
|
||||
Reference in New Issue
Block a user