From 64b225bce5d8d66222a1311c8d201f399ca9d6b8 Mon Sep 17 00:00:00 2001
From: Jacek Kowalski <Jacek@jacekk.info>
Date: Tue, 17 Feb 2026 17:47:26 +0000
Subject: [PATCH] Update webit/w-firma-api to version 3

---
 src/wFirmaApiFactory.php |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/wFirmaApiFactory.php b/src/wFirmaApiFactory.php
index 1ddcc70..70c1a9a 100644
--- a/src/wFirmaApiFactory.php
+++ b/src/wFirmaApiFactory.php
@@ -3,7 +3,7 @@
 namespace SIPL\UCRM\wFirma;
 
 class wFirmaApiFactory {
-	protected $ucrmHelper;
+	protected UcrmHelper $ucrmHelper;
 
 	function __construct(UcrmHelper $ucrmHelper) {
 		$this->ucrmHelper = $ucrmHelper;
@@ -11,7 +11,7 @@
 
 	function create(): \Webit\WFirmaSDK\Entity\ModuleApiFactory {
 		$config = $this->ucrmHelper->getConfig();
-		$wFirmaAuth = new \Webit\WFirmaSDK\Auth\BasicAuth($config['wfirma_username'], $config['wfirma_password']);
+		$wFirmaAuth = new \Webit\WFirmaSDK\Auth\ApiKeysAuth($config['wfirma_access_key'], $config['wfirma_secret_key'], $config['wfirma_app_key']);
 
 		$wFirmaEntityApiFactory = new \Webit\WFirmaSDK\Entity\EntityApiFactory();
 		$wFirmaEntityApi = $wFirmaEntityApiFactory->create($wFirmaAuth);

--
Gitblit v1.10.0