#[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 more