Migrate from BillingGroup to Account as billing principal

Refactorkamo-shared-library
Shipped
27 Aprili 2026, 22:35 UTC
Author
Kamo
Commit
f1da294

Account is now the single Stripe customer principal. A Member needing to pay (e.g. for a subscription) auto-creates an Account; that Account then holds one or more cards with one designated as primary, and owns all subscriptions, licenses, invoices, and billing-config rows. Schema changes (Account.java): - Add stripeCustomerId, paymentMethods (List<AccountPaymentMethod>), primaryPaymentMethod (@ManyToOne) - Add findByStripeCustomerId to AccountRepository New entities + repositories under **************** - AccountPaymentMethod (cards held under an Account; Account.primaryPaymentMethod points at one) - AccountSubscription (replaces BillingGroupSubscription, references Account) - AccountInvoice (replaces BillingGroupInvoice) - AccountLicense (replaces BillingGroupLicense; references Account + member) - AccountBillingMember (replaces BillingGroupMember; group-plan members) - AccountBillingConfig (replaces BillingGroupConfig) - BillingSourceType, LicenseStatus enums moved into the new package Removed: the entire **************** package (BillingGroup entity, all BillingGroup* sub-entities and repositories). Updated: **************** now resolves entitlement against **************** rather than BillingGroup.

All changes

Je, unaona nini kuhusu usafiri?

Kila moja ya hizi updates ardhi katika nafasi yako ya kazi moja kwa moja. Kuanza bure na kuangalia kukua wiki baada ya wiki.

Kuwa Huru MileleMtazamo wa bei