]> git.mxchange.org Git - jshop-lib.git/blobdiff - src/org/mxchange/jshopcore/model/receipt/ReceiptBeanRemote.java
Continued:
[jshop-lib.git] / src / org / mxchange / jshopcore / model / receipt / ReceiptBeanRemote.java
index 2328adc98c89e64537010df4926e6beeb90361b0..6e64228d085a5dc9887abb8672fa64e470461e70 100644 (file)
@@ -18,6 +18,7 @@ package org.mxchange.jshopcore.model.receipt;
 
 import java.io.Serializable;
 import javax.ejb.Remote;
+import org.mxchange.jshopcore.model.customer.Customer;
 
 /**
  * A remote interface for official recipt creation
@@ -35,4 +36,40 @@ public interface ReceiptBeanRemote extends Serializable {
         * @return Wrapped byte stream
         */
        public WrapableReceipt createReceiptFromAccessKey (final String accessKey);
+
+       /**
+        * Fetches access key, if customer instance matches, else null is returned
+        *
+        * @param customer Customer instance
+        * @return Access key or null
+        */
+       public String fetchAccessKey (final Customer customer);
+
+       /**
+        * Setter for access key
+        *
+        * @param accessKey Access key
+        */
+       public void setAccessKey (final String accessKey);
+
+       /**
+        * Getter for access key
+        *
+        * @return Access key
+        */
+       public String getAccessKey ();
+
+       /**
+        * Setter for customer instance
+        *
+        * @param customer Customer instance
+        */
+       public void setCustomer (final Customer customer);
+
+       /**
+        * Getter for customer instance
+        *
+        * @return Customer instance
+        */
+       public Customer getCustomer ();
 }