Skip to main content

TransactionSplit

Struct TransactionSplit 

Source
pub struct TransactionSplit {
Show 73 fields pub user: Option<String>, pub transaction_journal_id: Option<String>, pub type: TransactionTypeProperty, pub date: String, pub order: Option<i32>, pub object_has_currency_setting: Option<bool>, pub currency_id: Option<String>, pub currency_code: Option<String>, pub currency_symbol: Option<String>, pub currency_name: Option<String>, pub currency_decimal_places: Option<i32>, pub foreign_currency_id: Option<String>, pub foreign_currency_code: Option<String>, pub foreign_currency_symbol: Option<String>, pub foreign_currency_decimal_places: Option<i32>, pub primary_currency_id: Option<String>, pub primary_currency_code: Option<String>, pub primary_currency_symbol: Option<String>, pub primary_currency_decimal_places: Option<i32>, pub amount: String, pub pc_amount: Option<String>, pub foreign_amount: Option<String>, pub pc_foreign_amount: Option<String>, pub source_balance_after: Option<String>, pub pc_source_balance_after: Option<String>, pub destination_balance_after: Option<String>, pub pc_destination_balance_after: Option<String>, pub description: String, pub source_id: Option<String>, pub source_name: Option<String>, pub source_iban: Option<String>, pub source_type: Option<AccountTypeProperty>, pub destination_id: Option<String>, pub destination_name: Option<String>, pub destination_iban: Option<String>, pub destination_type: Option<AccountTypeProperty>, pub budget_id: Option<String>, pub budget_name: Option<String>, pub category_id: Option<String>, pub category_name: Option<String>, pub bill_id: Option<String>, pub bill_name: Option<String>, pub subscription_id: Option<String>, pub subscription_name: Option<String>, pub reconciled: Option<bool>, pub notes: Option<String>, pub tags: Option<Vec<String>>, pub internal_reference: Option<String>, pub external_id: Option<String>, pub external_url: Option<String>, pub original_source: Option<String>, pub recurrence_id: Option<String>, pub recurrence_total: Option<i32>, pub recurrence_count: Option<i32>, pub import_hash_v2: Option<String>, pub sepa_cc: Option<String>, pub sepa_ct_op: Option<String>, pub sepa_ct_id: Option<String>, pub sepa_db: Option<String>, pub sepa_country: Option<String>, pub sepa_ep: Option<String>, pub sepa_ci: Option<String>, pub sepa_batch_id: Option<String>, pub interest_date: Option<String>, pub book_date: Option<String>, pub process_date: Option<String>, pub due_date: Option<String>, pub payment_date: Option<String>, pub invoice_date: Option<String>, pub latitude: Option<f64>, pub longitude: Option<f64>, pub zoom_level: Option<i32>, pub has_attachments: Option<bool>,
}

Fields§

§user: Option<String>

User ID

§transaction_journal_id: Option<String>

ID of the underlying transaction journal. Each transaction consists of a transaction group (see the top ID) and one or more journals making up the splits of the transaction.

§type: TransactionTypeProperty§date: String

Date of the transaction

§order: Option<i32>

Order of this entry in the list of transactions.

§object_has_currency_setting: Option<bool>

Indicates whether the transaction has a currency setting. For transactions this is always true.

§currency_id: Option<String>

Currency ID for the currency of this transaction.

§currency_code: Option<String>

Currency code for the currency of this transaction.

§currency_symbol: Option<String>

Currency symbol for the currency of this transaction.

§currency_name: Option<String>

Currency name for the currency of this transaction.

§currency_decimal_places: Option<i32>

Number of decimals used in this currency.

§foreign_currency_id: Option<String>

Currency ID of the foreign currency, if this transaction has a foreign amount.

§foreign_currency_code: Option<String>

Currency code of the foreign currency. Default is NULL.

§foreign_currency_symbol: Option<String>§foreign_currency_decimal_places: Option<i32>

Number of decimals in the foreign currency.

§primary_currency_id: Option<String>

Returns the primary currency ID of the administration. This currency is used as the currency for all pc_* amount and balance fields of this account.

§primary_currency_code: Option<String>

Returns the primary currency code of the administration. This currency is used as the currency for all pc_* amount and balance fields of this account.

§primary_currency_symbol: Option<String>

See the other primary_* fields.

§primary_currency_decimal_places: Option<i32>

See the other primary_* fields.

§amount: String

Amount of the transaction.

§pc_amount: Option<String>

Amount of the transaction in the primary currency of this administration. The primary_currency_* fields reflect the currency used. This field is NULL if the user does have ‘convert to primary’ set to true in their settings.

§foreign_amount: Option<String>

The amount in the set foreign currency. May be NULL if the transaction does not have a foreign amount.

§pc_foreign_amount: Option<String>

