public function integrationModulesEdit(array $configuration)
    {
        if (!count($configuration) || empty($configuration['code'])) {
            throw new \InvalidArgumentException(
                'Parameter `configuration` must contains a data & configuration `code` must be set'
            );
        }

        /* @noinspection PhpUndefinedMethodInspection */
        return $this->client->makeRequest(
            sprintf('/integration-modules/%s/edit', $configuration['code']),
            "POST",
            ['integrationModule' => json_encode($configuration)]
        );
    }
public function integrationModulesEdit(array $configuration)
    {
        if (!count($configuration) || empty($configuration['code'])) {
            throw new \InvalidArgumentException(
                'Parameter `configuration` must contains a data & configuration `code` must be set'
            );
        }

        /* @noinspection PhpUndefinedMethodInspection */
        return $this->client->makeRequest(
            sprintf('/integration-modules/%s/edit', $configuration['code']),
            "POST",
            ['integrationModule' => json_encode($configuration)]
        );
    }
public function integrationModulesEdit ( array $ configuration ) { if ( ! count ( $ configuration ) || empty ( $ configuration [ 'code' ] ) ) { throw new \ InvalidArgumentException ( 'Parameter `configuration` must contains a data & configuration `code` must be set' ) ; } /* @noinspection PhpUndefinedMethodInspection */ return $ this -> client -> makeRequest ( sprintf ( '/integration-modules/%s/edit' , $ configuration [ 'code' ] ) , "POST" , [ 'integrationModule' => json_encode ( $ configuration ) ] ) ; }
Edit module configuration

@param array $configuration

@throws \RetailCrm\Exception\InvalidJsonException
@throws \RetailCrm\Exception\CurlException
@throws \InvalidArgumentException

@return \RetailCrm\Response\ApiResponse
Edit module configuration