Package org.core.eco.account
Interface Account
- All Superinterfaces:
Source
- All Known Subinterfaces:
NamedAccount
,PlayerAccount
- All Known Implementing Classes:
AccountSnapshot
-
Method Summary
Modifier and TypeMethodDescriptiondefault PendingTransaction
default @NotNull BigDecimal
@NotNull BigDecimal
getBalance(@NotNull Currency currency)
@NotNull String
getName()
default PendingTransaction
setBalance(@NotNull Currency currency, @NotNull Number amount)
default @NotNull CompletableFuture<PendingTransaction>
transact(@NotNull Account other, BiFunction<Account,Account,Collection<PendingTransaction>> transactions)
@NotNull PendingTransaction
transact(@NotNull Transaction transaction)
default PendingTransaction
transact(@NotNull TransactionType type, @NotNull Currency currency, @NotNull Number amount)
default PendingTransaction
-
Method Details
-
getName
-
transact
-
transact
@NotNull default @NotNull CompletableFuture<PendingTransaction> transact(@NotNull @NotNull Account other, BiFunction<Account,Account,Collection<PendingTransaction>> transactions) -
getBalance
-
getBalance
-
transact
default PendingTransaction transact(@NotNull @NotNull TransactionType type, @NotNull @NotNull Currency currency, @NotNull @NotNull Number amount) -
deposit
default PendingTransaction deposit(@NotNull @NotNull Currency currency, @NotNull @NotNull Number amount) -
withdraw
default PendingTransaction withdraw(@NotNull @NotNull Currency currency, @NotNull @NotNull Number amount) -
setBalance
default PendingTransaction setBalance(@NotNull @NotNull Currency currency, @NotNull @NotNull Number amount)
-