*
* @param customer Customer instance
* @param itemList Ordered items list
+ * @return Access key
*/
- public void registerItems (final Customer customer, final List<AddableBasketItem> itemList);
+ public String registerItems (final Customer customer, final List<AddableBasketItem> itemList);
}
import java.io.Serializable;
import javax.ejb.Remote;
+import org.mxchange.jshopcore.model.customer.Customer;
/**
* A remote interface for official recipt creation
* @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 ();
}