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 theAccount
involved in the transaction.amount()
Gets the amount of theCurrency
involved in the transaction.contexts()
Returns the set ofContext
s used to perform the transaction.currency()
Gets theCurrency
involved in the transaction.result()
Gets theResultType
of this transaction.type()
Returns theTransactionType
of this result.
-
Method Details
-
account
Account account()Gets theAccount
involved in the transaction.- Returns:
- The
Account
-
currency
Currency currency()Gets theCurrency
involved in the transaction.- Returns:
- The
Currency
-
amount
BigDecimal amount()Gets the amount of theCurrency
involved in the transaction.- Returns:
- The amount
-
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
-