Jacek Kowalski
2024-10-24 2b276040c31fb8cab7ff19e968dab4064450d74b
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']])) {