Package cm.xd.genapi.ynab.model
Class SaveTransactionWithIdOrImportId
java.lang.Object
cm.xd.genapi.ynab.model.SaveTransactionWithIdOrImportId
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2026-04-26T18:05:30.720340+02:00[Europe/Stockholm]",
comments="Generator version: 7.21.0")
public class SaveTransactionWithIdOrImportId
extends Object
SaveTransactionWithIdOrImportId
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddSubtransactionsItem(SaveSubTransaction subtransactionsItem) categoryId(UUID categoryId) cleared(TransactionClearedStatus cleared) booleanflagColor(TransactionFlagColor flagColor) Create an instance of SaveTransactionWithIdOrImportId given an JSON stringGet accountIdThe transaction amount in milliunits format.Whether or not the transaction is approved.The category for the transaction.Get clearedgetDate()The transaction date in ISO format (e.g.Get flagColorgetId()If specified, this id will be used to lookup a transaction by its `id` for the purpose of updating the transaction itself.If specified, this id will be used to lookup a transaction by its `import_id` for the purpose of updating the transaction itself.getMemo()Get memoThe payee for the transaction.The payee name.An array of subtransactions to configure a transaction as a split.inthashCode()voidsetAccountId(UUID accountId) voidvoidsetApproved(Boolean approved) voidsetCategoryId(UUID categoryId) voidsetCleared(TransactionClearedStatus cleared) voidvoidsetFlagColor(TransactionFlagColor flagColor) voidvoidsetImportId(String importId) voidvoidsetPayeeId(UUID payeeId) voidsetPayeeName(String payeeName) voidsetSubtransactions(List<SaveSubTransaction> subtransactions) subtransactions(List<SaveSubTransaction> subtransactions) toJson()Convert an instance of SaveTransactionWithIdOrImportId to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_ACCOUNT_ID
- See Also:
-
SERIALIZED_NAME_DATE
- See Also:
-
SERIALIZED_NAME_AMOUNT
- See Also:
-
SERIALIZED_NAME_PAYEE_ID
- See Also:
-
SERIALIZED_NAME_PAYEE_NAME
- See Also:
-
SERIALIZED_NAME_CATEGORY_ID
- 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_SUBTRANSACTIONS
- See Also:
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_IMPORT_ID
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
SaveTransactionWithIdOrImportId
public SaveTransactionWithIdOrImportId()
-
-
Method Details
-
accountId
-
getAccountId
Get accountId- Returns:
- accountId
-
setAccountId
-
date
-
getDate
The transaction date in ISO format (e.g. 2016-12-01). Future dates (scheduled transactions) are not permitted. Split transaction dates cannot be changed and if a different date is supplied it will be ignored.- Returns:
- date
-
setDate
-
amount
-
getAmount
The transaction amount in milliunits format. Split transaction amounts cannot be changed and if a different amount is supplied it will be ignored.- Returns:
- amount
-
setAmount
-
payeeId
-
getPayeeId
The payee for the transaction. To create a transfer between two accounts, use the account transfer payee pointing to the target account. Account transfer payees are specified as `transfer_payee_id` on the account resource.- Returns:
- payeeId
-
setPayeeId
-
payeeName
-
getPayeeName
The payee name. If a `payee_name` value is provided and `payee_id` has a null value, the `payee_name` value will be used to resolve the payee by either (1) a matching payee rename rule (only if `import_id` is also specified) or (2) a payee with the same name or (3) creation of a new payee.- Returns:
- payeeName
-
setPayeeName
-
categoryId
-
getCategoryId
The category for the transaction. To configure a split transaction, you can specify null for `category_id` and provide a `subtransactions` array as part of the transaction object. If an existing transaction is a split, the `category_id` cannot be changed. Credit Card Payment categories are not permitted and will be ignored if supplied.- Returns:
- categoryId
-
setCategoryId
-
memo
-
getMemo
Get memo- Returns:
- memo
-
setMemo
-
cleared
-
getCleared
Get cleared- Returns:
- cleared
-
setCleared
-
approved
-
getApproved
Whether or not the transaction is approved. If not supplied, transaction will be unapproved by default.- Returns:
- approved
-
setApproved
-
flagColor
-
getFlagColor
Get flagColor- Returns:
- flagColor
-
setFlagColor
-
subtransactions
public SaveTransactionWithIdOrImportId subtransactions(@Nullable List<SaveSubTransaction> subtransactions) -
addSubtransactionsItem
public SaveTransactionWithIdOrImportId addSubtransactionsItem(SaveSubTransaction subtransactionsItem) -
getSubtransactions
An array of subtransactions to configure a transaction as a split. Updating `subtransactions` on an existing split transaction is not supported.- Returns:
- subtransactions
-
setSubtransactions
-
id
-
getId
If specified, this id will be used to lookup a transaction by its `id` for the purpose of updating the transaction itself. If not specified, an `import_id` should be supplied.- Returns:
- id
-
setId
-
importId
-
getImportId
If specified, this id will be used to lookup a transaction by its `import_id` for the purpose of updating the transaction itself. If not specified, an `id` should be supplied. You may not provide both an `id` and an `import_id` and updating an `import_id` on an existing transaction is not allowed.- Returns:
- importId
-
setImportId
-
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 SaveTransactionWithIdOrImportId
-
fromJson
Create an instance of SaveTransactionWithIdOrImportId given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of SaveTransactionWithIdOrImportId
- Throws:
IOException- if the JSON string is invalid with respect to SaveTransactionWithIdOrImportId
-
toJson
Convert an instance of SaveTransactionWithIdOrImportId to an JSON string- Returns:
- JSON string
-