Interface Purchasing

  • All Known Implementing Classes:
    PurchasingImpl

    public interface Purchasing
    Purchasing handles payment of purchased products.
    • Method Detail

      • createAccount

        Account createAccount​(String email,
                              String firstName,
                              String lastName)
        Creates an account for the user to use in purchasing products.
        Parameters:
        email -
        firstName -
        lastName -
        Returns:
        the Account created with primary key assigned
      • checkout

        double checkout​(String email,
                        String password)
        Completes the purchase of the items in the user's shopping cart, empties the cart, and returns the total cost paid.

        Note that this capability is not yet fully defined.

        Parameters:
        email -
        password -
        Returns:
        amount charged as part of this checkout