Plugin Directory

Changeset 2907067


Ignore:
Timestamp:
05/02/2023 02:49:25 PM (3 years ago)
Author:
alexp11223
Message:

Release 1.5.6

Location:
zettle-pos-integration
Files:
14 added
98 edited
1 copied

Legend:

Unmodified
Added
Removed
  • zettle-pos-integration/tags/1.5.6/modules/inpsyde-queue/src/Bootstrap.php

    r2477105 r2907067  
    2323    {
    2424        global $wpdb;
    25         require_once ABSPATH . 'wp-admin/includes/upgrade.php';
    2625        //phpcs:disable Inpsyde.CodeQuality.VariablesName.SnakeCaseVar
    2726        $charset_collate = $wpdb->get_charset_collate();
     
    3029            //phpcs:disable Inpsyde.CodeQuality.LineLength.TooLong
    3130            $sql = "CREATE TABLE IF NOT EXISTS {$prefix}{$table->name()} ({$table->schema()}) $charset_collate;";
    32             dbDelta($sql);
     31            // phpcs:ignore WordPress.DB.PreparedSQL
     32            $wpdb->query($sql);
    3333        }
    3434    }
  • zettle-pos-integration/tags/1.5.6/modules/zettle-php-sdk/builders.array.php

    r2532865 r2907067  
    234234        static function (array $payload, B $builder): VariantInventoryState {
    235235            return new VariantInventoryState(
    236                 $payload['locationUuid'],
     236                $payload['inventoryUuid'],
    237237                $payload['productUuid'],
    238238                $payload['variantUuid'],
    239                 $payload['locationType'],
    240239                (int) $payload['balance']
    241240            );
     
    259258    $key(Inventory::class) => $builder(
    260259        static function (array $payload, B $builder): Inventory {
    261             $changeHistory = $builder->build(VariantInventoryStateCollection::class, $payload['variants']);
    262 
    263             return new Inventory($changeHistory);
     260            $variants = $builder->build(VariantInventoryStateCollection::class, $payload);
     261
     262            return new Inventory($variants);
    264263        }
    265264    ),
    266265    $key(Location::class) => $builder(
    267266        static function (array $payload, B $builder): Location {
    268             $isDefault = isset($payload['default'])
    269                 ? (bool) $payload['default']
    270                 : false;
    271             $description = isset($payload['description'])
    272                 ? $payload['description']
    273                 : null;
    274 
    275267            return new Location(
    276                 $payload['uuid'],
    277                 LocationType::get($payload['type']),
     268                $payload['inventoryUuid'],
     269                LocationType::get($payload['inventoryType']),
    278270                $payload['name'],
    279                 $description,
    280                 $isDefault
     271                $payload['description'] ?? null,
     272                isset($payload['defaultInventory']) && (bool) $payload['defaultInventory']
    281273            );
    282274        }
  • zettle-pos-integration/tags/1.5.6/modules/zettle-php-sdk/src/API/Inventory/Inventory.php

    r2605648 r2907067  
    7575     * @param Transaction[] $transactions
    7676     *
    77      * @return InventoryEntity
    78      *
    79      * @throws ZettleRestException
    80      */
    81     public function performTransactions(Transaction ...$transactions): InventoryEntity
    82     {
    83         $url = (string) $this->uri->withPath("/organizations/self/inventory");
     77     * @throws ZettleRestException
     78     */
     79    public function performTransactions(Transaction ...$transactions): void
     80    {
     81        $url = (string) $this->uri->withPath('/v3/movements');
    8482        $changes = [];
    8583        foreach ($transactions as $transaction) {
     
    8785                'productUuid' => $transaction->productUuid(),
    8886                'variantUuid' => $transaction->variantUuid(),
    89                 'fromLocationUuid' => $transaction->fromLocationUuid(),
    90                 'toLocationUuid' => $transaction->toLocationUuid(),
     87                'from' => $transaction->fromLocationUuid(),
     88                'to' => $transaction->toLocationUuid(),
    9189                'change' => $transaction->change(),
    9290            ];
    9391        }
    9492        $payload = [
    95             'changes' => $changes,
    96             'externalUuid' => $this->integrationUuid,
     93            'movements' => $changes,
     94            'identifier' => $this->integrationUuid,
    9795        ];
    98         $result = $this->restClient->put($url, $payload);
    99 
    100         try {
    101             return $this->builder->build(InventoryEntity::class, $result);
    102         } catch (BuilderException $exception) {
    103             throw new ZettleRestException(
    104                 'Could not build Inventory entity after performing transactions',
    105                 0,
    106                 $result,
    107                 $payload,
    108                 $exception
    109             );
    110         }
     96
     97        $this->restClient->post($url, $payload);
    11198    }
    11299
     
    116103     * @param int $change
    117104     *
    118      * @return InventoryEntity
    119      * @throws ZettleRestException
    120      */
    121     public function purchase(string $productUuid, string $variantUuid, int $change): InventoryEntity
     105     * @throws ZettleRestException
     106     */
     107    public function purchase(string $productUuid, string $variantUuid, int $change): void
    122108    {
    123109        $locations = $this->locations();
     
    130116        );
    131117
    132         return $this->performTransactions($transaction);
     118        $this->performTransactions($transaction);
    133119    }
    134120
     
    140126     * @param int $change
    141127     *
    142      * @return InventoryEntity
    143128     * @throws ZettleRestException
    144129     */
     
    149134        string $to,
    150135        int $change
    151     ): InventoryEntity {
     136    ): void {
    152137
    153138        $locations = $this->locations();
     
    161146        );
    162147
    163         return $this->performTransactions($transaction);
     148        $this->performTransactions($transaction);
    164149    }
    165150
     
    169154     * @param int $change
    170155     *
    171      * @return InventoryEntity
    172      * @throws ZettleRestException
    173      */
    174     public function supply(string $productUuid, string $variantUuid, int $change): InventoryEntity
     156     * @throws ZettleRestException
     157     */
     158    public function supply(string $productUuid, string $variantUuid, int $change): void
    175159    {
    176160        $locations = $this->locations();
     
    183167        );
    184168
    185         return $this->performTransactions($transaction);
    186     }
    187 
    188     /**
    189      * @param string $productUuid
    190      *
    191      * @return InventoryEntity
    192      * @throws ZettleRestException
    193      */
    194     public function startTracking(string $productUuid): InventoryEntity
    195     {
    196         $url = (string) $this->uri->withPath("/organizations/self/inventory");
     169        $this->performTransactions($transaction);
     170    }
     171
     172    /**
     173     * @param string $productUuid
     174     *
     175     * @throws ZettleRestException
     176     */
     177    public function startTracking(string $productUuid): void
     178    {
     179        $this->setTracking($productUuid, true);
     180    }
     181
     182    /**
     183     * @param string $productUuid
     184     *
     185     * @throws ZettleRestException
     186     */
     187    public function stopTracking(string $productUuid): void
     188    {
     189        $this->setTracking($productUuid, false);
     190    }
     191
     192    /**
     193     * @param string $productUuid
     194     * @param bool $enable
     195     *
     196     * @throws ZettleRestException
     197     */
     198    private function setTracking(string $productUuid, bool $enable): void
     199    {
     200        $url = (string) $this->uri->withPath('/v3/products');
    197201        $payload = [
    198             'productUuid' => $productUuid,
     202            [
     203                'productUuid' => $productUuid,
     204                'tracking' => $enable ? 'enable' : 'disable',
     205            ],
    199206        ];
    200207
    201         $result = $this->restClient->post($url, $payload);
    202 
    203         try {
    204             return $this->builder->build(InventoryEntity::class, $result);
    205         } catch (BuilderException $exception) {
    206             throw new ZettleRestException(
    207                 sprintf(
    208                     'Could not build Inventory entity of product %s after starting inventory tracking',
    209                     $productUuid
    210                 ),
    211                 0,
    212                 $result,
    213                 $payload,
    214                 $exception
    215             );
    216         }
    217     }
    218 
    219     /**
    220      * @param string $productUuid
    221      *
    222      * @return bool
    223      * @throws ZettleRestException
    224      */
    225     public function stopTracking(string $productUuid): bool
    226     {
    227         $url = (string) $this->uri->withPath("/organizations/self/inventory/products/{$productUuid}");
    228         $payload = [
    229             'productUuid' => $productUuid,
    230         ];
    231         try {
    232             $this->restClient->delete($url, $payload);
    233         } catch (ZettleRestException $exception) {
    234             if ($exception->isType(ZettleRestException::TYPE_PRODUCT_NOT_TRACKED)) {
    235                 return true;
    236             }
    237             throw $exception;
    238         }
    239 
    240         return true;
     208        $this->restClient->post($url, $payload);
    241209    }
    242210
     
    253221        $locationUuid = $locations[$locationType]->uuid();
    254222        $url = (string) $this->uri->withPath(
    255             "/organizations/self/inventory/locations/{$locationUuid}/products/{$productUuid}"
     223            "/v3/stock/{$locationUuid}/products/{$productUuid}"
    256224        );
    257225
  • zettle-pos-integration/tags/1.5.6/modules/zettle-php-sdk/src/API/Inventory/Locations.php

    r2477105 r2907067  
    4444    public function all(): array
    4545    {
    46         $url = (string) $this->uri->withPath("/organizations/self/locations");
     46        $url = (string) $this->uri->withPath('/v3/inventories');
    4747
    4848        $result = $this->restClient->get($url, []);
     
    5050        foreach ($result as $locationPayload) {
    5151            try {
    52                 $locations[$locationPayload['type']] = $this->builder->build(Location::class, $locationPayload);
     52                $locations[$locationPayload['inventoryType']] = $this->builder->build(Location::class, $locationPayload);
    5353            } catch (BuilderException $exception) {
    5454                // TODO may wanna log, but an error is pretty unlikely to occur here
  • zettle-pos-integration/tags/1.5.6/modules/zettle-php-sdk/src/Bootstrap.php

    r2477105 r2907067  
    2727        global $wpdb;
    2828
    29         require_once ABSPATH . 'wp-admin/includes/upgrade.php';
    30 
    3129        $this->createTables($wpdb);
    3230    }
     
    4341            //phpcs:disable Inpsyde.CodeQuality.LineLength.TooLong
    4442            $sql = "CREATE TABLE IF NOT EXISTS {$prefix}{$table->name()} ({$table->schema()}) $charsetCollate;";
    45             dbDelta($sql);
     43            // phpcs:ignore WordPress.DB.PreparedSQL
     44            $wpdb->query($sql);
    4645        }
    4746    }
  • zettle-pos-integration/tags/1.5.6/modules/zettle-php-sdk/src/DAL/Entity/VariantInventoryState/VariantInventoryState.php

    r2477105 r2907067  
    2424
    2525    /**
    26      * @var string
    27      */
    28     private $locationType;
    29 
    30     /**
    3126     * @var int
    3227     */
     
    3934     * @param string $productUuid
    4035     * @param string $variantUuid
    41      * @param string $locationType
    4236     * @param int $balance
    4337     *
     
    4741        string $productUuid,
    4842        string $variantUuid,
    49         string $locationType,
    5043        int $balance
    5144    ) {
     
    5346        $this->productUuid = $productUuid;
    5447        $this->variantUuid = $variantUuid;
    55         $this->locationType = $locationType;
    5648        $this->balance = $balance;
    5749    }
     
    8274
    8375    /**
    84      * @return string
    85      */
    86     public function locationType(): string
    87     {
    88         return $this->locationType;
    89     }
    90 
    91     /**
    9276     * @return int
    9377     */
  • zettle-pos-integration/tags/1.5.6/readme.txt

    r2880545 r2907067  
    33Tags: payments, point-of-sale, woocommerce, zettle
    44Requires at least: 5.4
    5 Tested up to: 6.1
     5Tested up to: 6.2
    66Requires PHP: 7.2
    7 Stable tag: 1.5.5
     7Stable tag: 1.5.6
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4747= Manual Installation =
    4848
    49 In case the automatic installation doesn't work, download the plugin from here via the *Download*-button. 
    50 Unpack the archive and load the folder via FTP into the directory `wp-content\plugins` of your WordPress installation. 
     49In case the automatic installation doesn't work, download the plugin from here via the *Download*-button.
     50Unpack the archive and load the folder via FTP into the directory `wp-content\plugins` of your WordPress installation.
    5151Go to *Plugins => Installed plugins* and click *Activate* on *Zettle POS Integration for WooCommerce*.
    5252
     
    6767
    6868== Changelog ==
     69= 1.5.6 =
     70- Migrate to inventory v3 API.
     71- Fixed database migration query error (in Query Monitor logs etc.).
     72
    6973= 1.5.5 =
    7074- WC High-Performance Order Storage compatibility declaration.
  • zettle-pos-integration/tags/1.5.6/vendor/autoload.php

    r2880545 r2907067  
    2323require_once __DIR__ . '/composer/autoload_real.php';
    2424
    25 return ComposerAutoloaderInitc811a4d20b8f6333dee0e55f37a2534c::getLoader();
     25return ComposerAutoloaderInit1290e29297976b059974a78cf37636fe::getLoader();
  • zettle-pos-integration/tags/1.5.6/vendor/composer/InstalledVersions.php

    r2800040 r2907067  
    9999        foreach (self::getInstalled() as $installed) {
    100100            if (isset($installed['versions'][$packageName])) {
    101                 return $includeDevRequirements || empty($installed['versions'][$packageName]['dev_requirement']);
     101                return $includeDevRequirements || !isset($installed['versions'][$packageName]['dev_requirement']) || $installed['versions'][$packageName]['dev_requirement'] === false;
    102102            }
    103103        }
     
    120120    public static function satisfies(VersionParser $parser, $packageName, $constraint)
    121121    {
    122         $constraint = $parser->parseConstraints($constraint);
     122        $constraint = $parser->parseConstraints((string) $constraint);
    123123        $provided = $parser->parseConstraints(self::getVersionRanges($packageName));
    124124
     
    329329                    $installed[] = self::$installedByVendor[$vendorDir];
    330330                } elseif (is_file($vendorDir.'/composer/installed.php')) {
    331                     $installed[] = self::$installedByVendor[$vendorDir] = require $vendorDir.'/composer/installed.php';
     331                    /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */
     332                    $required = require $vendorDir.'/composer/installed.php';
     333                    $installed[] = self::$installedByVendor[$vendorDir] = $required;
    332334                    if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) {
    333335                        self::$installed = $installed[count($installed) - 1];
     
    341343            // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937
    342344            if (substr(__DIR__, -8, 1) !== 'C') {
    343                 self::$installed = require __DIR__ . '/installed.php';
     345                /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */
     346                $required = require __DIR__ . '/installed.php';
     347                self::$installed = $required;
    344348            } else {
    345349                self::$installed = array();
    346350            }
    347351        }
    348         $installed[] = self::$installed;
     352
     353        if (self::$installed !== array()) {
     354            $installed[] = self::$installed;
     355        }
    349356
    350357        return $installed;
  • zettle-pos-integration/tags/1.5.6/vendor/composer/autoload_classmap.php

    r2880545 r2907067  
    284284    'Http\\Client\\Promise\\HttpRejectedPromise' => $vendorDir . '/php-http/httplug/src/Promise/HttpRejectedPromise.php',
    285285    'Http\\Discovery\\ClassDiscovery' => $vendorDir . '/php-http/discovery/src/ClassDiscovery.php',
    286     'Http\\Discovery\\Composer\\Plugin' => $vendorDir . '/php-http/discovery/src/Composer/Plugin.php',
    287286    'Http\\Discovery\\Exception' => $vendorDir . '/php-http/discovery/src/Exception.php',
    288287    'Http\\Discovery\\Exception\\ClassInstantiationFailedException' => $vendorDir . '/php-http/discovery/src/Exception/ClassInstantiationFailedException.php',
     
    298297    'Http\\Discovery\\Psr17Factory' => $vendorDir . '/php-http/discovery/src/Psr17Factory.php',
    299298    'Http\\Discovery\\Psr17FactoryDiscovery' => $vendorDir . '/php-http/discovery/src/Psr17FactoryDiscovery.php',
     299    'Http\\Discovery\\Psr18Client' => $vendorDir . '/php-http/discovery/src/Psr18Client.php',
    300300    'Http\\Discovery\\Psr18ClientDiscovery' => $vendorDir . '/php-http/discovery/src/Psr18ClientDiscovery.php',
    301301    'Http\\Discovery\\Strategy\\CommonClassesStrategy' => $vendorDir . '/php-http/discovery/src/Strategy/CommonClassesStrategy.php',
     
    10601060    'Nyholm\\Psr7\\ServerRequest' => $vendorDir . '/nyholm/psr7/src/ServerRequest.php',
    10611061    'Nyholm\\Psr7\\Stream' => $vendorDir . '/nyholm/psr7/src/Stream.php',
     1062    'Nyholm\\Psr7\\StreamTrait' => $vendorDir . '/nyholm/psr7/src/StreamTrait.php',
    10621063    'Nyholm\\Psr7\\UploadedFile' => $vendorDir . '/nyholm/psr7/src/UploadedFile.php',
    10631064    'Nyholm\\Psr7\\Uri' => $vendorDir . '/nyholm/psr7/src/Uri.php',
  • zettle-pos-integration/tags/1.5.6/vendor/composer/autoload_real.php

    r2880545 r2907067  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInitc811a4d20b8f6333dee0e55f37a2534c
     5class ComposerAutoloaderInit1290e29297976b059974a78cf37636fe
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInitc811a4d20b8f6333dee0e55f37a2534c', 'loadClassLoader'), true, true);
     27        spl_autoload_register(array('ComposerAutoloaderInit1290e29297976b059974a78cf37636fe', 'loadClassLoader'), true, true);
    2828        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
    29         spl_autoload_unregister(array('ComposerAutoloaderInitc811a4d20b8f6333dee0e55f37a2534c', 'loadClassLoader'));
     29        spl_autoload_unregister(array('ComposerAutoloaderInit1290e29297976b059974a78cf37636fe', 'loadClassLoader'));
    3030
    3131        require __DIR__ . '/autoload_static.php';
    32         call_user_func(\Composer\Autoload\ComposerStaticInitc811a4d20b8f6333dee0e55f37a2534c::getInitializer($loader));
     32        call_user_func(\Composer\Autoload\ComposerStaticInit1290e29297976b059974a78cf37636fe::getInitializer($loader));
    3333
    3434        $loader->setClassMapAuthoritative(true);
    3535        $loader->register(true);
    3636
    37         $filesToLoad = \Composer\Autoload\ComposerStaticInitc811a4d20b8f6333dee0e55f37a2534c::$files;
     37        $filesToLoad = \Composer\Autoload\ComposerStaticInit1290e29297976b059974a78cf37636fe::$files;
    3838        $requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
    3939            if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
  • zettle-pos-integration/tags/1.5.6/vendor/composer/autoload_static.php

    r2880545 r2907067  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInitc811a4d20b8f6333dee0e55f37a2534c
     7class ComposerStaticInit1290e29297976b059974a78cf37636fe
    88{
    99    public static $files = array (
     
    608608        'Http\\Client\\Promise\\HttpRejectedPromise' => __DIR__ . '/..' . '/php-http/httplug/src/Promise/HttpRejectedPromise.php',
    609609        'Http\\Discovery\\ClassDiscovery' => __DIR__ . '/..' . '/php-http/discovery/src/ClassDiscovery.php',
    610         'Http\\Discovery\\Composer\\Plugin' => __DIR__ . '/..' . '/php-http/discovery/src/Composer/Plugin.php',
    611610        'Http\\Discovery\\Exception' => __DIR__ . '/..' . '/php-http/discovery/src/Exception.php',
    612611        'Http\\Discovery\\Exception\\ClassInstantiationFailedException' => __DIR__ . '/..' . '/php-http/discovery/src/Exception/ClassInstantiationFailedException.php',
     
    622621        'Http\\Discovery\\Psr17Factory' => __DIR__ . '/..' . '/php-http/discovery/src/Psr17Factory.php',
    623622        'Http\\Discovery\\Psr17FactoryDiscovery' => __DIR__ . '/..' . '/php-http/discovery/src/Psr17FactoryDiscovery.php',
     623        'Http\\Discovery\\Psr18Client' => __DIR__ . '/..' . '/php-http/discovery/src/Psr18Client.php',
    624624        'Http\\Discovery\\Psr18ClientDiscovery' => __DIR__ . '/..' . '/php-http/discovery/src/Psr18ClientDiscovery.php',
    625625        'Http\\Discovery\\Strategy\\CommonClassesStrategy' => __DIR__ . '/..' . '/php-http/discovery/src/Strategy/CommonClassesStrategy.php',
     
    13841384        'Nyholm\\Psr7\\ServerRequest' => __DIR__ . '/..' . '/nyholm/psr7/src/ServerRequest.php',
    13851385        'Nyholm\\Psr7\\Stream' => __DIR__ . '/..' . '/nyholm/psr7/src/Stream.php',
     1386        'Nyholm\\Psr7\\StreamTrait' => __DIR__ . '/..' . '/nyholm/psr7/src/StreamTrait.php',
    13861387        'Nyholm\\Psr7\\UploadedFile' => __DIR__ . '/..' . '/nyholm/psr7/src/UploadedFile.php',
    13871388        'Nyholm\\Psr7\\Uri' => __DIR__ . '/..' . '/nyholm/psr7/src/Uri.php',
     
    14681469    {
    14691470        return \Closure::bind(function () use ($loader) {
    1470             $loader->prefixLengthsPsr4 = ComposerStaticInitc811a4d20b8f6333dee0e55f37a2534c::$prefixLengthsPsr4;
    1471             $loader->prefixDirsPsr4 = ComposerStaticInitc811a4d20b8f6333dee0e55f37a2534c::$prefixDirsPsr4;
    1472             $loader->classMap = ComposerStaticInitc811a4d20b8f6333dee0e55f37a2534c::$classMap;
     1471            $loader->prefixLengthsPsr4 = ComposerStaticInit1290e29297976b059974a78cf37636fe::$prefixLengthsPsr4;
     1472            $loader->prefixDirsPsr4 = ComposerStaticInit1290e29297976b059974a78cf37636fe::$prefixDirsPsr4;
     1473            $loader->classMap = ComposerStaticInit1290e29297976b059974a78cf37636fe::$classMap;
    14731474
    14741475        }, null, ClassLoader::class);
  • zettle-pos-integration/tags/1.5.6/vendor/composer/installed.json

    r2880545 r2907067  
    896896        {
    897897            "name": "inpsyde/inpsyde-debug",
    898             "version": "1.5.5",
    899             "version_normalized": "1.5.5.0",
     898            "version": "dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28",
     899            "version_normalized": "dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28",
    900900            "dist": {
    901901                "type": "path",
    902902                "url": "modules.local/inpsyde-debug",
    903                 "reference": "f0fe81fd742169fa7dd2b73b0388fae8a73f7ddf"
     903                "reference": "96d2861520a55393189668498d76c107624b5409"
    904904            },
    905905            "require": {
    906906                "dhii/module-interface": "^0.2 || ^0.3",
    907907                "ext-json": "*",
     908                "php": "^7.2 | ^8.0",
    908909                "psr/log": "^1.1"
    909910            },
     
    932933        {
    933934            "name": "inpsyde/inpsyde-http-client",
    934             "version": "1.5.5",
    935             "version_normalized": "1.5.5.0",
     935            "version": "dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28",
     936            "version_normalized": "dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28",
    936937            "dist": {
    937938                "type": "path",
     
    961962        {
    962963            "name": "inpsyde/inpsyde-queue",
    963             "version": "1.5.5",
    964             "version_normalized": "1.5.5.0",
     964            "version": "dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28",
     965            "version_normalized": "dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28",
    965966            "dist": {
    966967                "type": "path",
     
    998999        {
    9991000            "name": "inpsyde/inpsyde-state-machine",
    1000             "version": "1.5.5",
    1001             "version_normalized": "1.5.5.0",
     1001            "version": "dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28",
     1002            "version_normalized": "dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28",
    10021003            "dist": {
    10031004                "type": "path",
     
    10341035        {
    10351036            "name": "inpsyde/inpsyde-woocommerce-lifecycle-events",
    1036             "version": "1.5.5",
    1037             "version_normalized": "1.5.5.0",
     1037            "version": "dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28",
     1038            "version_normalized": "dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28",
    10381039            "dist": {
    10391040                "type": "path",
     
    12201221        {
    12211222            "name": "inpsyde/wc-product-contracts",
    1222             "version": "1.5.5",
    1223             "version_normalized": "1.5.5.0",
     1223            "version": "dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28",
     1224            "version_normalized": "dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28",
    12241225            "dist": {
    12251226                "type": "path",
     
    12541255        {
    12551256            "name": "inpsyde/wc-status-report",
    1256             "version": "1.5.5",
    1257             "version_normalized": "1.5.5.0",
     1257            "version": "dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28",
     1258            "version_normalized": "dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28",
    12581259            "dist": {
    12591260                "type": "path",
     
    13571358        {
    13581359            "name": "inpsyde/zettle-assets",
    1359             "version": "1.5.5",
    1360             "version_normalized": "1.5.5.0",
     1360            "version": "dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28",
     1361            "version_normalized": "dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28",
    13611362            "dist": {
    13621363                "type": "path",
     
    13821383        {
    13831384            "name": "inpsyde/zettle-auth",
    1384             "version": "1.5.5",
    1385             "version_normalized": "1.5.5.0",
     1385            "version": "dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28",
     1386            "version_normalized": "dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28",
    13861387            "dist": {
    13871388                "type": "path",
     
    14121413        {
    14131414            "name": "inpsyde/zettle-logging",
    1414             "version": "1.5.5",
    1415             "version_normalized": "1.5.5.0",
     1415            "version": "dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28",
     1416            "version_normalized": "dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28",
    14161417            "dist": {
    14171418                "type": "path",
     
    14511452        {
    14521453            "name": "inpsyde/zettle-notices",
    1453             "version": "1.5.5",
    1454             "version_normalized": "1.5.5.0",
     1454            "version": "dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28",
     1455            "version_normalized": "dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28",
    14551456            "dist": {
    14561457                "type": "path",
     
    14751476        {
    14761477            "name": "inpsyde/zettle-onboarding",
    1477             "version": "1.5.5",
    1478             "version_normalized": "1.5.5.0",
     1478            "version": "dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28",
     1479            "version_normalized": "dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28",
    14791480            "dist": {
    14801481                "type": "path",
     
    15131514        {
    15141515            "name": "inpsyde/zettle-php-sdk",
    1515             "version": "1.5.5",
    1516             "version_normalized": "1.5.5.0",
     1516            "version": "dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28",
     1517            "version_normalized": "dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28",
    15171518            "dist": {
    15181519                "type": "path",
     
    15551556        {
    15561557            "name": "inpsyde/zettle-product-debug",
    1557             "version": "1.5.5",
    1558             "version_normalized": "1.5.5.0",
     1558            "version": "dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28",
     1559            "version_normalized": "dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28",
    15591560            "dist": {
    15601561                "type": "path",
     
    15791580        {
    15801581            "name": "inpsyde/zettle-product-settings",
    1581             "version": "1.5.5",
    1582             "version_normalized": "1.5.5.0",
     1582            "version": "dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28",
     1583            "version_normalized": "dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28",
    15831584            "dist": {
    15841585                "type": "path",
     
    16041605        {
    16051606            "name": "inpsyde/zettle-queue",
    1606             "version": "1.5.5",
    1607             "version_normalized": "1.5.5.0",
     1607            "version": "dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28",
     1608            "version_normalized": "dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28",
    16081609            "dist": {
    16091610                "type": "path",
     
    16291630        {
    16301631            "name": "inpsyde/zettle-settings",
    1631             "version": "1.5.5",
    1632             "version_normalized": "1.5.5.0",
     1632            "version": "dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28",
     1633            "version_normalized": "dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28",
    16331634            "dist": {
    16341635                "type": "path",
     
    16531654        {
    16541655            "name": "inpsyde/zettle-sync",
    1655             "version": "1.5.5",
    1656             "version_normalized": "1.5.5.0",
     1656            "version": "dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28",
     1657            "version_normalized": "dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28",
    16571658            "dist": {
    16581659                "type": "path",
     
    16781679        {
    16791680            "name": "inpsyde/zettle-webhooks",
    1680             "version": "1.5.5",
    1681             "version_normalized": "1.5.5.0",
     1681            "version": "dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28",
     1682            "version_normalized": "dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28",
    16821683            "dist": {
    16831684                "type": "path",
    16841685                "url": "modules.local/zettle-webhooks",
    1685                 "reference": "2cb7d964a5540690ff603f4a699cb54ddd476e02"
     1686                "reference": "4cfb727b02e50c33823faa8f83c2095cdcf6c834"
    16861687            },
    16871688            "require": {
     
    17151716        {
    17161717            "name": "nyholm/psr7",
    1717             "version": "1.5.1",
    1718             "version_normalized": "1.5.1.0",
     1718            "version": "1.8.0",
     1719            "version_normalized": "1.8.0.0",
    17191720            "source": {
    17201721                "type": "git",
    17211722                "url": "https://github.com/Nyholm/psr7.git",
    1722                 "reference": "f734364e38a876a23be4d906a2a089e1315be18a"
    1723             },
    1724             "dist": {
    1725                 "type": "zip",
    1726                 "url": "https://api.github.com/repos/Nyholm/psr7/zipball/f734364e38a876a23be4d906a2a089e1315be18a",
    1727                 "reference": "f734364e38a876a23be4d906a2a089e1315be18a",
    1728                 "shasum": "",
    1729                 "mirrors": [
    1730                     {
    1731                         "url": "https://repo.packagist.com/inpsyde/izettle/dists/%package%/%version%/r%reference%.%type%",
    1732                         "preferred": true
    1733                     }
    1734                 ]
    1735             },
    1736             "require": {
    1737                 "php": ">=7.1",
    1738                 "php-http/message-factory": "^1.0",
     1723                "reference": "3cb4d163b58589e47b35103e8e5e6a6a475b47be"
     1724            },
     1725            "dist": {
     1726                "type": "zip",
     1727                "url": "https://api.github.com/repos/Nyholm/psr7/zipball/3cb4d163b58589e47b35103e8e5e6a6a475b47be",
     1728                "reference": "3cb4d163b58589e47b35103e8e5e6a6a475b47be",
     1729                "shasum": "",
     1730                "mirrors": [
     1731                    {
     1732                        "url": "https://repo.packagist.com/inpsyde/izettle/dists/%package%/%version%/r%reference%.%type%",
     1733                        "preferred": true
     1734                    }
     1735                ]
     1736            },
     1737            "require": {
     1738                "php": ">=7.2",
    17391739                "psr/http-factory": "^1.0",
    1740                 "psr/http-message": "^1.0"
     1740                "psr/http-message": "^1.1 || ^2.0"
    17411741            },
    17421742            "provide": {
     1743                "php-http/message-factory-implementation": "1.0",
    17431744                "psr/http-factory-implementation": "1.0",
    17441745                "psr/http-message-implementation": "1.0"
     
    17461747            "require-dev": {
    17471748                "http-interop/http-factory-tests": "^0.9",
     1749                "php-http/message-factory": "^1.0",
    17481750                "php-http/psr7-integration-tests": "^1.0",
    1749                 "phpunit/phpunit": "^7.5 || 8.5 || 9.4",
     1751                "phpunit/phpunit": "^7.5 || ^8.5 || ^9.4",
    17501752                "symfony/error-handler": "^4.4"
    17511753            },
    1752             "time": "2022-06-22T07:13:36+00:00",
     1754            "time": "2023-05-02T11:26:24+00:00",
    17531755            "type": "library",
    17541756            "extra": {
    17551757                "branch-alias": {
    1756                     "dev-master": "1.4-dev"
     1758                    "dev-master": "1.8-dev"
    17571759                }
    17581760            },
     
    17851787            "support": {
    17861788                "issues": "https://github.com/Nyholm/psr7/issues",
    1787                 "source": "https://github.com/Nyholm/psr7/tree/1.5.1"
     1789                "source": "https://github.com/Nyholm/psr7/tree/1.8.0"
    17881790            },
    17891791            "funding": [
     
    18671869        {
    18681870            "name": "php-http/client-common",
    1869             "version": "2.6.0",
    1870             "version_normalized": "2.6.0.0",
     1871            "version": "2.6.1",
     1872            "version_normalized": "2.6.1.0",
    18711873            "source": {
    18721874                "type": "git",
    18731875                "url": "https://github.com/php-http/client-common.git",
    1874                 "reference": "45db684cd4e186dcdc2b9c06b22970fe123796c0"
    1875             },
    1876             "dist": {
    1877                 "type": "zip",
    1878                 "url": "https://api.github.com/repos/php-http/client-common/zipball/45db684cd4e186dcdc2b9c06b22970fe123796c0",
    1879                 "reference": "45db684cd4e186dcdc2b9c06b22970fe123796c0",
     1876                "reference": "665bfc381bb910385f70391ed3eeefd0b7bbdd0d"
     1877            },
     1878            "dist": {
     1879                "type": "zip",
     1880                "url": "https://api.github.com/repos/php-http/client-common/zipball/665bfc381bb910385f70391ed3eeefd0b7bbdd0d",
     1881                "reference": "665bfc381bb910385f70391ed3eeefd0b7bbdd0d",
    18801882                "shasum": "",
    18811883                "mirrors": [
     
    18931895                "psr/http-client": "^1.0",
    18941896                "psr/http-factory": "^1.0",
    1895                 "psr/http-message": "^1.0",
     1897                "psr/http-message": "^1.0 || ^2.0",
    18961898                "symfony/options-resolver": "~4.0.15 || ~4.1.9 || ^4.2.1 || ^5.0 || ^6.0",
    18971899                "symfony/polyfill-php80": "^1.17"
     
    19031905                "phpspec/phpspec": "^5.1 || ^6.3 || ^7.1",
    19041906                "phpspec/prophecy": "^1.10.2",
    1905                 "phpunit/phpunit": "^7.5.15 || ^8.5 || ^9.3"
     1907                "phpunit/phpunit": "^7.5.20 || ^8.5.33 || ^9.6.7"
    19061908            },
    19071909            "suggest": {
     
    19121914                "php-http/stopwatch-plugin": "Symfony Stopwatch plugin"
    19131915            },
    1914             "time": "2022-09-29T09:59:43+00:00",
     1916            "time": "2023-04-14T13:30:08+00:00",
    19151917            "type": "library",
    1916             "extra": {
    1917                 "branch-alias": {
    1918                     "dev-master": "2.3.x-dev"
    1919                 }
    1920             },
    19211918            "installation-source": "dist",
    19221919            "autoload": {
     
    19451942            "support": {
    19461943                "issues": "https://github.com/php-http/client-common/issues",
    1947                 "source": "https://github.com/php-http/client-common/tree/2.6.0"
     1944                "source": "https://github.com/php-http/client-common/tree/2.6.1"
    19481945            },
    19491946            "install-path": "../php-http/client-common"
     
    19511948        {
    19521949            "name": "php-http/curl-client",
    1953             "version": "2.2.1",
    1954             "version_normalized": "2.2.1.0",
     1950            "version": "2.3.0",
     1951            "version_normalized": "2.3.0.0",
    19551952            "source": {
    19561953                "type": "git",
    19571954                "url": "https://github.com/php-http/curl-client.git",
    1958                 "reference": "2ed4245a817d859dd0c1d51c7078cdb343cf5233"
    1959             },
    1960             "dist": {
    1961                 "type": "zip",
    1962                 "url": "https://api.github.com/repos/php-http/curl-client/zipball/2ed4245a817d859dd0c1d51c7078cdb343cf5233",
    1963                 "reference": "2ed4245a817d859dd0c1d51c7078cdb343cf5233",
     1955                "reference": "f7352c0796549949900d28fe991e19c90572386a"
     1956            },
     1957            "dist": {
     1958                "type": "zip",
     1959                "url": "https://api.github.com/repos/php-http/curl-client/zipball/f7352c0796549949900d28fe991e19c90572386a",
     1960                "reference": "f7352c0796549949900d28fe991e19c90572386a",
    19641961                "shasum": "",
    19651962                "mirrors": [
     
    19771974                "php-http/message": "^1.2",
    19781975                "psr/http-client": "^1.0",
    1979                 "psr/http-factory": "^1.0",
     1976                "psr/http-factory-implementation": "^1.0",
    19801977                "symfony/options-resolver": "^3.4 || ^4.0 || ^5.0 || ^6.0"
    19811978            },
     
    19911988                "phpunit/phpunit": "^7.5 || ^9.4"
    19921989            },
    1993             "time": "2021-12-10T18:02:07+00:00",
     1990            "time": "2023-04-28T14:56:41+00:00",
    19941991            "type": "library",
    1995             "extra": {
    1996                 "branch-alias": {
    1997                     "dev-master": "2.x-dev"
    1998                 }
    1999             },
    20001992            "installation-source": "dist",
    20011993            "autoload": {
     
    20232015            "support": {
    20242016                "issues": "https://github.com/php-http/curl-client/issues",
    2025                 "source": "https://github.com/php-http/curl-client/tree/2.2.1"
     2017                "source": "https://github.com/php-http/curl-client/tree/2.3.0"
    20262018            },
    20272019            "install-path": "../php-http/curl-client"
     
    20292021        {
    20302022            "name": "php-http/discovery",
    2031             "version": "1.15.2",
    2032             "version_normalized": "1.15.2.0",
     2023            "version": "1.17.0",
     2024            "version_normalized": "1.17.0.0",
    20332025            "source": {
    20342026                "type": "git",
    20352027                "url": "https://github.com/php-http/discovery.git",
    2036                 "reference": "5cc428320191ac1d0b6520034c2dc0698628ced5"
    2037             },
    2038             "dist": {
    2039                 "type": "zip",
    2040                 "url": "https://api.github.com/repos/php-http/discovery/zipball/5cc428320191ac1d0b6520034c2dc0698628ced5",
    2041                 "reference": "5cc428320191ac1d0b6520034c2dc0698628ced5",
     2028                "reference": "bd810d15957cf165230e65d9e1a130793265e3b7"
     2029            },
     2030            "dist": {
     2031                "type": "zip",
     2032                "url": "https://api.github.com/repos/php-http/discovery/zipball/bd810d15957cf165230e65d9e1a130793265e3b7",
     2033                "reference": "bd810d15957cf165230e65d9e1a130793265e3b7",
    20422034                "shasum": "",
    20432035                "mirrors": [
     
    20532045            },
    20542046            "conflict": {
    2055                 "nyholm/psr7": "<1.0"
     2047                "nyholm/psr7": "<1.0",
     2048                "zendframework/zend-diactoros": "*"
    20562049            },
    20572050            "provide": {
     
    20702063                "symfony/phpunit-bridge": "^6.2"
    20712064            },
    2072             "time": "2023-02-11T08:28:41+00:00",
     2065            "time": "2023-04-26T15:39:13+00:00",
    20732066            "type": "composer-plugin",
    20742067            "extra": {
     
    20802073                "psr-4": {
    20812074                    "Http\\Discovery\\": "src/"
    2082                 }
     2075                },
     2076                "exclude-from-classmap": [
     2077                    "src/Composer/Plugin.php"
     2078                ]
    20832079            },
    20842080            "notification-url": "https://repo.packagist.com/inpsyde/izettle/downloads/",
     
    21062102            "support": {
    21072103                "issues": "https://github.com/php-http/discovery/issues",
    2108                 "source": "https://github.com/php-http/discovery/tree/1.15.2"
     2104                "source": "https://github.com/php-http/discovery/tree/1.17.0"
    21092105            },
    21102106            "install-path": "../php-http/discovery"
     
    21122108        {
    21132109            "name": "php-http/httplug",
    2114             "version": "2.3.0",
    2115             "version_normalized": "2.3.0.0",
     2110            "version": "2.4.0",
     2111            "version_normalized": "2.4.0.0",
    21162112            "source": {
    21172113                "type": "git",
    21182114                "url": "https://github.com/php-http/httplug.git",
    2119                 "reference": "f640739f80dfa1152533976e3c112477f69274eb"
    2120             },
    2121             "dist": {
    2122                 "type": "zip",
    2123                 "url": "https://api.github.com/repos/php-http/httplug/zipball/f640739f80dfa1152533976e3c112477f69274eb",
    2124                 "reference": "f640739f80dfa1152533976e3c112477f69274eb",
     2115                "reference": "625ad742c360c8ac580fcc647a1541d29e257f67"
     2116            },
     2117            "dist": {
     2118                "type": "zip",
     2119                "url": "https://api.github.com/repos/php-http/httplug/zipball/625ad742c360c8ac580fcc647a1541d29e257f67",
     2120                "reference": "625ad742c360c8ac580fcc647a1541d29e257f67",
    21252121                "shasum": "",
    21262122                "mirrors": [
     
    21352131                "php-http/promise": "^1.1",
    21362132                "psr/http-client": "^1.0",
    2137                 "psr/http-message": "^1.0"
    2138             },
    2139             "require-dev": {
    2140                 "friends-of-phpspec/phpspec-code-coverage": "^4.1",
    2141                 "phpspec/phpspec": "^5.1 || ^6.0"
    2142             },
    2143             "time": "2022-02-21T09:52:22+00:00",
     2133                "psr/http-message": "^1.0 || ^2.0"
     2134            },
     2135            "require-dev": {
     2136                "friends-of-phpspec/phpspec-code-coverage": "^4.1 || ^5.0 || ^6.0",
     2137                "phpspec/phpspec": "^5.1 || ^6.0 || ^7.0"
     2138            },
     2139            "time": "2023-04-14T15:10:03+00:00",
    21442140            "type": "library",
    2145             "extra": {
    2146                 "branch-alias": {
    2147                     "dev-master": "2.x-dev"
    2148                 }
    2149             },
    21502141            "installation-source": "dist",
    21512142            "autoload": {
     
    21772168            "support": {
    21782169                "issues": "https://github.com/php-http/httplug/issues",
    2179                 "source": "https://github.com/php-http/httplug/tree/2.3.0"
     2170                "source": "https://github.com/php-http/httplug/tree/2.4.0"
    21802171            },
    21812172            "install-path": "../php-http/httplug"
     
    21832174        {
    21842175            "name": "php-http/message",
    2185             "version": "1.13.0",
    2186             "version_normalized": "1.13.0.0",
     2176            "version": "1.14.0",
     2177            "version_normalized": "1.14.0.0",
    21872178            "source": {
    21882179                "type": "git",
    21892180                "url": "https://github.com/php-http/message.git",
    2190                 "reference": "7886e647a30a966a1a8d1dad1845b71ca8678361"
    2191             },
    2192             "dist": {
    2193                 "type": "zip",
    2194                 "url": "https://api.github.com/repos/php-http/message/zipball/7886e647a30a966a1a8d1dad1845b71ca8678361",
    2195                 "reference": "7886e647a30a966a1a8d1dad1845b71ca8678361",
     2181                "reference": "2ccee04a28c3d98eb3f2b85ce1e2fcff70c0e63b"
     2182            },
     2183            "dist": {
     2184                "type": "zip",
     2185                "url": "https://api.github.com/repos/php-http/message/zipball/2ccee04a28c3d98eb3f2b85ce1e2fcff70c0e63b",
     2186                "reference": "2ccee04a28c3d98eb3f2b85ce1e2fcff70c0e63b",
    21962187                "shasum": "",
    21972188                "mirrors": [
     
    22062197                "php": "^7.1 || ^8.0",
    22072198                "php-http/message-factory": "^1.0.2",
    2208                 "psr/http-message": "^1.0"
     2199                "psr/http-message": "^1.0 || ^2.0"
    22092200            },
    22102201            "provide": {
     
    22252216                "slim/slim": "Used with Slim Framework PSR-7 implementation"
    22262217            },
    2227             "time": "2022-02-11T13:41:14+00:00",
     2218            "time": "2023-04-14T14:26:18+00:00",
    22282219            "type": "library",
    2229             "extra": {
    2230                 "branch-alias": {
    2231                     "dev-master": "1.10-dev"
    2232                 }
    2233             },
    22342220            "installation-source": "dist",
    22352221            "autoload": {
     
    22602246            "support": {
    22612247                "issues": "https://github.com/php-http/message/issues",
    2262                 "source": "https://github.com/php-http/message/tree/1.13.0"
     2248                "source": "https://github.com/php-http/message/tree/1.14.0"
    22632249            },
    22642250            "install-path": "../php-http/message"
     
    22662252        {
    22672253            "name": "php-http/message-factory",
    2268             "version": "v1.0.2",
    2269             "version_normalized": "1.0.2.0",
     2254            "version": "1.1.0",
     2255            "version_normalized": "1.1.0.0",
    22702256            "source": {
    22712257                "type": "git",
    22722258                "url": "https://github.com/php-http/message-factory.git",
    2273                 "reference": "a478cb11f66a6ac48d8954216cfed9aa06a501a1"
    2274             },
    2275             "dist": {
    2276                 "type": "zip",
    2277                 "url": "https://api.github.com/repos/php-http/message-factory/zipball/a478cb11f66a6ac48d8954216cfed9aa06a501a1",
    2278                 "reference": "a478cb11f66a6ac48d8954216cfed9aa06a501a1",
     2259                "reference": "4d8778e1c7d405cbb471574821c1ff5b68cc8f57"
     2260            },
     2261            "dist": {
     2262                "type": "zip",
     2263                "url": "https://api.github.com/repos/php-http/message-factory/zipball/4d8778e1c7d405cbb471574821c1ff5b68cc8f57",
     2264                "reference": "4d8778e1c7d405cbb471574821c1ff5b68cc8f57",
    22792265                "shasum": "",
    22802266                "mirrors": [
     
    22872273            "require": {
    22882274                "php": ">=5.4",
    2289                 "psr/http-message": "^1.0"
    2290             },
    2291             "time": "2015-12-19T14:08:53+00:00",
     2275                "psr/http-message": "^1.0 || ^2.0"
     2276            },
     2277            "time": "2023-04-14T14:16:17+00:00",
    22922278            "type": "library",
    22932279            "extra": {
    22942280                "branch-alias": {
    2295                     "dev-master": "1.0-dev"
     2281                    "dev-master": "1.x-dev"
    22962282                }
    22972283            },
     
    23212307                "uri"
    23222308            ],
     2309            "support": {
     2310                "issues": "https://github.com/php-http/message-factory/issues",
     2311                "source": "https://github.com/php-http/message-factory/tree/1.1.0"
     2312            },
    23232313            "install-path": "../php-http/message-factory"
    23242314        },
     
    24442434        {
    24452435            "name": "psr/http-client",
    2446             "version": "1.0.1",
    2447             "version_normalized": "1.0.1.0",
     2436            "version": "1.0.2",
     2437            "version_normalized": "1.0.2.0",
    24482438            "source": {
    24492439                "type": "git",
    24502440                "url": "https://github.com/php-fig/http-client.git",
    2451                 "reference": "2dfb5f6c5eff0e91e20e913f8c5452ed95b86621"
    2452             },
    2453             "dist": {
    2454                 "type": "zip",
    2455                 "url": "https://api.github.com/repos/php-fig/http-client/zipball/2dfb5f6c5eff0e91e20e913f8c5452ed95b86621",
    2456                 "reference": "2dfb5f6c5eff0e91e20e913f8c5452ed95b86621",
     2441                "reference": "0955afe48220520692d2d09f7ab7e0f93ffd6a31"
     2442            },
     2443            "dist": {
     2444                "type": "zip",
     2445                "url": "https://api.github.com/repos/php-fig/http-client/zipball/0955afe48220520692d2d09f7ab7e0f93ffd6a31",
     2446                "reference": "0955afe48220520692d2d09f7ab7e0f93ffd6a31",
    24572447                "shasum": "",
    24582448                "mirrors": [
     
    24652455            "require": {
    24662456                "php": "^7.0 || ^8.0",
    2467                 "psr/http-message": "^1.0"
    2468             },
    2469             "time": "2020-06-29T06:28:15+00:00",
     2457                "psr/http-message": "^1.0 || ^2.0"
     2458            },
     2459            "time": "2023-04-10T20:12:12+00:00",
    24702460            "type": "library",
    24712461            "extra": {
     
    24872477                {
    24882478                    "name": "PHP-FIG",
    2489                     "homepage": "http://www.php-fig.org/"
     2479                    "homepage": "https://www.php-fig.org/"
    24902480                }
    24912481            ],
     
    24982488                "psr-18"
    24992489            ],
     2490            "support": {
     2491                "source": "https://github.com/php-fig/http-client/tree/1.0.2"
     2492            },
    25002493            "install-path": "../psr/http-client"
    25012494        },
    25022495        {
    25032496            "name": "psr/http-factory",
    2504             "version": "1.0.1",
    2505             "version_normalized": "1.0.1.0",
     2497            "version": "1.0.2",
     2498            "version_normalized": "1.0.2.0",
    25062499            "source": {
    25072500                "type": "git",
    25082501                "url": "https://github.com/php-fig/http-factory.git",
    2509                 "reference": "12ac7fcd07e5b077433f5f2bee95b3a771bf61be"
    2510             },
    2511             "dist": {
    2512                 "type": "zip",
    2513                 "url": "https://api.github.com/repos/php-fig/http-factory/zipball/12ac7fcd07e5b077433f5f2bee95b3a771bf61be",
    2514                 "reference": "12ac7fcd07e5b077433f5f2bee95b3a771bf61be",
     2502                "reference": "e616d01114759c4c489f93b099585439f795fe35"
     2503            },
     2504            "dist": {
     2505                "type": "zip",
     2506                "url": "https://api.github.com/repos/php-fig/http-factory/zipball/e616d01114759c4c489f93b099585439f795fe35",
     2507                "reference": "e616d01114759c4c489f93b099585439f795fe35",
    25152508                "shasum": "",
    25162509                "mirrors": [
     
    25232516            "require": {
    25242517                "php": ">=7.0.0",
    2525                 "psr/http-message": "^1.0"
    2526             },
    2527             "time": "2019-04-30T12:38:16+00:00",
     2518                "psr/http-message": "^1.0 || ^2.0"
     2519            },
     2520            "time": "2023-04-10T20:10:41+00:00",
    25282521            "type": "library",
    25292522            "extra": {
     
    25452538                {
    25462539                    "name": "PHP-FIG",
    2547                     "homepage": "http://www.php-fig.org/"
     2540                    "homepage": "https://www.php-fig.org/"
    25482541                }
    25492542            ],
     
    25592552                "response"
    25602553            ],
     2554            "support": {
     2555                "source": "https://github.com/php-fig/http-factory/tree/1.0.2"
     2556            },
    25612557            "install-path": "../psr/http-factory"
    25622558        },
    25632559        {
    25642560            "name": "psr/http-message",
    2565             "version": "1.0.1",
    2566             "version_normalized": "1.0.1.0",
     2561            "version": "1.1",
     2562            "version_normalized": "1.1.0.0",
    25672563            "source": {
    25682564                "type": "git",
    25692565                "url": "https://github.com/php-fig/http-message.git",
    2570                 "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363"
    2571             },
    2572             "dist": {
    2573                 "type": "zip",
    2574                 "url": "https://api.github.com/repos/php-fig/http-message/zipball/f6561bf28d520154e4b0ec72be95418abe6d9363",
    2575                 "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363",
    2576                 "shasum": "",
    2577                 "mirrors": [
    2578                     {
    2579                         "url": "https://repo.packagist.com/inpsyde/izettle/dists/%package%/%version%/r%reference%.%type%",
    2580                         "preferred": true
    2581                     }
    2582                 ]
    2583             },
    2584             "require": {
    2585                 "php": ">=5.3.0"
    2586             },
    2587             "time": "2016-08-06T14:39:51+00:00",
     2566                "reference": "cb6ce4845ce34a8ad9e68117c10ee90a29919eba"
     2567            },
     2568            "dist": {
     2569                "type": "zip",
     2570                "url": "https://api.github.com/repos/php-fig/http-message/zipball/cb6ce4845ce34a8ad9e68117c10ee90a29919eba",
     2571                "reference": "cb6ce4845ce34a8ad9e68117c10ee90a29919eba",
     2572                "shasum": "",
     2573                "mirrors": [
     2574                    {
     2575                        "url": "https://repo.packagist.com/inpsyde/izettle/dists/%package%/%version%/r%reference%.%type%",
     2576                        "preferred": true
     2577                    }
     2578                ]
     2579            },
     2580            "require": {
     2581                "php": "^7.2 || ^8.0"
     2582            },
     2583            "time": "2023-04-04T09:50:52+00:00",
    25882584            "type": "library",
    25892585            "extra": {
    25902586                "branch-alias": {
    2591                     "dev-master": "1.0.x-dev"
     2587                    "dev-master": "1.1.x-dev"
    25922588                }
    25932589            },
     
    26182614                "response"
    26192615            ],
     2616            "support": {
     2617                "source": "https://github.com/php-fig/http-message/tree/1.1"
     2618            },
    26202619            "install-path": "../psr/http-message"
    26212620        },
  • zettle-pos-integration/tags/1.5.6/vendor/composer/installed.php

    r2880545 r2907067  
    22    'root' => array(
    33        'name' => 'inpsyde/zettle-pos-integration',
    4         'pretty_version' => '1.5.5',
    5         'version' => '1.5.5.0',
    6         'reference' => '70548f1cea867f5a95dfbffe63ec3dc180f94505',
     4        'pretty_version' => 'dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28',
     5        'version' => 'dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28',
     6        'reference' => '29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    122122        ),
    123123        'inpsyde/inpsyde-debug' => array(
    124             'pretty_version' => '1.5.5',
    125             'version' => '1.5.5.0',
    126             'reference' => 'f0fe81fd742169fa7dd2b73b0388fae8a73f7ddf',
     124            'pretty_version' => 'dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28',
     125            'version' => 'dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28',
     126            'reference' => '96d2861520a55393189668498d76c107624b5409',
    127127            'type' => 'inpsyde-module',
    128128            'install_path' => __DIR__ . '/../../modules/inpsyde-debug',
     
    131131        ),
    132132        'inpsyde/inpsyde-http-client' => array(
    133             'pretty_version' => '1.5.5',
    134             'version' => '1.5.5.0',
     133            'pretty_version' => 'dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28',
     134            'version' => 'dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28',
    135135            'reference' => '2f02780aeb64d9e1314d809964557f720a886353',
    136136            'type' => 'inpsyde-module',
     
    140140        ),
    141141        'inpsyde/inpsyde-queue' => array(
    142             'pretty_version' => '1.5.5',
    143             'version' => '1.5.5.0',
     142            'pretty_version' => 'dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28',
     143            'version' => 'dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28',
    144144            'reference' => 'd7ca097b86c6bf3e84f27897823bcf65ce9a4de2',
    145145            'type' => 'inpsyde-module',
     
    149149        ),
    150150        'inpsyde/inpsyde-state-machine' => array(
    151             'pretty_version' => '1.5.5',
    152             'version' => '1.5.5.0',
     151            'pretty_version' => 'dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28',
     152            'version' => 'dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28',
    153153            'reference' => '8c1625fb30f5fdbef18aabc650213c7115171ecc',
    154154            'type' => 'inpsyde-module',
     
    158158        ),
    159159        'inpsyde/inpsyde-woocommerce-lifecycle-events' => array(
    160             'pretty_version' => '1.5.5',
    161             'version' => '1.5.5.0',
     160            'pretty_version' => 'dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28',
     161            'version' => 'dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28',
    162162            'reference' => '48e5c42d626506c65b4eee7c0d1e84bc7c72a8b4',
    163163            'type' => 'inpsyde-module',
     
    185185        ),
    186186        'inpsyde/wc-product-contracts' => array(
    187             'pretty_version' => '1.5.5',
    188             'version' => '1.5.5.0',
     187            'pretty_version' => 'dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28',
     188            'version' => 'dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28',
    189189            'reference' => '0e7c3cdfa343e842cd8ca39c8a36253dd6f39d7c',
    190190            'type' => 'package',
     
    194194        ),
    195195        'inpsyde/wc-status-report' => array(
    196             'pretty_version' => '1.5.5',
    197             'version' => '1.5.5.0',
     196            'pretty_version' => 'dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28',
     197            'version' => 'dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28',
    198198            'reference' => '22bd64c5aef17fc0a560025e051bd2286232fd2b',
    199199            'type' => 'inpsyde-module',
     
    212212        ),
    213213        'inpsyde/zettle-assets' => array(
    214             'pretty_version' => '1.5.5',
    215             'version' => '1.5.5.0',
     214            'pretty_version' => 'dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28',
     215            'version' => 'dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28',
    216216            'reference' => '11403330a93a7ea1a037ec19ec590ff243ba207e',
    217217            'type' => 'inpsyde-module',
     
    221221        ),
    222222        'inpsyde/zettle-auth' => array(
    223             'pretty_version' => '1.5.5',
    224             'version' => '1.5.5.0',
     223            'pretty_version' => 'dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28',
     224            'version' => 'dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28',
    225225            'reference' => 'feea57bf2224d458f67a781d447b8e7273f8d5c6',
    226226            'type' => 'inpsyde-module',
     
    230230        ),
    231231        'inpsyde/zettle-logging' => array(
    232             'pretty_version' => '1.5.5',
    233             'version' => '1.5.5.0',
     232            'pretty_version' => 'dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28',
     233            'version' => 'dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28',
    234234            'reference' => '653ce3f20d4ee79d42142daa790cc16775ce7cc4',
    235235            'type' => 'inpsyde-module',
     
    239239        ),
    240240        'inpsyde/zettle-notices' => array(
    241             'pretty_version' => '1.5.5',
    242             'version' => '1.5.5.0',
     241            'pretty_version' => 'dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28',
     242            'version' => 'dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28',
    243243            'reference' => '1e0c8c3f511cb369f18831db6dab6def7b75b75c',
    244244            'type' => 'inpsyde-module',
     
    248248        ),
    249249        'inpsyde/zettle-onboarding' => array(
    250             'pretty_version' => '1.5.5',
    251             'version' => '1.5.5.0',
     250            'pretty_version' => 'dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28',
     251            'version' => 'dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28',
    252252            'reference' => '43694f96df2b697f320a8187a293e96ae97e2c3b',
    253253            'type' => 'inpsyde-module',
     
    257257        ),
    258258        'inpsyde/zettle-php-sdk' => array(
    259             'pretty_version' => '1.5.5',
    260             'version' => '1.5.5.0',
     259            'pretty_version' => 'dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28',
     260            'version' => 'dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28',
    261261            'reference' => 'aa920e3c81196fb7eb043332130704e2515909a9',
    262262            'type' => 'inpsyde-module',
     
    266266        ),
    267267        'inpsyde/zettle-pos-integration' => array(
    268             'pretty_version' => '1.5.5',
    269             'version' => '1.5.5.0',
    270             'reference' => '70548f1cea867f5a95dfbffe63ec3dc180f94505',
     268            'pretty_version' => 'dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28',
     269            'version' => 'dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28',
     270            'reference' => '29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28',
    271271            'type' => 'wordpress-plugin',
    272272            'install_path' => __DIR__ . '/../../',
     
    275275        ),
    276276        'inpsyde/zettle-product-debug' => array(
    277             'pretty_version' => '1.5.5',
    278             'version' => '1.5.5.0',
     277            'pretty_version' => 'dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28',
     278            'version' => 'dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28',
    279279            'reference' => '499afad87e196d258a7196ba18a1f940a5c87deb',
    280280            'type' => 'inpsyde-module',
     
    284284        ),
    285285        'inpsyde/zettle-product-settings' => array(
    286             'pretty_version' => '1.5.5',
    287             'version' => '1.5.5.0',
     286            'pretty_version' => 'dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28',
     287            'version' => 'dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28',
    288288            'reference' => '50c5b69c63cd531b594145c6d333d9c9e99f5f67',
    289289            'type' => 'inpsyde-module',
     
    293293        ),
    294294        'inpsyde/zettle-queue' => array(
    295             'pretty_version' => '1.5.5',
    296             'version' => '1.5.5.0',
     295            'pretty_version' => 'dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28',
     296            'version' => 'dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28',
    297297            'reference' => '59797a1ec25eaa0c60bce1e4e02254d7fb9478bc',
    298298            'type' => 'inpsyde-module',
     
    302302        ),
    303303        'inpsyde/zettle-settings' => array(
    304             'pretty_version' => '1.5.5',
    305             'version' => '1.5.5.0',
     304            'pretty_version' => 'dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28',
     305            'version' => 'dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28',
    306306            'reference' => '122b3ca56a9e8181b5cb516c28a993bb489de068',
    307307            'type' => 'inpsyde-module',
     
    311311        ),
    312312        'inpsyde/zettle-sync' => array(
    313             'pretty_version' => '1.5.5',
    314             'version' => '1.5.5.0',
     313            'pretty_version' => 'dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28',
     314            'version' => 'dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28',
    315315            'reference' => 'f6c7542e1e21b0b7cba00eaf20cb7534c415bbbd',
    316316            'type' => 'inpsyde-module',
     
    320320        ),
    321321        'inpsyde/zettle-webhooks' => array(
    322             'pretty_version' => '1.5.5',
    323             'version' => '1.5.5.0',
    324             'reference' => '2cb7d964a5540690ff603f4a699cb54ddd476e02',
     322            'pretty_version' => 'dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28',
     323            'version' => 'dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28',
     324            'reference' => '4cfb727b02e50c33823faa8f83c2095cdcf6c834',
    325325            'type' => 'inpsyde-module',
    326326            'install_path' => __DIR__ . '/../../modules/zettle-webhooks',
     
    329329        ),
    330330        'nyholm/psr7' => array(
    331             'pretty_version' => '1.5.1',
    332             'version' => '1.5.1.0',
    333             'reference' => 'f734364e38a876a23be4d906a2a089e1315be18a',
     331            'pretty_version' => '1.8.0',
     332            'version' => '1.8.0.0',
     333            'reference' => '3cb4d163b58589e47b35103e8e5e6a6a475b47be',
    334334            'type' => 'library',
    335335            'install_path' => __DIR__ . '/../nyholm/psr7',
     
    354354        ),
    355355        'php-http/client-common' => array(
    356             'pretty_version' => '2.6.0',
    357             'version' => '2.6.0.0',
    358             'reference' => '45db684cd4e186dcdc2b9c06b22970fe123796c0',
     356            'pretty_version' => '2.6.1',
     357            'version' => '2.6.1.0',
     358            'reference' => '665bfc381bb910385f70391ed3eeefd0b7bbdd0d',
    359359            'type' => 'library',
    360360            'install_path' => __DIR__ . '/../php-http/client-common',
     
    370370        ),
    371371        'php-http/curl-client' => array(
    372             'pretty_version' => '2.2.1',
    373             'version' => '2.2.1.0',
    374             'reference' => '2ed4245a817d859dd0c1d51c7078cdb343cf5233',
     372            'pretty_version' => '2.3.0',
     373            'version' => '2.3.0.0',
     374            'reference' => 'f7352c0796549949900d28fe991e19c90572386a',
    375375            'type' => 'library',
    376376            'install_path' => __DIR__ . '/../php-http/curl-client',
     
    379379        ),
    380380        'php-http/discovery' => array(
    381             'pretty_version' => '1.15.2',
    382             'version' => '1.15.2.0',
    383             'reference' => '5cc428320191ac1d0b6520034c2dc0698628ced5',
     381            'pretty_version' => '1.17.0',
     382            'version' => '1.17.0.0',
     383            'reference' => 'bd810d15957cf165230e65d9e1a130793265e3b7',
    384384            'type' => 'composer-plugin',
    385385            'install_path' => __DIR__ . '/../php-http/discovery',
     
    388388        ),
    389389        'php-http/httplug' => array(
    390             'pretty_version' => '2.3.0',
    391             'version' => '2.3.0.0',
    392             'reference' => 'f640739f80dfa1152533976e3c112477f69274eb',
     390            'pretty_version' => '2.4.0',
     391            'version' => '2.4.0.0',
     392            'reference' => '625ad742c360c8ac580fcc647a1541d29e257f67',
    393393            'type' => 'library',
    394394            'install_path' => __DIR__ . '/../php-http/httplug',
     
    397397        ),
    398398        'php-http/message' => array(
    399             'pretty_version' => '1.13.0',
    400             'version' => '1.13.0.0',
    401             'reference' => '7886e647a30a966a1a8d1dad1845b71ca8678361',
     399            'pretty_version' => '1.14.0',
     400            'version' => '1.14.0.0',
     401            'reference' => '2ccee04a28c3d98eb3f2b85ce1e2fcff70c0e63b',
    402402            'type' => 'library',
    403403            'install_path' => __DIR__ . '/../php-http/message',
     
    406406        ),
    407407        'php-http/message-factory' => array(
    408             'pretty_version' => 'v1.0.2',
    409             'version' => '1.0.2.0',
    410             'reference' => 'a478cb11f66a6ac48d8954216cfed9aa06a501a1',
     408            'pretty_version' => '1.1.0',
     409            'version' => '1.1.0.0',
     410            'reference' => '4d8778e1c7d405cbb471574821c1ff5b68cc8f57',
    411411            'type' => 'library',
    412412            'install_path' => __DIR__ . '/../php-http/message-factory',
     
    439439        ),
    440440        'psr/http-client' => array(
    441             'pretty_version' => '1.0.1',
    442             'version' => '1.0.1.0',
    443             'reference' => '2dfb5f6c5eff0e91e20e913f8c5452ed95b86621',
     441            'pretty_version' => '1.0.2',
     442            'version' => '1.0.2.0',
     443            'reference' => '0955afe48220520692d2d09f7ab7e0f93ffd6a31',
    444444            'type' => 'library',
    445445            'install_path' => __DIR__ . '/../psr/http-client',
     
    456456        ),
    457457        'psr/http-factory' => array(
    458             'pretty_version' => '1.0.1',
    459             'version' => '1.0.1.0',
    460             'reference' => '12ac7fcd07e5b077433f5f2bee95b3a771bf61be',
     458            'pretty_version' => '1.0.2',
     459            'version' => '1.0.2.0',
     460            'reference' => 'e616d01114759c4c489f93b099585439f795fe35',
    461461            'type' => 'library',
    462462            'install_path' => __DIR__ . '/../psr/http-factory',
     
    472472        ),
    473473        'psr/http-message' => array(
    474             'pretty_version' => '1.0.1',
    475             'version' => '1.0.1.0',
    476             'reference' => 'f6561bf28d520154e4b0ec72be95418abe6d9363',
     474            'pretty_version' => '1.1',
     475            'version' => '1.1.0.0',
     476            'reference' => 'cb6ce4845ce34a8ad9e68117c10ee90a29919eba',
    477477            'type' => 'library',
    478478            'install_path' => __DIR__ . '/../psr/http-message',
  • zettle-pos-integration/tags/1.5.6/vendor/nyholm/psr7/src/Factory/HttplugFactory.php

    r2800040 r2907067  
    1212use Psr\Http\Message\UriInterface;
    1313
     14if (!\interface_exists(MessageFactory::class)) {
     15    throw new \LogicException('You cannot use "Nyholm\Psr7\Factory\HttplugFactory" as the "php-http/message-factory" package is not installed. Try running "composer require php-http/message-factory". Note that this package is deprecated, use "psr/http-factory" instead');
     16}
     17
     18@\trigger_error('Class "Nyholm\Psr7\Factory\HttplugFactory" is deprecated since version 1.8, use "Nyholm\Psr7\Factory\Psr17Factory" instead.', \E_USER_DEPRECATED);
     19
    1420/**
    1521 * @author Tobias Nyholm <tobias.nyholm@gmail.com>
     
    1723 *
    1824 * @final This class should never be extended. See https://github.com/Nyholm/psr7/blob/master/doc/final.md
     25 *
     26 * @deprecated since version 1.8, use Psr17Factory instead
    1927 */
    2028class HttplugFactory implements MessageFactory, StreamFactory, UriFactory
  • zettle-pos-integration/tags/1.5.6/vendor/nyholm/psr7/src/MessageTrait.php

    r2501019 r2907067  
    55namespace Nyholm\Psr7;
    66
     7use Psr\Http\Message\MessageInterface;
    78use Psr\Http\Message\StreamInterface;
    89
     
    3536    }
    3637
    37     public function withProtocolVersion($version): self
    38     {
     38    /**
     39     * @return static
     40     */
     41    public function withProtocolVersion($version): MessageInterface
     42    {
     43        if (!\is_scalar($version)) {
     44            throw new \InvalidArgumentException('Protocol version must be a string');
     45        }
     46
    3947        if ($this->protocol === $version) {
    4048            return $this;
     
    4250
    4351        $new = clone $this;
    44         $new->protocol = $version;
     52        $new->protocol = (string) $version;
    4553
    4654        return $new;
     
    5967    public function getHeader($header): array
    6068    {
     69        if (!\is_string($header)) {
     70            throw new \InvalidArgumentException('Header name must be an RFC 7230 compatible string');
     71        }
     72
    6173        $header = \strtr($header, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz');
    6274        if (!isset($this->headerNames[$header])) {
     
    7486    }
    7587
    76     public function withHeader($header, $value): self
     88    /**
     89     * @return static
     90     */
     91    public function withHeader($header, $value): MessageInterface
    7792    {
    7893        $value = $this->validateAndTrimHeader($header, $value);
     
    89104    }
    90105
    91     public function withAddedHeader($header, $value): self
     106    /**
     107     * @return static
     108     */
     109    public function withAddedHeader($header, $value): MessageInterface
    92110    {
    93111        if (!\is_string($header) || '' === $header) {
    94             throw new \InvalidArgumentException('Header name must be an RFC 7230 compatible string.');
     112            throw new \InvalidArgumentException('Header name must be an RFC 7230 compatible string');
    95113        }
    96114
     
    101119    }
    102120
    103     public function withoutHeader($header): self
    104     {
     121    /**
     122     * @return static
     123     */
     124    public function withoutHeader($header): MessageInterface
     125    {
     126        if (!\is_string($header)) {
     127            throw new \InvalidArgumentException('Header name must be an RFC 7230 compatible string');
     128        }
     129
    105130        $normalized = \strtr($header, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz');
    106131        if (!isset($this->headerNames[$normalized])) {
     
    124149    }
    125150
    126     public function withBody(StreamInterface $body): self
     151    /**
     152     * @return static
     153     */
     154    public function withBody(StreamInterface $body): MessageInterface
    127155    {
    128156        if ($body === $this->stream) {
     
    176204    private function validateAndTrimHeader($header, $values): array
    177205    {
    178         if (!\is_string($header) || 1 !== \preg_match("@^[!#$%&'*+.^_`|~0-9A-Za-z-]+$@", $header)) {
    179             throw new \InvalidArgumentException('Header name must be an RFC 7230 compatible string.');
     206        if (!\is_string($header) || 1 !== \preg_match("@^[!#$%&'*+.^_`|~0-9A-Za-z-]+$@D", $header)) {
     207            throw new \InvalidArgumentException('Header name must be an RFC 7230 compatible string');
    180208        }
    181209
     
    183211            // This is simple, just one value.
    184212            if ((!\is_numeric($values) && !\is_string($values)) || 1 !== \preg_match("@^[ \t\x21-\x7E\x80-\xFF]*$@", (string) $values)) {
    185                 throw new \InvalidArgumentException('Header values must be RFC 7230 compatible strings.');
     213                throw new \InvalidArgumentException('Header values must be RFC 7230 compatible strings');
    186214            }
    187215
     
    190218
    191219        if (empty($values)) {
    192             throw new \InvalidArgumentException('Header values must be a string or an array of strings, empty array given.');
     220            throw new \InvalidArgumentException('Header values must be a string or an array of strings, empty array given');
    193221        }
    194222
     
    196224        $returnValues = [];
    197225        foreach ($values as $v) {
    198             if ((!\is_numeric($v) && !\is_string($v)) || 1 !== \preg_match("@^[ \t\x21-\x7E\x80-\xFF]*$@", (string) $v)) {
    199                 throw new \InvalidArgumentException('Header values must be RFC 7230 compatible strings.');
     226            if ((!\is_numeric($v) && !\is_string($v)) || 1 !== \preg_match("@^[ \t\x21-\x7E\x80-\xFF]*$@D", (string) $v)) {
     227                throw new \InvalidArgumentException('Header values must be RFC 7230 compatible strings');
    200228            }
    201229
  • zettle-pos-integration/tags/1.5.6/vendor/nyholm/psr7/src/RequestTrait.php

    r2477105 r2907067  
    55namespace Nyholm\Psr7;
    66
     7use Psr\Http\Message\RequestInterface;
    78use Psr\Http\Message\UriInterface;
    89
     
    4142    }
    4243
    43     public function withRequestTarget($requestTarget): self
     44    /**
     45     * @return static
     46     */
     47    public function withRequestTarget($requestTarget): RequestInterface
    4448    {
     49        if (!\is_string($requestTarget)) {
     50            throw new \InvalidArgumentException('Request target must be a string');
     51        }
     52
    4553        if (\preg_match('#\s#', $requestTarget)) {
    4654            throw new \InvalidArgumentException('Invalid request target provided; cannot contain whitespace');
     
    5866    }
    5967
    60     public function withMethod($method): self
     68    /**
     69     * @return static
     70     */
     71    public function withMethod($method): RequestInterface
    6172    {
    6273        if (!\is_string($method)) {
     
    7586    }
    7687
    77     public function withUri(UriInterface $uri, $preserveHost = false): self
     88    /**
     89     * @return static
     90     */
     91    public function withUri(UriInterface $uri, $preserveHost = false): RequestInterface
    7892    {
    7993        if ($uri === $this->uri) {
  • zettle-pos-integration/tags/1.5.6/vendor/nyholm/psr7/src/Response.php

    r2501019 r2907067  
    6868    }
    6969
    70     public function withStatus($code, $reasonPhrase = ''): self
     70    /**
     71     * @return static
     72     */
     73    public function withStatus($code, $reasonPhrase = ''): ResponseInterface
    7174    {
    7275        if (!\is_int($code) && !\is_string($code)) {
  • zettle-pos-integration/tags/1.5.6/vendor/nyholm/psr7/src/ServerRequest.php

    r2800040 r2907067  
    5757        $this->setHeaders($headers);
    5858        $this->protocol = $version;
     59        \parse_str($uri->getQuery(), $this->queryParams);
    5960
    6061        if (!$this->hasHeader('Host')) {
     
    8182     * @return static
    8283     */
    83     public function withUploadedFiles(array $uploadedFiles)
     84    public function withUploadedFiles(array $uploadedFiles): ServerRequestInterface
    8485    {
    8586        $new = clone $this;
     
    9798     * @return static
    9899     */
    99     public function withCookieParams(array $cookies)
     100    public function withCookieParams(array $cookies): ServerRequestInterface
    100101    {
    101102        $new = clone $this;
     
    113114     * @return static
    114115     */
    115     public function withQueryParams(array $query)
     116    public function withQueryParams(array $query): ServerRequestInterface
    116117    {
    117118        $new = clone $this;
     
    132133     * @return static
    133134     */
    134     public function withParsedBody($data)
     135    public function withParsedBody($data): ServerRequestInterface
    135136    {
    136137        if (!\is_array($data) && !\is_object($data) && null !== $data) {
     
    154155    public function getAttribute($attribute, $default = null)
    155156    {
     157        if (!\is_string($attribute)) {
     158            throw new \InvalidArgumentException('Attribute name must be a string');
     159        }
     160
    156161        if (false === \array_key_exists($attribute, $this->attributes)) {
    157162            return $default;
     
    161166    }
    162167
    163     public function withAttribute($attribute, $value): self
    164     {
     168    /**
     169     * @return static
     170     */
     171    public function withAttribute($attribute, $value): ServerRequestInterface
     172    {
     173        if (!\is_string($attribute)) {
     174            throw new \InvalidArgumentException('Attribute name must be a string');
     175        }
     176
    165177        $new = clone $this;
    166178        $new->attributes[$attribute] = $value;
     
    169181    }
    170182
    171     public function withoutAttribute($attribute): self
    172     {
     183    /**
     184     * @return static
     185     */
     186    public function withoutAttribute($attribute): ServerRequestInterface
     187    {
     188        if (!\is_string($attribute)) {
     189            throw new \InvalidArgumentException('Attribute name must be a string');
     190        }
     191
    173192        if (false === \array_key_exists($attribute, $this->attributes)) {
    174193            return $this;
  • zettle-pos-integration/tags/1.5.6/vendor/nyholm/psr7/src/Stream.php

    r2800040 r2907067  
    66
    77use Psr\Http\Message\StreamInterface;
    8 use Symfony\Component\Debug\ErrorHandler as SymfonyLegacyErrorHandler;
    9 use Symfony\Component\ErrorHandler\ErrorHandler as SymfonyErrorHandler;
    108
    119/**
     
    1816class Stream implements StreamInterface
    1917{
     18    use StreamTrait;
     19
    2020    /** @var resource|null A resource reference */
    2121    private $stream;
     
    5252    ];
    5353
    54     private function __construct()
    55     {
     54    /**
     55     * @param resource $body
     56     */
     57    public function __construct($body)
     58    {
     59        if (!\is_resource($body)) {
     60            throw new \InvalidArgumentException('First argument to Stream::__construct() must be resource');
     61        }
     62
     63        $this->stream = $body;
     64        $meta = \stream_get_meta_data($this->stream);
     65        $this->seekable = $meta['seekable'] && 0 === \fseek($this->stream, 0, \SEEK_CUR);
     66        $this->readable = isset(self::READ_WRITE_HASH['read'][$meta['mode']]);
     67        $this->writable = isset(self::READ_WRITE_HASH['write'][$meta['mode']]);
    5668    }
    5769
     
    7082
    7183        if (\is_string($body)) {
    72             $resource = \fopen('php://temp', 'rw+');
    73             \fwrite($resource, $body);
    74             $body = $resource;
    75         }
    76 
    77         if (\is_resource($body)) {
    78             $new = new self();
    79             $new->stream = $body;
    80             $meta = \stream_get_meta_data($new->stream);
    81             $new->seekable = $meta['seekable'] && 0 === \fseek($new->stream, 0, \SEEK_CUR);
    82             $new->readable = isset(self::READ_WRITE_HASH['read'][$meta['mode']]);
    83             $new->writable = isset(self::READ_WRITE_HASH['write'][$meta['mode']]);
    84 
    85             return $new;
    86         }
    87 
    88         throw new \InvalidArgumentException('First argument to Stream::create() must be a string, resource or StreamInterface.');
     84            if (200000 <= \strlen($body)) {
     85                $body = self::openZvalStream($body);
     86            } else {
     87                $resource = \fopen('php://memory', 'r+');
     88                \fwrite($resource, $body);
     89                \fseek($resource, 0);
     90                $body = $resource;
     91            }
     92        }
     93
     94        if (!\is_resource($body)) {
     95            throw new \InvalidArgumentException('First argument to Stream::create() must be a string, resource or StreamInterface');
     96        }
     97
     98        return new self($body);
    8999    }
    90100
     
    97107    }
    98108
    99     /**
    100      * @return string
    101      */
    102     public function __toString()
    103     {
    104         try {
    105             if ($this->isSeekable()) {
    106                 $this->seek(0);
    107             }
    108 
    109             return $this->getContents();
    110         } catch (\Throwable $e) {
    111             if (\PHP_VERSION_ID >= 70400) {
    112                 throw $e;
    113             }
    114 
    115             if (\is_array($errorHandler = \set_error_handler('var_dump'))) {
    116                 $errorHandler = $errorHandler[0] ?? null;
    117             }
    118             \restore_error_handler();
    119 
    120             if ($e instanceof \Error || $errorHandler instanceof SymfonyErrorHandler || $errorHandler instanceof SymfonyLegacyErrorHandler) {
    121                 return \trigger_error((string) $e, \E_USER_ERROR);
    122             }
    123 
    124             return '';
    125         }
    126     }
    127 
    128109    public function close(): void
    129110    {
     
    292273    public function getMetadata($key = null)
    293274    {
     275        if (null !== $key && !\is_string($key)) {
     276            throw new \InvalidArgumentException('Metadata key must be a string');
     277        }
     278
    294279        if (!isset($this->stream)) {
    295280            return $key ? null : [];
     
    304289        return $meta[$key] ?? null;
    305290    }
     291
     292    private static function openZvalStream(string $body)
     293    {
     294        static $wrapper;
     295
     296        $wrapper ?? \stream_wrapper_register('Nyholm-Psr7-Zval', $wrapper = \get_class(new class() {
     297            public $context;
     298
     299            private $data;
     300            private $position = 0;
     301
     302            public function stream_open(): bool
     303            {
     304                $this->data = \stream_context_get_options($this->context)['Nyholm-Psr7-Zval']['data'];
     305                \stream_context_set_option($this->context, 'Nyholm-Psr7-Zval', 'data', null);
     306
     307                return true;
     308            }
     309
     310            public function stream_read(int $count): string
     311            {
     312                $result = \substr($this->data, $this->position, $count);
     313                $this->position += \strlen($result);
     314
     315                return $result;
     316            }
     317
     318            public function stream_write(string $data): int
     319            {
     320                $this->data = \substr_replace($this->data, $data, $this->position, \strlen($data));
     321                $this->position += \strlen($data);
     322
     323                return \strlen($data);
     324            }
     325
     326            public function stream_tell(): int
     327            {
     328                return $this->position;
     329            }
     330
     331            public function stream_eof(): bool
     332            {
     333                return \strlen($this->data) <= $this->position;
     334            }
     335
     336            public function stream_stat(): array
     337            {
     338                return [
     339                    'mode' => 33206, // POSIX_S_IFREG | 0666
     340                    'nlink' => 1,
     341                    'rdev' => -1,
     342                    'size' => \strlen($this->data),
     343                    'blksize' => -1,
     344                    'blocks' => -1,
     345                ];
     346            }
     347
     348            public function stream_seek(int $offset, int $whence): bool
     349            {
     350                if (\SEEK_SET === $whence && (0 <= $offset && \strlen($this->data) >= $offset)) {
     351                    $this->position = $offset;
     352                } elseif (\SEEK_CUR === $whence && 0 <= $offset) {
     353                    $this->position += $offset;
     354                } elseif (\SEEK_END === $whence && (0 > $offset && 0 <= $offset = \strlen($this->data) + $offset)) {
     355                    $this->position = $offset;
     356                } else {
     357                    return false;
     358                }
     359
     360                return true;
     361            }
     362
     363            public function stream_set_option(): bool
     364            {
     365                return true;
     366            }
     367
     368            public function stream_truncate(int $new_size): bool
     369            {
     370                if ($new_size) {
     371                    $this->data = \substr($this->data, 0, $new_size);
     372                    $this->position = \min($this->position, $new_size);
     373                } else {
     374                    $this->data = '';
     375                    $this->position = 0;
     376                }
     377
     378                return true;
     379            }
     380        }));
     381
     382        $context = \stream_context_create(['Nyholm-Psr7-Zval' => ['data' => $body]]);
     383
     384        if (!$stream = @\fopen('Nyholm-Psr7-Zval://', 'r+', false, $context)) {
     385            \stream_wrapper_register('Nyholm-Psr7-Zval', $wrapper);
     386            $stream = \fopen('Nyholm-Psr7-Zval://', 'r+', false, $context);
     387        }
     388
     389        return $stream;
     390    }
    306391}
  • zettle-pos-integration/tags/1.5.6/vendor/nyholm/psr7/src/UploadedFile.php

    r2800040 r2907067  
    5959    {
    6060        if (false === \is_int($errorStatus) || !isset(self::ERRORS[$errorStatus])) {
    61             throw new \InvalidArgumentException('Upload file error status must be an integer value and one of the "UPLOAD_ERR_*" constants.');
     61            throw new \InvalidArgumentException('Upload file error status must be an integer value and one of the "UPLOAD_ERR_*" constants');
    6262        }
    6363
  • zettle-pos-integration/tags/1.5.6/vendor/nyholm/psr7/src/Uri.php

    r2560431 r2907067  
    2626    private const CHAR_SUB_DELIMS = '!\$&\'\(\)\*\+,;=';
    2727
     28    private const CHAR_GEN_DELIMS = ':\/\?#\[\]@';
     29
    2830    /** @var string Uri scheme. */
    2931    private $scheme = '';
     
    113115    public function getPath(): string
    114116    {
    115         return $this->path;
     117        $path = $this->path;
     118
     119        if ('' !== $path && '/' !== $path[0]) {
     120            if ('' !== $this->host) {
     121                // If the path is rootless and an authority is present, the path MUST be prefixed by "/"
     122                $path = '/' . $path;
     123            }
     124        } elseif (isset($path[1]) && '/' === $path[1]) {
     125            // If the path is starting with more than one "/", the
     126            // starting slashes MUST be reduced to one.
     127            $path = '/' . \ltrim($path, '/');
     128        }
     129
     130        return $path;
    116131    }
    117132
     
    126141    }
    127142
    128     public function withScheme($scheme): self
     143    /**
     144     * @return static
     145     */
     146    public function withScheme($scheme): UriInterface
    129147    {
    130148        if (!\is_string($scheme)) {
     
    143161    }
    144162
    145     public function withUserInfo($user, $password = null): self
    146     {
    147         $info = $user;
     163    /**
     164     * @return static
     165     */
     166    public function withUserInfo($user, $password = null): UriInterface
     167    {
     168        if (!\is_string($user)) {
     169            throw new \InvalidArgumentException('User must be a string');
     170        }
     171
     172        $info = \preg_replace_callback('/[' . self::CHAR_GEN_DELIMS . self::CHAR_SUB_DELIMS . ']++/', [__CLASS__, 'rawurlencodeMatchZero'], $user);
    148173        if (null !== $password && '' !== $password) {
    149             $info .= ':' . $password;
     174            if (!\is_string($password)) {
     175                throw new \InvalidArgumentException('Password must be a string');
     176            }
     177
     178            $info .= ':' . \preg_replace_callback('/[' . self::CHAR_GEN_DELIMS . self::CHAR_SUB_DELIMS . ']++/', [__CLASS__, 'rawurlencodeMatchZero'], $password);
    150179        }
    151180
     
    160189    }
    161190
    162     public function withHost($host): self
     191    /**
     192     * @return static
     193     */
     194    public function withHost($host): UriInterface
    163195    {
    164196        if (!\is_string($host)) {
     
    176208    }
    177209
    178     public function withPort($port): self
     210    /**
     211     * @return static
     212     */
     213    public function withPort($port): UriInterface
    179214    {
    180215        if ($this->port === $port = $this->filterPort($port)) {
     
    188223    }
    189224
    190     public function withPath($path): self
     225    /**
     226     * @return static
     227     */
     228    public function withPath($path): UriInterface
    191229    {
    192230        if ($this->path === $path = $this->filterPath($path)) {
     
    200238    }
    201239
    202     public function withQuery($query): self
     240    /**
     241     * @return static
     242     */
     243    public function withQuery($query): UriInterface
    203244    {
    204245        if ($this->query === $query = $this->filterQueryAndFragment($query)) {
     
    212253    }
    213254
    214     public function withFragment($fragment): self
     255    /**
     256     * @return static
     257     */
     258    public function withFragment($fragment): UriInterface
    215259    {
    216260        if ($this->fragment === $fragment = $this->filterQueryAndFragment($fragment)) {
     
    281325
    282326        $port = (int) $port;
    283         if (0 > $port || 0xffff < $port) {
     327        if (0 > $port || 0xFFFF < $port) {
    284328            throw new \InvalidArgumentException(\sprintf('Invalid port: %d. Must be between 0 and 65535', $port));
    285329        }
  • zettle-pos-integration/tags/1.5.6/vendor/php-http/client-common/src/PluginChain.php

    r2800040 r2907067  
    44
    55namespace Http\Client\Common;
    6 
    7 use function array_reverse;
    86
    97use Http\Client\Common\Exception\LoopException;
     
    4038    {
    4139        $lastCallable = $this->clientCallable;
    42         $reversedPlugins = array_reverse($this->plugins);
     40        $reversedPlugins = \array_reverse($this->plugins);
    4341
    4442        foreach ($reversedPlugins as $plugin) {
  • zettle-pos-integration/tags/1.5.6/vendor/php-http/discovery/src/ClassDiscovery.php

    r2800040 r2907067  
    2323     */
    2424    private static $strategies = [
     25        Strategy\GeneratedDiscoveryStrategy::class,
    2526        Strategy\CommonClassesStrategy::class,
    2627        Strategy\CommonPsr17ClassesStrategy::class,
     
    5556        }
    5657
     58        static $skipStrategy;
     59        $skipStrategy ?? $skipStrategy = self::safeClassExists(Strategy\GeneratedDiscoveryStrategy::class) ? false : Strategy\GeneratedDiscoveryStrategy::class;
     60
    5761        $exceptions = [];
    5862        foreach (self::$strategies as $strategy) {
     63            if ($skipStrategy === $strategy) {
     64                continue;
     65            }
     66
    5967            try {
    60                 $candidates = call_user_func($strategy.'::getCandidates', $type);
     68                $candidates = $strategy::getCandidates($type);
    6169            } catch (StrategyUnavailableException $e) {
    6270                if (!isset(self::$deprecatedStrategies[$strategy])) {
  • zettle-pos-integration/tags/1.5.6/vendor/php-http/discovery/src/Composer/Plugin.php

    r2880545 r2907067  
    1919use Composer\Script\Event;
    2020use Composer\Script\ScriptEvents;
     21use Composer\Util\Filesystem;
     22use Http\Discovery\ClassDiscovery;
    2123
    2224/**
     
    7577            'laminas/laminas-diactoros' => [],
    7678            'phalcon/cphalcon:^4' => [],
    77             'zendframework/zend-diactoros:>=2' => [],
    7879            'http-interop/http-factory-guzzle' => [],
    7980            'http-interop/http-factory-diactoros' => [],
     
    9697        'php-http/artax-adapter' => 'amphp/artax:^3',
    9798        'http-interop/http-factory-guzzle' => 'guzzlehttp/psr7:^1',
    98         'http-interop/http-factory-diactoros' => 'zendframework/zend-diactoros:^1',
    9999        'http-interop/http-factory-slim' => 'slim/slim:^3',
    100100    ];
    101101
     102    private const INTERFACE_MAP = [
     103        'php-http/async-client-implementation' => [
     104            'Http\Client\HttpAsyncClient',
     105        ],
     106        'php-http/client-implementation' => [
     107            'Http\Client\HttpClient',
     108        ],
     109        'psr/http-client-implementation' => [
     110            'Psr\Http\Client\ClientInterface',
     111        ],
     112        'psr/http-factory-implementation' => [
     113            'Psr\Http\Message\RequestFactoryInterface',
     114            'Psr\Http\Message\ResponseFactoryInterface',
     115            'Psr\Http\Message\ServerRequestFactoryInterface',
     116            'Psr\Http\Message\StreamFactoryInterface',
     117            'Psr\Http\Message\UploadedFileFactoryInterface',
     118            'Psr\Http\Message\UriFactoryInterface',
     119        ],
     120    ];
     121
    102122    public static function getSubscribedEvents(): array
    103123    {
    104124        return [
     125            ScriptEvents::PRE_AUTOLOAD_DUMP => 'preAutoloadDump',
    105126            ScriptEvents::POST_UPDATE_CMD => 'postUpdate',
    106127        ];
     
    188209        }
    189210
    190         $versionSelector = new VersionSelector(class_exists(RepositorySet::class) ? new RepositorySet() : new Pool());
     211        $versionSelector = new VersionSelector(ClassDiscovery::safeClassExists(RepositorySet::class) ? new RepositorySet() : new Pool());
    191212        $updateComposerJson = false;
    192213
     
    237258        $versionParser = new VersionParser();
    238259
    239         if (class_exists(\Phalcon\Http\Message\RequestFactory::class, false)) {
     260        if (ClassDiscovery::safeClassExists(\Phalcon\Http\Message\RequestFactory::class, false)) {
    240261            $missingRequires[0]['psr/http-factory-implementation'] = [];
    241262            $missingRequires[1]['psr/http-factory-implementation'] = [];
     
    336357    }
    337358
     359    public function preAutoloadDump(Event $event)
     360    {
     361        $filesystem = new Filesystem();
     362        // Double realpath() on purpose, see https://bugs.php.net/72738
     363        $vendorDir = $filesystem->normalizePath(realpath(realpath($event->getComposer()->getConfig()->get('vendor-dir'))));
     364        $filesystem->ensureDirectoryExists($vendorDir.'/composer');
     365        $pinned = $event->getComposer()->getPackage()->getExtra()['discovery'] ?? [];
     366        $candidates = [];
     367
     368        $allInterfaces = array_merge(...array_values(self::INTERFACE_MAP));
     369        foreach ($pinned as $abstraction => $class) {
     370            if (isset(self::INTERFACE_MAP[$abstraction])) {
     371                $interfaces = self::INTERFACE_MAP[$abstraction];
     372            } elseif (false !== $k = array_search($abstraction, $allInterfaces, true)) {
     373                $interfaces = [$allInterfaces[$k]];
     374            } else {
     375                throw new \UnexpectedValueException(sprintf('Invalid "extra.discovery" pinned in composer.json: "%s" is not one of ["%s"].', $abstraction, implode('", "', array_keys(self::INTERFACE_MAP))));
     376            }
     377
     378            foreach ($interfaces as $interface) {
     379                $candidates[] = sprintf("case %s: return [['class' => %s]];\n", var_export($interface, true), var_export($class, true));
     380            }
     381        }
     382
     383        $file = $vendorDir.'/composer/GeneratedDiscoveryStrategy.php';
     384
     385        if (!$candidates) {
     386            if (file_exists($file)) {
     387                unlink($file);
     388            }
     389
     390            return;
     391        }
     392
     393        $candidates = implode('            ', $candidates);
     394        $code = <<<EOPHP
     395<?php
     396
     397namespace Http\Discovery\Strategy;
     398
     399class GeneratedDiscoveryStrategy implements DiscoveryStrategy
     400{
     401    public static function getCandidates(\$type)
     402    {
     403        switch (\$type) {
     404            $candidates
     405            default: return [];
     406        }
     407    }
     408}
     409
     410EOPHP
     411        ;
     412
     413        if (!file_exists($file) || $code !== file_get_contents($file)) {
     414            file_put_contents($file, $code);
     415        }
     416
     417        $rootPackage = $event->getComposer()->getPackage();
     418        $autoload = $rootPackage->getAutoload();
     419        $autoload['classmap'][] = $vendorDir.'/composer/GeneratedDiscoveryStrategy.php';
     420        $rootPackage->setAutoload($autoload);
     421    }
     422
    338423    private function updateComposerJson(array $missingRequires, bool $sortPackages)
    339424    {
     
    361446        $composerJson = file_get_contents(Factory::getComposerFile());
    362447        $lockFile = new JsonFile($lock, null, $io);
    363         $locker = class_exists(RepositorySet::class)
     448        $locker = ClassDiscovery::safeClassExists(RepositorySet::class)
    364449            ? new Locker($io, $lockFile, $composer->getInstallationManager(), $composerJson)
    365450            : new Locker($io, $lockFile, $composer->getRepositoryManager(), $composer->getInstallationManager(), $composerJson);
  • zettle-pos-integration/tags/1.5.6/vendor/php-http/discovery/src/Psr17Factory.php

    r2880545 r2907067  
    185185
    186186        $headers = [];
    187         foreach ($server as $key => $value) {
    188             if (0 === strpos($key, 'HTTP_')) {
    189                 $key = substr($key, 5);
    190             } elseif (!\in_array($key, ['CONTENT_TYPE', 'CONTENT_LENGTH', 'CONTENT_MD5'], true)) {
     187        foreach ($server as $k => $v) {
     188            if (0 === strpos($k, 'HTTP_')) {
     189                $k = substr($k, 5);
     190            } elseif (!\in_array($k, ['CONTENT_TYPE', 'CONTENT_LENGTH', 'CONTENT_MD5'], true)) {
    191191                continue;
    192192            }
    193             $key = str_replace(' ', '-', ucwords(strtolower(str_replace('_', ' ', $key))));
    194 
    195             $headers[$key] = $value;
     193            $k = str_replace(' ', '-', ucwords(strtolower(str_replace('_', ' ', $k))));
     194
     195            $headers[$k] = $v;
    196196        }
    197197
     
    206206        }
    207207
    208         foreach ($headers as $key => $value) {
     208        foreach ($headers as $k => $v) {
    209209            try {
    210                 $request = $request->withHeader($key, $value);
     210                $request = $request->withHeader($k, $v);
    211211            } catch (\InvalidArgumentException $e) {
    212212                // ignore invalid headers
     
    258258    private function normalizeFiles(array $files): array
    259259    {
    260         $normalized = [];
    261 
    262         foreach ($files as $key => $value) {
    263             if ($value instanceof UploadedFileInterface) {
    264                 $normalized[$key] = $value;
    265             } elseif (!\is_array($value)) {
     260        foreach ($files as $k => $v) {
     261            if ($v instanceof UploadedFileInterface) {
    266262                continue;
    267             } elseif (!isset($value['tmp_name'])) {
    268                 $normalized[$key] = $this->normalizeFiles($value);
    269             } elseif (\is_array($value['tmp_name'])) {
    270                 foreach ($value['tmp_name'] as $k => $v) {
    271                     $file = $this->createStreamFromFile($value['tmp_name'][$k], 'r');
    272                     $normalized[$key][$k] = $this->createUploadedFile($file, $value['size'][$k], $value['error'][$k], $value['name'][$k], $value['type'][$k]);
    273                 }
     263            }
     264            if (!\is_array($v)) {
     265                unset($files[$k]);
     266            } elseif (!isset($v['tmp_name'])) {
     267                $files[$k] = $this->normalizeFiles($v);
    274268            } else {
    275                 $file = $this->createStreamFromFile($value['tmp_name'], 'r');
    276                 $normalized[$key] = $this->createUploadedFile($file, $value['size'], $value['error'], $value['name'], $value['type']);
    277             }
    278         }
    279 
    280         return $normalized;
     269                $files[$k] = $this->createUploadedFileFromSpec($v);
     270            }
     271        }
     272
     273        return $files;
     274    }
     275
     276    /**
     277     * Create and return an UploadedFile instance from a $_FILES specification.
     278     *
     279     * @param array $value $_FILES struct
     280     *
     281     * @return UploadedFileInterface|UploadedFileInterface[]
     282     */
     283    private function createUploadedFileFromSpec(array $value)
     284    {
     285        if (!is_array($tmpName = $value['tmp_name'])) {
     286            $file = is_file($tmpName) ? $this->createStreamFromFile($tmpName, 'r') : $this->createStream();
     287
     288            return $this->createUploadedFile($file, $value['size'], $value['error'], $value['name'], $value['type']);
     289        }
     290
     291        foreach ($tmpName as $k => $v) {
     292            $tmpName[$k] = $this->createUploadedFileFromSpec([
     293                'tmp_name' => $v,
     294                'size' => $value['size'][$k] ?? null,
     295                'error' => $value['error'][$k] ?? null,
     296                'name' => $value['name'][$k] ?? null,
     297                'type' => $value['type'][$k] ?? null,
     298            ]);
     299        }
     300
     301        return $tmpName;
    281302    }
    282303}
  • zettle-pos-integration/tags/1.5.6/vendor/php-http/discovery/src/Strategy/CommonClassesStrategy.php

    r2880545 r2907067  
    1313use Http\Adapter\Guzzle7\Client as Guzzle7;
    1414use Http\Adapter\React\Client as React;
    15 use Http\Adapter\Zend\Client as Zend;
    1615use Http\Client\Curl\Client as Curl;
    1716use Http\Client\HttpAsyncClient;
     
    4241use Symfony\Component\HttpClient\HttplugClient as SymfonyHttplug;
    4342use Symfony\Component\HttpClient\Psr18Client as SymfonyPsr18;
    44 use Zend\Diactoros\Request as ZendDiactorosRequest;
    4543
    4644/**
     
    6058            ['class' => NyholmHttplugFactory::class, 'condition' => [NyholmHttplugFactory::class]],
    6159            ['class' => GuzzleMessageFactory::class, 'condition' => [GuzzleRequest::class, GuzzleMessageFactory::class]],
    62             ['class' => DiactorosMessageFactory::class, 'condition' => [ZendDiactorosRequest::class, DiactorosMessageFactory::class]],
    6360            ['class' => DiactorosMessageFactory::class, 'condition' => [DiactorosRequest::class, DiactorosMessageFactory::class]],
    6461            ['class' => SlimMessageFactory::class, 'condition' => [SlimRequest::class, SlimMessageFactory::class]],
     
    6764            ['class' => NyholmHttplugFactory::class, 'condition' => [NyholmHttplugFactory::class]],
    6865            ['class' => GuzzleStreamFactory::class, 'condition' => [GuzzleRequest::class, GuzzleStreamFactory::class]],
    69             ['class' => DiactorosStreamFactory::class, 'condition' => [ZendDiactorosRequest::class, DiactorosStreamFactory::class]],
    7066            ['class' => DiactorosStreamFactory::class, 'condition' => [DiactorosRequest::class, DiactorosStreamFactory::class]],
    7167            ['class' => SlimStreamFactory::class, 'condition' => [SlimRequest::class, SlimStreamFactory::class]],
     
    7470            ['class' => NyholmHttplugFactory::class, 'condition' => [NyholmHttplugFactory::class]],
    7571            ['class' => GuzzleUriFactory::class, 'condition' => [GuzzleRequest::class, GuzzleUriFactory::class]],
    76             ['class' => DiactorosUriFactory::class, 'condition' => [ZendDiactorosRequest::class, DiactorosUriFactory::class]],
    7772            ['class' => DiactorosUriFactory::class, 'condition' => [DiactorosRequest::class, DiactorosUriFactory::class]],
    7873            ['class' => SlimUriFactory::class, 'condition' => [SlimRequest::class, SlimUriFactory::class]],
     
    9590            ['class' => React::class, 'condition' => React::class],
    9691            ['class' => Cake::class, 'condition' => Cake::class],
    97             ['class' => Zend::class, 'condition' => Zend::class],
    9892            ['class' => Artax::class, 'condition' => Artax::class],
    9993            [
  • zettle-pos-integration/tags/1.5.6/vendor/php-http/discovery/src/Strategy/CommonPsr17ClassesStrategy.php

    r2880545 r2907067  
    2626            'Phalcon\Http\Message\RequestFactory',
    2727            'Nyholm\Psr7\Factory\Psr17Factory',
    28             'Zend\Diactoros\RequestFactory',
    2928            'GuzzleHttp\Psr7\HttpFactory',
    3029            'Http\Factory\Diactoros\RequestFactory',
     
    3736            'Phalcon\Http\Message\ResponseFactory',
    3837            'Nyholm\Psr7\Factory\Psr17Factory',
    39             'Zend\Diactoros\ResponseFactory',
    4038            'GuzzleHttp\Psr7\HttpFactory',
    4139            'Http\Factory\Diactoros\ResponseFactory',
     
    4846            'Phalcon\Http\Message\ServerRequestFactory',
    4947            'Nyholm\Psr7\Factory\Psr17Factory',
    50             'Zend\Diactoros\ServerRequestFactory',
    5148            'GuzzleHttp\Psr7\HttpFactory',
    5249            'Http\Factory\Diactoros\ServerRequestFactory',
     
    5956            'Phalcon\Http\Message\StreamFactory',
    6057            'Nyholm\Psr7\Factory\Psr17Factory',
    61             'Zend\Diactoros\StreamFactory',
    6258            'GuzzleHttp\Psr7\HttpFactory',
    6359            'Http\Factory\Diactoros\StreamFactory',
     
    7066            'Phalcon\Http\Message\UploadedFileFactory',
    7167            'Nyholm\Psr7\Factory\Psr17Factory',
    72             'Zend\Diactoros\UploadedFileFactory',
    7368            'GuzzleHttp\Psr7\HttpFactory',
    7469            'Http\Factory\Diactoros\UploadedFileFactory',
     
    8176            'Phalcon\Http\Message\UriFactory',
    8277            'Nyholm\Psr7\Factory\Psr17Factory',
    83             'Zend\Diactoros\UriFactory',
    8478            'GuzzleHttp\Psr7\HttpFactory',
    8579            'Http\Factory\Diactoros\UriFactory',
  • zettle-pos-integration/tags/1.5.6/vendor/php-http/httplug/src/HttpClient.php

    r2477105 r2907067  
    1010 * Provide the Httplug HttpClient interface for BC.
    1111 * You should typehint Psr\Http\Client\ClientInterface in new code
     12 *
     13 * @deprecated since version 2.4, use Psr\Http\Client\ClientInterface instead; see https://www.php-fig.org/psr/psr-18/
    1214 */
    1315interface HttpClient extends ClientInterface
  • zettle-pos-integration/tags/1.5.6/vendor/php-http/message-factory/LICENSE

    r2477105 r2907067  
    1 Copyright (c) 2015 PHP HTTP Team <team@php-http.org>
     1Copyright (c) 2015-2016 PHP HTTP Team <team@php-http.org>
    22
    33Permission is hereby granted, free of charge, to any person obtaining a copy
  • zettle-pos-integration/tags/1.5.6/vendor/php-http/message-factory/puli.json

    r2477105 r2907067  
    11{
    22    "version": "1.0",
     3    "name": "php-http/message-factory",
    34    "binding-types": {
    45        "Http\\Message\\MessageFactory": {
  • zettle-pos-integration/tags/1.5.6/vendor/php-http/message-factory/src/MessageFactory.php

    r2477105 r2907067  
    77 *
    88 * @author Márk Sági-Kazár <mark.sagikazar@gmail.com>
     9 *
     10 * @deprecated since version 1.1, use Psr\Http\Message\RequestFactoryInterface and Psr\Http\Message\ResponseFactoryInterface instead.
    911 */
    1012interface MessageFactory extends RequestFactory, ResponseFactory
  • zettle-pos-integration/tags/1.5.6/vendor/php-http/message-factory/src/RequestFactory.php

    r2477105 r2907067  
    1111 *
    1212 * @author Márk Sági-Kazár <mark.sagikazar@gmail.com>
     13 *
     14 * @deprecated since version 1.1, use Psr\Http\Message\RequestFactoryInterface instead.
    1315 */
    1416interface RequestFactory
  • zettle-pos-integration/tags/1.5.6/vendor/php-http/message-factory/src/ResponseFactory.php

    r2477105 r2907067  
    1212 *
    1313 * @author Márk Sági-Kazár <mark.sagikazar@gmail.com>
     14 *
     15 * @deprecated since version 1.1, use Psr\Http\Message\ResponseFactoryInterface instead.
    1416 */
    1517interface ResponseFactory
  • zettle-pos-integration/tags/1.5.6/vendor/php-http/message-factory/src/StreamFactory.php

    r2477105 r2907067  
    99 *
    1010 * @author Márk Sági-Kazár <mark.sagikazar@gmail.com>
     11 *
     12 * @deprecated since version 1.1, use Psr\Http\Message\StreamFactoryInterface instead.
    1113 */
    1214interface StreamFactory
     
    1921     * @return StreamInterface
    2022     *
    21      * @throws \InvalidArgumentException If the stream body is invalid.
    22      * @throws \RuntimeException         If creating the stream from $body fails.
     23     * @throws \InvalidArgumentException if the stream body is invalid
     24     * @throws \RuntimeException         if creating the stream from $body fails
    2325     */
    2426    public function createStream($body = null);
  • zettle-pos-integration/tags/1.5.6/vendor/php-http/message-factory/src/UriFactory.php

    r2477105 r2907067  
    99 *
    1010 * @author Márk Sági-Kazár <mark.sagikazar@gmail.com>
     11 *
     12 * @deprecated since version 1.1, use Psr\Http\Message\UriFactoryInterface instead.
    1113 */
    1214interface UriFactory
     
    1921     * @return UriInterface
    2022     *
    21      * @throws \InvalidArgumentException If the $uri argument can not be converted into a valid URI.
     23     * @throws \InvalidArgumentException if the $uri argument can not be converted into a valid URI
    2224     */
    2325    public function createUri($uri);
  • zettle-pos-integration/tags/1.5.6/vendor/php-http/message/src/Authentication/Wsse.php

    r2477105 r2907067  
    44
    55use Http\Message\Authentication;
    6 use InvalidArgumentException;
    76use Psr\Http\Message\RequestInterface;
    87
     
    3938        $this->password = $password;
    4039        if (false === in_array($hashAlgorithm, hash_algos())) {
    41             throw new InvalidArgumentException(sprintf('Unaccepted hashing algorithm: %s', $hashAlgorithm));
     40            throw new \InvalidArgumentException(sprintf('Unaccepted hashing algorithm: %s', $hashAlgorithm));
    4241        }
    4342        $this->hashAlgorithm = $hashAlgorithm;
  • zettle-pos-integration/tags/1.5.6/vendor/php-http/message/src/Cookie.php

    r2477105 r2907067  
    400400     * This does not compare the values, only name, domain and path.
    401401     *
    402      * @param Cookie $cookie
    403      *
    404402     * @return bool
    405403     */
  • zettle-pos-integration/tags/1.5.6/vendor/php-http/message/src/CookieJar.php

    r2800040 r2907067  
    1111{
    1212    /**
    13      * @var \SplObjectStorage<object, mixed>
     13     * @var \SplObjectStorage<Cookie, mixed>
    1414     */
    1515    private $cookies;
  • zettle-pos-integration/tags/1.5.6/vendor/php-http/message/src/Encoding/FilteredStream.php

    r2477105 r2907067  
    1818        seek as private doSeek;
    1919    }
    20     const BUFFER_SIZE = 8192;
     20    public const BUFFER_SIZE = 8192;
    2121
    2222    /**
  • zettle-pos-integration/tags/1.5.6/vendor/php-http/message/src/UriFactory/GuzzleUriFactory.php

    r2538456 r2907067  
    33namespace Http\Message\UriFactory;
    44
    5 use function GuzzleHttp\Psr7\uri_for;
    65use GuzzleHttp\Psr7\Utils;
    76use Http\Message\UriFactory;
     7
     8use function GuzzleHttp\Psr7\uri_for;
    89
    910/**
  • zettle-pos-integration/tags/1.5.6/vendor/psr/http-message/src/MessageInterface.php

    r2477105 r2907067  
    11<?php
     2
     3declare(strict_types=1);
    24
    35namespace Psr\Http\Message;
     
    3941     * @return static
    4042     */
    41     public function withProtocolVersion($version);
     43    public function withProtocolVersion(string $version);
    4244
    4345    /**
     
    7678     *     no matching header name is found in the message.
    7779     */
    78     public function hasHeader($name);
     80    public function hasHeader(string $name);
    7981
    8082    /**
     
    9294     *    return an empty array.
    9395     */
    94     public function getHeader($name);
     96    public function getHeader(string $name);
    9597
    9698    /**
     
    113115     *    the message, this method MUST return an empty string.
    114116     */
    115     public function getHeaderLine($name);
     117    public function getHeaderLine(string $name);
    116118
    117119    /**
     
    130132     * @throws \InvalidArgumentException for invalid header names or values.
    131133     */
    132     public function withHeader($name, $value);
     134    public function withHeader(string $name, $value);
    133135
    134136    /**
     
    148150     * @throws \InvalidArgumentException for invalid header names or values.
    149151     */
    150     public function withAddedHeader($name, $value);
     152    public function withAddedHeader(string $name, $value);
    151153
    152154    /**
     
    162164     * @return static
    163165     */
    164     public function withoutHeader($name);
     166    public function withoutHeader(string $name);
    165167
    166168    /**
  • zettle-pos-integration/tags/1.5.6/vendor/psr/http-message/src/RequestInterface.php

    r2477105 r2907067  
    11<?php
     2
     3declare(strict_types=1);
    24
    35namespace Psr\Http\Message;
     
    5658     * @link http://tools.ietf.org/html/rfc7230#section-5.3 (for the various
    5759     *     request-target forms allowed in request messages)
    58      * @param mixed $requestTarget
     60     * @param string $requestTarget
    5961     * @return static
    6062     */
    61     public function withRequestTarget($requestTarget);
     63    public function withRequestTarget(string $requestTarget);
    6264
    6365    /**
     
    8385     * @throws \InvalidArgumentException for invalid HTTP methods.
    8486     */
    85     public function withMethod($method);
     87    public function withMethod(string $method);
    8688
    8789    /**
     
    126128     * @return static
    127129     */
    128     public function withUri(UriInterface $uri, $preserveHost = false);
     130    public function withUri(UriInterface $uri, bool $preserveHost = false);
    129131}
  • zettle-pos-integration/tags/1.5.6/vendor/psr/http-message/src/ResponseInterface.php

    r2477105 r2907067  
    11<?php
     2
     3declare(strict_types=1);
    24
    35namespace Psr\Http\Message;
     
    5052     * @throws \InvalidArgumentException For invalid status code arguments.
    5153     */
    52     public function withStatus($code, $reasonPhrase = '');
     54    public function withStatus(int $code, string $reasonPhrase = '');
    5355
    5456    /**
  • zettle-pos-integration/tags/1.5.6/vendor/psr/http-message/src/ServerRequestInterface.php

    r2477105 r2907067  
    11<?php
     2
     3declare(strict_types=1);
    24
    35namespace Psr\Http\Message;
     
    225227     * @return mixed
    226228     */
    227     public function getAttribute($name, $default = null);
     229    public function getAttribute(string $name, $default = null);
    228230
    229231    /**
     
    242244     * @return static
    243245     */
    244     public function withAttribute($name, $value);
     246    public function withAttribute(string $name, $value);
    245247
    246248    /**
     
    258260     * @return static
    259261     */
    260     public function withoutAttribute($name);
     262    public function withoutAttribute(string $name);
    261263}
  • zettle-pos-integration/tags/1.5.6/vendor/psr/http-message/src/StreamInterface.php

    r2477105 r2907067  
    11<?php
     2
     3declare(strict_types=1);
    24
    35namespace Psr\Http\Message;
     
    8587     * @throws \RuntimeException on failure.
    8688     */
    87     public function seek($offset, $whence = SEEK_SET);
     89    public function seek(int $offset, int $whence = SEEK_SET);
    8890
    8991    /**
     
    113115     * @throws \RuntimeException on failure.
    114116     */
    115     public function write($string);
     117    public function write(string $string);
    116118
    117119    /**
     
    132134     * @throws \RuntimeException if an error occurs.
    133135     */
    134     public function read($length);
     136    public function read(int $length);
    135137
    136138    /**
     
    150152     *
    151153     * @link http://php.net/manual/en/function.stream-get-meta-data.php
    152      * @param string $key Specific metadata to retrieve.
     154     * @param string|null $key Specific metadata to retrieve.
    153155     * @return array|mixed|null Returns an associative array if no key is
    154156     *     provided. Returns a specific key value if a key is provided and the
    155157     *     value is found, or null if the key is not found.
    156158     */
    157     public function getMetadata($key = null);
     159    public function getMetadata(?string $key = null);
    158160}
  • zettle-pos-integration/tags/1.5.6/vendor/psr/http-message/src/UploadedFileInterface.php

    r2477105 r2907067  
    11<?php
     2
     3declare(strict_types=1);
    24
    35namespace Psr\Http\Message;
     
    6365     *     the second or subsequent call to the method.
    6466     */
    65     public function moveTo($targetPath);
     67    public function moveTo(string $targetPath);
    6668   
    6769    /**
  • zettle-pos-integration/tags/1.5.6/vendor/psr/http-message/src/UriInterface.php

    r2477105 r2907067  
    11<?php
     2
     3declare(strict_types=1);
     4
    25namespace Psr\Http\Message;
    36
     
    189192     * @throws \InvalidArgumentException for invalid or unsupported schemes.
    190193     */
    191     public function withScheme($scheme);
     194    public function withScheme(string $scheme);
    192195
    193196    /**
     
    205208     * @return static A new instance with the specified user information.
    206209     */
    207     public function withUserInfo($user, $password = null);
     210    public function withUserInfo(string $user, ?string $password = null);
    208211
    209212    /**
     
    219222     * @throws \InvalidArgumentException for invalid hostnames.
    220223     */
    221     public function withHost($host);
     224    public function withHost(string $host);
    222225
    223226    /**
     
    238241     * @throws \InvalidArgumentException for invalid ports.
    239242     */
    240     public function withPort($port);
     243    public function withPort(?int $port);
    241244
    242245    /**
     
    262265     * @throws \InvalidArgumentException for invalid paths.
    263266     */
    264     public function withPath($path);
     267    public function withPath(string $path);
    265268
    266269    /**
     
    279282     * @throws \InvalidArgumentException for invalid query strings.
    280283     */
    281     public function withQuery($query);
     284    public function withQuery(string $query);
    282285
    283286    /**
     
    295298     * @return static A new instance with the specified fragment.
    296299     */
    297     public function withFragment($fragment);
     300    public function withFragment(string $fragment);
    298301
    299302    /**
  • zettle-pos-integration/tags/1.5.6/zettle-pos-integration.php

    r2880545 r2907067  
    88 * Plugin URI:  https://zettle.inpsyde.com/
    99 * Description: PayPal Zettle Point-Of-Sale Integration for WooCommerce
    10  * Version:     1.5.5
     10 * Version:     1.5,6
    1111 * Requires at least: 5.4
    1212 * Requires PHP: 7.2
  • zettle-pos-integration/trunk/modules/inpsyde-queue/src/Bootstrap.php

    r2477105 r2907067  
    2323    {
    2424        global $wpdb;
    25         require_once ABSPATH . 'wp-admin/includes/upgrade.php';
    2625        //phpcs:disable Inpsyde.CodeQuality.VariablesName.SnakeCaseVar
    2726        $charset_collate = $wpdb->get_charset_collate();
     
    3029            //phpcs:disable Inpsyde.CodeQuality.LineLength.TooLong
    3130            $sql = "CREATE TABLE IF NOT EXISTS {$prefix}{$table->name()} ({$table->schema()}) $charset_collate;";
    32             dbDelta($sql);
     31            // phpcs:ignore WordPress.DB.PreparedSQL
     32            $wpdb->query($sql);
    3333        }
    3434    }
  • zettle-pos-integration/trunk/modules/zettle-php-sdk/builders.array.php

    r2532865 r2907067  
    234234        static function (array $payload, B $builder): VariantInventoryState {
    235235            return new VariantInventoryState(
    236                 $payload['locationUuid'],
     236                $payload['inventoryUuid'],
    237237                $payload['productUuid'],
    238238                $payload['variantUuid'],
    239                 $payload['locationType'],
    240239                (int) $payload['balance']
    241240            );
     
    259258    $key(Inventory::class) => $builder(
    260259        static function (array $payload, B $builder): Inventory {
    261             $changeHistory = $builder->build(VariantInventoryStateCollection::class, $payload['variants']);
    262 
    263             return new Inventory($changeHistory);
     260            $variants = $builder->build(VariantInventoryStateCollection::class, $payload);
     261
     262            return new Inventory($variants);
    264263        }
    265264    ),
    266265    $key(Location::class) => $builder(
    267266        static function (array $payload, B $builder): Location {
    268             $isDefault = isset($payload['default'])
    269                 ? (bool) $payload['default']
    270                 : false;
    271             $description = isset($payload['description'])
    272                 ? $payload['description']
    273                 : null;
    274 
    275267            return new Location(
    276                 $payload['uuid'],
    277                 LocationType::get($payload['type']),
     268                $payload['inventoryUuid'],
     269                LocationType::get($payload['inventoryType']),
    278270                $payload['name'],
    279                 $description,
    280                 $isDefault
     271                $payload['description'] ?? null,
     272                isset($payload['defaultInventory']) && (bool) $payload['defaultInventory']
    281273            );
    282274        }
  • zettle-pos-integration/trunk/modules/zettle-php-sdk/src/API/Inventory/Inventory.php

    r2605648 r2907067  
    7575     * @param Transaction[] $transactions
    7676     *
    77      * @return InventoryEntity
    78      *
    79      * @throws ZettleRestException
    80      */
    81     public function performTransactions(Transaction ...$transactions): InventoryEntity
    82     {
    83         $url = (string) $this->uri->withPath("/organizations/self/inventory");
     77     * @throws ZettleRestException
     78     */
     79    public function performTransactions(Transaction ...$transactions): void
     80    {
     81        $url = (string) $this->uri->withPath('/v3/movements');
    8482        $changes = [];
    8583        foreach ($transactions as $transaction) {
     
    8785                'productUuid' => $transaction->productUuid(),
    8886                'variantUuid' => $transaction->variantUuid(),
    89                 'fromLocationUuid' => $transaction->fromLocationUuid(),
    90                 'toLocationUuid' => $transaction->toLocationUuid(),
     87                'from' => $transaction->fromLocationUuid(),
     88                'to' => $transaction->toLocationUuid(),
    9189                'change' => $transaction->change(),
    9290            ];
    9391        }
    9492        $payload = [
    95             'changes' => $changes,
    96             'externalUuid' => $this->integrationUuid,
     93            'movements' => $changes,
     94            'identifier' => $this->integrationUuid,
    9795        ];
    98         $result = $this->restClient->put($url, $payload);
    99 
    100         try {
    101             return $this->builder->build(InventoryEntity::class, $result);
    102         } catch (BuilderException $exception) {
    103             throw new ZettleRestException(
    104                 'Could not build Inventory entity after performing transactions',
    105                 0,
    106                 $result,
    107                 $payload,
    108                 $exception
    109             );
    110         }
     96
     97        $this->restClient->post($url, $payload);
    11198    }
    11299
     
    116103     * @param int $change
    117104     *
    118      * @return InventoryEntity
    119      * @throws ZettleRestException
    120      */
    121     public function purchase(string $productUuid, string $variantUuid, int $change): InventoryEntity
     105     * @throws ZettleRestException
     106     */
     107    public function purchase(string $productUuid, string $variantUuid, int $change): void
    122108    {
    123109        $locations = $this->locations();
     
    130116        );
    131117
    132         return $this->performTransactions($transaction);
     118        $this->performTransactions($transaction);
    133119    }
    134120
     
    140126     * @param int $change
    141127     *
    142      * @return InventoryEntity
    143128     * @throws ZettleRestException
    144129     */
     
    149134        string $to,
    150135        int $change
    151     ): InventoryEntity {
     136    ): void {
    152137
    153138        $locations = $this->locations();
     
    161146        );
    162147
    163         return $this->performTransactions($transaction);
     148        $this->performTransactions($transaction);
    164149    }
    165150
     
    169154     * @param int $change
    170155     *
    171      * @return InventoryEntity
    172      * @throws ZettleRestException
    173      */
    174     public function supply(string $productUuid, string $variantUuid, int $change): InventoryEntity
     156     * @throws ZettleRestException
     157     */
     158    public function supply(string $productUuid, string $variantUuid, int $change): void
    175159    {
    176160        $locations = $this->locations();
     
    183167        );
    184168
    185         return $this->performTransactions($transaction);
    186     }
    187 
    188     /**
    189      * @param string $productUuid
    190      *
    191      * @return InventoryEntity
    192      * @throws ZettleRestException
    193      */
    194     public function startTracking(string $productUuid): InventoryEntity
    195     {
    196         $url = (string) $this->uri->withPath("/organizations/self/inventory");
     169        $this->performTransactions($transaction);
     170    }
     171
     172    /**
     173     * @param string $productUuid
     174     *
     175     * @throws ZettleRestException
     176     */
     177    public function startTracking(string $productUuid): void
     178    {
     179        $this->setTracking($productUuid, true);
     180    }
     181
     182    /**
     183     * @param string $productUuid
     184     *
     185     * @throws ZettleRestException
     186     */
     187    public function stopTracking(string $productUuid): void
     188    {
     189        $this->setTracking($productUuid, false);
     190    }
     191
     192    /**
     193     * @param string $productUuid
     194     * @param bool $enable
     195     *
     196     * @throws ZettleRestException
     197     */
     198    private function setTracking(string $productUuid, bool $enable): void
     199    {
     200        $url = (string) $this->uri->withPath('/v3/products');
    197201        $payload = [
    198             'productUuid' => $productUuid,
     202            [
     203                'productUuid' => $productUuid,
     204                'tracking' => $enable ? 'enable' : 'disable',
     205            ],
    199206        ];
    200207
    201         $result = $this->restClient->post($url, $payload);
    202 
    203         try {
    204             return $this->builder->build(InventoryEntity::class, $result);
    205         } catch (BuilderException $exception) {
    206             throw new ZettleRestException(
    207                 sprintf(
    208                     'Could not build Inventory entity of product %s after starting inventory tracking',
    209                     $productUuid
    210                 ),
    211                 0,
    212                 $result,
    213                 $payload,
    214                 $exception
    215             );
    216         }
    217     }
    218 
    219     /**
    220      * @param string $productUuid
    221      *
    222      * @return bool
    223      * @throws ZettleRestException
    224      */
    225     public function stopTracking(string $productUuid): bool
    226     {
    227         $url = (string) $this->uri->withPath("/organizations/self/inventory/products/{$productUuid}");
    228         $payload = [
    229             'productUuid' => $productUuid,
    230         ];
    231         try {
    232             $this->restClient->delete($url, $payload);
    233         } catch (ZettleRestException $exception) {
    234             if ($exception->isType(ZettleRestException::TYPE_PRODUCT_NOT_TRACKED)) {
    235                 return true;
    236             }
    237             throw $exception;
    238         }
    239 
    240         return true;
     208        $this->restClient->post($url, $payload);
    241209    }
    242210
     
    253221        $locationUuid = $locations[$locationType]->uuid();
    254222        $url = (string) $this->uri->withPath(
    255             "/organizations/self/inventory/locations/{$locationUuid}/products/{$productUuid}"
     223            "/v3/stock/{$locationUuid}/products/{$productUuid}"
    256224        );
    257225
  • zettle-pos-integration/trunk/modules/zettle-php-sdk/src/API/Inventory/Locations.php

    r2477105 r2907067  
    4444    public function all(): array
    4545    {
    46         $url = (string) $this->uri->withPath("/organizations/self/locations");
     46        $url = (string) $this->uri->withPath('/v3/inventories');
    4747
    4848        $result = $this->restClient->get($url, []);
     
    5050        foreach ($result as $locationPayload) {
    5151            try {
    52                 $locations[$locationPayload['type']] = $this->builder->build(Location::class, $locationPayload);
     52                $locations[$locationPayload['inventoryType']] = $this->builder->build(Location::class, $locationPayload);
    5353            } catch (BuilderException $exception) {
    5454                // TODO may wanna log, but an error is pretty unlikely to occur here
  • zettle-pos-integration/trunk/modules/zettle-php-sdk/src/Bootstrap.php

    r2477105 r2907067  
    2727        global $wpdb;
    2828
    29         require_once ABSPATH . 'wp-admin/includes/upgrade.php';
    30 
    3129        $this->createTables($wpdb);
    3230    }
     
    4341            //phpcs:disable Inpsyde.CodeQuality.LineLength.TooLong
    4442            $sql = "CREATE TABLE IF NOT EXISTS {$prefix}{$table->name()} ({$table->schema()}) $charsetCollate;";
    45             dbDelta($sql);
     43            // phpcs:ignore WordPress.DB.PreparedSQL
     44            $wpdb->query($sql);
    4645        }
    4746    }
  • zettle-pos-integration/trunk/modules/zettle-php-sdk/src/DAL/Entity/VariantInventoryState/VariantInventoryState.php

    r2477105 r2907067  
    2424
    2525    /**
    26      * @var string
    27      */
    28     private $locationType;
    29 
    30     /**
    3126     * @var int
    3227     */
     
    3934     * @param string $productUuid
    4035     * @param string $variantUuid
    41      * @param string $locationType
    4236     * @param int $balance
    4337     *
     
    4741        string $productUuid,
    4842        string $variantUuid,
    49         string $locationType,
    5043        int $balance
    5144    ) {
     
    5346        $this->productUuid = $productUuid;
    5447        $this->variantUuid = $variantUuid;
    55         $this->locationType = $locationType;
    5648        $this->balance = $balance;
    5749    }
     
    8274
    8375    /**
    84      * @return string
    85      */
    86     public function locationType(): string
    87     {
    88         return $this->locationType;
    89     }
    90 
    91     /**
    9276     * @return int
    9377     */
  • zettle-pos-integration/trunk/readme.txt

    r2880545 r2907067  
    33Tags: payments, point-of-sale, woocommerce, zettle
    44Requires at least: 5.4
    5 Tested up to: 6.1
     5Tested up to: 6.2
    66Requires PHP: 7.2
    7 Stable tag: 1.5.5
     7Stable tag: 1.5.6
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4747= Manual Installation =
    4848
    49 In case the automatic installation doesn't work, download the plugin from here via the *Download*-button. 
    50 Unpack the archive and load the folder via FTP into the directory `wp-content\plugins` of your WordPress installation. 
     49In case the automatic installation doesn't work, download the plugin from here via the *Download*-button.
     50Unpack the archive and load the folder via FTP into the directory `wp-content\plugins` of your WordPress installation.
    5151Go to *Plugins => Installed plugins* and click *Activate* on *Zettle POS Integration for WooCommerce*.
    5252
     
    6767
    6868== Changelog ==
     69= 1.5.6 =
     70- Migrate to inventory v3 API.
     71- Fixed database migration query error (in Query Monitor logs etc.).
     72
    6973= 1.5.5 =
    7074- WC High-Performance Order Storage compatibility declaration.
  • zettle-pos-integration/trunk/vendor/autoload.php

    r2880545 r2907067  
    2323require_once __DIR__ . '/composer/autoload_real.php';
    2424
    25 return ComposerAutoloaderInitc811a4d20b8f6333dee0e55f37a2534c::getLoader();
     25return ComposerAutoloaderInit1290e29297976b059974a78cf37636fe::getLoader();
  • zettle-pos-integration/trunk/vendor/composer/InstalledVersions.php

    r2800040 r2907067  
    9999        foreach (self::getInstalled() as $installed) {
    100100            if (isset($installed['versions'][$packageName])) {
    101                 return $includeDevRequirements || empty($installed['versions'][$packageName]['dev_requirement']);
     101                return $includeDevRequirements || !isset($installed['versions'][$packageName]['dev_requirement']) || $installed['versions'][$packageName]['dev_requirement'] === false;
    102102            }
    103103        }
     
    120120    public static function satisfies(VersionParser $parser, $packageName, $constraint)
    121121    {
    122         $constraint = $parser->parseConstraints($constraint);
     122        $constraint = $parser->parseConstraints((string) $constraint);
    123123        $provided = $parser->parseConstraints(self::getVersionRanges($packageName));
    124124
     
    329329                    $installed[] = self::$installedByVendor[$vendorDir];
    330330                } elseif (is_file($vendorDir.'/composer/installed.php')) {
    331                     $installed[] = self::$installedByVendor[$vendorDir] = require $vendorDir.'/composer/installed.php';
     331                    /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */
     332                    $required = require $vendorDir.'/composer/installed.php';
     333                    $installed[] = self::$installedByVendor[$vendorDir] = $required;
    332334                    if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) {
    333335                        self::$installed = $installed[count($installed) - 1];
     
    341343            // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937
    342344            if (substr(__DIR__, -8, 1) !== 'C') {
    343                 self::$installed = require __DIR__ . '/installed.php';
     345                /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */
     346                $required = require __DIR__ . '/installed.php';
     347                self::$installed = $required;
    344348            } else {
    345349                self::$installed = array();
    346350            }
    347351        }
    348         $installed[] = self::$installed;
     352
     353        if (self::$installed !== array()) {
     354            $installed[] = self::$installed;
     355        }
    349356
    350357        return $installed;
  • zettle-pos-integration/trunk/vendor/composer/autoload_classmap.php

    r2880545 r2907067  
    284284    'Http\\Client\\Promise\\HttpRejectedPromise' => $vendorDir . '/php-http/httplug/src/Promise/HttpRejectedPromise.php',
    285285    'Http\\Discovery\\ClassDiscovery' => $vendorDir . '/php-http/discovery/src/ClassDiscovery.php',
    286     'Http\\Discovery\\Composer\\Plugin' => $vendorDir . '/php-http/discovery/src/Composer/Plugin.php',
    287286    'Http\\Discovery\\Exception' => $vendorDir . '/php-http/discovery/src/Exception.php',
    288287    'Http\\Discovery\\Exception\\ClassInstantiationFailedException' => $vendorDir . '/php-http/discovery/src/Exception/ClassInstantiationFailedException.php',
     
    298297    'Http\\Discovery\\Psr17Factory' => $vendorDir . '/php-http/discovery/src/Psr17Factory.php',
    299298    'Http\\Discovery\\Psr17FactoryDiscovery' => $vendorDir . '/php-http/discovery/src/Psr17FactoryDiscovery.php',
     299    'Http\\Discovery\\Psr18Client' => $vendorDir . '/php-http/discovery/src/Psr18Client.php',
    300300    'Http\\Discovery\\Psr18ClientDiscovery' => $vendorDir . '/php-http/discovery/src/Psr18ClientDiscovery.php',
    301301    'Http\\Discovery\\Strategy\\CommonClassesStrategy' => $vendorDir . '/php-http/discovery/src/Strategy/CommonClassesStrategy.php',
     
    10601060    'Nyholm\\Psr7\\ServerRequest' => $vendorDir . '/nyholm/psr7/src/ServerRequest.php',
    10611061    'Nyholm\\Psr7\\Stream' => $vendorDir . '/nyholm/psr7/src/Stream.php',
     1062    'Nyholm\\Psr7\\StreamTrait' => $vendorDir . '/nyholm/psr7/src/StreamTrait.php',
    10621063    'Nyholm\\Psr7\\UploadedFile' => $vendorDir . '/nyholm/psr7/src/UploadedFile.php',
    10631064    'Nyholm\\Psr7\\Uri' => $vendorDir . '/nyholm/psr7/src/Uri.php',
  • zettle-pos-integration/trunk/vendor/composer/autoload_real.php

    r2880545 r2907067  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInitc811a4d20b8f6333dee0e55f37a2534c
     5class ComposerAutoloaderInit1290e29297976b059974a78cf37636fe
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInitc811a4d20b8f6333dee0e55f37a2534c', 'loadClassLoader'), true, true);
     27        spl_autoload_register(array('ComposerAutoloaderInit1290e29297976b059974a78cf37636fe', 'loadClassLoader'), true, true);
    2828        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
    29         spl_autoload_unregister(array('ComposerAutoloaderInitc811a4d20b8f6333dee0e55f37a2534c', 'loadClassLoader'));
     29        spl_autoload_unregister(array('ComposerAutoloaderInit1290e29297976b059974a78cf37636fe', 'loadClassLoader'));
    3030
    3131        require __DIR__ . '/autoload_static.php';
    32         call_user_func(\Composer\Autoload\ComposerStaticInitc811a4d20b8f6333dee0e55f37a2534c::getInitializer($loader));
     32        call_user_func(\Composer\Autoload\ComposerStaticInit1290e29297976b059974a78cf37636fe::getInitializer($loader));
    3333
    3434        $loader->setClassMapAuthoritative(true);
    3535        $loader->register(true);
    3636
    37         $filesToLoad = \Composer\Autoload\ComposerStaticInitc811a4d20b8f6333dee0e55f37a2534c::$files;
     37        $filesToLoad = \Composer\Autoload\ComposerStaticInit1290e29297976b059974a78cf37636fe::$files;
    3838        $requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
    3939            if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
  • zettle-pos-integration/trunk/vendor/composer/autoload_static.php

    r2880545 r2907067  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInitc811a4d20b8f6333dee0e55f37a2534c
     7class ComposerStaticInit1290e29297976b059974a78cf37636fe
    88{
    99    public static $files = array (
     
    608608        'Http\\Client\\Promise\\HttpRejectedPromise' => __DIR__ . '/..' . '/php-http/httplug/src/Promise/HttpRejectedPromise.php',
    609609        'Http\\Discovery\\ClassDiscovery' => __DIR__ . '/..' . '/php-http/discovery/src/ClassDiscovery.php',
    610         'Http\\Discovery\\Composer\\Plugin' => __DIR__ . '/..' . '/php-http/discovery/src/Composer/Plugin.php',
    611610        'Http\\Discovery\\Exception' => __DIR__ . '/..' . '/php-http/discovery/src/Exception.php',
    612611        'Http\\Discovery\\Exception\\ClassInstantiationFailedException' => __DIR__ . '/..' . '/php-http/discovery/src/Exception/ClassInstantiationFailedException.php',
     
    622621        'Http\\Discovery\\Psr17Factory' => __DIR__ . '/..' . '/php-http/discovery/src/Psr17Factory.php',
    623622        'Http\\Discovery\\Psr17FactoryDiscovery' => __DIR__ . '/..' . '/php-http/discovery/src/Psr17FactoryDiscovery.php',
     623        'Http\\Discovery\\Psr18Client' => __DIR__ . '/..' . '/php-http/discovery/src/Psr18Client.php',
    624624        'Http\\Discovery\\Psr18ClientDiscovery' => __DIR__ . '/..' . '/php-http/discovery/src/Psr18ClientDiscovery.php',
    625625        'Http\\Discovery\\Strategy\\CommonClassesStrategy' => __DIR__ . '/..' . '/php-http/discovery/src/Strategy/CommonClassesStrategy.php',
     
    13841384        'Nyholm\\Psr7\\ServerRequest' => __DIR__ . '/..' . '/nyholm/psr7/src/ServerRequest.php',
    13851385        'Nyholm\\Psr7\\Stream' => __DIR__ . '/..' . '/nyholm/psr7/src/Stream.php',
     1386        'Nyholm\\Psr7\\StreamTrait' => __DIR__ . '/..' . '/nyholm/psr7/src/StreamTrait.php',
    13861387        'Nyholm\\Psr7\\UploadedFile' => __DIR__ . '/..' . '/nyholm/psr7/src/UploadedFile.php',
    13871388        'Nyholm\\Psr7\\Uri' => __DIR__ . '/..' . '/nyholm/psr7/src/Uri.php',
     
    14681469    {
    14691470        return \Closure::bind(function () use ($loader) {
    1470             $loader->prefixLengthsPsr4 = ComposerStaticInitc811a4d20b8f6333dee0e55f37a2534c::$prefixLengthsPsr4;
    1471             $loader->prefixDirsPsr4 = ComposerStaticInitc811a4d20b8f6333dee0e55f37a2534c::$prefixDirsPsr4;
    1472             $loader->classMap = ComposerStaticInitc811a4d20b8f6333dee0e55f37a2534c::$classMap;
     1471            $loader->prefixLengthsPsr4 = ComposerStaticInit1290e29297976b059974a78cf37636fe::$prefixLengthsPsr4;
     1472            $loader->prefixDirsPsr4 = ComposerStaticInit1290e29297976b059974a78cf37636fe::$prefixDirsPsr4;
     1473            $loader->classMap = ComposerStaticInit1290e29297976b059974a78cf37636fe::$classMap;
    14731474
    14741475        }, null, ClassLoader::class);
  • zettle-pos-integration/trunk/vendor/composer/installed.json

    r2880545 r2907067  
    896896        {
    897897            "name": "inpsyde/inpsyde-debug",
    898             "version": "1.5.5",
    899             "version_normalized": "1.5.5.0",
     898            "version": "dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28",
     899            "version_normalized": "dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28",
    900900            "dist": {
    901901                "type": "path",
    902902                "url": "modules.local/inpsyde-debug",
    903                 "reference": "f0fe81fd742169fa7dd2b73b0388fae8a73f7ddf"
     903                "reference": "96d2861520a55393189668498d76c107624b5409"
    904904            },
    905905            "require": {
    906906                "dhii/module-interface": "^0.2 || ^0.3",
    907907                "ext-json": "*",
     908                "php": "^7.2 | ^8.0",
    908909                "psr/log": "^1.1"
    909910            },
     
    932933        {
    933934            "name": "inpsyde/inpsyde-http-client",
    934             "version": "1.5.5",
    935             "version_normalized": "1.5.5.0",
     935            "version": "dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28",
     936            "version_normalized": "dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28",
    936937            "dist": {
    937938                "type": "path",
     
    961962        {
    962963            "name": "inpsyde/inpsyde-queue",
    963             "version": "1.5.5",
    964             "version_normalized": "1.5.5.0",
     964            "version": "dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28",
     965            "version_normalized": "dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28",
    965966            "dist": {
    966967                "type": "path",
     
    998999        {
    9991000            "name": "inpsyde/inpsyde-state-machine",
    1000             "version": "1.5.5",
    1001             "version_normalized": "1.5.5.0",
     1001            "version": "dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28",
     1002            "version_normalized": "dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28",
    10021003            "dist": {
    10031004                "type": "path",
     
    10341035        {
    10351036            "name": "inpsyde/inpsyde-woocommerce-lifecycle-events",
    1036             "version": "1.5.5",
    1037             "version_normalized": "1.5.5.0",
     1037            "version": "dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28",
     1038            "version_normalized": "dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28",
    10381039            "dist": {
    10391040                "type": "path",
     
    12201221        {
    12211222            "name": "inpsyde/wc-product-contracts",
    1222             "version": "1.5.5",
    1223             "version_normalized": "1.5.5.0",
     1223            "version": "dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28",
     1224            "version_normalized": "dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28",
    12241225            "dist": {
    12251226                "type": "path",
     
    12541255        {
    12551256            "name": "inpsyde/wc-status-report",
    1256             "version": "1.5.5",
    1257             "version_normalized": "1.5.5.0",
     1257            "version": "dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28",
     1258            "version_normalized": "dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28",
    12581259            "dist": {
    12591260                "type": "path",
     
    13571358        {
    13581359            "name": "inpsyde/zettle-assets",
    1359             "version": "1.5.5",
    1360             "version_normalized": "1.5.5.0",
     1360            "version": "dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28",
     1361            "version_normalized": "dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28",
    13611362            "dist": {
    13621363                "type": "path",
     
    13821383        {
    13831384            "name": "inpsyde/zettle-auth",
    1384             "version": "1.5.5",
    1385             "version_normalized": "1.5.5.0",
     1385            "version": "dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28",
     1386            "version_normalized": "dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28",
    13861387            "dist": {
    13871388                "type": "path",
     
    14121413        {
    14131414            "name": "inpsyde/zettle-logging",
    1414             "version": "1.5.5",
    1415             "version_normalized": "1.5.5.0",
     1415            "version": "dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28",
     1416            "version_normalized": "dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28",
    14161417            "dist": {
    14171418                "type": "path",
     
    14511452        {
    14521453            "name": "inpsyde/zettle-notices",
    1453             "version": "1.5.5",
    1454             "version_normalized": "1.5.5.0",
     1454            "version": "dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28",
     1455            "version_normalized": "dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28",
    14551456            "dist": {
    14561457                "type": "path",
     
    14751476        {
    14761477            "name": "inpsyde/zettle-onboarding",
    1477             "version": "1.5.5",
    1478             "version_normalized": "1.5.5.0",
     1478            "version": "dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28",
     1479            "version_normalized": "dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28",
    14791480            "dist": {
    14801481                "type": "path",
     
    15131514        {
    15141515            "name": "inpsyde/zettle-php-sdk",
    1515             "version": "1.5.5",
    1516             "version_normalized": "1.5.5.0",
     1516            "version": "dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28",
     1517            "version_normalized": "dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28",
    15171518            "dist": {
    15181519                "type": "path",
     
    15551556        {
    15561557            "name": "inpsyde/zettle-product-debug",
    1557             "version": "1.5.5",
    1558             "version_normalized": "1.5.5.0",
     1558            "version": "dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28",
     1559            "version_normalized": "dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28",
    15591560            "dist": {
    15601561                "type": "path",
     
    15791580        {
    15801581            "name": "inpsyde/zettle-product-settings",
    1581             "version": "1.5.5",
    1582             "version_normalized": "1.5.5.0",
     1582            "version": "dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28",
     1583            "version_normalized": "dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28",
    15831584            "dist": {
    15841585                "type": "path",
     
    16041605        {
    16051606            "name": "inpsyde/zettle-queue",
    1606             "version": "1.5.5",
    1607             "version_normalized": "1.5.5.0",
     1607            "version": "dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28",
     1608            "version_normalized": "dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28",
    16081609            "dist": {
    16091610                "type": "path",
     
    16291630        {
    16301631            "name": "inpsyde/zettle-settings",
    1631             "version": "1.5.5",
    1632             "version_normalized": "1.5.5.0",
     1632            "version": "dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28",
     1633            "version_normalized": "dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28",
    16331634            "dist": {
    16341635                "type": "path",
     
    16531654        {
    16541655            "name": "inpsyde/zettle-sync",
    1655             "version": "1.5.5",
    1656             "version_normalized": "1.5.5.0",
     1656            "version": "dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28",
     1657            "version_normalized": "dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28",
    16571658            "dist": {
    16581659                "type": "path",
     
    16781679        {
    16791680            "name": "inpsyde/zettle-webhooks",
    1680             "version": "1.5.5",
    1681             "version_normalized": "1.5.5.0",
     1681            "version": "dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28",
     1682            "version_normalized": "dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28",
    16821683            "dist": {
    16831684                "type": "path",
    16841685                "url": "modules.local/zettle-webhooks",
    1685                 "reference": "2cb7d964a5540690ff603f4a699cb54ddd476e02"
     1686                "reference": "4cfb727b02e50c33823faa8f83c2095cdcf6c834"
    16861687            },
    16871688            "require": {
     
    17151716        {
    17161717            "name": "nyholm/psr7",
    1717             "version": "1.5.1",
    1718             "version_normalized": "1.5.1.0",
     1718            "version": "1.8.0",
     1719            "version_normalized": "1.8.0.0",
    17191720            "source": {
    17201721                "type": "git",
    17211722                "url": "https://github.com/Nyholm/psr7.git",
    1722                 "reference": "f734364e38a876a23be4d906a2a089e1315be18a"
    1723             },
    1724             "dist": {
    1725                 "type": "zip",
    1726                 "url": "https://api.github.com/repos/Nyholm/psr7/zipball/f734364e38a876a23be4d906a2a089e1315be18a",
    1727                 "reference": "f734364e38a876a23be4d906a2a089e1315be18a",
    1728                 "shasum": "",
    1729                 "mirrors": [
    1730                     {
    1731                         "url": "https://repo.packagist.com/inpsyde/izettle/dists/%package%/%version%/r%reference%.%type%",
    1732                         "preferred": true
    1733                     }
    1734                 ]
    1735             },
    1736             "require": {
    1737                 "php": ">=7.1",
    1738                 "php-http/message-factory": "^1.0",
     1723                "reference": "3cb4d163b58589e47b35103e8e5e6a6a475b47be"
     1724            },
     1725            "dist": {
     1726                "type": "zip",
     1727                "url": "https://api.github.com/repos/Nyholm/psr7/zipball/3cb4d163b58589e47b35103e8e5e6a6a475b47be",
     1728                "reference": "3cb4d163b58589e47b35103e8e5e6a6a475b47be",
     1729                "shasum": "",
     1730                "mirrors": [
     1731                    {
     1732                        "url": "https://repo.packagist.com/inpsyde/izettle/dists/%package%/%version%/r%reference%.%type%",
     1733                        "preferred": true
     1734                    }
     1735                ]
     1736            },
     1737            "require": {
     1738                "php": ">=7.2",
    17391739                "psr/http-factory": "^1.0",
    1740                 "psr/http-message": "^1.0"
     1740                "psr/http-message": "^1.1 || ^2.0"
    17411741            },
    17421742            "provide": {
     1743                "php-http/message-factory-implementation": "1.0",
    17431744                "psr/http-factory-implementation": "1.0",
    17441745                "psr/http-message-implementation": "1.0"
     
    17461747            "require-dev": {
    17471748                "http-interop/http-factory-tests": "^0.9",
     1749                "php-http/message-factory": "^1.0",
    17481750                "php-http/psr7-integration-tests": "^1.0",
    1749                 "phpunit/phpunit": "^7.5 || 8.5 || 9.4",
     1751                "phpunit/phpunit": "^7.5 || ^8.5 || ^9.4",
    17501752                "symfony/error-handler": "^4.4"
    17511753            },
    1752             "time": "2022-06-22T07:13:36+00:00",
     1754            "time": "2023-05-02T11:26:24+00:00",
    17531755            "type": "library",
    17541756            "extra": {
    17551757                "branch-alias": {
    1756                     "dev-master": "1.4-dev"
     1758                    "dev-master": "1.8-dev"
    17571759                }
    17581760            },
     
    17851787            "support": {
    17861788                "issues": "https://github.com/Nyholm/psr7/issues",
    1787                 "source": "https://github.com/Nyholm/psr7/tree/1.5.1"
     1789                "source": "https://github.com/Nyholm/psr7/tree/1.8.0"
    17881790            },
    17891791            "funding": [
     
    18671869        {
    18681870            "name": "php-http/client-common",
    1869             "version": "2.6.0",
    1870             "version_normalized": "2.6.0.0",
     1871            "version": "2.6.1",
     1872            "version_normalized": "2.6.1.0",
    18711873            "source": {
    18721874                "type": "git",
    18731875                "url": "https://github.com/php-http/client-common.git",
    1874                 "reference": "45db684cd4e186dcdc2b9c06b22970fe123796c0"
    1875             },
    1876             "dist": {
    1877                 "type": "zip",
    1878                 "url": "https://api.github.com/repos/php-http/client-common/zipball/45db684cd4e186dcdc2b9c06b22970fe123796c0",
    1879                 "reference": "45db684cd4e186dcdc2b9c06b22970fe123796c0",
     1876                "reference": "665bfc381bb910385f70391ed3eeefd0b7bbdd0d"
     1877            },
     1878            "dist": {
     1879                "type": "zip",
     1880                "url": "https://api.github.com/repos/php-http/client-common/zipball/665bfc381bb910385f70391ed3eeefd0b7bbdd0d",
     1881                "reference": "665bfc381bb910385f70391ed3eeefd0b7bbdd0d",
    18801882                "shasum": "",
    18811883                "mirrors": [
     
    18931895                "psr/http-client": "^1.0",
    18941896                "psr/http-factory": "^1.0",
    1895                 "psr/http-message": "^1.0",
     1897                "psr/http-message": "^1.0 || ^2.0",
    18961898                "symfony/options-resolver": "~4.0.15 || ~4.1.9 || ^4.2.1 || ^5.0 || ^6.0",
    18971899                "symfony/polyfill-php80": "^1.17"
     
    19031905                "phpspec/phpspec": "^5.1 || ^6.3 || ^7.1",
    19041906                "phpspec/prophecy": "^1.10.2",
    1905                 "phpunit/phpunit": "^7.5.15 || ^8.5 || ^9.3"
     1907                "phpunit/phpunit": "^7.5.20 || ^8.5.33 || ^9.6.7"
    19061908            },
    19071909            "suggest": {
     
    19121914                "php-http/stopwatch-plugin": "Symfony Stopwatch plugin"
    19131915            },
    1914             "time": "2022-09-29T09:59:43+00:00",
     1916            "time": "2023-04-14T13:30:08+00:00",
    19151917            "type": "library",
    1916             "extra": {
    1917                 "branch-alias": {
    1918                     "dev-master": "2.3.x-dev"
    1919                 }
    1920             },
    19211918            "installation-source": "dist",
    19221919            "autoload": {
     
    19451942            "support": {
    19461943                "issues": "https://github.com/php-http/client-common/issues",
    1947                 "source": "https://github.com/php-http/client-common/tree/2.6.0"
     1944                "source": "https://github.com/php-http/client-common/tree/2.6.1"
    19481945            },
    19491946            "install-path": "../php-http/client-common"
     
    19511948        {
    19521949            "name": "php-http/curl-client",
    1953             "version": "2.2.1",
    1954             "version_normalized": "2.2.1.0",
     1950            "version": "2.3.0",
     1951            "version_normalized": "2.3.0.0",
    19551952            "source": {
    19561953                "type": "git",
    19571954                "url": "https://github.com/php-http/curl-client.git",
    1958                 "reference": "2ed4245a817d859dd0c1d51c7078cdb343cf5233"
    1959             },
    1960             "dist": {
    1961                 "type": "zip",
    1962                 "url": "https://api.github.com/repos/php-http/curl-client/zipball/2ed4245a817d859dd0c1d51c7078cdb343cf5233",
    1963                 "reference": "2ed4245a817d859dd0c1d51c7078cdb343cf5233",
     1955                "reference": "f7352c0796549949900d28fe991e19c90572386a"
     1956            },
     1957            "dist": {
     1958                "type": "zip",
     1959                "url": "https://api.github.com/repos/php-http/curl-client/zipball/f7352c0796549949900d28fe991e19c90572386a",
     1960                "reference": "f7352c0796549949900d28fe991e19c90572386a",
    19641961                "shasum": "",
    19651962                "mirrors": [
     
    19771974                "php-http/message": "^1.2",
    19781975                "psr/http-client": "^1.0",
    1979                 "psr/http-factory": "^1.0",
     1976                "psr/http-factory-implementation": "^1.0",
    19801977                "symfony/options-resolver": "^3.4 || ^4.0 || ^5.0 || ^6.0"
    19811978            },
     
    19911988                "phpunit/phpunit": "^7.5 || ^9.4"
    19921989            },
    1993             "time": "2021-12-10T18:02:07+00:00",
     1990            "time": "2023-04-28T14:56:41+00:00",
    19941991            "type": "library",
    1995             "extra": {
    1996                 "branch-alias": {
    1997                     "dev-master": "2.x-dev"
    1998                 }
    1999             },
    20001992            "installation-source": "dist",
    20011993            "autoload": {
     
    20232015            "support": {
    20242016                "issues": "https://github.com/php-http/curl-client/issues",
    2025                 "source": "https://github.com/php-http/curl-client/tree/2.2.1"
     2017                "source": "https://github.com/php-http/curl-client/tree/2.3.0"
    20262018            },
    20272019            "install-path": "../php-http/curl-client"
     
    20292021        {
    20302022            "name": "php-http/discovery",
    2031             "version": "1.15.2",
    2032             "version_normalized": "1.15.2.0",
     2023            "version": "1.17.0",
     2024            "version_normalized": "1.17.0.0",
    20332025            "source": {
    20342026                "type": "git",
    20352027                "url": "https://github.com/php-http/discovery.git",
    2036                 "reference": "5cc428320191ac1d0b6520034c2dc0698628ced5"
    2037             },
    2038             "dist": {
    2039                 "type": "zip",
    2040                 "url": "https://api.github.com/repos/php-http/discovery/zipball/5cc428320191ac1d0b6520034c2dc0698628ced5",
    2041                 "reference": "5cc428320191ac1d0b6520034c2dc0698628ced5",
     2028                "reference": "bd810d15957cf165230e65d9e1a130793265e3b7"
     2029            },
     2030            "dist": {
     2031                "type": "zip",
     2032                "url": "https://api.github.com/repos/php-http/discovery/zipball/bd810d15957cf165230e65d9e1a130793265e3b7",
     2033                "reference": "bd810d15957cf165230e65d9e1a130793265e3b7",
    20422034                "shasum": "",
    20432035                "mirrors": [
     
    20532045            },
    20542046            "conflict": {
    2055                 "nyholm/psr7": "<1.0"
     2047                "nyholm/psr7": "<1.0",
     2048                "zendframework/zend-diactoros": "*"
    20562049            },
    20572050            "provide": {
     
    20702063                "symfony/phpunit-bridge": "^6.2"
    20712064            },
    2072             "time": "2023-02-11T08:28:41+00:00",
     2065            "time": "2023-04-26T15:39:13+00:00",
    20732066            "type": "composer-plugin",
    20742067            "extra": {
     
    20802073                "psr-4": {
    20812074                    "Http\\Discovery\\": "src/"
    2082                 }
     2075                },
     2076                "exclude-from-classmap": [
     2077                    "src/Composer/Plugin.php"
     2078                ]
    20832079            },
    20842080            "notification-url": "https://repo.packagist.com/inpsyde/izettle/downloads/",
     
    21062102            "support": {
    21072103                "issues": "https://github.com/php-http/discovery/issues",
    2108                 "source": "https://github.com/php-http/discovery/tree/1.15.2"
     2104                "source": "https://github.com/php-http/discovery/tree/1.17.0"
    21092105            },
    21102106            "install-path": "../php-http/discovery"
     
    21122108        {
    21132109            "name": "php-http/httplug",
    2114             "version": "2.3.0",
    2115             "version_normalized": "2.3.0.0",
     2110            "version": "2.4.0",
     2111            "version_normalized": "2.4.0.0",
    21162112            "source": {
    21172113                "type": "git",
    21182114                "url": "https://github.com/php-http/httplug.git",
    2119                 "reference": "f640739f80dfa1152533976e3c112477f69274eb"
    2120             },
    2121             "dist": {
    2122                 "type": "zip",
    2123                 "url": "https://api.github.com/repos/php-http/httplug/zipball/f640739f80dfa1152533976e3c112477f69274eb",
    2124                 "reference": "f640739f80dfa1152533976e3c112477f69274eb",
     2115                "reference": "625ad742c360c8ac580fcc647a1541d29e257f67"
     2116            },
     2117            "dist": {
     2118                "type": "zip",
     2119                "url": "https://api.github.com/repos/php-http/httplug/zipball/625ad742c360c8ac580fcc647a1541d29e257f67",
     2120                "reference": "625ad742c360c8ac580fcc647a1541d29e257f67",
    21252121                "shasum": "",
    21262122                "mirrors": [
     
    21352131                "php-http/promise": "^1.1",
    21362132                "psr/http-client": "^1.0",
    2137                 "psr/http-message": "^1.0"
    2138             },
    2139             "require-dev": {
    2140                 "friends-of-phpspec/phpspec-code-coverage": "^4.1",
    2141                 "phpspec/phpspec": "^5.1 || ^6.0"
    2142             },
    2143             "time": "2022-02-21T09:52:22+00:00",
     2133                "psr/http-message": "^1.0 || ^2.0"
     2134            },
     2135            "require-dev": {
     2136                "friends-of-phpspec/phpspec-code-coverage": "^4.1 || ^5.0 || ^6.0",
     2137                "phpspec/phpspec": "^5.1 || ^6.0 || ^7.0"
     2138            },
     2139            "time": "2023-04-14T15:10:03+00:00",
    21442140            "type": "library",
    2145             "extra": {
    2146                 "branch-alias": {
    2147                     "dev-master": "2.x-dev"
    2148                 }
    2149             },
    21502141            "installation-source": "dist",
    21512142            "autoload": {
     
    21772168            "support": {
    21782169                "issues": "https://github.com/php-http/httplug/issues",
    2179                 "source": "https://github.com/php-http/httplug/tree/2.3.0"
     2170                "source": "https://github.com/php-http/httplug/tree/2.4.0"
    21802171            },
    21812172            "install-path": "../php-http/httplug"
     
    21832174        {
    21842175            "name": "php-http/message",
    2185             "version": "1.13.0",
    2186             "version_normalized": "1.13.0.0",
     2176            "version": "1.14.0",
     2177            "version_normalized": "1.14.0.0",
    21872178            "source": {
    21882179                "type": "git",
    21892180                "url": "https://github.com/php-http/message.git",
    2190                 "reference": "7886e647a30a966a1a8d1dad1845b71ca8678361"
    2191             },
    2192             "dist": {
    2193                 "type": "zip",
    2194                 "url": "https://api.github.com/repos/php-http/message/zipball/7886e647a30a966a1a8d1dad1845b71ca8678361",
    2195                 "reference": "7886e647a30a966a1a8d1dad1845b71ca8678361",
     2181                "reference": "2ccee04a28c3d98eb3f2b85ce1e2fcff70c0e63b"
     2182            },
     2183            "dist": {
     2184                "type": "zip",
     2185                "url": "https://api.github.com/repos/php-http/message/zipball/2ccee04a28c3d98eb3f2b85ce1e2fcff70c0e63b",
     2186                "reference": "2ccee04a28c3d98eb3f2b85ce1e2fcff70c0e63b",
    21962187                "shasum": "",
    21972188                "mirrors": [
     
    22062197                "php": "^7.1 || ^8.0",
    22072198                "php-http/message-factory": "^1.0.2",
    2208                 "psr/http-message": "^1.0"
     2199                "psr/http-message": "^1.0 || ^2.0"
    22092200            },
    22102201            "provide": {
     
    22252216                "slim/slim": "Used with Slim Framework PSR-7 implementation"
    22262217            },
    2227             "time": "2022-02-11T13:41:14+00:00",
     2218            "time": "2023-04-14T14:26:18+00:00",
    22282219            "type": "library",
    2229             "extra": {
    2230                 "branch-alias": {
    2231                     "dev-master": "1.10-dev"
    2232                 }
    2233             },
    22342220            "installation-source": "dist",
    22352221            "autoload": {
     
    22602246            "support": {
    22612247                "issues": "https://github.com/php-http/message/issues",
    2262                 "source": "https://github.com/php-http/message/tree/1.13.0"
     2248                "source": "https://github.com/php-http/message/tree/1.14.0"
    22632249            },
    22642250            "install-path": "../php-http/message"
     
    22662252        {
    22672253            "name": "php-http/message-factory",
    2268             "version": "v1.0.2",
    2269             "version_normalized": "1.0.2.0",
     2254            "version": "1.1.0",
     2255            "version_normalized": "1.1.0.0",
    22702256            "source": {
    22712257                "type": "git",
    22722258                "url": "https://github.com/php-http/message-factory.git",
    2273                 "reference": "a478cb11f66a6ac48d8954216cfed9aa06a501a1"
    2274             },
    2275             "dist": {
    2276                 "type": "zip",
    2277                 "url": "https://api.github.com/repos/php-http/message-factory/zipball/a478cb11f66a6ac48d8954216cfed9aa06a501a1",
    2278                 "reference": "a478cb11f66a6ac48d8954216cfed9aa06a501a1",
     2259                "reference": "4d8778e1c7d405cbb471574821c1ff5b68cc8f57"
     2260            },
     2261            "dist": {
     2262                "type": "zip",
     2263                "url": "https://api.github.com/repos/php-http/message-factory/zipball/4d8778e1c7d405cbb471574821c1ff5b68cc8f57",
     2264                "reference": "4d8778e1c7d405cbb471574821c1ff5b68cc8f57",
    22792265                "shasum": "",
    22802266                "mirrors": [
     
    22872273            "require": {
    22882274                "php": ">=5.4",
    2289                 "psr/http-message": "^1.0"
    2290             },
    2291             "time": "2015-12-19T14:08:53+00:00",
     2275                "psr/http-message": "^1.0 || ^2.0"
     2276            },
     2277            "time": "2023-04-14T14:16:17+00:00",
    22922278            "type": "library",
    22932279            "extra": {
    22942280                "branch-alias": {
    2295                     "dev-master": "1.0-dev"
     2281                    "dev-master": "1.x-dev"
    22962282                }
    22972283            },
     
    23212307                "uri"
    23222308            ],
     2309            "support": {
     2310                "issues": "https://github.com/php-http/message-factory/issues",
     2311                "source": "https://github.com/php-http/message-factory/tree/1.1.0"
     2312            },
    23232313            "install-path": "../php-http/message-factory"
    23242314        },
     
    24442434        {
    24452435            "name": "psr/http-client",
    2446             "version": "1.0.1",
    2447             "version_normalized": "1.0.1.0",
     2436            "version": "1.0.2",
     2437            "version_normalized": "1.0.2.0",
    24482438            "source": {
    24492439                "type": "git",
    24502440                "url": "https://github.com/php-fig/http-client.git",
    2451                 "reference": "2dfb5f6c5eff0e91e20e913f8c5452ed95b86621"
    2452             },
    2453             "dist": {
    2454                 "type": "zip",
    2455                 "url": "https://api.github.com/repos/php-fig/http-client/zipball/2dfb5f6c5eff0e91e20e913f8c5452ed95b86621",
    2456                 "reference": "2dfb5f6c5eff0e91e20e913f8c5452ed95b86621",
     2441                "reference": "0955afe48220520692d2d09f7ab7e0f93ffd6a31"
     2442            },
     2443            "dist": {
     2444                "type": "zip",
     2445                "url": "https://api.github.com/repos/php-fig/http-client/zipball/0955afe48220520692d2d09f7ab7e0f93ffd6a31",
     2446                "reference": "0955afe48220520692d2d09f7ab7e0f93ffd6a31",
    24572447                "shasum": "",
    24582448                "mirrors": [
     
    24652455            "require": {
    24662456                "php": "^7.0 || ^8.0",
    2467                 "psr/http-message": "^1.0"
    2468             },
    2469             "time": "2020-06-29T06:28:15+00:00",
     2457                "psr/http-message": "^1.0 || ^2.0"
     2458            },
     2459            "time": "2023-04-10T20:12:12+00:00",
    24702460            "type": "library",
    24712461            "extra": {
     
    24872477                {
    24882478                    "name": "PHP-FIG",
    2489                     "homepage": "http://www.php-fig.org/"
     2479                    "homepage": "https://www.php-fig.org/"
    24902480                }
    24912481            ],
     
    24982488                "psr-18"
    24992489            ],
     2490            "support": {
     2491                "source": "https://github.com/php-fig/http-client/tree/1.0.2"
     2492            },
    25002493            "install-path": "../psr/http-client"
    25012494        },
    25022495        {
    25032496            "name": "psr/http-factory",
    2504             "version": "1.0.1",
    2505             "version_normalized": "1.0.1.0",
     2497            "version": "1.0.2",
     2498            "version_normalized": "1.0.2.0",
    25062499            "source": {
    25072500                "type": "git",
    25082501                "url": "https://github.com/php-fig/http-factory.git",
    2509                 "reference": "12ac7fcd07e5b077433f5f2bee95b3a771bf61be"
    2510             },
    2511             "dist": {
    2512                 "type": "zip",
    2513                 "url": "https://api.github.com/repos/php-fig/http-factory/zipball/12ac7fcd07e5b077433f5f2bee95b3a771bf61be",
    2514                 "reference": "12ac7fcd07e5b077433f5f2bee95b3a771bf61be",
     2502                "reference": "e616d01114759c4c489f93b099585439f795fe35"
     2503            },
     2504            "dist": {
     2505                "type": "zip",
     2506                "url": "https://api.github.com/repos/php-fig/http-factory/zipball/e616d01114759c4c489f93b099585439f795fe35",
     2507                "reference": "e616d01114759c4c489f93b099585439f795fe35",
    25152508                "shasum": "",
    25162509                "mirrors": [
     
    25232516            "require": {
    25242517                "php": ">=7.0.0",
    2525                 "psr/http-message": "^1.0"
    2526             },
    2527             "time": "2019-04-30T12:38:16+00:00",
     2518                "psr/http-message": "^1.0 || ^2.0"
     2519            },
     2520            "time": "2023-04-10T20:10:41+00:00",
    25282521            "type": "library",
    25292522            "extra": {
     
    25452538                {
    25462539                    "name": "PHP-FIG",
    2547                     "homepage": "http://www.php-fig.org/"
     2540                    "homepage": "https://www.php-fig.org/"
    25482541                }
    25492542            ],
     
    25592552                "response"
    25602553            ],
     2554            "support": {
     2555                "source": "https://github.com/php-fig/http-factory/tree/1.0.2"
     2556            },
    25612557            "install-path": "../psr/http-factory"
    25622558        },
    25632559        {
    25642560            "name": "psr/http-message",
    2565             "version": "1.0.1",
    2566             "version_normalized": "1.0.1.0",
     2561            "version": "1.1",
     2562            "version_normalized": "1.1.0.0",
    25672563            "source": {
    25682564                "type": "git",
    25692565                "url": "https://github.com/php-fig/http-message.git",
    2570                 "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363"
    2571             },
    2572             "dist": {
    2573                 "type": "zip",
    2574                 "url": "https://api.github.com/repos/php-fig/http-message/zipball/f6561bf28d520154e4b0ec72be95418abe6d9363",
    2575                 "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363",
    2576                 "shasum": "",
    2577                 "mirrors": [
    2578                     {
    2579                         "url": "https://repo.packagist.com/inpsyde/izettle/dists/%package%/%version%/r%reference%.%type%",
    2580                         "preferred": true
    2581                     }
    2582                 ]
    2583             },
    2584             "require": {
    2585                 "php": ">=5.3.0"
    2586             },
    2587             "time": "2016-08-06T14:39:51+00:00",
     2566                "reference": "cb6ce4845ce34a8ad9e68117c10ee90a29919eba"
     2567            },
     2568            "dist": {
     2569                "type": "zip",
     2570                "url": "https://api.github.com/repos/php-fig/http-message/zipball/cb6ce4845ce34a8ad9e68117c10ee90a29919eba",
     2571                "reference": "cb6ce4845ce34a8ad9e68117c10ee90a29919eba",
     2572                "shasum": "",
     2573                "mirrors": [
     2574                    {
     2575                        "url": "https://repo.packagist.com/inpsyde/izettle/dists/%package%/%version%/r%reference%.%type%",
     2576                        "preferred": true
     2577                    }
     2578                ]
     2579            },
     2580            "require": {
     2581                "php": "^7.2 || ^8.0"
     2582            },
     2583            "time": "2023-04-04T09:50:52+00:00",
    25882584            "type": "library",
    25892585            "extra": {
    25902586                "branch-alias": {
    2591                     "dev-master": "1.0.x-dev"
     2587                    "dev-master": "1.1.x-dev"
    25922588                }
    25932589            },
     
    26182614                "response"
    26192615            ],
     2616            "support": {
     2617                "source": "https://github.com/php-fig/http-message/tree/1.1"
     2618            },
    26202619            "install-path": "../psr/http-message"
    26212620        },
  • zettle-pos-integration/trunk/vendor/composer/installed.php

    r2880545 r2907067  
    22    'root' => array(
    33        'name' => 'inpsyde/zettle-pos-integration',
    4         'pretty_version' => '1.5.5',
    5         'version' => '1.5.5.0',
    6         'reference' => '70548f1cea867f5a95dfbffe63ec3dc180f94505',
     4        'pretty_version' => 'dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28',
     5        'version' => 'dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28',
     6        'reference' => '29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    122122        ),
    123123        'inpsyde/inpsyde-debug' => array(
    124             'pretty_version' => '1.5.5',
    125             'version' => '1.5.5.0',
    126             'reference' => 'f0fe81fd742169fa7dd2b73b0388fae8a73f7ddf',
     124            'pretty_version' => 'dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28',
     125            'version' => 'dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28',
     126            'reference' => '96d2861520a55393189668498d76c107624b5409',
    127127            'type' => 'inpsyde-module',
    128128            'install_path' => __DIR__ . '/../../modules/inpsyde-debug',
     
    131131        ),
    132132        'inpsyde/inpsyde-http-client' => array(
    133             'pretty_version' => '1.5.5',
    134             'version' => '1.5.5.0',
     133            'pretty_version' => 'dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28',
     134            'version' => 'dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28',
    135135            'reference' => '2f02780aeb64d9e1314d809964557f720a886353',
    136136            'type' => 'inpsyde-module',
     
    140140        ),
    141141        'inpsyde/inpsyde-queue' => array(
    142             'pretty_version' => '1.5.5',
    143             'version' => '1.5.5.0',
     142            'pretty_version' => 'dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28',
     143            'version' => 'dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28',
    144144            'reference' => 'd7ca097b86c6bf3e84f27897823bcf65ce9a4de2',
    145145            'type' => 'inpsyde-module',
     
    149149        ),
    150150        'inpsyde/inpsyde-state-machine' => array(
    151             'pretty_version' => '1.5.5',
    152             'version' => '1.5.5.0',
     151            'pretty_version' => 'dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28',
     152            'version' => 'dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28',
    153153            'reference' => '8c1625fb30f5fdbef18aabc650213c7115171ecc',
    154154            'type' => 'inpsyde-module',
     
    158158        ),
    159159        'inpsyde/inpsyde-woocommerce-lifecycle-events' => array(
    160             'pretty_version' => '1.5.5',
    161             'version' => '1.5.5.0',
     160            'pretty_version' => 'dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28',
     161            'version' => 'dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28',
    162162            'reference' => '48e5c42d626506c65b4eee7c0d1e84bc7c72a8b4',
    163163            'type' => 'inpsyde-module',
     
    185185        ),
    186186        'inpsyde/wc-product-contracts' => array(
    187             'pretty_version' => '1.5.5',
    188             'version' => '1.5.5.0',
     187            'pretty_version' => 'dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28',
     188            'version' => 'dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28',
    189189            'reference' => '0e7c3cdfa343e842cd8ca39c8a36253dd6f39d7c',
    190190            'type' => 'package',
     
    194194        ),
    195195        'inpsyde/wc-status-report' => array(
    196             'pretty_version' => '1.5.5',
    197             'version' => '1.5.5.0',
     196            'pretty_version' => 'dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28',
     197            'version' => 'dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28',
    198198            'reference' => '22bd64c5aef17fc0a560025e051bd2286232fd2b',
    199199            'type' => 'inpsyde-module',
     
    212212        ),
    213213        'inpsyde/zettle-assets' => array(
    214             'pretty_version' => '1.5.5',
    215             'version' => '1.5.5.0',
     214            'pretty_version' => 'dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28',
     215            'version' => 'dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28',
    216216            'reference' => '11403330a93a7ea1a037ec19ec590ff243ba207e',
    217217            'type' => 'inpsyde-module',
     
    221221        ),
    222222        'inpsyde/zettle-auth' => array(
    223             'pretty_version' => '1.5.5',
    224             'version' => '1.5.5.0',
     223            'pretty_version' => 'dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28',
     224            'version' => 'dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28',
    225225            'reference' => 'feea57bf2224d458f67a781d447b8e7273f8d5c6',
    226226            'type' => 'inpsyde-module',
     
    230230        ),
    231231        'inpsyde/zettle-logging' => array(
    232             'pretty_version' => '1.5.5',
    233             'version' => '1.5.5.0',
     232            'pretty_version' => 'dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28',
     233            'version' => 'dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28',
    234234            'reference' => '653ce3f20d4ee79d42142daa790cc16775ce7cc4',
    235235            'type' => 'inpsyde-module',
     
    239239        ),
    240240        'inpsyde/zettle-notices' => array(
    241             'pretty_version' => '1.5.5',
    242             'version' => '1.5.5.0',
     241            'pretty_version' => 'dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28',
     242            'version' => 'dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28',
    243243            'reference' => '1e0c8c3f511cb369f18831db6dab6def7b75b75c',
    244244            'type' => 'inpsyde-module',
     
    248248        ),
    249249        'inpsyde/zettle-onboarding' => array(
    250             'pretty_version' => '1.5.5',
    251             'version' => '1.5.5.0',
     250            'pretty_version' => 'dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28',
     251            'version' => 'dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28',
    252252            'reference' => '43694f96df2b697f320a8187a293e96ae97e2c3b',
    253253            'type' => 'inpsyde-module',
     
    257257        ),
    258258        'inpsyde/zettle-php-sdk' => array(
    259             'pretty_version' => '1.5.5',
    260             'version' => '1.5.5.0',
     259            'pretty_version' => 'dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28',
     260            'version' => 'dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28',
    261261            'reference' => 'aa920e3c81196fb7eb043332130704e2515909a9',
    262262            'type' => 'inpsyde-module',
     
    266266        ),
    267267        'inpsyde/zettle-pos-integration' => array(
    268             'pretty_version' => '1.5.5',
    269             'version' => '1.5.5.0',
    270             'reference' => '70548f1cea867f5a95dfbffe63ec3dc180f94505',
     268            'pretty_version' => 'dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28',
     269            'version' => 'dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28',
     270            'reference' => '29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28',
    271271            'type' => 'wordpress-plugin',
    272272            'install_path' => __DIR__ . '/../../',
     
    275275        ),
    276276        'inpsyde/zettle-product-debug' => array(
    277             'pretty_version' => '1.5.5',
    278             'version' => '1.5.5.0',
     277            'pretty_version' => 'dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28',
     278            'version' => 'dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28',
    279279            'reference' => '499afad87e196d258a7196ba18a1f940a5c87deb',
    280280            'type' => 'inpsyde-module',
     
    284284        ),
    285285        'inpsyde/zettle-product-settings' => array(
    286             'pretty_version' => '1.5.5',
    287             'version' => '1.5.5.0',
     286            'pretty_version' => 'dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28',
     287            'version' => 'dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28',
    288288            'reference' => '50c5b69c63cd531b594145c6d333d9c9e99f5f67',
    289289            'type' => 'inpsyde-module',
     
    293293        ),
    294294        'inpsyde/zettle-queue' => array(
    295             'pretty_version' => '1.5.5',
    296             'version' => '1.5.5.0',
     295            'pretty_version' => 'dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28',
     296            'version' => 'dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28',
    297297            'reference' => '59797a1ec25eaa0c60bce1e4e02254d7fb9478bc',
    298298            'type' => 'inpsyde-module',
     
    302302        ),
    303303        'inpsyde/zettle-settings' => array(
    304             'pretty_version' => '1.5.5',
    305             'version' => '1.5.5.0',
     304            'pretty_version' => 'dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28',
     305            'version' => 'dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28',
    306306            'reference' => '122b3ca56a9e8181b5cb516c28a993bb489de068',
    307307            'type' => 'inpsyde-module',
     
    311311        ),
    312312        'inpsyde/zettle-sync' => array(
    313             'pretty_version' => '1.5.5',
    314             'version' => '1.5.5.0',
     313            'pretty_version' => 'dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28',
     314            'version' => 'dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28',
    315315            'reference' => 'f6c7542e1e21b0b7cba00eaf20cb7534c415bbbd',
    316316            'type' => 'inpsyde-module',
     
    320320        ),
    321321        'inpsyde/zettle-webhooks' => array(
    322             'pretty_version' => '1.5.5',
    323             'version' => '1.5.5.0',
    324             'reference' => '2cb7d964a5540690ff603f4a699cb54ddd476e02',
     322            'pretty_version' => 'dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28',
     323            'version' => 'dev-29c11ae8a7aa1ac6ed11ebb066d9968dd8d41a28',
     324            'reference' => '4cfb727b02e50c33823faa8f83c2095cdcf6c834',
    325325            'type' => 'inpsyde-module',
    326326            'install_path' => __DIR__ . '/../../modules/zettle-webhooks',
     
    329329        ),
    330330        'nyholm/psr7' => array(
    331             'pretty_version' => '1.5.1',
    332             'version' => '1.5.1.0',
    333             'reference' => 'f734364e38a876a23be4d906a2a089e1315be18a',
     331            'pretty_version' => '1.8.0',
     332            'version' => '1.8.0.0',
     333            'reference' => '3cb4d163b58589e47b35103e8e5e6a6a475b47be',
    334334            'type' => 'library',
    335335            'install_path' => __DIR__ . '/../nyholm/psr7',
     
    354354        ),
    355355        'php-http/client-common' => array(
    356             'pretty_version' => '2.6.0',
    357             'version' => '2.6.0.0',
    358             'reference' => '45db684cd4e186dcdc2b9c06b22970fe123796c0',
     356            'pretty_version' => '2.6.1',
     357            'version' => '2.6.1.0',
     358            'reference' => '665bfc381bb910385f70391ed3eeefd0b7bbdd0d',
    359359            'type' => 'library',
    360360            'install_path' => __DIR__ . '/../php-http/client-common',
     
    370370        ),
    371371        'php-http/curl-client' => array(
    372             'pretty_version' => '2.2.1',
    373             'version' => '2.2.1.0',
    374             'reference' => '2ed4245a817d859dd0c1d51c7078cdb343cf5233',
     372            'pretty_version' => '2.3.0',
     373            'version' => '2.3.0.0',
     374            'reference' => 'f7352c0796549949900d28fe991e19c90572386a',
    375375            'type' => 'library',
    376376            'install_path' => __DIR__ . '/../php-http/curl-client',
     
    379379        ),
    380380        'php-http/discovery' => array(
    381             'pretty_version' => '1.15.2',
    382             'version' => '1.15.2.0',
    383             'reference' => '5cc428320191ac1d0b6520034c2dc0698628ced5',
     381            'pretty_version' => '1.17.0',
     382            'version' => '1.17.0.0',
     383            'reference' => 'bd810d15957cf165230e65d9e1a130793265e3b7',
    384384            'type' => 'composer-plugin',
    385385            'install_path' => __DIR__ . '/../php-http/discovery',
     
    388388        ),
    389389        'php-http/httplug' => array(
    390             'pretty_version' => '2.3.0',
    391             'version' => '2.3.0.0',
    392             'reference' => 'f640739f80dfa1152533976e3c112477f69274eb',
     390            'pretty_version' => '2.4.0',
     391            'version' => '2.4.0.0',
     392            'reference' => '625ad742c360c8ac580fcc647a1541d29e257f67',
    393393            'type' => 'library',
    394394            'install_path' => __DIR__ . '/../php-http/httplug',
     
    397397        ),
    398398        'php-http/message' => array(
    399             'pretty_version' => '1.13.0',
    400             'version' => '1.13.0.0',
    401             'reference' => '7886e647a30a966a1a8d1dad1845b71ca8678361',
     399            'pretty_version' => '1.14.0',
     400            'version' => '1.14.0.0',
     401            'reference' => '2ccee04a28c3d98eb3f2b85ce1e2fcff70c0e63b',
    402402            'type' => 'library',
    403403            'install_path' => __DIR__ . '/../php-http/message',
     
    406406        ),
    407407        'php-http/message-factory' => array(
    408             'pretty_version' => 'v1.0.2',
    409             'version' => '1.0.2.0',
    410             'reference' => 'a478cb11f66a6ac48d8954216cfed9aa06a501a1',
     408            'pretty_version' => '1.1.0',
     409            'version' => '1.1.0.0',
     410            'reference' => '4d8778e1c7d405cbb471574821c1ff5b68cc8f57',
    411411            'type' => 'library',
    412412            'install_path' => __DIR__ . '/../php-http/message-factory',
     
    439439        ),
    440440        'psr/http-client' => array(
    441             'pretty_version' => '1.0.1',
    442             'version' => '1.0.1.0',
    443             'reference' => '2dfb5f6c5eff0e91e20e913f8c5452ed95b86621',
     441            'pretty_version' => '1.0.2',
     442            'version' => '1.0.2.0',
     443            'reference' => '0955afe48220520692d2d09f7ab7e0f93ffd6a31',
    444444            'type' => 'library',
    445445            'install_path' => __DIR__ . '/../psr/http-client',
     
    456456        ),
    457457        'psr/http-factory' => array(
    458             'pretty_version' => '1.0.1',
    459             'version' => '1.0.1.0',
    460             'reference' => '12ac7fcd07e5b077433f5f2bee95b3a771bf61be',
     458            'pretty_version' => '1.0.2',
     459            'version' => '1.0.2.0',
     460            'reference' => 'e616d01114759c4c489f93b099585439f795fe35',
    461461            'type' => 'library',
    462462            'install_path' => __DIR__ . '/../psr/http-factory',
     
    472472        ),
    473473        'psr/http-message' => array(
    474             'pretty_version' => '1.0.1',
    475             'version' => '1.0.1.0',
    476             'reference' => 'f6561bf28d520154e4b0ec72be95418abe6d9363',
     474            'pretty_version' => '1.1',
     475            'version' => '1.1.0.0',
     476            'reference' => 'cb6ce4845ce34a8ad9e68117c10ee90a29919eba',
    477477            'type' => 'library',
    478478            'install_path' => __DIR__ . '/../psr/http-message',
  • zettle-pos-integration/trunk/vendor/nyholm/psr7/src/Factory/HttplugFactory.php

    r2800040 r2907067  
    1212use Psr\Http\Message\UriInterface;
    1313
     14if (!\interface_exists(MessageFactory::class)) {
     15    throw new \LogicException('You cannot use "Nyholm\Psr7\Factory\HttplugFactory" as the "php-http/message-factory" package is not installed. Try running "composer require php-http/message-factory". Note that this package is deprecated, use "psr/http-factory" instead');
     16}
     17
     18@\trigger_error('Class "Nyholm\Psr7\Factory\HttplugFactory" is deprecated since version 1.8, use "Nyholm\Psr7\Factory\Psr17Factory" instead.', \E_USER_DEPRECATED);
     19
    1420/**
    1521 * @author Tobias Nyholm <tobias.nyholm@gmail.com>
     
    1723 *
    1824 * @final This class should never be extended. See https://github.com/Nyholm/psr7/blob/master/doc/final.md
     25 *
     26 * @deprecated since version 1.8, use Psr17Factory instead
    1927 */
    2028class HttplugFactory implements MessageFactory, StreamFactory, UriFactory
  • zettle-pos-integration/trunk/vendor/nyholm/psr7/src/MessageTrait.php

    r2501019 r2907067  
    55namespace Nyholm\Psr7;
    66
     7use Psr\Http\Message\MessageInterface;
    78use Psr\Http\Message\StreamInterface;
    89
     
    3536    }
    3637
    37     public function withProtocolVersion($version): self
    38     {
     38    /**
     39     * @return static
     40     */
     41    public function withProtocolVersion($version): MessageInterface
     42    {
     43        if (!\is_scalar($version)) {
     44            throw new \InvalidArgumentException('Protocol version must be a string');
     45        }
     46
    3947        if ($this->protocol === $version) {
    4048            return $this;
     
    4250
    4351        $new = clone $this;
    44         $new->protocol = $version;
     52        $new->protocol = (string) $version;
    4553
    4654        return $new;
     
    5967    public function getHeader($header): array
    6068    {
     69        if (!\is_string($header)) {
     70            throw new \InvalidArgumentException('Header name must be an RFC 7230 compatible string');
     71        }
     72
    6173        $header = \strtr($header, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz');
    6274        if (!isset($this->headerNames[$header])) {
     
    7486    }
    7587
    76     public function withHeader($header, $value): self
     88    /**
     89     * @return static
     90     */
     91    public function withHeader($header, $value): MessageInterface
    7792    {
    7893        $value = $this->validateAndTrimHeader($header, $value);
     
    89104    }
    90105
    91     public function withAddedHeader($header, $value): self
     106    /**
     107     * @return static
     108     */
     109    public function withAddedHeader($header, $value): MessageInterface
    92110    {
    93111        if (!\is_string($header) || '' === $header) {
    94             throw new \InvalidArgumentException('Header name must be an RFC 7230 compatible string.');
     112            throw new \InvalidArgumentException('Header name must be an RFC 7230 compatible string');
    95113        }
    96114
     
    101119    }
    102120
    103     public function withoutHeader($header): self
    104     {
     121    /**
     122     * @return static
     123     */
     124    public function withoutHeader($header): MessageInterface
     125    {
     126        if (!\is_string($header)) {
     127            throw new \InvalidArgumentException('Header name must be an RFC 7230 compatible string');
     128        }
     129
    105130        $normalized = \strtr($header, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz');
    106131        if (!isset($this->headerNames[$normalized])) {
     
    124149    }
    125150
    126     public function withBody(StreamInterface $body): self
     151    /**
     152     * @return static
     153     */
     154    public function withBody(StreamInterface $body): MessageInterface
    127155    {
    128156        if ($body === $this->stream) {
     
    176204    private function validateAndTrimHeader($header, $values): array
    177205    {
    178         if (!\is_string($header) || 1 !== \preg_match("@^[!#$%&'*+.^_`|~0-9A-Za-z-]+$@", $header)) {
    179             throw new \InvalidArgumentException('Header name must be an RFC 7230 compatible string.');
     206        if (!\is_string($header) || 1 !== \preg_match("@^[!#$%&'*+.^_`|~0-9A-Za-z-]+$@D", $header)) {
     207            throw new \InvalidArgumentException('Header name must be an RFC 7230 compatible string');
    180208        }
    181209
     
    183211            // This is simple, just one value.
    184212            if ((!\is_numeric($values) && !\is_string($values)) || 1 !== \preg_match("@^[ \t\x21-\x7E\x80-\xFF]*$@", (string) $values)) {
    185                 throw new \InvalidArgumentException('Header values must be RFC 7230 compatible strings.');
     213                throw new \InvalidArgumentException('Header values must be RFC 7230 compatible strings');
    186214            }
    187215
     
    190218
    191219        if (empty($values)) {
    192             throw new \InvalidArgumentException('Header values must be a string or an array of strings, empty array given.');
     220            throw new \InvalidArgumentException('Header values must be a string or an array of strings, empty array given');
    193221        }
    194222
     
    196224        $returnValues = [];
    197225        foreach ($values as $v) {
    198             if ((!\is_numeric($v) && !\is_string($v)) || 1 !== \preg_match("@^[ \t\x21-\x7E\x80-\xFF]*$@", (string) $v)) {
    199                 throw new \InvalidArgumentException('Header values must be RFC 7230 compatible strings.');
     226            if ((!\is_numeric($v) && !\is_string($v)) || 1 !== \preg_match("@^[ \t\x21-\x7E\x80-\xFF]*$@D", (string) $v)) {
     227                throw new \InvalidArgumentException('Header values must be RFC 7230 compatible strings');
    200228            }
    201229
  • zettle-pos-integration/trunk/vendor/nyholm/psr7/src/RequestTrait.php

    r2477105 r2907067  
    55namespace Nyholm\Psr7;
    66
     7use Psr\Http\Message\RequestInterface;
    78use Psr\Http\Message\UriInterface;
    89
     
    4142    }
    4243
    43     public function withRequestTarget($requestTarget): self
     44    /**
     45     * @return static
     46     */
     47    public function withRequestTarget($requestTarget): RequestInterface
    4448    {
     49        if (!\is_string($requestTarget)) {
     50            throw new \InvalidArgumentException('Request target must be a string');
     51        }
     52
    4553        if (\preg_match('#\s#', $requestTarget)) {
    4654            throw new \InvalidArgumentException('Invalid request target provided; cannot contain whitespace');
     
    5866    }
    5967
    60     public function withMethod($method): self
     68    /**
     69     * @return static
     70     */
     71    public function withMethod($method): RequestInterface
    6172    {
    6273        if (!\is_string($method)) {
     
    7586    }
    7687
    77     public function withUri(UriInterface $uri, $preserveHost = false): self
     88    /**
     89     * @return static
     90     */
     91    public function withUri(UriInterface $uri, $preserveHost = false): RequestInterface
    7892    {
    7993        if ($uri === $this->uri) {
  • zettle-pos-integration/trunk/vendor/nyholm/psr7/src/Response.php

    r2501019 r2907067  
    6868    }
    6969
    70     public function withStatus($code, $reasonPhrase = ''): self
     70    /**
     71     * @return static
     72     */
     73    public function withStatus($code, $reasonPhrase = ''): ResponseInterface
    7174    {
    7275        if (!\is_int($code) && !\is_string($code)) {
  • zettle-pos-integration/trunk/vendor/nyholm/psr7/src/ServerRequest.php

    r2800040 r2907067  
    5757        $this->setHeaders($headers);
    5858        $this->protocol = $version;
     59        \parse_str($uri->getQuery(), $this->queryParams);
    5960
    6061        if (!$this->hasHeader('Host')) {
     
    8182     * @return static
    8283     */
    83     public function withUploadedFiles(array $uploadedFiles)
     84    public function withUploadedFiles(array $uploadedFiles): ServerRequestInterface
    8485    {
    8586        $new = clone $this;
     
    9798     * @return static
    9899     */
    99     public function withCookieParams(array $cookies)
     100    public function withCookieParams(array $cookies): ServerRequestInterface
    100101    {
    101102        $new = clone $this;
     
    113114     * @return static
    114115     */
    115     public function withQueryParams(array $query)
     116    public function withQueryParams(array $query): ServerRequestInterface
    116117    {
    117118        $new = clone $this;
     
    132133     * @return static
    133134     */
    134     public function withParsedBody($data)
     135    public function withParsedBody($data): ServerRequestInterface
    135136    {
    136137        if (!\is_array($data) && !\is_object($data) && null !== $data) {
     
    154155    public function getAttribute($attribute, $default = null)
    155156    {
     157        if (!\is_string($attribute)) {
     158            throw new \InvalidArgumentException('Attribute name must be a string');
     159        }
     160
    156161        if (false === \array_key_exists($attribute, $this->attributes)) {
    157162            return $default;
     
    161166    }
    162167
    163     public function withAttribute($attribute, $value): self
    164     {
     168    /**
     169     * @return static
     170     */
     171    public function withAttribute($attribute, $value): ServerRequestInterface
     172    {
     173        if (!\is_string($attribute)) {
     174            throw new \InvalidArgumentException('Attribute name must be a string');
     175        }
     176
    165177        $new = clone $this;
    166178        $new->attributes[$attribute] = $value;
     
    169181    }
    170182
    171     public function withoutAttribute($attribute): self
    172     {
     183    /**
     184     * @return static
     185     */
     186    public function withoutAttribute($attribute): ServerRequestInterface
     187    {
     188        if (!\is_string($attribute)) {
     189            throw new \InvalidArgumentException('Attribute name must be a string');
     190        }
     191
    173192        if (false === \array_key_exists($attribute, $this->attributes)) {
    174193            return $this;
  • zettle-pos-integration/trunk/vendor/nyholm/psr7/src/Stream.php

    r2800040 r2907067  
    66
    77use Psr\Http\Message\StreamInterface;
    8 use Symfony\Component\Debug\ErrorHandler as SymfonyLegacyErrorHandler;
    9 use Symfony\Component\ErrorHandler\ErrorHandler as SymfonyErrorHandler;
    108
    119/**
     
    1816class Stream implements StreamInterface
    1917{
     18    use StreamTrait;
     19
    2020    /** @var resource|null A resource reference */
    2121    private $stream;
     
    5252    ];
    5353
    54     private function __construct()
    55     {
     54    /**
     55     * @param resource $body
     56     */
     57    public function __construct($body)
     58    {
     59        if (!\is_resource($body)) {
     60            throw new \InvalidArgumentException('First argument to Stream::__construct() must be resource');
     61        }
     62
     63        $this->stream = $body;
     64        $meta = \stream_get_meta_data($this->stream);
     65        $this->seekable = $meta['seekable'] && 0 === \fseek($this->stream, 0, \SEEK_CUR);
     66        $this->readable = isset(self::READ_WRITE_HASH['read'][$meta['mode']]);
     67        $this->writable = isset(self::READ_WRITE_HASH['write'][$meta['mode']]);
    5668    }
    5769
     
    7082
    7183        if (\is_string($body)) {
    72             $resource = \fopen('php://temp', 'rw+');
    73             \fwrite($resource, $body);
    74             $body = $resource;
    75         }
    76 
    77         if (\is_resource($body)) {
    78             $new = new self();
    79             $new->stream = $body;
    80             $meta = \stream_get_meta_data($new->stream);
    81             $new->seekable = $meta['seekable'] && 0 === \fseek($new->stream, 0, \SEEK_CUR);
    82             $new->readable = isset(self::READ_WRITE_HASH['read'][$meta['mode']]);
    83             $new->writable = isset(self::READ_WRITE_HASH['write'][$meta['mode']]);
    84 
    85             return $new;
    86         }
    87 
    88         throw new \InvalidArgumentException('First argument to Stream::create() must be a string, resource or StreamInterface.');
     84            if (200000 <= \strlen($body)) {
     85                $body = self::openZvalStream($body);
     86            } else {
     87                $resource = \fopen('php://memory', 'r+');
     88                \fwrite($resource, $body);
     89                \fseek($resource, 0);
     90                $body = $resource;
     91            }
     92        }
     93
     94        if (!\is_resource($body)) {
     95            throw new \InvalidArgumentException('First argument to Stream::create() must be a string, resource or StreamInterface');
     96        }
     97
     98        return new self($body);
    8999    }
    90100
     
    97107    }
    98108
    99     /**
    100      * @return string
    101      */
    102     public function __toString()
    103     {
    104         try {
    105             if ($this->isSeekable()) {
    106                 $this->seek(0);
    107             }
    108 
    109             return $this->getContents();
    110         } catch (\Throwable $e) {
    111             if (\PHP_VERSION_ID >= 70400) {
    112                 throw $e;
    113             }
    114 
    115             if (\is_array($errorHandler = \set_error_handler('var_dump'))) {
    116                 $errorHandler = $errorHandler[0] ?? null;
    117             }
    118             \restore_error_handler();
    119 
    120             if ($e instanceof \Error || $errorHandler instanceof SymfonyErrorHandler || $errorHandler instanceof SymfonyLegacyErrorHandler) {
    121                 return \trigger_error((string) $e, \E_USER_ERROR);
    122             }
    123 
    124             return '';
    125         }
    126     }
    127 
    128109    public function close(): void
    129110    {
     
    292273    public function getMetadata($key = null)
    293274    {
     275        if (null !== $key && !\is_string($key)) {
     276            throw new \InvalidArgumentException('Metadata key must be a string');
     277        }
     278
    294279        if (!isset($this->stream)) {
    295280            return $key ? null : [];
     
    304289        return $meta[$key] ?? null;
    305290    }
     291
     292    private static function openZvalStream(string $body)
     293    {
     294        static $wrapper;
     295
     296        $wrapper ?? \stream_wrapper_register('Nyholm-Psr7-Zval', $wrapper = \get_class(new class() {
     297            public $context;
     298
     299            private $data;
     300            private $position = 0;
     301
     302            public function stream_open(): bool
     303            {
     304                $this->data = \stream_context_get_options($this->context)['Nyholm-Psr7-Zval']['data'];
     305                \stream_context_set_option($this->context, 'Nyholm-Psr7-Zval', 'data', null);
     306
     307                return true;
     308            }
     309
     310            public function stream_read(int $count): string
     311            {
     312                $result = \substr($this->data, $this->position, $count);
     313                $this->position += \strlen($result);
     314
     315                return $result;
     316            }
     317
     318            public function stream_write(string $data): int
     319            {
     320                $this->data = \substr_replace($this->data, $data, $this->position, \strlen($data));
     321                $this->position += \strlen($data);
     322
     323                return \strlen($data);
     324            }
     325
     326            public function stream_tell(): int
     327            {
     328                return $this->position;
     329            }
     330
     331            public function stream_eof(): bool
     332            {
     333                return \strlen($this->data) <= $this->position;
     334            }
     335
     336            public function stream_stat(): array
     337            {
     338                return [
     339                    'mode' => 33206, // POSIX_S_IFREG | 0666
     340                    'nlink' => 1,
     341                    'rdev' => -1,
     342                    'size' => \strlen($this->data),
     343                    'blksize' => -1,
     344                    'blocks' => -1,
     345                ];
     346            }
     347
     348            public function stream_seek(int $offset, int $whence): bool
     349            {
     350                if (\SEEK_SET === $whence && (0 <= $offset && \strlen($this->data) >= $offset)) {
     351                    $this->position = $offset;
     352                } elseif (\SEEK_CUR === $whence && 0 <= $offset) {
     353                    $this->position += $offset;
     354                } elseif (\SEEK_END === $whence && (0 > $offset && 0 <= $offset = \strlen($this->data) + $offset)) {
     355                    $this->position = $offset;
     356                } else {
     357                    return false;
     358                }
     359
     360                return true;
     361            }
     362
     363            public function stream_set_option(): bool
     364            {
     365                return true;
     366            }
     367
     368            public function stream_truncate(int $new_size): bool
     369            {
     370                if ($new_size) {
     371                    $this->data = \substr($this->data, 0, $new_size);
     372                    $this->position = \min($this->position, $new_size);
     373                } else {
     374                    $this->data = '';
     375                    $this->position = 0;
     376                }
     377
     378                return true;
     379            }
     380        }));
     381
     382        $context = \stream_context_create(['Nyholm-Psr7-Zval' => ['data' => $body]]);
     383
     384        if (!$stream = @\fopen('Nyholm-Psr7-Zval://', 'r+', false, $context)) {
     385            \stream_wrapper_register('Nyholm-Psr7-Zval', $wrapper);
     386            $stream = \fopen('Nyholm-Psr7-Zval://', 'r+', false, $context);
     387        }
     388
     389        return $stream;
     390    }
    306391}
  • zettle-pos-integration/trunk/vendor/nyholm/psr7/src/UploadedFile.php

    r2800040 r2907067  
    5959    {
    6060        if (false === \is_int($errorStatus) || !isset(self::ERRORS[$errorStatus])) {
    61             throw new \InvalidArgumentException('Upload file error status must be an integer value and one of the "UPLOAD_ERR_*" constants.');
     61            throw new \InvalidArgumentException('Upload file error status must be an integer value and one of the "UPLOAD_ERR_*" constants');
    6262        }
    6363
  • zettle-pos-integration/trunk/vendor/nyholm/psr7/src/Uri.php

    r2560431 r2907067  
    2626    private const CHAR_SUB_DELIMS = '!\$&\'\(\)\*\+,;=';
    2727
     28    private const CHAR_GEN_DELIMS = ':\/\?#\[\]@';
     29
    2830    /** @var string Uri scheme. */
    2931    private $scheme = '';
     
    113115    public function getPath(): string
    114116    {
    115         return $this->path;
     117        $path = $this->path;
     118
     119        if ('' !== $path && '/' !== $path[0]) {
     120            if ('' !== $this->host) {
     121                // If the path is rootless and an authority is present, the path MUST be prefixed by "/"
     122                $path = '/' . $path;
     123            }
     124        } elseif (isset($path[1]) && '/' === $path[1]) {
     125            // If the path is starting with more than one "/", the
     126            // starting slashes MUST be reduced to one.
     127            $path = '/' . \ltrim($path, '/');
     128        }
     129
     130        return $path;
    116131    }
    117132
     
    126141    }
    127142
    128     public function withScheme($scheme): self
     143    /**
     144     * @return static
     145     */
     146    public function withScheme($scheme): UriInterface
    129147    {
    130148        if (!\is_string($scheme)) {
     
    143161    }
    144162
    145     public function withUserInfo($user, $password = null): self
    146     {
    147         $info = $user;
     163    /**
     164     * @return static
     165     */
     166    public function withUserInfo($user, $password = null): UriInterface
     167    {
     168        if (!\is_string($user)) {
     169            throw new \InvalidArgumentException('User must be a string');
     170        }
     171
     172        $info = \preg_replace_callback('/[' . self::CHAR_GEN_DELIMS . self::CHAR_SUB_DELIMS . ']++/', [__CLASS__, 'rawurlencodeMatchZero'], $user);
    148173        if (null !== $password && '' !== $password) {
    149             $info .= ':' . $password;
     174            if (!\is_string($password)) {
     175                throw new \InvalidArgumentException('Password must be a string');
     176            }
     177
     178            $info .= ':' . \preg_replace_callback('/[' . self::CHAR_GEN_DELIMS . self::CHAR_SUB_DELIMS . ']++/', [__CLASS__, 'rawurlencodeMatchZero'], $password);
    150179        }
    151180
     
    160189    }
    161190
    162     public function withHost($host): self
     191    /**
     192     * @return static
     193     */
     194    public function withHost($host): UriInterface
    163195    {
    164196        if (!\is_string($host)) {
     
    176208    }
    177209
    178     public function withPort($port): self
     210    /**
     211     * @return static
     212     */
     213    public function withPort($port): UriInterface
    179214    {
    180215        if ($this->port === $port = $this->filterPort($port)) {
     
    188223    }
    189224
    190     public function withPath($path): self
     225    /**
     226     * @return static
     227     */
     228    public function withPath($path): UriInterface
    191229    {
    192230        if ($this->path === $path = $this->filterPath($path)) {
     
    200238    }
    201239
    202     public function withQuery($query): self
     240    /**
     241     * @return static
     242     */
     243    public function withQuery($query): UriInterface
    203244    {
    204245        if ($this->query === $query = $this->filterQueryAndFragment($query)) {
     
    212253    }
    213254
    214     public function withFragment($fragment): self
     255    /**
     256     * @return static
     257     */
     258    public function withFragment($fragment): UriInterface
    215259    {
    216260        if ($this->fragment === $fragment = $this->filterQueryAndFragment($fragment)) {
     
    281325
    282326        $port = (int) $port;
    283         if (0 > $port || 0xffff < $port) {
     327        if (0 > $port || 0xFFFF < $port) {
    284328            throw new \InvalidArgumentException(\sprintf('Invalid port: %d. Must be between 0 and 65535', $port));
    285329        }
  • zettle-pos-integration/trunk/vendor/php-http/client-common/src/PluginChain.php

    r2800040 r2907067  
    44
    55namespace Http\Client\Common;
    6 
    7 use function array_reverse;
    86
    97use Http\Client\Common\Exception\LoopException;
     
    4038    {
    4139        $lastCallable = $this->clientCallable;
    42         $reversedPlugins = array_reverse($this->plugins);
     40        $reversedPlugins = \array_reverse($this->plugins);
    4341
    4442        foreach ($reversedPlugins as $plugin) {
  • zettle-pos-integration/trunk/vendor/php-http/discovery/src/ClassDiscovery.php

    r2800040 r2907067  
    2323     */
    2424    private static $strategies = [
     25        Strategy\GeneratedDiscoveryStrategy::class,
    2526        Strategy\CommonClassesStrategy::class,
    2627        Strategy\CommonPsr17ClassesStrategy::class,
     
    5556        }
    5657
     58        static $skipStrategy;
     59        $skipStrategy ?? $skipStrategy = self::safeClassExists(Strategy\GeneratedDiscoveryStrategy::class) ? false : Strategy\GeneratedDiscoveryStrategy::class;
     60
    5761        $exceptions = [];
    5862        foreach (self::$strategies as $strategy) {
     63            if ($skipStrategy === $strategy) {
     64                continue;
     65            }
     66
    5967            try {
    60                 $candidates = call_user_func($strategy.'::getCandidates', $type);
     68                $candidates = $strategy::getCandidates($type);
    6169            } catch (StrategyUnavailableException $e) {
    6270                if (!isset(self::$deprecatedStrategies[$strategy])) {
  • zettle-pos-integration/trunk/vendor/php-http/discovery/src/Composer/Plugin.php

    r2880545 r2907067  
    1919use Composer\Script\Event;
    2020use Composer\Script\ScriptEvents;
     21use Composer\Util\Filesystem;
     22use Http\Discovery\ClassDiscovery;
    2123
    2224/**
     
    7577            'laminas/laminas-diactoros' => [],
    7678            'phalcon/cphalcon:^4' => [],
    77             'zendframework/zend-diactoros:>=2' => [],
    7879            'http-interop/http-factory-guzzle' => [],
    7980            'http-interop/http-factory-diactoros' => [],
     
    9697        'php-http/artax-adapter' => 'amphp/artax:^3',
    9798        'http-interop/http-factory-guzzle' => 'guzzlehttp/psr7:^1',
    98         'http-interop/http-factory-diactoros' => 'zendframework/zend-diactoros:^1',
    9999        'http-interop/http-factory-slim' => 'slim/slim:^3',
    100100    ];
    101101
     102    private const INTERFACE_MAP = [
     103        'php-http/async-client-implementation' => [
     104            'Http\Client\HttpAsyncClient',
     105        ],
     106        'php-http/client-implementation' => [
     107            'Http\Client\HttpClient',
     108        ],
     109        'psr/http-client-implementation' => [
     110            'Psr\Http\Client\ClientInterface',
     111        ],
     112        'psr/http-factory-implementation' => [
     113            'Psr\Http\Message\RequestFactoryInterface',
     114            'Psr\Http\Message\ResponseFactoryInterface',
     115            'Psr\Http\Message\ServerRequestFactoryInterface',
     116            'Psr\Http\Message\StreamFactoryInterface',
     117            'Psr\Http\Message\UploadedFileFactoryInterface',
     118            'Psr\Http\Message\UriFactoryInterface',
     119        ],
     120    ];
     121
    102122    public static function getSubscribedEvents(): array
    103123    {
    104124        return [
     125            ScriptEvents::PRE_AUTOLOAD_DUMP => 'preAutoloadDump',
    105126            ScriptEvents::POST_UPDATE_CMD => 'postUpdate',
    106127        ];
     
    188209        }
    189210
    190         $versionSelector = new VersionSelector(class_exists(RepositorySet::class) ? new RepositorySet() : new Pool());
     211        $versionSelector = new VersionSelector(ClassDiscovery::safeClassExists(RepositorySet::class) ? new RepositorySet() : new Pool());
    191212        $updateComposerJson = false;
    192213
     
    237258        $versionParser = new VersionParser();
    238259
    239         if (class_exists(\Phalcon\Http\Message\RequestFactory::class, false)) {
     260        if (ClassDiscovery::safeClassExists(\Phalcon\Http\Message\RequestFactory::class, false)) {
    240261            $missingRequires[0]['psr/http-factory-implementation'] = [];
    241262            $missingRequires[1]['psr/http-factory-implementation'] = [];
     
    336357    }
    337358
     359    public function preAutoloadDump(Event $event)
     360    {
     361        $filesystem = new Filesystem();
     362        // Double realpath() on purpose, see https://bugs.php.net/72738
     363        $vendorDir = $filesystem->normalizePath(realpath(realpath($event->getComposer()->getConfig()->get('vendor-dir'))));
     364        $filesystem->ensureDirectoryExists($vendorDir.'/composer');
     365        $pinned = $event->getComposer()->getPackage()->getExtra()['discovery'] ?? [];
     366        $candidates = [];
     367
     368        $allInterfaces = array_merge(...array_values(self::INTERFACE_MAP));
     369        foreach ($pinned as $abstraction => $class) {
     370            if (isset(self::INTERFACE_MAP[$abstraction])) {
     371                $interfaces = self::INTERFACE_MAP[$abstraction];
     372            } elseif (false !== $k = array_search($abstraction, $allInterfaces, true)) {
     373                $interfaces = [$allInterfaces[$k]];
     374            } else {
     375                throw new \UnexpectedValueException(sprintf('Invalid "extra.discovery" pinned in composer.json: "%s" is not one of ["%s"].', $abstraction, implode('", "', array_keys(self::INTERFACE_MAP))));
     376            }
     377
     378            foreach ($interfaces as $interface) {
     379                $candidates[] = sprintf("case %s: return [['class' => %s]];\n", var_export($interface, true), var_export($class, true));
     380            }
     381        }
     382
     383        $file = $vendorDir.'/composer/GeneratedDiscoveryStrategy.php';
     384
     385        if (!$candidates) {
     386            if (file_exists($file)) {
     387                unlink($file);
     388            }
     389
     390            return;
     391        }
     392
     393        $candidates = implode('            ', $candidates);
     394        $code = <<<EOPHP
     395<?php
     396
     397namespace Http\Discovery\Strategy;
     398
     399class GeneratedDiscoveryStrategy implements DiscoveryStrategy
     400{
     401    public static function getCandidates(\$type)
     402    {
     403        switch (\$type) {
     404            $candidates
     405            default: return [];
     406        }
     407    }
     408}
     409
     410EOPHP
     411        ;
     412
     413        if (!file_exists($file) || $code !== file_get_contents($file)) {
     414            file_put_contents($file, $code);
     415        }
     416
     417        $rootPackage = $event->getComposer()->getPackage();
     418        $autoload = $rootPackage->getAutoload();
     419        $autoload['classmap'][] = $vendorDir.'/composer/GeneratedDiscoveryStrategy.php';
     420        $rootPackage->setAutoload($autoload);
     421    }
     422
    338423    private function updateComposerJson(array $missingRequires, bool $sortPackages)
    339424    {
     
    361446        $composerJson = file_get_contents(Factory::getComposerFile());
    362447        $lockFile = new JsonFile($lock, null, $io);
    363         $locker = class_exists(RepositorySet::class)
     448        $locker = ClassDiscovery::safeClassExists(RepositorySet::class)
    364449            ? new Locker($io, $lockFile, $composer->getInstallationManager(), $composerJson)
    365450            : new Locker($io, $lockFile, $composer->getRepositoryManager(), $composer->getInstallationManager(), $composerJson);
  • zettle-pos-integration/trunk/vendor/php-http/discovery/src/Psr17Factory.php

    r2880545 r2907067  
    185185
    186186        $headers = [];
    187         foreach ($server as $key => $value) {
    188             if (0 === strpos($key, 'HTTP_')) {
    189                 $key = substr($key, 5);
    190             } elseif (!\in_array($key, ['CONTENT_TYPE', 'CONTENT_LENGTH', 'CONTENT_MD5'], true)) {
     187        foreach ($server as $k => $v) {
     188            if (0 === strpos($k, 'HTTP_')) {
     189                $k = substr($k, 5);
     190            } elseif (!\in_array($k, ['CONTENT_TYPE', 'CONTENT_LENGTH', 'CONTENT_MD5'], true)) {
    191191                continue;
    192192            }
    193             $key = str_replace(' ', '-', ucwords(strtolower(str_replace('_', ' ', $key))));
    194 
    195             $headers[$key] = $value;
     193            $k = str_replace(' ', '-', ucwords(strtolower(str_replace('_', ' ', $k))));
     194
     195            $headers[$k] = $v;
    196196        }
    197197
     
    206206        }
    207207
    208         foreach ($headers as $key => $value) {
     208        foreach ($headers as $k => $v) {
    209209            try {
    210                 $request = $request->withHeader($key, $value);
     210                $request = $request->withHeader($k, $v);
    211211            } catch (\InvalidArgumentException $e) {
    212212                // ignore invalid headers
     
    258258    private function normalizeFiles(array $files): array
    259259    {
    260         $normalized = [];
    261 
    262         foreach ($files as $key => $value) {
    263             if ($value instanceof UploadedFileInterface) {
    264                 $normalized[$key] = $value;
    265             } elseif (!\is_array($value)) {
     260        foreach ($files as $k => $v) {
     261            if ($v instanceof UploadedFileInterface) {
    266262                continue;
    267             } elseif (!isset($value['tmp_name'])) {
    268                 $normalized[$key] = $this->normalizeFiles($value);
    269             } elseif (\is_array($value['tmp_name'])) {
    270                 foreach ($value['tmp_name'] as $k => $v) {
    271                     $file = $this->createStreamFromFile($value['tmp_name'][$k], 'r');
    272                     $normalized[$key][$k] = $this->createUploadedFile($file, $value['size'][$k], $value['error'][$k], $value['name'][$k], $value['type'][$k]);
    273                 }
     263            }
     264            if (!\is_array($v)) {
     265                unset($files[$k]);
     266            } elseif (!isset($v['tmp_name'])) {
     267                $files[$k] = $this->normalizeFiles($v);
    274268            } else {
    275                 $file = $this->createStreamFromFile($value['tmp_name'], 'r');
    276                 $normalized[$key] = $this->createUploadedFile($file, $value['size'], $value['error'], $value['name'], $value['type']);
    277             }
    278         }
    279 
    280         return $normalized;
     269                $files[$k] = $this->createUploadedFileFromSpec($v);
     270            }
     271        }
     272
     273        return $files;
     274    }
     275
     276    /**
     277     * Create and return an UploadedFile instance from a $_FILES specification.
     278     *
     279     * @param array $value $_FILES struct
     280     *
     281     * @return UploadedFileInterface|UploadedFileInterface[]
     282     */
     283    private function createUploadedFileFromSpec(array $value)
     284    {
     285        if (!is_array($tmpName = $value['tmp_name'])) {
     286            $file = is_file($tmpName) ? $this->createStreamFromFile($tmpName, 'r') : $this->createStream();
     287
     288            return $this->createUploadedFile($file, $value['size'], $value['error'], $value['name'], $value['type']);
     289        }
     290
     291        foreach ($tmpName as $k => $v) {
     292            $tmpName[$k] = $this->createUploadedFileFromSpec([
     293                'tmp_name' => $v,
     294                'size' => $value['size'][$k] ?? null,
     295                'error' => $value['error'][$k] ?? null,
     296                'name' => $value['name'][$k] ?? null,
     297                'type' => $value['type'][$k] ?? null,
     298            ]);
     299        }
     300
     301        return $tmpName;
    281302    }
    282303}
  • zettle-pos-integration/trunk/vendor/php-http/discovery/src/Strategy/CommonClassesStrategy.php

    r2880545 r2907067  
    1313use Http\Adapter\Guzzle7\Client as Guzzle7;
    1414use Http\Adapter\React\Client as React;
    15 use Http\Adapter\Zend\Client as Zend;
    1615use Http\Client\Curl\Client as Curl;
    1716use Http\Client\HttpAsyncClient;
     
    4241use Symfony\Component\HttpClient\HttplugClient as SymfonyHttplug;
    4342use Symfony\Component\HttpClient\Psr18Client as SymfonyPsr18;
    44 use Zend\Diactoros\Request as ZendDiactorosRequest;
    4543
    4644/**
     
    6058            ['class' => NyholmHttplugFactory::class, 'condition' => [NyholmHttplugFactory::class]],
    6159            ['class' => GuzzleMessageFactory::class, 'condition' => [GuzzleRequest::class, GuzzleMessageFactory::class]],
    62             ['class' => DiactorosMessageFactory::class, 'condition' => [ZendDiactorosRequest::class, DiactorosMessageFactory::class]],
    6360            ['class' => DiactorosMessageFactory::class, 'condition' => [DiactorosRequest::class, DiactorosMessageFactory::class]],
    6461            ['class' => SlimMessageFactory::class, 'condition' => [SlimRequest::class, SlimMessageFactory::class]],
     
    6764            ['class' => NyholmHttplugFactory::class, 'condition' => [NyholmHttplugFactory::class]],
    6865            ['class' => GuzzleStreamFactory::class, 'condition' => [GuzzleRequest::class, GuzzleStreamFactory::class]],
    69             ['class' => DiactorosStreamFactory::class, 'condition' => [ZendDiactorosRequest::class, DiactorosStreamFactory::class]],
    7066            ['class' => DiactorosStreamFactory::class, 'condition' => [DiactorosRequest::class, DiactorosStreamFactory::class]],
    7167            ['class' => SlimStreamFactory::class, 'condition' => [SlimRequest::class, SlimStreamFactory::class]],
     
    7470            ['class' => NyholmHttplugFactory::class, 'condition' => [NyholmHttplugFactory::class]],
    7571            ['class' => GuzzleUriFactory::class, 'condition' => [GuzzleRequest::class, GuzzleUriFactory::class]],
    76             ['class' => DiactorosUriFactory::class, 'condition' => [ZendDiactorosRequest::class, DiactorosUriFactory::class]],
    7772            ['class' => DiactorosUriFactory::class, 'condition' => [DiactorosRequest::class, DiactorosUriFactory::class]],
    7873            ['class' => SlimUriFactory::class, 'condition' => [SlimRequest::class, SlimUriFactory::class]],
     
    9590            ['class' => React::class, 'condition' => React::class],
    9691            ['class' => Cake::class, 'condition' => Cake::class],
    97             ['class' => Zend::class, 'condition' => Zend::class],
    9892            ['class' => Artax::class, 'condition' => Artax::class],
    9993            [
  • zettle-pos-integration/trunk/vendor/php-http/discovery/src/Strategy/CommonPsr17ClassesStrategy.php

    r2880545 r2907067  
    2626            'Phalcon\Http\Message\RequestFactory',
    2727            'Nyholm\Psr7\Factory\Psr17Factory',
    28             'Zend\Diactoros\RequestFactory',
    2928            'GuzzleHttp\Psr7\HttpFactory',
    3029            'Http\Factory\Diactoros\RequestFactory',
     
    3736            'Phalcon\Http\Message\ResponseFactory',
    3837            'Nyholm\Psr7\Factory\Psr17Factory',
    39             'Zend\Diactoros\ResponseFactory',
    4038            'GuzzleHttp\Psr7\HttpFactory',
    4139            'Http\Factory\Diactoros\ResponseFactory',
     
    4846            'Phalcon\Http\Message\ServerRequestFactory',
    4947            'Nyholm\Psr7\Factory\Psr17Factory',
    50             'Zend\Diactoros\ServerRequestFactory',
    5148            'GuzzleHttp\Psr7\HttpFactory',
    5249            'Http\Factory\Diactoros\ServerRequestFactory',
     
    5956            'Phalcon\Http\Message\StreamFactory',
    6057            'Nyholm\Psr7\Factory\Psr17Factory',
    61             'Zend\Diactoros\StreamFactory',
    6258            'GuzzleHttp\Psr7\HttpFactory',
    6359            'Http\Factory\Diactoros\StreamFactory',
     
    7066            'Phalcon\Http\Message\UploadedFileFactory',
    7167            'Nyholm\Psr7\Factory\Psr17Factory',
    72             'Zend\Diactoros\UploadedFileFactory',
    7368            'GuzzleHttp\Psr7\HttpFactory',
    7469            'Http\Factory\Diactoros\UploadedFileFactory',
     
    8176            'Phalcon\Http\Message\UriFactory',
    8277            'Nyholm\Psr7\Factory\Psr17Factory',
    83             'Zend\Diactoros\UriFactory',
    8478            'GuzzleHttp\Psr7\HttpFactory',
    8579            'Http\Factory\Diactoros\UriFactory',
  • zettle-pos-integration/trunk/vendor/php-http/httplug/src/HttpClient.php

    r2477105 r2907067  
    1010 * Provide the Httplug HttpClient interface for BC.
    1111 * You should typehint Psr\Http\Client\ClientInterface in new code
     12 *
     13 * @deprecated since version 2.4, use Psr\Http\Client\ClientInterface instead; see https://www.php-fig.org/psr/psr-18/
    1214 */
    1315interface HttpClient extends ClientInterface
  • zettle-pos-integration/trunk/vendor/php-http/message-factory/LICENSE

    r2477105 r2907067  
    1 Copyright (c) 2015 PHP HTTP Team <team@php-http.org>
     1Copyright (c) 2015-2016 PHP HTTP Team <team@php-http.org>
    22
    33Permission is hereby granted, free of charge, to any person obtaining a copy
  • zettle-pos-integration/trunk/vendor/php-http/message-factory/puli.json

    r2477105 r2907067  
    11{
    22    "version": "1.0",
     3    "name": "php-http/message-factory",
    34    "binding-types": {
    45        "Http\\Message\\MessageFactory": {
  • zettle-pos-integration/trunk/vendor/php-http/message-factory/src/MessageFactory.php

    r2477105 r2907067  
    77 *
    88 * @author Márk Sági-Kazár <mark.sagikazar@gmail.com>
     9 *
     10 * @deprecated since version 1.1, use Psr\Http\Message\RequestFactoryInterface and Psr\Http\Message\ResponseFactoryInterface instead.
    911 */
    1012interface MessageFactory extends RequestFactory, ResponseFactory
  • zettle-pos-integration/trunk/vendor/php-http/message-factory/src/RequestFactory.php

    r2477105 r2907067  
    1111 *
    1212 * @author Márk Sági-Kazár <mark.sagikazar@gmail.com>
     13 *
     14 * @deprecated since version 1.1, use Psr\Http\Message\RequestFactoryInterface instead.
    1315 */
    1416interface RequestFactory
  • zettle-pos-integration/trunk/vendor/php-http/message-factory/src/ResponseFactory.php

    r2477105 r2907067  
    1212 *
    1313 * @author Márk Sági-Kazár <mark.sagikazar@gmail.com>
     14 *
     15 * @deprecated since version 1.1, use Psr\Http\Message\ResponseFactoryInterface instead.
    1416 */
    1517interface ResponseFactory
  • zettle-pos-integration/trunk/vendor/php-http/message-factory/src/StreamFactory.php

    r2477105 r2907067  
    99 *
    1010 * @author Márk Sági-Kazár <mark.sagikazar@gmail.com>
     11 *
     12 * @deprecated since version 1.1, use Psr\Http\Message\StreamFactoryInterface instead.
    1113 */
    1214interface StreamFactory
     
    1921     * @return StreamInterface
    2022     *
    21      * @throws \InvalidArgumentException If the stream body is invalid.
    22      * @throws \RuntimeException         If creating the stream from $body fails.
     23     * @throws \InvalidArgumentException if the stream body is invalid
     24     * @throws \RuntimeException         if creating the stream from $body fails
    2325     */
    2426    public function createStream($body = null);
  • zettle-pos-integration/trunk/vendor/php-http/message-factory/src/UriFactory.php

    r2477105 r2907067  
    99 *
    1010 * @author Márk Sági-Kazár <mark.sagikazar@gmail.com>
     11 *
     12 * @deprecated since version 1.1, use Psr\Http\Message\UriFactoryInterface instead.
    1113 */
    1214interface UriFactory
     
    1921     * @return UriInterface
    2022     *
    21      * @throws \InvalidArgumentException If the $uri argument can not be converted into a valid URI.
     23     * @throws \InvalidArgumentException if the $uri argument can not be converted into a valid URI
    2224     */
    2325    public function createUri($uri);
  • zettle-pos-integration/trunk/vendor/php-http/message/src/Authentication/Wsse.php

    r2477105 r2907067  
    44
    55use Http\Message\Authentication;
    6 use InvalidArgumentException;
    76use Psr\Http\Message\RequestInterface;
    87
     
    3938        $this->password = $password;
    4039        if (false === in_array($hashAlgorithm, hash_algos())) {
    41             throw new InvalidArgumentException(sprintf('Unaccepted hashing algorithm: %s', $hashAlgorithm));
     40            throw new \InvalidArgumentException(sprintf('Unaccepted hashing algorithm: %s', $hashAlgorithm));
    4241        }
    4342        $this->hashAlgorithm = $hashAlgorithm;
  • zettle-pos-integration/trunk/vendor/php-http/message/src/Cookie.php

    r2477105 r2907067  
    400400     * This does not compare the values, only name, domain and path.
    401401     *
    402      * @param Cookie $cookie
    403      *
    404402     * @return bool
    405403     */
  • zettle-pos-integration/trunk/vendor/php-http/message/src/CookieJar.php

    r2800040 r2907067  
    1111{
    1212    /**
    13      * @var \SplObjectStorage<object, mixed>
     13     * @var \SplObjectStorage<Cookie, mixed>
    1414     */
    1515    private $cookies;
  • zettle-pos-integration/trunk/vendor/php-http/message/src/Encoding/FilteredStream.php

    r2477105 r2907067  
    1818        seek as private doSeek;
    1919    }
    20     const BUFFER_SIZE = 8192;
     20    public const BUFFER_SIZE = 8192;
    2121
    2222    /**
  • zettle-pos-integration/trunk/vendor/php-http/message/src/UriFactory/GuzzleUriFactory.php

    r2538456 r2907067  
    33namespace Http\Message\UriFactory;
    44
    5 use function GuzzleHttp\Psr7\uri_for;
    65use GuzzleHttp\Psr7\Utils;
    76use Http\Message\UriFactory;
     7
     8use function GuzzleHttp\Psr7\uri_for;
    89
    910/**
  • zettle-pos-integration/trunk/vendor/psr/http-message/src/MessageInterface.php

    r2477105 r2907067  
    11<?php
     2
     3declare(strict_types=1);
    24
    35namespace Psr\Http\Message;
     
    3941     * @return static
    4042     */
    41     public function withProtocolVersion($version);
     43    public function withProtocolVersion(string $version);
    4244
    4345    /**
     
    7678     *     no matching header name is found in the message.
    7779     */
    78     public function hasHeader($name);
     80    public function hasHeader(string $name);
    7981
    8082    /**
     
    9294     *    return an empty array.
    9395     */
    94     public function getHeader($name);
     96    public function getHeader(string $name);
    9597
    9698    /**
     
    113115     *    the message, this method MUST return an empty string.
    114116     */
    115     public function getHeaderLine($name);
     117    public function getHeaderLine(string $name);
    116118
    117119    /**
     
    130132     * @throws \InvalidArgumentException for invalid header names or values.
    131133     */
    132     public function withHeader($name, $value);
     134    public function withHeader(string $name, $value);
    133135
    134136    /**
     
    148150     * @throws \InvalidArgumentException for invalid header names or values.
    149151     */
    150     public function withAddedHeader($name, $value);
     152    public function withAddedHeader(string $name, $value);
    151153
    152154    /**
     
    162164     * @return static
    163165     */
    164     public function withoutHeader($name);
     166    public function withoutHeader(string $name);
    165167
    166168    /**
  • zettle-pos-integration/trunk/vendor/psr/http-message/src/RequestInterface.php

    r2477105 r2907067  
    11<?php
     2
     3declare(strict_types=1);
    24
    35namespace Psr\Http\Message;
     
    5658     * @link http://tools.ietf.org/html/rfc7230#section-5.3 (for the various
    5759     *     request-target forms allowed in request messages)
    58      * @param mixed $requestTarget
     60     * @param string $requestTarget
    5961     * @return static
    6062     */
    61     public function withRequestTarget($requestTarget);
     63    public function withRequestTarget(string $requestTarget);
    6264
    6365    /**
     
    8385     * @throws \InvalidArgumentException for invalid HTTP methods.
    8486     */
    85     public function withMethod($method);
     87    public function withMethod(string $method);
    8688
    8789    /**
     
    126128     * @return static
    127129     */
    128     public function withUri(UriInterface $uri, $preserveHost = false);
     130    public function withUri(UriInterface $uri, bool $preserveHost = false);
    129131}
  • zettle-pos-integration/trunk/vendor/psr/http-message/src/ResponseInterface.php

    r2477105 r2907067  
    11<?php
     2
     3declare(strict_types=1);
    24
    35namespace Psr\Http\Message;
     
    5052     * @throws \InvalidArgumentException For invalid status code arguments.
    5153     */
    52     public function withStatus($code, $reasonPhrase = '');
     54    public function withStatus(int $code, string $reasonPhrase = '');
    5355
    5456    /**
  • zettle-pos-integration/trunk/vendor/psr/http-message/src/ServerRequestInterface.php

    r2477105 r2907067  
    11<?php
     2
     3declare(strict_types=1);
    24
    35namespace Psr\Http\Message;
     
    225227     * @return mixed
    226228     */
    227     public function getAttribute($name, $default = null);
     229    public function getAttribute(string $name, $default = null);
    228230
    229231    /**
     
    242244     * @return static
    243245     */
    244     public function withAttribute($name, $value);
     246    public function withAttribute(string $name, $value);
    245247
    246248    /**
     
    258260     * @return static
    259261     */
    260     public function withoutAttribute($name);
     262    public function withoutAttribute(string $name);
    261263}
  • zettle-pos-integration/trunk/vendor/psr/http-message/src/StreamInterface.php

    r2477105 r2907067  
    11<?php
     2
     3declare(strict_types=1);
    24
    35namespace Psr\Http\Message;
     
    8587     * @throws \RuntimeException on failure.
    8688     */
    87     public function seek($offset, $whence = SEEK_SET);
     89    public function seek(int $offset, int $whence = SEEK_SET);
    8890
    8991    /**
     
    113115     * @throws \RuntimeException on failure.
    114116     */
    115     public function write($string);
     117    public function write(string $string);
    116118
    117119    /**
     
    132134     * @throws \RuntimeException if an error occurs.
    133135     */
    134     public function read($length);
     136    public function read(int $length);
    135137
    136138    /**
     
    150152     *
    151153     * @link http://php.net/manual/en/function.stream-get-meta-data.php
    152      * @param string $key Specific metadata to retrieve.
     154     * @param string|null $key Specific metadata to retrieve.
    153155     * @return array|mixed|null Returns an associative array if no key is
    154156     *     provided. Returns a specific key value if a key is provided and the
    155157     *     value is found, or null if the key is not found.
    156158     */
    157     public function getMetadata($key = null);
     159    public function getMetadata(?string $key = null);
    158160}
  • zettle-pos-integration/trunk/vendor/psr/http-message/src/UploadedFileInterface.php

    r2477105 r2907067  
    11<?php
     2
     3declare(strict_types=1);
    24
    35namespace Psr\Http\Message;
     
    6365     *     the second or subsequent call to the method.
    6466     */
    65     public function moveTo($targetPath);
     67    public function moveTo(string $targetPath);
    6668   
    6769    /**
  • zettle-pos-integration/trunk/vendor/psr/http-message/src/UriInterface.php

    r2477105 r2907067  
    11<?php
     2
     3declare(strict_types=1);
     4
    25namespace Psr\Http\Message;
    36
     
    189192     * @throws \InvalidArgumentException for invalid or unsupported schemes.
    190193     */
    191     public function withScheme($scheme);
     194    public function withScheme(string $scheme);
    192195
    193196    /**
     
    205208     * @return static A new instance with the specified user information.
    206209     */
    207     public function withUserInfo($user, $password = null);
     210    public function withUserInfo(string $user, ?string $password = null);
    208211
    209212    /**
     
    219222     * @throws \InvalidArgumentException for invalid hostnames.
    220223     */
    221     public function withHost($host);
     224    public function withHost(string $host);
    222225
    223226    /**
     
    238241     * @throws \InvalidArgumentException for invalid ports.
    239242     */
    240     public function withPort($port);
     243    public function withPort(?int $port);
    241244
    242245    /**
     
    262265     * @throws \InvalidArgumentException for invalid paths.
    263266     */
    264     public function withPath($path);
     267    public function withPath(string $path);
    265268
    266269    /**
     
    279282     * @throws \InvalidArgumentException for invalid query strings.
    280283     */
    281     public function withQuery($query);
     284    public function withQuery(string $query);
    282285
    283286    /**
     
    295298     * @return static A new instance with the specified fragment.
    296299     */
    297     public function withFragment($fragment);
     300    public function withFragment(string $fragment);
    298301
    299302    /**
  • zettle-pos-integration/trunk/zettle-pos-integration.php

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