public class PPCCreditEditCmdImpl extends ToolsControllerCommandImpl implements PPCCreditEditCmd, ECConstants, ECToolsConstants, com.ibm.commerce.base.helpers.EJBConstants
Name | XPath | Description |
---|---|---|
creditId | /XML/creditId | The identifier of current credit object. Mandatory. |
processedAmount | /XML/processedAmount | The amount of current credit object to process. |
expectedAmount | /XML/expectedAmount | The expected amount that will be credited under this credit, the actual credited amount must be less than or equal to this amount. |
creditedAmount | /XML/creditedAmount | The credited amount of the credit transaction under this credit. |
creditingAmount | /XML/creditingAmount | The amount of the pending credit transaction under this credit. |
reversingCreditedAmount | /XML/reversingCreditedAmount | The cumulative amount of all the pending reverse credit transactions under this credit. |
reasonCode | /XML/reasonCode | The reason code of the credit transaction. |
responseCode | /XML/responseCode | The response code of the credit transaction. |
referenceNumber | /XML/referenceNumber | The reference number of the credit transaction. |
extDataSize | /XML/extDataSize | The size of extended data of this credit object. |
extData | /XML/extData | The extended data of this credit object. |
comment | /XML/comment | The comment information of this credit object. |
Modifier and Type | Field and Description |
---|---|
static java.lang.String | CLASS_NAME
The internal copyright field.
|
static java.lang.String | COPYRIGHT
The internal copyright field.
|
Constructor and Description |
---|
PPCCreditEditCmdImpl() |
Modifier and Type | Method and Description |
---|---|
protected void | checkNumberFormatException()
This method checks that the numeric fields are in the correct numeric format.
|
java.lang.String | getCreditedAmount()
This method returns the credited amount of current credit.
|
java.lang.String | getCreditId()
This method returns the identifier of current credit to edit.
|
java.lang.String | getCreditingAmount()
This method returns the crediting amount of current credit.
|
java.lang.String | getExpectedAmount()
This method returns the expected amount of current credit.
|
java.lang.String | getExpireTime()
This method returns the expire time of current credit.
|
ExtendedData | getExtData()
This method returns the extended data of current credit.
|
PaymentContext | getPaymentContext()
The method returns the PaymentContext that contains the order channel id, locale, payment configuration group id, and store id.
|
java.lang.String | getProcessAmount()
This method returns the amount processed by current credit.
|
java.lang.String | getReasonCode()
This method returns the reason code of current credit.
|
java.lang.String | getReferenceNumber()
This method returns the reference number of current credit.
|
AccessVector | getResources()
This method returns the access vector accessed by this command.
|
java.lang.String | getResponseCode()
This method returns the response code of current credit.
|
java.lang.String | getReversingCreditedAmount()
This method returns the amount that is credited but being reversed.
|
protected void | handleSubmitError(ECException e)
This method constructs and returns the error message.
|
void | performExecute()
This method performs the updating of credit and extended data information, which calls the corresponding API provided by WebSphere Commerce Payments.
|
void | setCreditedAmount(java.lang.String string)
This method sets the credited amount of current credit.
|
void | setCreditId(java.lang.String newCreditId)
This method sets the identifier of current credit to edit.
|
void | setCreditingAmount(java.lang.String string)
This method sets the crediting amount of current credit.
|
void | setExpectedAmount(java.lang.String string)
This method sets the expected amount of current credit.
|
void | setExpireTime(java.lang.String string)
This method sets the expire time of current credit.
|
void | setExtData(ExtendedData map)
This method sets the extended data of current credit.
|
void | setProcessAmount(java.lang.String string)
This method sets the amount processed by current credit.
|
void | setReasonCode(java.lang.String string)
This method sets the reason code of current credit.
|
void | setReferenceNumber(java.lang.String string)
This method sets the reference number of current credit.
|
void | setResponseCode(java.lang.String string)
This method sets the response code of current credit.
|
void | setReversingCreditedAmount(java.lang.String string)
This method sets the amount that is credited but being reversed.
|
void | validateParameters()
This method gets information from requestProperties and sets the information into the command local variables.
|
public static final java.lang.String COPYRIGHT
public static final java.lang.String CLASS_NAME
public java.lang.String getCreditId()
public void setCreditId(java.lang.String newCreditId)
public java.lang.String getExpireTime()
public void setExpireTime(java.lang.String string)
public void validateParameters() throws ECException
public AccessVector getResources() throws ECException
public void performExecute() throws ECException
protected void checkNumberFormatException() throws ECApplicationException
protected void handleSubmitError(ECException e) throws ECApplicationException
public PaymentContext getPaymentContext() throws java.lang.Exception
public java.lang.String getProcessAmount()
public void setProcessAmount(java.lang.String string)
public java.lang.String getCreditedAmount()
public java.lang.String getCreditingAmount()
public java.lang.String getExpectedAmount()
public void setExpectedAmount(java.lang.String string)
public java.lang.String getReversingCreditedAmount()
public void setCreditedAmount(java.lang.String string)
public void setCreditingAmount(java.lang.String string)
public void setReversingCreditedAmount(java.lang.String string)
public java.lang.String getReasonCode()
public void setReasonCode(java.lang.String string)
public void setResponseCode(java.lang.String string)
public java.lang.String getResponseCode()
public ExtendedData getExtData()
public void setExtData(ExtendedData map)
public java.lang.String getReferenceNumber()
public void setReferenceNumber(java.lang.String string)