public class PrimeRefundCmdImpl extends ARefundTaskCmdImpl implements PrimeRefundCmd
Behaviour
This command utilizes these access beans
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String | BUYER_ORG_DN
The buyer organization DN
|
protected static java.lang.String | BUYER_ORG_NAME
The buyer organization name
|
protected static java.lang.String | CLASSICAL_CREDIT_POLICY_NAME
The credit line policy name for classical payment
|
protected static java.lang.String | CREDIT_LINE_NUMBER
The credit line number
|
protected static java.lang.String | CREDIT_POLICY_NAME
The credit line policy name for new payment component
|
protected static java.lang.String | CREDIT_POLICY_TYPE
The payment policy type
|
protected static java.lang.String | PPC_MODE
The substring that represents new payment component is used in properties
|
protected static java.lang.String | REFUND_IS_NOT_ALLOWABLE
The message when the payment method is not allowed to do refund
|
protected static java.lang.String | REFUND_POLICY_CREDIT
The return payment policy id of credit line
|
protected static java.lang.String | REFUND_POLICY_ORIGINAL_PAYMENT_METHOD
The return payment policy id of using original payment method
|
protected static java.lang.String | WC_ACCOUNT_ID
The WebSphere Commerce account ID
|
Constructor and Description |
---|
PrimeRefundCmdImpl()
This method is the default constructor of this class.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Boolean | getPermissionForRefund(java.lang.Long orderId, java.math.BigDecimal localAmount)
This method returns if the refund with specified amount is permitted for current order.
|
protected java.sql.Timestamp | getTimestampNow()
This method gets the NOW timestamp.
|
protected java.math.BigDecimal | getTotalRefund()
This method returns the total refund for the RMA.
|
protected boolean | isRefund(RMAAccessBean anRMAAB)
This method means if there is a refund, There is a refund if the total credit in the RMA is > 0.
|
void | performExecute()
This method executes the command, which creates refund instructions and RMA for Payment Rules in corresponding WebSphere Commerce Payments tables(EDPREFINST and EDPRMA), respectively.
|
void | processFG()
This method executes the foreground tasks, which creates the refund data idempotently.
|
void | reset()
This method resets the instance variable of this command.
|
void | validateParameters()
This method checks if the mandatory parameters is present.
|
protected static final transient java.lang.String CREDIT_POLICY_TYPE
protected static final transient java.lang.String REFUND_POLICY_CREDIT
protected static final transient java.lang.String REFUND_POLICY_ORIGINAL_PAYMENT_METHOD
protected static final transient java.lang.String CLASSICAL_CREDIT_POLICY_NAME
protected static final transient java.lang.String CREDIT_POLICY_NAME
protected static final transient java.lang.String CREDIT_LINE_NUMBER
protected static final transient java.lang.String WC_ACCOUNT_ID
protected static final transient java.lang.String BUYER_ORG_NAME
protected static final transient java.lang.String BUYER_ORG_DN
protected static final transient java.lang.String PPC_MODE
protected static final transient java.lang.String REFUND_IS_NOT_ALLOWABLE
public PrimeRefundCmdImpl()
public void performExecute() throws ECException
public void processFG() throws EDPException, ECException
This method executes the foreground tasks, which creates the refund data idempotently.
public void reset()
public void validateParameters() throws ECException
protected boolean isRefund(RMAAccessBean anRMAAB) throws ECSystemException
protected java.sql.Timestamp getTimestampNow()
public java.lang.Boolean getPermissionForRefund(java.lang.Long orderId, java.math.BigDecimal localAmount) throws EDPException, ECException
protected java.math.BigDecimal getTotalRefund() throws ECSystemException