Package src.model

Class Payment

Object
Payment
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
BankTransactionPayment, CardPayment, QRCodePayment

public abstract class Payment extends Object implements Serializable
The Class that handles the data of Payment
Version:
1.0
Author:
Ci Hui
See Also:
  • Constructor Details

    • Payment

      public Payment(String UUID, String transactionID)
      Constructor for Payment class
      Parameters:
      UUID - is the unique ID in the database
      transactionID - is the Transaction ID of the Payment
  • Method Details

    • getUUID

      public String getUUID()
      Gets the unique ID of the Payment
      Returns:
      unique ID of the Payment
    • setUUID

      public void setUUID(String UUID)
      Set the unique ID of the Payment
      Parameters:
      UUID - is the unique ID of the Payment to be set
    • getPaymentType

      public abstract PaymentType getPaymentType()
      Gets the Payment Type of the Payment
      Returns:
      PaymentType of the Payment
    • setPaymentType

      public abstract void setPaymentType(PaymentType paymentType)
      Sets the Payment Type of the Payment
      Parameters:
      paymentType - is the PaymentType to be set
    • getTransactionID

      public String getTransactionID()
      Gets the Transaction ID of the Payment
      Returns:
      the Transaction ID of the Payment
    • setTransactionID

      public void setTransactionID(String transactionID)
      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