Package cm.xd.genapi.ynab.model
Class MoneyMovement
java.lang.Object
cm.xd.genapi.ynab.model.MoneyMovement
@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 MoneyMovement
extends Object
MoneyMovement
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionamountCurrency(Double amountCurrency) amountFormatted(String amountFormatted) booleanfromCategoryId(UUID fromCategoryId) static MoneyMovementCreate an instance of MoneyMovement given an JSON stringThe amount of the money movement in milliunits formatThe money movement amount as a decimal currency amountThe money movement amount formatted in the plan's currency formatThe id of the category the money was moved fromgetId()Get idThe id of the money movement group this movement belongs togetMonth()The month of the money movement in ISO format (e.g.The date/time the money movement was processed on the server in ISO format (e.g.getNote()Get noteThe id of the user who performed the money movementThe id of the category the money was moved tointhashCode()moneyMovementGroupId(UUID moneyMovementGroupId) movedAt(OffsetDateTime movedAt) performedByUserId(UUID performedByUserId) voidvoidsetAmountCurrency(Double amountCurrency) voidsetAmountFormatted(String amountFormatted) voidsetFromCategoryId(UUID fromCategoryId) voidvoidsetMoneyMovementGroupId(UUID moneyMovementGroupId) voidvoidsetMovedAt(OffsetDateTime movedAt) voidvoidsetPerformedByUserId(UUID performedByUserId) voidsetToCategoryId(UUID toCategoryId) toCategoryId(UUID toCategoryId) toJson()Convert an instance of MoneyMovement 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_ID
- See Also:
-
SERIALIZED_NAME_MONTH
- See Also:
-
SERIALIZED_NAME_MOVED_AT
- See Also:
-
SERIALIZED_NAME_NOTE
- See Also:
-
SERIALIZED_NAME_MONEY_MOVEMENT_GROUP_ID
- See Also:
-
SERIALIZED_NAME_PERFORMED_BY_USER_ID
- See Also:
-
SERIALIZED_NAME_FROM_CATEGORY_ID
- See Also:
-
SERIALIZED_NAME_TO_CATEGORY_ID
- See Also:
-
SERIALIZED_NAME_AMOUNT
- See Also:
-
SERIALIZED_NAME_AMOUNT_FORMATTED
- See Also:
-
SERIALIZED_NAME_AMOUNT_CURRENCY
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
MoneyMovement
public MoneyMovement()
-
-
Method Details
-
id
-
getId
Get id- Returns:
- id
-
setId
-
month
-
getMonth
The month of the money movement in ISO format (e.g. 2024-01-01)- Returns:
- month
-
setMonth
-
movedAt
-
getMovedAt
The date/time the money movement was processed on the server in ISO format (e.g. 2024-01-01T12:00:00Z)- Returns:
- movedAt
-
setMovedAt
-
note
-
getNote
Get note- Returns:
- note
-
setNote
-
moneyMovementGroupId
-
getMoneyMovementGroupId
The id of the money movement group this movement belongs to- Returns:
- moneyMovementGroupId
-
setMoneyMovementGroupId
-
performedByUserId
-
getPerformedByUserId
The id of the user who performed the money movement- Returns:
- performedByUserId
-
setPerformedByUserId
-
fromCategoryId
-
getFromCategoryId
The id of the category the money was moved from- Returns:
- fromCategoryId
-
setFromCategoryId
-
toCategoryId
-
getToCategoryId
The id of the category the money was moved to- Returns:
- toCategoryId
-
setToCategoryId
-
amount
-
getAmount
The amount of the money movement in milliunits format- Returns:
- amount
-
setAmount
-
amountFormatted
-
getAmountFormatted
The money movement amount formatted in the plan's currency format- Returns:
- amountFormatted
-
setAmountFormatted
-
amountCurrency
-
getAmountCurrency
The money movement 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 MoneyMovement
-
fromJson
Create an instance of MoneyMovement given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of MoneyMovement
- Throws:
IOException- if the JSON string is invalid with respect to MoneyMovement
-
toJson
Convert an instance of MoneyMovement to an JSON string- Returns:
- JSON string
-