public class PPCPaymentEditCmdImpl extends ToolsControllerCommandImpl implements PPCPaymentEditCmd, ECConstants, ECToolsConstants, com.ibm.commerce.base.helpers.EJBConstants
Name | XPath | Description |
---|---|---|
paymentId | /XML/paymentId | The identifier of current payment object. Mandatory. |
processedAmount | /XML/processedAmount | The amount of current payment object to process. |
reasonCode | /XML/reasonCode | The reason code of the payment transaction. |
responseCode | /XML/responseCode | The response code of the payment transaction. |
referenceNumber | /XML/referenceNumber | The reference number of the payment transaction. |
pendingType | /XML/pendingType | The pending type when the payment transaction is pending. The value could be 'approve', 'approveAndDeposit', or 'deposit'. |
avsCommonCode | /XML/avsCommonCode | The avs common code returned by the payment transaction, which is useful when pending type is 'approve' or 'approveAndDeposit'. |
expiredYear | /XML/expiredYear | The expired year of the payment transaction, which is useful when pending type is 'approve' or 'approveAndDeposit'. |
expiredMonth | /XML/expiredMonth | The expired month of the payment transaction, which is useful when pending type is 'approve' or 'approveAndDeposit'. |
expiredDay | /XML/expiredDay | The expired day of the payment transaction, which is useful when pending type is 'approve' or 'approveAndDeposit'. |
extDataSize | /XML/extDataSize | The size of the extended data of this payment object. |
extData | /XML/extData | The extended data of this payment object. |
comment | /XML/comment | The comment information of this payment object. |
Modifier and Type | Field and Description |
---|---|
static java.lang.String | CLASS_NAME
class name
|
static java.lang.String | COPYRIGHT
The internal copyright field.
|
Constructor and Description |
---|
PPCPaymentEditCmdImpl() |
Modifier and Type | Method and Description |
---|---|
protected void | checkIllegalArgumentException()
This method verifies that the expired time field is in the correct timestamp format.
|
protected void | checkNumberFormatException()
This method checks that the numeric fields are in the correct numeric format.
|
short | getAvsCommonCode()
This method returns AVS (Address Verification Service) code.
|
long | getExpiredTime()
This method returns the expired time specified for this payment.
|
ExtendedData | getExtData()
This method returns the extended data of current payment.
|
PaymentContext | getPaymentContext()
The method returns the PaymentContext that contains the order channel id, locale, payment configuration group id, and store id.
|
java.lang.String | getPaymentId()
This method returns current payment identifier.
|
java.lang.String | getProcessAmount()
This method returns the amount to process in current payment transaction.
|
java.lang.String | getReasonCode()
This method returns the reason code of current payment.
|
java.lang.String | getReferenceNumber()
This method returns the reference number of current payment.
|
AccessVector | getResources()
This method returns the access vector accessed by this command.
|
java.lang.String | getResponseCode()
This method returns the response code of current payment.
|
protected void | handleSubmitError(ECException e)
This method constructs and returns the error message.
|
void | performExecute()
This method performs the updating of payment and extended data information using the corresponding API in WebSphere Commerce Payments.
|
void | setAvsCommonCode(short i)
This method sets the AVS code.
|
void | setExpiredTime(long string)
This method sets the expired time specified for this payment.
|
void | setExtData(ExtendedData map)
This method sets the extended data of current payment.
|
void | setPaymentId(java.lang.String newPaymentId)
This method sets current payment identifier.
|
void | setProcessAmount(java.lang.String string)
This method sets the amount to process in current payment transaction.
|
void | setReasonCode(java.lang.String string)
This method sets the reason code of current payment.
|
void | setReferenceNumber(java.lang.String string)
This method sets the reference number of current payment.
|
void | setResponseCode(java.lang.String string)
This method sets the response code of current payment.
|
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 void validateParameters() throws ECException
public AccessVector getResources() throws ECException
public void performExecute() throws ECException
protected void checkNumberFormatException() throws ECApplicationException
protected void checkIllegalArgumentException() throws ECApplicationException
protected void handleSubmitError(ECException e) throws ECApplicationException
public PaymentContext getPaymentContext() throws java.lang.Exception
public java.lang.String getPaymentId()
public void setPaymentId(java.lang.String newPaymentId)
public long getExpiredTime()
public void setExpiredTime(long string)
public short getAvsCommonCode()
public void setAvsCommonCode(short i)
public java.lang.String getProcessAmount()
public void setProcessAmount(java.lang.String string)
public java.lang.String getReasonCode()
public void setReasonCode(java.lang.String string)
public void setReferenceNumber(java.lang.String string)
public java.lang.String getReferenceNumber()
public void setResponseCode(java.lang.String string)
public java.lang.String getResponseCode()
public ExtendedData getExtData()
public void setExtData(ExtendedData map)