Changeset 2528961
- Timestamp:
- 05/10/2021 09:45:14 AM (5 years ago)
- Location:
- zettle-pos-integration/trunk
- Files:
-
- 10 edited
-
readme.txt (modified) (2 diffs)
-
src/PluginModule.php (modified) (1 diff)
-
src/services.php (modified) (1 diff)
-
vendor/autoload.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) (22 diffs)
-
vendor/psr/log/Psr/Log/AbstractLogger.php (modified) (8 diffs)
-
vendor/psr/log/Psr/Log/LoggerAwareTrait.php (modified) (1 diff)
-
zettle-pos-integration.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
zettle-pos-integration/trunk/readme.txt
r2522603 r2528961 5 5 Tested up to: 5.7 6 6 Requires PHP: 7.2 7 Stable tag: 1.3. 07 Stable tag: 1.3.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.3.1 = 71 - Clear cache (transients) after plugin upgrade. 72 70 73 = 1.3.0 = 71 74 * Syncing prices with or without taxes depending on Zettle taxationMode. -
zettle-pos-integration/trunk/src/PluginModule.php
r2477105 r2528961 52 52 PHP_INT_MAX 53 53 ); 54 55 add_action('zettle-pos-integration.migrate', $container->get('zettle.clear-cache')); 54 56 } 55 57 -
zettle-pos-integration/trunk/src/services.php
r2477105 r2528961 79 79 ); 80 80 }, 81 'zettle.clear-cache' => static function (C $container): callable { 82 $orgTransientKey = $container->get('zettle.sdk.dal.provider.organization.transient-key'); 83 return function () use ($orgTransientKey): void { 84 delete_transient($orgTransientKey); 85 }; 86 }, 81 87 ]; -
zettle-pos-integration/trunk/vendor/autoload.php
r2522603 r2528961 5 5 require_once __DIR__ . '/composer/autoload_real.php'; 6 6 7 return ComposerAutoloaderInit a399bab616b324b020fb3a19bb1384ff::getLoader();7 return ComposerAutoloaderInitec0383105ccf947b245e7e3bae815e64::getLoader(); -
zettle-pos-integration/trunk/vendor/composer/autoload_real.php
r2522603 r2528961 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit a399bab616b324b020fb3a19bb1384ff5 class ComposerAutoloaderInitec0383105ccf947b245e7e3bae815e64 6 6 { 7 7 private static $loader; … … 23 23 } 24 24 25 spl_autoload_register(array('ComposerAutoloaderInit a399bab616b324b020fb3a19bb1384ff', 'loadClassLoader'), true, true);25 spl_autoload_register(array('ComposerAutoloaderInitec0383105ccf947b245e7e3bae815e64', 'loadClassLoader'), true, true); 26 26 self::$loader = $loader = new \Composer\Autoload\ClassLoader(); 27 spl_autoload_unregister(array('ComposerAutoloaderInit a399bab616b324b020fb3a19bb1384ff', 'loadClassLoader'));27 spl_autoload_unregister(array('ComposerAutoloaderInitec0383105ccf947b245e7e3bae815e64', 'loadClassLoader')); 28 28 29 29 $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); … … 31 31 require_once __DIR__ . '/autoload_static.php'; 32 32 33 call_user_func(\Composer\Autoload\ComposerStaticInit a399bab616b324b020fb3a19bb1384ff::getInitializer($loader));33 call_user_func(\Composer\Autoload\ComposerStaticInitec0383105ccf947b245e7e3bae815e64::getInitializer($loader)); 34 34 } else { 35 35 $classMap = require __DIR__ . '/autoload_classmap.php'; … … 43 43 44 44 if ($useStaticLoader) { 45 $includeFiles = Composer\Autoload\ComposerStaticInit a399bab616b324b020fb3a19bb1384ff::$files;45 $includeFiles = Composer\Autoload\ComposerStaticInitec0383105ccf947b245e7e3bae815e64::$files; 46 46 } else { 47 47 $includeFiles = require __DIR__ . '/autoload_files.php'; 48 48 } 49 49 foreach ($includeFiles as $fileIdentifier => $file) { 50 composerRequire a399bab616b324b020fb3a19bb1384ff($fileIdentifier, $file);50 composerRequireec0383105ccf947b245e7e3bae815e64($fileIdentifier, $file); 51 51 } 52 52 … … 55 55 } 56 56 57 function composerRequire a399bab616b324b020fb3a19bb1384ff($fileIdentifier, $file)57 function composerRequireec0383105ccf947b245e7e3bae815e64($fileIdentifier, $file) 58 58 { 59 59 if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { -
zettle-pos-integration/trunk/vendor/composer/autoload_static.php
r2522603 r2528961 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit a399bab616b324b020fb3a19bb1384ff7 class ComposerStaticInitec0383105ccf947b245e7e3bae815e64 8 8 { 9 9 public static $files = array ( … … 1439 1439 { 1440 1440 return \Closure::bind(function () use ($loader) { 1441 $loader->prefixLengthsPsr4 = ComposerStaticInit a399bab616b324b020fb3a19bb1384ff::$prefixLengthsPsr4;1442 $loader->prefixDirsPsr4 = ComposerStaticInit a399bab616b324b020fb3a19bb1384ff::$prefixDirsPsr4;1443 $loader->classMap = ComposerStaticInit a399bab616b324b020fb3a19bb1384ff::$classMap;1441 $loader->prefixLengthsPsr4 = ComposerStaticInitec0383105ccf947b245e7e3bae815e64::$prefixLengthsPsr4; 1442 $loader->prefixDirsPsr4 = ComposerStaticInitec0383105ccf947b245e7e3bae815e64::$prefixDirsPsr4; 1443 $loader->classMap = ComposerStaticInitec0383105ccf947b245e7e3bae815e64::$classMap; 1444 1444 1445 1445 }, null, ClassLoader::class); -
zettle-pos-integration/trunk/vendor/composer/installed.json
r2522603 r2528961 729 729 { 730 730 "name": "inpsyde/inpsyde-debug", 731 "version": "1.3. 0",732 "version_normalized": "1.3. 0.0",731 "version": "1.3.1", 732 "version_normalized": "1.3.1.0", 733 733 "dist": { 734 734 "type": "path", … … 764 764 { 765 765 "name": "inpsyde/inpsyde-http-client", 766 "version": "1.3. 0",767 "version_normalized": "1.3. 0.0",766 "version": "1.3.1", 767 "version_normalized": "1.3.1.0", 768 768 "dist": { 769 769 "type": "path", … … 792 792 { 793 793 "name": "inpsyde/inpsyde-queue", 794 "version": "1.3. 0",795 "version_normalized": "1.3. 0.0",794 "version": "1.3.1", 795 "version_normalized": "1.3.1.0", 796 796 "dist": { 797 797 "type": "path", … … 828 828 { 829 829 "name": "inpsyde/inpsyde-state-machine", 830 "version": "1.3. 0",831 "version_normalized": "1.3. 0.0",830 "version": "1.3.1", 831 "version_normalized": "1.3.1.0", 832 832 "dist": { 833 833 "type": "path", … … 863 863 { 864 864 "name": "inpsyde/inpsyde-woocommerce-lifecycle-events", 865 "version": "1.3. 0",866 "version_normalized": "1.3. 0.0",865 "version": "1.3.1", 866 "version_normalized": "1.3.1.0", 867 867 "dist": { 868 868 "type": "path", … … 1039 1039 { 1040 1040 "name": "inpsyde/wc-product-contracts", 1041 "version": "1.3. 0",1042 "version_normalized": "1.3. 0.0",1041 "version": "1.3.1", 1042 "version_normalized": "1.3.1.0", 1043 1043 "dist": { 1044 1044 "type": "path", … … 1140 1140 { 1141 1141 "name": "inpsyde/zettle-assets", 1142 "version": "1.3. 0",1143 "version_normalized": "1.3. 0.0",1142 "version": "1.3.1", 1143 "version_normalized": "1.3.1.0", 1144 1144 "dist": { 1145 1145 "type": "path", … … 1164 1164 { 1165 1165 "name": "inpsyde/zettle-auth", 1166 "version": "1.3. 0",1167 "version_normalized": "1.3. 0.0",1166 "version": "1.3.1", 1167 "version_normalized": "1.3.1.0", 1168 1168 "dist": { 1169 1169 "type": "path", … … 1190 1190 { 1191 1191 "name": "inpsyde/zettle-logging", 1192 "version": "1.3. 0",1193 "version_normalized": "1.3. 0.0",1192 "version": "1.3.1", 1193 "version_normalized": "1.3.1.0", 1194 1194 "dist": { 1195 1195 "type": "path", … … 1228 1228 { 1229 1229 "name": "inpsyde/zettle-notices", 1230 "version": "1.3. 0",1231 "version_normalized": "1.3. 0.0",1230 "version": "1.3.1", 1231 "version_normalized": "1.3.1.0", 1232 1232 "dist": { 1233 1233 "type": "path", … … 1251 1251 { 1252 1252 "name": "inpsyde/zettle-onboarding", 1253 "version": "1.3. 0",1254 "version_normalized": "1.3. 0.0",1253 "version": "1.3.1", 1254 "version_normalized": "1.3.1.0", 1255 1255 "dist": { 1256 1256 "type": "path", … … 1288 1288 { 1289 1289 "name": "inpsyde/zettle-php-sdk", 1290 "version": "1.3. 0",1291 "version_normalized": "1.3. 0.0",1290 "version": "1.3.1", 1291 "version_normalized": "1.3.1.0", 1292 1292 "dist": { 1293 1293 "type": "path", … … 1329 1329 { 1330 1330 "name": "inpsyde/zettle-product-debug", 1331 "version": "1.3. 0",1332 "version_normalized": "1.3. 0.0",1331 "version": "1.3.1", 1332 "version_normalized": "1.3.1.0", 1333 1333 "dist": { 1334 1334 "type": "path", … … 1352 1352 { 1353 1353 "name": "inpsyde/zettle-product-settings", 1354 "version": "1.3. 0",1355 "version_normalized": "1.3. 0.0",1354 "version": "1.3.1", 1355 "version_normalized": "1.3.1.0", 1356 1356 "dist": { 1357 1357 "type": "path", … … 1376 1376 { 1377 1377 "name": "inpsyde/zettle-queue", 1378 "version": "1.3. 0",1379 "version_normalized": "1.3. 0.0",1378 "version": "1.3.1", 1379 "version_normalized": "1.3.1.0", 1380 1380 "dist": { 1381 1381 "type": "path", … … 1400 1400 { 1401 1401 "name": "inpsyde/zettle-settings", 1402 "version": "1.3. 0",1403 "version_normalized": "1.3. 0.0",1402 "version": "1.3.1", 1403 "version_normalized": "1.3.1.0", 1404 1404 "dist": { 1405 1405 "type": "path", … … 1423 1423 { 1424 1424 "name": "inpsyde/zettle-sync", 1425 "version": "1.3. 0",1426 "version_normalized": "1.3. 0.0",1425 "version": "1.3.1", 1426 "version_normalized": "1.3.1.0", 1427 1427 "dist": { 1428 1428 "type": "path", … … 1447 1447 { 1448 1448 "name": "inpsyde/zettle-webhooks", 1449 "version": "1.3. 0",1450 "version_normalized": "1.3. 0.0",1449 "version": "1.3.1", 1450 "version_normalized": "1.3.1.0", 1451 1451 "dist": { 1452 1452 "type": "path", … … 2419 2419 { 2420 2420 "name": "psr/log", 2421 "version": "1.1. 3",2422 "version_normalized": "1.1. 3.0",2421 "version": "1.1.4", 2422 "version_normalized": "1.1.4.0", 2423 2423 "source": { 2424 2424 "type": "git", 2425 2425 "url": "https://github.com/php-fig/log.git", 2426 "reference": " 0f73288fd15629204f9d42b7055f72dacbe811fc"2427 }, 2428 "dist": { 2429 "type": "zip", 2430 "url": "https://api.github.com/repos/php-fig/log/zipball/ 0f73288fd15629204f9d42b7055f72dacbe811fc",2431 "reference": " 0f73288fd15629204f9d42b7055f72dacbe811fc",2426 "reference": "d49695b909c3b7628b6289db5479a1c204601f11" 2427 }, 2428 "dist": { 2429 "type": "zip", 2430 "url": "https://api.github.com/repos/php-fig/log/zipball/d49695b909c3b7628b6289db5479a1c204601f11", 2431 "reference": "d49695b909c3b7628b6289db5479a1c204601f11", 2432 2432 "shasum": "", 2433 2433 "mirrors": [ … … 2441 2441 "php": ">=5.3.0" 2442 2442 }, 2443 "time": "202 0-03-23T09:12:05+00:00",2443 "time": "2021-05-03T11:20:27+00:00", 2444 2444 "type": "library", 2445 2445 "extra": { … … 2461 2461 { 2462 2462 "name": "PHP-FIG", 2463 "homepage": "http ://www.php-fig.org/"2463 "homepage": "https://www.php-fig.org/" 2464 2464 } 2465 2465 ], … … 2470 2470 "psr", 2471 2471 "psr-3" 2472 ] 2472 ], 2473 "support": { 2474 "source": "https://github.com/php-fig/log/tree/1.1.4" 2475 } 2473 2476 }, 2474 2477 { -
zettle-pos-integration/trunk/vendor/psr/log/Psr/Log/AbstractLogger.php
r2477105 r2528961 15 15 * System is unusable. 16 16 * 17 * @param string $message18 * @param array$context17 * @param string $message 18 * @param mixed[] $context 19 19 * 20 20 * @return void … … 31 31 * trigger the SMS alerts and wake you up. 32 32 * 33 * @param string $message34 * @param array$context33 * @param string $message 34 * @param mixed[] $context 35 35 * 36 36 * @return void … … 46 46 * Example: Application component unavailable, unexpected exception. 47 47 * 48 * @param string $message49 * @param array$context48 * @param string $message 49 * @param mixed[] $context 50 50 * 51 51 * @return void … … 60 60 * be logged and monitored. 61 61 * 62 * @param string $message63 * @param array$context62 * @param string $message 63 * @param mixed[] $context 64 64 * 65 65 * @return void … … 76 76 * that are not necessarily wrong. 77 77 * 78 * @param string $message79 * @param array$context78 * @param string $message 79 * @param mixed[] $context 80 80 * 81 81 * @return void … … 89 89 * Normal but significant events. 90 90 * 91 * @param string $message92 * @param array$context91 * @param string $message 92 * @param mixed[] $context 93 93 * 94 94 * @return void … … 104 104 * Example: User logs in, SQL logs. 105 105 * 106 * @param string $message107 * @param array$context106 * @param string $message 107 * @param mixed[] $context 108 108 * 109 109 * @return void … … 117 117 * Detailed debug information. 118 118 * 119 * @param string $message120 * @param array$context119 * @param string $message 120 * @param mixed[] $context 121 121 * 122 122 * @return void -
zettle-pos-integration/trunk/vendor/psr/log/Psr/Log/LoggerAwareTrait.php
r2477105 r2528961 11 11 * The logger instance. 12 12 * 13 * @var LoggerInterface 13 * @var LoggerInterface|null 14 14 */ 15 15 protected $logger; -
zettle-pos-integration/trunk/zettle-pos-integration.php
r2522603 r2528961 8 8 * Plugin URI: https://zettle.inpsyde.com/ 9 9 * Description: Zettle Point-Of-Sale Integration for WooCommerce 10 * Version: 1.3. 010 * Version: 1.3.1 11 11 * Requires at least: 5.4 12 12 * Requires PHP: 7.2 … … 148 148 static function () { 149 149 init(); 150 151 // IZET-356, looks like there is no good built-in hook in WP for plugin upgrades 152 $version = get_plugin_data(__FILE__)['Version']; 153 $versionOptionName = 'zettle_pos_integration_version'; 154 if (get_option($versionOptionName) !== $version) { 155 do_action('zettle-pos-integration.migrate'); 156 157 update_option($versionOptionName, $version); 158 } 150 159 } 151 160 );
Note: See TracChangeset
for help on using the changeset viewer.