Struct up_api::v1::transactions::Attributes
source · [−]pub struct Attributes {Show 13 fields
pub status: TransactionStatusEnum,
pub raw_text: Option<String>,
pub description: String,
pub message: Option<String>,
pub is_categorizable: bool,
pub hold_info: Option<HoldInfoObject>,
pub round_up: Option<RoundUpObject>,
pub cashback: Option<CashBackObject>,
pub amount: MoneyObject,
pub foreign_amount: Option<MoneyObject>,
pub card_purchase_method: Option<CardPurchaseMethodObject>,
pub settled_at: Option<String>,
pub created_at: String,
}
Fields
status: TransactionStatusEnum
The current processing status of this transaction, according to whether or not this transaction has settled or is still held. Possible values: HELD
, SETTLED
raw_text: Option<String>
The original, unprocessed text of the transaction. This is often not a perfect indicator of the actual merchant, but it is useful for reconciliation purposes in some cases.
description: String
A short description for this transaction. Usually the merchant name for purchases.
message: Option<String>
Attached message for this transaction, such as a payment message, or a transfer note.
is_categorizable: bool
Boolean flag set to true on transactions that support the use of categories.
hold_info: Option<HoldInfoObject>
If this transaction is currently in the HELD
status, or was ever in the HELD
status, the amount
and foreignAmount
of the transaction while HELD
.
round_up: Option<RoundUpObject>
Details of how this transaction was rounded-up. If no Round Up was applied this field will be null
.
cashback: Option<CashBackObject>
If all or part of this transaction was instantly reimbursed in the form of cashback, details of the reimbursement.
amount: MoneyObject
The amount of this transaction in Australian dollars. For transactions that were once HELD
but are now SETTLED
, refer to the holdInfo
field for the original amount
the transaction was HELD
at.
foreign_amount: Option<MoneyObject>
The foreign currency amount of this transaction. This field will be null
for domestic transactions. The amount was converted to the AUD amount reflected in the amount
of this transaction. Refer to the holdInfo
field for the original foreignAmount the transaction was HELD
at.
card_purchase_method: Option<CardPurchaseMethodObject>
Information about the card used for this transaction, if applicable.
settled_at: Option<String>
The date-time at which this transaction settled. This field will be null
for transactions that are currently in the HELD
status.
created_at: String
The date-time at which this transaction was first encountered.
Trait Implementations
sourceimpl Debug for Attributes
impl Debug for Attributes
sourceimpl<'de> Deserialize<'de> for Attributes
impl<'de> Deserialize<'de> for Attributes
sourcefn 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
Auto Trait Implementations
impl RefUnwindSafe for Attributes
impl Send for Attributes
impl Sync for Attributes
impl Unpin for Attributes
impl UnwindSafe for Attributes
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more