Package src.model
Class Payment
Object
Payment
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
BankTransactionPayment
,CardPayment
,QRCodePayment
The Class that handles the data of Payment
- Version:
- 1.0
- Author:
- Ci Hui
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract double
Gets the price of the Movie Ticketabstract PaymentType
Gets the Payment Type of the PaymentGets the Transaction ID of the PaymentgetUUID()
Gets the unique ID of the Paymentabstract void
setMovieTicketPrice
(double movieTicketPrice) Sets the price of the Movie Ticketabstract void
setPaymentType
(PaymentType paymentType) Sets the Payment Type of the Paymentvoid
setTransactionID
(String transactionID) Sets the TransactionID of the Paymentvoid
Set the unique ID of the Payment
-
Constructor Details
-
Payment
Constructor for Payment class- Parameters:
UUID
- is the unique ID in the databasetransactionID
- is the Transaction ID of the Payment
-
-
Method Details
-
getUUID
Gets the unique ID of the Payment- Returns:
- unique ID of the Payment
-
setUUID
Set the unique ID of the Payment- Parameters:
UUID
- is the unique ID of the Payment to be set
-
getPaymentType
Gets the Payment Type of the Payment- Returns:
PaymentType
of the Payment
-
setPaymentType
Sets the Payment Type of the Payment- Parameters:
paymentType
- is thePaymentType
to be set
-
getTransactionID
Gets the Transaction ID of the Payment- Returns:
- the Transaction ID of the Payment
-
setTransactionID
Sets the TransactionID of the Payment- Parameters:
transactionID
- is the Trasaction ID of the Payment to be set
-
getMovieTicketPrice
public abstract double getMovieTicketPrice()Gets the price of the Movie Ticket- Returns:
- the price of the Movie Ticket
-
setMovieTicketPrice
public abstract void setMovieTicketPrice(double movieTicketPrice) Sets the price of the Movie Ticket- Parameters:
movieTicketPrice
- is the price of the Movie Ticket to be set
-