KamoCRM

Migrate from BillingGroup to Account as billing principal

Refactorkamo-shared-library
Ya
27 Aprili 2026, 22:35 UTC
Mwandishi
Kamo
Ahadi ya
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.

Mabadiliko yote

Je, unaona nini kuhusu usafiri?

Kila kitu kinaingia kwenye tovuti yako mwenyewe. Anza kwenye mpango wa bure na usome ukurasa huu tena katika mwezi mmoja.

Kuwa Huru MileleMtazamo wa bei