|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.commerce.command.AbstractECCommand | +--com.ibm.commerce.command.TaskCommandImpl | +--com.ibm.commerce.taxation.commands.GetDisplayTaxesCmdImpl
The GetDisplayTaxesCmd
Task Command default Implementation can be
called by any commands and databeans to set the different categories of tax
amounts (e.g. GST, PST etc.) for the input catalog entry.
It uses CalculationCodes with calculationUsage of Taxation to calculate the
tax amounts for each of the tax categories that have been marked for display.
If the command is successful, it will populate two hashtables:
If unsuccessful, the two hashtables will be empty.
Field Summary | |
static java.lang.String |
COPYRIGHT
|
Fields inherited from class com.ibm.commerce.command.AbstractECCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.taxation.commands.GetDisplayTaxesCmd |
defaultCommandClassName, NAME |
Constructor Summary | |
GetDisplayTaxesCmdImpl()
|
Method Summary | |
java.util.Hashtable |
getCategorizedTaxAmount()
Returns the monetary amounts of all tax categories and their names. |
java.util.Hashtable |
getTaxDescriptionHash()
Gets the descriptions of all tax categories. |
void |
performExecute()
Executes main business logic of the command. |
void |
setAddressId(java.lang.Long aAddressId)
Sets the id of the input ship-to address (Optional). |
void |
setCatEntryId(java.lang.Long aCatEntryId)
Sets the id of the input catalog entry. |
void |
setCurrency(java.lang.String aCurrency)
Sets the currency of the input price amount. |
void |
setDisplayOnly(boolean abDisplayOnly)
Sets the flag to indicate if the taxes are calculated for display purpose (Optional). |
void |
setFulfillmentCenterId(java.lang.Integer aFulfillmentCenterId)
Sets the id of the fulfillment center (Optional). |
void |
setPrice(java.math.BigDecimal aPrice)
Sets the product price for calculating the taxes. |
void |
setQuantity(java.lang.Double aQuantity)
Sets the product quantity for calculating the taxes. |
void |
setShippingCharge(java.math.BigDecimal aShippingCharge)
Sets the shipping charge for the shipping the product. |
void |
setUOM(java.lang.String astrUOM)
Sets the unit of measure for the product. |
void |
validateParameters()
Checks mandatory parameters. |
Methods inherited from class com.ibm.commerce.command.AbstractECCommand |
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.ibm.commerce.command.ECCommand |
checkIsAllowed, checkResourcePermission, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties |
Field Detail |
public static final java.lang.String COPYRIGHT
Constructor Detail |
public GetDisplayTaxesCmdImpl()
Method Detail |
public java.util.Hashtable getCategorizedTaxAmount()
getCategorizedTaxAmount
in interface GetDisplayTaxesCmd
com.ibm.commerce.taxation.commands.GetDisplayTaxesCmd
public java.util.Hashtable getTaxDescriptionHash()
getTaxDescriptionHash
in interface GetDisplayTaxesCmd
com.ibm.commerce.taxation.commands.GetDisplayTaxesCmd
public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in class AbstractECCommand
com.ibm.commerce.command.ECCommand
com.ibm.commerce.command.CommandException
- The superclass for all ECExceptions.public void setAddressId(java.lang.Long aAddressId)
setAddressId
in interface GetDisplayTaxesCmd
com.ibm.commerce.taxation.commands.GetDisplayTaxesCmd
aAddressId
- The reference number of the ship-to address.public void setCatEntryId(java.lang.Long aCatEntryId)
setCatEntryId
in interface GetDisplayTaxesCmd
com.ibm.commerce.taxation.commands.GetDisplayTaxesCmd
aCatEntryId
- The reference number of the catalog entry.public void setCurrency(java.lang.String aCurrency)
setCurrency
in interface GetDisplayTaxesCmd
com.ibm.commerce.taxation.commands.GetDisplayTaxesCmd
aCurrency
- The currency of the input price amount.public void setDisplayOnly(boolean abDisplayOnly)
setDisplayOnly
in interface GetDisplayTaxesCmd
com.ibm.commerce.taxation.commands.GetDisplayTaxesCmd
abDisplayOnly
- To indicate if it is for display use only.
A true value (default) means for display.
A false value means not for display.public void setFulfillmentCenterId(java.lang.Integer aFulfillmentCenterId)
setFulfillmentCenterId
in interface GetDisplayTaxesCmd
com.ibm.commerce.taxation.commands.GetDisplayTaxesCmd
aFulfillmentCenterId
- The reference number of the fulfillment center.public void setPrice(java.math.BigDecimal aPrice)
setPrice
in interface GetDisplayTaxesCmd
com.ibm.commerce.taxation.commands.GetDisplayTaxesCmd
aPrice
- The product price for calculating the taxes.public void setQuantity(java.lang.Double aQuantity)
setQuantity
in interface GetDisplayTaxesCmd
com.ibm.commerce.taxation.commands.GetDisplayTaxesCmd
aQuantity
- The product quantity for calculating the taxes.public void setShippingCharge(java.math.BigDecimal aShippingCharge)
setShippingCharge
in interface GetDisplayTaxesCmd
com.ibm.commerce.taxation.commands.GetDisplayTaxesCmd
aShippingCharge
- The product shipping charge.public void setUOM(java.lang.String astrUOM)
setUOM
in interface GetDisplayTaxesCmd
com.ibm.commerce.taxation.commands.GetDisplayTaxesCmd
astrUOM
- The unit of measure for the product.public void validateParameters() throws ECException
validateParameters
in interface ECCommand
validateParameters
in class AbstractECCommand
com.ibm.commerce.command.ECCommand
ECException.
-
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |