Class PlanSummary

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

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

  • Constructor Details

    • PlanSummary

      public PlanSummary()
  • Method Details

    • id

      public PlanSummary id(@Nonnull UUID id)
    • getId

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

      public void setId(@Nonnull UUID id)
    • name

      public PlanSummary name(@Nonnull String name)
    • getName

      @Nonnull public String getName()
      Get name
      Returns:
      name
    • setName

      public void setName(@Nonnull String name)
    • lastModifiedOn

      public PlanSummary lastModifiedOn(@Nullable OffsetDateTime lastModifiedOn)
    • getLastModifiedOn

      @Nullable public OffsetDateTime getLastModifiedOn()
      The last time any changes were made to the plan from either a web or mobile client
      Returns:
      lastModifiedOn
    • setLastModifiedOn

      public void setLastModifiedOn(@Nullable OffsetDateTime lastModifiedOn)
    • firstMonth

      public PlanSummary firstMonth(@Nullable LocalDate firstMonth)
    • getFirstMonth

      @Nullable public LocalDate getFirstMonth()
      The earliest plan month
      Returns:
      firstMonth
    • setFirstMonth

      public void setFirstMonth(@Nullable LocalDate firstMonth)
    • lastMonth

      public PlanSummary lastMonth(@Nullable LocalDate lastMonth)
    • getLastMonth

      @Nullable public LocalDate getLastMonth()
      The latest plan month
      Returns:
      lastMonth
    • setLastMonth

      public void setLastMonth(@Nullable LocalDate lastMonth)
    • dateFormat

      public PlanSummary dateFormat(@Nullable DateFormat dateFormat)
    • getDateFormat

      @Nullable public DateFormat getDateFormat()
      Get dateFormat
      Returns:
      dateFormat
    • setDateFormat

      public void setDateFormat(@Nullable DateFormat dateFormat)
    • currencyFormat

      public PlanSummary currencyFormat(@Nullable CurrencyFormat currencyFormat)
    • getCurrencyFormat

      @Nullable public CurrencyFormat getCurrencyFormat()
      Get currencyFormat
      Returns:
      currencyFormat
    • setCurrencyFormat

      public void setCurrencyFormat(@Nullable CurrencyFormat currencyFormat)
    • accounts

      public PlanSummary accounts(@Nullable List<Account> accounts)
    • addAccountsItem

      public PlanSummary addAccountsItem(Account accountsItem)
    • getAccounts

      @Nullable public List<Account> getAccounts()
      The plan accounts (only included if `include_accounts=true` specified as query parameter)
      Returns:
      accounts
    • setAccounts

      public void setAccounts(@Nullable List<Account> accounts)
    • 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 PlanSummary
    • fromJson

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

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