pub enum PaymentEvent {
FullPayment(Payment),
PartialPayment {
payment: Payment,
remaining_amount: Decimal,
expected_remainder_date: Option<NaiveDate>,
},
ShortPayment {
payment: Payment,
short_payment: ShortPayment,
},
OnAccountPayment(OnAccountPayment),
PaymentCorrection {
original_payment: Payment,
correction: PaymentCorrection,
},
RemainderPayment(Payment),
}Expand description
Payment event in an O2C chain.
Variants§
FullPayment(Payment)
Full payment received
PartialPayment
Partial payment received
ShortPayment
Short payment (deduction)
OnAccountPayment(OnAccountPayment)
On-account payment (unapplied)
PaymentCorrection
Payment correction (NSF, chargeback)
RemainderPayment(Payment)
Remainder payment (follow-up to partial)
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 moreAuto Trait Implementations§
impl Freeze for PaymentEvent
impl RefUnwindSafe for PaymentEvent
impl Send for PaymentEvent
impl Sync for PaymentEvent
impl Unpin 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