public class PaymentEventListenerImpl
extends com.ibm.commerce.event.impl.AbstractECEventListener
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM Copyright field.
|
Constructor and Description |
---|
PaymentEventListenerImpl() |
Modifier and Type | Method and Description |
---|---|
protected void | blockOrder(java.lang.Long orderId, CommandContext cmdctx)
This method blocks the order with specified order ID, which calls OrderBlockManagerInterface to block the order, where the block reason ID with 5090(AVS Requires Attention) is passed in.
|
protected void | createTickler(java.lang.String reasonCode, java.lang.String reason, java.lang.String[] comments, java.lang.Long orderId)
This method help to create and send tickler
|
java.lang.Class | getECEventContainer()
This method gets the eventContainer class, which acts as the event container of payment rules.
|
java.util.Set | getEvents()
This method gets the events, which contains all kinds of events could be processed by this listener class.
|
protected java.util.HashMap | getHashOfActionDetailLists()
This method gets the HashMap which contains the action lists for each payment instruction.
|
protected java.util.HashMap | getHashOfEditActionDetailLists()
This method gets the HashMap which contains the edit action lists for each payment instruction.
|
protected java.util.HashMap | getHashOfReversalActionDetailLists()
This method gets the HashMap which contains the reversal action lists for each payment instruction.
|
java.util.Locale | getLocale()
This method gets the current locale.
|
protected com.ibm.commerce.edp.model.ObjectModelFacadeLocal | getOMF()
This method gets the Object Model Facade.
|
java.lang.String | getOrderCannel()
This method gets the current order channel.
|
java.lang.String | getPaymentGroupId()
This method gets the current payment group id.
|
protected com.ibm.commerce.edp.refunds.RefundFacadeLocal | getRefundFacade()
This method gets the Object Model Facade.
|
java.lang.Integer | getStoreId()
This method gets the current store id.
|
protected EDPResults | getTriggerResults()
This method gets the results after trigger action.
|
protected void | processBGPrimeWork()
This method processes the prime payment backend job, which executes the payment actions in the action lists.
|
void | processEvent(org.eclipse.hyades.logging.events.cbe.CommonBaseEvent cbe)
This method processes the payment rules event in CommonBaseEvent, when the payment rules event is listened from event bus, this method is called.
|
void | setCommandContext(CommandContext context)
This method sets the command context.
|
protected void | setHashOfActionDetailLists(java.util.HashMap map)
This method sets the HashMap which contains the action lists for each payment instruction.
|
protected void | setHashOfEditActionDetailLists(java.util.HashMap map)
This method sets the HashMap which contains the edit action lists for each payment instruction.
|
protected void | setHashOfReversalActionDetailLists(java.util.HashMap map)
This method sets the HashMap which contains the reversal action lists for each payment instruction.
|
void | setLocale(java.util.Locale localLocale)
This method sets the current locale.
|
void | setOrderChannel(java.lang.String string)
This method sets the current order channel.
|
void | setPaymentGroupId(java.lang.String string)
This method sets the current payment group id.
|
void | setStoreId(java.lang.Integer integer)
This method sets the current store id.
|
protected void | setTriggerResults(EDPResults results)
This method sets the results after trigger action.
|
protected void | updateAtomicPaymentAfterHashActions(java.util.HashMap actionLists, int phase)
This method updates the amount attributes associated with each phase of business event in the atomic payments.
|
public static final java.lang.String COPYRIGHT
public void processEvent(org.eclipse.hyades.logging.events.cbe.CommonBaseEvent cbe) throws ECException
1. If the event name equals "PaymentRule", which means this event is a payment rule event and will be processed by this method. 2. It calls corresponding method according to the name of the event data. For example, if the name of event data equals to 'PrimePaymentEventData',then the payment actions in the event data for prime payment will be executed. Here it first decomposes the event to parse the ExtendedDataElement and get the original attributes needed by corresponding payment business event. 3. According to payment actions in the event data, it executes corresponding payment actions.
public java.lang.Class getECEventContainer()
public java.util.Set getEvents()
protected void processBGPrimeWork() throws EDPException, ECException
protected void blockOrder(java.lang.Long orderId, CommandContext cmdctx) throws ECException
protected void updateAtomicPaymentAfterHashActions(java.util.HashMap actionLists, int phase) throws InvalidRequestException, InvalidDataException, ObjectCannotBeFoundException, EDPException
This method updates the amount attributes associated with each phase of business event in the atomic payments.
protected java.util.HashMap getHashOfActionDetailLists()
protected java.util.HashMap getHashOfEditActionDetailLists()
protected java.util.HashMap getHashOfReversalActionDetailLists()
protected void setHashOfActionDetailLists(java.util.HashMap map)
protected void setHashOfEditActionDetailLists(java.util.HashMap map)
protected void setHashOfReversalActionDetailLists(java.util.HashMap map)
protected final com.ibm.commerce.edp.model.ObjectModelFacadeLocal getOMF() throws J2EEException
protected final com.ibm.commerce.edp.refunds.RefundFacadeLocal getRefundFacade() throws J2EEException
public void setCommandContext(CommandContext context)
protected void createTickler(java.lang.String reasonCode, java.lang.String reason, java.lang.String[] comments, java.lang.Long orderId) throws EDPException
protected EDPResults getTriggerResults()
protected void setTriggerResults(EDPResults results)
public java.lang.String getPaymentGroupId()
public java.util.Locale getLocale()
public void setLocale(java.util.Locale localLocale)
public void setOrderChannel(java.lang.String string)
public java.lang.String getOrderCannel()
public void setPaymentGroupId(java.lang.String string)
public java.lang.Integer getStoreId()
public void setStoreId(java.lang.Integer integer)