com.ibm.commerce.order.commands

Interface CheckSubscriptionCmd

  • All Superinterfaces:
    com.ibm.websphere.command.CacheableCommand, com.ibm.commerce.command.CacheableECCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, ECCommand, java.io.Serializable, com.ibm.websphere.command.TargetableCommand, TaskCommand
    All Known Implementing Classes:
    CheckSubscriptionCmdImpl, ServiceProviderCheckSubscriptionCmdImpl


    public interface CheckSubscriptionCmd
    extends TaskCommand
    This command check subscription attributes. for an order.
    • Field Detail

      • COPYRIGHT

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

        static final java.lang.String NAME
        The name of the Command Interface class.
        See Also:
        Constant Field Values
      • defaultCommandClassName

        static final java.lang.String defaultCommandClassName
        The default implementation class.
        See Also:
        Constant Field Values
    • Method Detail

      • isSubscriptionEnabled

        boolean isSubscriptionEnabled()
                               throws ECException
        Check whether subscription function is enabled
        Returns:
        boolean whether subscription enabled
        Throws:
        ECException
      • needProcessPayment

        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.
        Parameters:
        abOrder -
        Returns:
        boolean value whether need to processPayment or not
        Throws:
        ECException