Package edu.pdx.cs410J.di
Interface CreditCardService
- All Known Implementing Classes:
FirstBankOfPSU
public interface CreditCardService
The functionality required for a credit card service
-
Method Summary
Modifier and TypeMethodDescriptiondebit
(CreditCard card, double amount) Charges the given amount to the given credit card
-
Method Details
-
debit
Charges the given amount to the given credit card- Parameters:
card
- The card to chargeamount
- The amount to charge- Returns:
- The code that conveys the result of the debit transaction
-