You'll need a Bavarian Technic lead to be sure of picking up all th BMW specific codes.
Agree - never buy a used pump - there's been about 10 itterations of the pump over a few years with only the later one being 'fixed'.
The current real oem should show the latest part number.
E90 330i 6MT gone. E91 335i 6MT gone. AMG E63 Estate gone. M6GC current...