Package cm.xd.genapi.ynab.model
Class TransactionDetail
java.lang.Object
cm.xd.genapi.ynab.model.TransactionDetail
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2026-04-13T16:11:17.024752+02:00[Europe/Stockholm]",
comments="Generator version: 7.21.0")
public class TransactionDetail
extends Object
TransactionDetail
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumIf the transaction is a debt/loan account transaction, the type of transaction -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccountName(String accountName) addSubtransactionsItem(SubTransaction subtransactionsItem) amountCurrency(Double amountCurrency) amountFormatted(String amountFormatted) categoryId(UUID categoryId) categoryName(String categoryName) cleared(TransactionClearedStatus cleared) debtTransactionType(TransactionDetail.DebtTransactionTypeEnum debtTransactionType) booleanflagColor(TransactionFlagColor flagColor) static TransactionDetailCreate an instance of TransactionDetail given an JSON stringGet accountIdGet accountNameThe transaction amount in milliunits formatThe transaction amount as a decimal currency amountThe transaction amount formatted in the plan's currency formatWhether or not the transaction is approvedGet categoryIdThe name of the category.Get clearedgetDate()The transaction date in ISO format (e.g.If the transaction is a debt/loan account transaction, the type of transactionWhether or not the transaction has been deleted.Get flagColorThe customized name of a transaction flaggetId()Get idIf the transaction was imported, this field is a unique (by account) import identifier.If the transaction was imported, the payee name that was used when importing and before applying any payee rename rulesIf the transaction was imported, the original payee name as it appeared on the statementIf transaction is matched, the id of the matched transactiongetMemo()Get memoGet payeeIdGet payeeNameIf a split transaction, the subtransactions.If a transfer transaction, the account to which it transfersIf a transfer transaction, the id of transaction on the other side of the transferinthashCode()importPayeeName(String importPayeeName) importPayeeNameOriginal(String importPayeeNameOriginal) matchedTransactionId(String matchedTransactionId) voidsetAccountId(UUID accountId) voidsetAccountName(String accountName) voidvoidsetAmountCurrency(Double amountCurrency) voidsetAmountFormatted(String amountFormatted) voidsetApproved(Boolean approved) voidsetCategoryId(UUID categoryId) voidsetCategoryName(String categoryName) voidsetCleared(TransactionClearedStatus cleared) voidvoidsetDebtTransactionType(TransactionDetail.DebtTransactionTypeEnum debtTransactionType) voidsetDeleted(Boolean deleted) voidsetFlagColor(TransactionFlagColor flagColor) voidsetFlagName(String flagName) voidvoidsetImportId(String importId) voidsetImportPayeeName(String importPayeeName) voidsetImportPayeeNameOriginal(String importPayeeNameOriginal) voidsetMatchedTransactionId(String matchedTransactionId) voidvoidsetPayeeId(UUID payeeId) voidsetPayeeName(String payeeName) voidsetSubtransactions(List<SubTransaction> subtransactions) voidsetTransferAccountId(UUID transferAccountId) voidsetTransferTransactionId(String transferTransactionId) subtransactions(List<SubTransaction> subtransactions) toJson()Convert an instance of TransactionDetail to an JSON stringtoString()transferAccountId(UUID transferAccountId) transferTransactionId(String transferTransactionId) static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_DATE
- See Also:
-
SERIALIZED_NAME_AMOUNT
- See Also:
-
SERIALIZED_NAME_MEMO
- See Also:
-
SERIALIZED_NAME_CLEARED
- See Also:
-
SERIALIZED_NAME_APPROVED
- See Also:
-
SERIALIZED_NAME_FLAG_COLOR
- See Also:
-
SERIALIZED_NAME_FLAG_NAME
- See Also:
-
SERIALIZED_NAME_ACCOUNT_ID
- See Also:
-
SERIALIZED_NAME_PAYEE_ID
- See Also:
-
SERIALIZED_NAME_CATEGORY_ID
- See Also:
-
SERIALIZED_NAME_TRANSFER_ACCOUNT_ID
- See Also:
-
SERIALIZED_NAME_TRANSFER_TRANSACTION_ID
- See Also:
-
SERIALIZED_NAME_MATCHED_TRANSACTION_ID
- See Also:
-
SERIALIZED_NAME_IMPORT_ID
- See Also:
-
SERIALIZED_NAME_IMPORT_PAYEE_NAME
- See Also:
-
SERIALIZED_NAME_IMPORT_PAYEE_NAME_ORIGINAL
- See Also:
-
SERIALIZED_NAME_DEBT_TRANSACTION_TYPE
- See Also:
-
SERIALIZED_NAME_DELETED
- See Also:
-
SERIALIZED_NAME_AMOUNT_FORMATTED
- See Also:
-
SERIALIZED_NAME_AMOUNT_CURRENCY
- See Also:
-
SERIALIZED_NAME_ACCOUNT_NAME
- See Also:
-
SERIALIZED_NAME_PAYEE_NAME
- See Also:
-
SERIALIZED_NAME_CATEGORY_NAME
- See Also:
-
SERIALIZED_NAME_SUBTRANSACTIONS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
TransactionDetail
public TransactionDetail()
-
-
Method Details
-
id
-
getId
Get id- Returns:
- id
-
setId
-
date
-
getDate
The transaction date in ISO format (e.g. 2016-12-01)- Returns:
- date
-
setDate
-
amount
-
getAmount
The transaction amount in milliunits format- Returns:
- amount
-
setAmount
-
memo
-
getMemo
Get memo- Returns:
- memo
-
setMemo
-
cleared
-
getCleared
Get cleared- Returns:
- cleared
-
setCleared
-
approved
-
getApproved
Whether or not the transaction is approved- Returns:
- approved
-
setApproved
-
flagColor
-
getFlagColor
Get flagColor- Returns:
- flagColor
-
setFlagColor
-
flagName
-
getFlagName
The customized name of a transaction flag- Returns:
- flagName
-
setFlagName
-
accountId
-
getAccountId
Get accountId- Returns:
- accountId
-
setAccountId
-
payeeId
-
getPayeeId
Get payeeId- Returns:
- payeeId
-
setPayeeId
-
categoryId
-
getCategoryId
Get categoryId- Returns:
- categoryId
-
setCategoryId
-
transferAccountId
-
getTransferAccountId
If a transfer transaction, the account to which it transfers- Returns:
- transferAccountId
-
setTransferAccountId
-
transferTransactionId
-
getTransferTransactionId
If a transfer transaction, the id of transaction on the other side of the transfer- Returns:
- transferTransactionId
-
setTransferTransactionId
-
matchedTransactionId
-
getMatchedTransactionId
If transaction is matched, the id of the matched transaction- Returns:
- matchedTransactionId
-
setMatchedTransactionId
-
importId
-
getImportId
If the transaction was imported, this field is a unique (by account) import identifier. If this transaction was imported through File Based Import or Direct Import and not through the API, the import_id will have the format: 'YNAB:[milliunit_amount]:[iso_date]:[occurrence]'. For example, a transaction dated 2015-12-30 in the amount of -$294.23 USD would have an import_id of 'YNAB:-294230:2015-12-30:1'. If a second transaction on the same account was imported and had the same date and same amount, its import_id would be 'YNAB:-294230:2015-12-30:2'.- Returns:
- importId
-
setImportId
-
importPayeeName
-
getImportPayeeName
If the transaction was imported, the payee name that was used when importing and before applying any payee rename rules- Returns:
- importPayeeName
-
setImportPayeeName
-
importPayeeNameOriginal
-
getImportPayeeNameOriginal
If the transaction was imported, the original payee name as it appeared on the statement- Returns:
- importPayeeNameOriginal
-
setImportPayeeNameOriginal
-
debtTransactionType
public TransactionDetail debtTransactionType(@Nullable TransactionDetail.DebtTransactionTypeEnum debtTransactionType) -
getDebtTransactionType
If the transaction is a debt/loan account transaction, the type of transaction- Returns:
- debtTransactionType
-
setDebtTransactionType
public void setDebtTransactionType(@Nullable TransactionDetail.DebtTransactionTypeEnum debtTransactionType) -
deleted
-
getDeleted
Whether or not the transaction has been deleted. Deleted transactions will only be included in delta requests.- Returns:
- deleted
-
setDeleted
-
amountFormatted
-
getAmountFormatted
The transaction amount formatted in the plan's currency format- Returns:
- amountFormatted
-
setAmountFormatted
-
amountCurrency
-
getAmountCurrency
The transaction amount as a decimal currency amount- Returns:
- amountCurrency
-
setAmountCurrency
-
accountName
-
getAccountName
Get accountName- Returns:
- accountName
-
setAccountName
-
payeeName
-
getPayeeName
Get payeeName- Returns:
- payeeName
-
setPayeeName
-
categoryName
-
getCategoryName
The name of the category. If a split transaction, this will be 'Split'.- Returns:
- categoryName
-
setCategoryName
-
subtransactions
-
addSubtransactionsItem
-
getSubtransactions
If a split transaction, the subtransactions.- Returns:
- subtransactions
-
setSubtransactions
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to TransactionDetail
-
fromJson
Create an instance of TransactionDetail given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of TransactionDetail
- Throws:
IOException- if the JSON string is invalid with respect to TransactionDetail
-
toJson
Convert an instance of TransactionDetail to an JSON string- Returns:
- JSON string
-