pub struct Transaction {Show 17 fields
pub id: Option<String>,
pub amount: Option<f64>,
pub balance: Option<f64>,
pub transaction_type: Option<TransactionTransactionType>,
pub meta: Option<HashMap<String, Value>>,
pub status: Option<TransactionStatus>,
pub loyalty_program_id: Option<String>,
pub balance_definition_id: Option<String>,
pub contact_id: Option<i64>,
pub event_time: Option<DateTime<FixedOffset>>,
pub reject_reason: Option<String>,
pub rejected_at: Option<DateTime<FixedOffset>>,
pub expiration_date: Option<DateTime<FixedOffset>>,
pub completed_at: Option<DateTime<FixedOffset>>,
pub cancelled_at: Option<DateTime<FixedOffset>>,
pub created_at: Option<DateTime<FixedOffset>>,
pub updated_at: Option<DateTime<FixedOffset>>,
}Expand description
Represents a transaction involving a balance, including status and timestamps.
Fields§
§id: Option<String>Unique identifier (UUID) of the transaction.
amount: Option<f64>The transaction amount.
balance: Option<f64>The contact’s total balance for this balance definition after the transaction was applied. Only returned when the transaction actually updated the balance (i.e. it was completed or auto-completed).
transaction_type: Option<TransactionTransactionType>The type of the transaction.
meta: Option<HashMap<String, Value>>Optional metadata associated with the transaction.
status: Option<TransactionStatus>The current status of the transaction.
loyalty_program_id: Option<String>Unique identifier (UUID) of the associated loyalty program.
balance_definition_id: Option<String>Unique identifier (UUID) of the associated balance definition.
contact_id: Option<i64>Unique identifier of the contact associated with the transaction.
event_time: Option<DateTime<FixedOffset>>Optional timestamp indicating when the transaction event occurred (ISO 8601 format).
reject_reason: Option<String>Reason for rejection if the transaction was declined (nullable).
rejected_at: Option<DateTime<FixedOffset>>Timestamp when the transaction was rejected (nullable).
expiration_date: Option<DateTime<FixedOffset>>Expiry date of the transaction (nullable).
completed_at: Option<DateTime<FixedOffset>>Timestamp when the transaction was completed (nullable).
cancelled_at: Option<DateTime<FixedOffset>>Timestamp when the transaction was canceled (nullable).
created_at: Option<DateTime<FixedOffset>>Timestamp when the transaction was created.
updated_at: Option<DateTime<FixedOffset>>Timestamp when the transaction was last updated.