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 PendingTransactiondefault @NotNull BigDecimal@NotNull BigDecimalgetBalance(@NotNull Currency currency)@NotNull StringgetName()default PendingTransactionsetBalance(@NotNull Currency currency, @NotNull Number amount)default @NotNull CompletableFuture<PendingTransaction>transact(@NotNull Account other, BiFunction<Account,Account,Collection<PendingTransaction>> transactions)@NotNull PendingTransactiontransact(@NotNull Transaction transaction)default PendingTransactiontransact(@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)
-