com.ibm.commerce.order.commands

Class CheckSubscriptionCmdImpl

  • All Implemented Interfaces:
    com.ibm.commerce.command.CacheableECCommand, ECCommand, ECTargetableCommand, TaskCommand, CheckSubscriptionCmd, 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 CheckSubscriptionCmdImpl
    extends TaskCommandImpl
    implements CheckSubscriptionCmd
    This command check order's attributes.

    Behavior

    The command does the following:

    See Also:
    Serialized Form
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        IBM copyright notice field.
        See Also:
        Constant Field Values
    • Constructor Detail

      • CheckSubscriptionCmdImpl

        public CheckSubscriptionCmdImpl()
    • Method Detail

      • needProcessPayment

        public boolean needProcessPayment(OrderAccessBean abOrder)
                                   throws ECException
        This method check whether the order requires process payment or not. If all subscriptions are up-front payment, needProcessPayment return true. If there's one subscription is recurring payment (paymentFrequency=fulfillmentFrequency), check all other order items. If there's normal order item, throw exception. If there's subscription with up-front payment, throw exception. If all others are subscription with recurring payment, return false.
        Specified by:
        needProcessPayment in interface CheckSubscriptionCmd
        Parameters:
        abOrder -
        Returns:
        boolean value whether need to processPayment or not
        Throws:
        ECException