code: protected function getConstraintsForStep($step)
      {
          $constraints = [new Valid()];
  
          if ($step === static::SHIPMENT_STEP) {
              $constraints[] = new Constraints\SaleShipmentStep();
          }
  
          if ($step === static::PAYMENT_STEP) {
              $constraints[] = new Constraints\SaleShipmentStep();
              $constraints[] = new Constraints\RelayPoint();
              $constraints[] = new Constraints\SalePaymentStep();
          }
  
          return $constraints;
      }
docs: Returns the validation constraints for the given step.
  
  @param string $step
  
  @return array|\Symfony\Component\Validator\Constraint[]