This description was created by Ellipsis for commit 6905f4047c90afafcc7087df3e7221c77338a695
Summary:
This pull request implements hourly billing for servers using Stripe, with changes across the codebase to handle billing events, update server data models, and integrate with Stripe's metering API.
Key points:
Introduced serverbillinghourly package for hourly billing of servers.
Added Message and MessageHandler in lib/background/serverbillinghourly/serverbillinghourly.go to handle billing events.
Updated lib/background/serverfulfillment/serverfulfillment.go to send billing messages after server fulfillment.
Modified lib/store/store.go to include ServerBillingStripeUsageBasedHourly for tracking billing events.
Updated lib/store/dbstore/server.go to handle billing data in the database.
Integrated Stripe metering events in lib/billing/billing.go.
Updated cmd/app/templates/dashboard-home.templ and cmd/app/templates/dashboard-home_templ.go for UI changes related to billing.
$$
Summary:
This pull request implements hourly billing for servers using Stripe, with changes across the codebase to handle billing events, update server data models, and integrate with Stripe's metering API.
Key points:
serverbillinghourly
package for hourly billing of servers.Message
andMessageHandler
inlib/background/serverbillinghourly/serverbillinghourly.go
to handle billing events.lib/background/serverfulfillment/serverfulfillment.go
to send billing messages after server fulfillment.lib/store/store.go
to includeServerBillingStripeUsageBasedHourly
for tracking billing events.lib/store/dbstore/server.go
to handle billing data in the database.lib/billing/billing.go
.cmd/app/templates/dashboard-home.templ
andcmd/app/templates/dashboard-home_templ.go
for UI changes related to billing.Generated with :heart: by ellipsis.dev