Plugin Directory

Changeset 2631429


Ignore:
Timestamp:
11/17/2021 01:56:33 PM (4 years ago)
Author:
alexp11223
Message:

Release 1.5.1

Location:
zettle-pos-integration/trunk
Files:
1 added
18 deleted
35 edited

Legend:

Unmodified
Added
Removed
  • zettle-pos-integration/trunk/modules/zettle-auth/services.php

    r2605648 r2631429  
    115115        );
    116116    },
     117
     118    'zettle.auth.is-failed' => static function (C $container): bool {
     119        return (bool) get_option($container->get('zettle.auth.is-failed.key'));
     120    },
     121    'zettle.auth.is-failed.key' => static function (): string {
     122        return 'zettle-pos-integration.auth-failed';
     123    },
     124
    117125    'zettle.oauth.http-client-factory' =>
    118126        static function (C $container): AuthenticatedClientFactory {
  • zettle-pos-integration/trunk/modules/zettle-auth/src/AuthModule.php

    r2605648 r2631429  
    5353        );
    5454
     55        $authFailedKey = $container->get('zettle.auth.is-failed.key');
     56
     57        add_action(
     58            'inpsyde.zettle.auth.failed',
     59            static function () use ($authFailedKey) {
     60                update_option($authFailedKey, true);
     61            }
     62        );
     63        add_action(
     64            'inpsyde.zettle.auth.succeeded',
     65            static function () use ($authFailedKey) {
     66                delete_option($authFailedKey);
     67            }
     68        );
     69
    5570        add_action(
    5671            'inpsyde.zettle.credentials.updated',
    57             static function (array $changed) use ($container) {
     72            static function (array $changed) use ($container, $authFailedKey) {
    5873                $storage = $container->get('zettle.oauth.token-storage');
    5974                assert($storage instanceof TokenPersistorInterface);
    6075
    6176                $storage->clear();
     77
     78                delete_option($authFailedKey);
    6279            }
    6380        );
  • zettle-pos-integration/trunk/modules/zettle-auth/src/HTTPlug/ZettleAuthPlugin.php

    r2477105 r2631429  
    135135                     * is now successful when we retry
    136136                     */
    137                     $this->handleAuthRequest($first, $request, $authGrantType)->wait();
     137                    try {
     138                        $this->handleAuthRequest($first, $request, $authGrantType)->wait();
     139                    } catch (AuthenticationException $authException) {
     140                        do_action('inpsyde.zettle.auth.failed', $authException);
     141                        throw $authException;
     142                    }
    138143
    139144                    /**
     
    143148                    $promise = $this->handleRequest($request, $next, $first);
    144149
    145                     return $promise->wait();
    146                 }
     150                    $ret = $promise->wait();
     151
     152                    do_action('inpsyde.zettle.auth.succeeded');
     153
     154                    return $ret;
     155                }
     156
     157                do_action('inpsyde.zettle.auth.succeeded');
    147158
    148159                unset($this->chainStorage[$chainIdentifier]);
  • zettle-pos-integration/trunk/modules/zettle-notices/services.php

    r2477105 r2631429  
    2626        return new GlobalConnectionFailedNotice(
    2727            $container->get('zettle.settings.is-integration-page'),
    28             $container->get('zettle.onboarding.api-auth-check'),
     28            $container->get('zettle.auth.is-failed'),
    2929            $container->get('zettle.settings.url')
    3030        );
     
    3636            $container->get('zettle.settings.is-integration-page'),
    3737            $container->get('zettle.onboarding.api-auth-check'),
     38            $container->get('zettle.settings.is-settings-save-request'),
    3839            $container->get('zettle.settings.account.link.api-key-creation-url')
    3940        );
  • zettle-pos-integration/trunk/modules/zettle-notices/src/Notice/Admin/GlobalConnectionFailedNotice.php

    r2605648 r2631429  
    1616
    1717    /**
    18      * @var callable
     18     * @var bool
    1919     */
    20     private $authCheckCallback;
     20    private $authFailed;
    2121
    2222    /**
     
    2525    private $settingsUrl;
    2626
    27     /**
    28      * AuthenticationFailed constructor.
    29      *
    30      * @param callable $isIntegrationPageCallback
    31      * @param callable $authCheckCallback
    32      * @param string $settingsUrl
    33      */
    3427    public function __construct(
    3528        callable $isIntegrationPageCallback,
    36         callable $authCheckCallback,
     29        bool $authFailed,
    3730        string $settingsUrl
    3831    ) {
    3932
    4033        $this->isIntegrationPageCallback = $isIntegrationPageCallback;
    41         $this->authCheckCallback = $authCheckCallback;
     34        $this->authFailed = $authFailed;
    4235        $this->settingsUrl = $settingsUrl;
    4336    }
     
    5649        }
    5750
    58         if (($this->authCheckCallback)()) {
    59             return false;
    60         }
    61 
    62         return true;
     51        return $this->authFailed;
    6352    }
    6453
  • zettle-pos-integration/trunk/modules/zettle-notices/src/Notice/Admin/IntegrationConnectionFailedNotice.php

    r2605648 r2631429  
    2121
    2222    /**
     23     * @var bool
     24     */
     25    private $isSavingSettings;
     26
     27    /**
    2328     * @var string
    2429     */
    2530    private $apiCreationLink;
    2631
    27     /**
    28      * SettingsAuthenticationFailedNotice constructor.
    29      *
    30      * @param callable $isIntegrationPageCallback
    31      * @param callable $authCheckCallback
    32      * @param string $apiCreationLink
    33      */
    3432    public function __construct(
    3533        callable $isIntegrationPageCallback,
    3634        callable $authCheckCallback,
     35        bool $isSavingSettings,
    3736        string $apiCreationLink
    3837    ) {
     
    4039        $this->isIntegrationPageCallback = $isIntegrationPageCallback;
    4140        $this->authCheckCallback = $authCheckCallback;
     41        $this->isSavingSettings = $isSavingSettings;
    4242        $this->apiCreationLink = $apiCreationLink;
    4343    }
     
    5353
    5454        if (!($this->isIntegrationPageCallback)()) {
     55            return false;
     56        }
     57
     58        // admin_notices fires before WC settings save handling
     59        // and WC also does not redirect to GET after saving settings.
     60        // So if we check auth in this request, we may use old API key.
     61        if ($this->isSavingSettings) {
    5562            return false;
    5663        }
  • zettle-pos-integration/trunk/modules/zettle-onboarding/services.php

    r2605648 r2631429  
    391391        return [
    392392            $container->get('zettle.onboarding.option.state'),
    393             $container->get('zettle.settings.option-key'),
    394393            $container->get('zettle.webhook.storage.option'),
    395394            $container->get('zettle.sdk.option.integration'),
    396             $container->get('zettle.logger.wp-option.key'),
    397             $container->get('inpsyde.queue.locker.option'),
     395            $container->get('zettle.auth.is-failed.key'),
    398396        ];
    399397    },
     
    420418            $container->get('zettle.onboarding.resettable.tables'),
    421419            $container->get('zettle.onboarding.resettable.transients'),
     420            $container->get('zettle.onboarding.resettable.options'),
    422421            $container->get('zettle.webhook.delete')
    423422        );
  • zettle-pos-integration/trunk/modules/zettle-onboarding/src/Job/ResetOnboardingJob.php

    r2605648 r2631429  
    5151
    5252    /**
     53     * @var string[]
     54     */
     55    private $options;
     56
     57    /**
    5358     * @var callable
    5459     */
    5560    private $deleteWebhooks;
    5661
    57     /**
    58      * ResetOnboardingJob constructor.
    59      *
    60      * @param wpdb $database
    61      * @param ClearableContainerInterface $optionContainer
    62      * @param TokenPersistorInterface $tokenStorage
    63      * @param array $options
    64      * @param array $tables
    65      * @param callable $deleteWebhooks
    66      */
    6762    public function __construct(
    6863        wpdb $database,
     
    7267        array $tables,
    7368        array $transients,
     69        array $options,
    7470        callable $deleteWebhooks
    7571    ) {
     
    8177        $this->tables = $tables;
    8278        $this->transients = $transients;
     79        $this->options = $options;
    8380        $this->deleteWebhooks = $deleteWebhooks;
    8481    }
     
    157154        }
    158155
     156        foreach ($this->options as $option) {
     157            delete_option($option);
     158            $logger->info("Cleared Option: '{$option}'");
     159        }
     160
    159161        $logger->info("Cleanup finished");
    160162
  • zettle-pos-integration/trunk/modules/zettle-php-sdk/src/API/Products/Products.php

    r2605648 r2631429  
    303303            return true;
    304304        }
    305         $uuids = [];
    306 
    307         array_walk(
    308             $products,
    309             static function (Product $product) use (&$uuids) {
    310                 $uuids[] = (string) $product->uuid();
    311             }
     305
     306        $uuids = array_map(
     307            function (ProductInterface $product): string {
     308                return $product->uuid();
     309            },
     310            $products
    312311        );
     312
    313313        $queryString = implode('&uuid=', $uuids);
    314314
     
    321321
    322322        if ($withListeners) {
    323             array_walk(
    324                 $products,
    325                 function (ProductInterface $product) use ($success) {
    326                     array_walk(
    327                         $this->listeners,
    328                         static function (callable $listener) use ($product, $success) {
    329                             $listener(ApiRestListener::DELETE, $product, $success);
    330                         }
    331                     );
    332                 }
    333             );
     323            foreach ($products as $product) {
     324                foreach ($this->listeners as $listener) {
     325                    $listener(ApiRestListener::DELETE, $product, $success);
     326                }
     327            }
    334328        }
    335329
  • zettle-pos-integration/trunk/modules/zettle-php-sdk/src/API/Webhooks/Subscriptions.php

    r2605648 r2631429  
    6767    {
    6868        $payload = [
    69             'uuid' => (string) $webhook->uuid(),
    70             'transportName' => $webhook::TRANSPORT_NAME,
     69            'uuid' => $webhook->uuid(),
     70            'transportName' => ZettleWebhook::TRANSPORT_NAME,
    7171            'eventNames' => $webhook->eventNames(),
    7272            'destination' => (string) $webhook->destination(),
     
    9393
    9494        $payload = [
    95             'transportName' => $webhook::TRANSPORT_NAME,
     95            'transportName' => ZettleWebhook::TRANSPORT_NAME,
    9696            'eventNames' => $webhook->eventNames(),
    9797            'destination' => (string) $webhook->destination(),
  • zettle-pos-integration/trunk/modules/zettle-php-sdk/src/Validator/VariantOptionValidator.php

    r2605648 r2631429  
    3333
    3434        $name = $entity->name();
     35        /** @psalm-suppress RedundantCast */
    3536        $nameLength = (int) mb_strlen($name);
    3637
  • zettle-pos-integration/trunk/modules/zettle-settings/services.php

    r2605648 r2631429  
    1616
    1717return [
    18     'zettle.settings.option-key' => static function (C $container): string {
    19         return 'woocommerce_zettle_settings';
    20     },
    2118    'zettle.settings.url' => static function (C $container): string {
    2219        return admin_url('admin.php?page=wc-settings&tab=zettle');
     
    219216        return new ZettleIntegration(
    220217            $container->get('zettle.settings.wc-integration.id'),
    221             $container->get('zettle.settings.option-key'),
    222218            $container->get('zettle.settings.wc-integration.header'),
    223219            $stateMachine->currentState()->name(),
     
    227223            ...$container->get('zettle.settings.field-renderers')
    228224        );
     225    },
     226    'zettle.settings.is-settings-save-request' => static function (C $container): bool {
     227        return filter_input(INPUT_POST, 'save') &&
     228            $container->get('zettle.settings.is-integration-page')();
    229229    },
    230230    'zettle.settings.page.factory' => static function (C $container): callable {
  • zettle-pos-integration/trunk/modules/zettle-settings/src/WC/ZettleIntegration.php

    r2605648 r2631429  
    1414class ZettleIntegration extends WC_Settings_API
    1515{
     16    /**
     17     * @var ZettleIntegrationTemplate
     18     */
     19    private $header;
    1620
    1721    /**
    1822     * @var string
    1923     */
    20     private $optionKey;
    21 
    22     /**
    23      * @var ZettleIntegrationTemplate
    24      */
    25     private $header;
    26 
    27     /**
    28      * @var string
    29      */
    3024    private $currentState;
    3125
     
    4539    private $container;
    4640
    47     /**
    48      * Init and hook in the integration.
    49      *
    50      * @param string $id
    51      * @param string $optionKey
    52      * @param ZettleIntegrationTemplate $header
    53      * @param string $currentState
    54      * @param array $formFields
    55      * @param callable $isIntegrationPage
    56      * @param FieldRendererInterface[] $renderers
    57      */
    5841    public function __construct(
    5942        string $id,
    60         string $optionKey,
    6143        ZettleIntegrationTemplate $header,
    6244        string $currentState,
     
    6749    ) {
    6850
    69         $this->optionKey = $optionKey;
    70 
    7151        $this->header = $header;
    7252
     
    11999                : '';
    120100
    121             if (!is_null($emptyValue) && $default === '') {
    122                 $this->settings[$key] = $emptyValue;
    123             }
    124 
    125101            return $default;
    126102        }
     
    136112    public function process_admin_options()
    137113    {
    138         $old = $this->settings;
    139 
     114        $old = [];
    140115        $settings = [];
    141116        $postData = $this->get_post_data();
     
    145120                continue; // do not reset missing fields
    146121            }
     122
     123            $old[$key] = $this->get_option($key);
    147124
    148125            if ($this->get_field_type($field) !== 'title') {
     
    169146        $changed = [];
    170147
    171         foreach ($this->settings as $key => $value) {
    172             if (!array_key_exists($key, $old)) {
     148        foreach ($sanitized as $key => $value) {
     149            if (!isset($old[$key])) {
    173150                $changed[$key] = $value;
    174151                continue;
  • zettle-pos-integration/trunk/modules/zettle-settings/src/WC/ZettleIntegrationHeader.php

    r2605648 r2631429  
    66
    77use Countable;
     8use Exception;
    89use Inpsyde\Zettle\Onboarding\OnboardingState as S;
    910use Inpsyde\Zettle\Onboarding\Settings\View\ButtonRendererTrait;
     
    252253        }
    253254
    254         if ($this->currentState === S::ONBOARDING_COMPLETED && !empty($this->organizationProvider)) : ?>
     255        if ($this->currentState === S::ONBOARDING_COMPLETED) : ?>
    255256            <div class="zettle-settings-header-merchant-email">
    256                   <p><?php echo esc_html($this->organizationProvider->provide()->contactEmail()); ?></p>
     257                  <p><?php echo esc_html((string) $this->email()); ?></p>
    257258            </div>
    258259            <?php
     
    480481        <?php return ob_get_clean();
    481482    }
     483
     484    private function email(): ?string
     485    {
     486        try {
     487            return $this->organizationProvider->provide()->contactEmail();
     488        } catch (Exception $exception) {
     489            return null;
     490        }
     491    }
    482492}
  • zettle-pos-integration/trunk/modules/zettle-sync/src/SyncModule.php

    r2605648 r2631429  
    5757        }
    5858
     59        $logger = $container->get('zettle.logger');
     60
    5961        // without is_admin it triggers multiple time in ajax requests
    6062        // also to avoid performance issues for users
     
    6264            is_admin()
    6365            && $container->get('zettle.sync.price-sync-enabled')
    64             && $container->get('zettle.sdk.api.auth-check')()
     66            && !$container->get('zettle.auth.is-failed')
    6567        ) {
    66             $storeComparison = $container->get('zettle.onboarding.comparison.store');
    67             $settings = $container->get('zettle.settings');
    68             $logger = $container->get('zettle.logger');
     68            try {
     69                $settings = $container->get('zettle.settings');
    6970
    70             if (!$storeComparison->canSyncPrices()) {
    71                 $logger->info(__(
    72                     'Cannot sync prices with PayPal Zettle anymore, check your WC settings (currency, country, taxes).',
    73                     'zettle-pos-integration'
    74                 ));
     71                $storeComparison = $container->get('zettle.onboarding.comparison.store');
     72                if (!$storeComparison->canSyncPrices()) {
     73                    $logger->info(__(
     74                        'Cannot sync prices with PayPal Zettle anymore, check your WC settings (currency, country, taxes).',
     75                        'zettle-pos-integration'
     76                    ));
    7577
    76                 $settings->set('sync_price_strategy', PriceSyncMode::DISABLED);
     78                    $settings->set('sync_price_strategy', PriceSyncMode::DISABLED);
     79                }
     80            } catch (Exception $exception) {
     81                // likely happens on auth failure when refreshing account data
     82                $logger->debug('Settings check failed. ' . $exception->getMessage());
    7783            }
    7884        }
  • zettle-pos-integration/trunk/modules/zettle-webhooks/src/WebhookStorage.php

    r2477105 r2631429  
    99use Inpsyde\Zettle\PhpSdk\API\Webhooks\Entity\Webhook;
    1010use Inpsyde\Zettle\PhpSdk\API\Webhooks\Entity\WebhookFactory;
     11use Inpsyde\Zettle\PhpSdk\API\Webhooks\Entity\ZettleWebhook;
    1112
    1213class WebhookStorage implements WebhookStorageInterface
     
    5960    {
    6061        $data = [
    61             'uuid' => (string) $webhook->uuid(),
    62             'transportName' => $webhook::TRANSPORT_NAME,
     62            'uuid' => $webhook->uuid(),
     63            'transportName' => ZettleWebhook::TRANSPORT_NAME,
    6364            'eventNames' => $webhook->eventNames(),
    6465            'destination' => (string) $webhook->destination(),
  • zettle-pos-integration/trunk/readme.txt

    r2605648 r2631429  
    55Tested up to: 5.8
    66Requires PHP: 7.2
    7 Stable tag: 1.5.0
     7Stable tag: 1.5.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    6868== Changelog ==
    6969
     70= 1.5.1 =
     71- Optimize auth checks to reduce amount of requests to Zettle.
     72- Fixed API key change detection when saving settings, so that it takes effect immediately.
     73- Fixed fatal error on the settings page when auth fails.
     74- Delete some missing options during resetting/uninstallation (webhooks, integration id, ...).
     75
    7076= 1.5.0 =
    7177- Add plugin status data on the WC Status page.
  • zettle-pos-integration/trunk/vendor/autoload.php

    r2605648 r2631429  
    55require_once __DIR__ . '/composer/autoload_real.php';
    66
    7 return ComposerAutoloaderInit1cbf92780f623995dcc91128fb4159b5::getLoader();
     7return ComposerAutoloaderInit7ae8c9caea2f8fd02c2bf18844b98690::getLoader();
  • zettle-pos-integration/trunk/vendor/composer/InstalledVersions.php

    r2605648 r2631429  
    2525class InstalledVersions
    2626{
     27    /**
     28     * @var mixed[]|null
     29     * @psalm-var array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}|array{}|null
     30     */
    2731    private static $installed;
     32
     33    /**
     34     * @var bool|null
     35     */
    2836    private static $canGetVendors;
     37
     38    /**
     39     * @var array[]
     40     * @psalm-var array<string, array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}>
     41     */
    2942    private static $installedByVendor = array();
    3043
  • zettle-pos-integration/trunk/vendor/composer/autoload_real.php

    r2605648 r2631429  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit1cbf92780f623995dcc91128fb4159b5
     5class ComposerAutoloaderInit7ae8c9caea2f8fd02c2bf18844b98690
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInit1cbf92780f623995dcc91128fb4159b5', 'loadClassLoader'), true, true);
     27        spl_autoload_register(array('ComposerAutoloaderInit7ae8c9caea2f8fd02c2bf18844b98690', 'loadClassLoader'), true, true);
    2828        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
    29         spl_autoload_unregister(array('ComposerAutoloaderInit1cbf92780f623995dcc91128fb4159b5', 'loadClassLoader'));
     29        spl_autoload_unregister(array('ComposerAutoloaderInit7ae8c9caea2f8fd02c2bf18844b98690', 'loadClassLoader'));
    3030
    3131        $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
     
    3333            require __DIR__ . '/autoload_static.php';
    3434
    35             call_user_func(\Composer\Autoload\ComposerStaticInit1cbf92780f623995dcc91128fb4159b5::getInitializer($loader));
     35            call_user_func(\Composer\Autoload\ComposerStaticInit7ae8c9caea2f8fd02c2bf18844b98690::getInitializer($loader));
    3636        } else {
    3737            $classMap = require __DIR__ . '/autoload_classmap.php';
     
    4545
    4646        if ($useStaticLoader) {
    47             $includeFiles = Composer\Autoload\ComposerStaticInit1cbf92780f623995dcc91128fb4159b5::$files;
     47            $includeFiles = Composer\Autoload\ComposerStaticInit7ae8c9caea2f8fd02c2bf18844b98690::$files;
    4848        } else {
    4949            $includeFiles = require __DIR__ . '/autoload_files.php';
    5050        }
    5151        foreach ($includeFiles as $fileIdentifier => $file) {
    52             composerRequire1cbf92780f623995dcc91128fb4159b5($fileIdentifier, $file);
     52            composerRequire7ae8c9caea2f8fd02c2bf18844b98690($fileIdentifier, $file);
    5353        }
    5454
     
    5757}
    5858
    59 function composerRequire1cbf92780f623995dcc91128fb4159b5($fileIdentifier, $file)
     59function composerRequire7ae8c9caea2f8fd02c2bf18844b98690($fileIdentifier, $file)
    6060{
    6161    if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
  • zettle-pos-integration/trunk/vendor/composer/autoload_static.php

    r2605648 r2631429  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInit1cbf92780f623995dcc91128fb4159b5
     7class ComposerStaticInit7ae8c9caea2f8fd02c2bf18844b98690
    88{
    99    public static $files = array (
     
    15431543    {
    15441544        return \Closure::bind(function () use ($loader) {
    1545             $loader->prefixLengthsPsr4 = ComposerStaticInit1cbf92780f623995dcc91128fb4159b5::$prefixLengthsPsr4;
    1546             $loader->prefixDirsPsr4 = ComposerStaticInit1cbf92780f623995dcc91128fb4159b5::$prefixDirsPsr4;
    1547             $loader->classMap = ComposerStaticInit1cbf92780f623995dcc91128fb4159b5::$classMap;
     1545            $loader->prefixLengthsPsr4 = ComposerStaticInit7ae8c9caea2f8fd02c2bf18844b98690::$prefixLengthsPsr4;
     1546            $loader->prefixDirsPsr4 = ComposerStaticInit7ae8c9caea2f8fd02c2bf18844b98690::$prefixDirsPsr4;
     1547            $loader->classMap = ComposerStaticInit7ae8c9caea2f8fd02c2bf18844b98690::$classMap;
    15481548
    15491549        }, null, ClassLoader::class);
  • zettle-pos-integration/trunk/vendor/composer/installed.json

    r2605648 r2631429  
    337337        {
    338338            "name": "dhii/collections-interface",
    339             "version": "v0.3.0-alpha4",
    340             "version_normalized": "0.3.0.0-alpha4",
     339            "version": "v0.3.0",
     340            "version_normalized": "0.3.0.0",
    341341            "source": {
    342342                "type": "git",
    343343                "url": "https://github.com/Dhii/collections-interface.git",
    344                 "reference": "da334f75f6477ef7eecaf28df1d5253fe05684ee"
    345             },
    346             "dist": {
    347                 "type": "zip",
    348                 "url": "https://api.github.com/repos/Dhii/collections-interface/zipball/da334f75f6477ef7eecaf28df1d5253fe05684ee",
    349                 "reference": "da334f75f6477ef7eecaf28df1d5253fe05684ee",
     344                "reference": "74464a969b340d16889eacd9eadc9817f7e7f47a"
     345            },
     346            "dist": {
     347                "type": "zip",
     348                "url": "https://api.github.com/repos/Dhii/collections-interface/zipball/74464a969b340d16889eacd9eadc9817f7e7f47a",
     349                "reference": "74464a969b340d16889eacd9eadc9817f7e7f47a",
    350350                "shasum": "",
    351351                "mirrors": [
     
    363363                "phpunit/phpunit": "^7.0 | ^8.0 | ^9.0",
    364364                "slevomat/coding-standard": "^6.0",
    365                 "vimeo/psalm": "^3.11.7 | ^4.0"
    366             },
    367             "time": "2021-03-09T17:36:34+00:00",
     365                "vimeo/psalm": "^4.0"
     366            },
     367            "time": "2021-10-06T10:56:09+00:00",
    368368            "type": "library",
    369369            "extra": {
     
    395395            "support": {
    396396                "issues": "https://github.com/Dhii/collections-interface/issues",
    397                 "source": "https://github.com/Dhii/collections-interface/tree/v0.3.0-alpha4"
     397                "source": "https://github.com/Dhii/collections-interface/tree/v0.3.0"
    398398            },
    399399            "install-path": "../dhii/collections-interface"
     
    406406                "type": "git",
    407407                "url": "https://github.com/Dhii/containers.git",
    408                 "reference": "b76c73d172255eddb9d6e2a3a9ed2306c8b42563"
    409             },
    410             "dist": {
    411                 "type": "zip",
    412                 "url": "https://api.github.com/repos/Dhii/containers/zipball/b76c73d172255eddb9d6e2a3a9ed2306c8b42563",
    413                 "reference": "b76c73d172255eddb9d6e2a3a9ed2306c8b42563",
     408                "reference": "0c27bdf5a8fd689fe2d74385b747c85ef0df9be4"
     409            },
     410            "dist": {
     411                "type": "zip",
     412                "url": "https://api.github.com/repos/Dhii/containers/zipball/0c27bdf5a8fd689fe2d74385b747c85ef0df9be4",
     413                "reference": "0c27bdf5a8fd689fe2d74385b747c85ef0df9be4",
    414414                "shasum": "",
    415415                "mirrors": [
     
    434434                "wildwolf/psr-memory-cache": "^1.0"
    435435            },
    436             "time": "2021-03-10T08:54:31+00:00",
     436            "time": "2021-10-06T11:15:32+00:00",
    437437            "default-branch": true,
    438438            "type": "library",
     
    465465            "support": {
    466466                "issues": "https://github.com/Dhii/containers/issues",
    467                 "source": "https://github.com/Dhii/containers/tree/v0.1.4-alpha2"
     467                "source": "https://github.com/Dhii/containers/tree/develop"
    468468            },
    469469            "install-path": "../dhii/containers"
     
    822822        {
    823823            "name": "inpsyde/assets",
    824             "version": "2.7.0",
    825             "version_normalized": "2.7.0.0",
     824            "version": "2.8",
     825            "version_normalized": "2.8.0.0",
    826826            "source": {
    827827                "type": "git",
    828828                "url": "https://github.com/inpsyde/assets.git",
    829                 "reference": "5eedca1ec517c728dd629da8b29b716ed9ac3780"
    830             },
    831             "dist": {
    832                 "type": "zip",
    833                 "url": "https://api.github.com/repos/inpsyde/assets/zipball/5eedca1ec517c728dd629da8b29b716ed9ac3780",
    834                 "reference": "5eedca1ec517c728dd629da8b29b716ed9ac3780",
     829                "reference": "6383ccc31df80118eb32096b10ca621e48a588b6"
     830            },
     831            "dist": {
     832                "type": "zip",
     833                "url": "https://api.github.com/repos/inpsyde/assets/zipball/6383ccc31df80118eb32096b10ca621e48a588b6",
     834                "reference": "6383ccc31df80118eb32096b10ca621e48a588b6",
    835835                "shasum": "",
    836836                "mirrors": [
     
    855855                "vimeo/psalm": "@stable"
    856856            },
    857             "time": "2021-08-06T06:45:37+00:00",
     857            "time": "2021-11-11T09:15:30+00:00",
    858858            "type": "library",
    859859            "extra": {
     
    883883                {
    884884                    "name": "Christian Leucht",
    885                     "email": "chris@chrico.info",
     885                    "email": "c.leucht@inpsyde.com",
    886886                    "homepage": "https://www.chrico.info",
    887887                    "role": "Developer"
     
    891891            "support": {
    892892                "issues": "https://github.com/inpsyde/assets/issues",
    893                 "source": "https://github.com/inpsyde/assets/tree/2.7.0"
     893                "source": "https://github.com/inpsyde/assets/tree/2.8"
    894894            },
    895895            "install-path": "../inpsyde/assets"
     
    897897        {
    898898            "name": "inpsyde/inpsyde-debug",
    899             "version": "1.5.0",
    900             "version_normalized": "1.5.0.0",
     899            "version": "1.5.1",
     900            "version_normalized": "1.5.1.0",
    901901            "dist": {
    902902                "type": "path",
     
    933933        {
    934934            "name": "inpsyde/inpsyde-http-client",
    935             "version": "1.5.0",
    936             "version_normalized": "1.5.0.0",
     935            "version": "1.5.1",
     936            "version_normalized": "1.5.1.0",
    937937            "dist": {
    938938                "type": "path",
     
    962962        {
    963963            "name": "inpsyde/inpsyde-queue",
    964             "version": "1.5.0",
    965             "version_normalized": "1.5.0.0",
     964            "version": "1.5.1",
     965            "version_normalized": "1.5.1.0",
    966966            "dist": {
    967967                "type": "path",
     
    999999        {
    10001000            "name": "inpsyde/inpsyde-state-machine",
    1001             "version": "1.5.0",
    1002             "version_normalized": "1.5.0.0",
     1001            "version": "1.5.1",
     1002            "version_normalized": "1.5.1.0",
    10031003            "dist": {
    10041004                "type": "path",
     
    10351035        {
    10361036            "name": "inpsyde/inpsyde-woocommerce-lifecycle-events",
    1037             "version": "1.5.0",
    1038             "version_normalized": "1.5.0.0",
     1037            "version": "1.5.1",
     1038            "version_normalized": "1.5.1.0",
    10391039            "dist": {
    10401040                "type": "path",
     
    11381138        {
    11391139            "name": "inpsyde/psr-18-wp-http-client",
    1140             "version": "v0.1.0-alpha3",
    1141             "version_normalized": "0.1.0.0-alpha3",
     1140            "version": "v0.1.0-alpha4",
     1141            "version_normalized": "0.1.0.0-alpha4",
    11421142            "source": {
    11431143                "type": "git",
    11441144                "url": "git@github.com:inpsyde/psr-18-wp-http-client.git",
    1145                 "reference": "15665e2d7e795cca04c0ebb9facf54ea05bc4a38"
    1146             },
    1147             "dist": {
    1148                 "type": "zip",
    1149                 "url": "https://api.github.com/repos/inpsyde/psr-18-wp-http-client/zipball/15665e2d7e795cca04c0ebb9facf54ea05bc4a38",
    1150                 "reference": "15665e2d7e795cca04c0ebb9facf54ea05bc4a38",
     1145                "reference": "8dd172262c95fc3fb4716b14a54c9406254ba441"
     1146            },
     1147            "dist": {
     1148                "type": "zip",
     1149                "url": "https://api.github.com/repos/inpsyde/psr-18-wp-http-client/zipball/8dd172262c95fc3fb4716b14a54c9406254ba441",
     1150                "reference": "8dd172262c95fc3fb4716b14a54c9406254ba441",
    11511151                "shasum": "",
    11521152                "mirrors": [
     
    11621162                "psr/http-factory": "^1.0",
    11631163                "psr/http-message": "^1.0"
     1164            },
     1165            "provide": {
     1166                "psr/http-client-implementation": "^1.0"
    11641167            },
    11651168            "require-dev": {
     
    11711174                "voku/httpful": "^2.4"
    11721175            },
    1173             "time": "2021-02-25T07:19:53+00:00",
     1176            "time": "2021-10-01T10:22:17+00:00",
    11741177            "type": "library",
    11751178            "extra": {
     
    11911194            "notification-url": "https://repo.packagist.com/inpsyde/izettle/downloads/",
    11921195            "license": [
    1193                 "MIT"
     1196                "GPL-2.0-or-later"
    11941197            ],
    11951198            "authors": [
     
    12071210            "description": "A PSR-18 compatible wrapper for WordPress HTTP requests",
    12081211            "support": {
    1209                 "source": "https://github.com/inpsyde/psr-18-wp-http-client/tree/v0.1.0-alpha3",
     1212                "source": "https://github.com/inpsyde/psr-18-wp-http-client/tree/v0.1.0-alpha4",
    12101213                "issues": "https://github.com/inpsyde/psr-18-wp-http-client/issues"
    12111214            },
     
    12141217        {
    12151218            "name": "inpsyde/wc-product-contracts",
    1216             "version": "1.5.0",
    1217             "version_normalized": "1.5.0.0",
     1219            "version": "1.5.1",
     1220            "version_normalized": "1.5.1.0",
    12181221            "dist": {
    12191222                "type": "path",
     
    12481251        {
    12491252            "name": "inpsyde/wc-status-report",
    1250             "version": "1.5.0",
    1251             "version_normalized": "1.5.0.0",
     1253            "version": "1.5.1",
     1254            "version_normalized": "1.5.1.0",
    12521255            "dist": {
    12531256                "type": "path",
     
    12821285        {
    12831286            "name": "inpsyde/wp-context",
    1284             "version": "1.3.0",
    1285             "version_normalized": "1.3.0.0",
     1287            "version": "1.3.1",
     1288            "version_normalized": "1.3.1.0",
    12861289            "source": {
    12871290                "type": "git",
    12881291                "url": "https://github.com/inpsyde/wp-context.git",
    1289                 "reference": "6b3377177d7dec2fc58b47479493cc541d7a4d54"
    1290             },
    1291             "dist": {
    1292                 "type": "zip",
    1293                 "url": "https://api.github.com/repos/inpsyde/wp-context/zipball/6b3377177d7dec2fc58b47479493cc541d7a4d54",
    1294                 "reference": "6b3377177d7dec2fc58b47479493cc541d7a4d54",
     1292                "reference": "d41b3b5d6fc8f5b9de3e832f7a79922d6446583c"
     1293            },
     1294            "dist": {
     1295                "type": "zip",
     1296                "url": "https://api.github.com/repos/inpsyde/wp-context/zipball/d41b3b5d6fc8f5b9de3e832f7a79922d6446583c",
     1297                "reference": "d41b3b5d6fc8f5b9de3e832f7a79922d6446583c",
    12951298                "shasum": "",
    12961299                "mirrors": [
     
    13121315                "vimeo/psalm": "@stable"
    13131316            },
    1314             "time": "2021-08-03T18:00:24+00:00",
     1317            "time": "2021-10-19T12:40:19+00:00",
    13151318            "type": "library",
    13161319            "extra": {
     
    13451348            "support": {
    13461349                "issues": "https://github.com/inpsyde/wp-context/issues",
    1347                 "source": "https://github.com/inpsyde/wp-context/tree/1.3.0"
     1350                "source": "https://github.com/inpsyde/wp-context/tree/1.3.1"
    13481351            },
    13491352            "install-path": "../inpsyde/wp-context"
     
    13511354        {
    13521355            "name": "inpsyde/zettle-assets",
    1353             "version": "1.5.0",
    1354             "version_normalized": "1.5.0.0",
     1356            "version": "1.5.1",
     1357            "version_normalized": "1.5.1.0",
    13551358            "dist": {
    13561359                "type": "path",
     
    13761379        {
    13771380            "name": "inpsyde/zettle-auth",
    1378             "version": "1.5.0",
    1379             "version_normalized": "1.5.0.0",
     1381            "version": "1.5.1",
     1382            "version_normalized": "1.5.1.0",
    13801383            "dist": {
    13811384                "type": "path",
     
    14031406        {
    14041407            "name": "inpsyde/zettle-logging",
    1405             "version": "1.5.0",
    1406             "version_normalized": "1.5.0.0",
     1408            "version": "1.5.1",
     1409            "version_normalized": "1.5.1.0",
    14071410            "dist": {
    14081411                "type": "path",
     
    14421445        {
    14431446            "name": "inpsyde/zettle-notices",
    1444             "version": "1.5.0",
    1445             "version_normalized": "1.5.0.0",
     1447            "version": "1.5.1",
     1448            "version_normalized": "1.5.1.0",
    14461449            "dist": {
    14471450                "type": "path",
     
    14661469        {
    14671470            "name": "inpsyde/zettle-onboarding",
    1468             "version": "1.5.0",
    1469             "version_normalized": "1.5.0.0",
     1471            "version": "1.5.1",
     1472            "version_normalized": "1.5.1.0",
    14701473            "dist": {
    14711474                "type": "path",
     
    15041507        {
    15051508            "name": "inpsyde/zettle-php-sdk",
    1506             "version": "1.5.0",
    1507             "version_normalized": "1.5.0.0",
     1509            "version": "1.5.1",
     1510            "version_normalized": "1.5.1.0",
    15081511            "dist": {
    15091512                "type": "path",
     
    15461549        {
    15471550            "name": "inpsyde/zettle-product-debug",
    1548             "version": "1.5.0",
    1549             "version_normalized": "1.5.0.0",
     1551            "version": "1.5.1",
     1552            "version_normalized": "1.5.1.0",
    15501553            "dist": {
    15511554                "type": "path",
     
    15701573        {
    15711574            "name": "inpsyde/zettle-product-settings",
    1572             "version": "1.5.0",
    1573             "version_normalized": "1.5.0.0",
     1575            "version": "1.5.1",
     1576            "version_normalized": "1.5.1.0",
    15741577            "dist": {
    15751578                "type": "path",
     
    15951598        {
    15961599            "name": "inpsyde/zettle-queue",
    1597             "version": "1.5.0",
    1598             "version_normalized": "1.5.0.0",
     1600            "version": "1.5.1",
     1601            "version_normalized": "1.5.1.0",
    15991602            "dist": {
    16001603                "type": "path",
     
    16201623        {
    16211624            "name": "inpsyde/zettle-settings",
    1622             "version": "1.5.0",
    1623             "version_normalized": "1.5.0.0",
     1625            "version": "1.5.1",
     1626            "version_normalized": "1.5.1.0",
    16241627            "dist": {
    16251628                "type": "path",
     
    16441647        {
    16451648            "name": "inpsyde/zettle-sync",
    1646             "version": "1.5.0",
    1647             "version_normalized": "1.5.0.0",
     1649            "version": "1.5.1",
     1650            "version_normalized": "1.5.1.0",
    16481651            "dist": {
    16491652                "type": "path",
     
    16691672        {
    16701673            "name": "inpsyde/zettle-webhooks",
    1671             "version": "1.5.0",
    1672             "version_normalized": "1.5.0.0",
     1674            "version": "1.5.1",
     1675            "version_normalized": "1.5.1.0",
    16731676            "dist": {
    16741677                "type": "path",
     
    17031706        {
    17041707            "name": "lcobucci/jwt",
    1705             "version": "3.4.5",
    1706             "version_normalized": "3.4.5.0",
     1708            "version": "3.4.6",
     1709            "version_normalized": "3.4.6.0",
    17071710            "source": {
    17081711                "type": "git",
    17091712                "url": "https://github.com/lcobucci/jwt.git",
    1710                 "reference": "511629a54465e89a31d3d7e4cf0935feab8b14c1"
    1711             },
    1712             "dist": {
    1713                 "type": "zip",
    1714                 "url": "https://api.github.com/repos/lcobucci/jwt/zipball/511629a54465e89a31d3d7e4cf0935feab8b14c1",
    1715                 "reference": "511629a54465e89a31d3d7e4cf0935feab8b14c1",
     1713                "reference": "3ef8657a78278dfeae7707d51747251db4176240"
     1714            },
     1715            "dist": {
     1716                "type": "zip",
     1717                "url": "https://api.github.com/repos/lcobucci/jwt/zipball/3ef8657a78278dfeae7707d51747251db4176240",
     1718                "reference": "3ef8657a78278dfeae7707d51747251db4176240",
    17161719                "shasum": "",
    17171720                "mirrors": [
     
    17371740                "lcobucci/clock": "*"
    17381741            },
    1739             "time": "2021-02-16T09:40:01+00:00",
     1742            "time": "2021-09-28T19:18:28+00:00",
    17401743            "type": "library",
    17411744            "extra": {
     
    17731776            "support": {
    17741777                "issues": "https://github.com/lcobucci/jwt/issues",
    1775                 "source": "https://github.com/lcobucci/jwt/tree/3.4.5"
     1778                "source": "https://github.com/lcobucci/jwt/tree/3.4.6"
    17761779            },
    17771780            "funding": [
     
    24472450        {
    24482451            "name": "psr/container",
    2449             "version": "1.1.1",
    2450             "version_normalized": "1.1.1.0",
     2452            "version": "1.1.2",
     2453            "version_normalized": "1.1.2.0",
    24512454            "source": {
    24522455                "type": "git",
    24532456                "url": "https://github.com/php-fig/container.git",
    2454                 "reference": "8622567409010282b7aeebe4bb841fe98b58dcaf"
    2455             },
    2456             "dist": {
    2457                 "type": "zip",
    2458                 "url": "https://api.github.com/repos/php-fig/container/zipball/8622567409010282b7aeebe4bb841fe98b58dcaf",
    2459                 "reference": "8622567409010282b7aeebe4bb841fe98b58dcaf",
    2460                 "shasum": "",
    2461                 "mirrors": [
    2462                     {
    2463                         "url": "https://repo.packagist.com/inpsyde/izettle/dists/%package%/%version%/r%reference%.%type%",
    2464                         "preferred": true
    2465                     }
    2466                 ]
    2467             },
    2468             "require": {
    2469                 "php": ">=7.2.0"
    2470             },
    2471             "time": "2021-03-05T17:36:06+00:00",
     2457                "reference": "513e0666f7216c7459170d56df27dfcefe1689ea"
     2458            },
     2459            "dist": {
     2460                "type": "zip",
     2461                "url": "https://api.github.com/repos/php-fig/container/zipball/513e0666f7216c7459170d56df27dfcefe1689ea",
     2462                "reference": "513e0666f7216c7459170d56df27dfcefe1689ea",
     2463                "shasum": "",
     2464                "mirrors": [
     2465                    {
     2466                        "url": "https://repo.packagist.com/inpsyde/izettle/dists/%package%/%version%/r%reference%.%type%",
     2467                        "preferred": true
     2468                    }
     2469                ]
     2470            },
     2471            "require": {
     2472                "php": ">=7.4.0"
     2473            },
     2474            "time": "2021-11-05T16:50:12+00:00",
    24722475            "type": "library",
    24732476            "installation-source": "dist",
     
    24982501            "support": {
    24992502                "issues": "https://github.com/php-fig/container/issues",
    2500                 "source": "https://github.com/php-fig/container/tree/1.1.1"
     2503                "source": "https://github.com/php-fig/container/tree/1.1.2"
    25012504            },
    25022505            "install-path": "../psr/container"
     
    31633166        {
    31643167            "name": "symfony/uid",
    3165             "version": "v5.3.3",
    3166             "version_normalized": "5.3.3.0",
     3168            "version": "v5.3.10",
     3169            "version_normalized": "5.3.10.0",
    31673170            "source": {
    31683171                "type": "git",
    31693172                "url": "https://github.com/symfony/uid.git",
    3170                 "reference": "45853bbc72f2b91c32e707afe7f896fddb3ee8e9"
    3171             },
    3172             "dist": {
    3173                 "type": "zip",
    3174                 "url": "https://api.github.com/repos/symfony/uid/zipball/45853bbc72f2b91c32e707afe7f896fddb3ee8e9",
    3175                 "reference": "45853bbc72f2b91c32e707afe7f896fddb3ee8e9",
     3173                "reference": "183336998e6b28c37ebf04ee18e6359dfb22084d"
     3174            },
     3175            "dist": {
     3176                "type": "zip",
     3177                "url": "https://api.github.com/repos/symfony/uid/zipball/183336998e6b28c37ebf04ee18e6359dfb22084d",
     3178                "reference": "183336998e6b28c37ebf04ee18e6359dfb22084d",
    31763179                "shasum": "",
    31773180                "mirrors": [
     
    31893192                "symfony/console": "^4.4|^5.0"
    31903193            },
    3191             "time": "2021-06-24T08:13:00+00:00",
     3194            "time": "2021-10-15T16:00:52+00:00",
    31923195            "type": "library",
    31933196            "installation-source": "dist",
     
    32253228            ],
    32263229            "support": {
    3227                 "source": "https://github.com/symfony/uid/tree/v5.3.3"
     3230                "source": "https://github.com/symfony/uid/tree/v5.3.10"
    32283231            },
    32293232            "funding": [
  • zettle-pos-integration/trunk/vendor/composer/installed.php

    r2605648 r2631429  
    11<?php return array(
    22    'root' => array(
    3         'pretty_version' => '1.5.0',
    4         'version' => '1.5.0.0',
     3        'pretty_version' => '1.5.1',
     4        'version' => '1.5.1.0',
    55        'type' => 'wordpress-plugin',
    66        'install_path' => __DIR__ . '/../../',
    77        'aliases' => array(),
    8         'reference' => 'ef2aa08004288d737497c03fb94acbbe69d3e2db',
     8        'reference' => '4cb71a8904ee29f86f5fea748ed08a63d3e402d5',
    99        'name' => 'inpsyde/zettle-pos-integration',
    1010        'dev' => false,
     
    4848        ),
    4949        'dhii/collections-interface' => array(
    50             'pretty_version' => 'v0.3.0-alpha4',
    51             'version' => '0.3.0.0-alpha4',
     50            'pretty_version' => 'v0.3.0',
     51            'version' => '0.3.0.0',
    5252            'type' => 'library',
    5353            'install_path' => __DIR__ . '/../dhii/collections-interface',
    5454            'aliases' => array(),
    55             'reference' => 'da334f75f6477ef7eecaf28df1d5253fe05684ee',
     55            'reference' => '74464a969b340d16889eacd9eadc9817f7e7f47a',
    5656            'dev_requirement' => false,
    5757        ),
     
    6464                0 => '0.1.x-dev',
    6565            ),
    66             'reference' => 'b76c73d172255eddb9d6e2a3a9ed2306c8b42563',
     66            'reference' => '0c27bdf5a8fd689fe2d74385b747c85ef0df9be4',
    6767            'dev_requirement' => false,
    6868        ),
     
    113113        ),
    114114        'inpsyde/assets' => array(
    115             'pretty_version' => '2.7.0',
    116             'version' => '2.7.0.0',
     115            'pretty_version' => '2.8',
     116            'version' => '2.8.0.0',
    117117            'type' => 'library',
    118118            'install_path' => __DIR__ . '/../inpsyde/assets',
    119119            'aliases' => array(),
    120             'reference' => '5eedca1ec517c728dd629da8b29b716ed9ac3780',
     120            'reference' => '6383ccc31df80118eb32096b10ca621e48a588b6',
    121121            'dev_requirement' => false,
    122122        ),
    123123        'inpsyde/inpsyde-debug' => array(
    124             'pretty_version' => '1.5.0',
    125             'version' => '1.5.0.0',
     124            'pretty_version' => '1.5.1',
     125            'version' => '1.5.1.0',
    126126            'type' => 'inpsyde-module',
    127127            'install_path' => __DIR__ . '/../../modules/inpsyde-debug',
     
    131131        ),
    132132        'inpsyde/inpsyde-http-client' => array(
    133             'pretty_version' => '1.5.0',
    134             'version' => '1.5.0.0',
     133            'pretty_version' => '1.5.1',
     134            'version' => '1.5.1.0',
    135135            'type' => 'inpsyde-module',
    136136            'install_path' => __DIR__ . '/../../modules/inpsyde-http-client',
     
    140140        ),
    141141        'inpsyde/inpsyde-queue' => array(
    142             'pretty_version' => '1.5.0',
    143             'version' => '1.5.0.0',
     142            'pretty_version' => '1.5.1',
     143            'version' => '1.5.1.0',
    144144            'type' => 'inpsyde-module',
    145145            'install_path' => __DIR__ . '/../../modules/inpsyde-queue',
     
    149149        ),
    150150        'inpsyde/inpsyde-state-machine' => array(
    151             'pretty_version' => '1.5.0',
    152             'version' => '1.5.0.0',
     151            'pretty_version' => '1.5.1',
     152            'version' => '1.5.1.0',
    153153            'type' => 'inpsyde-module',
    154154            'install_path' => __DIR__ . '/../../modules/inpsyde-state-machine',
     
    158158        ),
    159159        'inpsyde/inpsyde-woocommerce-lifecycle-events' => array(
    160             'pretty_version' => '1.5.0',
    161             'version' => '1.5.0.0',
     160            'pretty_version' => '1.5.1',
     161            'version' => '1.5.1.0',
    162162            'type' => 'inpsyde-module',
    163163            'install_path' => __DIR__ . '/../../modules/inpsyde-woocommerce-lifecycle-events',
     
    176176        ),
    177177        'inpsyde/psr-18-wp-http-client' => array(
    178             'pretty_version' => 'v0.1.0-alpha3',
    179             'version' => '0.1.0.0-alpha3',
     178            'pretty_version' => 'v0.1.0-alpha4',
     179            'version' => '0.1.0.0-alpha4',
    180180            'type' => 'library',
    181181            'install_path' => __DIR__ . '/../inpsyde/psr-18-wp-http-client',
    182182            'aliases' => array(),
    183             'reference' => '15665e2d7e795cca04c0ebb9facf54ea05bc4a38',
     183            'reference' => '8dd172262c95fc3fb4716b14a54c9406254ba441',
    184184            'dev_requirement' => false,
    185185        ),
    186186        'inpsyde/wc-product-contracts' => array(
    187             'pretty_version' => '1.5.0',
    188             'version' => '1.5.0.0',
     187            'pretty_version' => '1.5.1',
     188            'version' => '1.5.1.0',
    189189            'type' => 'package',
    190190            'install_path' => __DIR__ . '/../inpsyde/wc-product-contracts',
     
    194194        ),
    195195        'inpsyde/wc-status-report' => array(
    196             'pretty_version' => '1.5.0',
    197             'version' => '1.5.0.0',
     196            'pretty_version' => '1.5.1',
     197            'version' => '1.5.1.0',
    198198            'type' => 'inpsyde-module',
    199199            'install_path' => __DIR__ . '/../../modules/wc-status-report',
     
    203203        ),
    204204        'inpsyde/wp-context' => array(
    205             'pretty_version' => '1.3.0',
    206             'version' => '1.3.0.0',
     205            'pretty_version' => '1.3.1',
     206            'version' => '1.3.1.0',
    207207            'type' => 'library',
    208208            'install_path' => __DIR__ . '/../inpsyde/wp-context',
    209209            'aliases' => array(),
    210             'reference' => '6b3377177d7dec2fc58b47479493cc541d7a4d54',
     210            'reference' => 'd41b3b5d6fc8f5b9de3e832f7a79922d6446583c',
    211211            'dev_requirement' => false,
    212212        ),
    213213        'inpsyde/zettle-assets' => array(
    214             'pretty_version' => '1.5.0',
    215             'version' => '1.5.0.0',
     214            'pretty_version' => '1.5.1',
     215            'version' => '1.5.1.0',
    216216            'type' => 'inpsyde-module',
    217217            'install_path' => __DIR__ . '/../../modules/zettle-assets',
     
    221221        ),
    222222        'inpsyde/zettle-auth' => array(
    223             'pretty_version' => '1.5.0',
    224             'version' => '1.5.0.0',
     223            'pretty_version' => '1.5.1',
     224            'version' => '1.5.1.0',
    225225            'type' => 'inpsyde-module',
    226226            'install_path' => __DIR__ . '/../../modules/zettle-auth',
     
    230230        ),
    231231        'inpsyde/zettle-logging' => array(
    232             'pretty_version' => '1.5.0',
    233             'version' => '1.5.0.0',
     232            'pretty_version' => '1.5.1',
     233            'version' => '1.5.1.0',
    234234            'type' => 'inpsyde-module',
    235235            'install_path' => __DIR__ . '/../../modules/zettle-logging',
     
    239239        ),
    240240        'inpsyde/zettle-notices' => array(
    241             'pretty_version' => '1.5.0',
    242             'version' => '1.5.0.0',
     241            'pretty_version' => '1.5.1',
     242            'version' => '1.5.1.0',
    243243            'type' => 'inpsyde-module',
    244244            'install_path' => __DIR__ . '/../../modules/zettle-notices',
     
    248248        ),
    249249        'inpsyde/zettle-onboarding' => array(
    250             'pretty_version' => '1.5.0',
    251             'version' => '1.5.0.0',
     250            'pretty_version' => '1.5.1',
     251            'version' => '1.5.1.0',
    252252            'type' => 'inpsyde-module',
    253253            'install_path' => __DIR__ . '/../../modules/zettle-onboarding',
     
    257257        ),
    258258        'inpsyde/zettle-php-sdk' => array(
    259             'pretty_version' => '1.5.0',
    260             'version' => '1.5.0.0',
     259            'pretty_version' => '1.5.1',
     260            'version' => '1.5.1.0',
    261261            'type' => 'inpsyde-module',
    262262            'install_path' => __DIR__ . '/../../modules/zettle-php-sdk',
     
    266266        ),
    267267        'inpsyde/zettle-pos-integration' => array(
    268             'pretty_version' => '1.5.0',
    269             'version' => '1.5.0.0',
     268            'pretty_version' => '1.5.1',
     269            'version' => '1.5.1.0',
    270270            'type' => 'wordpress-plugin',
    271271            'install_path' => __DIR__ . '/../../',
    272272            'aliases' => array(),
    273             'reference' => 'ef2aa08004288d737497c03fb94acbbe69d3e2db',
     273            'reference' => '4cb71a8904ee29f86f5fea748ed08a63d3e402d5',
    274274            'dev_requirement' => false,
    275275        ),
    276276        'inpsyde/zettle-product-debug' => array(
    277             'pretty_version' => '1.5.0',
    278             'version' => '1.5.0.0',
     277            'pretty_version' => '1.5.1',
     278            'version' => '1.5.1.0',
    279279            'type' => 'inpsyde-module',
    280280            'install_path' => __DIR__ . '/../../modules/zettle-product-debug',
     
    284284        ),
    285285        'inpsyde/zettle-product-settings' => array(
    286             'pretty_version' => '1.5.0',
    287             'version' => '1.5.0.0',
     286            'pretty_version' => '1.5.1',
     287            'version' => '1.5.1.0',
    288288            'type' => 'inpsyde-module',
    289289            'install_path' => __DIR__ . '/../../modules/zettle-product-settings',
     
    293293        ),
    294294        'inpsyde/zettle-queue' => array(
    295             'pretty_version' => '1.5.0',
    296             'version' => '1.5.0.0',
     295            'pretty_version' => '1.5.1',
     296            'version' => '1.5.1.0',
    297297            'type' => 'inpsyde-module',
    298298            'install_path' => __DIR__ . '/../../modules/zettle-queue',
     
    302302        ),
    303303        'inpsyde/zettle-settings' => array(
    304             'pretty_version' => '1.5.0',
    305             'version' => '1.5.0.0',
     304            'pretty_version' => '1.5.1',
     305            'version' => '1.5.1.0',
    306306            'type' => 'inpsyde-module',
    307307            'install_path' => __DIR__ . '/../../modules/zettle-settings',
     
    311311        ),
    312312        'inpsyde/zettle-sync' => array(
    313             'pretty_version' => '1.5.0',
    314             'version' => '1.5.0.0',
     313            'pretty_version' => '1.5.1',
     314            'version' => '1.5.1.0',
    315315            'type' => 'inpsyde-module',
    316316            'install_path' => __DIR__ . '/../../modules/zettle-sync',
     
    320320        ),
    321321        'inpsyde/zettle-webhooks' => array(
    322             'pretty_version' => '1.5.0',
    323             'version' => '1.5.0.0',
     322            'pretty_version' => '1.5.1',
     323            'version' => '1.5.1.0',
    324324            'type' => 'inpsyde-module',
    325325            'install_path' => __DIR__ . '/../../modules/zettle-webhooks',
     
    329329        ),
    330330        'lcobucci/jwt' => array(
    331             'pretty_version' => '3.4.5',
    332             'version' => '3.4.5.0',
     331            'pretty_version' => '3.4.6',
     332            'version' => '3.4.6.0',
    333333            'type' => 'library',
    334334            'install_path' => __DIR__ . '/../lcobucci/jwt',
    335335            'aliases' => array(),
    336             'reference' => '511629a54465e89a31d3d7e4cf0935feab8b14c1',
     336            'reference' => '3ef8657a78278dfeae7707d51747251db4176240',
    337337            'dev_requirement' => false,
    338338        ),
     
    437437        ),
    438438        'psr/container' => array(
    439             'pretty_version' => '1.1.1',
    440             'version' => '1.1.1.0',
     439            'pretty_version' => '1.1.2',
     440            'version' => '1.1.2.0',
    441441            'type' => 'library',
    442442            'install_path' => __DIR__ . '/../psr/container',
    443443            'aliases' => array(),
    444             'reference' => '8622567409010282b7aeebe4bb841fe98b58dcaf',
     444            'reference' => '513e0666f7216c7459170d56df27dfcefe1689ea',
    445445            'dev_requirement' => false,
    446446        ),
     
    458458            'provided' => array(
    459459                0 => '1.0',
     460                1 => '^1.0',
    460461            ),
    461462        ),
     
    557558        ),
    558559        'symfony/uid' => array(
    559             'pretty_version' => 'v5.3.3',
    560             'version' => '5.3.3.0',
     560            'pretty_version' => 'v5.3.10',
     561            'version' => '5.3.10.0',
    561562            'type' => 'library',
    562563            'install_path' => __DIR__ . '/../symfony/uid',
    563564            'aliases' => array(),
    564             'reference' => '45853bbc72f2b91c32e707afe7f896fddb3ee8e9',
     565            'reference' => '183336998e6b28c37ebf04ee18e6359dfb22084d',
    565566            'dev_requirement' => false,
    566567        ),
  • zettle-pos-integration/trunk/vendor/composer/platform_check.php

    r2605648 r2631429  
    55$issues = array();
    66
    7 if (!(PHP_VERSION_ID >= 70205)) {
    8     $issues[] = 'Your Composer dependencies require a PHP version ">= 7.2.5". You are running ' . PHP_VERSION . '.';
     7if (!(PHP_VERSION_ID >= 70400)) {
     8    $issues[] = 'Your Composer dependencies require a PHP version ">= 7.4.0". You are running ' . PHP_VERSION . '.';
    99}
    1010
  • zettle-pos-integration/trunk/vendor/dhii/collections-interface/psalm.xml.dist

    r2477105 r2631429  
    1111        rememberPropertyAssignmentsAfterCall="true"
    1212        allowPhpStormGenerics="true"
    13         allowCoercionFromStringToClassConst="false"
    1413        allowStringToStandInForClass="false"
    1514        memoizeMethodCallResults="false"
  • zettle-pos-integration/trunk/vendor/dhii/containers/psalm.xml.dist

    r2501019 r2631429  
    1111        rememberPropertyAssignmentsAfterCall="true"
    1212        allowPhpStormGenerics="true"
    13         allowCoercionFromStringToClassConst="false"
    1413        allowStringToStandInForClass="false"
    1514        memoizeMethodCallResults="false"
     
    149148        <MixedReturnTypeCoercion errorLevel="info"/>
    150149        <MixedStringOffsetAssignment errorLevel="info"/>
     150        <ParamNameMismatch errorLevel="info"/>
    151151    </issueHandlers>
    152152</psalm>
  • zettle-pos-integration/trunk/vendor/inpsyde/assets/psalm.xml

    r2605648 r2631429  
    66    usePhpDocMethodsWithoutMagicCall="true"
    77    strictBinaryOperands="true"
    8     allowPhpStormGenerics="true"
    98    ignoreInternalFunctionFalseReturn="false"
    109    ignoreInternalFunctionNullReturn="false"
  • zettle-pos-integration/trunk/vendor/inpsyde/assets/src/AssetManager.php

    r2605648 r2631429  
    147147     *
    148148     * @param string $handle
    149      * @param string|null $type
     149     * @param class-string|null $type
    150150     *
    151151     * @return Asset|null
  • zettle-pos-integration/trunk/vendor/inpsyde/assets/src/Handler/StyleHandler.php

    r2605648 r2631429  
    7878        }
    7979
     80        $cssVars = $asset->cssVars();
     81        if (count($cssVars) > 0) {
     82            wp_add_inline_style($handle, $asset->cssVarsAsString());
     83        }
     84
    8085        if (count($asset->data()) > 0) {
    8186            foreach ($asset->data() as $key => $value) {
  • zettle-pos-integration/trunk/vendor/inpsyde/assets/src/Style.php

    r2605648 r2631429  
    3131     */
    3232    protected $inlineStyles = null;
     33
     34    /**
     35     * @var array<string, array<string, string>>
     36     */
     37    protected $cssVars = [];
    3338
    3439    /**
     
    7984
    8085    /**
     86     * Add custom CSS properties (CSS vars) to an element.
     87     * Those custom CSS vars will be enqueued with inline style
     88     * to your handle. Variables will be automatically prefixed
     89     * with '--'.
     90     *
     91     * @param string $element
     92     * @param array<string, string> $vars
     93     *
     94     * @return $this
     95     *
     96     * @example Style::withCssVars('.some-element', ['--white' => '#fff']);
     97     * @example Style::withCssVars('.some-element', ['white' => '#fff']);
     98     */
     99    public function withCssVars(string $element, array $vars): Style
     100    {
     101        if (!isset($this->cssVars[$element])) {
     102            $this->cssVars[$element] = [];
     103        }
     104
     105        foreach ($vars as $key => $value) {
     106            $key = substr($key, 0, 2) === '--'
     107                ? $key
     108                : '--' . $key;
     109
     110            $this->cssVars[$element][$key] = $value;
     111        }
     112
     113        return $this;
     114    }
     115
     116    /**
     117     * @return array<string, array<string, string>>
     118     */
     119    public function cssVars(): array
     120    {
     121        return $this->cssVars;
     122    }
     123
     124    /**
     125     * @return string
     126     */
     127    public function cssVarsAsString(): string
     128    {
     129        $return = '';
     130        foreach ($this->cssVars() as $element => $vars) {
     131            $values = '';
     132            foreach ($vars as $key => $value) {
     133                $values .= sprintf('%1$s:%2$s;', $key, $value);
     134            }
     135            $return .= sprintf('%1$s{%2$s}', $element, $values);
     136        }
     137
     138        return $return;
     139    }
     140
     141    /**
    81142     * Wrapper function to set AsyncStyleOutputFilter as filter.
    82143     *
  • zettle-pos-integration/trunk/vendor/inpsyde/wp-context/src/WpContext.php

    r2605648 r2631429  
    106106    private static function isRestRequest(): bool
    107107    {
    108         if (defined('REST_REQUEST') && REST_REQUEST) {
     108        if (
     109            (defined('REST_REQUEST') && REST_REQUEST)
     110            || !empty($_GET['rest_route']) // phpcs:ignore
     111        ) {
    109112            return true;
    110113        }
    111114
    112115        if (!get_option('permalink_structure')) {
    113             return !empty($_GET['rest_route']); // phpcs:ignore
     116            return false;
    114117        }
    115118
  • zettle-pos-integration/trunk/vendor/lcobucci/jwt/src/Signer/Key/LocalFileReference.php

    r2605648 r2631429  
    99use function substr;
    1010
     11/** @deprecated Use \Lcobucci\JWT\Signer\Key\InMemory::file() instead */
    1112final class LocalFileReference extends Key
    1213{
     
    2728        }
    2829
    29         if (! file_exists($path)) {
    30             throw FileCouldNotBeRead::onPath($path);
    31         }
    32 
    33         $key = new self('', $passphrase);
    34         $key->content = self::PATH_PREFIX . $path;
    35 
    36         return $key;
     30        return new self(self::PATH_PREFIX . $path, $passphrase);
    3731    }
    3832}
  • zettle-pos-integration/trunk/vendor/psr/container/src/ContainerExceptionInterface.php

    r2501019 r2631429  
    33namespace Psr\Container;
    44
     5use Throwable;
     6
    57/**
    68 * Base interface representing a generic exception in a container.
    79 */
    8 interface ContainerExceptionInterface
     10interface ContainerExceptionInterface extends Throwable
    911{
    1012}
  • zettle-pos-integration/trunk/vendor/symfony/uid/UuidV4.php

    r2560431 r2631429  
    2525        if (null === $uuid) {
    2626            $uuid = random_bytes(16);
    27             $uuid[6] = $uuid[6] & "\x0F" | "\x4F";
     27            $uuid[6] = $uuid[6] & "\x0F" | "\x40";
    2828            $uuid[8] = $uuid[8] & "\x3F" | "\x80";
    2929            $uuid = bin2hex($uuid);
  • zettle-pos-integration/trunk/zettle-pos-integration.php

    r2605648 r2631429  
    88 * Plugin URI:  https://zettle.inpsyde.com/
    99 * Description: PayPal Zettle Point-Of-Sale Integration for WooCommerce
    10  * Version:     1.5.0
     10 * Version:     1.5.1
    1111 * Requires at least: 5.4
    1212 * Requires PHP: 7.2
Note: See TracChangeset for help on using the changeset viewer.