Package edu.pdx.cs410J.di
Class FirstBankOfPSU
java.lang.Object
edu.pdx.cs410J.di.FirstBankOfPSU
- All Implemented Interfaces:
CreditCardService
A
CreditCardService
that makes REST calls to access the First Bank of Portland State.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondebit
(CreditCard card, double amount) Charges the given amount to the given credit card
-
Constructor Details
-
FirstBankOfPSU
-
-
Method Details
-
debit
Description copied from interface:CreditCardService
Charges the given amount to the given credit card- Specified by:
debit
in interfaceCreditCardService
- Parameters:
card
- The card to chargeamount
- The amount to charge- Returns:
- The code that conveys the result of the debit transaction
-