This processor determines the values that need to be set into the amount field of
a PaymentGroup. This processor iterates through all the Relationships determining
the amounts to set into the PaymentGroups based on the Relationship type. Any amounts
set in the amount property of a PaymentGroup will be overwritten here.

getRetCodes

getMarginOfError

public double getMarginOfError()

Returns the marginOfError

setMarginOfError

public void setMarginOfError(double pMarginOfError)

Sets the marginOfError. The margin of error determines what margin of error
the double arithmatic will allow. The default value is 0.00001. To widen the
margin, increase the value, to narrow it, decrease the value.

getPricingTools

runProcess

This method determines the amount that needs to be set into the amount field of
a PaymentGroup. This processor iterates through all the Relationships determining
the amounts to set into the PaymentGroups based on the Relationship type. Any amounts
set in the amount property of a PaymentGroup will be overwritten here.
This method can be executed in one of two modes, return an error in pResult, or throw
an exception when the first error is encountered. The default mode is to throw
exceptions. To change it, add a RETURNERRORS entry into pParam with the value set
to a Boolean object with a value of true.
This method requires that an Order, OrderManager, and optionally a Locale object
and a flag which instructs the processor to return errors be supplied
in pParam in a HashMap. Use the PipelineConstants class' static members to key
the objects in the HashMap.

addHashedError

This method adds an error to the PipelineResult object. This method, rather than
just storing a single error object in pResult, stores a Map of errors. This allows more
than one error to be stored using the same key in the pResult object. pKey is
used to reference a HashMap of errors in pResult. So, calling
pResult.getError(pKey) will return an object which should be cast to a Map.
Each entry within the map is keyed by pId and its value is pError.

Parameters:

pResult - the PipelineResult object supplied in runProcess()

pKey - the key to use to store the HashMap in the PipelineResult object

pId - the key to use to store the error message within the HashMap in the
PipelineResult object