public function deliveryTracking($code, array $statusUpdate)
    {
        if (empty($code)) {
            throw new \InvalidArgumentException('Parameter `code` must be set');
        }

        if (!count($statusUpdate)) {
            throw new \InvalidArgumentException(
                'Parameter `statusUpdate` must contains a data'
            );
        }

        /* @noinspection PhpUndefinedMethodInspection */
        return $this->client->makeRequest(
            sprintf('/delivery/generic/%s/tracking', $code),
            "POST",
            ['statusUpdate' => json_encode($statusUpdate)]
        );
    }
public function deliveryTracking($code, array $statusUpdate)
    {
        if (empty($code)) {
            throw new \InvalidArgumentException('Parameter `code` must be set');
        }

        if (!count($statusUpdate)) {
            throw new \InvalidArgumentException(
                'Parameter `statusUpdate` must contains a data'
            );
        }

        /* @noinspection PhpUndefinedMethodInspection */
        return $this->client->makeRequest(
            sprintf('/delivery/generic/%s/tracking', $code),
            "POST",
            ['statusUpdate' => json_encode($statusUpdate)]
        );
    }
public function deliveryTracking ( $ code , array $ statusUpdate ) { if ( empty ( $ code ) ) { throw new \ InvalidArgumentException ( 'Parameter `code` must be set' ) ; } if ( ! count ( $ statusUpdate ) ) { throw new \ InvalidArgumentException ( 'Parameter `statusUpdate` must contains a data' ) ; } /* @noinspection PhpUndefinedMethodInspection */ return $ this -> client -> makeRequest ( sprintf ( '/delivery/generic/%s/tracking' , $ code ) , "POST" , [ 'statusUpdate' => json_encode ( $ statusUpdate ) ] ) ; }
Delivery tracking update

@param string $code
@param array  $statusUpdate

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

@return \RetailCrm\Response\ApiResponse
Delivery tracking update