The applySelectedItems
pipeline chain processes the selected ReturnItems
for the return. Selected items are those whose quantityToReturn
property is greater than 0. The pipeline chain’s transaction mode is TX_REQUIRED.
The following section describes the processor in the pipeline chain.
validateSelectedItems
This processor validates that there are ReturnItems
with valid return quantities.
Transactional Mode | TX_MANDATORY |
Component |
|
Object |
|
Transitions | If the processor returns 1, call the |
createReturnItemList
This processor regenerates the ReturnItemList
.
Transactional Mode | TX_MANDATORY |
Component |
|
Object |
|
Transitions | If the processor returns 1, call the |
initReturnCalculationOrder
This processor creates a new Return Calculation Order.
Transactional Mode | TX_MANDATORY |
Component |
|
Object |
|
Transitions | If the processor returns 1, call the |
resetGWPMetaData
This processor resets the properties that contain Gift With Purchase meta-data that is needed to generate give selections for the replacement order when gifts are being returned during an exchange. This processor also regenerates GWP meta-data on the replacement order.
Transactional Mode | TX_MANDATORY |
Component |
|
Object |
|
Transitions | If the processor returns 1, call the |
calculateNewAmounts
This processor calculates new suggested refund and actual refund amounts, as well as promotion value adjustments.
Transactional Mode | TX_MANDATORY |
Component |
|
Object |
|
Transitions | If the processor returns 1, call the |
validateRefundTotalOnSelect
This processor validates the refund total if the return has a refund greater than 0.
Transactional Mode | TX_MANDATORY |
Component |
|
Object |
|
Transitions | If the processor returns 1, call the |
initRefundMethods
This processor initializes the refund methods, and if the return is an exchange, the generated store credits used for the replacement order.
Transactional Mode | TX_MANDATORY |
Component |
|
Object |
|
Transitions | If the processor returns 1, call the |
updateStoreCreditAllocationsOnSelect
This processor updates the refund store credits based on the refund method allocations.
Transactional Mode | TX_MANDATORY |
Component |
|
Object |
|
Transitions | None, this is the last link in the chain and will cause the |