You and/or the truck dealer are incorrect. The applicable law is the Advanced Clean Trucks (ACT) Regulation which is found at 6 NYCRR Subpart 218-4. You can read the New York State Department of Environmental Conservation (NYSDEC) summary here:
dec.ny.gov/environmental-protection/air-quality/controlling-motor-vehicle-pollution/heavy-duty-vehicles
The ACT regulation requires applicable medium- and heavy-duty vehicle (M/HDV) manufacturers to sell a percentage of their total sales in New York State as zero-emission vehicles (ZEVs) starting in model year (MY) 2025 with increasing ZEV sales through MY 2035. Transit buses, motor coaches, and emergency vehicles are exempt from the ACT regulation. The ACT regulation does not require M/HDV fleets, owners, operators, or dealerships to purchase ZEVs, nor does it directly require dealerships to sell certain percentages of ZEVs or near zero-emission vehicles (NZEVs).