public class ApplyCalculationUsageTIKBaseCmdImpl extends ApplyCalculationUsageCmdImpl implements ApplyCalculationUsageTIKBaseCmd
Modifier 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
|
Constructor and Description |
---|
ApplyCalculationUsageTIKBaseCmdImpl()
Constructor for ApplyCalculationUsageTIKBaseCmdImpl
|
ApplyCalculationUsageTIKBaseCmdImpl(int ataxType)
Constructor for ApplyCalculationUsageTIKBaseCmdImpl(int ataxType)
|
Modifier and Type | Method and Description |
---|---|
protected void | addComponentTaxToKitItem(Item aKitItem, Item aComponentItem, TaxIntegrationOrderItemCmd aTaxIntegrationOrderItemCmd)
This method is called by callIntegrationTaxApply(Item[], TaxIntegrationOrderCmd) to add the tax of a component to the component's kit.
|
protected void | addIntegrationTaxTotal(Item aItem, TaxIntegrationOrderItemCmd aTaxOrderItem)
Adds to the tax total of a particular item.
|
protected void | addTaxTotal(Item aItem, TaxOrderItemCmd aTaxOrderItem)
Deprecated.
deprecated in Commerce 5.5. Should use addIntegrationTaxTotal instead to use new Tax interfaces
|
protected void | callCodeApply(Group aGroup, TaxOrderCmd aTaxOrder, java.lang.Integer aStoreId)
Deprecated.
deprecated in Commerce 5.5. Should begin using callIntegrationCodeApply to use new Tax interfaces
|
protected Group[] | callCodeCombine(Item[] aItems)
Invokes the calculation method of type "CalculationCodeCombine" referenced by the current store (see STENCALUSG.ACTCC_CALMETHOD_ID, CalculationCodeCombineCmd) to determine the calculation codes attached to each item.
|
protected void | callIntegrationCodeApply(Group aGroup, TaxIntegrationOrderCmd aTaxOrder, java.lang.Integer aStoreId)
This method is given merely as an example to illustrate how to put together the tax amount for each tax category returned for the specified items and to apply the final results to the items by calling CalculationCodeApplyCmd
|
protected void | callIntegrationTaxApply(Item[] aItems, TaxIntegrationOrderCmd aTaxOrder)
Loop through the order items and update each item with the tax amounts returned from the tax calculation module.
|
protected void | callTaxApply(Item[] aItems, TaxOrderCmd aTaxOrder)
Deprecated.
deprecated in Commerce 5.5. Should begin using callIntegrationTaxApply to use new Tax interfaces
|
protected void | callTaxIntegrationTIFLoop()
Loop through the orderItems and add each item to a TaxIntegrationOrderItem object.
|
protected void | callTaxTIFLoop()
Deprecated.
deprecated in Commerce 5.5. Should begin using callTaxIntegrationTIFLoop to use new Tax command interfaces
|
protected Item | createComponentItem(OrderItemAccessBean aabOrderItem, OrderItemComponentAccessBean aabComponent, java.math.BigDecimal adComponentUnitPrice)
This method is called by expandKitItemIntoComponentItems(Item) to create an item corresponding to the component specified.
|
protected java.util.List | expandKitItemIntoComponentItems(Item aItem)
This method is called by expandKitItemsIntoComponentItems(Item[]) to expand an item, if corresponding to a kit, into items corresponding to the kit's components.
|
protected Item[] | expandKitItemsIntoComponentItems(Item[] aOldItems)
This method is called by callCodeCombine(Item[]) to expand any kit in the item array into the kit's components.
|
protected java.math.BigDecimal | getComponentUnitPrice(OrderItemComponentAccessBean aabComponent)
This method is called by expandKitItemIntoComponentItems(Item) to retrieve the unit price of a component.
|
protected StoreAddressAccessBean | getFulfillmentCenterAddress(CommandContext aCommandContext, java.lang.Integer aFulfillmentCenterId)
Retrieve the fulfillment center address.
|
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.
|
protected StoreAddressAccessBean | getStoreAddress(CommandContext aCommandContext)
Retrieve the store physical location address.
|
java.math.BigDecimal | getTotalRecyclingFee()
Obtains the total recycling fee for this order.
|
protected boolean | isUseComponentInfo()
Returns true if component information should be used to calculate tax.
|
void | performExecute()
Executes main business logic of the command.
|
void | reset()
Resets the command properties.
|
protected java.lang.Integer[] | resolveIntegrationTaxCategories(TaxIntegrationOrderItemCmd aTaxOrderItem, java.lang.Integer aStoreId)
This method is given merely as an example to illustrate how to resolve the WCS tax categories ids.
|
protected java.lang.Integer[] | resolveTaxCategories(TaxOrderItemCmd aTaxOrderItem, java.lang.Integer aStoreId)
Deprecated.
deprecated in Commerce 5.5. Should begin using resolveIntegrationTaxCategories to use new Tax interfaces
|
protected void | roundValues()
This method rounds shipping tax and sales tax.
|
protected void | roundValues(java.util.List alistItems)
This method is called by expandKitItemIntoComponentItems(Item) to perform all necessary rounding to the list of items before returning.
|
protected void | setTaxIntegrationOrderItemCostAndDiscount(Item item, TaxIntegrationOrderItemCmd taxOrderItemCmd)
This method sets the cost and discount of TaxIntegrationOrderItem object.
|
protected void | setTaxIntegrationOrderItemFreight(Item item, TaxIntegrationOrderItemCmd taxOrderItemCmd)
This method sets the freight.
|
protected void | setTaxIntegrationOrderItemOtherInfo(Item item, TaxIntegrationOrderItemCmd taxOrderItemCmd)
This method is used to set other information.
|
protected void | setTaxIntegrationOrderItemShipFromInfo(Item item, TaxIntegrationOrderItemCmd taxOrderItemCmd, java.lang.String storeIdentifier, java.lang.String storeAddress, java.lang.String storeCity, java.lang.String storeCountryCode, java.lang.String storeStateCode, java.lang.String storeZipCode, java.lang.String storeGeoCode)
This methods set the information of ShipFrom.
|
protected void | setTaxIntegrationOrderItemShipTimeInfo(Item item, TaxIntegrationOrderItemCmd taxOrderItemCmd)
This method sets the information of ShipTime.
|
protected void | setTaxIntegrationOrderItemShipToInfo(Item item, TaxIntegrationOrderItemCmd taxOrderItemCmd, java.lang.String storeAddress, java.lang.String storeCity, java.lang.String storeCountryCode, java.lang.String storeStateCode, java.lang.String storeZipCode, java.lang.String storeGeoCode)
This method sets the information of ShipTo.
|
void | setTransactionType(char aType)
This method is used to tell the tax software the type of transaction.
|
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)
public void reset()
protected void addTaxTotal(Item aItem, TaxOrderItemCmd aTaxOrderItem) throws ECException
protected void addIntegrationTaxTotal(Item aItem, TaxIntegrationOrderItemCmd aTaxOrderItem) throws ECException
protected void callCodeApply(Group aGroup, TaxOrderCmd aTaxOrder, java.lang.Integer aStoreId) throws ECException
protected void callIntegrationCodeApply(Group aGroup, TaxIntegrationOrderCmd aTaxOrder, java.lang.Integer aStoreId) throws ECException
protected void callTaxApply(Item[] aItems, TaxOrderCmd aTaxOrder) throws ECException
protected void callIntegrationTaxApply(Item[] aItems, TaxIntegrationOrderCmd aTaxOrder) throws ECException
protected void callTaxTIFLoop() throws ECException
protected void callTaxIntegrationTIFLoop() throws ECException
protected void roundValues() throws ECException
protected StoreAddressAccessBean getFulfillmentCenterAddress(CommandContext aCommandContext, java.lang.Integer aFulfillmentCenterId) throws ECException
protected StoreAddressAccessBean getStoreAddress(CommandContext aCommandContext) throws ECException
public void performExecute() throws ECException
protected java.lang.Integer[] resolveTaxCategories(TaxOrderItemCmd aTaxOrderItem, java.lang.Integer aStoreId) throws ECException
protected java.lang.Integer[] resolveIntegrationTaxCategories(TaxIntegrationOrderItemCmd aTaxOrderItem, java.lang.Integer aStoreId) throws ECException
public void setTransactionType(char aType)
public java.lang.String getSellerId(Item orderItem) throws ECSystemException
public java.math.BigDecimal getTotalRecyclingFee()
protected Group[] callCodeCombine(Item[] aItems) throws ECException
protected boolean isUseComponentInfo()
protected Item[] expandKitItemsIntoComponentItems(Item[] aOldItems) throws ECException
protected java.util.List expandKitItemIntoComponentItems(Item aItem) throws ECException
protected java.math.BigDecimal getComponentUnitPrice(OrderItemComponentAccessBean aabComponent) throws ECException
protected Item createComponentItem(OrderItemAccessBean aabOrderItem, OrderItemComponentAccessBean aabComponent, java.math.BigDecimal adComponentUnitPrice) throws ECException
protected void roundValues(java.util.List alistItems) throws ECException
protected void addComponentTaxToKitItem(Item aKitItem, Item aComponentItem, TaxIntegrationOrderItemCmd aTaxIntegrationOrderItemCmd) throws ECException
protected void setTaxIntegrationOrderItemCostAndDiscount(Item item, TaxIntegrationOrderItemCmd taxOrderItemCmd) throws ECException
protected void setTaxIntegrationOrderItemFreight(Item item, TaxIntegrationOrderItemCmd taxOrderItemCmd) throws ECException
protected void setTaxIntegrationOrderItemShipFromInfo(Item item, TaxIntegrationOrderItemCmd taxOrderItemCmd, java.lang.String storeIdentifier, java.lang.String storeAddress, java.lang.String storeCity, java.lang.String storeCountryCode, java.lang.String storeStateCode, java.lang.String storeZipCode, java.lang.String storeGeoCode) throws ECException
protected void setTaxIntegrationOrderItemShipToInfo(Item item, TaxIntegrationOrderItemCmd taxOrderItemCmd, java.lang.String storeAddress, java.lang.String storeCity, java.lang.String storeCountryCode, java.lang.String storeStateCode, java.lang.String storeZipCode, java.lang.String storeGeoCode) throws ECException
protected void setTaxIntegrationOrderItemShipTimeInfo(Item item, TaxIntegrationOrderItemCmd taxOrderItemCmd) throws ECException
protected void setTaxIntegrationOrderItemOtherInfo(Item item, TaxIntegrationOrderItemCmd taxOrderItemCmd) throws ECException