Class SimpleTaxProvider<T1 extends TaxRequest,​T2 extends TaxResponse>

  • All Implemented Interfaces:
    TaxAccessor<T1,​T2>, TaxProvider<T1,​T2>, org.springframework.core.Ordered

    public class SimpleTaxProvider<T1 extends TaxRequest,​T2 extends TaxResponse>
    extends Object
    implements TaxProvider<T1,​T2>
    Simple implementation of TaxProvider primarily used for estimating taxes, but can be used for providing full taxes for implementors without complex tax needs. Otherwise, a TaxProvider integrated with a 3rd party, such as Avalara, is preferred. If this simple provider is intended to be used in a live production environment, the implementor must be aware that they own the consequences of tax law and must maintain the tax configuration details. This TaxProvider can also act as a fallback tax provider when used with Circuit Breaker functionality as is the case with DefaultTaxDelegate.
    Author:
    Chad Harchar (charchar), Kelly Tisdell (ktisdell)
    • Constructor Detail

      • SimpleTaxProvider

        public SimpleTaxProvider​(@NonNull
                                 @NonNull com.fasterxml.jackson.databind.ObjectMapper objectMapper,
                                 @NonNull
                                 @NonNull com.broadleafcommerce.common.extension.TypeFactory typeFactory,
                                 @NonNull
                                 @NonNull SimpleTaxProperties properties)
      • SimpleTaxProvider

        public SimpleTaxProvider​(@NonNull
                                 @NonNull com.fasterxml.jackson.databind.ObjectMapper objectMapper,
                                 @NonNull
                                 @NonNull com.broadleafcommerce.common.extension.TypeFactory typeFactory,
                                 @NonNull
                                 @NonNull SimpleTaxProperties properties,
                                 @Nullable
                                 org.springframework.core.io.ResourceLoader resourceLoader)