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 * @return the Account created with primary key assigned 15 */ 16 Account createAccount(String email, String firstName, String lastName); 17 18 /** 19 * Completes the purchase of the items in the user's shopping cart, 20 * empties the cart, and returns the total cost paid.<p/> 21 * 22 * Note that this capability is not yet fully defined. 23 * @param email 24 * @param password 25 * @return amount charged as part of this checkout 26 */ 27 double checkout(String email, String password); 28 }