Package com.griefdefender.api.economy
Interface PaymentTransaction
public interface PaymentTransaction
Contains information of a payment transaction in a claim.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic PaymentTransaction.Builderbuilder()Gets a newPaymentTransactionbuilder instance.Gets the amount of the this transaction.Gets theTransactionResultType.@Nullable UUIDGets the source of this transaction.Gets the timestamp of this transaction.getType()Gets theTransactionType.
-
Method Details
-
getType
TransactionType getType()Gets theTransactionType.- Returns:
- The type
-
getResultType
TransactionResultType getResultType()Gets theTransactionResultType.- Returns:
- The result
-
getSource
@Nullable UUID getSource()Gets the source of this transaction.- Returns:
- The source, if available
-
getTimestamp
Instant getTimestamp()Gets the timestamp of this transaction.- Returns:
- The timestamp
-
getAmount
Double getAmount()Gets the amount of the this transaction.- Returns:
- The amount
-
builder
Gets a newPaymentTransactionbuilder instance.- Returns:
- A new payment transaction builder instance
-