Package cm.xd.genapi.ynab.model
Class SubTransactionBase
java.lang.Object
cm.xd.genapi.ynab.model.SubTransactionBase
@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 SubTransactionBase
extends Object
SubTransactionBase
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncategoryId(UUID categoryId) categoryName(String categoryName) booleanstatic SubTransactionBaseCreate an instance of SubTransactionBase given an JSON stringThe subtransaction amount in milliunits formatGet categoryIdGet categoryNameWhether or not the subtransaction has been deleted.getId()Get idgetMemo()Get memoGet payeeIdGet payeeNameGet transactionIdIf a transfer, the account_id which the subtransaction transfers toIf a transfer, the id of transaction on the other side of the transferinthashCode()voidvoidsetCategoryId(UUID categoryId) voidsetCategoryName(String categoryName) voidsetDeleted(Boolean deleted) voidvoidvoidsetPayeeId(UUID payeeId) voidsetPayeeName(String payeeName) voidsetTransactionId(String transactionId) voidsetTransferAccountId(UUID transferAccountId) voidsetTransferTransactionId(String transferTransactionId) toJson()Convert an instance of SubTransactionBase to an JSON stringtoString()transactionId(String transactionId) 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_TRANSACTION_ID
- See Also:
-
SERIALIZED_NAME_AMOUNT
- See Also:
-
SERIALIZED_NAME_MEMO
- See Also:
-
SERIALIZED_NAME_PAYEE_ID
- See Also:
-
SERIALIZED_NAME_PAYEE_NAME
- See Also:
-
SERIALIZED_NAME_CATEGORY_ID
- See Also:
-
SERIALIZED_NAME_CATEGORY_NAME
- See Also:
-
SERIALIZED_NAME_TRANSFER_ACCOUNT_ID
- See Also:
-
SERIALIZED_NAME_TRANSFER_TRANSACTION_ID
- See Also:
-
SERIALIZED_NAME_DELETED
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
SubTransactionBase
public SubTransactionBase()
-
-
Method Details
-
id
-
getId
Get id- Returns:
- id
-
setId
-
transactionId
-
getTransactionId
Get transactionId- Returns:
- transactionId
-
setTransactionId
-
amount
-
getAmount
The subtransaction amount in milliunits format- Returns:
- amount
-
setAmount
-
memo
-
getMemo
Get memo- Returns:
- memo
-
setMemo
-
payeeId
-
getPayeeId
Get payeeId- Returns:
- payeeId
-
setPayeeId
-
payeeName
-
getPayeeName
Get payeeName- Returns:
- payeeName
-
setPayeeName
-
categoryId
-
getCategoryId
Get categoryId- Returns:
- categoryId
-
setCategoryId
-
categoryName
-
getCategoryName
Get categoryName- Returns:
- categoryName
-
setCategoryName
-
transferAccountId
-
getTransferAccountId
If a transfer, the account_id which the subtransaction transfers to- Returns:
- transferAccountId
-
setTransferAccountId
-
transferTransactionId
-
getTransferTransactionId
If a transfer, the id of transaction on the other side of the transfer- Returns:
- transferTransactionId
-
setTransferTransactionId
-
deleted
-
getDeleted
Whether or not the subtransaction has been deleted. Deleted subtransactions 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 SubTransactionBase
-
fromJson
Create an instance of SubTransactionBase given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of SubTransactionBase
- Throws:
IOException- if the JSON string is invalid with respect to SubTransactionBase
-
toJson
Convert an instance of SubTransactionBase to an JSON string- Returns:
- JSON string
-