Package net.libyaguide.gpay.sdk.model
Class OutstandingTransaction
java.lang.Object
net.libyaguide.gpay.sdk.model.OutstandingTransaction
Represents a single outstanding transaction in the GPay system.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the amount.Gets the balance.Gets the creation date.Gets the datetime string.Gets the description.Gets the operation type.Gets the reference number.Gets the transaction status.Gets the timestamp.Gets the transaction ID.voidsetAmount(BigDecimal amount) Sets the amount.voidsetBalance(BigDecimal balance) Sets the balance.voidsetCreatedAt(Date createdAt) Sets the creation date.voidsetDatetime(String datetime) Sets the datetime string.voidsetDescription(String description) Sets the description.voidsetOpTypeId(OperationType opTypeId) Sets the operation type.voidsetReferenceNo(String referenceNo) Sets the reference number.voidsetStatus(TransactionStatus status) Sets the transaction status.voidsetTimestamp(Date timestamp) Sets the timestamp.voidsetTransactionId(String transactionId) Sets the transaction ID.
-
Constructor Details
-
OutstandingTransaction
public OutstandingTransaction()
-
-
Method Details
-
getTransactionId
Gets the transaction ID.- Returns:
- the transaction ID.
-
setTransactionId
Sets the transaction ID.- Parameters:
transactionId- the transaction ID to set.
-
getDatetime
Gets the datetime string.- Returns:
- the datetime string in ISO 8601 format.
-
setDatetime
Sets the datetime string.- Parameters:
datetime- the datetime string in ISO 8601 format.
-
getTimestamp
Gets the timestamp.- Returns:
- the timestamp as a Date object.
-
setTimestamp
Sets the timestamp.- Parameters:
timestamp- the timestamp to set.
-
getDescription
Gets the description.- Returns:
- the description of the transaction.
-
setDescription
Sets the description.- Parameters:
description- the description of the transaction.
-
getAmount
Gets the amount.- Returns:
- the transaction amount as a BigDecimal.
-
setAmount
Sets the amount.- Parameters:
amount- the transaction amount to set.
-
getBalance
Gets the balance.- Returns:
- the balance after the transaction as a BigDecimal.
-
setBalance
Sets the balance.- Parameters:
balance- the balance to set.
-
getReferenceNo
Gets the reference number.- Returns:
- the reference number associated with the transaction.
-
setReferenceNo
Sets the reference number.- Parameters:
referenceNo- the reference number to set.
-
getOpTypeId
Gets the operation type.- Returns:
- the operation type as an OperationType enum.
-
setOpTypeId
Sets the operation type.- Parameters:
opTypeId- the operation type to set as an OperationType enum.
-
getStatus
Gets the transaction status.- Returns:
- the transaction status as a TransactionStatus enum.
-
setStatus
Sets the transaction status.- Parameters:
status- the transaction status to set as a TransactionStatus enum.
-
getCreatedAt
Gets the creation date.- Returns:
- the creation date as a Date object.
-
setCreatedAt
Sets the creation date.- Parameters:
createdAt- the creation date to set as a Date object.
-