Class SimpleTaxConfig

    • Constructor Detail

      • SimpleTaxConfig

        public SimpleTaxConfig()
    • Method Detail

      • isSampleConfig

        public boolean isSampleConfig()
        Whether this configuration is the out-of-the-box sample or is otherwise marked as a sample. If true, a warning will be logged.
        Returns:
        Whether this configuration is the out-of-the-box sample.
      • getTaxTables

        public Map<String,​List<SimpleTaxRecord>> getTaxTables()
        Map of a tax code to a list of tax records for that jurisdiction. The SimpleTaxProvider supports alpha-2 country codes as tax codes.
        Returns:
        Map of tax code to a list of tax records for that country.
      • setSampleConfig

        public void setSampleConfig​(boolean sampleConfig)
        Whether this configuration is the out-of-the-box sample or is otherwise marked as a sample. If true, a warning will be logged.
        Parameters:
        sampleConfig - Whether this configuration is the out-of-the-box sample.
      • setDefaultRate

        public void setDefaultRate​(SimpleTaxRecord defaultRate)
        The default rate if no matching in getTaxTables() found.
        Parameters:
        defaultRate - The default rate if no matching in getTaxTables() found.
      • setTaxTables

        public void setTaxTables​(Map<String,​List<SimpleTaxRecord>> taxTables)
        Map of a tax code to a list of tax records for that jurisdiction. The SimpleTaxProvider supports alpha-2 country codes as tax codes.
        Parameters:
        taxTables - Map of tax code to a list of tax records for that country.
      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object