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

/atg/commerce/custsvc/returns/processor/ResetRefundAmounts

Object

atg.commerce.csr.returns.processor.ProcResetRefundAmounts

Transitions

If the processor returns 1, call the generateItemCostAdjustments processor.

generateItemCostAdjustments

This processor generates the ItemCostAdjustments from which suggested refund amounts are calculated.

Transactional Mode

TX_MANDATORY

Component

/atg/commerce/custsvc/returns/processor/GenerateItemCostAdjustments

Object

atg.commerce.csr.returns.processor.ProcGenerateItemCostAdjustments

Transitions

If the processor returns 1, call the calculateSuggestedRefunds processor.

calculateSuggestedRefunds

This processor calculates the suggested refund amounts for each ReturnItem and the ReturnRequest.

Transactional Mode

TX_MANDATORY

Component

/atg/commerce/custsvc/returns/processor/CalculateSuggestedRefunds

Object

atg.commerce.csr.returns.processor.ProcCalculateSuggestedRefunds

Transitions

If the processor returns 1, call the addSuggestedAmountsForNonReturnItems processor.

addSuggestedAmountsForNonReturnItems

This processor adjusts the suggested amount based on the ItemCostAdjustments generated for non-return items.

Transactional Mode

TX_MANDATORY

Component

/atg/commerce/custsvc/returns/processor/
  AdjustSuggestedAmountsForNonReturnItems

Object

atg.commerce.csr.returns.processor.
  ProcAdjustSuggestedAmountsForNonReturnItems

Transitions

If the processor returns 1, call the setActualRefunds processor.

setActualRefunds

This processor sets the actual refund amounts on the ReturnRequest and each ReturnItem from the suggested refund amounts.

Transactional Mode

TX_MANDATORY

Component

/atg/commerce/custsvc/returns/processor/
  SetActualRefundsFromSuggestedRefunds

Object

atg.commerce.csr.returns.processor.
  ProcSetActualRefundsFromSuggestedRefunds

Transitions

If the processor returns 1, call the calculateReturnFee processor.

calculateReturnFee

This processor sets the return fee.

Transactional Mode

TX_MANDATORY

Component

/atg/commerce/custsvc/returns/processor/CalculateReturnFee

Object

atg.commerce.csr.returns.processor.ProcCalculateReturnFee

Transitions

None, this is the last link in the chain and will cause the PipelineManager to return to the caller.


Copyright © 1997, 2015 Oracle and/or its affiliates. All rights reserved. Legal Notices