Package edu.pdx.cs410J.di
Class BookStore
java.lang.Object
edu.pdx.cs410J.di.BookStore
A book store that depends on a
BookInventory
and a CreditCardService
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
purchase
(List<Book> books, CreditCard card) Purchases a number of books from this book store
-
Constructor Details
-
BookStore
-
-
Method Details
-
purchase
Purchases a number of books from this book store- Returns:
- the total amount of the purchase
- Throws:
CreditCardTransactionException
- If a problem occurs while paying for the purchase
-