@repo/shared / EntityReference
Shared entity reference type for by-reference entity storage pattern. Used across shipping header, line items, and PGA entities.
This type stores a reference to a TradeParty along with denormalized data for performance (avoiding lookups during display).
| Property | Type | Description |
|---|---|---|
id? | string | The Tarifflo-internal ID of the trade party being referenced. Create and manage trade parties via the Tarifflo Trade Party API. |
individualContactIndex? | number | - |
legalName? | string | The legal name of the trade party, stored here for display purposes. |