Interface TransactionResult
- All Known Subinterfaces:
TransferResult
public interface TransactionResult
Represents the result of a particular transaction, such as a deposit
or withdrawal.
-
Method Summary
Modifier and TypeMethodDescriptionaccount()Gets theAccountinvolved in the transaction.amount()Gets the amount of theCurrencyinvolved in the transaction.contexts()Returns the set ofContexts used to perform the transaction.currency()Gets theCurrencyinvolved in the transaction.result()Gets theResultTypeof this transaction.type()Returns theTransactionTypeof this result.
-
Method Details
-
account
Account account()Gets theAccountinvolved in the transaction.- Returns:
- The
Account
-
currency
Currency currency()Gets theCurrencyinvolved in the transaction.- Returns:
- The
Currency
-
amount
BigDecimal amount()Gets the amount of theCurrencyinvolved in the transaction.- Returns:
- The amount
-
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
-