Replace RetailCustomer with Account-based customer model

Refactorkamo-shared-library
Shipped
April 3, 2026 at 10:23 PM UTC
Author
Kamo
Commit
acbcfb6

Account.java was already the commerce customer entity but was too minimal. RetailCustomer duplicated this concept. This commit: - Enhances Account with commerce fields: company, notes, acceptsMarketing, taxExempt, totalOrders, totalSpent, currency, externalId/Provider, isActive - Adds primaryMember ManyToOne to Member (org-scoped contact info with address, email, phone — no duplication) - Creates AccountGroup, AccountGroupMembership (replaces RetailCustomerGroup) - Creates AccountWishlist, AccountWishlistItem - Deletes entire retail.customer package (13 files) and 5 RetailCustomer DTOs - Updates RetailService customer methods to use Account (Long uid, not UUID) - Updates PriceList, Cart, DraftOrder to reference Account/AccountGroup - Updates CustomerSyncAdapter to use Account

All changes

Like what you see shipping?

Every one of these updates lands in your workspace automatically. Start free and watch it grow week after week.

Start Free ForeverView Pricing