The calculateRefundAmounts
pipeline chain calculates the suggested and actual refund amounts for a return. The pipeline chain’s transaction mode is TX_REQUIRED.
The following section describes the processor in the pipeline chain.
resetRefundAmounts
This processor resets all refund amounts to 0.
Transactional Mode | TX_MANDATORY |
Component |
|
Object |
|
Transitions | If the processor returns 1, call the |
generateItemCostAdjustments
This processor generates the ItemCostAdjustments
from which suggested refund amounts are calculated.
Transactional Mode | TX_MANDATORY |
Component |
|
Object |
|
Transitions | If the processor returns 1, call the |
calculateSuggestedRefunds
This processor calculates the suggested refund amounts for each ReturnItem
and the ReturnRequest
.
Transactional Mode | TX_MANDATORY |
Component |
|
Object |
|
Transitions | If the processor returns 1, call the |
addSuggestedAmountsForNonReturnItems
This processor adjusts the suggested amount based on the ItemCostAdjustments
generated for non-return items.
Transactional Mode | TX_MANDATORY |
Component |
|
Object |
|
Transitions | If the processor returns 1, call the |
setActualRefunds
This processor sets the actual refund amounts on the ReturnRequest
and each ReturnItem
from the suggested refund amounts.
Transactional Mode | TX_MANDATORY |
Component |
|
Object |
|
Transitions | If the processor returns 1, call the |
calculateReturnFee
This processor sets the return fee.
Transactional Mode | TX_MANDATORY |
Component |
|
Object |
|
Transitions | None, this is the last link in the chain and will cause the |