Class TaxDetail.TaxDetailBuilder

  • Enclosing class:
    TaxDetail

    public static class TaxDetail.TaxDetailBuilder
    extends Object
    • Method Detail

      • country

        public TaxDetail.TaxDetailBuilder country​(String country)
        The country for this tax.
        Parameters:
        country - The country for this tax.
        Returns:
        this.
      • region

        public TaxDetail.TaxDetailBuilder region​(String region)
        The region for this tax. This is often something like a two digit state code, e.g. (CA, TX, NY, etc.)
        Parameters:
        region - The region for this tax.
        Returns:
        this.
      • jurisdictionName

        public TaxDetail.TaxDetailBuilder jurisdictionName​(String jurisdictionName)
        The jurisdiction name. This may be a state, city, county, etc.
        Parameters:
        jurisdictionName - The tax jurisdiction name.
        Returns:
        this.
      • jurisdictionType

        public TaxDetail.TaxDetailBuilder jurisdictionType​(String jurisdictionType)
        The jurisdiction type, e.g. city, state, county, etc.
        Returns:
        this.
      • taxableAmount

        public TaxDetail.TaxDetailBuilder taxableAmount​(javax.money.MonetaryAmount taxableAmount)
        The amount that was taxable to determine the calculated tax.
        Parameters:
        taxableAmount - The amount that was taxable to determine the calculated tax.
        Returns:
        this.
      • taxCalculated

        public TaxDetail.TaxDetailBuilder taxCalculated​(javax.money.MonetaryAmount taxCalculated)
        The calculated tax for this detail.
        Parameters:
        taxCalculated - The calculated tax for this detail.
        Returns:
        this.
      • transactionId

        public TaxDetail.TaxDetailBuilder transactionId​(String transactionId)
        The transaction ID for this tax detail. Used to reconcile this tax detail with a specific transaction when using an external tax provider.
        Returns:
        this.
      • isExempt

        public TaxDetail.TaxDetailBuilder isExempt​(boolean isExempt)
        Indicates if this is exempt from taxes, usually based on a tax exemption code.
        Returns:
        this.