public class TaxIntegrationOrderItemCmdImpl extends TaskCommandImpl implements TaxIntegrationOrderItemCmd
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
Copyright statement.
|
defaultCommandClassName, NAME
Constructor and Description |
---|
TaxIntegrationOrderItemCmdImpl() |
Modifier and Type | Method and Description |
---|---|
java.math.BigDecimal |
getCost()
The total cost for this order item.
|
java.math.BigDecimal |
getDiscount()
The total value of all non-tax-exempt discounts for this line item.
|
java.lang.String[] |
getJurisdictionCodes()
Obtains all the jurisdiction levels (codes) where the taxes are being
calculated.
|
java.lang.String |
getJurstCode(java.lang.String aJurisdictiontype)
Obtains the jurisdiction level (code) for a given type of jurisdiction level..
|
java.math.BigDecimal |
getRecyclingFee()
Obtains the recycling fee for this order item
|
java.lang.String[] |
getSecondaryJurisdictionCodes()
Obtains all the secondary jurisdiction levels (secondary codes) where the
taxes are being calculated.
|
java.lang.String |
getSecondaryJurstCode(java.lang.String aJurisdictiontype)
Obtains the secondary jurisdiction level (code) for a given type of
secondary jurisdiction level..
|
java.math.BigDecimal |
getSecondaryTax(java.lang.String aJurisdictiontype)
Obtains the tax calculated for a given type of secondary jurisdiction level..
|
java.math.BigDecimal[] |
getSecondaryTaxAmounts()
Obtains the tax amounts calculated for each of the given secondary
jurisdiction levels returned from the tax calculation modules.
|
java.math.BigDecimal |
getSecondaryTaxRate(java.lang.String aJurisdictiontype)
Obtains the tax rate for a given type of secondary jurisdiction level.
|
java.math.BigDecimal |
getTax(java.lang.String aJurisdictiontype)
Obtains the tax calculated for a given type of jurisdiction level..
|
java.math.BigDecimal[] |
getTaxAmounts()
Obtains the tax amounts calculated for each of the given jurisdiction levels
returned from the tax calculation modules.
|
java.math.BigDecimal |
getTaxRate(java.lang.String aJurisdictiontype)
Obtains the tax rate for a given type of jurisdiction level.
|
java.lang.Integer[] |
getTaxTypes()
Obtains all the taxing authority or jurisdiction levels where the taxes
calculated.
|
java.math.BigDecimal |
getTotalTax()
Obtains the total tax calculated for this order item for all relevant taxing
authorities.
|
java.math.BigDecimal |
getTotalTaxRate()
Obtains the total tax rate for this order item for all relevant taxing
authorities.
|
void |
setAuditFlag(boolean aFlag)
Turns on or off the audit (logging) of tax calculations for this order item.
|
void |
setBusinessName(java.lang.String aBusinessName)
This method provides the name of the particular business location which
sells the order item.
|
void |
setBuyerName(java.lang.String aName)
The name of the purchaser for this item.
|
void |
setCost(java.math.BigDecimal aItemCost)
The total cost for this order item.
|
void |
setCurrencyCode(java.lang.String aisoCurrency)
This 3-character ISO currency code identifies the currency in which the
transaction is being made.
|
void |
setDiscount(java.math.BigDecimal aItemDiscount)
The total value of all non-tax-exempt discounts for this line item.
|
void |
setFreight(java.math.BigDecimal aItemFreight)
The total sbipping charge for this order item.
|
void |
setInvoiceNumber(java.lang.String aInvoiceNo)
This method provides the ability to attach an identifier to the order item
It is not used in the actual tax calculation.
|
void |
setItemCnt(java.lang.Double aItemCnt)
The number of units of this order item being purchased.
|
void |
setSellerID(java.lang.String aSellerId)
This method is used to set the seller identification.
|
void |
setSellerRegistrationId(java.lang.String aSellerRegistrationId)
This method is used to provide a seller registration identifier.
|
void |
setShipFromAddress(java.lang.String aAddress)
Sets the street address from which the order item will be shipped.
|
void |
setShipFromCity(java.lang.String aCity)
Sets the city portion of the address from which the order item will be shipped.
|
void |
setShipFromCountry(java.lang.String aCountry)
Sets the country from which the order item will be shipped.
|
void |
setShipFromState(java.lang.String aState)
Sets the state portion of the address from which the order item will be shipped.
|
void |
setShipFromTaxGeoCode(java.lang.String aGeoCode)
Sets the tax jurisdiction code (geoCode) from which the order item will be shipped.
|
void |
setShipFromZip(java.lang.String aZipCode)
Sets the zip code or postal code of the address from which the order item will be shipped.
|
void |
setShipToAddress(java.lang.String aAddress)
Sets the street address to which the order item will be shipped.
|
void |
setShipToCity(java.lang.String aCity)
Sets the city portion of the address to which the order item will be shipped.
|
void |
setShipToCountry(java.lang.String aCountry)
Sets the country to which the order item will be shipped.
|
void |
setShipToState(java.lang.String aState)
Sets the state portion of the address to which the order item will be shipped.
|
void |
setShipToTaxGeoCode(java.lang.String aGeoCode)
Sets the tax jurisdiction code (geoCode) to which the order item will be shipped.
|
void |
setShipToZip(java.lang.String aZipCode)
Sets the zip code or postal code of the address to which the order item will be shipped.
|
void |
setStoreId(java.lang.Integer aStoreId)
Sets the id of the input store to be used for determining the tax types.
|
void |
setTaxCode(java.lang.String aTaxCode)
This method specifies the tax treatment code for this order item.
|
void |
setTimeShipped(java.sql.Timestamp aTime)
Sets the time and date the order item shipped.
|
void |
setTransactionType(char aType)
This method is used to tell the tax software the type of transaction.
|
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, performExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, performExecute, setCommandTarget, setCommandTargetName, setOutputProperties
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, performExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
public static final java.lang.String COPYRIGHT
public java.math.BigDecimal getCost()
TaxIntegrationOrderItemCmd
getCost
in interface TaxIntegrationOrderItemCmd
TaxIntegrationOrderItemCmd.getCost()
public java.math.BigDecimal getDiscount()
TaxIntegrationOrderItemCmd
getDiscount
in interface TaxIntegrationOrderItemCmd
TaxIntegrationOrderItemCmd.getDiscount()
public java.lang.String[] getJurisdictionCodes()
TaxIntegrationOrderItemCmd
getJurisdictionCodes
in interface TaxIntegrationOrderItemCmd
TaxIntegrationOrderItemCmd.getJurisdictionCodes()
public java.lang.String getJurstCode(java.lang.String aJurisdictiontype)
TaxIntegrationOrderItemCmd
getJurstCode
in interface TaxIntegrationOrderItemCmd
aJurisdictiontype
- the type of jurisdiction level.
Accepted types can be "COUNTRY", "TERRITORY", "STATE", "COUNTY", "CITY" and "DISTRICT".
TaxIntegrationOrderItemCmd.getJurstCode(String)
public java.lang.String[] getSecondaryJurisdictionCodes()
TaxIntegrationOrderItemCmd
getSecondaryJurisdictionCodes
in interface TaxIntegrationOrderItemCmd
TaxIntegrationOrderItemCmd.getSecondaryJurisdictionCodes()
public java.lang.String getSecondaryJurstCode(java.lang.String aJurisdictiontype)
TaxIntegrationOrderItemCmd
getSecondaryJurstCode
in interface TaxIntegrationOrderItemCmd
aJurisdictiontype
- the type of jurisdiction level.
Accepted types can be "SECONDARYSTATE", "SECONARYCOUNTY", "SECONDARYCITY".
TaxIntegrationOrderItemCmd.getSecondaryJurstCode(String)
public java.math.BigDecimal getSecondaryTax(java.lang.String aJurisdictiontype)
TaxIntegrationOrderItemCmd
getSecondaryTax
in interface TaxIntegrationOrderItemCmd
aJurisdictiontype
- the type of secondary jurisdiction level.
Accepted types can be "SECONDARYSTATE", "SECONARYCOUNTY", "SECONDARYCITY".
TaxIntegrationOrderItemCmd.getSecondaryTax(String)
public java.math.BigDecimal[] getSecondaryTaxAmounts()
TaxIntegrationOrderItemCmd
getSecondaryTaxAmounts
in interface TaxIntegrationOrderItemCmd
TaxIntegrationOrderItemCmd.getSecondaryTaxAmounts()
public java.math.BigDecimal getTax(java.lang.String aJurisdictiontype)
TaxIntegrationOrderItemCmd
getTax
in interface TaxIntegrationOrderItemCmd
aJurisdictiontype
- the type of jurisdiction level.
Accepted types can be "COUNTRY", "TERRITORY", "STATE", "COUNTY", "CITY" and "DISTRICT".
TaxIntegrationOrderItemCmd.getTax(String)
public java.math.BigDecimal[] getTaxAmounts()
TaxIntegrationOrderItemCmd
getTaxAmounts
in interface TaxIntegrationOrderItemCmd
TaxIntegrationOrderItemCmd.getTaxAmounts()
public java.lang.Integer[] getTaxTypes()
TaxIntegrationOrderItemCmd
getTaxTypes
in interface TaxIntegrationOrderItemCmd
TaxIntegrationOrderItemCmd.getTaxTypes()
public java.math.BigDecimal getTotalTax()
TaxIntegrationOrderItemCmd
getTotalTax
in interface TaxIntegrationOrderItemCmd
TaxIntegrationOrderItemCmd.getTotalTax()
public void setAuditFlag(boolean aFlag)
TaxIntegrationOrderItemCmd
setAuditFlag
in interface TaxIntegrationOrderItemCmd
aFlag
- Setting the flag to 'true' turns on auditing,
'false'turns it off.TaxIntegrationOrderItemCmd.setAuditFlag(boolean)
public void setBusinessName(java.lang.String aBusinessName)
TaxIntegrationOrderItemCmd
setBusinessName
in interface TaxIntegrationOrderItemCmd
aBusinessName
- Identifies the name of the business location.TaxIntegrationOrderItemCmd.setBusinessName(String)
public void setBuyerName(java.lang.String aName)
TaxIntegrationOrderItemCmd
setBuyerName
in interface TaxIntegrationOrderItemCmd
aName
- The name of the buyer.TaxIntegrationOrderItemCmd.setBuyerName(String)
public void setCost(java.math.BigDecimal aItemCost)
TaxIntegrationOrderItemCmd
setCost
in interface TaxIntegrationOrderItemCmd
aItemCost
- The total price for this line item.TaxIntegrationOrderItemCmd.setCost(BigDecimal)
public void setCurrencyCode(java.lang.String aisoCurrency)
TaxIntegrationOrderItemCmd
setCurrencyCode
in interface TaxIntegrationOrderItemCmd
aisoCurrency
- The 3-character string representing the currency
type being used for this order item.TaxIntegrationOrderItemCmd.setCurrencyCode(String)
public void setDiscount(java.math.BigDecimal aItemDiscount)
TaxIntegrationOrderItemCmd
setDiscount
in interface TaxIntegrationOrderItemCmd
aItemDiscount
- The total value of all discounts.TaxIntegrationOrderItemCmd.setDiscount(BigDecimal)
public void setFreight(java.math.BigDecimal aItemFreight)
TaxIntegrationOrderItemCmd
setFreight
in interface TaxIntegrationOrderItemCmd
aItemFreight
- The cost of shipping for this order item.TaxIntegrationOrderItemCmd.setFreight(BigDecimal)
public void setInvoiceNumber(java.lang.String aInvoiceNo)
TaxIntegrationOrderItemCmd
setInvoiceNumber
in interface TaxIntegrationOrderItemCmd
aInvoiceNo
- A unique string representing the Sales invoice.TaxIntegrationOrderItemCmd.setInvoiceNumber(String)
public void setItemCnt(java.lang.Double aItemCnt)
TaxIntegrationOrderItemCmd
setItemCnt
in interface TaxIntegrationOrderItemCmd
aItemCnt
- A count of the total number of units for this order item.TaxIntegrationOrderItemCmd.setItemCnt(Double)
public void setSellerID(java.lang.String aSellerId)
TaxIntegrationOrderItemCmd
setSellerID
in interface TaxIntegrationOrderItemCmd
aSellerId
- A store or business identifier.TaxIntegrationOrderItemCmd.setSellerID(String)
public void setSellerRegistrationId(java.lang.String aSellerRegistrationId)
TaxIntegrationOrderItemCmd
setSellerRegistrationId
in interface TaxIntegrationOrderItemCmd
aSellerRegistrationId
- A business registration identifier.TaxIntegrationOrderItemCmd.setSellerRegistrationId(String)
public void setShipFromAddress(java.lang.String aAddress)
TaxIntegrationOrderItemCmd
setShipFromAddress
in interface TaxIntegrationOrderItemCmd
aAddress
- The street address from which the order item will be shipped.TaxIntegrationOrderItemCmd.setShipFromAddress(String)
public void setShipFromCity(java.lang.String aCity)
TaxIntegrationOrderItemCmd
setShipFromCity
in interface TaxIntegrationOrderItemCmd
aCity
- The city from which the order item will be shipped.TaxIntegrationOrderItemCmd.setShipFromCity(String)
public void setShipFromCountry(java.lang.String aCountry)
TaxIntegrationOrderItemCmd
setShipFromCountry
in interface TaxIntegrationOrderItemCmd
aCountry
- The country from which the order item will be shipped.TaxIntegrationOrderItemCmd.setShipFromCountry(String)
public void setShipFromState(java.lang.String aState)
TaxIntegrationOrderItemCmd
setShipFromState
in interface TaxIntegrationOrderItemCmd
aState
- The state from which the order item will be shipped.TaxIntegrationOrderItemCmd.setShipFromState(String)
public void setShipFromTaxGeoCode(java.lang.String aGeoCode)
TaxIntegrationOrderItemCmd
setShipFromTaxGeoCode
in interface TaxIntegrationOrderItemCmd
aGeoCode
- The tax jurisdiction geoCode from which the order item will be shipped.TaxIntegrationOrderItemCmd.setShipFromTaxGeoCode(String)
public void setShipFromZip(java.lang.String aZipCode)
TaxIntegrationOrderItemCmd
setShipFromZip
in interface TaxIntegrationOrderItemCmd
aZipCode
- The zip code or postal code from which the order item will be shipped.TaxIntegrationOrderItemCmd.setShipFromZip(String)
public void setShipToAddress(java.lang.String aAddress)
TaxIntegrationOrderItemCmd
setShipToAddress
in interface TaxIntegrationOrderItemCmd
aAddress
- The street address to which the order item will be shipped.TaxIntegrationOrderItemCmd.setShipToAddress(String)
public void setShipToCity(java.lang.String aCity)
TaxIntegrationOrderItemCmd
setShipToCity
in interface TaxIntegrationOrderItemCmd
aCity
- The city to which the order item will be shipped.TaxIntegrationOrderItemCmd.setShipToCity(String)
public void setShipToCountry(java.lang.String aCountry)
TaxIntegrationOrderItemCmd
setShipToCountry
in interface TaxIntegrationOrderItemCmd
aCountry
- The country to which the order item will be shipped.TaxIntegrationOrderItemCmd.setShipToCountry(String)
public void setShipToState(java.lang.String aState)
TaxIntegrationOrderItemCmd
setShipToState
in interface TaxIntegrationOrderItemCmd
aState
- The state to which the order item will be shipped.TaxIntegrationOrderItemCmd.setShipToState(String)
public void setShipToTaxGeoCode(java.lang.String aGeoCode)
TaxIntegrationOrderItemCmd
setShipToTaxGeoCode
in interface TaxIntegrationOrderItemCmd
aGeoCode
- The tax jurisdiction geoCode to which the order item will be shipped.TaxIntegrationOrderItemCmd.setShipToTaxGeoCode(String)
public void setShipToZip(java.lang.String aZipCode)
TaxIntegrationOrderItemCmd
setShipToZip
in interface TaxIntegrationOrderItemCmd
aZipCode
- The zip code or postal code to which the order item will be shipped.TaxIntegrationOrderItemCmd.setShipToZip(String)
public void setStoreId(java.lang.Integer aStoreId)
TaxIntegrationOrderItemCmd
setStoreId
in interface TaxIntegrationOrderItemCmd
aStoreId
- The reference number of a storeTaxIntegrationOrderItemCmd.setStoreId(Integer)
public void setTaxCode(java.lang.String aTaxCode)
TaxIntegrationOrderItemCmd
setTaxCode
in interface TaxIntegrationOrderItemCmd
aTaxCode
- The taxCode for this product.TaxIntegrationOrderItemCmd.setTaxCode(String)
public void setTransactionType(char aType)
TaxIntegrationOrderItemCmd
setTransactionType
in interface TaxIntegrationOrderItemCmd
aType
- representing the type of transaction - valid values are
TaxIntegrationOrderItemCmd.setTransactionType(char)
public void setTimeShipped(java.sql.Timestamp aTime)
TaxIntegrationOrderItemCmd
setTimeShipped
in interface TaxIntegrationOrderItemCmd
aTime
- The time and date the order item was shippedTaxIntegrationOrderItemCmd.setTimeShipped(Timestamp)
public java.math.BigDecimal getTaxRate(java.lang.String aJurisdictiontype)
TaxIntegrationOrderItemCmd
getTaxRate
in interface TaxIntegrationOrderItemCmd
aJurisdictiontype
- the type of jurisdiction level.
Accepted types can be "COUNTRY", "TERRITORY", "STATE", "COUNTY", "CITY" and "DISTRICT".
TaxIntegrationOrderItemCmd.getTaxRate(java.lang.String)
public java.math.BigDecimal getTotalTaxRate()
TaxIntegrationOrderItemCmd
getTotalTaxRate
in interface TaxIntegrationOrderItemCmd
TaxIntegrationOrderItemCmd.getTotalTaxRate()
public java.math.BigDecimal getSecondaryTaxRate(java.lang.String aJurisdictiontype)
TaxIntegrationOrderItemCmd
getSecondaryTaxRate
in interface TaxIntegrationOrderItemCmd
aJurisdictiontype
- the type of jurisdiction level.
Accepted types can be "SECONDARYSTATE", "SECONDARYCITY", "SECONDARYCOUNTY"
TaxIntegrationOrderItemCmd.getSecondaryTaxRate(java.lang.String)
public java.math.BigDecimal getRecyclingFee()
TaxIntegrationOrderItemCmd
getRecyclingFee
in interface TaxIntegrationOrderItemCmd
TaxIntegrationOrderItemCmd.getRecyclingFee()