Package cm.xd.genapi.ynab.model
Class TransactionSummaryBase
java.lang.Object
cm.xd.genapi.ynab.model.TransactionSummaryBase
@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 TransactionSummaryBase
extends Object
TransactionSummaryBase
-
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 String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncategoryId(UUID categoryId) cleared(TransactionClearedStatus cleared) debtTransactionType(TransactionSummaryBase.DebtTransactionTypeEnum debtTransactionType) booleanflagColor(TransactionFlagColor flagColor) static TransactionSummaryBaseCreate an instance of TransactionSummaryBase given an JSON stringGet accountIdThe transaction amount in milliunits formatWhether or not the transaction is approvedGet categoryIdGet 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 payeeIdIf 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) voidvoidsetApproved(Boolean approved) voidsetCategoryId(UUID categoryId) voidsetCleared(TransactionClearedStatus cleared) voidvoidsetDebtTransactionType(TransactionSummaryBase.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) voidsetTransferAccountId(UUID transferAccountId) voidsetTransferTransactionId(String transferTransactionId) toJson()Convert an instance of TransactionSummaryBase 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:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
TransactionSummaryBase
public TransactionSummaryBase()
-
-
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 TransactionSummaryBase debtTransactionType(@Nullable TransactionSummaryBase.DebtTransactionTypeEnum debtTransactionType) -
getDebtTransactionType
If the transaction is a debt/loan account transaction, the type of transaction- Returns:
- debtTransactionType
-
setDebtTransactionType
public void setDebtTransactionType(@Nullable TransactionSummaryBase.DebtTransactionTypeEnum debtTransactionType) -
deleted
-
getDeleted
Whether or not the transaction has been deleted. Deleted transactions will only be included in delta requests.- Returns:
- deleted
-
setDeleted
-
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 TransactionSummaryBase
-
fromJson
Create an instance of TransactionSummaryBase given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of TransactionSummaryBase
- Throws:
IOException- if the JSON string is invalid with respect to TransactionSummaryBase
-
toJson
Convert an instance of TransactionSummaryBase to an JSON string- Returns:
- JSON string
-