feat(kafka): add payment_intent payment_attempt and refund kafka events for v2 (#8328)

Co-authored-by: Kashif <kashif.dev@protonmail.com>
This commit is contained in:
Hrithikesh
2025-06-19 12:06:07 +05:30
committed by GitHub
parent 5f7055fc8c
commit 305ca9bda9
12 changed files with 1138 additions and 332 deletions

View File

@ -85,6 +85,14 @@ where
{
StrongSecret::new(self.inner_secret)
}
/// Convert to [`Secret`] with a reference to the inner secret
pub fn as_ref(&self) -> Secret<&SecretValue, MaskingStrategy>
where
MaskingStrategy: for<'a> Strategy<&'a SecretValue>,
{
Secret::new(self.peek())
}
}
impl<SecretValue, MaskingStrategy> PeekInterface<SecretValue>

View File

@ -31,6 +31,8 @@ impl SerializableSecret for url::Url {}
#[cfg(feature = "time")]
impl SerializableSecret for time::Date {}
impl<T: SerializableSecret> SerializableSecret for &T {}
impl<'de, T, I> Deserialize<'de> for Secret<T, I>
where
T: Clone + de::DeserializeOwned + Sized,