Package io.meeds.billing.scheduling.task
Class HubBillingReportJob
java.lang.Object
io.meeds.billing.scheduling.task.HubBillingReportJob
Scheduled job responsible for synchronizing hub (space) usage data with
Stripe. This component contains two scheduled tasks:
Metered billing report:
Reports the current number of members in each hub that has metered billing enabled.
For each hub, a metered billing event is sent to Stripe to track usage.
The job runs at a configurable interval (daily by default) to midnight every day (
0 0 0 * * *).
Tiered billing computation:
Computes and updates the member quantities for hubs with a tiered graduated billing plan.
This ensures the correct tiered pricing is reported to Stripe
The job runs at a configurable interval (daily by default) to midnight every day (0 0 0 * * *).-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoid
-
Constructor Details
-
HubBillingReportJob
public HubBillingReportJob()
-
-
Method Details
-
reportMembersCount
@Scheduled(cron="${meeds.billing.hubBillingReport.job.cron:0 0 0 * * *}") public void reportMembersCount() -
computeTieredHubBillingQuantities
@Scheduled(cron="${meeds.billing.tieredHubBillingReport.job.cron:0 0 0 * * *}") public void computeTieredHubBillingQuantities()
-