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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract doubleGets the price of the Movie Ticketabstract PaymentTypeGets the Payment Type of the PaymentGets the Transaction ID of the PaymentgetUUID()Gets the unique ID of the Paymentabstract voidsetMovieTicketPrice(double movieTicketPrice) Sets the price of the Movie Ticketabstract voidsetPaymentType(PaymentType paymentType) Sets the Payment Type of the PaymentvoidsetTransactionID(String transactionID) Sets the TransactionID of the PaymentvoidSet 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:
PaymentTypeof the Payment
-
setPaymentType
Sets the Payment Type of the Payment- Parameters:
paymentType- is thePaymentTypeto 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
-