Options decide the part number: power fold, heating, turn-signal repeaters, puddle lamps and cameras each change what is inside and which connector it uses.
Complete assemblies are the straightforward fix when the housing, glass and mechanism have all been damaged together. Options decide the part number: power fold, heating, turn-signal repeaters, puddle lamps, cameras and blind-spot modules each change the internal wiring and the connector. Confirm the pin count on the original plug before ordering.