]> git.mxchange.org Git - jfinancials-lib.git/blobdiff - src/org/mxchange/jfinancials/model/receipt/FinancialAdminReceiptSessionBeanRemote.java
Updated copyright year
[jfinancials-lib.git] / src / org / mxchange / jfinancials / model / receipt / FinancialAdminReceiptSessionBeanRemote.java
index 32dea63bb9ae1de72b2f41689097d9ca34ef48af..ad7d9b46c18550a52faa52717393436128cfb5a1 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2017, 2018 Free Software Foundation
+ * Copyright (C) 2017 - 2024 Free Software Foundation
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -19,6 +19,7 @@ package org.mxchange.jfinancials.model.receipt;
 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
@@ -28,6 +29,17 @@ import org.mxchange.jfinancials.exceptions.receipt.ReceiptAlreadyAddedException;
 @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.