Class Account

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

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

  • Constructor Details

    • Account

      public Account()
  • Method Details

    • id

      public Account id(@Nonnull UUID id)
    • getId

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

      public void setId(@Nonnull UUID id)
    • name

      public Account name(@Nonnull String name)
    • getName

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

      public void setName(@Nonnull String name)
    • type

      public Account type(@Nonnull AccountType type)
    • getType

      @Nonnull public AccountType getType()
      Get type
      Returns:
      type
    • setType

      public void setType(@Nonnull AccountType type)
    • onBudget

      public Account onBudget(@Nonnull Boolean onBudget)
    • getOnBudget

      @Nonnull public Boolean getOnBudget()
      Whether this account is \"on budget\" or not
      Returns:
      onBudget
    • setOnBudget

      public void setOnBudget(@Nonnull Boolean onBudget)
    • closed

      public Account closed(@Nonnull Boolean closed)
    • getClosed

      @Nonnull public Boolean getClosed()
      Whether this account is closed or not
      Returns:
      closed
    • setClosed

      public void setClosed(@Nonnull Boolean closed)
    • note

      public Account note(@Nullable String note)
    • getNote

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

      public void setNote(@Nullable String note)
    • balance

      public Account balance(@Nonnull Long balance)
    • getBalance

      @Nonnull public Long getBalance()
      The current available balance of the account in milliunits format
      Returns:
      balance
    • setBalance

      public void setBalance(@Nonnull Long balance)
    • clearedBalance

      public Account clearedBalance(@Nonnull Long clearedBalance)
    • getClearedBalance

      @Nonnull public Long getClearedBalance()
      The current cleared balance of the account in milliunits format
      Returns:
      clearedBalance
    • setClearedBalance

      public void setClearedBalance(@Nonnull Long clearedBalance)
    • unclearedBalance

      public Account unclearedBalance(@Nonnull Long unclearedBalance)
    • getUnclearedBalance

      @Nonnull public Long getUnclearedBalance()
      The current uncleared balance of the account in milliunits format
      Returns:
      unclearedBalance
    • setUnclearedBalance

      public void setUnclearedBalance(@Nonnull Long unclearedBalance)
    • transferPayeeId

      public Account transferPayeeId(@Nonnull UUID transferPayeeId)
    • getTransferPayeeId

      @Nonnull public UUID getTransferPayeeId()
      The payee id which should be used when transferring to this account
      Returns:
      transferPayeeId
    • setTransferPayeeId

      public void setTransferPayeeId(@Nonnull UUID transferPayeeId)
    • directImportLinked

      public Account directImportLinked(@Nullable Boolean directImportLinked)
    • getDirectImportLinked

      @Nullable public Boolean getDirectImportLinked()
      Whether or not the account is linked to a financial institution for automatic transaction import.
      Returns:
      directImportLinked
    • setDirectImportLinked

      public void setDirectImportLinked(@Nullable Boolean directImportLinked)
    • directImportInError

      public Account directImportInError(@Nullable Boolean directImportInError)
    • getDirectImportInError

      @Nullable public Boolean getDirectImportInError()
      If an account linked to a financial institution (direct_import_linked=true) and the linked connection is not in a healthy state, this will be true.
      Returns:
      directImportInError
    • setDirectImportInError

      public void setDirectImportInError(@Nullable Boolean directImportInError)
    • lastReconciledAt

      public Account lastReconciledAt(@Nullable OffsetDateTime lastReconciledAt)
    • getLastReconciledAt

      @Nullable public OffsetDateTime getLastReconciledAt()
      A date/time specifying when the account was last reconciled.
      Returns:
      lastReconciledAt
    • setLastReconciledAt

      public void setLastReconciledAt(@Nullable OffsetDateTime lastReconciledAt)
    • debtOriginalBalance

      public Account debtOriginalBalance(@Nullable Long debtOriginalBalance)
    • getDebtOriginalBalance

      @Nullable public Long getDebtOriginalBalance()
      This field is deprecated and will always be null.
      Returns:
      debtOriginalBalance
    • setDebtOriginalBalance

      public void setDebtOriginalBalance(@Nullable Long debtOriginalBalance)
    • debtInterestRates

      public Account debtInterestRates(@Nullable Map<String,Long> debtInterestRates)
    • putDebtInterestRatesItem

      public Account putDebtInterestRatesItem(String key, Long debtInterestRatesItem)
    • getDebtInterestRates

      @Nullable public Map<String,Long> getDebtInterestRates()
      Get debtInterestRates
      Returns:
      debtInterestRates
    • setDebtInterestRates

      public void setDebtInterestRates(@Nullable Map<String,Long> debtInterestRates)
    • debtMinimumPayments

      public Account debtMinimumPayments(@Nullable Map<String,Long> debtMinimumPayments)
    • putDebtMinimumPaymentsItem

      public Account putDebtMinimumPaymentsItem(String key, Long debtMinimumPaymentsItem)
    • getDebtMinimumPayments

      @Nullable public Map<String,Long> getDebtMinimumPayments()
      Get debtMinimumPayments
      Returns:
      debtMinimumPayments
    • setDebtMinimumPayments

      public void setDebtMinimumPayments(@Nullable Map<String,Long> debtMinimumPayments)
    • debtEscrowAmounts

      public Account debtEscrowAmounts(@Nullable Map<String,Long> debtEscrowAmounts)
    • putDebtEscrowAmountsItem

      public Account putDebtEscrowAmountsItem(String key, Long debtEscrowAmountsItem)
    • getDebtEscrowAmounts

      @Nullable public Map<String,Long> getDebtEscrowAmounts()
      Get debtEscrowAmounts
      Returns:
      debtEscrowAmounts
    • setDebtEscrowAmounts

      public void setDebtEscrowAmounts(@Nullable Map<String,Long> debtEscrowAmounts)
    • deleted

      public Account deleted(@Nonnull Boolean deleted)
    • getDeleted

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

      public void setDeleted(@Nonnull Boolean deleted)
    • balanceFormatted

      public Account balanceFormatted(@Nullable String balanceFormatted)
    • getBalanceFormatted

      @Nullable public String getBalanceFormatted()
      The current available balance of the account formatted in the plan's currency format
      Returns:
      balanceFormatted
    • setBalanceFormatted

      public void setBalanceFormatted(@Nullable String balanceFormatted)
    • balanceCurrency

      public Account balanceCurrency(@Nullable Double balanceCurrency)
    • getBalanceCurrency

      @Nullable public Double getBalanceCurrency()
      The current available balance of the account as a decimal currency amount
      Returns:
      balanceCurrency
    • setBalanceCurrency

      public void setBalanceCurrency(@Nullable Double balanceCurrency)
    • clearedBalanceFormatted

      public Account clearedBalanceFormatted(@Nullable String clearedBalanceFormatted)
    • getClearedBalanceFormatted

      @Nullable public String getClearedBalanceFormatted()
      The current cleared balance of the account formatted in the plan's currency format
      Returns:
      clearedBalanceFormatted
    • setClearedBalanceFormatted

      public void setClearedBalanceFormatted(@Nullable String clearedBalanceFormatted)
    • clearedBalanceCurrency

      public Account clearedBalanceCurrency(@Nullable Double clearedBalanceCurrency)
    • getClearedBalanceCurrency

      @Nullable public Double getClearedBalanceCurrency()
      The current cleared balance of the account as a decimal currency amount
      Returns:
      clearedBalanceCurrency
    • setClearedBalanceCurrency

      public void setClearedBalanceCurrency(@Nullable Double clearedBalanceCurrency)
    • unclearedBalanceFormatted

      public Account unclearedBalanceFormatted(@Nullable String unclearedBalanceFormatted)
    • getUnclearedBalanceFormatted

      @Nullable public String getUnclearedBalanceFormatted()
      The current uncleared balance of the account formatted in the plan's currency format
      Returns:
      unclearedBalanceFormatted
    • setUnclearedBalanceFormatted

      public void setUnclearedBalanceFormatted(@Nullable String unclearedBalanceFormatted)
    • unclearedBalanceCurrency

      public Account unclearedBalanceCurrency(@Nullable Double unclearedBalanceCurrency)
    • getUnclearedBalanceCurrency

      @Nullable public Double getUnclearedBalanceCurrency()
      The current uncleared balance of the account as a decimal currency amount
      Returns:
      unclearedBalanceCurrency
    • setUnclearedBalanceCurrency

      public void setUnclearedBalanceCurrency(@Nullable Double unclearedBalanceCurrency)
    • 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 Account
    • fromJson

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

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