Interface EscrowService
public interface EscrowService
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordstatic enum -
Method Summary
Modifier and TypeMethodDescriptioncreate(Account source, Currency currency, BigDecimal amount, EconomyContext context, net.kyori.adventure.text.Component reason) releasePartial(UUID escrowId, Account target, BigDecimal amount, net.kyori.adventure.text.Component reason) resolveDispute(UUID escrowId, Account winner, net.kyori.adventure.text.Component reason)
-
Method Details
-
create
CompletableFuture<EscrowService.Escrow> create(Account source, Currency currency, BigDecimal amount, EconomyContext context, net.kyori.adventure.text.Component reason) -
release
CompletableFuture<TransactionResult> release(UUID escrowId, Account target, net.kyori.adventure.text.Component reason) -
releasePartial
CompletableFuture<TransactionResult> releasePartial(UUID escrowId, Account target, BigDecimal amount, net.kyori.adventure.text.Component reason) -
refund
CompletableFuture<TransactionResult> refund(UUID escrowId, net.kyori.adventure.text.Component reason) -
dispute
CompletableFuture<TransactionResult> dispute(UUID escrowId, net.kyori.adventure.text.Component reason) -
resolveDispute
CompletableFuture<TransactionResult> resolveDispute(UUID escrowId, Account winner, net.kyori.adventure.text.Component reason) -
fetch
-