Class TransactionResultImpl
java.lang.Object
org.core.eco.transaction.result.impl.TransactionResultImpl
- All Implemented Interfaces:
TransactionResult
-
Constructor Summary
ConstructorsConstructorDescriptionTransactionResultImpl(@NotNull Transaction transaction, @NotNull BigDecimal original, @NotNull String errorMessage)TransactionResultImpl(@NotNull Transaction transaction, BigDecimal original, @NotNull BigDecimal after) -
Method Summary
Modifier and TypeMethodDescription@NotNull BigDecimal@NotNull BigDecimal@NotNull Transactionboolean
-
Constructor Details
-
TransactionResultImpl
public TransactionResultImpl(@NotNull @NotNull Transaction transaction, @NotNull @NotNull BigDecimal original, @NotNull @NotNull String errorMessage) -
TransactionResultImpl
public TransactionResultImpl(@NotNull @NotNull Transaction transaction, BigDecimal original, @NotNull @NotNull BigDecimal after)
-
-
Method Details
-
getTransaction
- Specified by:
getTransactionin interfaceTransactionResult
-
wasSuccessful
public boolean wasSuccessful()- Specified by:
wasSuccessfulin interfaceTransactionResult
-
getOriginalAmount
- Specified by:
getOriginalAmountin interfaceTransactionResult
-
getAfterAmount
- Specified by:
getAfterAmountin interfaceTransactionResult
-
getFailedReason
- Specified by:
getFailedReasonin interfaceTransactionResult
-