This looks like another candidate for "differences from 1.x," an old answer of mine that illustrates how to accomplish altering additional Ajax commands onto the product attribute related refresh process in 2.x.
https://drupal.stackexchange.com/questions/293877/commerce-hook-attributes-refresh-alter/294092