1 package ejava.examples.blpurchase.bl; 2 3 import ejava.examples.blpurchase.bo.Account; 4 5 /** 6 * Purchasing handles payment of purchased products. 7 */ 8 public interface Purchasing { 9 /** 10 * Creates an account for the user to use in purchasing products. 11 * @param email 12 * @param firstName 13 * @param lastName 14 */ 15 Account createAccount(String email, String firstName, String lastName); 16 17 /** 18 * Completes the purchase of the items in the user's shopping cart, 19 * empties the cart, and returns the total cost paid.<p/> 20 * 21 * Note that this capability is not yet fully defined. 22 * @param email 23 * @param password 24 */ 25 double checkout(String email, String password); 26 }