#[non_exhaustive]pub enum TransactionStatus {
Draft,
Ready,
Billed,
Paid,
Completed,
Canceled,
PastDue,
}
Expand description
Status of this transaction. You may set a transaction to billed
or canceled
, other statuses are set automatically by Paddle. Automatically-collected transactions may return completed
if payment is captured successfully, or past_due
if payment failed.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Draft
Transaction is missing required fields. Typically the first stage of a checkout before customer details are captured.
Ready
Transaction has all of the required fields to be marked as billed
or completed
.
Billed
Transaction has been updated to billed
. Billed transactions get an invoice number and are considered a legal record. They cannot be changed. Typically used as part of an invoice workflow.
Paid
Transaction is fully paid, but has not yet been processed internally.
Completed
Transaction is fully paid and processed.
Canceled
Transaction has been updated to canceled
. If an invoice, it’s no longer due.
PastDue
Transaction is past due. Occurs for automatically-collected transactions when the related subscription is in dunning, and for manually-collected transactions when payment terms have elapsed.
Trait Implementations§
Source§impl Clone for TransactionStatus
impl Clone for TransactionStatus
Source§fn clone(&self) -> TransactionStatus
fn clone(&self) -> TransactionStatus
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for TransactionStatus
impl Debug for TransactionStatus
Source§impl<'de> Deserialize<'de> for TransactionStatus
impl<'de> Deserialize<'de> for TransactionStatus
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>,
Source§impl Hash for TransactionStatus
impl Hash for TransactionStatus
Source§impl Ord for TransactionStatus
impl Ord for TransactionStatus
Source§fn cmp(&self, other: &TransactionStatus) -> Ordering
fn cmp(&self, other: &TransactionStatus) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for TransactionStatus
impl PartialEq for TransactionStatus
Source§impl PartialOrd for TransactionStatus
impl PartialOrd for TransactionStatus
Source§impl Serialize for TransactionStatus
impl Serialize for TransactionStatus
impl Eq for TransactionStatus
impl StructuralPartialEq for TransactionStatus
Auto Trait Implementations§
impl Freeze for TransactionStatus
impl RefUnwindSafe for TransactionStatus
impl Send for TransactionStatus
impl Sync for TransactionStatus
impl Unpin for TransactionStatus
impl UnwindSafe for TransactionStatus
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.