Package cm.xd.genapi.ynab.model
Class SubTransaction
java.lang.Object
cm.xd.genapi.ynab.model.SubTransaction
@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 SubTransaction
extends Object
SubTransaction
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionamountCurrency(Double amountCurrency) amountFormatted(String amountFormatted) categoryId(UUID categoryId) categoryName(String categoryName) booleanstatic SubTransactionCreate an instance of SubTransaction given an JSON stringThe subtransaction amount in milliunits formatThe subtransaction amount as a decimal currency amountThe subtransaction amount formatted in the plan's currency 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()voidvoidsetAmountCurrency(Double amountCurrency) voidsetAmountFormatted(String amountFormatted) voidsetCategoryId(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 SubTransaction 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:
-
SERIALIZED_NAME_AMOUNT_FORMATTED
- See Also:
-
SERIALIZED_NAME_AMOUNT_CURRENCY
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
SubTransaction
public SubTransaction()
-
-
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
-
amountFormatted
-
getAmountFormatted
The subtransaction amount formatted in the plan's currency format- Returns:
- amountFormatted
-
setAmountFormatted
-
amountCurrency
-
getAmountCurrency
The subtransaction amount as a decimal currency amount- Returns:
- amountCurrency
-
setAmountCurrency
-
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 SubTransaction
-
fromJson
Create an instance of SubTransaction given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of SubTransaction
- Throws:
IOException- if the JSON string is invalid with respect to SubTransaction
-
toJson
Convert an instance of SubTransaction to an JSON string- Returns:
- JSON string
-