Package io.meeds.billing.scheduling.task
Class HubBillingReportJob
java.lang.Object
io.meeds.billing.scheduling.task.HubBillingReportJob
Scheduled job responsible for reporting the number of members in each hub
(space) that has metered billing enabled. This task runs automatically at a
configured interval (daily by default) to synchronize the member usage data
with Stripe by sending a metered billing event for each hub. The job runs
only if: the property
meeds.billing.enabled=true and the property
meeds.billing.secretKey is defined and not blank The schedule is
defined by the cron expression configured under
meeds.billing.hubBillingReport.job.cron, which defaults to midnight
every day (0 0 0 * * *).-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
HubBillingReportJob
public HubBillingReportJob()
-
-
Method Details
-
reportMembersCount
@Scheduled(cron="${meeds.billing.hubBillingReport.job.cron:0 0 0 * * *}") public void reportMembersCount()
-