Package net.libyaguide.gpay.sdk.model
Class PaymentStatus
java.lang.Object
net.libyaguide.gpay.sdk.model.PaymentStatus
Represents the status of a payment request.
Contains details about the payment status, including whether it is paid.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the requested amount.Gets the description provided in the request.Gets the payment timestamp if completed.Gets the reference number provided in the request, if any.Gets the unique ID of the payment request.Gets the response timestamp.Gets the transaction ID if payment is completed.booleanisPaid()Gets whether the payment is completed.voidsetAmount(BigDecimal amount) Sets the requested amount.voidsetDescription(String description) Sets the description provided in the request.voidsetPaid(boolean paid) Sets whether the payment is completed.voidsetPaymentTimestamp(Date paymentTimestamp) Sets the payment timestamp if completed.voidsetReferenceNo(String referenceNo) Sets the reference number provided in the request, if any.voidsetRequestId(String requestId) Sets the unique ID of the payment request.voidsetResponseTimestamp(Date responseTimestamp) Sets the response timestamp.voidsetTransactionId(String transactionId) Sets the transaction ID if payment is completed.
-
Constructor Details
-
PaymentStatus
public PaymentStatus()
-
-
Method Details
-
getRequestId
Gets the unique ID of the payment request.- Returns:
- the unique ID of the payment request
-
setRequestId
Sets the unique ID of the payment request.- Parameters:
requestId- the unique ID of the payment request
-
getTransactionId
Gets the transaction ID if payment is completed.- Returns:
- the transaction ID
-
setTransactionId
Sets the transaction ID if payment is completed.- Parameters:
transactionId- the transaction ID
-
getAmount
Gets the requested amount.- Returns:
- the requested amount
-
setAmount
Sets the requested amount.- Parameters:
amount- the requested amount
-
getPaymentTimestamp
Gets the payment timestamp if completed.- Returns:
- the payment timestamp
-
setPaymentTimestamp
Sets the payment timestamp if completed.- Parameters:
paymentTimestamp- the payment timestamp
-
getReferenceNo
Gets the reference number provided in the request, if any.- Returns:
- the reference number
-
setReferenceNo
Sets the reference number provided in the request, if any.- Parameters:
referenceNo- the reference number
-
getDescription
Gets the description provided in the request.- Returns:
- the description
-
setDescription
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
Gets the response timestamp.- Returns:
- the response timestamp
-
setResponseTimestamp
Sets the response timestamp.- Parameters:
responseTimestamp- the response timestamp
-