The updateShippingGroup
chain is executed when called by the handleShippingGroupModification
chain.
The following sections describe each processor in the pipeline chain.
handleShippingGroupState
Checks the newValue
property of the modification to determine what state the modification is requesting that the shipping group be set to. If the value is REMOVED, control passes to completeRemoveOrderChain
. If the value is NO_PENDING_ACTION, control passes to completeOrderChain
. If the value is PENDING_MERCHANT_ACTION, control passes to failOrder
. If the value is anything else then execution of this chain stops.
Transactional Mode | TX_MANDATORY |
Component |
|
Object |
|
Transitions | Return value of 1 executes the |
completeRemoveOrderChain
This processor executes the completeRemoveOrder
chain. After execution, execution of this chain then stops.
Transactional Mode | TX_MANDATORY |
Component |
|
Object |
|
Transitions | None. This is the last link in the chain and causes the |
completeOrderChain
This processor executes the completeOrder
chain. After execution, execution of this chain then stops.
Transactional Mode | TX_MANDATORY |
Component |
|
Object |
|
Transitions | None. This is the last link in the chain and causes the |
failOrder
Sets the state of the order to PENDING_MERCHANT_ACTION, and adds this modification to the list of modifications.
Transactional Mode | TX_MANDATORY |
Component |
|
Object |
|
Transitions | None. This is the last link in the chain and causes the |