public final class XPFTaxCalculationContextBuilder extends Object
XPFTaxCalculationContext
.Modifier and Type | Field and Description |
---|---|
private Currency |
currency |
private XPFCustomer |
customer |
private XPFAddress |
destinationAddress |
private String |
documentId |
private XPFTaxJournalTypeEnum |
journalType |
private XPFAddress |
originAddress |
private XPFStore |
store |
private List<XPFTaxableShoppingItem> |
taxableItems |
private String |
taxExemptionId |
private boolean |
taxInclusive |
private XPFTaxOverride |
taxOverride |
Modifier | Constructor and Description |
---|---|
private |
XPFTaxCalculationContextBuilder()
Constructor.
|
private List<XPFTaxableShoppingItem> taxableItems
private XPFStore store
private Currency currency
private XPFAddress originAddress
private XPFAddress destinationAddress
private XPFCustomer customer
private XPFTaxJournalTypeEnum journalType
private String documentId
private boolean taxInclusive
private String taxExemptionId
private XPFTaxOverride taxOverride
private XPFTaxCalculationContextBuilder()
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 © 2022. All rights reserved.