Class PaymentStatus

java.lang.Object
net.libyaguide.gpay.sdk.model.PaymentStatus

public class PaymentStatus extends Object
Represents the status of a payment request. Contains details about the payment status, including whether it is paid.
  • Constructor Details

    • PaymentStatus

      public PaymentStatus()
  • Method Details

    • getRequestId

      public String getRequestId()
      Gets the unique ID of the payment request.
      Returns:
      the unique ID of the payment request
    • setRequestId

      public void setRequestId(String requestId)
      Sets the unique ID of the payment request.
      Parameters:
      requestId - the unique ID of the payment request
    • getTransactionId

      public String getTransactionId()
      Gets the transaction ID if payment is completed.
      Returns:
      the transaction ID
    • setTransactionId

      public void setTransactionId(String transactionId)
      Sets the transaction ID if payment is completed.
      Parameters:
      transactionId - the transaction ID
    • getAmount

      public BigDecimal getAmount()
      Gets the requested amount.
      Returns:
      the requested amount
    • setAmount

      public void setAmount(BigDecimal amount)
      Sets the requested amount.
      Parameters:
      amount - the requested amount
    • getPaymentTimestamp

      public Date getPaymentTimestamp()
      Gets the payment timestamp if completed.
      Returns:
      the payment timestamp
    • setPaymentTimestamp

      public void setPaymentTimestamp(Date paymentTimestamp)
      Sets the payment timestamp if completed.
      Parameters:
      paymentTimestamp - the payment timestamp
    • getReferenceNo

      public String getReferenceNo()
      Gets the reference number provided in the request, if any.
      Returns:
      the reference number
    • setReferenceNo

      public void setReferenceNo(String referenceNo)
      Sets the reference number provided in the request, if any.
      Parameters:
      referenceNo - the reference number
    • getDescription

      public String getDescription()
      Gets the description provided in the request.
      Returns:
      the description
    • setDescription

      public void setDescription(String description)
      Sets the description provided in the request.
      Parameters:
      description - the description
    • isPaid

      public boolean isPaid()
      Gets whether the payment is completed.
      Returns:
      true if paid, false otherwise
    • setPaid

      public void setPaid(boolean paid)
      Sets whether the payment is completed.
      Parameters:
      paid - true if paid, false otherwise
    • getResponseTimestamp

      public Date getResponseTimestamp()
      Gets the response timestamp.
      Returns:
      the response timestamp
    • setResponseTimestamp

      public void setResponseTimestamp(Date responseTimestamp)
      Sets the response timestamp.
      Parameters:
      responseTimestamp - the response timestamp