public interface FinalizePaymentCmd extends AEDPStoreTaskCmd
UpdateReleaseManifestStatusCmdImpl.It ensures that funds have been captured because goods have been shipped.
This command is associated with the fulfillment of the order release. It ensures that funds have been captured because goods have been shipped. It occurs when the order items in the release are fulfilled (items are boxed and shipped
The possible payment actions associated with this event are: Approve, Deposit, and ReverseApproval.
For example, in an order release, the items being purchased are packaged and the package is scanned.
A shipment confirmation notice is sent and the order items are marked "shipped." At this point,
FinalizePaymentCmd is called. Payment rules are read and payment actions are identified to
achieve the desired target state for the complete reservation amount (the sum of all Payment Rules amounts).
Assuming that a payment approval has already occurred, the payment amount is checked against the
earlier approved amount to see if it is less than, equal to, or greater than the approved payment
amount for the payment method.
Amounts already in an approved state must be deposited. Depending on the core definition of the deposit payment action for the payment method, deposits can occur right away, even if the approved and deposit amounts do not match, or later when the total approved and deposited amount is actually reached.
If a payment action with the payment back-end system fails, a tickler is created to notify a Customer Service Representative.The default implementation of this command is
|Modifier and Type||Field and Description|
The IBM Copyright notice field.
The default implementation of this command.
The full name of this command.
|Modifier and Type||Method and Description|
This method sets the amount to be finalized.
This method sets the ID of the release for which the amount is being finalized.
getCurrency, getEDPResults, getLanguageId, getLocale, getOrderChannel, getOrderId, setEDPResults, setOrderId
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, performExecute, setCommandTarget, setCommandTargetName, setOutputProperties
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, performExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
static final java.lang.String COPYRIGHT
static final java.lang.String defaultCommandClassName
static final java.lang.String NAME
void setFinalizationAmount(java.math.BigDecimal finalizationAmount)
finalizationAmount- A BigDecimal that specifies the amount to be finalized.
void setReleaseId(java.lang.Long releaseId)
releaseId- A Long that specifies the release identifier.