Class SaveTransactionWithOptionalFields

java.lang.Object
cm.xd.genapi.ynab.model.SaveTransactionWithOptionalFields

@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 SaveTransactionWithOptionalFields extends Object
SaveTransactionWithOptionalFields
  • Field Details

  • Constructor Details

    • SaveTransactionWithOptionalFields

      public SaveTransactionWithOptionalFields()
  • Method Details

    • accountId

      public SaveTransactionWithOptionalFields accountId(@Nullable UUID accountId)
    • getAccountId

      @Nullable public UUID getAccountId()
      Get accountId
      Returns:
      accountId
    • setAccountId

      public void setAccountId(@Nullable UUID accountId)
    • date

      public SaveTransactionWithOptionalFields date(@Nullable LocalDate date)
    • getDate

      @Nullable public LocalDate getDate()
      The transaction date in ISO format (e.g. 2016-12-01). Future dates (scheduled transactions) are not permitted. Split transaction dates cannot be changed and if a different date is supplied it will be ignored.
      Returns:
      date
    • setDate

      public void setDate(@Nullable LocalDate date)
    • amount

      public SaveTransactionWithOptionalFields amount(@Nullable Long amount)
    • getAmount

      @Nullable public Long getAmount()
      The transaction amount in milliunits format. Split transaction amounts cannot be changed and if a different amount is supplied it will be ignored.
      Returns:
      amount
    • setAmount

      public void setAmount(@Nullable Long amount)
    • payeeId

      public SaveTransactionWithOptionalFields payeeId(@Nullable UUID payeeId)
    • getPayeeId

      @Nullable public UUID getPayeeId()
      The payee for the transaction. To create a transfer between two accounts, use the account transfer payee pointing to the target account. Account transfer payees are specified as `transfer_payee_id` on the account resource.
      Returns:
      payeeId
    • setPayeeId

      public void setPayeeId(@Nullable UUID payeeId)
    • payeeName

      public SaveTransactionWithOptionalFields payeeName(@Nullable String payeeName)
    • getPayeeName

      @Nullable public String 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) or (2) a payee with the same name or (3) creation of a new payee.
      Returns:
      payeeName
    • setPayeeName

      public void setPayeeName(@Nullable String payeeName)
    • categoryId

      public SaveTransactionWithOptionalFields categoryId(@Nullable UUID categoryId)
    • getCategoryId

      @Nullable public UUID getCategoryId()
      The category for the transaction. To configure a split transaction, you can specify null for `category_id` and provide a `subtransactions` array as part of the transaction object. If an existing transaction is a split, the `category_id` cannot be changed. Credit Card Payment categories are not permitted and will be ignored if supplied.
      Returns:
      categoryId
    • setCategoryId

      public void setCategoryId(@Nullable UUID categoryId)
    • memo

      public SaveTransactionWithOptionalFields memo(@Nullable String memo)
    • getMemo

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

      public void setMemo(@Nullable String memo)
    • cleared

      public SaveTransactionWithOptionalFields cleared(@Nullable TransactionClearedStatus cleared)
    • getCleared

      @Nullable public TransactionClearedStatus getCleared()
      Get cleared
      Returns:
      cleared
    • setCleared

      public void setCleared(@Nullable TransactionClearedStatus cleared)
    • approved

      public SaveTransactionWithOptionalFields approved(@Nullable Boolean approved)
    • getApproved

      @Nullable public Boolean getApproved()
      Whether or not the transaction is approved. If not supplied, transaction will be unapproved by default.
      Returns:
      approved
    • setApproved

      public void setApproved(@Nullable Boolean approved)
    • flagColor

      public SaveTransactionWithOptionalFields flagColor(@Nullable TransactionFlagColor flagColor)
    • getFlagColor

      @Nullable public TransactionFlagColor getFlagColor()
      Get flagColor
      Returns:
      flagColor
    • setFlagColor

      public void setFlagColor(@Nullable TransactionFlagColor flagColor)
    • subtransactions

      public SaveTransactionWithOptionalFields subtransactions(@Nullable List<SaveSubTransaction> subtransactions)
    • addSubtransactionsItem

      public SaveTransactionWithOptionalFields addSubtransactionsItem(SaveSubTransaction subtransactionsItem)
    • getSubtransactions

      @Nullable public List<SaveSubTransaction> getSubtransactions()
      An array of subtransactions to configure a transaction as a split. Updating `subtransactions` on an existing split transaction is not supported.
      Returns:
      subtransactions
    • setSubtransactions

      public void setSubtransactions(@Nullable List<SaveSubTransaction> subtransactions)
    • 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 SaveTransactionWithOptionalFields
    • fromJson

      public static SaveTransactionWithOptionalFields fromJson(String jsonString) throws IOException
      Create an instance of SaveTransactionWithOptionalFields given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of SaveTransactionWithOptionalFields
      Throws:
      IOException - if the JSON string is invalid with respect to SaveTransactionWithOptionalFields
    • toJson

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