com.ibm.commerce.returns.commands

Class CalculateReturnItemAdjustmentFlatPolicyCmdImpl

  • All Implemented Interfaces:
    BusinessPolicyCommand, com.ibm.commerce.command.CacheableECCommand, ECCommand, ECTargetableCommand, TaskCommand, CalculateReturnItemAdjustmentPolicyCmd, com.ibm.websphere.cache.Sizeable, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, com.ibm.websphere.command.TargetableCommand, java.io.Serializable


    public class CalculateReturnItemAdjustmentFlatPolicyCmdImpl
    extends CalculateReturnItemAdjustmentPolicyCmdImpl
    implements CalculateReturnItemAdjustmentPolicyCmd
    Calculate the adjustment for a return merchandise authorization (RMA) item based on a flat fee. The properties passed to this policy may be of the following form:
    • default=CAD-15.00 (this value is used if no other days_i/flat_i pair applies).
    • days_i=30, flat_i=CAD-10.24 (where i changes).
    If a days property is specified and no flat property, then flat=0 is assumed (that is, no adjustment). If the number of days since the item was shipped is more than any of the days_i properties. Assume flat is equal to 0 (unless a default value is specified).

    An example property string is:

    • days_1=30&flat_1=CAD-5.00&flat_1=USD-3.00&days_2=90&flat_2=CAD-10&default=CAD-20.
    This translates into "If the item is returned within 30 days of it being shipped, the RMA is in CAD currency, the charge is $5.00. If the RMA is in USD currency, the charge is $3.00 . If it is returned within 90 days, the charge is a $10.00 CAD. And if the RMA is in USD and there is a conversion from CAD->USD. They will be charged the equivalent of the converted amount in USD (or another currency). Otherwise, there is a $20.00 CAD charge (or the equivalent if there is a conversion to the RMA currency)."

    If there is no conversion to the RMA currency for a particular days_i value then the default will be used. If there is no conversion to the RMA currency for the default then 0 will be used.

    See Also:
    Serialized Form