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, printTotal
public 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 PaymentInfo
public String getName()
getName
in class PaymentInfo
public double getAmount()
public double getTotal()
getTotal
in class PaymentInfo
Copyright © 2021. All rights reserved.