Enum Class AccountType

java.lang.Object
java.lang.Enum<AccountType>
cm.xd.genapi.ynab.model.AccountType
All Implemented Interfaces:
Serializable, Comparable<AccountType>, Constable

public enum AccountType extends Enum<AccountType>
The type of account
  • Enum Constant Details

    • CHECKING

      public static final AccountType CHECKING
    • SAVINGS

      public static final AccountType SAVINGS
    • CASH

      public static final AccountType CASH
    • CREDIT_CARD

      public static final AccountType CREDIT_CARD
    • LINE_OF_CREDIT

      public static final AccountType LINE_OF_CREDIT
    • OTHER_ASSET

      public static final AccountType OTHER_ASSET
    • OTHER_LIABILITY

      public static final AccountType OTHER_LIABILITY
    • MORTGAGE

      public static final AccountType MORTGAGE
    • AUTO_LOAN

      public static final AccountType AUTO_LOAN
    • STUDENT_LOAN

      public static final AccountType STUDENT_LOAN
    • PERSONAL_LOAN

      public static final AccountType PERSONAL_LOAN
    • MEDICAL_DEBT

      public static final AccountType MEDICAL_DEBT
    • OTHER_DEBT

      public static final AccountType OTHER_DEBT
  • Method Details

    • values

      public static AccountType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static AccountType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getValue

      public String getValue()
    • toString

      public String toString()
      Overrides:
      toString in class Enum<AccountType>
    • fromValue

      public static AccountType fromValue(String value)
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      Throws:
      IOException