go-firefly3/model_transaction_split_update.go
2024-05-11 14:45:50 +03:00

102 lines
5.9 KiB
Go

/*
* Firefly III API v2.0.14
*
* 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-04-20T05:28:29+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.
*
* API version: 2.0.14
* Contact: james@firefly-iii.org
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package swagger
import (
"time"
)
type TransactionSplitUpdate struct {
// Transaction journal ID of current transaction (split).
TransactionJournalId string `json:"transaction_journal_id,omitempty"`
Type_ *TransactionTypeProperty `json:"type,omitempty"`
// Date of the transaction
Date time.Time `json:"date,omitempty"`
// Amount of the transaction.
Amount string `json:"amount,omitempty"`
// Description of the transaction.
Description string `json:"description,omitempty"`
// Order of this entry in the list of transactions.
Order int32 `json:"order,omitempty"`
// Currency ID. Default is the source account's currency, or the user's default currency. Can be used instead of currency_code.
CurrencyId string `json:"currency_id,omitempty"`
// Currency code. Default is the source account's currency, or the user's default currency. Can be used instead of currency_id.
CurrencyCode string `json:"currency_code,omitempty"`
CurrencySymbol string `json:"currency_symbol,omitempty"`
CurrencyName string `json:"currency_name,omitempty"`
// Number of decimals used in this currency.
CurrencyDecimalPlaces int32 `json:"currency_decimal_places,omitempty"`
// The amount in a foreign currency.
ForeignAmount string `json:"foreign_amount,omitempty"`
// Currency ID of the foreign currency. Default is null. Is required when you submit a foreign amount.
ForeignCurrencyId string `json:"foreign_currency_id,omitempty"`
// 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.
ForeignCurrencyCode string `json:"foreign_currency_code,omitempty"`
ForeignCurrencySymbol string `json:"foreign_currency_symbol,omitempty"`
// Number of decimals in the currency
ForeignCurrencyDecimalPlaces int32 `json:"foreign_currency_decimal_places,omitempty"`
// The budget ID for this transaction.
BudgetId string `json:"budget_id,omitempty"`
// 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.
BudgetName string `json:"budget_name,omitempty"`
// The category ID for this transaction.
CategoryId string `json:"category_id,omitempty"`
// 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.
CategoryName string `json:"category_name,omitempty"`
// 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.
SourceId string `json:"source_id,omitempty"`
// 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.
SourceName string `json:"source_name,omitempty"`
SourceIban string `json:"source_iban,omitempty"`
// 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.
DestinationId string `json:"destination_id,omitempty"`
// 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.
DestinationName string `json:"destination_name,omitempty"`
DestinationIban string `json:"destination_iban,omitempty"`
// If the transaction has been reconciled already. When you set this, the amount can no longer be edited by the user.
Reconciled bool `json:"reconciled,omitempty"`
// Optional. Use either this or the bill_name
BillId string `json:"bill_id,omitempty"`
// Optional. Use either this or the bill_id
BillName string `json:"bill_name,omitempty"`
// Array of tags.
Tags []string `json:"tags,omitempty"`
Notes string `json:"notes,omitempty"`
// Reference to internal reference of other systems.
InternalReference string `json:"internal_reference,omitempty"`
// Reference to external ID in other systems.
ExternalId string `json:"external_id,omitempty"`
// External, custom URL for this transaction.
ExternalUrl string `json:"external_url,omitempty"`
// Internal ID of bunq transaction.
BunqPaymentId string `json:"bunq_payment_id,omitempty"`
// SEPA Clearing Code
SepaCc string `json:"sepa_cc,omitempty"`
// SEPA Opposing Account Identifier
SepaCtOp string `json:"sepa_ct_op,omitempty"`
// SEPA end-to-end Identifier
SepaCtId string `json:"sepa_ct_id,omitempty"`
// SEPA mandate identifier
SepaDb string `json:"sepa_db,omitempty"`
// SEPA Country
SepaCountry string `json:"sepa_country,omitempty"`
// SEPA External Purpose indicator
SepaEp string `json:"sepa_ep,omitempty"`
// SEPA Creditor Identifier
SepaCi string `json:"sepa_ci,omitempty"`
// SEPA Batch ID
SepaBatchId string `json:"sepa_batch_id,omitempty"`
InterestDate time.Time `json:"interest_date,omitempty"`
BookDate time.Time `json:"book_date,omitempty"`
ProcessDate time.Time `json:"process_date,omitempty"`
DueDate time.Time `json:"due_date,omitempty"`
PaymentDate time.Time `json:"payment_date,omitempty"`
InvoiceDate time.Time `json:"invoice_date,omitempty"`
}