public class PaymentInfoNote extends PaymentInfo
| Constructor and Description |
|---|
PaymentInfoNote(String type,
double amount)
PaymentInfoNote is used to display paid/debt amounts
for tickets with a note, i.e. the ticket has not been
fully paid.
|
| Modifier and Type | Method and Description |
|---|---|
PaymentInfo |
clonePayment() |
double |
getAmount() |
String |
getName() |
double |
getTotal() |
printsTotal, printTotalpublic PaymentInfoNote(String type, double amount)
type - Type of paymentUse type "paid" for paid amounts: sum of cash, cheque, ticket, magcard.
Use type "debt" for outstanding amounts: sum of paperin (notes).
*
amount - Sum for payment typepublic PaymentInfo clonePayment()
clonePayment in class PaymentInfopublic String getName()
getName in class PaymentInfopublic double getAmount()
public double getTotal()
getTotal in class PaymentInfoCopyright © 2021. All rights reserved.