pub struct PaymentEvent {
pub id: Option<WebhookEventId>,
pub provider: PaymentProvider,
pub provider_reference: ProviderReference,
pub merchant_reference: Option<MerchantReference>,
pub status: PaymentStatus,
pub amount: Option<Money>,
pub event_type: PaymentEventType,
pub message: Option<String>,
}Expand description
Normalized payment event.
Fields§
§id: Option<WebhookEventId>Provider event ID.
provider: PaymentProviderProvider that emitted the event.
provider_reference: ProviderReferenceProvider payment reference.
merchant_reference: Option<MerchantReference>Optional merchant reference.
status: PaymentStatusNormalized status.
amount: Option<Money>Optional amount.
event_type: PaymentEventTypeNormalized event type.
message: Option<String>Safe provider message.
Trait Implementations§
Source§impl Clone for PaymentEvent
impl Clone for PaymentEvent
Source§fn clone(&self) -> PaymentEvent
fn clone(&self) -> PaymentEvent
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 PaymentEvent
impl Debug for PaymentEvent
Source§impl PartialEq for PaymentEvent
impl PartialEq for PaymentEvent
impl Eq for PaymentEvent
impl StructuralPartialEq for PaymentEvent
Auto Trait Implementations§
impl Freeze for PaymentEvent
impl RefUnwindSafe for PaymentEvent
impl Send for PaymentEvent
impl Sync for PaymentEvent
impl Unpin for PaymentEvent
impl UnsafeUnpin for PaymentEvent
impl UnwindSafe for PaymentEvent
Blanket Implementations§
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