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