Package src.model
Class QRCodePayment
- All Implemented Interfaces:
Serializable
The Class inherited from the Superclass
Payment
that handles the data of QR Code Payment- Version:
- 1.0
- Author:
- Ci Hui
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionQRCodePayment(String UUID, PaymentType paymentType, String transactionID, double movieTicketPrice) Constructor for QRCodePayment Class -
Method Summary
Modifier and TypeMethodDescriptiondoubleGets the Price of the Movie TicketsGets thePaymentTypeof the QR Code PaymentvoidsetMovieTicketPrice(double movieTicketPrice) Sets the price of the Movie TicketsvoidsetPaymentType(PaymentType paymentType) Sets thePaymentTypeof the QR Code PaymentMethods inherited from class Payment
getTransactionID, getUUID, setTransactionID, setUUID
-
Constructor Details
-
QRCodePayment
public QRCodePayment(String UUID, PaymentType paymentType, String transactionID, double movieTicketPrice) Constructor for QRCodePayment Class- Parameters:
UUID- is the unique ID in the databasepaymentType- is thePaymentTypeof the QR Code PaymenttransactionID- is the Transaction ID of the QR Code PaymentmovieTicketPrice- is the price of the Movie Tickets
-
-
Method Details
-
getPaymentType
Gets thePaymentTypeof the QR Code Payment- Specified by:
getPaymentTypein classPayment- Returns:
PaymentTypeof the QR Code Payment
-
setPaymentType
Sets thePaymentTypeof the QR Code Payment- Specified by:
setPaymentTypein classPayment- Parameters:
paymentType- is thePaymentTypeof the QR Code Payment to be set
-
getMovieTicketPrice
public double getMovieTicketPrice()Gets the Price of the Movie Tickets- Specified by:
getMovieTicketPricein classPayment- Returns:
- the price of the Movie Tickets
-
setMovieTicketPrice
public void setMovieTicketPrice(double movieTicketPrice) Sets the price of the Movie Tickets- Specified by:
setMovieTicketPricein classPayment- Parameters:
movieTicketPrice- is the price of the Movie Tickets to be set
-