\Bitrix\Sale\BasketBase::setFUserId($fUserId);
Method sets shopping cart owner ID (buyer). Non-static method.