Foreign amount of the transaction in the primary currency of this administration. The primary_currency_* fields reflect the currency used. This field is NULL if the user does have ‘convert to primary’ set to true in their settings.

§source_balance_after: Option<String>

The balance of the source account. This is the balance in the account’s currency which may be different from this transaction, and is not provided in this model.

§pc_source_balance_after: Option<String>

The balance of the source account in the primary currency of this administration. The primary_currency_* fields reflect the currency used. This field is NULL if the user does have ‘convert to primary’ set to true in their settings.

§destination_balance_after: Option<String>

The balance of the destination account. This is the balance in the account’s currency which may be different from this transaction, and is not provided in this model.

§pc_destination_balance_after: Option<String>

The balance of the destination account in the primary currency of this administration. The primary_currency_* fields reflect the currency used. This field is NULL if the user does have ‘convert to primary’ set to true in their settings.

§description: String

Description of the transaction.

§source_id: Option<String>

ID of the source account. For a withdrawal or a transfer, this must always be an asset account. For deposits, this must be a revenue account.

§source_name: Option<String>

Name of the source account. For a withdrawal or a transfer, this must always be an asset account. For deposits, this must be a revenue account. Can be used instead of the source_id. If the transaction is a deposit, the source_name can be filled in freely: the account will be created based on the name.

§source_iban: Option<String>§source_type: Option<AccountTypeProperty>§destination_id: Option<String>

ID of the destination account. For a deposit or a transfer, this must always be an asset account. For withdrawals this must be an expense account.

§destination_name: Option<String>

Name of the destination account. You can submit the name instead of the ID. For everything except transfers, the account will be auto-generated if unknown, so submitting a name is enough.

§destination_iban: Option<String>§destination_type: Option<AccountTypeProperty>§budget_id: Option<String>

The budget ID for this transaction.

§budget_name: Option<String>

The name of the budget used.

§category_id: Option<String>

The category ID for this transaction.

§category_name: Option<String>

The name of the category to be used. If the category is unknown, it will be created. If the ID and the name point to different categories, the ID overrules the name.

§bill_id: Option<String>

The associated subscription ID for this transaction. bill refers to the OLD name for subscriptions and this field will be removed.

§bill_name: Option<String>

The associated subscription name for this transaction. bill refers to the OLD name for subscriptions and this field will be removed.

§subscription_id: Option<String>

The associated subscription ID for this transaction.

§subscription_name: Option<String>

The associated subscription name for this transaction.

§reconciled: Option<bool>

If the transaction has been reconciled already. When you set this, the amount can no longer be edited by the user.

§notes: Option<String>§tags: Option<Vec<String>>

Array of tags.

§internal_reference: Option<String>

Reference to internal reference of other systems.

§external_id: Option<String>

Reference to external ID in other systems.

§external_url: Option<String>

External, custom URL for this transaction.

§original_source: Option<String>

System generated identifier for original creator of transaction.

§recurrence_id: Option<String>

Reference to recurrence that made the transaction.

§recurrence_total: Option<i32>

Total number of transactions expected to be created by this recurrence repetition. Will be 0 if infinite.

§recurrence_count: Option<i32>

The # of the current transaction created under this recurrence.

§import_hash_v2: Option<String>

Hash value of original import transaction (for duplicate detection).

§sepa_cc: Option<String>

SEPA Clearing Code

§sepa_ct_op: Option<String>

SEPA Opposing Account Identifier

§sepa_ct_id: Option<String>

SEPA end-to-end Identifier

§sepa_db: Option<String>

SEPA mandate identifier

§sepa_country: Option<String>

SEPA Country

§sepa_ep: Option<String>

SEPA External Purpose indicator

§sepa_ci: Option<String>

SEPA Creditor Identifier

§sepa_batch_id: Option<String>

SEPA Batch ID

§interest_date: Option<String>§book_date: Option<String>§process_date: Option<String>§due_date: Option<String>§payment_date: Option<String>§invoice_date: Option<String>§latitude: Option<f64>

Latitude of the transaction’s location, if applicable. Can be used to draw a map.

§longitude: Option<f64>

Latitude of the transaction’s location, if applicable. Can be used to draw a map.

§zoom_level: Option<i32>

Zoom level for the map, if drawn. This to set the box right. Unfortunately this is a proprietary value because each map provider has different zoom levels.

§has_attachments: Option<bool>

If the transaction has attachments.

Implementations§

Source§

impl TransactionSplit

Source

pub fn new( type: TransactionTypeProperty, date: String, amount: String, description: String, source_id: Option<String>, destination_id: Option<String>, ) -> TransactionSplit

Trait Implementations§

Source§

impl Clone for TransactionSplit

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for TransactionSplit

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for TransactionSplit

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for TransactionSplit

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Display for TransactionSplit

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for TransactionSplit

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for TransactionSplit

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for TransactionSplit

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

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
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more