@nikhil-patil/ngx-firefly-iii-api-client
Version:
OpenAPI client for ngx-firefly-iii-api-client
217 lines (216 loc) • 7.6 kB
TypeScript
/**
* Firefly III API v2.1.0
* This is the documentation of the Firefly III API. You can find accompanying documentation on the website of Firefly III itself (see below). Please report any bugs or issues. You may use the \"Authorize\" button to try the API below. This file was last generated on 2024-05-19T04:33:01+00:00 Please keep in mind that the demo site does not accept requests from curl, colly, wget, etc. You must use a browser or a tool like Postman to make requests. Too many script kiddies out there, sorry about that.
*
* The version of the OpenAPI document: 2.1.0
* Contact: james@firefly-iii.org
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { AccountTypeProperty } from './accountTypeProperty';
import { TransactionTypeProperty } from './transactionTypeProperty';
export interface TransactionSplit {
/**
* User ID
*/
readonly user?: 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.
*/
readonly transaction_journal_id?: string;
type: TransactionTypeProperty;
/**
* Date of the transaction
*/
date: string;
/**
* Order of this entry in the list of transactions.
*/
order?: number | null;
/**
* Currency ID. Default is the source account\'s currency, or the user\'s default currency. Can be used instead of currency_code.
*/
currency_id?: string | null;
/**
* Currency code. Default is the source account\'s currency, or the user\'s default currency. Can be used instead of currency_id.
*/
currency_code?: string | null;
readonly currency_symbol?: string;
readonly currency_name?: string;
/**
* Number of decimals used in this currency.
*/
readonly currency_decimal_places?: number;
/**
* Currency ID of the foreign currency. Default is null. Is required when you submit a foreign amount.
*/
foreign_currency_id?: string | null;
/**
* Currency code of the foreign currency. Default is NULL. Can be used instead of the foreign_currency_id, but this or the ID is required when submitting a foreign amount.
*/
foreign_currency_code?: string | null;
readonly foreign_currency_symbol?: string | null;
/**
* Number of decimals in the currency
*/
readonly foreign_currency_decimal_places?: number | null;
/**
* Amount of the transaction.
*/
amount: string;
/**
* The amount in a foreign currency.
*/
foreign_amount?: string | null;
/**
* Description of the transaction.
*/
description: 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_id: string | null;
/**
* 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_name?: string | null;
readonly source_iban?: string | null;
source_type?: AccountTypeProperty;
/**
* 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_id: string | null;
/**
* 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_name?: string | null;
readonly destination_iban?: string | null;
destination_type?: AccountTypeProperty;
/**
* The budget ID for this transaction.
*/
budget_id?: string | null;
/**
* The name of the budget to be used. If the budget name is unknown, the ID will be used or the value will be ignored.
*/
readonly budget_name?: string | null;
/**
* The category ID for this transaction.
*/
category_id?: string | null;
/**
* 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.
*/
category_name?: string | null;
/**
* Optional. Use either this or the bill_name
*/
bill_id?: string | null;
/**
* Optional. Use either this or the bill_id
*/
bill_name?: string | null;
/**
* If the transaction has been reconciled already. When you set this, the amount can no longer be edited by the user.
*/
reconciled?: boolean;
notes?: string | null;
/**
* Array of tags.
*/
tags?: Array<string> | null;
/**
* Reference to internal reference of other systems.
*/
internal_reference?: string | null;
/**
* Reference to external ID in other systems.
*/
external_id?: string | null;
/**
* External, custom URL for this transaction.
*/
external_url?: string | null;
/**
* System generated identifier for original creator of transaction.
*/
readonly original_source?: string | null;
/**
* Reference to recurrence that made the transaction.
*/
readonly recurrence_id?: string | null;
/**
* Total number of transactions expected to be created by this recurrence repetition. Will be 0 if infinite.
*/
readonly recurrence_total?: number | null;
/**
* The # of the current transaction created under this recurrence.
*/
readonly recurrence_count?: number | null;
/**
* Internal ID of bunq transaction. DEPRECATED
*/
bunq_payment_id?: string | null;
/**
* Hash value of original import transaction (for duplicate detection).
*/
readonly import_hash_v2?: string | null;
/**
* SEPA Clearing Code
*/
sepa_cc?: string | null;
/**
* SEPA Opposing Account Identifier
*/
sepa_ct_op?: string | null;
/**
* SEPA end-to-end Identifier
*/
sepa_ct_id?: string | null;
/**
* SEPA mandate identifier
*/
sepa_db?: string | null;
/**
* SEPA Country
*/
sepa_country?: string | null;
/**
* SEPA External Purpose indicator
*/
sepa_ep?: string | null;
/**
* SEPA Creditor Identifier
*/
sepa_ci?: string | null;
/**
* SEPA Batch ID
*/
sepa_batch_id?: string | null;
interest_date?: string | null;
book_date?: string | null;
process_date?: string | null;
due_date?: string | null;
payment_date?: string | null;
invoice_date?: string | null;
/**
* Latitude of the transaction\'s location, if applicable. Can be used to draw a map.
*/
latitude?: number | null;
/**
* Latitude of the transaction\'s location, if applicable. Can be used to draw a map.
*/
longitude?: number | null;
/**
* 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.
*/
zoom_level?: number | null;
/**
* If the transaction has attachments.
*/
has_attachments?: boolean;
}
export declare namespace TransactionSplit {
}