com.ibm.commerce.isv.kit.tax
Interface TaxOrderCmd
- All Superinterfaces:
- ECCommand, TaskCommand
- public interface TaxOrderCmd
- extends TaskCommand
This interface allows an external tax package to be used from WCS to calculate
taxes.
Field Summary |
static java.lang.String |
COPYRIGHT
|
static java.lang.String |
NAME
|
Method Summary |
int |
addOrderItem(TaxOrderItemCmd orderItem)
This method is used to add an order item to an order. |
TaxOrderItemCmd |
getOrderItem(int itemNo)
This method is used to retrieve an order item from an order. |
java.math.BigDecimal |
getTotalTax()
Obtain the total tax calculated for this order for all relevant taxing
authorities. |
Methods inherited from interface com.ibm.commerce.command.ECCommand |
checkIsAllowed, checkResourcePermission, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, performExecute, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters |
COPYRIGHT
public static final java.lang.String COPYRIGHT
NAME
public static final java.lang.String NAME
addOrderItem
public int addOrderItem(TaxOrderItemCmd orderItem)
- This method is used to add an order item to an order.
- Parameters:
TaxOrderItemCmd
- orderItem. An order item to be added to the order.
getOrderItem
public TaxOrderItemCmd getOrderItem(int itemNo)
- This method is used to retrieve an order item from an order.
- Parameters:
int
- itemNo. Identifies which order item to be retrieved from the order.- Returns:
- TaxOrderItemCmd orderItem. The order item indicated by the given item number.
getTotalTax
public java.math.BigDecimal getTotalTax()
- Obtain the total tax calculated for this order for all relevant taxing
authorities.
- Returns:
- BigDecimal totalTax. The total tax calculated for this order.