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: StringDate 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: StringAmount 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: StringDescription 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>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.