public final class XPFTaxDocumentContextBuilder extends Object
XPFTaxDocumentContext
.Modifier and Type | Field and Description |
---|---|
private XPFCustomer |
account |
private Currency |
currency |
private XPFCustomer |
customer |
private XPFAddress |
destinationAddress |
private boolean |
isTaxInclusive |
private String |
orderNumber |
private XPFAddress |
originAddress |
private String |
shippingItemGuid |
private String |
storeCode |
private XPFTaxDocument |
taxDocument |
private String |
taxExemptionId |
private XPFTaxJournalTypeEnum |
taxJournalType |
private XPFTaxObjectTypeEnum |
taxObjectType |
private XPFTaxOverride |
taxOverride |
private XPFTaxTransactionTypeEnum |
taxTransactionType |
Modifier | Constructor and Description |
---|---|
private |
XPFTaxDocumentContextBuilder()
Constructor.
|
private XPFTaxDocument taxDocument
private XPFTaxJournalTypeEnum taxJournalType
private XPFTaxTransactionTypeEnum taxTransactionType
private XPFTaxObjectTypeEnum taxObjectType
private Currency currency
private XPFCustomer customer
private XPFCustomer account
private String orderNumber
private String storeCode
private XPFAddress originAddress
private XPFAddress destinationAddress
private boolean isTaxInclusive
private String shippingItemGuid
private String taxExemptionId
private XPFTaxOverride taxOverride
public static XPFTaxDocumentContextBuilder newBuilder()
public XPFTaxDocumentContext build()
public XPFTaxDocumentContextBuilder setTaxDocument(XPFTaxDocument taxDocument)
taxDocument
- the tax documentpublic XPFTaxDocumentContextBuilder setTaxJournalType(XPFTaxJournalTypeEnum taxJournalType)
taxJournalType
- the tax journal typepublic XPFTaxDocumentContextBuilder setTaxTransactionType(XPFTaxTransactionTypeEnum taxTransactionType)
taxTransactionType
- the tax transaction typepublic XPFTaxDocumentContextBuilder setTaxObjectType(XPFTaxObjectTypeEnum taxObjectType)
taxObjectType
- the tax object typepublic XPFTaxDocumentContextBuilder setCurrency(Currency currency)
currency
- the currencypublic XPFTaxDocumentContextBuilder setCustomer(XPFCustomer customer)
customer
- the customerpublic XPFTaxDocumentContextBuilder setAccount(XPFCustomer account)
account
- the accountpublic XPFTaxDocumentContextBuilder setOrderNumber(String orderNumber)
orderNumber
- the order numberpublic XPFTaxDocumentContextBuilder setStoreCode(String storeCode)
storeCode
- the store codepublic XPFTaxDocumentContextBuilder setOriginAddress(XPFAddress originAddress)
originAddress
- the origin addresspublic XPFTaxDocumentContextBuilder setDestinationAddress(XPFAddress destinationAddress)
destinationAddress
- the destination addresspublic XPFTaxDocumentContextBuilder setIsTaxInclusive(boolean isTaxInclusive)
isTaxInclusive
- the tax inclusivepublic XPFTaxDocumentContextBuilder setShippingItemGuid(String shippingItemGuid)
shippingItemGuid
- the shipping item GUIDpublic XPFTaxDocumentContextBuilder setTaxExemptionId(String taxExemptionId)
taxExemptionId
- the tax exemption IDpublic XPFTaxDocumentContextBuilder setTaxOverride(XPFTaxOverride taxOverride)
taxOverride
- the tax overrideCopyright © 2022. All rights reserved.