From 73807e6eca56610b6aa48edf1917f8d54ce24de1 Mon Sep 17 00:00:00 2001
From: Jacek Kowalski <Jacek@jacekk.info>
Date: Sat, 01 Jul 2023 10:52:44 +0000
Subject: [PATCH] Support App Key authentication to wFirma.pl API
---
src/UcrmPaymentMethods.php | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/UcrmPaymentMethods.php b/src/UcrmPaymentMethods.php
index 052cfd3..577e516 100644
--- a/src/UcrmPaymentMethods.php
+++ b/src/UcrmPaymentMethods.php
@@ -3,8 +3,8 @@
namespace SIPL\UCRM\wFirma;
class UcrmPaymentMethods {
- protected $api;
- protected static $definition = [
+ protected \Ubnt\UcrmPluginSdk\Service\UcrmApi $api;
+ protected static array $definition = [
'Credit card' => '',
'Compensation' => '',
];
@@ -21,7 +21,7 @@
return self::$definition[$method];
}
- function update() {
+ function update(): void {
$methods = $this->api->get('/payment-methods');
foreach ($methods as $method) {
if (isset(self::$definition[$method['name']])) {
--
Gitblit v1.10.0