com.retek.component.tax.integration.taxengine
Class VertexTaxEngine
java.lang.Object
com.retek.component.tax.integration.taxengine.VertexTaxEngine
- All Implemented Interfaces:
- TaxEngine
- public class VertexTaxEngine
- extends java.lang.Object
- implements 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 invoice,
Money creditAmount)
|
void |
init()
Method signals to the tax engine that it should initialize itself
for subsequent calls to creditTax() or calculate(). |
protected Address |
scrubVertexAddress(Address address)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VertexTaxEngine
public VertexTaxEngine()
throws SystemException
init
public void init()
throws SystemException
- Description copied from interface:
TaxEngine
- Method signals to the tax engine that it should initialize itself
for subsequent calls to creditTax() or calculate().
- Specified by:
init
in interface TaxEngine
- Throws:
SystemException
close
public void close()
- Description copied from interface:
TaxEngine
- Method signals to the tax engine that interaction with it is done and
no more calls to creditTax() or calculate() will be done.
- Specified by:
close
in interface TaxEngine
calculate
public void calculate(TaxCalculatorInvoice taxInvoice,
java.lang.String invoiceId,
boolean forPersistence)
throws SystemException,
BusinessException
- Specified by:
calculate
in interface TaxEngine
- Parameters:
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.
- Throws:
SystemException
BusinessException
creditTax
public void creditTax(TaxCreditInvoice invoice,
Money creditAmount)
throws SystemException,
BusinessException
- Specified by:
creditTax
in interface TaxEngine
- Parameters:
invoice
- The invoice to have tax credited.creditAmount
- The amount to be credited.
- Throws:
SystemException
BusinessException
scrubVertexAddress
protected Address scrubVertexAddress(Address address)
Copyright © 2004 Retek Inc. All Rights Reserved.
- Generated at Fri, 10/22/2004 07:28