pub struct NormalizedTransaction {
pub fingerprint: String,
pub card_last4: String,
pub card_brand: String,
pub amount_cents: u64,
pub currency: String,
pub merchant_id: String,
pub merchant_name: Option<String>,
pub location_id: Option<String>,
pub timestamp: i64,
pub source_txn_id: String,
pub source: WebhookSource,
pub txn_type: TransactionType,
}Expand description
Normalized transaction data from any webhook source
This is the internal representation after parsing webhook payloads. All source-specific fields are mapped to this common structure.
Fields§
§fingerprint: StringLoop fingerprint (hashed card_id)
card_last4: StringLast 4 digits of card (for display only)
card_brand: StringCard brand (VISA, MASTERCARD, etc.)
amount_cents: u64Transaction amount in cents
currency: StringCurrency code (USD, EUR, etc.)
merchant_id: StringMerchant identifier
merchant_name: Option<String>Merchant name (for display)
location_id: Option<String>Location identifier (if available)
timestamp: i64Transaction timestamp (Unix seconds)
source_txn_id: StringSource-specific transaction ID (for dedup)
source: WebhookSourceOriginal webhook source
txn_type: TransactionTypeTransaction type
Trait Implementations§
Source§impl Clone for NormalizedTransaction
impl Clone for NormalizedTransaction
Source§fn clone(&self) -> NormalizedTransaction
fn clone(&self) -> NormalizedTransaction
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NormalizedTransaction
impl Debug for NormalizedTransaction
Source§impl<'de> Deserialize<'de> for NormalizedTransaction
impl<'de> Deserialize<'de> for NormalizedTransaction
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for NormalizedTransaction
impl RefUnwindSafe for NormalizedTransaction
impl Send for NormalizedTransaction
impl Sync for NormalizedTransaction
impl Unpin for NormalizedTransaction
impl UnsafeUnpin for NormalizedTransaction
impl UnwindSafe for NormalizedTransaction
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<B> IntoFunctionResponse<B, Body> for Bwhere
B: Serialize,
impl<B> IntoFunctionResponse<B, Body> for Bwhere
B: Serialize,
Source§fn into_response(self) -> FunctionResponse<B, Body>
fn into_response(self) -> FunctionResponse<B, Body>
Convert the type into a FunctionResponse.
Creates a shared type from an unshared type.