pub struct ExistingTransaction {
pub account_id: Option<String>,
pub date: Option<String>,
pub amount: Option<i64>,
pub payee_id: Option<String>,
pub payee_name: Option<String>,
pub category_id: Option<String>,
pub memo: Option<String>,
pub cleared: Option<TransactionClearedStatus>,
pub approved: Option<bool>,
pub flag_color: Option<TransactionFlagColor>,
pub subtransactions: Option<Vec<SaveSubTransaction>>,
}
Fields§
§account_id: Option<String>
§date: Option<String>
The transaction date in ISO format (e.g. 2016-12-01). Future dates (scheduled transactions) are not permitted. Split transaction dates cannot be changed and if a different date is supplied it will be ignored.
amount: Option<i64>
The transaction amount in milliunits format. Split transaction amounts cannot be changed and if a different amount is supplied it will be ignored.
payee_id: Option<String>
The payee for the transaction. To create a transfer between two accounts, use the account transfer payee pointing to the target account. Account transfer payees are specified as transfer_payee_id
on the account resource.
payee_name: Option<String>
The payee name. If a payee_name
value is provided and payee_id
has a null value, the payee_name
value will be used to resolve the payee by either (1) a matching payee rename rule (only if import_id
is also specified) or (2) a payee with the same name or (3) creation of a new payee.
category_id: Option<String>
The category for the transaction. To configure a split transaction, you can specify null for category_id
and provide a subtransactions
array as part of the transaction object. If an existing transaction is a split, the category_id
cannot be changed. Credit Card Payment categories are not permitted and will be ignored if supplied.
memo: Option<String>
§cleared: Option<TransactionClearedStatus>
§approved: Option<bool>
Whether or not the transaction is approved. If not supplied, transaction will be unapproved by default.
flag_color: Option<TransactionFlagColor>
§subtransactions: Option<Vec<SaveSubTransaction>>
An array of subtransactions to configure a transaction as a split. Updating subtransactions
on an existing split transaction is not supported.
Implementations§
Source§impl ExistingTransaction
impl ExistingTransaction
pub fn new() -> ExistingTransaction
Trait Implementations§
Source§impl Clone for ExistingTransaction
impl Clone for ExistingTransaction
Source§fn clone(&self) -> ExistingTransaction
fn clone(&self) -> ExistingTransaction
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ExistingTransaction
impl Debug for ExistingTransaction
Source§impl<'de> Deserialize<'de> for ExistingTransaction
impl<'de> Deserialize<'de> for ExistingTransaction
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 PartialEq for ExistingTransaction
impl PartialEq for ExistingTransaction
Source§impl Serialize for ExistingTransaction
impl Serialize for ExistingTransaction
impl StructuralPartialEq for ExistingTransaction
Auto Trait Implementations§
impl Freeze for ExistingTransaction
impl RefUnwindSafe for ExistingTransaction
impl Send for ExistingTransaction
impl Sync for ExistingTransaction
impl Unpin for ExistingTransaction
impl UnwindSafe for ExistingTransaction
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more