mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-30 09:38:33 +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:
@ -163,8 +163,8 @@ impl<E> ConnectorResponseExt
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn get_payment_attempt_id(payment_id: impl std::fmt::Display, attempt_count: i16) -> String {
|
||||
format!("{payment_id}_{attempt_count}")
|
||||
pub fn get_payout_attempt_id(payout_id: impl std::fmt::Display, attempt_count: i16) -> String {
|
||||
format!("{payout_id}_{attempt_count}")
|
||||
}
|
||||
#[derive(Debug)]
|
||||
pub struct QrImage {
|
||||
@ -1174,7 +1174,7 @@ where
|
||||
&cloned_key_store,
|
||||
event_type,
|
||||
diesel_models::enums::EventClass::Payments,
|
||||
payment_id,
|
||||
payment_id.get_string_repr().to_owned(),
|
||||
diesel_models::enums::EventObjectType::PaymentDetails,
|
||||
webhooks::OutgoingWebhookContent::PaymentDetails(
|
||||
payments_response_json,
|
||||
|
||||
Reference in New Issue
Block a user