Class ServiceProviderCheckSubscriptionCmdImpl

  • All Implemented Interfaces:, ECCommand, ECTargetableCommand, TaskCommand, CheckSubscriptionCmd,,,,,,

    public class ServiceProviderCheckSubscriptionCmdImpl
    extends TaskCommandImpl
    implements CheckSubscriptionCmd
    This command check order's attributes.


    The command does the following:

    See Also:
    Serialized Form
    • Field Detail


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

      • ServiceProviderCheckSubscriptionCmdImpl

        public ServiceProviderCheckSubscriptionCmdImpl()
    • 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
        abOrder -
        boolean value whether need to processPayment or not
      • reset

        public void reset()
        reset all parameters
        Specified by:
        reset in interface
        reset in class AbstractECTargetableCommand