]> git.mxchange.org Git - jfinancials-lib.git/blobdiff - src/org/mxchange/jfinancials/model/receipt/FinancialReceiptSessionBeanRemote.java
Updated copyright year
[jfinancials-lib.git] / src / org / mxchange / jfinancials / model / receipt / FinancialReceiptSessionBeanRemote.java
index f88b019c6667bfcdc34857c3033b6f5aab313775..649b018c3e4dccdcb966ffb49d270a39931130ba 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2017 Roland Häder
+ * 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,11 +19,11 @@ package org.mxchange.jfinancials.model.receipt;
 import java.io.Serializable;
 import java.util.List;
 import javax.ejb.Remote;
-import org.mxchange.jfinancials.exceptions.ReceiptAlreadyAddedException;
+import org.mxchange.jfinancials.exceptions.receipt.ReceiptAlreadyAddedException;
 import org.mxchange.jusercore.model.user.User;
 
 /**
- * A remote interface for financial receipt stuff
+ * A remote interface for financial receipts
  * <p>
  * @author Roland Häder<roland@mxchange.org>
  */
@@ -33,9 +33,9 @@ public interface FinancialReceiptSessionBeanRemote extends Serializable {
        /**
         * Returns a list of all receipts
         * <p>
-        * @return A list of all user's receipts
+        * @return A list of all receipts
         */
-       List<BillableReceipt> allReceipts ();
+       List<BillableReceipt> fetchAllReceipts ();
 
        /**
         * Returns a list of all user's receipts
@@ -44,7 +44,7 @@ public interface FinancialReceiptSessionBeanRemote extends Serializable {
         * <p>
         * @return A list of all user's receipts
         */
-       List<BillableReceipt> allUsersReceipts (final User user);
+       List<BillableReceipt> fetchAllUsersReceipts (final User user);
 
        /**
         * Adds given receipt and returns the updated version. If the receipt has
@@ -59,4 +59,14 @@ public interface FinancialReceiptSessionBeanRemote extends Serializable {
         */
        BillableReceipt addReceipt (final BillableReceipt receipt) throws ReceiptAlreadyAddedException;
 
+       /**
+        * Checks if given receipt is already persisted by checking receipt number
+        * and branch office combination.
+        * <p>
+        * @param receipt Receipt instance
+        * <p>
+        * @return Whether the receipt has already been registered
+        */
+       boolean isReceiptRegistered (final BillableReceipt receipt);
+
 }