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
  • Field Details

  • Constructor Details

    • MoneyMovement

      public MoneyMovement()
  • Method Details

    • id

      public MoneyMovement id(@Nonnull UUID id)
    • getId

      @Nonnull public UUID getId()
      Get id
      Returns:
      id
    • setId

      public void setId(@Nonnull UUID id)
    • month

      public MoneyMovement month(@Nullable LocalDate month)
    • getMonth

      @Nullable public LocalDate getMonth()
      The month of the money movement in ISO format (e.g. 2024-01-01)
      Returns:
      month
    • setMonth

      public void setMonth(@Nullable LocalDate month)
    • movedAt

      public MoneyMovement movedAt(@Nullable OffsetDateTime movedAt)
    • getMovedAt

      @Nullable public OffsetDateTime 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

      public void setMovedAt(@Nullable OffsetDateTime movedAt)
    • note

      public MoneyMovement note(@Nullable String note)
    • getNote

      @Nullable public String getNote()
      Get note
      Returns:
      note
    • setNote

      public void setNote(@Nullable String note)
    • moneyMovementGroupId

      public MoneyMovement moneyMovementGroupId(@Nullable UUID moneyMovementGroupId)
    • getMoneyMovementGroupId

      @Nullable public UUID getMoneyMovementGroupId()
      The id of the money movement group this movement belongs to
      Returns:
      moneyMovementGroupId
    • setMoneyMovementGroupId

      public void setMoneyMovementGroupId(@Nullable UUID moneyMovementGroupId)
    • performedByUserId

      public MoneyMovement performedByUserId(@Nullable UUID performedByUserId)
    • getPerformedByUserId

      @Nullable public UUID getPerformedByUserId()
      The id of the user who performed the money movement
      Returns:
      performedByUserId
    • setPerformedByUserId

      public void setPerformedByUserId(@Nullable UUID performedByUserId)
    • fromCategoryId

      public MoneyMovement fromCategoryId(@Nullable UUID fromCategoryId)
    • getFromCategoryId

      @Nullable public UUID getFromCategoryId()
      The id of the category the money was moved from
      Returns:
      fromCategoryId
    • setFromCategoryId

      public void setFromCategoryId(@Nullable UUID fromCategoryId)
    • toCategoryId

      public MoneyMovement toCategoryId(@Nullable UUID toCategoryId)
    • getToCategoryId

      @Nullable public UUID getToCategoryId()
      The id of the category the money was moved to
      Returns:
      toCategoryId
    • setToCategoryId

      public void setToCategoryId(@Nullable UUID toCategoryId)
    • amount

      public MoneyMovement amount(@Nonnull Long amount)
    • getAmount

      @Nonnull public Long getAmount()
      The amount of the money movement in milliunits format
      Returns:
      amount
    • setAmount

      public void setAmount(@Nonnull Long amount)
    • amountFormatted

      public MoneyMovement amountFormatted(@Nullable String amountFormatted)
    • getAmountFormatted

      @Nullable public String getAmountFormatted()
      The money movement amount formatted in the plan's currency format
      Returns:
      amountFormatted
    • setAmountFormatted

      public void setAmountFormatted(@Nullable String amountFormatted)
    • amountCurrency

      public MoneyMovement amountCurrency(@Nullable Double amountCurrency)
    • getAmountCurrency

      @Nullable public Double getAmountCurrency()
      The money movement amount as a decimal currency amount
      Returns:
      amountCurrency
    • setAmountCurrency

      public void setAmountCurrency(@Nullable Double amountCurrency)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      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

      public static MoneyMovement fromJson(String jsonString) throws IOException
      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

      public String toJson()
      Convert an instance of MoneyMovement to an JSON string
      Returns:
      JSON string