Changeset 2907067
- Timestamp:
- 05/02/2023 02:49:25 PM (3 years ago)
- Location:
- zettle-pos-integration
- Files:
-
- 14 added
- 98 edited
- 1 copied
-
tags/1.5.6 (copied) (copied from zettle-pos-integration/trunk)
-
tags/1.5.6/modules/inpsyde-queue/src/Bootstrap.php (modified) (2 diffs)
-
tags/1.5.6/modules/zettle-php-sdk/builders.array.php (modified) (2 diffs)
-
tags/1.5.6/modules/zettle-php-sdk/src/API/Inventory/Inventory.php (modified) (10 diffs)
-
tags/1.5.6/modules/zettle-php-sdk/src/API/Inventory/Locations.php (modified) (2 diffs)
-
tags/1.5.6/modules/zettle-php-sdk/src/Bootstrap.php (modified) (2 diffs)
-
tags/1.5.6/modules/zettle-php-sdk/src/DAL/Entity/VariantInventoryState/VariantInventoryState.php (modified) (5 diffs)
-
tags/1.5.6/readme.txt (modified) (3 diffs)
-
tags/1.5.6/vendor/autoload.php (modified) (1 diff)
-
tags/1.5.6/vendor/composer/InstalledVersions.php (modified) (4 diffs)
-
tags/1.5.6/vendor/composer/autoload_classmap.php (modified) (3 diffs)
-
tags/1.5.6/vendor/composer/autoload_real.php (modified) (2 diffs)
-
tags/1.5.6/vendor/composer/autoload_static.php (modified) (5 diffs)
-
tags/1.5.6/vendor/composer/installed.json (modified) (54 diffs)
-
tags/1.5.6/vendor/composer/installed.php (modified) (31 diffs)
-
tags/1.5.6/vendor/nyholm/psr7/phpstan-baseline.neon (added)
-
tags/1.5.6/vendor/nyholm/psr7/psalm.baseline.xml (added)
-
tags/1.5.6/vendor/nyholm/psr7/src/Factory/HttplugFactory.php (modified) (2 diffs)
-
tags/1.5.6/vendor/nyholm/psr7/src/MessageTrait.php (modified) (12 diffs)
-
tags/1.5.6/vendor/nyholm/psr7/src/RequestTrait.php (modified) (4 diffs)
-
tags/1.5.6/vendor/nyholm/psr7/src/Response.php (modified) (1 diff)
-
tags/1.5.6/vendor/nyholm/psr7/src/ServerRequest.php (modified) (8 diffs)
-
tags/1.5.6/vendor/nyholm/psr7/src/Stream.php (modified) (7 diffs)
-
tags/1.5.6/vendor/nyholm/psr7/src/StreamTrait.php (added)
-
tags/1.5.6/vendor/nyholm/psr7/src/UploadedFile.php (modified) (1 diff)
-
tags/1.5.6/vendor/nyholm/psr7/src/Uri.php (modified) (10 diffs)
-
tags/1.5.6/vendor/php-http/client-common/src/PluginChain.php (modified) (2 diffs)
-
tags/1.5.6/vendor/php-http/discovery/src/ClassDiscovery.php (modified) (2 diffs)
-
tags/1.5.6/vendor/php-http/discovery/src/Composer/Plugin.php (modified) (7 diffs)
-
tags/1.5.6/vendor/php-http/discovery/src/Psr17Factory.php (modified) (3 diffs)
-
tags/1.5.6/vendor/php-http/discovery/src/Psr18Client.php (added)
-
tags/1.5.6/vendor/php-http/discovery/src/Strategy/CommonClassesStrategy.php (modified) (6 diffs)
-
tags/1.5.6/vendor/php-http/discovery/src/Strategy/CommonPsr17ClassesStrategy.php (modified) (6 diffs)
-
tags/1.5.6/vendor/php-http/httplug/src/HttpClient.php (modified) (1 diff)
-
tags/1.5.6/vendor/php-http/message-factory/LICENSE (modified) (1 diff)
-
tags/1.5.6/vendor/php-http/message-factory/puli.json (modified) (1 diff)
-
tags/1.5.6/vendor/php-http/message-factory/src/MessageFactory.php (modified) (1 diff)
-
tags/1.5.6/vendor/php-http/message-factory/src/RequestFactory.php (modified) (1 diff)
-
tags/1.5.6/vendor/php-http/message-factory/src/ResponseFactory.php (modified) (1 diff)
-
tags/1.5.6/vendor/php-http/message-factory/src/StreamFactory.php (modified) (2 diffs)
-
tags/1.5.6/vendor/php-http/message-factory/src/UriFactory.php (modified) (2 diffs)
-
tags/1.5.6/vendor/php-http/message/src/Authentication/Wsse.php (modified) (2 diffs)
-
tags/1.5.6/vendor/php-http/message/src/Cookie.php (modified) (1 diff)
-
tags/1.5.6/vendor/php-http/message/src/CookieJar.php (modified) (1 diff)
-
tags/1.5.6/vendor/php-http/message/src/Encoding/FilteredStream.php (modified) (1 diff)
-
tags/1.5.6/vendor/php-http/message/src/UriFactory/GuzzleUriFactory.php (modified) (1 diff)
-
tags/1.5.6/vendor/psr/http-message/docs (added)
-
tags/1.5.6/vendor/psr/http-message/docs/PSR7-Interfaces.md (added)
-
tags/1.5.6/vendor/psr/http-message/docs/PSR7-Usage.md (added)
-
tags/1.5.6/vendor/psr/http-message/src/MessageInterface.php (modified) (8 diffs)
-
tags/1.5.6/vendor/psr/http-message/src/RequestInterface.php (modified) (4 diffs)
-
tags/1.5.6/vendor/psr/http-message/src/ResponseInterface.php (modified) (2 diffs)
-
tags/1.5.6/vendor/psr/http-message/src/ServerRequestInterface.php (modified) (4 diffs)
-
tags/1.5.6/vendor/psr/http-message/src/StreamInterface.php (modified) (5 diffs)
-
tags/1.5.6/vendor/psr/http-message/src/UploadedFileInterface.php (modified) (2 diffs)
-
tags/1.5.6/vendor/psr/http-message/src/UriInterface.php (modified) (8 diffs)
-
tags/1.5.6/zettle-pos-integration.php (modified) (1 diff)
-
trunk/modules/inpsyde-queue/src/Bootstrap.php (modified) (2 diffs)
-
trunk/modules/zettle-php-sdk/builders.array.php (modified) (2 diffs)
-
trunk/modules/zettle-php-sdk/src/API/Inventory/Inventory.php (modified) (10 diffs)
-
trunk/modules/zettle-php-sdk/src/API/Inventory/Locations.php (modified) (2 diffs)
-
trunk/modules/zettle-php-sdk/src/Bootstrap.php (modified) (2 diffs)
-
trunk/modules/zettle-php-sdk/src/DAL/Entity/VariantInventoryState/VariantInventoryState.php (modified) (5 diffs)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/vendor/autoload.php (modified) (1 diff)
-
trunk/vendor/composer/InstalledVersions.php (modified) (4 diffs)
-
trunk/vendor/composer/autoload_classmap.php (modified) (3 diffs)
-
trunk/vendor/composer/autoload_real.php (modified) (2 diffs)
-
trunk/vendor/composer/autoload_static.php (modified) (5 diffs)
-
trunk/vendor/composer/installed.json (modified) (54 diffs)
-
trunk/vendor/composer/installed.php (modified) (31 diffs)
-
trunk/vendor/nyholm/psr7/phpstan-baseline.neon (added)
-
trunk/vendor/nyholm/psr7/psalm.baseline.xml (added)
-
trunk/vendor/nyholm/psr7/src/Factory/HttplugFactory.php (modified) (2 diffs)
-
trunk/vendor/nyholm/psr7/src/MessageTrait.php (modified) (12 diffs)
-
trunk/vendor/nyholm/psr7/src/RequestTrait.php (modified) (4 diffs)
-
trunk/vendor/nyholm/psr7/src/Response.php (modified) (1 diff)
-
trunk/vendor/nyholm/psr7/src/ServerRequest.php (modified) (8 diffs)
-
trunk/vendor/nyholm/psr7/src/Stream.php (modified) (7 diffs)
-
trunk/vendor/nyholm/psr7/src/StreamTrait.php (added)
-
trunk/vendor/nyholm/psr7/src/UploadedFile.php (modified) (1 diff)
-
trunk/vendor/nyholm/psr7/src/Uri.php (modified) (10 diffs)
-
trunk/vendor/php-http/client-common/src/PluginChain.php (modified) (2 diffs)
-
trunk/vendor/php-http/discovery/src/ClassDiscovery.php (modified) (2 diffs)
-
trunk/vendor/php-http/discovery/src/Composer/Plugin.php (modified) (7 diffs)
-
trunk/vendor/php-http/discovery/src/Psr17Factory.php (modified) (3 diffs)
-
trunk/vendor/php-http/discovery/src/Psr18Client.php (added)
-
trunk/vendor/php-http/discovery/src/Strategy/CommonClassesStrategy.php (modified) (6 diffs)
-
trunk/vendor/php-http/discovery/src/Strategy/CommonPsr17ClassesStrategy.php (modified) (6 diffs)
-
trunk/vendor/php-http/httplug/src/HttpClient.php (modified) (1 diff)
-
trunk/vendor/php-http/message-factory/LICENSE (modified) (1 diff)
-
trunk/vendor/php-http/message-factory/puli.json (modified) (1 diff)
-
trunk/vendor/php-http/message-factory/src/MessageFactory.php (modified) (1 diff)
-
trunk/vendor/php-http/message-factory/src/RequestFactory.php (modified) (1 diff)
-
trunk/vendor/php-http/message-factory/src/ResponseFactory.php (modified) (1 diff)
-
trunk/vendor/php-http/message-factory/src/StreamFactory.php (modified) (2 diffs)
-
trunk/vendor/php-http/message-factory/src/UriFactory.php (modified) (2 diffs)
-
trunk/vendor/php-http/message/src/Authentication/Wsse.php (modified) (2 diffs)
-
trunk/vendor/php-http/message/src/Cookie.php (modified) (1 diff)
-
trunk/vendor/php-http/message/src/CookieJar.php (modified) (1 diff)
-
trunk/vendor/php-http/message/src/Encoding/FilteredStream.php (modified) (1 diff)
-
trunk/vendor/php-http/message/src/UriFactory/GuzzleUriFactory.php (modified) (1 diff)
-
trunk/vendor/psr/http-message/docs (added)
-
trunk/vendor/psr/http-message/docs/PSR7-Interfaces.md (added)
-
trunk/vendor/psr/http-message/docs/PSR7-Usage.md (added)
-
trunk/vendor/psr/http-message/src/MessageInterface.php (modified) (8 diffs)
-
trunk/vendor/psr/http-message/src/RequestInterface.php (modified) (4 diffs)
-
trunk/vendor/psr/http-message/src/ResponseInterface.php (modified) (2 diffs)
-
trunk/vendor/psr/http-message/src/ServerRequestInterface.php (modified) (4 diffs)
-
trunk/vendor/psr/http-message/src/StreamInterface.php (modified) (5 diffs)
-
trunk/vendor/psr/http-message/src/UploadedFileInterface.php (modified) (2 diffs)
-
trunk/vendor/psr/http-message/src/UriInterface.php (modified) (8 diffs)
-
trunk/zettle-pos-integration.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
zettle-pos-integration/tags/1.5.6/modules/inpsyde-queue/src/Bootstrap.php
r2477105 r2907067 23 23 { 24 24 global $wpdb; 25 require_once ABSPATH . 'wp-admin/includes/upgrade.php';26 25 //phpcs:disable Inpsyde.CodeQuality.VariablesName.SnakeCaseVar 27 26 $charset_collate = $wpdb->get_charset_collate(); … … 30 29 //phpcs:disable Inpsyde.CodeQuality.LineLength.TooLong 31 30 $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); 33 33 } 34 34 } -
zettle-pos-integration/tags/1.5.6/modules/zettle-php-sdk/builders.array.php
r2532865 r2907067 234 234 static function (array $payload, B $builder): VariantInventoryState { 235 235 return new VariantInventoryState( 236 $payload[' locationUuid'],236 $payload['inventoryUuid'], 237 237 $payload['productUuid'], 238 238 $payload['variantUuid'], 239 $payload['locationType'],240 239 (int) $payload['balance'] 241 240 ); … … 259 258 $key(Inventory::class) => $builder( 260 259 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); 264 263 } 265 264 ), 266 265 $key(Location::class) => $builder( 267 266 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 275 267 return new Location( 276 $payload[' uuid'],277 LocationType::get($payload[' type']),268 $payload['inventoryUuid'], 269 LocationType::get($payload['inventoryType']), 278 270 $payload['name'], 279 $ description,280 $isDefault271 $payload['description'] ?? null, 272 isset($payload['defaultInventory']) && (bool) $payload['defaultInventory'] 281 273 ); 282 274 } -
zettle-pos-integration/tags/1.5.6/modules/zettle-php-sdk/src/API/Inventory/Inventory.php
r2605648 r2907067 75 75 * @param Transaction[] $transactions 76 76 * 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'); 84 82 $changes = []; 85 83 foreach ($transactions as $transaction) { … … 87 85 'productUuid' => $transaction->productUuid(), 88 86 'variantUuid' => $transaction->variantUuid(), 89 'from LocationUuid' => $transaction->fromLocationUuid(),90 'to LocationUuid' => $transaction->toLocationUuid(),87 'from' => $transaction->fromLocationUuid(), 88 'to' => $transaction->toLocationUuid(), 91 89 'change' => $transaction->change(), 92 90 ]; 93 91 } 94 92 $payload = [ 95 ' changes' => $changes,96 ' externalUuid' => $this->integrationUuid,93 'movements' => $changes, 94 'identifier' => $this->integrationUuid, 97 95 ]; 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); 111 98 } 112 99 … … 116 103 * @param int $change 117 104 * 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 122 108 { 123 109 $locations = $this->locations(); … … 130 116 ); 131 117 132 return$this->performTransactions($transaction);118 $this->performTransactions($transaction); 133 119 } 134 120 … … 140 126 * @param int $change 141 127 * 142 * @return InventoryEntity143 128 * @throws ZettleRestException 144 129 */ … … 149 134 string $to, 150 135 int $change 151 ): InventoryEntity{136 ): void { 152 137 153 138 $locations = $this->locations(); … … 161 146 ); 162 147 163 return$this->performTransactions($transaction);148 $this->performTransactions($transaction); 164 149 } 165 150 … … 169 154 * @param int $change 170 155 * 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 175 159 { 176 160 $locations = $this->locations(); … … 183 167 ); 184 168 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'); 197 201 $payload = [ 198 'productUuid' => $productUuid, 202 [ 203 'productUuid' => $productUuid, 204 'tracking' => $enable ? 'enable' : 'disable', 205 ], 199 206 ]; 200 207 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); 241 209 } 242 210 … … 253 221 $locationUuid = $locations[$locationType]->uuid(); 254 222 $url = (string) $this->uri->withPath( 255 "/ organizations/self/inventory/locations/{$locationUuid}/products/{$productUuid}"223 "/v3/stock/{$locationUuid}/products/{$productUuid}" 256 224 ); 257 225 -
zettle-pos-integration/tags/1.5.6/modules/zettle-php-sdk/src/API/Inventory/Locations.php
r2477105 r2907067 44 44 public function all(): array 45 45 { 46 $url = (string) $this->uri->withPath( "/organizations/self/locations");46 $url = (string) $this->uri->withPath('/v3/inventories'); 47 47 48 48 $result = $this->restClient->get($url, []); … … 50 50 foreach ($result as $locationPayload) { 51 51 try { 52 $locations[$locationPayload[' type']] = $this->builder->build(Location::class, $locationPayload);52 $locations[$locationPayload['inventoryType']] = $this->builder->build(Location::class, $locationPayload); 53 53 } catch (BuilderException $exception) { 54 54 // 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 27 27 global $wpdb; 28 28 29 require_once ABSPATH . 'wp-admin/includes/upgrade.php';30 31 29 $this->createTables($wpdb); 32 30 } … … 43 41 //phpcs:disable Inpsyde.CodeQuality.LineLength.TooLong 44 42 $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); 46 45 } 47 46 } -
zettle-pos-integration/tags/1.5.6/modules/zettle-php-sdk/src/DAL/Entity/VariantInventoryState/VariantInventoryState.php
r2477105 r2907067 24 24 25 25 /** 26 * @var string27 */28 private $locationType;29 30 /**31 26 * @var int 32 27 */ … … 39 34 * @param string $productUuid 40 35 * @param string $variantUuid 41 * @param string $locationType42 36 * @param int $balance 43 37 * … … 47 41 string $productUuid, 48 42 string $variantUuid, 49 string $locationType,50 43 int $balance 51 44 ) { … … 53 46 $this->productUuid = $productUuid; 54 47 $this->variantUuid = $variantUuid; 55 $this->locationType = $locationType;56 48 $this->balance = $balance; 57 49 } … … 82 74 83 75 /** 84 * @return string85 */86 public function locationType(): string87 {88 return $this->locationType;89 }90 91 /**92 76 * @return int 93 77 */ -
zettle-pos-integration/tags/1.5.6/readme.txt
r2880545 r2907067 3 3 Tags: payments, point-of-sale, woocommerce, zettle 4 4 Requires at least: 5.4 5 Tested up to: 6. 15 Tested up to: 6.2 6 6 Requires PHP: 7.2 7 Stable tag: 1.5. 57 Stable tag: 1.5.6 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 47 47 = Manual Installation = 48 48 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. 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. 51 51 Go to *Plugins => Installed plugins* and click *Activate* on *Zettle POS Integration for WooCommerce*. 52 52 … … 67 67 68 68 == Changelog == 69 = 1.5.6 = 70 - Migrate to inventory v3 API. 71 - Fixed database migration query error (in Query Monitor logs etc.). 72 69 73 = 1.5.5 = 70 74 - WC High-Performance Order Storage compatibility declaration. -
zettle-pos-integration/tags/1.5.6/vendor/autoload.php
r2880545 r2907067 23 23 require_once __DIR__ . '/composer/autoload_real.php'; 24 24 25 return ComposerAutoloaderInit c811a4d20b8f6333dee0e55f37a2534c::getLoader();25 return ComposerAutoloaderInit1290e29297976b059974a78cf37636fe::getLoader(); -
zettle-pos-integration/tags/1.5.6/vendor/composer/InstalledVersions.php
r2800040 r2907067 99 99 foreach (self::getInstalled() as $installed) { 100 100 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; 102 102 } 103 103 } … … 120 120 public static function satisfies(VersionParser $parser, $packageName, $constraint) 121 121 { 122 $constraint = $parser->parseConstraints( $constraint);122 $constraint = $parser->parseConstraints((string) $constraint); 123 123 $provided = $parser->parseConstraints(self::getVersionRanges($packageName)); 124 124 … … 329 329 $installed[] = self::$installedByVendor[$vendorDir]; 330 330 } 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; 332 334 if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) { 333 335 self::$installed = $installed[count($installed) - 1]; … … 341 343 // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937 342 344 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; 344 348 } else { 345 349 self::$installed = array(); 346 350 } 347 351 } 348 $installed[] = self::$installed; 352 353 if (self::$installed !== array()) { 354 $installed[] = self::$installed; 355 } 349 356 350 357 return $installed; -
zettle-pos-integration/tags/1.5.6/vendor/composer/autoload_classmap.php
r2880545 r2907067 284 284 'Http\\Client\\Promise\\HttpRejectedPromise' => $vendorDir . '/php-http/httplug/src/Promise/HttpRejectedPromise.php', 285 285 'Http\\Discovery\\ClassDiscovery' => $vendorDir . '/php-http/discovery/src/ClassDiscovery.php', 286 'Http\\Discovery\\Composer\\Plugin' => $vendorDir . '/php-http/discovery/src/Composer/Plugin.php',287 286 'Http\\Discovery\\Exception' => $vendorDir . '/php-http/discovery/src/Exception.php', 288 287 'Http\\Discovery\\Exception\\ClassInstantiationFailedException' => $vendorDir . '/php-http/discovery/src/Exception/ClassInstantiationFailedException.php', … … 298 297 'Http\\Discovery\\Psr17Factory' => $vendorDir . '/php-http/discovery/src/Psr17Factory.php', 299 298 'Http\\Discovery\\Psr17FactoryDiscovery' => $vendorDir . '/php-http/discovery/src/Psr17FactoryDiscovery.php', 299 'Http\\Discovery\\Psr18Client' => $vendorDir . '/php-http/discovery/src/Psr18Client.php', 300 300 'Http\\Discovery\\Psr18ClientDiscovery' => $vendorDir . '/php-http/discovery/src/Psr18ClientDiscovery.php', 301 301 'Http\\Discovery\\Strategy\\CommonClassesStrategy' => $vendorDir . '/php-http/discovery/src/Strategy/CommonClassesStrategy.php', … … 1060 1060 'Nyholm\\Psr7\\ServerRequest' => $vendorDir . '/nyholm/psr7/src/ServerRequest.php', 1061 1061 'Nyholm\\Psr7\\Stream' => $vendorDir . '/nyholm/psr7/src/Stream.php', 1062 'Nyholm\\Psr7\\StreamTrait' => $vendorDir . '/nyholm/psr7/src/StreamTrait.php', 1062 1063 'Nyholm\\Psr7\\UploadedFile' => $vendorDir . '/nyholm/psr7/src/UploadedFile.php', 1063 1064 'Nyholm\\Psr7\\Uri' => $vendorDir . '/nyholm/psr7/src/Uri.php', -
zettle-pos-integration/tags/1.5.6/vendor/composer/autoload_real.php
r2880545 r2907067 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit c811a4d20b8f6333dee0e55f37a2534c5 class ComposerAutoloaderInit1290e29297976b059974a78cf37636fe 6 6 { 7 7 private static $loader; … … 25 25 require __DIR__ . '/platform_check.php'; 26 26 27 spl_autoload_register(array('ComposerAutoloaderInit c811a4d20b8f6333dee0e55f37a2534c', 'loadClassLoader'), true, true);27 spl_autoload_register(array('ComposerAutoloaderInit1290e29297976b059974a78cf37636fe', 'loadClassLoader'), true, true); 28 28 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); 29 spl_autoload_unregister(array('ComposerAutoloaderInit c811a4d20b8f6333dee0e55f37a2534c', 'loadClassLoader'));29 spl_autoload_unregister(array('ComposerAutoloaderInit1290e29297976b059974a78cf37636fe', 'loadClassLoader')); 30 30 31 31 require __DIR__ . '/autoload_static.php'; 32 call_user_func(\Composer\Autoload\ComposerStaticInit c811a4d20b8f6333dee0e55f37a2534c::getInitializer($loader));32 call_user_func(\Composer\Autoload\ComposerStaticInit1290e29297976b059974a78cf37636fe::getInitializer($loader)); 33 33 34 34 $loader->setClassMapAuthoritative(true); 35 35 $loader->register(true); 36 36 37 $filesToLoad = \Composer\Autoload\ComposerStaticInit c811a4d20b8f6333dee0e55f37a2534c::$files;37 $filesToLoad = \Composer\Autoload\ComposerStaticInit1290e29297976b059974a78cf37636fe::$files; 38 38 $requireFile = \Closure::bind(static function ($fileIdentifier, $file) { 39 39 if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { -
zettle-pos-integration/tags/1.5.6/vendor/composer/autoload_static.php
r2880545 r2907067 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit c811a4d20b8f6333dee0e55f37a2534c7 class ComposerStaticInit1290e29297976b059974a78cf37636fe 8 8 { 9 9 public static $files = array ( … … 608 608 'Http\\Client\\Promise\\HttpRejectedPromise' => __DIR__ . '/..' . '/php-http/httplug/src/Promise/HttpRejectedPromise.php', 609 609 'Http\\Discovery\\ClassDiscovery' => __DIR__ . '/..' . '/php-http/discovery/src/ClassDiscovery.php', 610 'Http\\Discovery\\Composer\\Plugin' => __DIR__ . '/..' . '/php-http/discovery/src/Composer/Plugin.php',611 610 'Http\\Discovery\\Exception' => __DIR__ . '/..' . '/php-http/discovery/src/Exception.php', 612 611 'Http\\Discovery\\Exception\\ClassInstantiationFailedException' => __DIR__ . '/..' . '/php-http/discovery/src/Exception/ClassInstantiationFailedException.php', … … 622 621 'Http\\Discovery\\Psr17Factory' => __DIR__ . '/..' . '/php-http/discovery/src/Psr17Factory.php', 623 622 'Http\\Discovery\\Psr17FactoryDiscovery' => __DIR__ . '/..' . '/php-http/discovery/src/Psr17FactoryDiscovery.php', 623 'Http\\Discovery\\Psr18Client' => __DIR__ . '/..' . '/php-http/discovery/src/Psr18Client.php', 624 624 'Http\\Discovery\\Psr18ClientDiscovery' => __DIR__ . '/..' . '/php-http/discovery/src/Psr18ClientDiscovery.php', 625 625 'Http\\Discovery\\Strategy\\CommonClassesStrategy' => __DIR__ . '/..' . '/php-http/discovery/src/Strategy/CommonClassesStrategy.php', … … 1384 1384 'Nyholm\\Psr7\\ServerRequest' => __DIR__ . '/..' . '/nyholm/psr7/src/ServerRequest.php', 1385 1385 'Nyholm\\Psr7\\Stream' => __DIR__ . '/..' . '/nyholm/psr7/src/Stream.php', 1386 'Nyholm\\Psr7\\StreamTrait' => __DIR__ . '/..' . '/nyholm/psr7/src/StreamTrait.php', 1386 1387 'Nyholm\\Psr7\\UploadedFile' => __DIR__ . '/..' . '/nyholm/psr7/src/UploadedFile.php', 1387 1388 'Nyholm\\Psr7\\Uri' => __DIR__ . '/..' . '/nyholm/psr7/src/Uri.php', … … 1468 1469 { 1469 1470 return \Closure::bind(function () use ($loader) { 1470 $loader->prefixLengthsPsr4 = ComposerStaticInit c811a4d20b8f6333dee0e55f37a2534c::$prefixLengthsPsr4;1471 $loader->prefixDirsPsr4 = ComposerStaticInit c811a4d20b8f6333dee0e55f37a2534c::$prefixDirsPsr4;1472 $loader->classMap = ComposerStaticInit c811a4d20b8f6333dee0e55f37a2534c::$classMap;1471 $loader->prefixLengthsPsr4 = ComposerStaticInit1290e29297976b059974a78cf37636fe::$prefixLengthsPsr4; 1472 $loader->prefixDirsPsr4 = ComposerStaticInit1290e29297976b059974a78cf37636fe::$prefixDirsPsr4; 1473 $loader->classMap = ComposerStaticInit1290e29297976b059974a78cf37636fe::$classMap; 1473 1474 1474 1475 }, null, ClassLoader::class); -
zettle-pos-integration/tags/1.5.6/vendor/composer/installed.json
r2880545 r2907067 896 896 { 897 897 "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", 900 900 "dist": { 901 901 "type": "path", 902 902 "url": "modules.local/inpsyde-debug", 903 "reference": " f0fe81fd742169fa7dd2b73b0388fae8a73f7ddf"903 "reference": "96d2861520a55393189668498d76c107624b5409" 904 904 }, 905 905 "require": { 906 906 "dhii/module-interface": "^0.2 || ^0.3", 907 907 "ext-json": "*", 908 "php": "^7.2 | ^8.0", 908 909 "psr/log": "^1.1" 909 910 }, … … 932 933 { 933 934 "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", 936 937 "dist": { 937 938 "type": "path", … … 961 962 { 962 963 "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", 965 966 "dist": { 966 967 "type": "path", … … 998 999 { 999 1000 "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", 1002 1003 "dist": { 1003 1004 "type": "path", … … 1034 1035 { 1035 1036 "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", 1038 1039 "dist": { 1039 1040 "type": "path", … … 1220 1221 { 1221 1222 "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", 1224 1225 "dist": { 1225 1226 "type": "path", … … 1254 1255 { 1255 1256 "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", 1258 1259 "dist": { 1259 1260 "type": "path", … … 1357 1358 { 1358 1359 "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", 1361 1362 "dist": { 1362 1363 "type": "path", … … 1382 1383 { 1383 1384 "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", 1386 1387 "dist": { 1387 1388 "type": "path", … … 1412 1413 { 1413 1414 "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", 1416 1417 "dist": { 1417 1418 "type": "path", … … 1451 1452 { 1452 1453 "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", 1455 1456 "dist": { 1456 1457 "type": "path", … … 1475 1476 { 1476 1477 "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", 1479 1480 "dist": { 1480 1481 "type": "path", … … 1513 1514 { 1514 1515 "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", 1517 1518 "dist": { 1518 1519 "type": "path", … … 1555 1556 { 1556 1557 "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", 1559 1560 "dist": { 1560 1561 "type": "path", … … 1579 1580 { 1580 1581 "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", 1583 1584 "dist": { 1584 1585 "type": "path", … … 1604 1605 { 1605 1606 "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", 1608 1609 "dist": { 1609 1610 "type": "path", … … 1629 1630 { 1630 1631 "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", 1633 1634 "dist": { 1634 1635 "type": "path", … … 1653 1654 { 1654 1655 "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", 1657 1658 "dist": { 1658 1659 "type": "path", … … 1678 1679 { 1679 1680 "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", 1682 1683 "dist": { 1683 1684 "type": "path", 1684 1685 "url": "modules.local/zettle-webhooks", 1685 "reference": " 2cb7d964a5540690ff603f4a699cb54ddd476e02"1686 "reference": "4cfb727b02e50c33823faa8f83c2095cdcf6c834" 1686 1687 }, 1687 1688 "require": { … … 1715 1716 { 1716 1717 "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", 1719 1720 "source": { 1720 1721 "type": "git", 1721 1722 "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", 1739 1739 "psr/http-factory": "^1.0", 1740 "psr/http-message": "^1. 0"1740 "psr/http-message": "^1.1 || ^2.0" 1741 1741 }, 1742 1742 "provide": { 1743 "php-http/message-factory-implementation": "1.0", 1743 1744 "psr/http-factory-implementation": "1.0", 1744 1745 "psr/http-message-implementation": "1.0" … … 1746 1747 "require-dev": { 1747 1748 "http-interop/http-factory-tests": "^0.9", 1749 "php-http/message-factory": "^1.0", 1748 1750 "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", 1750 1752 "symfony/error-handler": "^4.4" 1751 1753 }, 1752 "time": "202 2-06-22T07:13:36+00:00",1754 "time": "2023-05-02T11:26:24+00:00", 1753 1755 "type": "library", 1754 1756 "extra": { 1755 1757 "branch-alias": { 1756 "dev-master": "1. 4-dev"1758 "dev-master": "1.8-dev" 1757 1759 } 1758 1760 }, … … 1785 1787 "support": { 1786 1788 "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" 1788 1790 }, 1789 1791 "funding": [ … … 1867 1869 { 1868 1870 "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", 1871 1873 "source": { 1872 1874 "type": "git", 1873 1875 "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", 1880 1882 "shasum": "", 1881 1883 "mirrors": [ … … 1893 1895 "psr/http-client": "^1.0", 1894 1896 "psr/http-factory": "^1.0", 1895 "psr/http-message": "^1.0 ",1897 "psr/http-message": "^1.0 || ^2.0", 1896 1898 "symfony/options-resolver": "~4.0.15 || ~4.1.9 || ^4.2.1 || ^5.0 || ^6.0", 1897 1899 "symfony/polyfill-php80": "^1.17" … … 1903 1905 "phpspec/phpspec": "^5.1 || ^6.3 || ^7.1", 1904 1906 "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" 1906 1908 }, 1907 1909 "suggest": { … … 1912 1914 "php-http/stopwatch-plugin": "Symfony Stopwatch plugin" 1913 1915 }, 1914 "time": "202 2-09-29T09:59:43+00:00",1916 "time": "2023-04-14T13:30:08+00:00", 1915 1917 "type": "library", 1916 "extra": {1917 "branch-alias": {1918 "dev-master": "2.3.x-dev"1919 }1920 },1921 1918 "installation-source": "dist", 1922 1919 "autoload": { … … 1945 1942 "support": { 1946 1943 "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" 1948 1945 }, 1949 1946 "install-path": "../php-http/client-common" … … 1951 1948 { 1952 1949 "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", 1955 1952 "source": { 1956 1953 "type": "git", 1957 1954 "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", 1964 1961 "shasum": "", 1965 1962 "mirrors": [ … … 1977 1974 "php-http/message": "^1.2", 1978 1975 "psr/http-client": "^1.0", 1979 "psr/http-factory ": "^1.0",1976 "psr/http-factory-implementation": "^1.0", 1980 1977 "symfony/options-resolver": "^3.4 || ^4.0 || ^5.0 || ^6.0" 1981 1978 }, … … 1991 1988 "phpunit/phpunit": "^7.5 || ^9.4" 1992 1989 }, 1993 "time": "202 1-12-10T18:02:07+00:00",1990 "time": "2023-04-28T14:56:41+00:00", 1994 1991 "type": "library", 1995 "extra": {1996 "branch-alias": {1997 "dev-master": "2.x-dev"1998 }1999 },2000 1992 "installation-source": "dist", 2001 1993 "autoload": { … … 2023 2015 "support": { 2024 2016 "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" 2026 2018 }, 2027 2019 "install-path": "../php-http/curl-client" … … 2029 2021 { 2030 2022 "name": "php-http/discovery", 2031 "version": "1.1 5.2",2032 "version_normalized": "1.1 5.2.0",2023 "version": "1.17.0", 2024 "version_normalized": "1.17.0.0", 2033 2025 "source": { 2034 2026 "type": "git", 2035 2027 "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", 2042 2034 "shasum": "", 2043 2035 "mirrors": [ … … 2053 2045 }, 2054 2046 "conflict": { 2055 "nyholm/psr7": "<1.0" 2047 "nyholm/psr7": "<1.0", 2048 "zendframework/zend-diactoros": "*" 2056 2049 }, 2057 2050 "provide": { … … 2070 2063 "symfony/phpunit-bridge": "^6.2" 2071 2064 }, 2072 "time": "2023-0 2-11T08:28:41+00:00",2065 "time": "2023-04-26T15:39:13+00:00", 2073 2066 "type": "composer-plugin", 2074 2067 "extra": { … … 2080 2073 "psr-4": { 2081 2074 "Http\\Discovery\\": "src/" 2082 } 2075 }, 2076 "exclude-from-classmap": [ 2077 "src/Composer/Plugin.php" 2078 ] 2083 2079 }, 2084 2080 "notification-url": "https://repo.packagist.com/inpsyde/izettle/downloads/", … … 2106 2102 "support": { 2107 2103 "issues": "https://github.com/php-http/discovery/issues", 2108 "source": "https://github.com/php-http/discovery/tree/1.1 5.2"2104 "source": "https://github.com/php-http/discovery/tree/1.17.0" 2109 2105 }, 2110 2106 "install-path": "../php-http/discovery" … … 2112 2108 { 2113 2109 "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", 2116 2112 "source": { 2117 2113 "type": "git", 2118 2114 "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", 2125 2121 "shasum": "", 2126 2122 "mirrors": [ … … 2135 2131 "php-http/promise": "^1.1", 2136 2132 "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": "202 2-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", 2144 2140 "type": "library", 2145 "extra": {2146 "branch-alias": {2147 "dev-master": "2.x-dev"2148 }2149 },2150 2141 "installation-source": "dist", 2151 2142 "autoload": { … … 2177 2168 "support": { 2178 2169 "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" 2180 2171 }, 2181 2172 "install-path": "../php-http/httplug" … … 2183 2174 { 2184 2175 "name": "php-http/message", 2185 "version": "1.1 3.0",2186 "version_normalized": "1.1 3.0.0",2176 "version": "1.14.0", 2177 "version_normalized": "1.14.0.0", 2187 2178 "source": { 2188 2179 "type": "git", 2189 2180 "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", 2196 2187 "shasum": "", 2197 2188 "mirrors": [ … … 2206 2197 "php": "^7.1 || ^8.0", 2207 2198 "php-http/message-factory": "^1.0.2", 2208 "psr/http-message": "^1.0 "2199 "psr/http-message": "^1.0 || ^2.0" 2209 2200 }, 2210 2201 "provide": { … … 2225 2216 "slim/slim": "Used with Slim Framework PSR-7 implementation" 2226 2217 }, 2227 "time": "202 2-02-11T13:41:14+00:00",2218 "time": "2023-04-14T14:26:18+00:00", 2228 2219 "type": "library", 2229 "extra": {2230 "branch-alias": {2231 "dev-master": "1.10-dev"2232 }2233 },2234 2220 "installation-source": "dist", 2235 2221 "autoload": { … … 2260 2246 "support": { 2261 2247 "issues": "https://github.com/php-http/message/issues", 2262 "source": "https://github.com/php-http/message/tree/1.1 3.0"2248 "source": "https://github.com/php-http/message/tree/1.14.0" 2263 2249 }, 2264 2250 "install-path": "../php-http/message" … … 2266 2252 { 2267 2253 "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", 2270 2256 "source": { 2271 2257 "type": "git", 2272 2258 "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", 2279 2265 "shasum": "", 2280 2266 "mirrors": [ … … 2287 2273 "require": { 2288 2274 "php": ">=5.4", 2289 "psr/http-message": "^1.0 "2290 }, 2291 "time": "20 15-12-19T14:08:53+00:00",2275 "psr/http-message": "^1.0 || ^2.0" 2276 }, 2277 "time": "2023-04-14T14:16:17+00:00", 2292 2278 "type": "library", 2293 2279 "extra": { 2294 2280 "branch-alias": { 2295 "dev-master": "1. 0-dev"2281 "dev-master": "1.x-dev" 2296 2282 } 2297 2283 }, … … 2321 2307 "uri" 2322 2308 ], 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 }, 2323 2313 "install-path": "../php-http/message-factory" 2324 2314 }, … … 2444 2434 { 2445 2435 "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", 2448 2438 "source": { 2449 2439 "type": "git", 2450 2440 "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", 2457 2447 "shasum": "", 2458 2448 "mirrors": [ … … 2465 2455 "require": { 2466 2456 "php": "^7.0 || ^8.0", 2467 "psr/http-message": "^1.0 "2468 }, 2469 "time": "202 0-06-29T06:28:15+00:00",2457 "psr/http-message": "^1.0 || ^2.0" 2458 }, 2459 "time": "2023-04-10T20:12:12+00:00", 2470 2460 "type": "library", 2471 2461 "extra": { … … 2487 2477 { 2488 2478 "name": "PHP-FIG", 2489 "homepage": "http ://www.php-fig.org/"2479 "homepage": "https://www.php-fig.org/" 2490 2480 } 2491 2481 ], … … 2498 2488 "psr-18" 2499 2489 ], 2490 "support": { 2491 "source": "https://github.com/php-fig/http-client/tree/1.0.2" 2492 }, 2500 2493 "install-path": "../psr/http-client" 2501 2494 }, 2502 2495 { 2503 2496 "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", 2506 2499 "source": { 2507 2500 "type": "git", 2508 2501 "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", 2515 2508 "shasum": "", 2516 2509 "mirrors": [ … … 2523 2516 "require": { 2524 2517 "php": ">=7.0.0", 2525 "psr/http-message": "^1.0 "2526 }, 2527 "time": "20 19-04-30T12:38:16+00:00",2518 "psr/http-message": "^1.0 || ^2.0" 2519 }, 2520 "time": "2023-04-10T20:10:41+00:00", 2528 2521 "type": "library", 2529 2522 "extra": { … … 2545 2538 { 2546 2539 "name": "PHP-FIG", 2547 "homepage": "http ://www.php-fig.org/"2540 "homepage": "https://www.php-fig.org/" 2548 2541 } 2549 2542 ], … … 2559 2552 "response" 2560 2553 ], 2554 "support": { 2555 "source": "https://github.com/php-fig/http-factory/tree/1.0.2" 2556 }, 2561 2557 "install-path": "../psr/http-factory" 2562 2558 }, 2563 2559 { 2564 2560 "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", 2567 2563 "source": { 2568 2564 "type": "git", 2569 2565 "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": "20 16-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", 2588 2584 "type": "library", 2589 2585 "extra": { 2590 2586 "branch-alias": { 2591 "dev-master": "1. 0.x-dev"2587 "dev-master": "1.1.x-dev" 2592 2588 } 2593 2589 }, … … 2618 2614 "response" 2619 2615 ], 2616 "support": { 2617 "source": "https://github.com/php-fig/http-message/tree/1.1" 2618 }, 2620 2619 "install-path": "../psr/http-message" 2621 2620 }, -
zettle-pos-integration/tags/1.5.6/vendor/composer/installed.php
r2880545 r2907067 2 2 'root' => array( 3 3 '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', 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 122 122 ), 123 123 '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', 127 127 'type' => 'inpsyde-module', 128 128 'install_path' => __DIR__ . '/../../modules/inpsyde-debug', … … 131 131 ), 132 132 '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', 135 135 'reference' => '2f02780aeb64d9e1314d809964557f720a886353', 136 136 'type' => 'inpsyde-module', … … 140 140 ), 141 141 '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', 144 144 'reference' => 'd7ca097b86c6bf3e84f27897823bcf65ce9a4de2', 145 145 'type' => 'inpsyde-module', … … 149 149 ), 150 150 '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', 153 153 'reference' => '8c1625fb30f5fdbef18aabc650213c7115171ecc', 154 154 'type' => 'inpsyde-module', … … 158 158 ), 159 159 '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', 162 162 'reference' => '48e5c42d626506c65b4eee7c0d1e84bc7c72a8b4', 163 163 'type' => 'inpsyde-module', … … 185 185 ), 186 186 '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', 189 189 'reference' => '0e7c3cdfa343e842cd8ca39c8a36253dd6f39d7c', 190 190 'type' => 'package', … … 194 194 ), 195 195 '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', 198 198 'reference' => '22bd64c5aef17fc0a560025e051bd2286232fd2b', 199 199 'type' => 'inpsyde-module', … … 212 212 ), 213 213 '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', 216 216 'reference' => '11403330a93a7ea1a037ec19ec590ff243ba207e', 217 217 'type' => 'inpsyde-module', … … 221 221 ), 222 222 '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', 225 225 'reference' => 'feea57bf2224d458f67a781d447b8e7273f8d5c6', 226 226 'type' => 'inpsyde-module', … … 230 230 ), 231 231 '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', 234 234 'reference' => '653ce3f20d4ee79d42142daa790cc16775ce7cc4', 235 235 'type' => 'inpsyde-module', … … 239 239 ), 240 240 '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', 243 243 'reference' => '1e0c8c3f511cb369f18831db6dab6def7b75b75c', 244 244 'type' => 'inpsyde-module', … … 248 248 ), 249 249 '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', 252 252 'reference' => '43694f96df2b697f320a8187a293e96ae97e2c3b', 253 253 'type' => 'inpsyde-module', … … 257 257 ), 258 258 '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', 261 261 'reference' => 'aa920e3c81196fb7eb043332130704e2515909a9', 262 262 'type' => 'inpsyde-module', … … 266 266 ), 267 267 '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', 271 271 'type' => 'wordpress-plugin', 272 272 'install_path' => __DIR__ . '/../../', … … 275 275 ), 276 276 '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', 279 279 'reference' => '499afad87e196d258a7196ba18a1f940a5c87deb', 280 280 'type' => 'inpsyde-module', … … 284 284 ), 285 285 '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', 288 288 'reference' => '50c5b69c63cd531b594145c6d333d9c9e99f5f67', 289 289 'type' => 'inpsyde-module', … … 293 293 ), 294 294 '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', 297 297 'reference' => '59797a1ec25eaa0c60bce1e4e02254d7fb9478bc', 298 298 'type' => 'inpsyde-module', … … 302 302 ), 303 303 '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', 306 306 'reference' => '122b3ca56a9e8181b5cb516c28a993bb489de068', 307 307 'type' => 'inpsyde-module', … … 311 311 ), 312 312 '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', 315 315 'reference' => 'f6c7542e1e21b0b7cba00eaf20cb7534c415bbbd', 316 316 'type' => 'inpsyde-module', … … 320 320 ), 321 321 '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', 325 325 'type' => 'inpsyde-module', 326 326 'install_path' => __DIR__ . '/../../modules/zettle-webhooks', … … 329 329 ), 330 330 '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', 334 334 'type' => 'library', 335 335 'install_path' => __DIR__ . '/../nyholm/psr7', … … 354 354 ), 355 355 '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', 359 359 'type' => 'library', 360 360 'install_path' => __DIR__ . '/../php-http/client-common', … … 370 370 ), 371 371 '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', 375 375 'type' => 'library', 376 376 'install_path' => __DIR__ . '/../php-http/curl-client', … … 379 379 ), 380 380 'php-http/discovery' => array( 381 'pretty_version' => '1.1 5.2',382 'version' => '1.1 5.2.0',383 'reference' => ' 5cc428320191ac1d0b6520034c2dc0698628ced5',381 'pretty_version' => '1.17.0', 382 'version' => '1.17.0.0', 383 'reference' => 'bd810d15957cf165230e65d9e1a130793265e3b7', 384 384 'type' => 'composer-plugin', 385 385 'install_path' => __DIR__ . '/../php-http/discovery', … … 388 388 ), 389 389 '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', 393 393 'type' => 'library', 394 394 'install_path' => __DIR__ . '/../php-http/httplug', … … 397 397 ), 398 398 'php-http/message' => array( 399 'pretty_version' => '1.1 3.0',400 'version' => '1.1 3.0.0',401 'reference' => ' 7886e647a30a966a1a8d1dad1845b71ca8678361',399 'pretty_version' => '1.14.0', 400 'version' => '1.14.0.0', 401 'reference' => '2ccee04a28c3d98eb3f2b85ce1e2fcff70c0e63b', 402 402 'type' => 'library', 403 403 'install_path' => __DIR__ . '/../php-http/message', … … 406 406 ), 407 407 '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', 411 411 'type' => 'library', 412 412 'install_path' => __DIR__ . '/../php-http/message-factory', … … 439 439 ), 440 440 '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', 444 444 'type' => 'library', 445 445 'install_path' => __DIR__ . '/../psr/http-client', … … 456 456 ), 457 457 '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', 461 461 'type' => 'library', 462 462 'install_path' => __DIR__ . '/../psr/http-factory', … … 472 472 ), 473 473 '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', 477 477 'type' => 'library', 478 478 'install_path' => __DIR__ . '/../psr/http-message', -
zettle-pos-integration/tags/1.5.6/vendor/nyholm/psr7/src/Factory/HttplugFactory.php
r2800040 r2907067 12 12 use Psr\Http\Message\UriInterface; 13 13 14 if (!\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 14 20 /** 15 21 * @author Tobias Nyholm <tobias.nyholm@gmail.com> … … 17 23 * 18 24 * @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 19 27 */ 20 28 class HttplugFactory implements MessageFactory, StreamFactory, UriFactory -
zettle-pos-integration/tags/1.5.6/vendor/nyholm/psr7/src/MessageTrait.php
r2501019 r2907067 5 5 namespace Nyholm\Psr7; 6 6 7 use Psr\Http\Message\MessageInterface; 7 8 use Psr\Http\Message\StreamInterface; 8 9 … … 35 36 } 36 37 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 39 47 if ($this->protocol === $version) { 40 48 return $this; … … 42 50 43 51 $new = clone $this; 44 $new->protocol = $version;52 $new->protocol = (string) $version; 45 53 46 54 return $new; … … 59 67 public function getHeader($header): array 60 68 { 69 if (!\is_string($header)) { 70 throw new \InvalidArgumentException('Header name must be an RFC 7230 compatible string'); 71 } 72 61 73 $header = \strtr($header, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz'); 62 74 if (!isset($this->headerNames[$header])) { … … 74 86 } 75 87 76 public function withHeader($header, $value): self 88 /** 89 * @return static 90 */ 91 public function withHeader($header, $value): MessageInterface 77 92 { 78 93 $value = $this->validateAndTrimHeader($header, $value); … … 89 104 } 90 105 91 public function withAddedHeader($header, $value): self 106 /** 107 * @return static 108 */ 109 public function withAddedHeader($header, $value): MessageInterface 92 110 { 93 111 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'); 95 113 } 96 114 … … 101 119 } 102 120 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 105 130 $normalized = \strtr($header, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz'); 106 131 if (!isset($this->headerNames[$normalized])) { … … 124 149 } 125 150 126 public function withBody(StreamInterface $body): self 151 /** 152 * @return static 153 */ 154 public function withBody(StreamInterface $body): MessageInterface 127 155 { 128 156 if ($body === $this->stream) { … … 176 204 private function validateAndTrimHeader($header, $values): array 177 205 { 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'); 180 208 } 181 209 … … 183 211 // This is simple, just one value. 184 212 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'); 186 214 } 187 215 … … 190 218 191 219 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'); 193 221 } 194 222 … … 196 224 $returnValues = []; 197 225 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'); 200 228 } 201 229 -
zettle-pos-integration/tags/1.5.6/vendor/nyholm/psr7/src/RequestTrait.php
r2477105 r2907067 5 5 namespace Nyholm\Psr7; 6 6 7 use Psr\Http\Message\RequestInterface; 7 8 use Psr\Http\Message\UriInterface; 8 9 … … 41 42 } 42 43 43 public function withRequestTarget($requestTarget): self 44 /** 45 * @return static 46 */ 47 public function withRequestTarget($requestTarget): RequestInterface 44 48 { 49 if (!\is_string($requestTarget)) { 50 throw new \InvalidArgumentException('Request target must be a string'); 51 } 52 45 53 if (\preg_match('#\s#', $requestTarget)) { 46 54 throw new \InvalidArgumentException('Invalid request target provided; cannot contain whitespace'); … … 58 66 } 59 67 60 public function withMethod($method): self 68 /** 69 * @return static 70 */ 71 public function withMethod($method): RequestInterface 61 72 { 62 73 if (!\is_string($method)) { … … 75 86 } 76 87 77 public function withUri(UriInterface $uri, $preserveHost = false): self 88 /** 89 * @return static 90 */ 91 public function withUri(UriInterface $uri, $preserveHost = false): RequestInterface 78 92 { 79 93 if ($uri === $this->uri) { -
zettle-pos-integration/tags/1.5.6/vendor/nyholm/psr7/src/Response.php
r2501019 r2907067 68 68 } 69 69 70 public function withStatus($code, $reasonPhrase = ''): self 70 /** 71 * @return static 72 */ 73 public function withStatus($code, $reasonPhrase = ''): ResponseInterface 71 74 { 72 75 if (!\is_int($code) && !\is_string($code)) { -
zettle-pos-integration/tags/1.5.6/vendor/nyholm/psr7/src/ServerRequest.php
r2800040 r2907067 57 57 $this->setHeaders($headers); 58 58 $this->protocol = $version; 59 \parse_str($uri->getQuery(), $this->queryParams); 59 60 60 61 if (!$this->hasHeader('Host')) { … … 81 82 * @return static 82 83 */ 83 public function withUploadedFiles(array $uploadedFiles) 84 public function withUploadedFiles(array $uploadedFiles): ServerRequestInterface 84 85 { 85 86 $new = clone $this; … … 97 98 * @return static 98 99 */ 99 public function withCookieParams(array $cookies) 100 public function withCookieParams(array $cookies): ServerRequestInterface 100 101 { 101 102 $new = clone $this; … … 113 114 * @return static 114 115 */ 115 public function withQueryParams(array $query) 116 public function withQueryParams(array $query): ServerRequestInterface 116 117 { 117 118 $new = clone $this; … … 132 133 * @return static 133 134 */ 134 public function withParsedBody($data) 135 public function withParsedBody($data): ServerRequestInterface 135 136 { 136 137 if (!\is_array($data) && !\is_object($data) && null !== $data) { … … 154 155 public function getAttribute($attribute, $default = null) 155 156 { 157 if (!\is_string($attribute)) { 158 throw new \InvalidArgumentException('Attribute name must be a string'); 159 } 160 156 161 if (false === \array_key_exists($attribute, $this->attributes)) { 157 162 return $default; … … 161 166 } 162 167 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 165 177 $new = clone $this; 166 178 $new->attributes[$attribute] = $value; … … 169 181 } 170 182 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 173 192 if (false === \array_key_exists($attribute, $this->attributes)) { 174 193 return $this; -
zettle-pos-integration/tags/1.5.6/vendor/nyholm/psr7/src/Stream.php
r2800040 r2907067 6 6 7 7 use Psr\Http\Message\StreamInterface; 8 use Symfony\Component\Debug\ErrorHandler as SymfonyLegacyErrorHandler;9 use Symfony\Component\ErrorHandler\ErrorHandler as SymfonyErrorHandler;10 8 11 9 /** … … 18 16 class Stream implements StreamInterface 19 17 { 18 use StreamTrait; 19 20 20 /** @var resource|null A resource reference */ 21 21 private $stream; … … 52 52 ]; 53 53 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']]); 56 68 } 57 69 … … 70 82 71 83 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); 89 99 } 90 100 … … 97 107 } 98 108 99 /**100 * @return string101 */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 128 109 public function close(): void 129 110 { … … 292 273 public function getMetadata($key = null) 293 274 { 275 if (null !== $key && !\is_string($key)) { 276 throw new \InvalidArgumentException('Metadata key must be a string'); 277 } 278 294 279 if (!isset($this->stream)) { 295 280 return $key ? null : []; … … 304 289 return $meta[$key] ?? null; 305 290 } 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 } 306 391 } -
zettle-pos-integration/tags/1.5.6/vendor/nyholm/psr7/src/UploadedFile.php
r2800040 r2907067 59 59 { 60 60 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'); 62 62 } 63 63 -
zettle-pos-integration/tags/1.5.6/vendor/nyholm/psr7/src/Uri.php
r2560431 r2907067 26 26 private const CHAR_SUB_DELIMS = '!\$&\'\(\)\*\+,;='; 27 27 28 private const CHAR_GEN_DELIMS = ':\/\?#\[\]@'; 29 28 30 /** @var string Uri scheme. */ 29 31 private $scheme = ''; … … 113 115 public function getPath(): string 114 116 { 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; 116 131 } 117 132 … … 126 141 } 127 142 128 public function withScheme($scheme): self 143 /** 144 * @return static 145 */ 146 public function withScheme($scheme): UriInterface 129 147 { 130 148 if (!\is_string($scheme)) { … … 143 161 } 144 162 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); 148 173 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); 150 179 } 151 180 … … 160 189 } 161 190 162 public function withHost($host): self 191 /** 192 * @return static 193 */ 194 public function withHost($host): UriInterface 163 195 { 164 196 if (!\is_string($host)) { … … 176 208 } 177 209 178 public function withPort($port): self 210 /** 211 * @return static 212 */ 213 public function withPort($port): UriInterface 179 214 { 180 215 if ($this->port === $port = $this->filterPort($port)) { … … 188 223 } 189 224 190 public function withPath($path): self 225 /** 226 * @return static 227 */ 228 public function withPath($path): UriInterface 191 229 { 192 230 if ($this->path === $path = $this->filterPath($path)) { … … 200 238 } 201 239 202 public function withQuery($query): self 240 /** 241 * @return static 242 */ 243 public function withQuery($query): UriInterface 203 244 { 204 245 if ($this->query === $query = $this->filterQueryAndFragment($query)) { … … 212 253 } 213 254 214 public function withFragment($fragment): self 255 /** 256 * @return static 257 */ 258 public function withFragment($fragment): UriInterface 215 259 { 216 260 if ($this->fragment === $fragment = $this->filterQueryAndFragment($fragment)) { … … 281 325 282 326 $port = (int) $port; 283 if (0 > $port || 0x ffff< $port) {327 if (0 > $port || 0xFFFF < $port) { 284 328 throw new \InvalidArgumentException(\sprintf('Invalid port: %d. Must be between 0 and 65535', $port)); 285 329 } -
zettle-pos-integration/tags/1.5.6/vendor/php-http/client-common/src/PluginChain.php
r2800040 r2907067 4 4 5 5 namespace Http\Client\Common; 6 7 use function array_reverse;8 6 9 7 use Http\Client\Common\Exception\LoopException; … … 40 38 { 41 39 $lastCallable = $this->clientCallable; 42 $reversedPlugins = array_reverse($this->plugins);40 $reversedPlugins = \array_reverse($this->plugins); 43 41 44 42 foreach ($reversedPlugins as $plugin) { -
zettle-pos-integration/tags/1.5.6/vendor/php-http/discovery/src/ClassDiscovery.php
r2800040 r2907067 23 23 */ 24 24 private static $strategies = [ 25 Strategy\GeneratedDiscoveryStrategy::class, 25 26 Strategy\CommonClassesStrategy::class, 26 27 Strategy\CommonPsr17ClassesStrategy::class, … … 55 56 } 56 57 58 static $skipStrategy; 59 $skipStrategy ?? $skipStrategy = self::safeClassExists(Strategy\GeneratedDiscoveryStrategy::class) ? false : Strategy\GeneratedDiscoveryStrategy::class; 60 57 61 $exceptions = []; 58 62 foreach (self::$strategies as $strategy) { 63 if ($skipStrategy === $strategy) { 64 continue; 65 } 66 59 67 try { 60 $candidates = call_user_func($strategy.'::getCandidates',$type);68 $candidates = $strategy::getCandidates($type); 61 69 } catch (StrategyUnavailableException $e) { 62 70 if (!isset(self::$deprecatedStrategies[$strategy])) { -
zettle-pos-integration/tags/1.5.6/vendor/php-http/discovery/src/Composer/Plugin.php
r2880545 r2907067 19 19 use Composer\Script\Event; 20 20 use Composer\Script\ScriptEvents; 21 use Composer\Util\Filesystem; 22 use Http\Discovery\ClassDiscovery; 21 23 22 24 /** … … 75 77 'laminas/laminas-diactoros' => [], 76 78 'phalcon/cphalcon:^4' => [], 77 'zendframework/zend-diactoros:>=2' => [],78 79 'http-interop/http-factory-guzzle' => [], 79 80 'http-interop/http-factory-diactoros' => [], … … 96 97 'php-http/artax-adapter' => 'amphp/artax:^3', 97 98 'http-interop/http-factory-guzzle' => 'guzzlehttp/psr7:^1', 98 'http-interop/http-factory-diactoros' => 'zendframework/zend-diactoros:^1',99 99 'http-interop/http-factory-slim' => 'slim/slim:^3', 100 100 ]; 101 101 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 102 122 public static function getSubscribedEvents(): array 103 123 { 104 124 return [ 125 ScriptEvents::PRE_AUTOLOAD_DUMP => 'preAutoloadDump', 105 126 ScriptEvents::POST_UPDATE_CMD => 'postUpdate', 106 127 ]; … … 188 209 } 189 210 190 $versionSelector = new VersionSelector( class_exists(RepositorySet::class) ? new RepositorySet() : new Pool());211 $versionSelector = new VersionSelector(ClassDiscovery::safeClassExists(RepositorySet::class) ? new RepositorySet() : new Pool()); 191 212 $updateComposerJson = false; 192 213 … … 237 258 $versionParser = new VersionParser(); 238 259 239 if ( class_exists(\Phalcon\Http\Message\RequestFactory::class, false)) {260 if (ClassDiscovery::safeClassExists(\Phalcon\Http\Message\RequestFactory::class, false)) { 240 261 $missingRequires[0]['psr/http-factory-implementation'] = []; 241 262 $missingRequires[1]['psr/http-factory-implementation'] = []; … … 336 357 } 337 358 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 397 namespace Http\Discovery\Strategy; 398 399 class GeneratedDiscoveryStrategy implements DiscoveryStrategy 400 { 401 public static function getCandidates(\$type) 402 { 403 switch (\$type) { 404 $candidates 405 default: return []; 406 } 407 } 408 } 409 410 EOPHP 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 338 423 private function updateComposerJson(array $missingRequires, bool $sortPackages) 339 424 { … … 361 446 $composerJson = file_get_contents(Factory::getComposerFile()); 362 447 $lockFile = new JsonFile($lock, null, $io); 363 $locker = class_exists(RepositorySet::class)448 $locker = ClassDiscovery::safeClassExists(RepositorySet::class) 364 449 ? new Locker($io, $lockFile, $composer->getInstallationManager(), $composerJson) 365 450 : 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 185 185 186 186 $headers = []; 187 foreach ($server as $k ey => $value) {188 if (0 === strpos($k ey, 'HTTP_')) {189 $k ey = substr($key, 5);190 } elseif (!\in_array($k ey, ['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)) { 191 191 continue; 192 192 } 193 $k ey = str_replace(' ', '-', ucwords(strtolower(str_replace('_', ' ', $key))));194 195 $headers[$k ey] = $value;193 $k = str_replace(' ', '-', ucwords(strtolower(str_replace('_', ' ', $k)))); 194 195 $headers[$k] = $v; 196 196 } 197 197 … … 206 206 } 207 207 208 foreach ($headers as $k ey => $value) {208 foreach ($headers as $k => $v) { 209 209 try { 210 $request = $request->withHeader($k ey, $value);210 $request = $request->withHeader($k, $v); 211 211 } catch (\InvalidArgumentException $e) { 212 212 // ignore invalid headers … … 258 258 private function normalizeFiles(array $files): array 259 259 { 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) { 266 262 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); 274 268 } 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; 281 302 } 282 303 } -
zettle-pos-integration/tags/1.5.6/vendor/php-http/discovery/src/Strategy/CommonClassesStrategy.php
r2880545 r2907067 13 13 use Http\Adapter\Guzzle7\Client as Guzzle7; 14 14 use Http\Adapter\React\Client as React; 15 use Http\Adapter\Zend\Client as Zend;16 15 use Http\Client\Curl\Client as Curl; 17 16 use Http\Client\HttpAsyncClient; … … 42 41 use Symfony\Component\HttpClient\HttplugClient as SymfonyHttplug; 43 42 use Symfony\Component\HttpClient\Psr18Client as SymfonyPsr18; 44 use Zend\Diactoros\Request as ZendDiactorosRequest;45 43 46 44 /** … … 60 58 ['class' => NyholmHttplugFactory::class, 'condition' => [NyholmHttplugFactory::class]], 61 59 ['class' => GuzzleMessageFactory::class, 'condition' => [GuzzleRequest::class, GuzzleMessageFactory::class]], 62 ['class' => DiactorosMessageFactory::class, 'condition' => [ZendDiactorosRequest::class, DiactorosMessageFactory::class]],63 60 ['class' => DiactorosMessageFactory::class, 'condition' => [DiactorosRequest::class, DiactorosMessageFactory::class]], 64 61 ['class' => SlimMessageFactory::class, 'condition' => [SlimRequest::class, SlimMessageFactory::class]], … … 67 64 ['class' => NyholmHttplugFactory::class, 'condition' => [NyholmHttplugFactory::class]], 68 65 ['class' => GuzzleStreamFactory::class, 'condition' => [GuzzleRequest::class, GuzzleStreamFactory::class]], 69 ['class' => DiactorosStreamFactory::class, 'condition' => [ZendDiactorosRequest::class, DiactorosStreamFactory::class]],70 66 ['class' => DiactorosStreamFactory::class, 'condition' => [DiactorosRequest::class, DiactorosStreamFactory::class]], 71 67 ['class' => SlimStreamFactory::class, 'condition' => [SlimRequest::class, SlimStreamFactory::class]], … … 74 70 ['class' => NyholmHttplugFactory::class, 'condition' => [NyholmHttplugFactory::class]], 75 71 ['class' => GuzzleUriFactory::class, 'condition' => [GuzzleRequest::class, GuzzleUriFactory::class]], 76 ['class' => DiactorosUriFactory::class, 'condition' => [ZendDiactorosRequest::class, DiactorosUriFactory::class]],77 72 ['class' => DiactorosUriFactory::class, 'condition' => [DiactorosRequest::class, DiactorosUriFactory::class]], 78 73 ['class' => SlimUriFactory::class, 'condition' => [SlimRequest::class, SlimUriFactory::class]], … … 95 90 ['class' => React::class, 'condition' => React::class], 96 91 ['class' => Cake::class, 'condition' => Cake::class], 97 ['class' => Zend::class, 'condition' => Zend::class],98 92 ['class' => Artax::class, 'condition' => Artax::class], 99 93 [ -
zettle-pos-integration/tags/1.5.6/vendor/php-http/discovery/src/Strategy/CommonPsr17ClassesStrategy.php
r2880545 r2907067 26 26 'Phalcon\Http\Message\RequestFactory', 27 27 'Nyholm\Psr7\Factory\Psr17Factory', 28 'Zend\Diactoros\RequestFactory',29 28 'GuzzleHttp\Psr7\HttpFactory', 30 29 'Http\Factory\Diactoros\RequestFactory', … … 37 36 'Phalcon\Http\Message\ResponseFactory', 38 37 'Nyholm\Psr7\Factory\Psr17Factory', 39 'Zend\Diactoros\ResponseFactory',40 38 'GuzzleHttp\Psr7\HttpFactory', 41 39 'Http\Factory\Diactoros\ResponseFactory', … … 48 46 'Phalcon\Http\Message\ServerRequestFactory', 49 47 'Nyholm\Psr7\Factory\Psr17Factory', 50 'Zend\Diactoros\ServerRequestFactory',51 48 'GuzzleHttp\Psr7\HttpFactory', 52 49 'Http\Factory\Diactoros\ServerRequestFactory', … … 59 56 'Phalcon\Http\Message\StreamFactory', 60 57 'Nyholm\Psr7\Factory\Psr17Factory', 61 'Zend\Diactoros\StreamFactory',62 58 'GuzzleHttp\Psr7\HttpFactory', 63 59 'Http\Factory\Diactoros\StreamFactory', … … 70 66 'Phalcon\Http\Message\UploadedFileFactory', 71 67 'Nyholm\Psr7\Factory\Psr17Factory', 72 'Zend\Diactoros\UploadedFileFactory',73 68 'GuzzleHttp\Psr7\HttpFactory', 74 69 'Http\Factory\Diactoros\UploadedFileFactory', … … 81 76 'Phalcon\Http\Message\UriFactory', 82 77 'Nyholm\Psr7\Factory\Psr17Factory', 83 'Zend\Diactoros\UriFactory',84 78 'GuzzleHttp\Psr7\HttpFactory', 85 79 'Http\Factory\Diactoros\UriFactory', -
zettle-pos-integration/tags/1.5.6/vendor/php-http/httplug/src/HttpClient.php
r2477105 r2907067 10 10 * Provide the Httplug HttpClient interface for BC. 11 11 * 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/ 12 14 */ 13 15 interface 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>1 Copyright (c) 2015-2016 PHP HTTP Team <team@php-http.org> 2 2 3 3 Permission 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 1 1 { 2 2 "version": "1.0", 3 "name": "php-http/message-factory", 3 4 "binding-types": { 4 5 "Http\\Message\\MessageFactory": { -
zettle-pos-integration/tags/1.5.6/vendor/php-http/message-factory/src/MessageFactory.php
r2477105 r2907067 7 7 * 8 8 * @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. 9 11 */ 10 12 interface MessageFactory extends RequestFactory, ResponseFactory -
zettle-pos-integration/tags/1.5.6/vendor/php-http/message-factory/src/RequestFactory.php
r2477105 r2907067 11 11 * 12 12 * @author Márk Sági-Kazár <mark.sagikazar@gmail.com> 13 * 14 * @deprecated since version 1.1, use Psr\Http\Message\RequestFactoryInterface instead. 13 15 */ 14 16 interface RequestFactory -
zettle-pos-integration/tags/1.5.6/vendor/php-http/message-factory/src/ResponseFactory.php
r2477105 r2907067 12 12 * 13 13 * @author Márk Sági-Kazár <mark.sagikazar@gmail.com> 14 * 15 * @deprecated since version 1.1, use Psr\Http\Message\ResponseFactoryInterface instead. 14 16 */ 15 17 interface ResponseFactory -
zettle-pos-integration/tags/1.5.6/vendor/php-http/message-factory/src/StreamFactory.php
r2477105 r2907067 9 9 * 10 10 * @author Márk Sági-Kazár <mark.sagikazar@gmail.com> 11 * 12 * @deprecated since version 1.1, use Psr\Http\Message\StreamFactoryInterface instead. 11 13 */ 12 14 interface StreamFactory … … 19 21 * @return StreamInterface 20 22 * 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 23 25 */ 24 26 public function createStream($body = null); -
zettle-pos-integration/tags/1.5.6/vendor/php-http/message-factory/src/UriFactory.php
r2477105 r2907067 9 9 * 10 10 * @author Márk Sági-Kazár <mark.sagikazar@gmail.com> 11 * 12 * @deprecated since version 1.1, use Psr\Http\Message\UriFactoryInterface instead. 11 13 */ 12 14 interface UriFactory … … 19 21 * @return UriInterface 20 22 * 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 22 24 */ 23 25 public function createUri($uri); -
zettle-pos-integration/tags/1.5.6/vendor/php-http/message/src/Authentication/Wsse.php
r2477105 r2907067 4 4 5 5 use Http\Message\Authentication; 6 use InvalidArgumentException;7 6 use Psr\Http\Message\RequestInterface; 8 7 … … 39 38 $this->password = $password; 40 39 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)); 42 41 } 43 42 $this->hashAlgorithm = $hashAlgorithm; -
zettle-pos-integration/tags/1.5.6/vendor/php-http/message/src/Cookie.php
r2477105 r2907067 400 400 * This does not compare the values, only name, domain and path. 401 401 * 402 * @param Cookie $cookie403 *404 402 * @return bool 405 403 */ -
zettle-pos-integration/tags/1.5.6/vendor/php-http/message/src/CookieJar.php
r2800040 r2907067 11 11 { 12 12 /** 13 * @var \SplObjectStorage< object, mixed>13 * @var \SplObjectStorage<Cookie, mixed> 14 14 */ 15 15 private $cookies; -
zettle-pos-integration/tags/1.5.6/vendor/php-http/message/src/Encoding/FilteredStream.php
r2477105 r2907067 18 18 seek as private doSeek; 19 19 } 20 const BUFFER_SIZE = 8192;20 public const BUFFER_SIZE = 8192; 21 21 22 22 /** -
zettle-pos-integration/tags/1.5.6/vendor/php-http/message/src/UriFactory/GuzzleUriFactory.php
r2538456 r2907067 3 3 namespace Http\Message\UriFactory; 4 4 5 use function GuzzleHttp\Psr7\uri_for;6 5 use GuzzleHttp\Psr7\Utils; 7 6 use Http\Message\UriFactory; 7 8 use function GuzzleHttp\Psr7\uri_for; 8 9 9 10 /** -
zettle-pos-integration/tags/1.5.6/vendor/psr/http-message/src/MessageInterface.php
r2477105 r2907067 1 1 <?php 2 3 declare(strict_types=1); 2 4 3 5 namespace Psr\Http\Message; … … 39 41 * @return static 40 42 */ 41 public function withProtocolVersion( $version);43 public function withProtocolVersion(string $version); 42 44 43 45 /** … … 76 78 * no matching header name is found in the message. 77 79 */ 78 public function hasHeader( $name);80 public function hasHeader(string $name); 79 81 80 82 /** … … 92 94 * return an empty array. 93 95 */ 94 public function getHeader( $name);96 public function getHeader(string $name); 95 97 96 98 /** … … 113 115 * the message, this method MUST return an empty string. 114 116 */ 115 public function getHeaderLine( $name);117 public function getHeaderLine(string $name); 116 118 117 119 /** … … 130 132 * @throws \InvalidArgumentException for invalid header names or values. 131 133 */ 132 public function withHeader( $name, $value);134 public function withHeader(string $name, $value); 133 135 134 136 /** … … 148 150 * @throws \InvalidArgumentException for invalid header names or values. 149 151 */ 150 public function withAddedHeader( $name, $value);152 public function withAddedHeader(string $name, $value); 151 153 152 154 /** … … 162 164 * @return static 163 165 */ 164 public function withoutHeader( $name);166 public function withoutHeader(string $name); 165 167 166 168 /** -
zettle-pos-integration/tags/1.5.6/vendor/psr/http-message/src/RequestInterface.php
r2477105 r2907067 1 1 <?php 2 3 declare(strict_types=1); 2 4 3 5 namespace Psr\Http\Message; … … 56 58 * @link http://tools.ietf.org/html/rfc7230#section-5.3 (for the various 57 59 * request-target forms allowed in request messages) 58 * @param mixed$requestTarget60 * @param string $requestTarget 59 61 * @return static 60 62 */ 61 public function withRequestTarget( $requestTarget);63 public function withRequestTarget(string $requestTarget); 62 64 63 65 /** … … 83 85 * @throws \InvalidArgumentException for invalid HTTP methods. 84 86 */ 85 public function withMethod( $method);87 public function withMethod(string $method); 86 88 87 89 /** … … 126 128 * @return static 127 129 */ 128 public function withUri(UriInterface $uri, $preserveHost = false);130 public function withUri(UriInterface $uri, bool $preserveHost = false); 129 131 } -
zettle-pos-integration/tags/1.5.6/vendor/psr/http-message/src/ResponseInterface.php
r2477105 r2907067 1 1 <?php 2 3 declare(strict_types=1); 2 4 3 5 namespace Psr\Http\Message; … … 50 52 * @throws \InvalidArgumentException For invalid status code arguments. 51 53 */ 52 public function withStatus( $code,$reasonPhrase = '');54 public function withStatus(int $code, string $reasonPhrase = ''); 53 55 54 56 /** -
zettle-pos-integration/tags/1.5.6/vendor/psr/http-message/src/ServerRequestInterface.php
r2477105 r2907067 1 1 <?php 2 3 declare(strict_types=1); 2 4 3 5 namespace Psr\Http\Message; … … 225 227 * @return mixed 226 228 */ 227 public function getAttribute( $name, $default = null);229 public function getAttribute(string $name, $default = null); 228 230 229 231 /** … … 242 244 * @return static 243 245 */ 244 public function withAttribute( $name, $value);246 public function withAttribute(string $name, $value); 245 247 246 248 /** … … 258 260 * @return static 259 261 */ 260 public function withoutAttribute( $name);262 public function withoutAttribute(string $name); 261 263 } -
zettle-pos-integration/tags/1.5.6/vendor/psr/http-message/src/StreamInterface.php
r2477105 r2907067 1 1 <?php 2 3 declare(strict_types=1); 2 4 3 5 namespace Psr\Http\Message; … … 85 87 * @throws \RuntimeException on failure. 86 88 */ 87 public function seek( $offset,$whence = SEEK_SET);89 public function seek(int $offset, int $whence = SEEK_SET); 88 90 89 91 /** … … 113 115 * @throws \RuntimeException on failure. 114 116 */ 115 public function write( $string);117 public function write(string $string); 116 118 117 119 /** … … 132 134 * @throws \RuntimeException if an error occurs. 133 135 */ 134 public function read( $length);136 public function read(int $length); 135 137 136 138 /** … … 150 152 * 151 153 * @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. 153 155 * @return array|mixed|null Returns an associative array if no key is 154 156 * provided. Returns a specific key value if a key is provided and the 155 157 * value is found, or null if the key is not found. 156 158 */ 157 public function getMetadata( $key = null);159 public function getMetadata(?string $key = null); 158 160 } -
zettle-pos-integration/tags/1.5.6/vendor/psr/http-message/src/UploadedFileInterface.php
r2477105 r2907067 1 1 <?php 2 3 declare(strict_types=1); 2 4 3 5 namespace Psr\Http\Message; … … 63 65 * the second or subsequent call to the method. 64 66 */ 65 public function moveTo( $targetPath);67 public function moveTo(string $targetPath); 66 68 67 69 /** -
zettle-pos-integration/tags/1.5.6/vendor/psr/http-message/src/UriInterface.php
r2477105 r2907067 1 1 <?php 2 3 declare(strict_types=1); 4 2 5 namespace Psr\Http\Message; 3 6 … … 189 192 * @throws \InvalidArgumentException for invalid or unsupported schemes. 190 193 */ 191 public function withScheme( $scheme);194 public function withScheme(string $scheme); 192 195 193 196 /** … … 205 208 * @return static A new instance with the specified user information. 206 209 */ 207 public function withUserInfo( $user,$password = null);210 public function withUserInfo(string $user, ?string $password = null); 208 211 209 212 /** … … 219 222 * @throws \InvalidArgumentException for invalid hostnames. 220 223 */ 221 public function withHost( $host);224 public function withHost(string $host); 222 225 223 226 /** … … 238 241 * @throws \InvalidArgumentException for invalid ports. 239 242 */ 240 public function withPort( $port);243 public function withPort(?int $port); 241 244 242 245 /** … … 262 265 * @throws \InvalidArgumentException for invalid paths. 263 266 */ 264 public function withPath( $path);267 public function withPath(string $path); 265 268 266 269 /** … … 279 282 * @throws \InvalidArgumentException for invalid query strings. 280 283 */ 281 public function withQuery( $query);284 public function withQuery(string $query); 282 285 283 286 /** … … 295 298 * @return static A new instance with the specified fragment. 296 299 */ 297 public function withFragment( $fragment);300 public function withFragment(string $fragment); 298 301 299 302 /** -
zettle-pos-integration/tags/1.5.6/zettle-pos-integration.php
r2880545 r2907067 8 8 * Plugin URI: https://zettle.inpsyde.com/ 9 9 * Description: PayPal Zettle Point-Of-Sale Integration for WooCommerce 10 * Version: 1.5 .510 * Version: 1.5,6 11 11 * Requires at least: 5.4 12 12 * Requires PHP: 7.2 -
zettle-pos-integration/trunk/modules/inpsyde-queue/src/Bootstrap.php
r2477105 r2907067 23 23 { 24 24 global $wpdb; 25 require_once ABSPATH . 'wp-admin/includes/upgrade.php';26 25 //phpcs:disable Inpsyde.CodeQuality.VariablesName.SnakeCaseVar 27 26 $charset_collate = $wpdb->get_charset_collate(); … … 30 29 //phpcs:disable Inpsyde.CodeQuality.LineLength.TooLong 31 30 $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); 33 33 } 34 34 } -
zettle-pos-integration/trunk/modules/zettle-php-sdk/builders.array.php
r2532865 r2907067 234 234 static function (array $payload, B $builder): VariantInventoryState { 235 235 return new VariantInventoryState( 236 $payload[' locationUuid'],236 $payload['inventoryUuid'], 237 237 $payload['productUuid'], 238 238 $payload['variantUuid'], 239 $payload['locationType'],240 239 (int) $payload['balance'] 241 240 ); … … 259 258 $key(Inventory::class) => $builder( 260 259 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); 264 263 } 265 264 ), 266 265 $key(Location::class) => $builder( 267 266 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 275 267 return new Location( 276 $payload[' uuid'],277 LocationType::get($payload[' type']),268 $payload['inventoryUuid'], 269 LocationType::get($payload['inventoryType']), 278 270 $payload['name'], 279 $ description,280 $isDefault271 $payload['description'] ?? null, 272 isset($payload['defaultInventory']) && (bool) $payload['defaultInventory'] 281 273 ); 282 274 } -
zettle-pos-integration/trunk/modules/zettle-php-sdk/src/API/Inventory/Inventory.php
r2605648 r2907067 75 75 * @param Transaction[] $transactions 76 76 * 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'); 84 82 $changes = []; 85 83 foreach ($transactions as $transaction) { … … 87 85 'productUuid' => $transaction->productUuid(), 88 86 'variantUuid' => $transaction->variantUuid(), 89 'from LocationUuid' => $transaction->fromLocationUuid(),90 'to LocationUuid' => $transaction->toLocationUuid(),87 'from' => $transaction->fromLocationUuid(), 88 'to' => $transaction->toLocationUuid(), 91 89 'change' => $transaction->change(), 92 90 ]; 93 91 } 94 92 $payload = [ 95 ' changes' => $changes,96 ' externalUuid' => $this->integrationUuid,93 'movements' => $changes, 94 'identifier' => $this->integrationUuid, 97 95 ]; 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); 111 98 } 112 99 … … 116 103 * @param int $change 117 104 * 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 122 108 { 123 109 $locations = $this->locations(); … … 130 116 ); 131 117 132 return$this->performTransactions($transaction);118 $this->performTransactions($transaction); 133 119 } 134 120 … … 140 126 * @param int $change 141 127 * 142 * @return InventoryEntity143 128 * @throws ZettleRestException 144 129 */ … … 149 134 string $to, 150 135 int $change 151 ): InventoryEntity{136 ): void { 152 137 153 138 $locations = $this->locations(); … … 161 146 ); 162 147 163 return$this->performTransactions($transaction);148 $this->performTransactions($transaction); 164 149 } 165 150 … … 169 154 * @param int $change 170 155 * 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 175 159 { 176 160 $locations = $this->locations(); … … 183 167 ); 184 168 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'); 197 201 $payload = [ 198 'productUuid' => $productUuid, 202 [ 203 'productUuid' => $productUuid, 204 'tracking' => $enable ? 'enable' : 'disable', 205 ], 199 206 ]; 200 207 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); 241 209 } 242 210 … … 253 221 $locationUuid = $locations[$locationType]->uuid(); 254 222 $url = (string) $this->uri->withPath( 255 "/ organizations/self/inventory/locations/{$locationUuid}/products/{$productUuid}"223 "/v3/stock/{$locationUuid}/products/{$productUuid}" 256 224 ); 257 225 -
zettle-pos-integration/trunk/modules/zettle-php-sdk/src/API/Inventory/Locations.php
r2477105 r2907067 44 44 public function all(): array 45 45 { 46 $url = (string) $this->uri->withPath( "/organizations/self/locations");46 $url = (string) $this->uri->withPath('/v3/inventories'); 47 47 48 48 $result = $this->restClient->get($url, []); … … 50 50 foreach ($result as $locationPayload) { 51 51 try { 52 $locations[$locationPayload[' type']] = $this->builder->build(Location::class, $locationPayload);52 $locations[$locationPayload['inventoryType']] = $this->builder->build(Location::class, $locationPayload); 53 53 } catch (BuilderException $exception) { 54 54 // 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 27 27 global $wpdb; 28 28 29 require_once ABSPATH . 'wp-admin/includes/upgrade.php';30 31 29 $this->createTables($wpdb); 32 30 } … … 43 41 //phpcs:disable Inpsyde.CodeQuality.LineLength.TooLong 44 42 $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); 46 45 } 47 46 } -
zettle-pos-integration/trunk/modules/zettle-php-sdk/src/DAL/Entity/VariantInventoryState/VariantInventoryState.php
r2477105 r2907067 24 24 25 25 /** 26 * @var string27 */28 private $locationType;29 30 /**31 26 * @var int 32 27 */ … … 39 34 * @param string $productUuid 40 35 * @param string $variantUuid 41 * @param string $locationType42 36 * @param int $balance 43 37 * … … 47 41 string $productUuid, 48 42 string $variantUuid, 49 string $locationType,50 43 int $balance 51 44 ) { … … 53 46 $this->productUuid = $productUuid; 54 47 $this->variantUuid = $variantUuid; 55 $this->locationType = $locationType;56 48 $this->balance = $balance; 57 49 } … … 82 74 83 75 /** 84 * @return string85 */86 public function locationType(): string87 {88 return $this->locationType;89 }90 91 /**92 76 * @return int 93 77 */ -
zettle-pos-integration/trunk/readme.txt
r2880545 r2907067 3 3 Tags: payments, point-of-sale, woocommerce, zettle 4 4 Requires at least: 5.4 5 Tested up to: 6. 15 Tested up to: 6.2 6 6 Requires PHP: 7.2 7 Stable tag: 1.5. 57 Stable tag: 1.5.6 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 47 47 = Manual Installation = 48 48 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. 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. 51 51 Go to *Plugins => Installed plugins* and click *Activate* on *Zettle POS Integration for WooCommerce*. 52 52 … … 67 67 68 68 == Changelog == 69 = 1.5.6 = 70 - Migrate to inventory v3 API. 71 - Fixed database migration query error (in Query Monitor logs etc.). 72 69 73 = 1.5.5 = 70 74 - WC High-Performance Order Storage compatibility declaration. -
zettle-pos-integration/trunk/vendor/autoload.php
r2880545 r2907067 23 23 require_once __DIR__ . '/composer/autoload_real.php'; 24 24 25 return ComposerAutoloaderInit c811a4d20b8f6333dee0e55f37a2534c::getLoader();25 return ComposerAutoloaderInit1290e29297976b059974a78cf37636fe::getLoader(); -
zettle-pos-integration/trunk/vendor/composer/InstalledVersions.php
r2800040 r2907067 99 99 foreach (self::getInstalled() as $installed) { 100 100 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; 102 102 } 103 103 } … … 120 120 public static function satisfies(VersionParser $parser, $packageName, $constraint) 121 121 { 122 $constraint = $parser->parseConstraints( $constraint);122 $constraint = $parser->parseConstraints((string) $constraint); 123 123 $provided = $parser->parseConstraints(self::getVersionRanges($packageName)); 124 124 … … 329 329 $installed[] = self::$installedByVendor[$vendorDir]; 330 330 } 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; 332 334 if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) { 333 335 self::$installed = $installed[count($installed) - 1]; … … 341 343 // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937 342 344 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; 344 348 } else { 345 349 self::$installed = array(); 346 350 } 347 351 } 348 $installed[] = self::$installed; 352 353 if (self::$installed !== array()) { 354 $installed[] = self::$installed; 355 } 349 356 350 357 return $installed; -
zettle-pos-integration/trunk/vendor/composer/autoload_classmap.php
r2880545 r2907067 284 284 'Http\\Client\\Promise\\HttpRejectedPromise' => $vendorDir . '/php-http/httplug/src/Promise/HttpRejectedPromise.php', 285 285 'Http\\Discovery\\ClassDiscovery' => $vendorDir . '/php-http/discovery/src/ClassDiscovery.php', 286 'Http\\Discovery\\Composer\\Plugin' => $vendorDir . '/php-http/discovery/src/Composer/Plugin.php',287 286 'Http\\Discovery\\Exception' => $vendorDir . '/php-http/discovery/src/Exception.php', 288 287 'Http\\Discovery\\Exception\\ClassInstantiationFailedException' => $vendorDir . '/php-http/discovery/src/Exception/ClassInstantiationFailedException.php', … … 298 297 'Http\\Discovery\\Psr17Factory' => $vendorDir . '/php-http/discovery/src/Psr17Factory.php', 299 298 'Http\\Discovery\\Psr17FactoryDiscovery' => $vendorDir . '/php-http/discovery/src/Psr17FactoryDiscovery.php', 299 'Http\\Discovery\\Psr18Client' => $vendorDir . '/php-http/discovery/src/Psr18Client.php', 300 300 'Http\\Discovery\\Psr18ClientDiscovery' => $vendorDir . '/php-http/discovery/src/Psr18ClientDiscovery.php', 301 301 'Http\\Discovery\\Strategy\\CommonClassesStrategy' => $vendorDir . '/php-http/discovery/src/Strategy/CommonClassesStrategy.php', … … 1060 1060 'Nyholm\\Psr7\\ServerRequest' => $vendorDir . '/nyholm/psr7/src/ServerRequest.php', 1061 1061 'Nyholm\\Psr7\\Stream' => $vendorDir . '/nyholm/psr7/src/Stream.php', 1062 'Nyholm\\Psr7\\StreamTrait' => $vendorDir . '/nyholm/psr7/src/StreamTrait.php', 1062 1063 'Nyholm\\Psr7\\UploadedFile' => $vendorDir . '/nyholm/psr7/src/UploadedFile.php', 1063 1064 'Nyholm\\Psr7\\Uri' => $vendorDir . '/nyholm/psr7/src/Uri.php', -
zettle-pos-integration/trunk/vendor/composer/autoload_real.php
r2880545 r2907067 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit c811a4d20b8f6333dee0e55f37a2534c5 class ComposerAutoloaderInit1290e29297976b059974a78cf37636fe 6 6 { 7 7 private static $loader; … … 25 25 require __DIR__ . '/platform_check.php'; 26 26 27 spl_autoload_register(array('ComposerAutoloaderInit c811a4d20b8f6333dee0e55f37a2534c', 'loadClassLoader'), true, true);27 spl_autoload_register(array('ComposerAutoloaderInit1290e29297976b059974a78cf37636fe', 'loadClassLoader'), true, true); 28 28 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); 29 spl_autoload_unregister(array('ComposerAutoloaderInit c811a4d20b8f6333dee0e55f37a2534c', 'loadClassLoader'));29 spl_autoload_unregister(array('ComposerAutoloaderInit1290e29297976b059974a78cf37636fe', 'loadClassLoader')); 30 30 31 31 require __DIR__ . '/autoload_static.php'; 32 call_user_func(\Composer\Autoload\ComposerStaticInit c811a4d20b8f6333dee0e55f37a2534c::getInitializer($loader));32 call_user_func(\Composer\Autoload\ComposerStaticInit1290e29297976b059974a78cf37636fe::getInitializer($loader)); 33 33 34 34 $loader->setClassMapAuthoritative(true); 35 35 $loader->register(true); 36 36 37 $filesToLoad = \Composer\Autoload\ComposerStaticInit c811a4d20b8f6333dee0e55f37a2534c::$files;37 $filesToLoad = \Composer\Autoload\ComposerStaticInit1290e29297976b059974a78cf37636fe::$files; 38 38 $requireFile = \Closure::bind(static function ($fileIdentifier, $file) { 39 39 if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { -
zettle-pos-integration/trunk/vendor/composer/autoload_static.php
r2880545 r2907067 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit c811a4d20b8f6333dee0e55f37a2534c7 class ComposerStaticInit1290e29297976b059974a78cf37636fe 8 8 { 9 9 public static $files = array ( … … 608 608 'Http\\Client\\Promise\\HttpRejectedPromise' => __DIR__ . '/..' . '/php-http/httplug/src/Promise/HttpRejectedPromise.php', 609 609 'Http\\Discovery\\ClassDiscovery' => __DIR__ . '/..' . '/php-http/discovery/src/ClassDiscovery.php', 610 'Http\\Discovery\\Composer\\Plugin' => __DIR__ . '/..' . '/php-http/discovery/src/Composer/Plugin.php',611 610 'Http\\Discovery\\Exception' => __DIR__ . '/..' . '/php-http/discovery/src/Exception.php', 612 611 'Http\\Discovery\\Exception\\ClassInstantiationFailedException' => __DIR__ . '/..' . '/php-http/discovery/src/Exception/ClassInstantiationFailedException.php', … … 622 621 'Http\\Discovery\\Psr17Factory' => __DIR__ . '/..' . '/php-http/discovery/src/Psr17Factory.php', 623 622 'Http\\Discovery\\Psr17FactoryDiscovery' => __DIR__ . '/..' . '/php-http/discovery/src/Psr17FactoryDiscovery.php', 623 'Http\\Discovery\\Psr18Client' => __DIR__ . '/..' . '/php-http/discovery/src/Psr18Client.php', 624 624 'Http\\Discovery\\Psr18ClientDiscovery' => __DIR__ . '/..' . '/php-http/discovery/src/Psr18ClientDiscovery.php', 625 625 'Http\\Discovery\\Strategy\\CommonClassesStrategy' => __DIR__ . '/..' . '/php-http/discovery/src/Strategy/CommonClassesStrategy.php', … … 1384 1384 'Nyholm\\Psr7\\ServerRequest' => __DIR__ . '/..' . '/nyholm/psr7/src/ServerRequest.php', 1385 1385 'Nyholm\\Psr7\\Stream' => __DIR__ . '/..' . '/nyholm/psr7/src/Stream.php', 1386 'Nyholm\\Psr7\\StreamTrait' => __DIR__ . '/..' . '/nyholm/psr7/src/StreamTrait.php', 1386 1387 'Nyholm\\Psr7\\UploadedFile' => __DIR__ . '/..' . '/nyholm/psr7/src/UploadedFile.php', 1387 1388 'Nyholm\\Psr7\\Uri' => __DIR__ . '/..' . '/nyholm/psr7/src/Uri.php', … … 1468 1469 { 1469 1470 return \Closure::bind(function () use ($loader) { 1470 $loader->prefixLengthsPsr4 = ComposerStaticInit c811a4d20b8f6333dee0e55f37a2534c::$prefixLengthsPsr4;1471 $loader->prefixDirsPsr4 = ComposerStaticInit c811a4d20b8f6333dee0e55f37a2534c::$prefixDirsPsr4;1472 $loader->classMap = ComposerStaticInit c811a4d20b8f6333dee0e55f37a2534c::$classMap;1471 $loader->prefixLengthsPsr4 = ComposerStaticInit1290e29297976b059974a78cf37636fe::$prefixLengthsPsr4; 1472 $loader->prefixDirsPsr4 = ComposerStaticInit1290e29297976b059974a78cf37636fe::$prefixDirsPsr4; 1473 $loader->classMap = ComposerStaticInit1290e29297976b059974a78cf37636fe::$classMap; 1473 1474 1474 1475 }, null, ClassLoader::class); -
zettle-pos-integration/trunk/vendor/composer/installed.json
r2880545 r2907067 896 896 { 897 897 "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", 900 900 "dist": { 901 901 "type": "path", 902 902 "url": "modules.local/inpsyde-debug", 903 "reference": " f0fe81fd742169fa7dd2b73b0388fae8a73f7ddf"903 "reference": "96d2861520a55393189668498d76c107624b5409" 904 904 }, 905 905 "require": { 906 906 "dhii/module-interface": "^0.2 || ^0.3", 907 907 "ext-json": "*", 908 "php": "^7.2 | ^8.0", 908 909 "psr/log": "^1.1" 909 910 }, … … 932 933 { 933 934 "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", 936 937 "dist": { 937 938 "type": "path", … … 961 962 { 962 963 "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", 965 966 "dist": { 966 967 "type": "path", … … 998 999 { 999 1000 "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", 1002 1003 "dist": { 1003 1004 "type": "path", … … 1034 1035 { 1035 1036 "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", 1038 1039 "dist": { 1039 1040 "type": "path", … … 1220 1221 { 1221 1222 "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", 1224 1225 "dist": { 1225 1226 "type": "path", … … 1254 1255 { 1255 1256 "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", 1258 1259 "dist": { 1259 1260 "type": "path", … … 1357 1358 { 1358 1359 "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", 1361 1362 "dist": { 1362 1363 "type": "path", … … 1382 1383 { 1383 1384 "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", 1386 1387 "dist": { 1387 1388 "type": "path", … … 1412 1413 { 1413 1414 "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", 1416 1417 "dist": { 1417 1418 "type": "path", … … 1451 1452 { 1452 1453 "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", 1455 1456 "dist": { 1456 1457 "type": "path", … … 1475 1476 { 1476 1477 "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", 1479 1480 "dist": { 1480 1481 "type": "path", … … 1513 1514 { 1514 1515 "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", 1517 1518 "dist": { 1518 1519 "type": "path", … … 1555 1556 { 1556 1557 "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", 1559 1560 "dist": { 1560 1561 "type": "path", … … 1579 1580 { 1580 1581 "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", 1583 1584 "dist": { 1584 1585 "type": "path", … … 1604 1605 { 1605 1606 "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", 1608 1609 "dist": { 1609 1610 "type": "path", … … 1629 1630 { 1630 1631 "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", 1633 1634 "dist": { 1634 1635 "type": "path", … … 1653 1654 { 1654 1655 "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", 1657 1658 "dist": { 1658 1659 "type": "path", … … 1678 1679 { 1679 1680 "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", 1682 1683 "dist": { 1683 1684 "type": "path", 1684 1685 "url": "modules.local/zettle-webhooks", 1685 "reference": " 2cb7d964a5540690ff603f4a699cb54ddd476e02"1686 "reference": "4cfb727b02e50c33823faa8f83c2095cdcf6c834" 1686 1687 }, 1687 1688 "require": { … … 1715 1716 { 1716 1717 "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", 1719 1720 "source": { 1720 1721 "type": "git", 1721 1722 "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", 1739 1739 "psr/http-factory": "^1.0", 1740 "psr/http-message": "^1. 0"1740 "psr/http-message": "^1.1 || ^2.0" 1741 1741 }, 1742 1742 "provide": { 1743 "php-http/message-factory-implementation": "1.0", 1743 1744 "psr/http-factory-implementation": "1.0", 1744 1745 "psr/http-message-implementation": "1.0" … … 1746 1747 "require-dev": { 1747 1748 "http-interop/http-factory-tests": "^0.9", 1749 "php-http/message-factory": "^1.0", 1748 1750 "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", 1750 1752 "symfony/error-handler": "^4.4" 1751 1753 }, 1752 "time": "202 2-06-22T07:13:36+00:00",1754 "time": "2023-05-02T11:26:24+00:00", 1753 1755 "type": "library", 1754 1756 "extra": { 1755 1757 "branch-alias": { 1756 "dev-master": "1. 4-dev"1758 "dev-master": "1.8-dev" 1757 1759 } 1758 1760 }, … … 1785 1787 "support": { 1786 1788 "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" 1788 1790 }, 1789 1791 "funding": [ … … 1867 1869 { 1868 1870 "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", 1871 1873 "source": { 1872 1874 "type": "git", 1873 1875 "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", 1880 1882 "shasum": "", 1881 1883 "mirrors": [ … … 1893 1895 "psr/http-client": "^1.0", 1894 1896 "psr/http-factory": "^1.0", 1895 "psr/http-message": "^1.0 ",1897 "psr/http-message": "^1.0 || ^2.0", 1896 1898 "symfony/options-resolver": "~4.0.15 || ~4.1.9 || ^4.2.1 || ^5.0 || ^6.0", 1897 1899 "symfony/polyfill-php80": "^1.17" … … 1903 1905 "phpspec/phpspec": "^5.1 || ^6.3 || ^7.1", 1904 1906 "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" 1906 1908 }, 1907 1909 "suggest": { … … 1912 1914 "php-http/stopwatch-plugin": "Symfony Stopwatch plugin" 1913 1915 }, 1914 "time": "202 2-09-29T09:59:43+00:00",1916 "time": "2023-04-14T13:30:08+00:00", 1915 1917 "type": "library", 1916 "extra": {1917 "branch-alias": {1918 "dev-master": "2.3.x-dev"1919 }1920 },1921 1918 "installation-source": "dist", 1922 1919 "autoload": { … … 1945 1942 "support": { 1946 1943 "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" 1948 1945 }, 1949 1946 "install-path": "../php-http/client-common" … … 1951 1948 { 1952 1949 "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", 1955 1952 "source": { 1956 1953 "type": "git", 1957 1954 "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", 1964 1961 "shasum": "", 1965 1962 "mirrors": [ … … 1977 1974 "php-http/message": "^1.2", 1978 1975 "psr/http-client": "^1.0", 1979 "psr/http-factory ": "^1.0",1976 "psr/http-factory-implementation": "^1.0", 1980 1977 "symfony/options-resolver": "^3.4 || ^4.0 || ^5.0 || ^6.0" 1981 1978 }, … … 1991 1988 "phpunit/phpunit": "^7.5 || ^9.4" 1992 1989 }, 1993 "time": "202 1-12-10T18:02:07+00:00",1990 "time": "2023-04-28T14:56:41+00:00", 1994 1991 "type": "library", 1995 "extra": {1996 "branch-alias": {1997 "dev-master": "2.x-dev"1998 }1999 },2000 1992 "installation-source": "dist", 2001 1993 "autoload": { … … 2023 2015 "support": { 2024 2016 "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" 2026 2018 }, 2027 2019 "install-path": "../php-http/curl-client" … … 2029 2021 { 2030 2022 "name": "php-http/discovery", 2031 "version": "1.1 5.2",2032 "version_normalized": "1.1 5.2.0",2023 "version": "1.17.0", 2024 "version_normalized": "1.17.0.0", 2033 2025 "source": { 2034 2026 "type": "git", 2035 2027 "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", 2042 2034 "shasum": "", 2043 2035 "mirrors": [ … … 2053 2045 }, 2054 2046 "conflict": { 2055 "nyholm/psr7": "<1.0" 2047 "nyholm/psr7": "<1.0", 2048 "zendframework/zend-diactoros": "*" 2056 2049 }, 2057 2050 "provide": { … … 2070 2063 "symfony/phpunit-bridge": "^6.2" 2071 2064 }, 2072 "time": "2023-0 2-11T08:28:41+00:00",2065 "time": "2023-04-26T15:39:13+00:00", 2073 2066 "type": "composer-plugin", 2074 2067 "extra": { … … 2080 2073 "psr-4": { 2081 2074 "Http\\Discovery\\": "src/" 2082 } 2075 }, 2076 "exclude-from-classmap": [ 2077 "src/Composer/Plugin.php" 2078 ] 2083 2079 }, 2084 2080 "notification-url": "https://repo.packagist.com/inpsyde/izettle/downloads/", … … 2106 2102 "support": { 2107 2103 "issues": "https://github.com/php-http/discovery/issues", 2108 "source": "https://github.com/php-http/discovery/tree/1.1 5.2"2104 "source": "https://github.com/php-http/discovery/tree/1.17.0" 2109 2105 }, 2110 2106 "install-path": "../php-http/discovery" … … 2112 2108 { 2113 2109 "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", 2116 2112 "source": { 2117 2113 "type": "git", 2118 2114 "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", 2125 2121 "shasum": "", 2126 2122 "mirrors": [ … … 2135 2131 "php-http/promise": "^1.1", 2136 2132 "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": "202 2-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", 2144 2140 "type": "library", 2145 "extra": {2146 "branch-alias": {2147 "dev-master": "2.x-dev"2148 }2149 },2150 2141 "installation-source": "dist", 2151 2142 "autoload": { … … 2177 2168 "support": { 2178 2169 "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" 2180 2171 }, 2181 2172 "install-path": "../php-http/httplug" … … 2183 2174 { 2184 2175 "name": "php-http/message", 2185 "version": "1.1 3.0",2186 "version_normalized": "1.1 3.0.0",2176 "version": "1.14.0", 2177 "version_normalized": "1.14.0.0", 2187 2178 "source": { 2188 2179 "type": "git", 2189 2180 "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", 2196 2187 "shasum": "", 2197 2188 "mirrors": [ … … 2206 2197 "php": "^7.1 || ^8.0", 2207 2198 "php-http/message-factory": "^1.0.2", 2208 "psr/http-message": "^1.0 "2199 "psr/http-message": "^1.0 || ^2.0" 2209 2200 }, 2210 2201 "provide": { … … 2225 2216 "slim/slim": "Used with Slim Framework PSR-7 implementation" 2226 2217 }, 2227 "time": "202 2-02-11T13:41:14+00:00",2218 "time": "2023-04-14T14:26:18+00:00", 2228 2219 "type": "library", 2229 "extra": {2230 "branch-alias": {2231 "dev-master": "1.10-dev"2232 }2233 },2234 2220 "installation-source": "dist", 2235 2221 "autoload": { … … 2260 2246 "support": { 2261 2247 "issues": "https://github.com/php-http/message/issues", 2262 "source": "https://github.com/php-http/message/tree/1.1 3.0"2248 "source": "https://github.com/php-http/message/tree/1.14.0" 2263 2249 }, 2264 2250 "install-path": "../php-http/message" … … 2266 2252 { 2267 2253 "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", 2270 2256 "source": { 2271 2257 "type": "git", 2272 2258 "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", 2279 2265 "shasum": "", 2280 2266 "mirrors": [ … … 2287 2273 "require": { 2288 2274 "php": ">=5.4", 2289 "psr/http-message": "^1.0 "2290 }, 2291 "time": "20 15-12-19T14:08:53+00:00",2275 "psr/http-message": "^1.0 || ^2.0" 2276 }, 2277 "time": "2023-04-14T14:16:17+00:00", 2292 2278 "type": "library", 2293 2279 "extra": { 2294 2280 "branch-alias": { 2295 "dev-master": "1. 0-dev"2281 "dev-master": "1.x-dev" 2296 2282 } 2297 2283 }, … … 2321 2307 "uri" 2322 2308 ], 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 }, 2323 2313 "install-path": "../php-http/message-factory" 2324 2314 }, … … 2444 2434 { 2445 2435 "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", 2448 2438 "source": { 2449 2439 "type": "git", 2450 2440 "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", 2457 2447 "shasum": "", 2458 2448 "mirrors": [ … … 2465 2455 "require": { 2466 2456 "php": "^7.0 || ^8.0", 2467 "psr/http-message": "^1.0 "2468 }, 2469 "time": "202 0-06-29T06:28:15+00:00",2457 "psr/http-message": "^1.0 || ^2.0" 2458 }, 2459 "time": "2023-04-10T20:12:12+00:00", 2470 2460 "type": "library", 2471 2461 "extra": { … … 2487 2477 { 2488 2478 "name": "PHP-FIG", 2489 "homepage": "http ://www.php-fig.org/"2479 "homepage": "https://www.php-fig.org/" 2490 2480 } 2491 2481 ], … … 2498 2488 "psr-18" 2499 2489 ], 2490 "support": { 2491 "source": "https://github.com/php-fig/http-client/tree/1.0.2" 2492 }, 2500 2493 "install-path": "../psr/http-client" 2501 2494 }, 2502 2495 { 2503 2496 "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", 2506 2499 "source": { 2507 2500 "type": "git", 2508 2501 "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", 2515 2508 "shasum": "", 2516 2509 "mirrors": [ … … 2523 2516 "require": { 2524 2517 "php": ">=7.0.0", 2525 "psr/http-message": "^1.0 "2526 }, 2527 "time": "20 19-04-30T12:38:16+00:00",2518 "psr/http-message": "^1.0 || ^2.0" 2519 }, 2520 "time": "2023-04-10T20:10:41+00:00", 2528 2521 "type": "library", 2529 2522 "extra": { … … 2545 2538 { 2546 2539 "name": "PHP-FIG", 2547 "homepage": "http ://www.php-fig.org/"2540 "homepage": "https://www.php-fig.org/" 2548 2541 } 2549 2542 ], … … 2559 2552 "response" 2560 2553 ], 2554 "support": { 2555 "source": "https://github.com/php-fig/http-factory/tree/1.0.2" 2556 }, 2561 2557 "install-path": "../psr/http-factory" 2562 2558 }, 2563 2559 { 2564 2560 "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", 2567 2563 "source": { 2568 2564 "type": "git", 2569 2565 "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": "20 16-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", 2588 2584 "type": "library", 2589 2585 "extra": { 2590 2586 "branch-alias": { 2591 "dev-master": "1. 0.x-dev"2587 "dev-master": "1.1.x-dev" 2592 2588 } 2593 2589 }, … … 2618 2614 "response" 2619 2615 ], 2616 "support": { 2617 "source": "https://github.com/php-fig/http-message/tree/1.1" 2618 }, 2620 2619 "install-path": "../psr/http-message" 2621 2620 }, -
zettle-pos-integration/trunk/vendor/composer/installed.php
r2880545 r2907067 2 2 'root' => array( 3 3 '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', 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 122 122 ), 123 123 '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', 127 127 'type' => 'inpsyde-module', 128 128 'install_path' => __DIR__ . '/../../modules/inpsyde-debug', … … 131 131 ), 132 132 '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', 135 135 'reference' => '2f02780aeb64d9e1314d809964557f720a886353', 136 136 'type' => 'inpsyde-module', … … 140 140 ), 141 141 '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', 144 144 'reference' => 'd7ca097b86c6bf3e84f27897823bcf65ce9a4de2', 145 145 'type' => 'inpsyde-module', … … 149 149 ), 150 150 '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', 153 153 'reference' => '8c1625fb30f5fdbef18aabc650213c7115171ecc', 154 154 'type' => 'inpsyde-module', … … 158 158 ), 159 159 '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', 162 162 'reference' => '48e5c42d626506c65b4eee7c0d1e84bc7c72a8b4', 163 163 'type' => 'inpsyde-module', … … 185 185 ), 186 186 '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', 189 189 'reference' => '0e7c3cdfa343e842cd8ca39c8a36253dd6f39d7c', 190 190 'type' => 'package', … … 194 194 ), 195 195 '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', 198 198 'reference' => '22bd64c5aef17fc0a560025e051bd2286232fd2b', 199 199 'type' => 'inpsyde-module', … … 212 212 ), 213 213 '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', 216 216 'reference' => '11403330a93a7ea1a037ec19ec590ff243ba207e', 217 217 'type' => 'inpsyde-module', … … 221 221 ), 222 222 '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', 225 225 'reference' => 'feea57bf2224d458f67a781d447b8e7273f8d5c6', 226 226 'type' => 'inpsyde-module', … … 230 230 ), 231 231 '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', 234 234 'reference' => '653ce3f20d4ee79d42142daa790cc16775ce7cc4', 235 235 'type' => 'inpsyde-module', … … 239 239 ), 240 240 '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', 243 243 'reference' => '1e0c8c3f511cb369f18831db6dab6def7b75b75c', 244 244 'type' => 'inpsyde-module', … … 248 248 ), 249 249 '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', 252 252 'reference' => '43694f96df2b697f320a8187a293e96ae97e2c3b', 253 253 'type' => 'inpsyde-module', … … 257 257 ), 258 258 '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', 261 261 'reference' => 'aa920e3c81196fb7eb043332130704e2515909a9', 262 262 'type' => 'inpsyde-module', … … 266 266 ), 267 267 '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', 271 271 'type' => 'wordpress-plugin', 272 272 'install_path' => __DIR__ . '/../../', … … 275 275 ), 276 276 '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', 279 279 'reference' => '499afad87e196d258a7196ba18a1f940a5c87deb', 280 280 'type' => 'inpsyde-module', … … 284 284 ), 285 285 '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', 288 288 'reference' => '50c5b69c63cd531b594145c6d333d9c9e99f5f67', 289 289 'type' => 'inpsyde-module', … … 293 293 ), 294 294 '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', 297 297 'reference' => '59797a1ec25eaa0c60bce1e4e02254d7fb9478bc', 298 298 'type' => 'inpsyde-module', … … 302 302 ), 303 303 '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', 306 306 'reference' => '122b3ca56a9e8181b5cb516c28a993bb489de068', 307 307 'type' => 'inpsyde-module', … … 311 311 ), 312 312 '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', 315 315 'reference' => 'f6c7542e1e21b0b7cba00eaf20cb7534c415bbbd', 316 316 'type' => 'inpsyde-module', … … 320 320 ), 321 321 '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', 325 325 'type' => 'inpsyde-module', 326 326 'install_path' => __DIR__ . '/../../modules/zettle-webhooks', … … 329 329 ), 330 330 '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', 334 334 'type' => 'library', 335 335 'install_path' => __DIR__ . '/../nyholm/psr7', … … 354 354 ), 355 355 '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', 359 359 'type' => 'library', 360 360 'install_path' => __DIR__ . '/../php-http/client-common', … … 370 370 ), 371 371 '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', 375 375 'type' => 'library', 376 376 'install_path' => __DIR__ . '/../php-http/curl-client', … … 379 379 ), 380 380 'php-http/discovery' => array( 381 'pretty_version' => '1.1 5.2',382 'version' => '1.1 5.2.0',383 'reference' => ' 5cc428320191ac1d0b6520034c2dc0698628ced5',381 'pretty_version' => '1.17.0', 382 'version' => '1.17.0.0', 383 'reference' => 'bd810d15957cf165230e65d9e1a130793265e3b7', 384 384 'type' => 'composer-plugin', 385 385 'install_path' => __DIR__ . '/../php-http/discovery', … … 388 388 ), 389 389 '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', 393 393 'type' => 'library', 394 394 'install_path' => __DIR__ . '/../php-http/httplug', … … 397 397 ), 398 398 'php-http/message' => array( 399 'pretty_version' => '1.1 3.0',400 'version' => '1.1 3.0.0',401 'reference' => ' 7886e647a30a966a1a8d1dad1845b71ca8678361',399 'pretty_version' => '1.14.0', 400 'version' => '1.14.0.0', 401 'reference' => '2ccee04a28c3d98eb3f2b85ce1e2fcff70c0e63b', 402 402 'type' => 'library', 403 403 'install_path' => __DIR__ . '/../php-http/message', … … 406 406 ), 407 407 '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', 411 411 'type' => 'library', 412 412 'install_path' => __DIR__ . '/../php-http/message-factory', … … 439 439 ), 440 440 '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', 444 444 'type' => 'library', 445 445 'install_path' => __DIR__ . '/../psr/http-client', … … 456 456 ), 457 457 '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', 461 461 'type' => 'library', 462 462 'install_path' => __DIR__ . '/../psr/http-factory', … … 472 472 ), 473 473 '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', 477 477 'type' => 'library', 478 478 'install_path' => __DIR__ . '/../psr/http-message', -
zettle-pos-integration/trunk/vendor/nyholm/psr7/src/Factory/HttplugFactory.php
r2800040 r2907067 12 12 use Psr\Http\Message\UriInterface; 13 13 14 if (!\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 14 20 /** 15 21 * @author Tobias Nyholm <tobias.nyholm@gmail.com> … … 17 23 * 18 24 * @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 19 27 */ 20 28 class HttplugFactory implements MessageFactory, StreamFactory, UriFactory -
zettle-pos-integration/trunk/vendor/nyholm/psr7/src/MessageTrait.php
r2501019 r2907067 5 5 namespace Nyholm\Psr7; 6 6 7 use Psr\Http\Message\MessageInterface; 7 8 use Psr\Http\Message\StreamInterface; 8 9 … … 35 36 } 36 37 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 39 47 if ($this->protocol === $version) { 40 48 return $this; … … 42 50 43 51 $new = clone $this; 44 $new->protocol = $version;52 $new->protocol = (string) $version; 45 53 46 54 return $new; … … 59 67 public function getHeader($header): array 60 68 { 69 if (!\is_string($header)) { 70 throw new \InvalidArgumentException('Header name must be an RFC 7230 compatible string'); 71 } 72 61 73 $header = \strtr($header, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz'); 62 74 if (!isset($this->headerNames[$header])) { … … 74 86 } 75 87 76 public function withHeader($header, $value): self 88 /** 89 * @return static 90 */ 91 public function withHeader($header, $value): MessageInterface 77 92 { 78 93 $value = $this->validateAndTrimHeader($header, $value); … … 89 104 } 90 105 91 public function withAddedHeader($header, $value): self 106 /** 107 * @return static 108 */ 109 public function withAddedHeader($header, $value): MessageInterface 92 110 { 93 111 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'); 95 113 } 96 114 … … 101 119 } 102 120 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 105 130 $normalized = \strtr($header, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz'); 106 131 if (!isset($this->headerNames[$normalized])) { … … 124 149 } 125 150 126 public function withBody(StreamInterface $body): self 151 /** 152 * @return static 153 */ 154 public function withBody(StreamInterface $body): MessageInterface 127 155 { 128 156 if ($body === $this->stream) { … … 176 204 private function validateAndTrimHeader($header, $values): array 177 205 { 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'); 180 208 } 181 209 … … 183 211 // This is simple, just one value. 184 212 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'); 186 214 } 187 215 … … 190 218 191 219 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'); 193 221 } 194 222 … … 196 224 $returnValues = []; 197 225 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'); 200 228 } 201 229 -
zettle-pos-integration/trunk/vendor/nyholm/psr7/src/RequestTrait.php
r2477105 r2907067 5 5 namespace Nyholm\Psr7; 6 6 7 use Psr\Http\Message\RequestInterface; 7 8 use Psr\Http\Message\UriInterface; 8 9 … … 41 42 } 42 43 43 public function withRequestTarget($requestTarget): self 44 /** 45 * @return static 46 */ 47 public function withRequestTarget($requestTarget): RequestInterface 44 48 { 49 if (!\is_string($requestTarget)) { 50 throw new \InvalidArgumentException('Request target must be a string'); 51 } 52 45 53 if (\preg_match('#\s#', $requestTarget)) { 46 54 throw new \InvalidArgumentException('Invalid request target provided; cannot contain whitespace'); … … 58 66 } 59 67 60 public function withMethod($method): self 68 /** 69 * @return static 70 */ 71 public function withMethod($method): RequestInterface 61 72 { 62 73 if (!\is_string($method)) { … … 75 86 } 76 87 77 public function withUri(UriInterface $uri, $preserveHost = false): self 88 /** 89 * @return static 90 */ 91 public function withUri(UriInterface $uri, $preserveHost = false): RequestInterface 78 92 { 79 93 if ($uri === $this->uri) { -
zettle-pos-integration/trunk/vendor/nyholm/psr7/src/Response.php
r2501019 r2907067 68 68 } 69 69 70 public function withStatus($code, $reasonPhrase = ''): self 70 /** 71 * @return static 72 */ 73 public function withStatus($code, $reasonPhrase = ''): ResponseInterface 71 74 { 72 75 if (!\is_int($code) && !\is_string($code)) { -
zettle-pos-integration/trunk/vendor/nyholm/psr7/src/ServerRequest.php
r2800040 r2907067 57 57 $this->setHeaders($headers); 58 58 $this->protocol = $version; 59 \parse_str($uri->getQuery(), $this->queryParams); 59 60 60 61 if (!$this->hasHeader('Host')) { … … 81 82 * @return static 82 83 */ 83 public function withUploadedFiles(array $uploadedFiles) 84 public function withUploadedFiles(array $uploadedFiles): ServerRequestInterface 84 85 { 85 86 $new = clone $this; … … 97 98 * @return static 98 99 */ 99 public function withCookieParams(array $cookies) 100 public function withCookieParams(array $cookies): ServerRequestInterface 100 101 { 101 102 $new = clone $this; … … 113 114 * @return static 114 115 */ 115 public function withQueryParams(array $query) 116 public function withQueryParams(array $query): ServerRequestInterface 116 117 { 117 118 $new = clone $this; … … 132 133 * @return static 133 134 */ 134 public function withParsedBody($data) 135 public function withParsedBody($data): ServerRequestInterface 135 136 { 136 137 if (!\is_array($data) && !\is_object($data) && null !== $data) { … … 154 155 public function getAttribute($attribute, $default = null) 155 156 { 157 if (!\is_string($attribute)) { 158 throw new \InvalidArgumentException('Attribute name must be a string'); 159 } 160 156 161 if (false === \array_key_exists($attribute, $this->attributes)) { 157 162 return $default; … … 161 166 } 162 167 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 165 177 $new = clone $this; 166 178 $new->attributes[$attribute] = $value; … … 169 181 } 170 182 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 173 192 if (false === \array_key_exists($attribute, $this->attributes)) { 174 193 return $this; -
zettle-pos-integration/trunk/vendor/nyholm/psr7/src/Stream.php
r2800040 r2907067 6 6 7 7 use Psr\Http\Message\StreamInterface; 8 use Symfony\Component\Debug\ErrorHandler as SymfonyLegacyErrorHandler;9 use Symfony\Component\ErrorHandler\ErrorHandler as SymfonyErrorHandler;10 8 11 9 /** … … 18 16 class Stream implements StreamInterface 19 17 { 18 use StreamTrait; 19 20 20 /** @var resource|null A resource reference */ 21 21 private $stream; … … 52 52 ]; 53 53 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']]); 56 68 } 57 69 … … 70 82 71 83 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); 89 99 } 90 100 … … 97 107 } 98 108 99 /**100 * @return string101 */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 128 109 public function close(): void 129 110 { … … 292 273 public function getMetadata($key = null) 293 274 { 275 if (null !== $key && !\is_string($key)) { 276 throw new \InvalidArgumentException('Metadata key must be a string'); 277 } 278 294 279 if (!isset($this->stream)) { 295 280 return $key ? null : []; … … 304 289 return $meta[$key] ?? null; 305 290 } 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 } 306 391 } -
zettle-pos-integration/trunk/vendor/nyholm/psr7/src/UploadedFile.php
r2800040 r2907067 59 59 { 60 60 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'); 62 62 } 63 63 -
zettle-pos-integration/trunk/vendor/nyholm/psr7/src/Uri.php
r2560431 r2907067 26 26 private const CHAR_SUB_DELIMS = '!\$&\'\(\)\*\+,;='; 27 27 28 private const CHAR_GEN_DELIMS = ':\/\?#\[\]@'; 29 28 30 /** @var string Uri scheme. */ 29 31 private $scheme = ''; … … 113 115 public function getPath(): string 114 116 { 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; 116 131 } 117 132 … … 126 141 } 127 142 128 public function withScheme($scheme): self 143 /** 144 * @return static 145 */ 146 public function withScheme($scheme): UriInterface 129 147 { 130 148 if (!\is_string($scheme)) { … … 143 161 } 144 162 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); 148 173 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); 150 179 } 151 180 … … 160 189 } 161 190 162 public function withHost($host): self 191 /** 192 * @return static 193 */ 194 public function withHost($host): UriInterface 163 195 { 164 196 if (!\is_string($host)) { … … 176 208 } 177 209 178 public function withPort($port): self 210 /** 211 * @return static 212 */ 213 public function withPort($port): UriInterface 179 214 { 180 215 if ($this->port === $port = $this->filterPort($port)) { … … 188 223 } 189 224 190 public function withPath($path): self 225 /** 226 * @return static 227 */ 228 public function withPath($path): UriInterface 191 229 { 192 230 if ($this->path === $path = $this->filterPath($path)) { … … 200 238 } 201 239 202 public function withQuery($query): self 240 /** 241 * @return static 242 */ 243 public function withQuery($query): UriInterface 203 244 { 204 245 if ($this->query === $query = $this->filterQueryAndFragment($query)) { … … 212 253 } 213 254 214 public function withFragment($fragment): self 255 /** 256 * @return static 257 */ 258 public function withFragment($fragment): UriInterface 215 259 { 216 260 if ($this->fragment === $fragment = $this->filterQueryAndFragment($fragment)) { … … 281 325 282 326 $port = (int) $port; 283 if (0 > $port || 0x ffff< $port) {327 if (0 > $port || 0xFFFF < $port) { 284 328 throw new \InvalidArgumentException(\sprintf('Invalid port: %d. Must be between 0 and 65535', $port)); 285 329 } -
zettle-pos-integration/trunk/vendor/php-http/client-common/src/PluginChain.php
r2800040 r2907067 4 4 5 5 namespace Http\Client\Common; 6 7 use function array_reverse;8 6 9 7 use Http\Client\Common\Exception\LoopException; … … 40 38 { 41 39 $lastCallable = $this->clientCallable; 42 $reversedPlugins = array_reverse($this->plugins);40 $reversedPlugins = \array_reverse($this->plugins); 43 41 44 42 foreach ($reversedPlugins as $plugin) { -
zettle-pos-integration/trunk/vendor/php-http/discovery/src/ClassDiscovery.php
r2800040 r2907067 23 23 */ 24 24 private static $strategies = [ 25 Strategy\GeneratedDiscoveryStrategy::class, 25 26 Strategy\CommonClassesStrategy::class, 26 27 Strategy\CommonPsr17ClassesStrategy::class, … … 55 56 } 56 57 58 static $skipStrategy; 59 $skipStrategy ?? $skipStrategy = self::safeClassExists(Strategy\GeneratedDiscoveryStrategy::class) ? false : Strategy\GeneratedDiscoveryStrategy::class; 60 57 61 $exceptions = []; 58 62 foreach (self::$strategies as $strategy) { 63 if ($skipStrategy === $strategy) { 64 continue; 65 } 66 59 67 try { 60 $candidates = call_user_func($strategy.'::getCandidates',$type);68 $candidates = $strategy::getCandidates($type); 61 69 } catch (StrategyUnavailableException $e) { 62 70 if (!isset(self::$deprecatedStrategies[$strategy])) { -
zettle-pos-integration/trunk/vendor/php-http/discovery/src/Composer/Plugin.php
r2880545 r2907067 19 19 use Composer\Script\Event; 20 20 use Composer\Script\ScriptEvents; 21 use Composer\Util\Filesystem; 22 use Http\Discovery\ClassDiscovery; 21 23 22 24 /** … … 75 77 'laminas/laminas-diactoros' => [], 76 78 'phalcon/cphalcon:^4' => [], 77 'zendframework/zend-diactoros:>=2' => [],78 79 'http-interop/http-factory-guzzle' => [], 79 80 'http-interop/http-factory-diactoros' => [], … … 96 97 'php-http/artax-adapter' => 'amphp/artax:^3', 97 98 'http-interop/http-factory-guzzle' => 'guzzlehttp/psr7:^1', 98 'http-interop/http-factory-diactoros' => 'zendframework/zend-diactoros:^1',99 99 'http-interop/http-factory-slim' => 'slim/slim:^3', 100 100 ]; 101 101 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 102 122 public static function getSubscribedEvents(): array 103 123 { 104 124 return [ 125 ScriptEvents::PRE_AUTOLOAD_DUMP => 'preAutoloadDump', 105 126 ScriptEvents::POST_UPDATE_CMD => 'postUpdate', 106 127 ]; … … 188 209 } 189 210 190 $versionSelector = new VersionSelector( class_exists(RepositorySet::class) ? new RepositorySet() : new Pool());211 $versionSelector = new VersionSelector(ClassDiscovery::safeClassExists(RepositorySet::class) ? new RepositorySet() : new Pool()); 191 212 $updateComposerJson = false; 192 213 … … 237 258 $versionParser = new VersionParser(); 238 259 239 if ( class_exists(\Phalcon\Http\Message\RequestFactory::class, false)) {260 if (ClassDiscovery::safeClassExists(\Phalcon\Http\Message\RequestFactory::class, false)) { 240 261 $missingRequires[0]['psr/http-factory-implementation'] = []; 241 262 $missingRequires[1]['psr/http-factory-implementation'] = []; … … 336 357 } 337 358 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 397 namespace Http\Discovery\Strategy; 398 399 class GeneratedDiscoveryStrategy implements DiscoveryStrategy 400 { 401 public static function getCandidates(\$type) 402 { 403 switch (\$type) { 404 $candidates 405 default: return []; 406 } 407 } 408 } 409 410 EOPHP 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 338 423 private function updateComposerJson(array $missingRequires, bool $sortPackages) 339 424 { … … 361 446 $composerJson = file_get_contents(Factory::getComposerFile()); 362 447 $lockFile = new JsonFile($lock, null, $io); 363 $locker = class_exists(RepositorySet::class)448 $locker = ClassDiscovery::safeClassExists(RepositorySet::class) 364 449 ? new Locker($io, $lockFile, $composer->getInstallationManager(), $composerJson) 365 450 : new Locker($io, $lockFile, $composer->getRepositoryManager(), $composer->getInstallationManager(), $composerJson); -
zettle-pos-integration/trunk/vendor/php-http/discovery/src/Psr17Factory.php
r2880545 r2907067 185 185 186 186 $headers = []; 187 foreach ($server as $k ey => $value) {188 if (0 === strpos($k ey, 'HTTP_')) {189 $k ey = substr($key, 5);190 } elseif (!\in_array($k ey, ['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)) { 191 191 continue; 192 192 } 193 $k ey = str_replace(' ', '-', ucwords(strtolower(str_replace('_', ' ', $key))));194 195 $headers[$k ey] = $value;193 $k = str_replace(' ', '-', ucwords(strtolower(str_replace('_', ' ', $k)))); 194 195 $headers[$k] = $v; 196 196 } 197 197 … … 206 206 } 207 207 208 foreach ($headers as $k ey => $value) {208 foreach ($headers as $k => $v) { 209 209 try { 210 $request = $request->withHeader($k ey, $value);210 $request = $request->withHeader($k, $v); 211 211 } catch (\InvalidArgumentException $e) { 212 212 // ignore invalid headers … … 258 258 private function normalizeFiles(array $files): array 259 259 { 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) { 266 262 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); 274 268 } 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; 281 302 } 282 303 } -
zettle-pos-integration/trunk/vendor/php-http/discovery/src/Strategy/CommonClassesStrategy.php
r2880545 r2907067 13 13 use Http\Adapter\Guzzle7\Client as Guzzle7; 14 14 use Http\Adapter\React\Client as React; 15 use Http\Adapter\Zend\Client as Zend;16 15 use Http\Client\Curl\Client as Curl; 17 16 use Http\Client\HttpAsyncClient; … … 42 41 use Symfony\Component\HttpClient\HttplugClient as SymfonyHttplug; 43 42 use Symfony\Component\HttpClient\Psr18Client as SymfonyPsr18; 44 use Zend\Diactoros\Request as ZendDiactorosRequest;45 43 46 44 /** … … 60 58 ['class' => NyholmHttplugFactory::class, 'condition' => [NyholmHttplugFactory::class]], 61 59 ['class' => GuzzleMessageFactory::class, 'condition' => [GuzzleRequest::class, GuzzleMessageFactory::class]], 62 ['class' => DiactorosMessageFactory::class, 'condition' => [ZendDiactorosRequest::class, DiactorosMessageFactory::class]],63 60 ['class' => DiactorosMessageFactory::class, 'condition' => [DiactorosRequest::class, DiactorosMessageFactory::class]], 64 61 ['class' => SlimMessageFactory::class, 'condition' => [SlimRequest::class, SlimMessageFactory::class]], … … 67 64 ['class' => NyholmHttplugFactory::class, 'condition' => [NyholmHttplugFactory::class]], 68 65 ['class' => GuzzleStreamFactory::class, 'condition' => [GuzzleRequest::class, GuzzleStreamFactory::class]], 69 ['class' => DiactorosStreamFactory::class, 'condition' => [ZendDiactorosRequest::class, DiactorosStreamFactory::class]],70 66 ['class' => DiactorosStreamFactory::class, 'condition' => [DiactorosRequest::class, DiactorosStreamFactory::class]], 71 67 ['class' => SlimStreamFactory::class, 'condition' => [SlimRequest::class, SlimStreamFactory::class]], … … 74 70 ['class' => NyholmHttplugFactory::class, 'condition' => [NyholmHttplugFactory::class]], 75 71 ['class' => GuzzleUriFactory::class, 'condition' => [GuzzleRequest::class, GuzzleUriFactory::class]], 76 ['class' => DiactorosUriFactory::class, 'condition' => [ZendDiactorosRequest::class, DiactorosUriFactory::class]],77 72 ['class' => DiactorosUriFactory::class, 'condition' => [DiactorosRequest::class, DiactorosUriFactory::class]], 78 73 ['class' => SlimUriFactory::class, 'condition' => [SlimRequest::class, SlimUriFactory::class]], … … 95 90 ['class' => React::class, 'condition' => React::class], 96 91 ['class' => Cake::class, 'condition' => Cake::class], 97 ['class' => Zend::class, 'condition' => Zend::class],98 92 ['class' => Artax::class, 'condition' => Artax::class], 99 93 [ -
zettle-pos-integration/trunk/vendor/php-http/discovery/src/Strategy/CommonPsr17ClassesStrategy.php
r2880545 r2907067 26 26 'Phalcon\Http\Message\RequestFactory', 27 27 'Nyholm\Psr7\Factory\Psr17Factory', 28 'Zend\Diactoros\RequestFactory',29 28 'GuzzleHttp\Psr7\HttpFactory', 30 29 'Http\Factory\Diactoros\RequestFactory', … … 37 36 'Phalcon\Http\Message\ResponseFactory', 38 37 'Nyholm\Psr7\Factory\Psr17Factory', 39 'Zend\Diactoros\ResponseFactory',40 38 'GuzzleHttp\Psr7\HttpFactory', 41 39 'Http\Factory\Diactoros\ResponseFactory', … … 48 46 'Phalcon\Http\Message\ServerRequestFactory', 49 47 'Nyholm\Psr7\Factory\Psr17Factory', 50 'Zend\Diactoros\ServerRequestFactory',51 48 'GuzzleHttp\Psr7\HttpFactory', 52 49 'Http\Factory\Diactoros\ServerRequestFactory', … … 59 56 'Phalcon\Http\Message\StreamFactory', 60 57 'Nyholm\Psr7\Factory\Psr17Factory', 61 'Zend\Diactoros\StreamFactory',62 58 'GuzzleHttp\Psr7\HttpFactory', 63 59 'Http\Factory\Diactoros\StreamFactory', … … 70 66 'Phalcon\Http\Message\UploadedFileFactory', 71 67 'Nyholm\Psr7\Factory\Psr17Factory', 72 'Zend\Diactoros\UploadedFileFactory',73 68 'GuzzleHttp\Psr7\HttpFactory', 74 69 'Http\Factory\Diactoros\UploadedFileFactory', … … 81 76 'Phalcon\Http\Message\UriFactory', 82 77 'Nyholm\Psr7\Factory\Psr17Factory', 83 'Zend\Diactoros\UriFactory',84 78 'GuzzleHttp\Psr7\HttpFactory', 85 79 'Http\Factory\Diactoros\UriFactory', -
zettle-pos-integration/trunk/vendor/php-http/httplug/src/HttpClient.php
r2477105 r2907067 10 10 * Provide the Httplug HttpClient interface for BC. 11 11 * 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/ 12 14 */ 13 15 interface 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>1 Copyright (c) 2015-2016 PHP HTTP Team <team@php-http.org> 2 2 3 3 Permission 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 1 1 { 2 2 "version": "1.0", 3 "name": "php-http/message-factory", 3 4 "binding-types": { 4 5 "Http\\Message\\MessageFactory": { -
zettle-pos-integration/trunk/vendor/php-http/message-factory/src/MessageFactory.php
r2477105 r2907067 7 7 * 8 8 * @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. 9 11 */ 10 12 interface MessageFactory extends RequestFactory, ResponseFactory -
zettle-pos-integration/trunk/vendor/php-http/message-factory/src/RequestFactory.php
r2477105 r2907067 11 11 * 12 12 * @author Márk Sági-Kazár <mark.sagikazar@gmail.com> 13 * 14 * @deprecated since version 1.1, use Psr\Http\Message\RequestFactoryInterface instead. 13 15 */ 14 16 interface RequestFactory -
zettle-pos-integration/trunk/vendor/php-http/message-factory/src/ResponseFactory.php
r2477105 r2907067 12 12 * 13 13 * @author Márk Sági-Kazár <mark.sagikazar@gmail.com> 14 * 15 * @deprecated since version 1.1, use Psr\Http\Message\ResponseFactoryInterface instead. 14 16 */ 15 17 interface ResponseFactory -
zettle-pos-integration/trunk/vendor/php-http/message-factory/src/StreamFactory.php
r2477105 r2907067 9 9 * 10 10 * @author Márk Sági-Kazár <mark.sagikazar@gmail.com> 11 * 12 * @deprecated since version 1.1, use Psr\Http\Message\StreamFactoryInterface instead. 11 13 */ 12 14 interface StreamFactory … … 19 21 * @return StreamInterface 20 22 * 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 23 25 */ 24 26 public function createStream($body = null); -
zettle-pos-integration/trunk/vendor/php-http/message-factory/src/UriFactory.php
r2477105 r2907067 9 9 * 10 10 * @author Márk Sági-Kazár <mark.sagikazar@gmail.com> 11 * 12 * @deprecated since version 1.1, use Psr\Http\Message\UriFactoryInterface instead. 11 13 */ 12 14 interface UriFactory … … 19 21 * @return UriInterface 20 22 * 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 22 24 */ 23 25 public function createUri($uri); -
zettle-pos-integration/trunk/vendor/php-http/message/src/Authentication/Wsse.php
r2477105 r2907067 4 4 5 5 use Http\Message\Authentication; 6 use InvalidArgumentException;7 6 use Psr\Http\Message\RequestInterface; 8 7 … … 39 38 $this->password = $password; 40 39 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)); 42 41 } 43 42 $this->hashAlgorithm = $hashAlgorithm; -
zettle-pos-integration/trunk/vendor/php-http/message/src/Cookie.php
r2477105 r2907067 400 400 * This does not compare the values, only name, domain and path. 401 401 * 402 * @param Cookie $cookie403 *404 402 * @return bool 405 403 */ -
zettle-pos-integration/trunk/vendor/php-http/message/src/CookieJar.php
r2800040 r2907067 11 11 { 12 12 /** 13 * @var \SplObjectStorage< object, mixed>13 * @var \SplObjectStorage<Cookie, mixed> 14 14 */ 15 15 private $cookies; -
zettle-pos-integration/trunk/vendor/php-http/message/src/Encoding/FilteredStream.php
r2477105 r2907067 18 18 seek as private doSeek; 19 19 } 20 const BUFFER_SIZE = 8192;20 public const BUFFER_SIZE = 8192; 21 21 22 22 /** -
zettle-pos-integration/trunk/vendor/php-http/message/src/UriFactory/GuzzleUriFactory.php
r2538456 r2907067 3 3 namespace Http\Message\UriFactory; 4 4 5 use function GuzzleHttp\Psr7\uri_for;6 5 use GuzzleHttp\Psr7\Utils; 7 6 use Http\Message\UriFactory; 7 8 use function GuzzleHttp\Psr7\uri_for; 8 9 9 10 /** -
zettle-pos-integration/trunk/vendor/psr/http-message/src/MessageInterface.php
r2477105 r2907067 1 1 <?php 2 3 declare(strict_types=1); 2 4 3 5 namespace Psr\Http\Message; … … 39 41 * @return static 40 42 */ 41 public function withProtocolVersion( $version);43 public function withProtocolVersion(string $version); 42 44 43 45 /** … … 76 78 * no matching header name is found in the message. 77 79 */ 78 public function hasHeader( $name);80 public function hasHeader(string $name); 79 81 80 82 /** … … 92 94 * return an empty array. 93 95 */ 94 public function getHeader( $name);96 public function getHeader(string $name); 95 97 96 98 /** … … 113 115 * the message, this method MUST return an empty string. 114 116 */ 115 public function getHeaderLine( $name);117 public function getHeaderLine(string $name); 116 118 117 119 /** … … 130 132 * @throws \InvalidArgumentException for invalid header names or values. 131 133 */ 132 public function withHeader( $name, $value);134 public function withHeader(string $name, $value); 133 135 134 136 /** … … 148 150 * @throws \InvalidArgumentException for invalid header names or values. 149 151 */ 150 public function withAddedHeader( $name, $value);152 public function withAddedHeader(string $name, $value); 151 153 152 154 /** … … 162 164 * @return static 163 165 */ 164 public function withoutHeader( $name);166 public function withoutHeader(string $name); 165 167 166 168 /** -
zettle-pos-integration/trunk/vendor/psr/http-message/src/RequestInterface.php
r2477105 r2907067 1 1 <?php 2 3 declare(strict_types=1); 2 4 3 5 namespace Psr\Http\Message; … … 56 58 * @link http://tools.ietf.org/html/rfc7230#section-5.3 (for the various 57 59 * request-target forms allowed in request messages) 58 * @param mixed$requestTarget60 * @param string $requestTarget 59 61 * @return static 60 62 */ 61 public function withRequestTarget( $requestTarget);63 public function withRequestTarget(string $requestTarget); 62 64 63 65 /** … … 83 85 * @throws \InvalidArgumentException for invalid HTTP methods. 84 86 */ 85 public function withMethod( $method);87 public function withMethod(string $method); 86 88 87 89 /** … … 126 128 * @return static 127 129 */ 128 public function withUri(UriInterface $uri, $preserveHost = false);130 public function withUri(UriInterface $uri, bool $preserveHost = false); 129 131 } -
zettle-pos-integration/trunk/vendor/psr/http-message/src/ResponseInterface.php
r2477105 r2907067 1 1 <?php 2 3 declare(strict_types=1); 2 4 3 5 namespace Psr\Http\Message; … … 50 52 * @throws \InvalidArgumentException For invalid status code arguments. 51 53 */ 52 public function withStatus( $code,$reasonPhrase = '');54 public function withStatus(int $code, string $reasonPhrase = ''); 53 55 54 56 /** -
zettle-pos-integration/trunk/vendor/psr/http-message/src/ServerRequestInterface.php
r2477105 r2907067 1 1 <?php 2 3 declare(strict_types=1); 2 4 3 5 namespace Psr\Http\Message; … … 225 227 * @return mixed 226 228 */ 227 public function getAttribute( $name, $default = null);229 public function getAttribute(string $name, $default = null); 228 230 229 231 /** … … 242 244 * @return static 243 245 */ 244 public function withAttribute( $name, $value);246 public function withAttribute(string $name, $value); 245 247 246 248 /** … … 258 260 * @return static 259 261 */ 260 public function withoutAttribute( $name);262 public function withoutAttribute(string $name); 261 263 } -
zettle-pos-integration/trunk/vendor/psr/http-message/src/StreamInterface.php
r2477105 r2907067 1 1 <?php 2 3 declare(strict_types=1); 2 4 3 5 namespace Psr\Http\Message; … … 85 87 * @throws \RuntimeException on failure. 86 88 */ 87 public function seek( $offset,$whence = SEEK_SET);89 public function seek(int $offset, int $whence = SEEK_SET); 88 90 89 91 /** … … 113 115 * @throws \RuntimeException on failure. 114 116 */ 115 public function write( $string);117 public function write(string $string); 116 118 117 119 /** … … 132 134 * @throws \RuntimeException if an error occurs. 133 135 */ 134 public function read( $length);136 public function read(int $length); 135 137 136 138 /** … … 150 152 * 151 153 * @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. 153 155 * @return array|mixed|null Returns an associative array if no key is 154 156 * provided. Returns a specific key value if a key is provided and the 155 157 * value is found, or null if the key is not found. 156 158 */ 157 public function getMetadata( $key = null);159 public function getMetadata(?string $key = null); 158 160 } -
zettle-pos-integration/trunk/vendor/psr/http-message/src/UploadedFileInterface.php
r2477105 r2907067 1 1 <?php 2 3 declare(strict_types=1); 2 4 3 5 namespace Psr\Http\Message; … … 63 65 * the second or subsequent call to the method. 64 66 */ 65 public function moveTo( $targetPath);67 public function moveTo(string $targetPath); 66 68 67 69 /** -
zettle-pos-integration/trunk/vendor/psr/http-message/src/UriInterface.php
r2477105 r2907067 1 1 <?php 2 3 declare(strict_types=1); 4 2 5 namespace Psr\Http\Message; 3 6 … … 189 192 * @throws \InvalidArgumentException for invalid or unsupported schemes. 190 193 */ 191 public function withScheme( $scheme);194 public function withScheme(string $scheme); 192 195 193 196 /** … … 205 208 * @return static A new instance with the specified user information. 206 209 */ 207 public function withUserInfo( $user,$password = null);210 public function withUserInfo(string $user, ?string $password = null); 208 211 209 212 /** … … 219 222 * @throws \InvalidArgumentException for invalid hostnames. 220 223 */ 221 public function withHost( $host);224 public function withHost(string $host); 222 225 223 226 /** … … 238 241 * @throws \InvalidArgumentException for invalid ports. 239 242 */ 240 public function withPort( $port);243 public function withPort(?int $port); 241 244 242 245 /** … … 262 265 * @throws \InvalidArgumentException for invalid paths. 263 266 */ 264 public function withPath( $path);267 public function withPath(string $path); 265 268 266 269 /** … … 279 282 * @throws \InvalidArgumentException for invalid query strings. 280 283 */ 281 public function withQuery( $query);284 public function withQuery(string $query); 282 285 283 286 /** … … 295 298 * @return static A new instance with the specified fragment. 296 299 */ 297 public function withFragment( $fragment);300 public function withFragment(string $fragment); 298 301 299 302 /** -
zettle-pos-integration/trunk/zettle-pos-integration.php
r2880545 r2907067 8 8 * Plugin URI: https://zettle.inpsyde.com/ 9 9 * Description: PayPal Zettle Point-Of-Sale Integration for WooCommerce 10 * Version: 1.5 .510 * Version: 1.5,6 11 11 * Requires at least: 5.4 12 12 * Requires PHP: 7.2
Note: See TracChangeset
for help on using the changeset viewer.