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

  • Constructor Details

    • SubTransactionBase

      public SubTransactionBase()
  • Method Details

    • id

      public SubTransactionBase id(@Nonnull String id)
    • getId

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

      public void setId(@Nonnull String id)
    • transactionId

      public SubTransactionBase transactionId(@Nonnull String transactionId)
    • getTransactionId

      @Nonnull public String getTransactionId()
      Get transactionId
      Returns:
      transactionId
    • setTransactionId

      public void setTransactionId(@Nonnull String transactionId)
    • amount

      public SubTransactionBase amount(@Nonnull Long amount)
    • getAmount

      @Nonnull public Long getAmount()
      The subtransaction amount in milliunits format
      Returns:
      amount
    • setAmount

      public void setAmount(@Nonnull Long amount)
    • memo

      public SubTransactionBase memo(@Nullable String memo)
    • getMemo

      @Nullable public String getMemo()
      Get memo
      Returns:
      memo
    • setMemo

      public void setMemo(@Nullable String memo)
    • payeeId

      public SubTransactionBase payeeId(@Nullable UUID payeeId)
    • getPayeeId

      @Nullable public UUID getPayeeId()
      Get payeeId
      Returns:
      payeeId
    • setPayeeId

      public void setPayeeId(@Nullable UUID payeeId)
    • payeeName

      public SubTransactionBase payeeName(@Nullable String payeeName)
    • getPayeeName

      @Nullable public String getPayeeName()
      Get payeeName
      Returns:
      payeeName
    • setPayeeName

      public void setPayeeName(@Nullable String payeeName)
    • categoryId

      public SubTransactionBase categoryId(@Nullable UUID categoryId)
    • getCategoryId

      @Nullable public UUID getCategoryId()
      Get categoryId
      Returns:
      categoryId
    • setCategoryId

      public void setCategoryId(@Nullable UUID categoryId)
    • categoryName

      public SubTransactionBase categoryName(@Nullable String categoryName)
    • getCategoryName

      @Nullable public String getCategoryName()
      Get categoryName
      Returns:
      categoryName
    • setCategoryName

      public void setCategoryName(@Nullable String categoryName)
    • transferAccountId

      public SubTransactionBase transferAccountId(@Nullable UUID transferAccountId)
    • getTransferAccountId

      @Nullable public UUID getTransferAccountId()
      If a transfer, the account_id which the subtransaction transfers to
      Returns:
      transferAccountId
    • setTransferAccountId

      public void setTransferAccountId(@Nullable UUID transferAccountId)
    • transferTransactionId

      public SubTransactionBase transferTransactionId(@Nullable String transferTransactionId)
    • getTransferTransactionId

      @Nullable public String getTransferTransactionId()
      If a transfer, the id of transaction on the other side of the transfer
      Returns:
      transferTransactionId
    • setTransferTransactionId

      public void setTransferTransactionId(@Nullable String transferTransactionId)
    • deleted

      public SubTransactionBase deleted(@Nonnull Boolean deleted)
    • getDeleted

      @Nonnull public Boolean getDeleted()
      Whether or not the subtransaction has been deleted. Deleted subtransactions will only be included in delta requests.
      Returns:
      deleted
    • setDeleted

      public void setDeleted(@Nonnull Boolean deleted)
    • 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 SubTransactionBase
    • fromJson

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

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