Package net.libyaguide.gpay.sdk.model
Class PaymentRequest
java.lang.Object
net.libyaguide.gpay.sdk.model.PaymentRequest
Represents a payment request response.
Contains details of the created payment request.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the amount requested.Gets the reference number provided in the request, if any.Gets the username of the requester.Gets the unique ID for the payment request.Gets the timestamp of the request.Gets the response timestamp.voidsetAmount(BigDecimal amount) Sets the amount requested.voidsetReferenceNo(String referenceNo) Sets the reference number provided in the request, if any.voidsetRequesterUsername(String requesterUsername) Sets the username of the requester.voidsetRequestId(String requestId) Sets the unique ID for the payment request.voidsetRequestTime(Date requestTime) Sets the timestamp of the request.voidsetResponseTimestamp(Date responseTimestamp) Sets the response timestamp.
-
Constructor Details
-
PaymentRequest
public PaymentRequest()
-
-
Method Details
-
getRequesterUsername
Gets the username of the requester.- Returns:
- the username of the requester
-
setRequesterUsername
Sets the username of the requester.- Parameters:
requesterUsername- the username of the requester
-
getRequestId
Gets the unique ID for the payment request.- Returns:
- the unique ID for the payment request
-
setRequestId
Sets the unique ID for the payment request.- Parameters:
requestId- the unique ID for the payment request
-
getRequestTime
Gets the timestamp of the request.- Returns:
- the timestamp of the request
-
setRequestTime
Sets the timestamp of the request.- Parameters:
requestTime- the timestamp of the request
-
getAmount
Gets the amount requested.- Returns:
- the amount requested
-
setAmount
Sets the amount requested.- Parameters:
amount- the amount requested
-
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
-
getResponseTimestamp
Gets the response timestamp.- Returns:
- the response timestamp
-
setResponseTimestamp
Sets the response timestamp.- Parameters:
responseTimestamp- the response timestamp
-