Class SaveScheduledTransaction

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

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

  • Constructor Details

    • SaveScheduledTransaction

      public SaveScheduledTransaction()
  • Method Details

    • accountId

      public SaveScheduledTransaction accountId(@Nonnull UUID accountId)
    • getAccountId

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

      public void setAccountId(@Nonnull UUID accountId)
    • date

      public SaveScheduledTransaction date(@Nonnull LocalDate date)
    • getDate

      @Nonnull public LocalDate getDate()
      The scheduled transaction date in ISO format (e.g. 2016-12-01). This should be a future date no more than 5 years into the future.
      Returns:
      date
    • setDate

      public void setDate(@Nonnull LocalDate date)
    • amount

      public SaveScheduledTransaction amount(@Nullable Long amount)
    • getAmount

      @Nullable public Long getAmount()
      The scheduled transaction amount in milliunits format.
      Returns:
      amount
    • setAmount

      public void setAmount(@Nullable Long amount)
    • payeeId

      public SaveScheduledTransaction payeeId(@Nullable UUID payeeId)
    • getPayeeId

      @Nullable public UUID getPayeeId()
      The payee for the scheduled 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 SaveScheduledTransaction payeeName(@Nullable String payeeName)
    • getPayeeName

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

      public void setPayeeName(@Nullable String payeeName)
    • categoryId

      public SaveScheduledTransaction categoryId(@Nullable UUID categoryId)
    • getCategoryId

      @Nullable public UUID getCategoryId()
      The category for the scheduled transaction. Credit Card Payment categories are not permitted. Creating a split scheduled transaction is not currently supported.
      Returns:
      categoryId
    • setCategoryId

      public void setCategoryId(@Nullable UUID categoryId)
    • memo

      public SaveScheduledTransaction memo(@Nullable String memo)
    • getMemo

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

      public void setMemo(@Nullable String memo)
    • flagColor

      public SaveScheduledTransaction flagColor(@Nullable TransactionFlagColor flagColor)
    • getFlagColor

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

      public void setFlagColor(@Nullable TransactionFlagColor flagColor)
    • frequency

      public SaveScheduledTransaction frequency(@Nullable ScheduledTransactionFrequency frequency)
    • getFrequency

      @Nullable public ScheduledTransactionFrequency getFrequency()
      Get frequency
      Returns:
      frequency
    • setFrequency

      public void setFrequency(@Nullable ScheduledTransactionFrequency frequency)
    • 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 SaveScheduledTransaction
    • fromJson

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

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