public function send(ConversionInterface $conversion): ResponseInterface
    {
        foreach ($this->services as $service) {
            if (is_null($service->getConfig())) {
                $config = $this->config->getConfiguredConfigInstance($service);
                if ($config instanceof PostbackServiceConfigInterface) {
                    $service->setConfig($config);
                } else {
                    continue;
                }
            }

            try {
                return $service->send($conversion);
            } catch (UnsupportedConversionTypeException $exception) {
                continue;
            }
        }
        throw new UnsupportedConversionTypeException($this, $conversion);
    }
public function send(ConversionInterface $conversion): ResponseInterface
    {
        foreach ($this->services as $service) {
            if (is_null($service->getConfig())) {
                $config = $this->config->getConfiguredConfigInstance($service);
                if ($config instanceof PostbackServiceConfigInterface) {
                    $service->setConfig($config);
                } else {
                    continue;
                }
            }

            try {
                return $service->send($conversion);
            } catch (UnsupportedConversionTypeException $exception) {
                continue;
            }
        }
        throw new UnsupportedConversionTypeException($this, $conversion);
    }
public function send ( ConversionInterface $ conversion ) : ResponseInterface { foreach ( $ this -> services as $ service ) { if ( is_null ( $ service -> getConfig ( ) ) ) { $ config = $ this -> config -> getConfiguredConfigInstance ( $ service ) ; if ( $ config instanceof PostbackServiceConfigInterface ) { $ service -> setConfig ( $ config ) ; } else { continue ; } } try { return $ service -> send ( $ conversion ) ; } catch ( UnsupportedConversionTypeException $ exception ) { continue ; } } throw new UnsupportedConversionTypeException ( $ this , $ conversion ) ; }
Try each service to send conversion, while getting UnsupportedConversionException

@param ConversionInterface $conversion

@throws UnsupportedConversionTypeException
@throws DuplicatedConversionException
@throws RequestException

@return ResponseInterface
Try each service to send conversion while getting UnsupportedConversionException