Package src.model

Class QRCodePayment

Object
Payment
QRCodePayment
All Implemented Interfaces:
Serializable

public class QRCodePayment extends Payment
The Class inherited from the Superclass Payment that handles the data of QR Code Payment
Version:
1.0
Author:
Ci Hui
See Also:
  • 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 database
      paymentType - is the PaymentType of the QR Code Payment
      transactionID - is the Transaction ID of the QR Code Payment
      movieTicketPrice - is the price of the Movie Tickets
  • Method Details

    • getPaymentType

      public PaymentType getPaymentType()
      Gets the PaymentType of the QR Code Payment
      Specified by:
      getPaymentType in class Payment
      Returns:
      PaymentType of the QR Code Payment
    • setPaymentType

      public void setPaymentType(PaymentType paymentType)
      Sets the PaymentType of the QR Code Payment
      Specified by:
      setPaymentType in class Payment
      Parameters:
      paymentType - is the PaymentType of the QR Code Payment to be set
    • getMovieTicketPrice

      public double getMovieTicketPrice()
      Gets the Price of the Movie Tickets
      Specified by:
      getMovieTicketPrice in class Payment
      Returns:
      the price of the Movie Tickets
    • setMovieTicketPrice

      public void setMovieTicketPrice(double movieTicketPrice)
      Sets the price of the Movie Tickets
      Specified by:
      setMovieTicketPrice in class Payment
      Parameters:
      movieTicketPrice - is the price of the Movie Tickets to be set