pub struct TransactionSummary {Show 19 fields
pub id: String,
pub date: String,
pub amount: i64,
pub memo: Option<Option<String>>,
pub cleared: TransactionClearedStatus,
pub approved: bool,
pub flag_color: Option<Option<TransactionFlagColor>>,
pub flag_name: Option<Option<String>>,
pub account_id: Uuid,
pub payee_id: Option<Option<Uuid>>,
pub category_id: Option<Option<Uuid>>,
pub transfer_account_id: Option<Option<Uuid>>,
pub transfer_transaction_id: Option<Option<String>>,
pub matched_transaction_id: Option<Option<String>>,
pub import_id: Option<Option<String>>,
pub import_payee_name: Option<Option<String>>,
pub import_payee_name_original: Option<Option<String>>,
pub debt_transaction_type: Option<Option<DebtTransactionType>>,
pub deleted: bool,
}Fields§
§id: String§date: StringThe transaction date in ISO format (e.g. 2016-12-01)
amount: i64The transaction amount in milliunits format
memo: Option<Option<String>>§cleared: TransactionClearedStatus§approved: boolWhether or not the transaction is approved
flag_color: Option<Option<TransactionFlagColor>>§flag_name: Option<Option<String>>The customized name of a transaction flag
account_id: Uuid§payee_id: Option<Option<Uuid>>§category_id: Option<Option<Uuid>>§transfer_account_id: Option<Option<Uuid>>If a transfer transaction, the account to which it transfers
transfer_transaction_id: Option<Option<String>>If a transfer transaction, the id of transaction on the other side of the transfer
matched_transaction_id: Option<Option<String>>If transaction is matched, the id of the matched transaction
import_id: Option<Option<String>>If the transaction was imported, this field is a unique (by account) import identifier. If this transaction was imported through File Based Import or Direct Import and not through the API, the import_id will have the format: ‘YNAB:[milliunit_amount]:[iso_date]:[occurrence]’. For example, a transaction dated 2015-12-30 in the amount of -$294.23 USD would have an import_id of ‘YNAB:-294230:2015-12-30:1’. If a second transaction on the same account was imported and had the same date and same amount, its import_id would be ‘YNAB:-294230:2015-12-30:2’.
import_payee_name: Option<Option<String>>If the transaction was imported, the payee name that was used when importing and before applying any payee rename rules
import_payee_name_original: Option<Option<String>>If the transaction was imported, the original payee name as it appeared on the statement
debt_transaction_type: Option<Option<DebtTransactionType>>If the transaction is a debt/loan account transaction, the type of transaction
deleted: boolWhether or not the transaction has been deleted. Deleted transactions will only be included in delta requests.
Implementations§
Source§impl TransactionSummary
impl TransactionSummary
pub fn new( id: String, date: String, amount: i64, cleared: TransactionClearedStatus, approved: bool, account_id: Uuid, deleted: bool, ) -> TransactionSummary
Trait Implementations§
Source§impl Clone for TransactionSummary
impl Clone for TransactionSummary
Source§fn clone(&self) -> TransactionSummary
fn clone(&self) -> TransactionSummary
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more