Class TaxDelegateProperties


@ConfigurationProperties("broadleaf.tax.delegate") public class TaxDelegateProperties extends DiscriminatedProperties<TaxDelegateProperties>
Properties to support the TaxDelegate configuration, especially the DefaultTaxDelegate.
Author:
Kelly Tisdell (ktisdell)
  • Constructor Details

    • TaxDelegateProperties

      public TaxDelegateProperties()
  • Method Details

    • getPreferredTaxProviderId

      public String getPreferredTaxProviderId(@Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      The preferred tax provider for the given ContextInfo.
      Parameters:
      contextInfo -
      Returns:
      See Also:
    • getFallbackTaxProviderId

      public String getFallbackTaxProviderId(@Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      The fallback tax provider for the given ContextInfo. If configured, this will inform the TaxDelegate that a fallback should be used in case of an error resulting from the default. This If this is the same as the default, the fallback will not be executed.
      Parameters:
      contextInfo -
      See Also:
    • setPreferredTaxProviderId

      public void setPreferredTaxProviderId(String preferredTaxProviderId)
      The preferred tax provider.
      See Also:
    • setFallbackTaxProviderId

      public void setFallbackTaxProviderId(String fallbackTaxProviderId)
      If the preferred tax provider fails for any reason, a fallback may be used instead.
      See Also: