public class ApplyCalculationUsageTIKBaseCmdImpl extends ApplyCalculationUsageCmdImpl implements ApplyCalculationUsageTIKBaseCmd
ApplyCalculationUsageTIKBaseCmdImpl
Task Command Implementation is called
by the OrderPrepareCmd
Controller Command to set the different tax
amounts (for example: GST, PST and so forth.) for each OrderItem supplied by OrderPrepare.
It cannot be called directly and is instead extended by other commands for specific
tax purposesModifier and Type | Field and Description |
---|---|
static java.math.BigDecimal |
BIG_DECIMAL_ZERO
The big decimal zero field
|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
static java.lang.Double |
DOUBLE_ZERO
The double zero field
|
defaultCommandClassName, NAME
Constructor and Description |
---|
ApplyCalculationUsageTIKBaseCmdImpl()
Constructor for ApplyCalculationUsageTIKBaseCmdImpl
|
ApplyCalculationUsageTIKBaseCmdImpl(int ataxType)
Constructor for ApplyCalculationUsageTIKBaseCmdImpl(int ataxType)
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getSellerId(Item orderItem)
This method is used to return the seller id that will be passed to the third party
tax providers.
|
java.math.BigDecimal |
getTotalRecyclingFee()
Obtains the total recycling fee for this order.
|
void |
performExecute()
Executes main business logic of the command.
|
void |
reset()
Resets the command properties.
|
void |
setTransactionType(char aType)
This method is used to tell the tax software the type of transaction.
|
checkAppliedItems, getAppliedItems, setItems, setTaxCategoryIds
getCurrency, getCustomProperties, getCustomProperty, getTimestamp, getUsageId, setCurrency, setCustomProperties, setCustomProperty, setTimestamp, setUsageId
getPolicyId, getRequestProperties, setPolicyId, setRequestProperties
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, 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
checkAppliedItems, getAppliedItems, setItems, setTaxCategoryIds
getCurrency, getCustomProperties, getCustomProperty, getTimestamp, getUsageId, setCurrency, setCustomProperties, setCustomProperty, setTimestamp, setUsageId
getPolicyId, getRequestProperties, setPolicyId, setRequestProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
public static final java.lang.String COPYRIGHT
public static final java.math.BigDecimal BIG_DECIMAL_ZERO
public static final java.lang.Double DOUBLE_ZERO
public ApplyCalculationUsageTIKBaseCmdImpl()
public ApplyCalculationUsageTIKBaseCmdImpl(int ataxType)
ataxType
- the taxType.public void reset()
reset
in interface com.ibm.websphere.command.Command
reset
in class ApplyCalculationUsageCmdImpl
Command.reset()
public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class ApplyCalculationUsageCmdImpl
ECException
ECCommand.performExecute()
public void setTransactionType(char aType)
aType
- representing the type of transaction - valid values are
public java.lang.String getSellerId(Item orderItem) throws ECSystemException
orderItem
- representing the orderItemECSystemException
public java.math.BigDecimal getTotalRecyclingFee()