import java.io.Serializable;
import javax.ejb.Remote;
import org.mxchange.jfinancials.exceptions.receipt.ReceiptAlreadyAddedException;
+import org.mxchange.jfinancials.exceptions.receipt.ReceiptNotFoundException;
/**
* A remote interface for administrative EJBs for receipts
@Remote
public interface FinancialAdminReceiptSessionBeanRemote extends Serializable {
+ /**
+ * Updates given receipt in database and returns an updated version.
+ * <p>
+ * @param receipt Receipt instance being updated
+ * <p>
+ * @return Updated receipt instance
+ * <p>
+ * @throws ReceiptNotFoundException If receipt instance was not found
+ */
+ BillableReceipt updateReceipt (final BillableReceipt receipt) throws ReceiptNotFoundException;
+
/**
* Adds given receipt and returns the updated version. If the receipt has
* already been found, a proper exception is being thrown.