public class SubscriptionCancelScheduledActionImpl extends AbstractSubscriptionScheduledActionCmdImpl
SubscriptionServerConstants.TRANSIENT_STATE_CANCEL_ORDER. As the
first step the class will attempt to cancel the parent order or a recurring
order or the parent order item of a subscription by invoking the
cancelParentOrder method. In case of subscriptions, the shopper
is refunded some amount proportional to the number of shipments remaining.
Once this is successful, the state will be updated to
SubscriptionServerConstants.TRANSIENT_STATE_DELETE_JOBS_AFTER_ORDER_CANCEL
. The second step is to delete all the future scheduled jobs of the
subscription by invoking the deleteSubscriptionJobs method. Once
this is successful, the method will update the state to
SubscriptionServerConstants.TRANSIENT_STATE_CANCEL_SUBSCRIPTION.
The third step is to update the status of the subscription to CANCELLED. In
case of any known order exception while canceling the parent order, this
class will notify the merchant by sending a mail with the reason for the
exception.AbstractSubscriptionScheduledActionCmdImpl.StackEntry| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COPYRIGHT
IBM Copyright notice field.
|
MAX_RETRIES_FOR_SUBSCRIPTION_STATE_UPDATENAME| Constructor and Description |
|---|
SubscriptionCancelScheduledActionImpl()
Default constructor for the class.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getDelayBetweenRetries()
This method sets a static delay of 0 seconds for retries
|
getActionParameters, getSubscriptionId, initialize, performExecute, setActionParameters, setExeceptionForFailure, setScheduledAction, setSubscriptionIdaccessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParametersexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCachegetCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicyequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCachegetCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputPropertiescheckIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameterspublic static final java.lang.String COPYRIGHT