public final class XPFTaxCalculationContextBuilder extends Object
XPFTaxCalculationContext
.public static XPFTaxCalculationContextBuilder newBuilder()
public XPFTaxCalculationContext build()
public XPFTaxCalculationContextBuilder setTaxableItems(List<XPFTaxableShoppingItem> taxableItems)
taxableItems
- the taxable itemspublic XPFTaxCalculationContextBuilder setStore(XPFStore store)
store
- the storepublic XPFTaxCalculationContextBuilder setCurrency(Currency currency)
currency
- the currencypublic XPFTaxCalculationContextBuilder setOriginAddress(XPFAddress originAddress)
originAddress
- the origin addresspublic XPFTaxCalculationContextBuilder setDestinationAddress(XPFAddress destinationAddress)
destinationAddress
- the destination addresspublic XPFTaxCalculationContextBuilder setCustomer(XPFCustomer customer)
customer
- the customerpublic XPFTaxCalculationContextBuilder setJournalType(XPFTaxJournalTypeEnum journalType)
journalType
- the tax journal typepublic XPFTaxCalculationContextBuilder setDocumentId(String documentId)
documentId
- the tax document IDpublic XPFTaxCalculationContextBuilder setTaxInclusive(boolean taxInclusive)
taxInclusive
- indicates if the shopper's region uses inclusive taxespublic XPFTaxCalculationContextBuilder setTaxExemptionId(String taxExemptionId)
taxExemptionId
- the tax exemption IDpublic XPFTaxCalculationContextBuilder setTaxOverride(XPFTaxOverride taxOverride)
taxOverride
- the tax overrideCopyright © 2024. All rights reserved.