pub struct Collected {
pub balance_used_cents: Option<i32>,
pub card_charged_cents: Option<i32>,
pub credit_used_cents: Option<i32>,
pub invoice: Option<Box<Invoice>>,
pub paid: Option<bool>,
pub processor_ref: Option<String>,
pub reason: Option<String>,
}Fields§
§balance_used_cents: Option<i32>BalanceUsedCents is how much was covered by prepaid balance.
card_charged_cents: Option<i32>CardChargedCents is how much was charged to the card on file.
credit_used_cents: Option<i32>CreditUsedCents is how much was covered by credit grants.
invoice: Option<Box<Invoice>>Invoice is the invoice AFTER the attempt — its status is the authority on what happened, not this struct’s other fields.
paid: Option<bool>Paid reports whether the invoice is now settled in full. A false here with no error is a DECLINE: the invoice stays open and may be collected again.
processor_ref: Option<String>ProcessorRef is the processor’s reference for any card charge — the field that proves money moved at the gateway rather than only in our ledger.
reason: Option<String>Reason explains a decline or partial collection. Empty on success.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Collected
impl<'de> Deserialize<'de> for Collected
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
impl StructuralPartialEq for Collected
Auto Trait Implementations§
impl Freeze for Collected
impl RefUnwindSafe for Collected
impl Send for Collected
impl Sync for Collected
impl Unpin for Collected
impl UnsafeUnpin for Collected
impl UnwindSafe for Collected
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