Bridge/Symfony/Validator/SaleStepValidator.php
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;
    }
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;
    }
Returns the validation constraints for the given step.

@param string $step

@return array|\Symfony\Component\Validator\Constraint[]