Package cm.xd.genapi.ynab.model
Class SaveSubTransaction
java.lang.Object
cm.xd.genapi.ynab.model.SaveSubTransaction
@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 SaveSubTransaction
extends Object
SaveSubTransaction
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncategoryId(UUID categoryId) booleanstatic SaveSubTransactionCreate an instance of SaveSubTransaction given an JSON stringThe subtransaction amount in milliunits format.The category for the subtransaction.getMemo()Get memoThe payee for the subtransaction.The payee name.inthashCode()voidvoidsetCategoryId(UUID categoryId) voidvoidsetPayeeId(UUID payeeId) voidsetPayeeName(String payeeName) toJson()Convert an instance of SaveSubTransaction 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_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:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
SaveSubTransaction
public SaveSubTransaction()
-
-
Method Details
-
amount
-
getAmount
The subtransaction amount in milliunits format.- Returns:
- amount
-
setAmount
-
payeeId
-
getPayeeId
The payee for the subtransaction.- 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 on parent transaction) or (2) a payee with the same name or (3) creation of a new payee.- Returns:
- payeeName
-
setPayeeName
-
categoryId
-
getCategoryId
The category for the subtransaction. Credit Card Payment categories are not permitted and will be ignored if supplied.- Returns:
- categoryId
-
setCategoryId
-
memo
-
getMemo
Get memo- Returns:
- memo
-
setMemo
-
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 SaveSubTransaction
-
fromJson
Create an instance of SaveSubTransaction given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of SaveSubTransaction
- Throws:
IOException- if the JSON string is invalid with respect to SaveSubTransaction
-
toJson
Convert an instance of SaveSubTransaction to an JSON string- Returns:
- JSON string
-