|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface that defines behavior of a TaxEngine.
Method Summary | |
void |
calculate(TaxCalculatorInvoice taxInvoice,
java.lang.String invoiceId,
boolean forPersistence)
|
void |
close()
Method signals to the tax engine that interaction with it is done and no more calls to creditTax() or calculate() will be done. |
void |
creditTax(TaxCreditInvoice taxCreditInvoice,
Money creditAmount)
|
void |
init()
Method signals to the tax engine that it should initialize itself for subsequent calls to creditTax() or calculate(). |
Method Detail |
public void init() throws SystemException
SystemException
public void calculate(TaxCalculatorInvoice taxInvoice, java.lang.String invoiceId, boolean forPersistence) throws SystemException, BusinessException
taxInvoice
- The invoice to have tax calculated for.invoiceId
- The unique id for the invoice that taxs will be calculated for.forPersistence
- Signals tax engine that this invoice will be persisted.
SystemException
BusinessException
public void creditTax(TaxCreditInvoice taxCreditInvoice, Money creditAmount) throws SystemException, BusinessException
taxCreditInvoice
- The invoice to have tax credited.creditAmount
- The amount to be credited.
SystemException
BusinessException
public void close()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |