service/TransactionService.php
public static function update(Context $context, $number, Transaction $transaction)
    {
        CheckUtils::paramNotEmpty($number, Constants::NUMBER);

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

        $updatedTransaction = null;

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

        return $updatedTransaction;
      }
public static function update(Context $context, $number, Transaction $transaction)
    {
        CheckUtils::paramNotEmpty($number, Constants::NUMBER);

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

        $updatedTransaction = null;

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

        return $updatedTransaction;
      }
Updates transaction properties.See NetLicensingAPI for details:
https://www.labs64.de/confluence/display/NLICPUB/Transaction+Services#TransactionServices-Updatetransaction

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

transaction number
@param string $number

non-null properties will be updated to the provided values, null properties will stay unchanged.
@param \NetLicensing\Transaction $transaction

return updated transaction.
@return Transaction|null
@throws MalformedArgumentsException
@throws \ErrorException
@throws RestException