Interface InvoiceService
public interface InvoiceService
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordstatic enum -
Method Summary
Modifier and TypeMethodDescriptioncreate(Account sender, Account recipient, Currency currency, BigDecimal amount, Instant dueDate, EconomyContext context, net.kyori.adventure.text.Component description) fetchReceived(Account recipient) payPartial(UUID invoiceId, BigDecimal amount, net.kyori.adventure.text.Component reason)
-
Method Details
-
create
CompletableFuture<InvoiceService.Invoice> create(Account sender, Account recipient, Currency currency, BigDecimal amount, Instant dueDate, EconomyContext context, net.kyori.adventure.text.Component description) -
pay
-
payPartial
CompletableFuture<TransactionResult> payPartial(UUID invoiceId, BigDecimal amount, net.kyori.adventure.text.Component reason) -
cancel
-
fetch
-
fetchSent
-
fetchReceived
-
fetchOverdue
CompletableFuture<Collection<InvoiceService.Invoice>> fetchOverdue()
-