Interface TransactionResult
-
- All Known Subinterfaces:
TransferResult
public interface TransactionResult
Represents the result of a particular transaction, such as a deposit or withdrawal.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Account
account()
Gets theAccount
involved in the transaction.BigDecimal
amount()
Gets the amount of theCurrency
involved in the transaction.Set<Context>
contexts()
Returns the set ofContext
s used to perform the transaction.Currency
currency()
Gets theCurrency
involved in the transaction.ResultType
result()
Gets theResultType
of this transaction.TransactionType
type()
Returns theTransactionType
of this result.
-
-
-
Method Detail
-
amount
BigDecimal amount()
Gets the amount of theCurrency
involved in the transaction.- Returns:
- The amount
-
contexts
Set<Context> contexts()
Returns the set ofContext
s used to perform the transaction.- Returns:
- optional set of contexts
-
result
ResultType result()
Gets theResultType
of this transaction.- Returns:
- resultType
-
type
TransactionType type()
Returns theTransactionType
of this result.- Returns:
- type of Transaction
-
-