public class InvoiceRequestProcessorImpl extends GenericService implements InvoiceRequestProcessor
debit
 method calls on an InvoiceManager to generate a repository item
 representing the invoice and emit JMS messages notifying any interested
 listeners of invoice creation and update.
 
 The authorize and credit methods are no-ops
 in this implementation.  Subclasses could provide implementations that
 interoperate with particular financial systems, generate JMS messages,
 etc.
| Modifier and Type | Field and Description | 
|---|---|
static java.lang.String | 
CLASS_VERSION  | 
protected static java.util.ResourceBundle | 
sDefaultResources  | 
SERVICE_INFO_KEYDEFAULT_LOG_TRACE_STATUSDEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS| Constructor and Description | 
|---|
InvoiceRequestProcessorImpl()  | 
| Modifier and Type | Method and Description | 
|---|---|
PaymentStatus | 
authorize(InvoiceRequestInfo pInvoiceInfo)
Authorize the use of a invoice for payment. 
 | 
protected PaymentStatus | 
createErrorStatus(double pAmount,
                 java.lang.String pErrorMsg)
Create an instance of a PaymentStatus reflecting an unsuccessful transaction. 
 | 
protected PaymentStatus | 
createSuccessStatus(double pAmount)
Create an instance of a PaymentStatus reflecting a successful transaction. 
 | 
PaymentStatus | 
credit(InvoiceRequestInfo pInvoiceInfo)
Process refunds/credits on payments made by invoice as a new order. 
 | 
PaymentStatus | 
credit(InvoiceRequestInfo pInvoiceInfo,
      PaymentStatus pStatus)
Process refunds/credits on payments made by invoice. 
 | 
PaymentStatus | 
debit(InvoiceRequestInfo pInvoiceInfo,
     PaymentStatus pStatus)
Process payment by invoice, calling on the InvoiceManager to
 generate an invoice repository item from the payment group. 
 | 
CurrentDate | 
getClock()
Return the "clock" component used to generate timestamps 
 | 
InvoiceManager | 
getInvoiceManager()
Get the InvoiceManager to use when generating invoices 
 | 
protected java.lang.String | 
nextTransactionId()
Generate a unique transaction id. 
 | 
void | 
setClock(CurrentDate pClock)
Set the "clock" component used to generate timestamps 
 | 
void | 
setInvoiceManager(InvoiceManager pInvoiceManager)
Set the InvoiceManager to use when generating invoices 
 | 
addLogListener, createAdminServlet, doStartService, doStopService, getAbsoluteName, getAdminServlet, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService, toStringvlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarningpublic static java.lang.String CLASS_VERSION
protected static java.util.ResourceBundle sDefaultResources
public void setInvoiceManager(InvoiceManager pInvoiceManager)
public InvoiceManager getInvoiceManager()
public PaymentStatus authorize(InvoiceRequestInfo pInvoiceInfo)
authorize in interface InvoiceRequestProcessorpInvoiceRequestInfo - the InvoiceRequestInfo that contains authorization datapublic PaymentStatus debit(InvoiceRequestInfo pInvoiceInfo, PaymentStatus pStatus)
debit in interface InvoiceRequestProcessorpInvoiceRequestInfo - the InvoiceRequestInfo that contains debit datapStatus - the PaymentStatus object that contains information about the
    transaction. This will be the object that was returned by the
    last call to authorize().public PaymentStatus credit(InvoiceRequestInfo pInvoiceInfo, PaymentStatus pStatus)
credit in interface InvoiceRequestProcessorpInvoiceRequestInfo - the InvoiceRequestInfo that contains credit datapStatus - the PaymentStatus object that contains information about the
    transaction. This will be the object that was returned by the
    last call to debit().public PaymentStatus credit(InvoiceRequestInfo pInvoiceInfo)
credit in interface InvoiceRequestProcessorpInvoiceRequestInfo - the InvoiceRequestInfo that contains credit dataprotected java.lang.String nextTransactionId()
protected PaymentStatus createSuccessStatus(double pAmount)
protected PaymentStatus createErrorStatus(double pAmount, java.lang.String pErrorMsg)
public void setClock(CurrentDate pClock)
public CurrentDate getClock()