Module jonix.common

Enum Class TaxTypes

java.lang.Object
java.lang.Enum<TaxTypes>
com.tectonica.jonix.common.codelist.TaxTypes
All Implemented Interfaces:
OnixCodelist, Serializable, Comparable<TaxTypes>, Constable

public enum TaxTypes extends Enum<TaxTypes> implements OnixCodelist
Enum that corresponds to ONIX Codelist 171

Description: Tax type

See Also:
  • Enum Constant Details

    • VAT_Value_added_tax

      public static final TaxTypes VAT_Value_added_tax
      TVA, IVA, MwSt, GST etc, levied incrementally at all parts of the supply chain
    • GST_Sales_tax

      public static final TaxTypes GST_Sales_tax
      General sales tax, levied on retail sales
    • ECO

      public static final TaxTypes ECO
      'Green' or eco-tax, levied to encourage responsible production or disposal, used only where this is identified separately from value-added or sales taxes
  • Field Details

    • code

      public final String code
    • description

      public final String description
  • Method Details

    • values

      public static TaxTypes[] 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 TaxTypes 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
    • getCode

      public String getCode()
      Specified by:
      getCode in interface OnixCodelist
    • getDescription

      public String getDescription()
      Specified by:
      getDescription in interface OnixCodelist
    • byCode

      public static TaxTypes byCode(String code)
    • byCodeOptional

      public static Optional<TaxTypes> byCodeOptional(String code)
    • codeToDesciption

      public static String codeToDesciption(String code)