Class AccountBase

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

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

  • Constructor Details

    • AccountBase

      public AccountBase()
  • Method Details

    • id

      public AccountBase id(@Nonnull UUID id)
    • getId

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

      public void setId(@Nonnull UUID id)
    • name

      public AccountBase name(@Nonnull String name)
    • getName

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

      public void setName(@Nonnull String name)
    • type

      public AccountBase type(@Nonnull AccountType type)
    • getType

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

      public void setType(@Nonnull AccountType type)
    • onBudget

      public AccountBase 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 AccountBase 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 AccountBase note(@Nullable String note)
    • getNote

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

      public void setNote(@Nullable String note)
    • balance

      public AccountBase 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 AccountBase 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 AccountBase 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 AccountBase transferPayeeId(@Nullable UUID transferPayeeId)
    • getTransferPayeeId

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

      public void setTransferPayeeId(@Nullable UUID transferPayeeId)
    • directImportLinked

      public AccountBase 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 AccountBase 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 AccountBase 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 AccountBase 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 AccountBase debtInterestRates(@Nullable Map<String,Long> debtInterestRates)
    • putDebtInterestRatesItem

      public AccountBase 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 AccountBase debtMinimumPayments(@Nullable Map<String,Long> debtMinimumPayments)
    • putDebtMinimumPaymentsItem

      public AccountBase 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 AccountBase debtEscrowAmounts(@Nullable Map<String,Long> debtEscrowAmounts)
    • putDebtEscrowAmountsItem

      public AccountBase 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 AccountBase 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)
    • 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 AccountBase
    • fromJson

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

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