Interface SubscriptionService
public interface SubscriptionService
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordstatic enum -
Method Summary
Modifier and TypeMethodDescriptioncreate(Account subscriber, Account beneficiary, Currency currency, BigDecimal amount, Duration interval, EconomyContext context, net.kyori.adventure.text.Component reason) createWithTrial(Account subscriber, Account beneficiary, Currency currency, BigDecimal amount, Duration interval, Duration trialPeriod, EconomyContext context, net.kyori.adventure.text.Component reason) fetchActive(Account subscriber) forceProcess(UUID subscriptionId)
-
Method Details
-
create
CompletableFuture<SubscriptionService.Subscription> create(Account subscriber, Account beneficiary, Currency currency, BigDecimal amount, Duration interval, EconomyContext context, net.kyori.adventure.text.Component reason) -
createWithTrial
CompletableFuture<SubscriptionService.Subscription> createWithTrial(Account subscriber, Account beneficiary, Currency currency, BigDecimal amount, Duration interval, Duration trialPeriod, EconomyContext context, net.kyori.adventure.text.Component reason) -
cancel
-
pause
-
resume
-
forceProcess
-
fetch
-
fetchActive
-