Interface TransactionResult
-
- All Known Subinterfaces:
TransferResult
public interface TransactionResultRepresents 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 Accountaccount()Gets theAccountinvolved in the transaction.java.math.BigDecimalamount()Gets the amount of theCurrencyinvolved in the transaction.java.util.Set<Context>contexts()Returns the set ofContexts used to perform the transaction.Currencycurrency()Gets theCurrencyinvolved in the transaction.ResultTyperesult()Gets theResultTypeof this transaction.TransactionTypetype()Returns theTransactionTypeof this result.
-
-
-
Method Detail
-
amount
java.math.BigDecimal amount()
Gets the amount of theCurrencyinvolved in the transaction.- Returns:
- The amount
-
contexts
java.util.Set<Context> contexts()
Returns the set ofContexts used to perform the transaction.- Returns:
- optional set of contexts
-
result
ResultType result()
Gets theResultTypeof this transaction.- Returns:
- resultType
-
type
TransactionType type()
Returns theTransactionTypeof this result.- Returns:
- type of Transaction
-
-