service/LicenseService.php
public static function update(Context $context, $number, $transactionNumber = null, License $license)
    {
        CheckUtils::paramNotEmpty($number, Constants::NUMBER);

        if ($transactionNumber) $license->setProperty(Constants::TRANSACTION_NUMBER, $transactionNumber);

        $response = NetLicensingService::getInstance()
            ->post($context, Constants::LICENSE_ENDPOINT_PATH . '/' . $number, $license->asPropertiesMap());

        $updatedLicense = null;

        if (!empty($response->items->item[0])) {
            $updatedLicense = ItemToLicenseConverter::convert($response->items->item[0]);
            $updatedLicense->exists = true;
        }

        return $updatedLicense;
    }
public static function update(Context $context, $number, $transactionNumber = null, License $license)
    {
        CheckUtils::paramNotEmpty($number, Constants::NUMBER);

        if ($transactionNumber) $license->setProperty(Constants::TRANSACTION_NUMBER, $transactionNumber);

        $response = NetLicensingService::getInstance()
            ->post($context, Constants::LICENSE_ENDPOINT_PATH . '/' . $number, $license->asPropertiesMap());

        $updatedLicense = null;

        if (!empty($response->items->item[0])) {
            $updatedLicense = ItemToLicenseConverter::convert($response->items->item[0]);
            $updatedLicense->exists = true;
        }

        return $updatedLicense;
    }
Updates license properties.See NetLicensingAPI for details:
https://www.labs64.de/confluence/display/NLICPUB/License+Services#LicenseServices-Updatelicense

determines the vendor on whose behalf the call is performed
@param Context $context

license number
@param $number

transaction for the license update. Created implicitly if transactionNumber is null. In this case the
operation will be in a separate transaction.
@param null $transactionNumber

non-null properties will be updated to the provided values, null properties will stay unchanged.
@param License $license

return updated license.
@return License|null
@throws MalformedArgumentsException
@throws RestException
@throws \ErrorException