- Shipped
- 27 Aprili 2026, 21:56 UTC
- Author
- Kamo
- Commit
- c15f8cc
Orient live commerce records to reference the Account profile's primary shipping/billing addresses, with snapshots taken only when records become historical (placed/shipped). Live (reference Account): - Cart: already references Account.customer; DTO now exposes effective shippingAddress/ billingAddress pulled from **************** - DraftOrder: replaced free-text **************** columns with ManyToOne AccountAddress shippingAddress/billingAddress refs (live, mutable via customer profile), defaulting to customer's primary addresses on creation Historical (snapshots): - Order: added EmbAddress **************** (SHIP_*/BILL_* column overrides) populated when orders finalize - Shipment: added EmbAddress destinationAddressSnapshot (DEST_* column overrides), copied from the order's shipping snapshot or purchaser's primary on creation - DraftOrder: added EmbAddress shipping/billing snapshots that capture the live address at conversion-time (status leaves OPEN); the live AccountAddress refs remain for traceability but the snapshot is the historical truth RetailService: - **************** now accept **************** (AccountAddress UIDs) instead of free-text address strings - snapshot helper copies EmbAddress defensively on finalization - DTOs expose snapshots and AccountAddress refs Provider customer adapters: verified compatible — none currently parse address blocks, so they continue to build Account without addresses (an optional list under the new structure).