Changeset 2631429
- Timestamp:
- 11/17/2021 01:56:33 PM (4 years ago)
- Location:
- zettle-pos-integration/trunk
- Files:
-
- 1 added
- 18 deleted
- 35 edited
-
modules/zettle-auth/services.php (modified) (1 diff)
-
modules/zettle-auth/src/AuthModule.php (modified) (1 diff)
-
modules/zettle-auth/src/HTTPlug/ZettleAuthPlugin.php (modified) (2 diffs)
-
modules/zettle-notices/services.php (modified) (2 diffs)
-
modules/zettle-notices/src/Notice/Admin/GlobalConnectionFailedNotice.php (modified) (3 diffs)
-
modules/zettle-notices/src/Notice/Admin/IntegrationConnectionFailedNotice.php (modified) (3 diffs)
-
modules/zettle-onboarding/services.php (modified) (2 diffs)
-
modules/zettle-onboarding/src/Job/ResetOnboardingJob.php (modified) (4 diffs)
-
modules/zettle-onboarding/src/Settings/View/DisconnectAccountView.php (deleted)
-
modules/zettle-php-sdk/src/API/Products/Products.php (modified) (2 diffs)
-
modules/zettle-php-sdk/src/API/Webhooks/Subscriptions.php (modified) (2 diffs)
-
modules/zettle-php-sdk/src/DAL/Exception/VariantOption (deleted)
-
modules/zettle-php-sdk/src/DAL/Exception/Vat/InvalidVatPercentageIsNotNumeric.php (deleted)
-
modules/zettle-php-sdk/src/DAL/Exception/Vat/InvalidVatPercentageTooHigh.php (deleted)
-
modules/zettle-php-sdk/src/DAL/Exception/Vat/InvalidVatPercentageTooLow.php (deleted)
-
modules/zettle-php-sdk/src/DAL/Validator/VariantOption (deleted)
-
modules/zettle-php-sdk/src/DAL/Validator/Vat (deleted)
-
modules/zettle-php-sdk/src/Filter/StockQuantityFilter.php (deleted)
-
modules/zettle-php-sdk/src/Validator/LazyImageValidator.php (deleted)
-
modules/zettle-php-sdk/src/Validator/VariantOptionValidator.php (modified) (1 diff)
-
modules/zettle-settings/services.php (modified) (3 diffs)
-
modules/zettle-settings/src/WC/ZettleIntegration.php (modified) (7 diffs)
-
modules/zettle-settings/src/WC/ZettleIntegrationHeader.php (modified) (3 diffs)
-
modules/zettle-sync/src/Listener/UnPurchasableListener.php (deleted)
-
modules/zettle-sync/src/SyncModule.php (modified) (2 diffs)
-
modules/zettle-webhooks/src/WebhookStorage.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
-
vendor/autoload.php (modified) (1 diff)
-
vendor/composer/InstalledVersions.php (modified) (1 diff)
-
vendor/composer/autoload_real.php (modified) (5 diffs)
-
vendor/composer/autoload_static.php (modified) (2 diffs)
-
vendor/composer/installed.json (modified) (45 diffs)
-
vendor/composer/installed.php (modified) (26 diffs)
-
vendor/composer/platform_check.php (modified) (1 diff)
-
vendor/dhii/collections-interface/psalm.xml.dist (modified) (1 diff)
-
vendor/dhii/containers/psalm.xml.dist (modified) (2 diffs)
-
vendor/dhii/module-interface/LICENSE (deleted)
-
vendor/dhii/module-interface/docker (deleted)
-
vendor/dhii/module-interface/docker-compose.yml (deleted)
-
vendor/dhii/module-interface/phpmd.xml (deleted)
-
vendor/inpsyde/assets/docs (deleted)
-
vendor/inpsyde/assets/psalm.xml (modified) (1 diff)
-
vendor/inpsyde/assets/src/AssetManager.php (modified) (1 diff)
-
vendor/inpsyde/assets/src/Handler/StyleHandler.php (modified) (1 diff)
-
vendor/inpsyde/assets/src/Style.php (modified) (2 diffs)
-
vendor/inpsyde/psr-18-wp-http-client/LICENSE (added)
-
vendor/inpsyde/psr-18-wp-http-client/LICENSE.md (deleted)
-
vendor/inpsyde/wp-context/src/WpContext.php (modified) (1 diff)
-
vendor/lcobucci/jwt/src/Signer/Key/LocalFileReference.php (modified) (2 diffs)
-
vendor/oomphinc/composer-installers-extender/src/Installer.php (deleted)
-
vendor/oomphinc/composer-installers-extender/src/InstallerHelper.php (deleted)
-
vendor/psr/container/src/ContainerExceptionInterface.php (modified) (1 diff)
-
vendor/symfony/uid/UuidV4.php (modified) (1 diff)
-
zettle-pos-integration.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
zettle-pos-integration/trunk/modules/zettle-auth/services.php
r2605648 r2631429 115 115 ); 116 116 }, 117 118 'zettle.auth.is-failed' => static function (C $container): bool { 119 return (bool) get_option($container->get('zettle.auth.is-failed.key')); 120 }, 121 'zettle.auth.is-failed.key' => static function (): string { 122 return 'zettle-pos-integration.auth-failed'; 123 }, 124 117 125 'zettle.oauth.http-client-factory' => 118 126 static function (C $container): AuthenticatedClientFactory { -
zettle-pos-integration/trunk/modules/zettle-auth/src/AuthModule.php
r2605648 r2631429 53 53 ); 54 54 55 $authFailedKey = $container->get('zettle.auth.is-failed.key'); 56 57 add_action( 58 'inpsyde.zettle.auth.failed', 59 static function () use ($authFailedKey) { 60 update_option($authFailedKey, true); 61 } 62 ); 63 add_action( 64 'inpsyde.zettle.auth.succeeded', 65 static function () use ($authFailedKey) { 66 delete_option($authFailedKey); 67 } 68 ); 69 55 70 add_action( 56 71 'inpsyde.zettle.credentials.updated', 57 static function (array $changed) use ($container ) {72 static function (array $changed) use ($container, $authFailedKey) { 58 73 $storage = $container->get('zettle.oauth.token-storage'); 59 74 assert($storage instanceof TokenPersistorInterface); 60 75 61 76 $storage->clear(); 77 78 delete_option($authFailedKey); 62 79 } 63 80 ); -
zettle-pos-integration/trunk/modules/zettle-auth/src/HTTPlug/ZettleAuthPlugin.php
r2477105 r2631429 135 135 * is now successful when we retry 136 136 */ 137 $this->handleAuthRequest($first, $request, $authGrantType)->wait(); 137 try { 138 $this->handleAuthRequest($first, $request, $authGrantType)->wait(); 139 } catch (AuthenticationException $authException) { 140 do_action('inpsyde.zettle.auth.failed', $authException); 141 throw $authException; 142 } 138 143 139 144 /** … … 143 148 $promise = $this->handleRequest($request, $next, $first); 144 149 145 return $promise->wait(); 146 } 150 $ret = $promise->wait(); 151 152 do_action('inpsyde.zettle.auth.succeeded'); 153 154 return $ret; 155 } 156 157 do_action('inpsyde.zettle.auth.succeeded'); 147 158 148 159 unset($this->chainStorage[$chainIdentifier]); -
zettle-pos-integration/trunk/modules/zettle-notices/services.php
r2477105 r2631429 26 26 return new GlobalConnectionFailedNotice( 27 27 $container->get('zettle.settings.is-integration-page'), 28 $container->get('zettle. onboarding.api-auth-check'),28 $container->get('zettle.auth.is-failed'), 29 29 $container->get('zettle.settings.url') 30 30 ); … … 36 36 $container->get('zettle.settings.is-integration-page'), 37 37 $container->get('zettle.onboarding.api-auth-check'), 38 $container->get('zettle.settings.is-settings-save-request'), 38 39 $container->get('zettle.settings.account.link.api-key-creation-url') 39 40 ); -
zettle-pos-integration/trunk/modules/zettle-notices/src/Notice/Admin/GlobalConnectionFailedNotice.php
r2605648 r2631429 16 16 17 17 /** 18 * @var callable18 * @var bool 19 19 */ 20 private $auth CheckCallback;20 private $authFailed; 21 21 22 22 /** … … 25 25 private $settingsUrl; 26 26 27 /**28 * AuthenticationFailed constructor.29 *30 * @param callable $isIntegrationPageCallback31 * @param callable $authCheckCallback32 * @param string $settingsUrl33 */34 27 public function __construct( 35 28 callable $isIntegrationPageCallback, 36 callable $authCheckCallback,29 bool $authFailed, 37 30 string $settingsUrl 38 31 ) { 39 32 40 33 $this->isIntegrationPageCallback = $isIntegrationPageCallback; 41 $this->auth CheckCallback = $authCheckCallback;34 $this->authFailed = $authFailed; 42 35 $this->settingsUrl = $settingsUrl; 43 36 } … … 56 49 } 57 50 58 if (($this->authCheckCallback)()) { 59 return false; 60 } 61 62 return true; 51 return $this->authFailed; 63 52 } 64 53 -
zettle-pos-integration/trunk/modules/zettle-notices/src/Notice/Admin/IntegrationConnectionFailedNotice.php
r2605648 r2631429 21 21 22 22 /** 23 * @var bool 24 */ 25 private $isSavingSettings; 26 27 /** 23 28 * @var string 24 29 */ 25 30 private $apiCreationLink; 26 31 27 /**28 * SettingsAuthenticationFailedNotice constructor.29 *30 * @param callable $isIntegrationPageCallback31 * @param callable $authCheckCallback32 * @param string $apiCreationLink33 */34 32 public function __construct( 35 33 callable $isIntegrationPageCallback, 36 34 callable $authCheckCallback, 35 bool $isSavingSettings, 37 36 string $apiCreationLink 38 37 ) { … … 40 39 $this->isIntegrationPageCallback = $isIntegrationPageCallback; 41 40 $this->authCheckCallback = $authCheckCallback; 41 $this->isSavingSettings = $isSavingSettings; 42 42 $this->apiCreationLink = $apiCreationLink; 43 43 } … … 53 53 54 54 if (!($this->isIntegrationPageCallback)()) { 55 return false; 56 } 57 58 // admin_notices fires before WC settings save handling 59 // and WC also does not redirect to GET after saving settings. 60 // So if we check auth in this request, we may use old API key. 61 if ($this->isSavingSettings) { 55 62 return false; 56 63 } -
zettle-pos-integration/trunk/modules/zettle-onboarding/services.php
r2605648 r2631429 391 391 return [ 392 392 $container->get('zettle.onboarding.option.state'), 393 $container->get('zettle.settings.option-key'),394 393 $container->get('zettle.webhook.storage.option'), 395 394 $container->get('zettle.sdk.option.integration'), 396 $container->get('zettle.logger.wp-option.key'), 397 $container->get('inpsyde.queue.locker.option'), 395 $container->get('zettle.auth.is-failed.key'), 398 396 ]; 399 397 }, … … 420 418 $container->get('zettle.onboarding.resettable.tables'), 421 419 $container->get('zettle.onboarding.resettable.transients'), 420 $container->get('zettle.onboarding.resettable.options'), 422 421 $container->get('zettle.webhook.delete') 423 422 ); -
zettle-pos-integration/trunk/modules/zettle-onboarding/src/Job/ResetOnboardingJob.php
r2605648 r2631429 51 51 52 52 /** 53 * @var string[] 54 */ 55 private $options; 56 57 /** 53 58 * @var callable 54 59 */ 55 60 private $deleteWebhooks; 56 61 57 /**58 * ResetOnboardingJob constructor.59 *60 * @param wpdb $database61 * @param ClearableContainerInterface $optionContainer62 * @param TokenPersistorInterface $tokenStorage63 * @param array $options64 * @param array $tables65 * @param callable $deleteWebhooks66 */67 62 public function __construct( 68 63 wpdb $database, … … 72 67 array $tables, 73 68 array $transients, 69 array $options, 74 70 callable $deleteWebhooks 75 71 ) { … … 81 77 $this->tables = $tables; 82 78 $this->transients = $transients; 79 $this->options = $options; 83 80 $this->deleteWebhooks = $deleteWebhooks; 84 81 } … … 157 154 } 158 155 156 foreach ($this->options as $option) { 157 delete_option($option); 158 $logger->info("Cleared Option: '{$option}'"); 159 } 160 159 161 $logger->info("Cleanup finished"); 160 162 -
zettle-pos-integration/trunk/modules/zettle-php-sdk/src/API/Products/Products.php
r2605648 r2631429 303 303 return true; 304 304 } 305 $uuids = []; 306 307 array_walk( 308 $products, 309 static function (Product $product) use (&$uuids) { 310 $uuids[] = (string) $product->uuid(); 311 } 305 306 $uuids = array_map( 307 function (ProductInterface $product): string { 308 return $product->uuid(); 309 }, 310 $products 312 311 ); 312 313 313 $queryString = implode('&uuid=', $uuids); 314 314 … … 321 321 322 322 if ($withListeners) { 323 array_walk( 324 $products, 325 function (ProductInterface $product) use ($success) { 326 array_walk( 327 $this->listeners, 328 static function (callable $listener) use ($product, $success) { 329 $listener(ApiRestListener::DELETE, $product, $success); 330 } 331 ); 332 } 333 ); 323 foreach ($products as $product) { 324 foreach ($this->listeners as $listener) { 325 $listener(ApiRestListener::DELETE, $product, $success); 326 } 327 } 334 328 } 335 329 -
zettle-pos-integration/trunk/modules/zettle-php-sdk/src/API/Webhooks/Subscriptions.php
r2605648 r2631429 67 67 { 68 68 $payload = [ 69 'uuid' => (string)$webhook->uuid(),70 'transportName' => $webhook::TRANSPORT_NAME,69 'uuid' => $webhook->uuid(), 70 'transportName' => ZettleWebhook::TRANSPORT_NAME, 71 71 'eventNames' => $webhook->eventNames(), 72 72 'destination' => (string) $webhook->destination(), … … 93 93 94 94 $payload = [ 95 'transportName' => $webhook::TRANSPORT_NAME,95 'transportName' => ZettleWebhook::TRANSPORT_NAME, 96 96 'eventNames' => $webhook->eventNames(), 97 97 'destination' => (string) $webhook->destination(), -
zettle-pos-integration/trunk/modules/zettle-php-sdk/src/Validator/VariantOptionValidator.php
r2605648 r2631429 33 33 34 34 $name = $entity->name(); 35 /** @psalm-suppress RedundantCast */ 35 36 $nameLength = (int) mb_strlen($name); 36 37 -
zettle-pos-integration/trunk/modules/zettle-settings/services.php
r2605648 r2631429 16 16 17 17 return [ 18 'zettle.settings.option-key' => static function (C $container): string {19 return 'woocommerce_zettle_settings';20 },21 18 'zettle.settings.url' => static function (C $container): string { 22 19 return admin_url('admin.php?page=wc-settings&tab=zettle'); … … 219 216 return new ZettleIntegration( 220 217 $container->get('zettle.settings.wc-integration.id'), 221 $container->get('zettle.settings.option-key'),222 218 $container->get('zettle.settings.wc-integration.header'), 223 219 $stateMachine->currentState()->name(), … … 227 223 ...$container->get('zettle.settings.field-renderers') 228 224 ); 225 }, 226 'zettle.settings.is-settings-save-request' => static function (C $container): bool { 227 return filter_input(INPUT_POST, 'save') && 228 $container->get('zettle.settings.is-integration-page')(); 229 229 }, 230 230 'zettle.settings.page.factory' => static function (C $container): callable { -
zettle-pos-integration/trunk/modules/zettle-settings/src/WC/ZettleIntegration.php
r2605648 r2631429 14 14 class ZettleIntegration extends WC_Settings_API 15 15 { 16 /** 17 * @var ZettleIntegrationTemplate 18 */ 19 private $header; 16 20 17 21 /** 18 22 * @var string 19 23 */ 20 private $optionKey;21 22 /**23 * @var ZettleIntegrationTemplate24 */25 private $header;26 27 /**28 * @var string29 */30 24 private $currentState; 31 25 … … 45 39 private $container; 46 40 47 /**48 * Init and hook in the integration.49 *50 * @param string $id51 * @param string $optionKey52 * @param ZettleIntegrationTemplate $header53 * @param string $currentState54 * @param array $formFields55 * @param callable $isIntegrationPage56 * @param FieldRendererInterface[] $renderers57 */58 41 public function __construct( 59 42 string $id, 60 string $optionKey,61 43 ZettleIntegrationTemplate $header, 62 44 string $currentState, … … 67 49 ) { 68 50 69 $this->optionKey = $optionKey;70 71 51 $this->header = $header; 72 52 … … 119 99 : ''; 120 100 121 if (!is_null($emptyValue) && $default === '') {122 $this->settings[$key] = $emptyValue;123 }124 125 101 return $default; 126 102 } … … 136 112 public function process_admin_options() 137 113 { 138 $old = $this->settings; 139 114 $old = []; 140 115 $settings = []; 141 116 $postData = $this->get_post_data(); … … 145 120 continue; // do not reset missing fields 146 121 } 122 123 $old[$key] = $this->get_option($key); 147 124 148 125 if ($this->get_field_type($field) !== 'title') { … … 169 146 $changed = []; 170 147 171 foreach ($ this->settingsas $key => $value) {172 if (! array_key_exists($key, $old)) {148 foreach ($sanitized as $key => $value) { 149 if (!isset($old[$key])) { 173 150 $changed[$key] = $value; 174 151 continue; -
zettle-pos-integration/trunk/modules/zettle-settings/src/WC/ZettleIntegrationHeader.php
r2605648 r2631429 6 6 7 7 use Countable; 8 use Exception; 8 9 use Inpsyde\Zettle\Onboarding\OnboardingState as S; 9 10 use Inpsyde\Zettle\Onboarding\Settings\View\ButtonRendererTrait; … … 252 253 } 253 254 254 if ($this->currentState === S::ONBOARDING_COMPLETED && !empty($this->organizationProvider)) : ?>255 if ($this->currentState === S::ONBOARDING_COMPLETED) : ?> 255 256 <div class="zettle-settings-header-merchant-email"> 256 <p><?php echo esc_html( $this->organizationProvider->provide()->contactEmail()); ?></p>257 <p><?php echo esc_html((string) $this->email()); ?></p> 257 258 </div> 258 259 <?php … … 480 481 <?php return ob_get_clean(); 481 482 } 483 484 private function email(): ?string 485 { 486 try { 487 return $this->organizationProvider->provide()->contactEmail(); 488 } catch (Exception $exception) { 489 return null; 490 } 491 } 482 492 } -
zettle-pos-integration/trunk/modules/zettle-sync/src/SyncModule.php
r2605648 r2631429 57 57 } 58 58 59 $logger = $container->get('zettle.logger'); 60 59 61 // without is_admin it triggers multiple time in ajax requests 60 62 // also to avoid performance issues for users … … 62 64 is_admin() 63 65 && $container->get('zettle.sync.price-sync-enabled') 64 && $container->get('zettle.sdk.api.auth-check')()66 && !$container->get('zettle.auth.is-failed') 65 67 ) { 66 $storeComparison = $container->get('zettle.onboarding.comparison.store'); 67 $settings = $container->get('zettle.settings'); 68 $logger = $container->get('zettle.logger'); 68 try { 69 $settings = $container->get('zettle.settings'); 69 70 70 if (!$storeComparison->canSyncPrices()) { 71 $logger->info(__( 72 'Cannot sync prices with PayPal Zettle anymore, check your WC settings (currency, country, taxes).', 73 'zettle-pos-integration' 74 )); 71 $storeComparison = $container->get('zettle.onboarding.comparison.store'); 72 if (!$storeComparison->canSyncPrices()) { 73 $logger->info(__( 74 'Cannot sync prices with PayPal Zettle anymore, check your WC settings (currency, country, taxes).', 75 'zettle-pos-integration' 76 )); 75 77 76 $settings->set('sync_price_strategy', PriceSyncMode::DISABLED); 78 $settings->set('sync_price_strategy', PriceSyncMode::DISABLED); 79 } 80 } catch (Exception $exception) { 81 // likely happens on auth failure when refreshing account data 82 $logger->debug('Settings check failed. ' . $exception->getMessage()); 77 83 } 78 84 } -
zettle-pos-integration/trunk/modules/zettle-webhooks/src/WebhookStorage.php
r2477105 r2631429 9 9 use Inpsyde\Zettle\PhpSdk\API\Webhooks\Entity\Webhook; 10 10 use Inpsyde\Zettle\PhpSdk\API\Webhooks\Entity\WebhookFactory; 11 use Inpsyde\Zettle\PhpSdk\API\Webhooks\Entity\ZettleWebhook; 11 12 12 13 class WebhookStorage implements WebhookStorageInterface … … 59 60 { 60 61 $data = [ 61 'uuid' => (string)$webhook->uuid(),62 'transportName' => $webhook::TRANSPORT_NAME,62 'uuid' => $webhook->uuid(), 63 'transportName' => ZettleWebhook::TRANSPORT_NAME, 63 64 'eventNames' => $webhook->eventNames(), 64 65 'destination' => (string) $webhook->destination(), -
zettle-pos-integration/trunk/readme.txt
r2605648 r2631429 5 5 Tested up to: 5.8 6 6 Requires PHP: 7.2 7 Stable tag: 1.5. 07 Stable tag: 1.5.1 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 68 68 == Changelog == 69 69 70 = 1.5.1 = 71 - Optimize auth checks to reduce amount of requests to Zettle. 72 - Fixed API key change detection when saving settings, so that it takes effect immediately. 73 - Fixed fatal error on the settings page when auth fails. 74 - Delete some missing options during resetting/uninstallation (webhooks, integration id, ...). 75 70 76 = 1.5.0 = 71 77 - Add plugin status data on the WC Status page. -
zettle-pos-integration/trunk/vendor/autoload.php
r2605648 r2631429 5 5 require_once __DIR__ . '/composer/autoload_real.php'; 6 6 7 return ComposerAutoloaderInit 1cbf92780f623995dcc91128fb4159b5::getLoader();7 return ComposerAutoloaderInit7ae8c9caea2f8fd02c2bf18844b98690::getLoader(); -
zettle-pos-integration/trunk/vendor/composer/InstalledVersions.php
r2605648 r2631429 25 25 class InstalledVersions 26 26 { 27 /** 28 * @var mixed[]|null 29 * @psalm-var array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}|array{}|null 30 */ 27 31 private static $installed; 32 33 /** 34 * @var bool|null 35 */ 28 36 private static $canGetVendors; 37 38 /** 39 * @var array[] 40 * @psalm-var array<string, array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}> 41 */ 29 42 private static $installedByVendor = array(); 30 43 -
zettle-pos-integration/trunk/vendor/composer/autoload_real.php
r2605648 r2631429 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 1cbf92780f623995dcc91128fb4159b55 class ComposerAutoloaderInit7ae8c9caea2f8fd02c2bf18844b98690 6 6 { 7 7 private static $loader; … … 25 25 require __DIR__ . '/platform_check.php'; 26 26 27 spl_autoload_register(array('ComposerAutoloaderInit 1cbf92780f623995dcc91128fb4159b5', 'loadClassLoader'), true, true);27 spl_autoload_register(array('ComposerAutoloaderInit7ae8c9caea2f8fd02c2bf18844b98690', 'loadClassLoader'), true, true); 28 28 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__))); 29 spl_autoload_unregister(array('ComposerAutoloaderInit 1cbf92780f623995dcc91128fb4159b5', 'loadClassLoader'));29 spl_autoload_unregister(array('ComposerAutoloaderInit7ae8c9caea2f8fd02c2bf18844b98690', 'loadClassLoader')); 30 30 31 31 $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); … … 33 33 require __DIR__ . '/autoload_static.php'; 34 34 35 call_user_func(\Composer\Autoload\ComposerStaticInit 1cbf92780f623995dcc91128fb4159b5::getInitializer($loader));35 call_user_func(\Composer\Autoload\ComposerStaticInit7ae8c9caea2f8fd02c2bf18844b98690::getInitializer($loader)); 36 36 } else { 37 37 $classMap = require __DIR__ . '/autoload_classmap.php'; … … 45 45 46 46 if ($useStaticLoader) { 47 $includeFiles = Composer\Autoload\ComposerStaticInit 1cbf92780f623995dcc91128fb4159b5::$files;47 $includeFiles = Composer\Autoload\ComposerStaticInit7ae8c9caea2f8fd02c2bf18844b98690::$files; 48 48 } else { 49 49 $includeFiles = require __DIR__ . '/autoload_files.php'; 50 50 } 51 51 foreach ($includeFiles as $fileIdentifier => $file) { 52 composerRequire 1cbf92780f623995dcc91128fb4159b5($fileIdentifier, $file);52 composerRequire7ae8c9caea2f8fd02c2bf18844b98690($fileIdentifier, $file); 53 53 } 54 54 … … 57 57 } 58 58 59 function composerRequire 1cbf92780f623995dcc91128fb4159b5($fileIdentifier, $file)59 function composerRequire7ae8c9caea2f8fd02c2bf18844b98690($fileIdentifier, $file) 60 60 { 61 61 if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { -
zettle-pos-integration/trunk/vendor/composer/autoload_static.php
r2605648 r2631429 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit 1cbf92780f623995dcc91128fb4159b57 class ComposerStaticInit7ae8c9caea2f8fd02c2bf18844b98690 8 8 { 9 9 public static $files = array ( … … 1543 1543 { 1544 1544 return \Closure::bind(function () use ($loader) { 1545 $loader->prefixLengthsPsr4 = ComposerStaticInit 1cbf92780f623995dcc91128fb4159b5::$prefixLengthsPsr4;1546 $loader->prefixDirsPsr4 = ComposerStaticInit 1cbf92780f623995dcc91128fb4159b5::$prefixDirsPsr4;1547 $loader->classMap = ComposerStaticInit 1cbf92780f623995dcc91128fb4159b5::$classMap;1545 $loader->prefixLengthsPsr4 = ComposerStaticInit7ae8c9caea2f8fd02c2bf18844b98690::$prefixLengthsPsr4; 1546 $loader->prefixDirsPsr4 = ComposerStaticInit7ae8c9caea2f8fd02c2bf18844b98690::$prefixDirsPsr4; 1547 $loader->classMap = ComposerStaticInit7ae8c9caea2f8fd02c2bf18844b98690::$classMap; 1548 1548 1549 1549 }, null, ClassLoader::class); -
zettle-pos-integration/trunk/vendor/composer/installed.json
r2605648 r2631429 337 337 { 338 338 "name": "dhii/collections-interface", 339 "version": "v0.3.0 -alpha4",340 "version_normalized": "0.3.0.0 -alpha4",339 "version": "v0.3.0", 340 "version_normalized": "0.3.0.0", 341 341 "source": { 342 342 "type": "git", 343 343 "url": "https://github.com/Dhii/collections-interface.git", 344 "reference": " da334f75f6477ef7eecaf28df1d5253fe05684ee"345 }, 346 "dist": { 347 "type": "zip", 348 "url": "https://api.github.com/repos/Dhii/collections-interface/zipball/ da334f75f6477ef7eecaf28df1d5253fe05684ee",349 "reference": " da334f75f6477ef7eecaf28df1d5253fe05684ee",344 "reference": "74464a969b340d16889eacd9eadc9817f7e7f47a" 345 }, 346 "dist": { 347 "type": "zip", 348 "url": "https://api.github.com/repos/Dhii/collections-interface/zipball/74464a969b340d16889eacd9eadc9817f7e7f47a", 349 "reference": "74464a969b340d16889eacd9eadc9817f7e7f47a", 350 350 "shasum": "", 351 351 "mirrors": [ … … 363 363 "phpunit/phpunit": "^7.0 | ^8.0 | ^9.0", 364 364 "slevomat/coding-standard": "^6.0", 365 "vimeo/psalm": "^ 3.11.7 | ^4.0"366 }, 367 "time": "2021- 03-09T17:36:34+00:00",365 "vimeo/psalm": "^4.0" 366 }, 367 "time": "2021-10-06T10:56:09+00:00", 368 368 "type": "library", 369 369 "extra": { … … 395 395 "support": { 396 396 "issues": "https://github.com/Dhii/collections-interface/issues", 397 "source": "https://github.com/Dhii/collections-interface/tree/v0.3.0 -alpha4"397 "source": "https://github.com/Dhii/collections-interface/tree/v0.3.0" 398 398 }, 399 399 "install-path": "../dhii/collections-interface" … … 406 406 "type": "git", 407 407 "url": "https://github.com/Dhii/containers.git", 408 "reference": " b76c73d172255eddb9d6e2a3a9ed2306c8b42563"409 }, 410 "dist": { 411 "type": "zip", 412 "url": "https://api.github.com/repos/Dhii/containers/zipball/ b76c73d172255eddb9d6e2a3a9ed2306c8b42563",413 "reference": " b76c73d172255eddb9d6e2a3a9ed2306c8b42563",408 "reference": "0c27bdf5a8fd689fe2d74385b747c85ef0df9be4" 409 }, 410 "dist": { 411 "type": "zip", 412 "url": "https://api.github.com/repos/Dhii/containers/zipball/0c27bdf5a8fd689fe2d74385b747c85ef0df9be4", 413 "reference": "0c27bdf5a8fd689fe2d74385b747c85ef0df9be4", 414 414 "shasum": "", 415 415 "mirrors": [ … … 434 434 "wildwolf/psr-memory-cache": "^1.0" 435 435 }, 436 "time": "2021- 03-10T08:54:31+00:00",436 "time": "2021-10-06T11:15:32+00:00", 437 437 "default-branch": true, 438 438 "type": "library", … … 465 465 "support": { 466 466 "issues": "https://github.com/Dhii/containers/issues", 467 "source": "https://github.com/Dhii/containers/tree/ v0.1.4-alpha2"467 "source": "https://github.com/Dhii/containers/tree/develop" 468 468 }, 469 469 "install-path": "../dhii/containers" … … 822 822 { 823 823 "name": "inpsyde/assets", 824 "version": "2. 7.0",825 "version_normalized": "2. 7.0.0",824 "version": "2.8", 825 "version_normalized": "2.8.0.0", 826 826 "source": { 827 827 "type": "git", 828 828 "url": "https://github.com/inpsyde/assets.git", 829 "reference": " 5eedca1ec517c728dd629da8b29b716ed9ac3780"830 }, 831 "dist": { 832 "type": "zip", 833 "url": "https://api.github.com/repos/inpsyde/assets/zipball/ 5eedca1ec517c728dd629da8b29b716ed9ac3780",834 "reference": " 5eedca1ec517c728dd629da8b29b716ed9ac3780",829 "reference": "6383ccc31df80118eb32096b10ca621e48a588b6" 830 }, 831 "dist": { 832 "type": "zip", 833 "url": "https://api.github.com/repos/inpsyde/assets/zipball/6383ccc31df80118eb32096b10ca621e48a588b6", 834 "reference": "6383ccc31df80118eb32096b10ca621e48a588b6", 835 835 "shasum": "", 836 836 "mirrors": [ … … 855 855 "vimeo/psalm": "@stable" 856 856 }, 857 "time": "2021- 08-06T06:45:37+00:00",857 "time": "2021-11-11T09:15:30+00:00", 858 858 "type": "library", 859 859 "extra": { … … 883 883 { 884 884 "name": "Christian Leucht", 885 "email": "c hris@chrico.info",885 "email": "c.leucht@inpsyde.com", 886 886 "homepage": "https://www.chrico.info", 887 887 "role": "Developer" … … 891 891 "support": { 892 892 "issues": "https://github.com/inpsyde/assets/issues", 893 "source": "https://github.com/inpsyde/assets/tree/2. 7.0"893 "source": "https://github.com/inpsyde/assets/tree/2.8" 894 894 }, 895 895 "install-path": "../inpsyde/assets" … … 897 897 { 898 898 "name": "inpsyde/inpsyde-debug", 899 "version": "1.5. 0",900 "version_normalized": "1.5. 0.0",899 "version": "1.5.1", 900 "version_normalized": "1.5.1.0", 901 901 "dist": { 902 902 "type": "path", … … 933 933 { 934 934 "name": "inpsyde/inpsyde-http-client", 935 "version": "1.5. 0",936 "version_normalized": "1.5. 0.0",935 "version": "1.5.1", 936 "version_normalized": "1.5.1.0", 937 937 "dist": { 938 938 "type": "path", … … 962 962 { 963 963 "name": "inpsyde/inpsyde-queue", 964 "version": "1.5. 0",965 "version_normalized": "1.5. 0.0",964 "version": "1.5.1", 965 "version_normalized": "1.5.1.0", 966 966 "dist": { 967 967 "type": "path", … … 999 999 { 1000 1000 "name": "inpsyde/inpsyde-state-machine", 1001 "version": "1.5. 0",1002 "version_normalized": "1.5. 0.0",1001 "version": "1.5.1", 1002 "version_normalized": "1.5.1.0", 1003 1003 "dist": { 1004 1004 "type": "path", … … 1035 1035 { 1036 1036 "name": "inpsyde/inpsyde-woocommerce-lifecycle-events", 1037 "version": "1.5. 0",1038 "version_normalized": "1.5. 0.0",1037 "version": "1.5.1", 1038 "version_normalized": "1.5.1.0", 1039 1039 "dist": { 1040 1040 "type": "path", … … 1138 1138 { 1139 1139 "name": "inpsyde/psr-18-wp-http-client", 1140 "version": "v0.1.0-alpha 3",1141 "version_normalized": "0.1.0.0-alpha 3",1140 "version": "v0.1.0-alpha4", 1141 "version_normalized": "0.1.0.0-alpha4", 1142 1142 "source": { 1143 1143 "type": "git", 1144 1144 "url": "git@github.com:inpsyde/psr-18-wp-http-client.git", 1145 "reference": " 15665e2d7e795cca04c0ebb9facf54ea05bc4a38"1146 }, 1147 "dist": { 1148 "type": "zip", 1149 "url": "https://api.github.com/repos/inpsyde/psr-18-wp-http-client/zipball/ 15665e2d7e795cca04c0ebb9facf54ea05bc4a38",1150 "reference": " 15665e2d7e795cca04c0ebb9facf54ea05bc4a38",1145 "reference": "8dd172262c95fc3fb4716b14a54c9406254ba441" 1146 }, 1147 "dist": { 1148 "type": "zip", 1149 "url": "https://api.github.com/repos/inpsyde/psr-18-wp-http-client/zipball/8dd172262c95fc3fb4716b14a54c9406254ba441", 1150 "reference": "8dd172262c95fc3fb4716b14a54c9406254ba441", 1151 1151 "shasum": "", 1152 1152 "mirrors": [ … … 1162 1162 "psr/http-factory": "^1.0", 1163 1163 "psr/http-message": "^1.0" 1164 }, 1165 "provide": { 1166 "psr/http-client-implementation": "^1.0" 1164 1167 }, 1165 1168 "require-dev": { … … 1171 1174 "voku/httpful": "^2.4" 1172 1175 }, 1173 "time": "2021- 02-25T07:19:53+00:00",1176 "time": "2021-10-01T10:22:17+00:00", 1174 1177 "type": "library", 1175 1178 "extra": { … … 1191 1194 "notification-url": "https://repo.packagist.com/inpsyde/izettle/downloads/", 1192 1195 "license": [ 1193 " MIT"1196 "GPL-2.0-or-later" 1194 1197 ], 1195 1198 "authors": [ … … 1207 1210 "description": "A PSR-18 compatible wrapper for WordPress HTTP requests", 1208 1211 "support": { 1209 "source": "https://github.com/inpsyde/psr-18-wp-http-client/tree/v0.1.0-alpha 3",1212 "source": "https://github.com/inpsyde/psr-18-wp-http-client/tree/v0.1.0-alpha4", 1210 1213 "issues": "https://github.com/inpsyde/psr-18-wp-http-client/issues" 1211 1214 }, … … 1214 1217 { 1215 1218 "name": "inpsyde/wc-product-contracts", 1216 "version": "1.5. 0",1217 "version_normalized": "1.5. 0.0",1219 "version": "1.5.1", 1220 "version_normalized": "1.5.1.0", 1218 1221 "dist": { 1219 1222 "type": "path", … … 1248 1251 { 1249 1252 "name": "inpsyde/wc-status-report", 1250 "version": "1.5. 0",1251 "version_normalized": "1.5. 0.0",1253 "version": "1.5.1", 1254 "version_normalized": "1.5.1.0", 1252 1255 "dist": { 1253 1256 "type": "path", … … 1282 1285 { 1283 1286 "name": "inpsyde/wp-context", 1284 "version": "1.3. 0",1285 "version_normalized": "1.3. 0.0",1287 "version": "1.3.1", 1288 "version_normalized": "1.3.1.0", 1286 1289 "source": { 1287 1290 "type": "git", 1288 1291 "url": "https://github.com/inpsyde/wp-context.git", 1289 "reference": " 6b3377177d7dec2fc58b47479493cc541d7a4d54"1290 }, 1291 "dist": { 1292 "type": "zip", 1293 "url": "https://api.github.com/repos/inpsyde/wp-context/zipball/ 6b3377177d7dec2fc58b47479493cc541d7a4d54",1294 "reference": " 6b3377177d7dec2fc58b47479493cc541d7a4d54",1292 "reference": "d41b3b5d6fc8f5b9de3e832f7a79922d6446583c" 1293 }, 1294 "dist": { 1295 "type": "zip", 1296 "url": "https://api.github.com/repos/inpsyde/wp-context/zipball/d41b3b5d6fc8f5b9de3e832f7a79922d6446583c", 1297 "reference": "d41b3b5d6fc8f5b9de3e832f7a79922d6446583c", 1295 1298 "shasum": "", 1296 1299 "mirrors": [ … … 1312 1315 "vimeo/psalm": "@stable" 1313 1316 }, 1314 "time": "2021- 08-03T18:00:24+00:00",1317 "time": "2021-10-19T12:40:19+00:00", 1315 1318 "type": "library", 1316 1319 "extra": { … … 1345 1348 "support": { 1346 1349 "issues": "https://github.com/inpsyde/wp-context/issues", 1347 "source": "https://github.com/inpsyde/wp-context/tree/1.3. 0"1350 "source": "https://github.com/inpsyde/wp-context/tree/1.3.1" 1348 1351 }, 1349 1352 "install-path": "../inpsyde/wp-context" … … 1351 1354 { 1352 1355 "name": "inpsyde/zettle-assets", 1353 "version": "1.5. 0",1354 "version_normalized": "1.5. 0.0",1356 "version": "1.5.1", 1357 "version_normalized": "1.5.1.0", 1355 1358 "dist": { 1356 1359 "type": "path", … … 1376 1379 { 1377 1380 "name": "inpsyde/zettle-auth", 1378 "version": "1.5. 0",1379 "version_normalized": "1.5. 0.0",1381 "version": "1.5.1", 1382 "version_normalized": "1.5.1.0", 1380 1383 "dist": { 1381 1384 "type": "path", … … 1403 1406 { 1404 1407 "name": "inpsyde/zettle-logging", 1405 "version": "1.5. 0",1406 "version_normalized": "1.5. 0.0",1408 "version": "1.5.1", 1409 "version_normalized": "1.5.1.0", 1407 1410 "dist": { 1408 1411 "type": "path", … … 1442 1445 { 1443 1446 "name": "inpsyde/zettle-notices", 1444 "version": "1.5. 0",1445 "version_normalized": "1.5. 0.0",1447 "version": "1.5.1", 1448 "version_normalized": "1.5.1.0", 1446 1449 "dist": { 1447 1450 "type": "path", … … 1466 1469 { 1467 1470 "name": "inpsyde/zettle-onboarding", 1468 "version": "1.5. 0",1469 "version_normalized": "1.5. 0.0",1471 "version": "1.5.1", 1472 "version_normalized": "1.5.1.0", 1470 1473 "dist": { 1471 1474 "type": "path", … … 1504 1507 { 1505 1508 "name": "inpsyde/zettle-php-sdk", 1506 "version": "1.5. 0",1507 "version_normalized": "1.5. 0.0",1509 "version": "1.5.1", 1510 "version_normalized": "1.5.1.0", 1508 1511 "dist": { 1509 1512 "type": "path", … … 1546 1549 { 1547 1550 "name": "inpsyde/zettle-product-debug", 1548 "version": "1.5. 0",1549 "version_normalized": "1.5. 0.0",1551 "version": "1.5.1", 1552 "version_normalized": "1.5.1.0", 1550 1553 "dist": { 1551 1554 "type": "path", … … 1570 1573 { 1571 1574 "name": "inpsyde/zettle-product-settings", 1572 "version": "1.5. 0",1573 "version_normalized": "1.5. 0.0",1575 "version": "1.5.1", 1576 "version_normalized": "1.5.1.0", 1574 1577 "dist": { 1575 1578 "type": "path", … … 1595 1598 { 1596 1599 "name": "inpsyde/zettle-queue", 1597 "version": "1.5. 0",1598 "version_normalized": "1.5. 0.0",1600 "version": "1.5.1", 1601 "version_normalized": "1.5.1.0", 1599 1602 "dist": { 1600 1603 "type": "path", … … 1620 1623 { 1621 1624 "name": "inpsyde/zettle-settings", 1622 "version": "1.5. 0",1623 "version_normalized": "1.5. 0.0",1625 "version": "1.5.1", 1626 "version_normalized": "1.5.1.0", 1624 1627 "dist": { 1625 1628 "type": "path", … … 1644 1647 { 1645 1648 "name": "inpsyde/zettle-sync", 1646 "version": "1.5. 0",1647 "version_normalized": "1.5. 0.0",1649 "version": "1.5.1", 1650 "version_normalized": "1.5.1.0", 1648 1651 "dist": { 1649 1652 "type": "path", … … 1669 1672 { 1670 1673 "name": "inpsyde/zettle-webhooks", 1671 "version": "1.5. 0",1672 "version_normalized": "1.5. 0.0",1674 "version": "1.5.1", 1675 "version_normalized": "1.5.1.0", 1673 1676 "dist": { 1674 1677 "type": "path", … … 1703 1706 { 1704 1707 "name": "lcobucci/jwt", 1705 "version": "3.4. 5",1706 "version_normalized": "3.4. 5.0",1708 "version": "3.4.6", 1709 "version_normalized": "3.4.6.0", 1707 1710 "source": { 1708 1711 "type": "git", 1709 1712 "url": "https://github.com/lcobucci/jwt.git", 1710 "reference": " 511629a54465e89a31d3d7e4cf0935feab8b14c1"1711 }, 1712 "dist": { 1713 "type": "zip", 1714 "url": "https://api.github.com/repos/lcobucci/jwt/zipball/ 511629a54465e89a31d3d7e4cf0935feab8b14c1",1715 "reference": " 511629a54465e89a31d3d7e4cf0935feab8b14c1",1713 "reference": "3ef8657a78278dfeae7707d51747251db4176240" 1714 }, 1715 "dist": { 1716 "type": "zip", 1717 "url": "https://api.github.com/repos/lcobucci/jwt/zipball/3ef8657a78278dfeae7707d51747251db4176240", 1718 "reference": "3ef8657a78278dfeae7707d51747251db4176240", 1716 1719 "shasum": "", 1717 1720 "mirrors": [ … … 1737 1740 "lcobucci/clock": "*" 1738 1741 }, 1739 "time": "2021-0 2-16T09:40:01+00:00",1742 "time": "2021-09-28T19:18:28+00:00", 1740 1743 "type": "library", 1741 1744 "extra": { … … 1773 1776 "support": { 1774 1777 "issues": "https://github.com/lcobucci/jwt/issues", 1775 "source": "https://github.com/lcobucci/jwt/tree/3.4. 5"1778 "source": "https://github.com/lcobucci/jwt/tree/3.4.6" 1776 1779 }, 1777 1780 "funding": [ … … 2447 2450 { 2448 2451 "name": "psr/container", 2449 "version": "1.1. 1",2450 "version_normalized": "1.1. 1.0",2452 "version": "1.1.2", 2453 "version_normalized": "1.1.2.0", 2451 2454 "source": { 2452 2455 "type": "git", 2453 2456 "url": "https://github.com/php-fig/container.git", 2454 "reference": " 8622567409010282b7aeebe4bb841fe98b58dcaf"2455 }, 2456 "dist": { 2457 "type": "zip", 2458 "url": "https://api.github.com/repos/php-fig/container/zipball/ 8622567409010282b7aeebe4bb841fe98b58dcaf",2459 "reference": " 8622567409010282b7aeebe4bb841fe98b58dcaf",2460 "shasum": "", 2461 "mirrors": [ 2462 { 2463 "url": "https://repo.packagist.com/inpsyde/izettle/dists/%package%/%version%/r%reference%.%type%", 2464 "preferred": true 2465 } 2466 ] 2467 }, 2468 "require": { 2469 "php": ">=7. 2.0"2470 }, 2471 "time": "2021- 03-05T17:36:06+00:00",2457 "reference": "513e0666f7216c7459170d56df27dfcefe1689ea" 2458 }, 2459 "dist": { 2460 "type": "zip", 2461 "url": "https://api.github.com/repos/php-fig/container/zipball/513e0666f7216c7459170d56df27dfcefe1689ea", 2462 "reference": "513e0666f7216c7459170d56df27dfcefe1689ea", 2463 "shasum": "", 2464 "mirrors": [ 2465 { 2466 "url": "https://repo.packagist.com/inpsyde/izettle/dists/%package%/%version%/r%reference%.%type%", 2467 "preferred": true 2468 } 2469 ] 2470 }, 2471 "require": { 2472 "php": ">=7.4.0" 2473 }, 2474 "time": "2021-11-05T16:50:12+00:00", 2472 2475 "type": "library", 2473 2476 "installation-source": "dist", … … 2498 2501 "support": { 2499 2502 "issues": "https://github.com/php-fig/container/issues", 2500 "source": "https://github.com/php-fig/container/tree/1.1. 1"2503 "source": "https://github.com/php-fig/container/tree/1.1.2" 2501 2504 }, 2502 2505 "install-path": "../psr/container" … … 3163 3166 { 3164 3167 "name": "symfony/uid", 3165 "version": "v5.3. 3",3166 "version_normalized": "5.3. 3.0",3168 "version": "v5.3.10", 3169 "version_normalized": "5.3.10.0", 3167 3170 "source": { 3168 3171 "type": "git", 3169 3172 "url": "https://github.com/symfony/uid.git", 3170 "reference": " 45853bbc72f2b91c32e707afe7f896fddb3ee8e9"3171 }, 3172 "dist": { 3173 "type": "zip", 3174 "url": "https://api.github.com/repos/symfony/uid/zipball/ 45853bbc72f2b91c32e707afe7f896fddb3ee8e9",3175 "reference": " 45853bbc72f2b91c32e707afe7f896fddb3ee8e9",3173 "reference": "183336998e6b28c37ebf04ee18e6359dfb22084d" 3174 }, 3175 "dist": { 3176 "type": "zip", 3177 "url": "https://api.github.com/repos/symfony/uid/zipball/183336998e6b28c37ebf04ee18e6359dfb22084d", 3178 "reference": "183336998e6b28c37ebf04ee18e6359dfb22084d", 3176 3179 "shasum": "", 3177 3180 "mirrors": [ … … 3189 3192 "symfony/console": "^4.4|^5.0" 3190 3193 }, 3191 "time": "2021- 06-24T08:13:00+00:00",3194 "time": "2021-10-15T16:00:52+00:00", 3192 3195 "type": "library", 3193 3196 "installation-source": "dist", … … 3225 3228 ], 3226 3229 "support": { 3227 "source": "https://github.com/symfony/uid/tree/v5.3. 3"3230 "source": "https://github.com/symfony/uid/tree/v5.3.10" 3228 3231 }, 3229 3232 "funding": [ -
zettle-pos-integration/trunk/vendor/composer/installed.php
r2605648 r2631429 1 1 <?php return array( 2 2 'root' => array( 3 'pretty_version' => '1.5. 0',4 'version' => '1.5. 0.0',3 'pretty_version' => '1.5.1', 4 'version' => '1.5.1.0', 5 5 'type' => 'wordpress-plugin', 6 6 'install_path' => __DIR__ . '/../../', 7 7 'aliases' => array(), 8 'reference' => ' ef2aa08004288d737497c03fb94acbbe69d3e2db',8 'reference' => '4cb71a8904ee29f86f5fea748ed08a63d3e402d5', 9 9 'name' => 'inpsyde/zettle-pos-integration', 10 10 'dev' => false, … … 48 48 ), 49 49 'dhii/collections-interface' => array( 50 'pretty_version' => 'v0.3.0 -alpha4',51 'version' => '0.3.0.0 -alpha4',50 'pretty_version' => 'v0.3.0', 51 'version' => '0.3.0.0', 52 52 'type' => 'library', 53 53 'install_path' => __DIR__ . '/../dhii/collections-interface', 54 54 'aliases' => array(), 55 'reference' => ' da334f75f6477ef7eecaf28df1d5253fe05684ee',55 'reference' => '74464a969b340d16889eacd9eadc9817f7e7f47a', 56 56 'dev_requirement' => false, 57 57 ), … … 64 64 0 => '0.1.x-dev', 65 65 ), 66 'reference' => ' b76c73d172255eddb9d6e2a3a9ed2306c8b42563',66 'reference' => '0c27bdf5a8fd689fe2d74385b747c85ef0df9be4', 67 67 'dev_requirement' => false, 68 68 ), … … 113 113 ), 114 114 'inpsyde/assets' => array( 115 'pretty_version' => '2. 7.0',116 'version' => '2. 7.0.0',115 'pretty_version' => '2.8', 116 'version' => '2.8.0.0', 117 117 'type' => 'library', 118 118 'install_path' => __DIR__ . '/../inpsyde/assets', 119 119 'aliases' => array(), 120 'reference' => ' 5eedca1ec517c728dd629da8b29b716ed9ac3780',120 'reference' => '6383ccc31df80118eb32096b10ca621e48a588b6', 121 121 'dev_requirement' => false, 122 122 ), 123 123 'inpsyde/inpsyde-debug' => array( 124 'pretty_version' => '1.5. 0',125 'version' => '1.5. 0.0',124 'pretty_version' => '1.5.1', 125 'version' => '1.5.1.0', 126 126 'type' => 'inpsyde-module', 127 127 'install_path' => __DIR__ . '/../../modules/inpsyde-debug', … … 131 131 ), 132 132 'inpsyde/inpsyde-http-client' => array( 133 'pretty_version' => '1.5. 0',134 'version' => '1.5. 0.0',133 'pretty_version' => '1.5.1', 134 'version' => '1.5.1.0', 135 135 'type' => 'inpsyde-module', 136 136 'install_path' => __DIR__ . '/../../modules/inpsyde-http-client', … … 140 140 ), 141 141 'inpsyde/inpsyde-queue' => array( 142 'pretty_version' => '1.5. 0',143 'version' => '1.5. 0.0',142 'pretty_version' => '1.5.1', 143 'version' => '1.5.1.0', 144 144 'type' => 'inpsyde-module', 145 145 'install_path' => __DIR__ . '/../../modules/inpsyde-queue', … … 149 149 ), 150 150 'inpsyde/inpsyde-state-machine' => array( 151 'pretty_version' => '1.5. 0',152 'version' => '1.5. 0.0',151 'pretty_version' => '1.5.1', 152 'version' => '1.5.1.0', 153 153 'type' => 'inpsyde-module', 154 154 'install_path' => __DIR__ . '/../../modules/inpsyde-state-machine', … … 158 158 ), 159 159 'inpsyde/inpsyde-woocommerce-lifecycle-events' => array( 160 'pretty_version' => '1.5. 0',161 'version' => '1.5. 0.0',160 'pretty_version' => '1.5.1', 161 'version' => '1.5.1.0', 162 162 'type' => 'inpsyde-module', 163 163 'install_path' => __DIR__ . '/../../modules/inpsyde-woocommerce-lifecycle-events', … … 176 176 ), 177 177 'inpsyde/psr-18-wp-http-client' => array( 178 'pretty_version' => 'v0.1.0-alpha 3',179 'version' => '0.1.0.0-alpha 3',178 'pretty_version' => 'v0.1.0-alpha4', 179 'version' => '0.1.0.0-alpha4', 180 180 'type' => 'library', 181 181 'install_path' => __DIR__ . '/../inpsyde/psr-18-wp-http-client', 182 182 'aliases' => array(), 183 'reference' => ' 15665e2d7e795cca04c0ebb9facf54ea05bc4a38',183 'reference' => '8dd172262c95fc3fb4716b14a54c9406254ba441', 184 184 'dev_requirement' => false, 185 185 ), 186 186 'inpsyde/wc-product-contracts' => array( 187 'pretty_version' => '1.5. 0',188 'version' => '1.5. 0.0',187 'pretty_version' => '1.5.1', 188 'version' => '1.5.1.0', 189 189 'type' => 'package', 190 190 'install_path' => __DIR__ . '/../inpsyde/wc-product-contracts', … … 194 194 ), 195 195 'inpsyde/wc-status-report' => array( 196 'pretty_version' => '1.5. 0',197 'version' => '1.5. 0.0',196 'pretty_version' => '1.5.1', 197 'version' => '1.5.1.0', 198 198 'type' => 'inpsyde-module', 199 199 'install_path' => __DIR__ . '/../../modules/wc-status-report', … … 203 203 ), 204 204 'inpsyde/wp-context' => array( 205 'pretty_version' => '1.3. 0',206 'version' => '1.3. 0.0',205 'pretty_version' => '1.3.1', 206 'version' => '1.3.1.0', 207 207 'type' => 'library', 208 208 'install_path' => __DIR__ . '/../inpsyde/wp-context', 209 209 'aliases' => array(), 210 'reference' => ' 6b3377177d7dec2fc58b47479493cc541d7a4d54',210 'reference' => 'd41b3b5d6fc8f5b9de3e832f7a79922d6446583c', 211 211 'dev_requirement' => false, 212 212 ), 213 213 'inpsyde/zettle-assets' => array( 214 'pretty_version' => '1.5. 0',215 'version' => '1.5. 0.0',214 'pretty_version' => '1.5.1', 215 'version' => '1.5.1.0', 216 216 'type' => 'inpsyde-module', 217 217 'install_path' => __DIR__ . '/../../modules/zettle-assets', … … 221 221 ), 222 222 'inpsyde/zettle-auth' => array( 223 'pretty_version' => '1.5. 0',224 'version' => '1.5. 0.0',223 'pretty_version' => '1.5.1', 224 'version' => '1.5.1.0', 225 225 'type' => 'inpsyde-module', 226 226 'install_path' => __DIR__ . '/../../modules/zettle-auth', … … 230 230 ), 231 231 'inpsyde/zettle-logging' => array( 232 'pretty_version' => '1.5. 0',233 'version' => '1.5. 0.0',232 'pretty_version' => '1.5.1', 233 'version' => '1.5.1.0', 234 234 'type' => 'inpsyde-module', 235 235 'install_path' => __DIR__ . '/../../modules/zettle-logging', … … 239 239 ), 240 240 'inpsyde/zettle-notices' => array( 241 'pretty_version' => '1.5. 0',242 'version' => '1.5. 0.0',241 'pretty_version' => '1.5.1', 242 'version' => '1.5.1.0', 243 243 'type' => 'inpsyde-module', 244 244 'install_path' => __DIR__ . '/../../modules/zettle-notices', … … 248 248 ), 249 249 'inpsyde/zettle-onboarding' => array( 250 'pretty_version' => '1.5. 0',251 'version' => '1.5. 0.0',250 'pretty_version' => '1.5.1', 251 'version' => '1.5.1.0', 252 252 'type' => 'inpsyde-module', 253 253 'install_path' => __DIR__ . '/../../modules/zettle-onboarding', … … 257 257 ), 258 258 'inpsyde/zettle-php-sdk' => array( 259 'pretty_version' => '1.5. 0',260 'version' => '1.5. 0.0',259 'pretty_version' => '1.5.1', 260 'version' => '1.5.1.0', 261 261 'type' => 'inpsyde-module', 262 262 'install_path' => __DIR__ . '/../../modules/zettle-php-sdk', … … 266 266 ), 267 267 'inpsyde/zettle-pos-integration' => array( 268 'pretty_version' => '1.5. 0',269 'version' => '1.5. 0.0',268 'pretty_version' => '1.5.1', 269 'version' => '1.5.1.0', 270 270 'type' => 'wordpress-plugin', 271 271 'install_path' => __DIR__ . '/../../', 272 272 'aliases' => array(), 273 'reference' => ' ef2aa08004288d737497c03fb94acbbe69d3e2db',273 'reference' => '4cb71a8904ee29f86f5fea748ed08a63d3e402d5', 274 274 'dev_requirement' => false, 275 275 ), 276 276 'inpsyde/zettle-product-debug' => array( 277 'pretty_version' => '1.5. 0',278 'version' => '1.5. 0.0',277 'pretty_version' => '1.5.1', 278 'version' => '1.5.1.0', 279 279 'type' => 'inpsyde-module', 280 280 'install_path' => __DIR__ . '/../../modules/zettle-product-debug', … … 284 284 ), 285 285 'inpsyde/zettle-product-settings' => array( 286 'pretty_version' => '1.5. 0',287 'version' => '1.5. 0.0',286 'pretty_version' => '1.5.1', 287 'version' => '1.5.1.0', 288 288 'type' => 'inpsyde-module', 289 289 'install_path' => __DIR__ . '/../../modules/zettle-product-settings', … … 293 293 ), 294 294 'inpsyde/zettle-queue' => array( 295 'pretty_version' => '1.5. 0',296 'version' => '1.5. 0.0',295 'pretty_version' => '1.5.1', 296 'version' => '1.5.1.0', 297 297 'type' => 'inpsyde-module', 298 298 'install_path' => __DIR__ . '/../../modules/zettle-queue', … … 302 302 ), 303 303 'inpsyde/zettle-settings' => array( 304 'pretty_version' => '1.5. 0',305 'version' => '1.5. 0.0',304 'pretty_version' => '1.5.1', 305 'version' => '1.5.1.0', 306 306 'type' => 'inpsyde-module', 307 307 'install_path' => __DIR__ . '/../../modules/zettle-settings', … … 311 311 ), 312 312 'inpsyde/zettle-sync' => array( 313 'pretty_version' => '1.5. 0',314 'version' => '1.5. 0.0',313 'pretty_version' => '1.5.1', 314 'version' => '1.5.1.0', 315 315 'type' => 'inpsyde-module', 316 316 'install_path' => __DIR__ . '/../../modules/zettle-sync', … … 320 320 ), 321 321 'inpsyde/zettle-webhooks' => array( 322 'pretty_version' => '1.5. 0',323 'version' => '1.5. 0.0',322 'pretty_version' => '1.5.1', 323 'version' => '1.5.1.0', 324 324 'type' => 'inpsyde-module', 325 325 'install_path' => __DIR__ . '/../../modules/zettle-webhooks', … … 329 329 ), 330 330 'lcobucci/jwt' => array( 331 'pretty_version' => '3.4. 5',332 'version' => '3.4. 5.0',331 'pretty_version' => '3.4.6', 332 'version' => '3.4.6.0', 333 333 'type' => 'library', 334 334 'install_path' => __DIR__ . '/../lcobucci/jwt', 335 335 'aliases' => array(), 336 'reference' => ' 511629a54465e89a31d3d7e4cf0935feab8b14c1',336 'reference' => '3ef8657a78278dfeae7707d51747251db4176240', 337 337 'dev_requirement' => false, 338 338 ), … … 437 437 ), 438 438 'psr/container' => array( 439 'pretty_version' => '1.1. 1',440 'version' => '1.1. 1.0',439 'pretty_version' => '1.1.2', 440 'version' => '1.1.2.0', 441 441 'type' => 'library', 442 442 'install_path' => __DIR__ . '/../psr/container', 443 443 'aliases' => array(), 444 'reference' => ' 8622567409010282b7aeebe4bb841fe98b58dcaf',444 'reference' => '513e0666f7216c7459170d56df27dfcefe1689ea', 445 445 'dev_requirement' => false, 446 446 ), … … 458 458 'provided' => array( 459 459 0 => '1.0', 460 1 => '^1.0', 460 461 ), 461 462 ), … … 557 558 ), 558 559 'symfony/uid' => array( 559 'pretty_version' => 'v5.3. 3',560 'version' => '5.3. 3.0',560 'pretty_version' => 'v5.3.10', 561 'version' => '5.3.10.0', 561 562 'type' => 'library', 562 563 'install_path' => __DIR__ . '/../symfony/uid', 563 564 'aliases' => array(), 564 'reference' => ' 45853bbc72f2b91c32e707afe7f896fddb3ee8e9',565 'reference' => '183336998e6b28c37ebf04ee18e6359dfb22084d', 565 566 'dev_requirement' => false, 566 567 ), -
zettle-pos-integration/trunk/vendor/composer/platform_check.php
r2605648 r2631429 5 5 $issues = array(); 6 6 7 if (!(PHP_VERSION_ID >= 70 205)) {8 $issues[] = 'Your Composer dependencies require a PHP version ">= 7. 2.5". You are running ' . PHP_VERSION . '.';7 if (!(PHP_VERSION_ID >= 70400)) { 8 $issues[] = 'Your Composer dependencies require a PHP version ">= 7.4.0". You are running ' . PHP_VERSION . '.'; 9 9 } 10 10 -
zettle-pos-integration/trunk/vendor/dhii/collections-interface/psalm.xml.dist
r2477105 r2631429 11 11 rememberPropertyAssignmentsAfterCall="true" 12 12 allowPhpStormGenerics="true" 13 allowCoercionFromStringToClassConst="false"14 13 allowStringToStandInForClass="false" 15 14 memoizeMethodCallResults="false" -
zettle-pos-integration/trunk/vendor/dhii/containers/psalm.xml.dist
r2501019 r2631429 11 11 rememberPropertyAssignmentsAfterCall="true" 12 12 allowPhpStormGenerics="true" 13 allowCoercionFromStringToClassConst="false"14 13 allowStringToStandInForClass="false" 15 14 memoizeMethodCallResults="false" … … 149 148 <MixedReturnTypeCoercion errorLevel="info"/> 150 149 <MixedStringOffsetAssignment errorLevel="info"/> 150 <ParamNameMismatch errorLevel="info"/> 151 151 </issueHandlers> 152 152 </psalm> -
zettle-pos-integration/trunk/vendor/inpsyde/assets/psalm.xml
r2605648 r2631429 6 6 usePhpDocMethodsWithoutMagicCall="true" 7 7 strictBinaryOperands="true" 8 allowPhpStormGenerics="true"9 8 ignoreInternalFunctionFalseReturn="false" 10 9 ignoreInternalFunctionNullReturn="false" -
zettle-pos-integration/trunk/vendor/inpsyde/assets/src/AssetManager.php
r2605648 r2631429 147 147 * 148 148 * @param string $handle 149 * @param string|null $type149 * @param class-string|null $type 150 150 * 151 151 * @return Asset|null -
zettle-pos-integration/trunk/vendor/inpsyde/assets/src/Handler/StyleHandler.php
r2605648 r2631429 78 78 } 79 79 80 $cssVars = $asset->cssVars(); 81 if (count($cssVars) > 0) { 82 wp_add_inline_style($handle, $asset->cssVarsAsString()); 83 } 84 80 85 if (count($asset->data()) > 0) { 81 86 foreach ($asset->data() as $key => $value) { -
zettle-pos-integration/trunk/vendor/inpsyde/assets/src/Style.php
r2605648 r2631429 31 31 */ 32 32 protected $inlineStyles = null; 33 34 /** 35 * @var array<string, array<string, string>> 36 */ 37 protected $cssVars = []; 33 38 34 39 /** … … 79 84 80 85 /** 86 * Add custom CSS properties (CSS vars) to an element. 87 * Those custom CSS vars will be enqueued with inline style 88 * to your handle. Variables will be automatically prefixed 89 * with '--'. 90 * 91 * @param string $element 92 * @param array<string, string> $vars 93 * 94 * @return $this 95 * 96 * @example Style::withCssVars('.some-element', ['--white' => '#fff']); 97 * @example Style::withCssVars('.some-element', ['white' => '#fff']); 98 */ 99 public function withCssVars(string $element, array $vars): Style 100 { 101 if (!isset($this->cssVars[$element])) { 102 $this->cssVars[$element] = []; 103 } 104 105 foreach ($vars as $key => $value) { 106 $key = substr($key, 0, 2) === '--' 107 ? $key 108 : '--' . $key; 109 110 $this->cssVars[$element][$key] = $value; 111 } 112 113 return $this; 114 } 115 116 /** 117 * @return array<string, array<string, string>> 118 */ 119 public function cssVars(): array 120 { 121 return $this->cssVars; 122 } 123 124 /** 125 * @return string 126 */ 127 public function cssVarsAsString(): string 128 { 129 $return = ''; 130 foreach ($this->cssVars() as $element => $vars) { 131 $values = ''; 132 foreach ($vars as $key => $value) { 133 $values .= sprintf('%1$s:%2$s;', $key, $value); 134 } 135 $return .= sprintf('%1$s{%2$s}', $element, $values); 136 } 137 138 return $return; 139 } 140 141 /** 81 142 * Wrapper function to set AsyncStyleOutputFilter as filter. 82 143 * -
zettle-pos-integration/trunk/vendor/inpsyde/wp-context/src/WpContext.php
r2605648 r2631429 106 106 private static function isRestRequest(): bool 107 107 { 108 if (defined('REST_REQUEST') && REST_REQUEST) { 108 if ( 109 (defined('REST_REQUEST') && REST_REQUEST) 110 || !empty($_GET['rest_route']) // phpcs:ignore 111 ) { 109 112 return true; 110 113 } 111 114 112 115 if (!get_option('permalink_structure')) { 113 return !empty($_GET['rest_route']); // phpcs:ignore116 return false; 114 117 } 115 118 -
zettle-pos-integration/trunk/vendor/lcobucci/jwt/src/Signer/Key/LocalFileReference.php
r2605648 r2631429 9 9 use function substr; 10 10 11 /** @deprecated Use \Lcobucci\JWT\Signer\Key\InMemory::file() instead */ 11 12 final class LocalFileReference extends Key 12 13 { … … 27 28 } 28 29 29 if (! file_exists($path)) { 30 throw FileCouldNotBeRead::onPath($path); 31 } 32 33 $key = new self('', $passphrase); 34 $key->content = self::PATH_PREFIX . $path; 35 36 return $key; 30 return new self(self::PATH_PREFIX . $path, $passphrase); 37 31 } 38 32 } -
zettle-pos-integration/trunk/vendor/psr/container/src/ContainerExceptionInterface.php
r2501019 r2631429 3 3 namespace Psr\Container; 4 4 5 use Throwable; 6 5 7 /** 6 8 * Base interface representing a generic exception in a container. 7 9 */ 8 interface ContainerExceptionInterface 10 interface ContainerExceptionInterface extends Throwable 9 11 { 10 12 } -
zettle-pos-integration/trunk/vendor/symfony/uid/UuidV4.php
r2560431 r2631429 25 25 if (null === $uuid) { 26 26 $uuid = random_bytes(16); 27 $uuid[6] = $uuid[6] & "\x0F" | "\x4 F";27 $uuid[6] = $uuid[6] & "\x0F" | "\x40"; 28 28 $uuid[8] = $uuid[8] & "\x3F" | "\x80"; 29 29 $uuid = bin2hex($uuid); -
zettle-pos-integration/trunk/zettle-pos-integration.php
r2605648 r2631429 8 8 * Plugin URI: https://zettle.inpsyde.com/ 9 9 * Description: PayPal Zettle Point-Of-Sale Integration for WooCommerce 10 * Version: 1.5. 010 * Version: 1.5.1 11 11 * Requires at least: 5.4 12 12 * Requires PHP: 7.2
Note: See TracChangeset
for help on using the changeset viewer.