public abstract class ARefundTaskCmdImpl extends AEDPTaskCmdImpl implements ARefundTaskCmd
Constructor and Description |
---|
ARefundTaskCmdImpl() |
Modifier and Type | Method and Description |
---|---|
java.lang.String | getCurrency()
This method returns the current currency.
|
java.lang.Integer | getCurrentStoreId()
This method returns the store id through RMA.
|
protected java.util.HashMap | getListOfActionDetailLists()
This method returns the list of refund action lists.
|
protected java.util.Collection | getNeverPersistedSensitiveInformationOfBackendPI(PaymentInstruction paymentInstructionVO)
This method gets name of the parameters configured as neverPersist=true in
|
java.lang.Long | getPaymentPolicyId()
This method returns the payment policy ID and the corresponding policy will be used as the refund method.
|
java.util.ArrayList | getRefundInstructions()
This method returns the refund instructions.
|
protected RMAAccessBean | getRMAAB()
This method returns the RMA access bean.
|
java.lang.Long | getRmaId()
This method returns the identifier of current RMA.
|
protected boolean | isCompatiblePaymentUsedByOrder(java.lang.Long policyId)
This method returns if the specified payment policy is in compatible mode.
|
protected boolean | isPIDependentCreditRequired(com.ibm.commerce.edp.refunds.RefundInstructionData riData)
This method helps to determine if this payment instruction requires dependent credit.
|
boolean | isProcessBGExecutableInFG()
This method checks if the background tasks can be processed in the foreground thread.
|
protected java.lang.String | processDependentRefundInstruction(int phase, java.math.BigDecimal amount, java.lang.Integer localStoreId, java.lang.Long localRmaId, java.lang.Long riId)
This method processes the refund instruction for dependent credit for this phase.
|
protected java.lang.String | processRefundInstruction(int phase, java.math.BigDecimal amount, java.lang.Integer localStoreId, java.lang.Long localRmaId, java.lang.Long riId)
This method processes the refund instruction for this phase.
|
void | reset()
This method resets the instance variable of this command.
|
protected java.util.Map | resolveNeverPersistRefundSensitiveInformation(TypedProperty localRequestProperties)
Resolve the sensitive refund information which is set as neverPersist from the request properties.
|
void | setBgJobStatusInDb(java.lang.Integer bgJobStatus)
This method sets the background status on the current refund.
|
void | setCurrency(java.lang.String localCurrency)
This method sets the current currency.
|
protected void | setListOfActionDetailLists(java.util.HashMap paralistOfActionDetailLists)
This method sets a list of refund action lists.
|
void | setPaymentPolicyId(java.lang.Long localPaymentPolicyId)
This method sets the payment policy ID and the corresponding policy will be used as the refund method, this value is set by ReturnProcessCmdImpl.
|
void | setRefundInstructions(java.util.ArrayList localRefundInstructions)
This method sets the refund instructions.
|
void | setRMAAB(RMAAccessBean anRMAAB)
This method sets the RMA being accessed.
|
void | setRmaId(java.lang.Long localRmaId)
This method sets the identifier of current RMA(Return Merchandise Authorization).
|
protected boolean | synchronizeEDPRefundWithBackendData()
This method reads the payment objects from payment processing system and updates the atomic refund and releases pending amounts accordingly in Payment Rules.
|
java.lang.String | toString()
This method converts this request data into a human-readable string.
|
void | validateInsideProcessFG()
This method validates if the required parameters are present for the foreground tasks.
|
public void setRmaId(java.lang.Long localRmaId)
public final java.lang.Long getRmaId()
public void setCurrency(java.lang.String localCurrency)
public java.lang.String getCurrency()
public java.util.ArrayList getRefundInstructions()
public void setRefundInstructions(java.util.ArrayList localRefundInstructions)
public java.lang.String toString()
public void validateInsideProcessFG() throws EDPException
protected void setListOfActionDetailLists(java.util.HashMap paralistOfActionDetailLists)
protected java.util.HashMap getListOfActionDetailLists()
protected java.lang.String processRefundInstruction(int phase, java.math.BigDecimal amount, java.lang.Integer localStoreId, java.lang.Long localRmaId, java.lang.Long riId) throws EDPException, ECException
protected java.lang.String processDependentRefundInstruction(int phase, java.math.BigDecimal amount, java.lang.Integer localStoreId, java.lang.Long localRmaId, java.lang.Long riId) throws ECException, EDPException
protected boolean synchronizeEDPRefundWithBackendData() throws ECException, EDPException
public boolean isProcessBGExecutableInFG()
public void setBgJobStatusInDb(java.lang.Integer bgJobStatus) throws J2EEException, InputException, ECException
public java.lang.Integer getCurrentStoreId() throws ECException
public void setRMAAB(RMAAccessBean anRMAAB)
protected RMAAccessBean getRMAAB()
public void reset()
public java.lang.Long getPaymentPolicyId()
public void setPaymentPolicyId(java.lang.Long localPaymentPolicyId)
protected boolean isCompatiblePaymentUsedByOrder(java.lang.Long policyId) throws ECException
protected boolean isPIDependentCreditRequired(com.ibm.commerce.edp.refunds.RefundInstructionData riData) throws InvalidDataException, RuleException, ECException
protected java.util.Map resolveNeverPersistRefundSensitiveInformation(TypedProperty localRequestProperties) throws ECApplicationException
protected java.util.Collection getNeverPersistedSensitiveInformationOfBackendPI(PaymentInstruction paymentInstructionVO) throws EDPException, ECException
\xml\config\payments\ppc\plugins\PaymentSystemPluginMapping.xml. Note that if the payment instruction is using a classic payment system, it is not allowed to call this method. This is because the compatible payment does not have the relevant PPC configuration.