Interface CreditCardService

All Known Implementing Classes:
FirstBankOfPSU

public interface CreditCardService
The functionality required for a credit card service
  • Method Summary

    Modifier and Type
    Method
    Description
    debit(CreditCard card, double amount)
    Charges the given amount to the given credit card
  • Method Details

    • debit

      CreditTransactionCode debit(CreditCard card, double amount)
      Charges the given amount to the given credit card
      Parameters:
      card - The card to charge
      amount - The amount to charge
      Returns:
      The code that conveys the result of the debit transaction