Plugin Directory

Changeset 2528961


Ignore:
Timestamp:
05/10/2021 09:45:14 AM (5 years ago)
Author:
alexp11223
Message:

Release 1.3.1

Location:
zettle-pos-integration/trunk
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • zettle-pos-integration/trunk/readme.txt

    r2522603 r2528961  
    55Tested up to: 5.7
    66Requires PHP: 7.2
    7 Stable tag: 1.3.0
     7Stable tag: 1.3.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    6868== Changelog ==
    6969
     70= 1.3.1 =
     71- Clear cache (transients) after plugin upgrade.
     72
    7073= 1.3.0 =
    7174* Syncing prices with or without taxes depending on Zettle taxationMode.
  • zettle-pos-integration/trunk/src/PluginModule.php

    r2477105 r2528961  
    5252            PHP_INT_MAX
    5353        );
     54
     55        add_action('zettle-pos-integration.migrate', $container->get('zettle.clear-cache'));
    5456    }
    5557
  • zettle-pos-integration/trunk/src/services.php

    r2477105 r2528961  
    7979        );
    8080    },
     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    },
    8187];
  • zettle-pos-integration/trunk/vendor/autoload.php

    r2522603 r2528961  
    55require_once __DIR__ . '/composer/autoload_real.php';
    66
    7 return ComposerAutoloaderInita399bab616b324b020fb3a19bb1384ff::getLoader();
     7return ComposerAutoloaderInitec0383105ccf947b245e7e3bae815e64::getLoader();
  • zettle-pos-integration/trunk/vendor/composer/autoload_real.php

    r2522603 r2528961  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInita399bab616b324b020fb3a19bb1384ff
     5class ComposerAutoloaderInitec0383105ccf947b245e7e3bae815e64
    66{
    77    private static $loader;
     
    2323        }
    2424
    25         spl_autoload_register(array('ComposerAutoloaderInita399bab616b324b020fb3a19bb1384ff', 'loadClassLoader'), true, true);
     25        spl_autoload_register(array('ComposerAutoloaderInitec0383105ccf947b245e7e3bae815e64', 'loadClassLoader'), true, true);
    2626        self::$loader = $loader = new \Composer\Autoload\ClassLoader();
    27         spl_autoload_unregister(array('ComposerAutoloaderInita399bab616b324b020fb3a19bb1384ff', 'loadClassLoader'));
     27        spl_autoload_unregister(array('ComposerAutoloaderInitec0383105ccf947b245e7e3bae815e64', 'loadClassLoader'));
    2828
    2929        $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
     
    3131            require_once __DIR__ . '/autoload_static.php';
    3232
    33             call_user_func(\Composer\Autoload\ComposerStaticInita399bab616b324b020fb3a19bb1384ff::getInitializer($loader));
     33            call_user_func(\Composer\Autoload\ComposerStaticInitec0383105ccf947b245e7e3bae815e64::getInitializer($loader));
    3434        } else {
    3535            $classMap = require __DIR__ . '/autoload_classmap.php';
     
    4343
    4444        if ($useStaticLoader) {
    45             $includeFiles = Composer\Autoload\ComposerStaticInita399bab616b324b020fb3a19bb1384ff::$files;
     45            $includeFiles = Composer\Autoload\ComposerStaticInitec0383105ccf947b245e7e3bae815e64::$files;
    4646        } else {
    4747            $includeFiles = require __DIR__ . '/autoload_files.php';
    4848        }
    4949        foreach ($includeFiles as $fileIdentifier => $file) {
    50             composerRequirea399bab616b324b020fb3a19bb1384ff($fileIdentifier, $file);
     50            composerRequireec0383105ccf947b245e7e3bae815e64($fileIdentifier, $file);
    5151        }
    5252
     
    5555}
    5656
    57 function composerRequirea399bab616b324b020fb3a19bb1384ff($fileIdentifier, $file)
     57function composerRequireec0383105ccf947b245e7e3bae815e64($fileIdentifier, $file)
    5858{
    5959    if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
  • zettle-pos-integration/trunk/vendor/composer/autoload_static.php

    r2522603 r2528961  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInita399bab616b324b020fb3a19bb1384ff
     7class ComposerStaticInitec0383105ccf947b245e7e3bae815e64
    88{
    99    public static $files = array (
     
    14391439    {
    14401440        return \Closure::bind(function () use ($loader) {
    1441             $loader->prefixLengthsPsr4 = ComposerStaticInita399bab616b324b020fb3a19bb1384ff::$prefixLengthsPsr4;
    1442             $loader->prefixDirsPsr4 = ComposerStaticInita399bab616b324b020fb3a19bb1384ff::$prefixDirsPsr4;
    1443             $loader->classMap = ComposerStaticInita399bab616b324b020fb3a19bb1384ff::$classMap;
     1441            $loader->prefixLengthsPsr4 = ComposerStaticInitec0383105ccf947b245e7e3bae815e64::$prefixLengthsPsr4;
     1442            $loader->prefixDirsPsr4 = ComposerStaticInitec0383105ccf947b245e7e3bae815e64::$prefixDirsPsr4;
     1443            $loader->classMap = ComposerStaticInitec0383105ccf947b245e7e3bae815e64::$classMap;
    14441444
    14451445        }, null, ClassLoader::class);
  • zettle-pos-integration/trunk/vendor/composer/installed.json

    r2522603 r2528961  
    729729    {
    730730        "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",
    733733        "dist": {
    734734            "type": "path",
     
    764764    {
    765765        "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",
    768768        "dist": {
    769769            "type": "path",
     
    792792    {
    793793        "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",
    796796        "dist": {
    797797            "type": "path",
     
    828828    {
    829829        "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",
    832832        "dist": {
    833833            "type": "path",
     
    863863    {
    864864        "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",
    867867        "dist": {
    868868            "type": "path",
     
    10391039    {
    10401040        "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",
    10431043        "dist": {
    10441044            "type": "path",
     
    11401140    {
    11411141        "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",
    11441144        "dist": {
    11451145            "type": "path",
     
    11641164    {
    11651165        "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",
    11681168        "dist": {
    11691169            "type": "path",
     
    11901190    {
    11911191        "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",
    11941194        "dist": {
    11951195            "type": "path",
     
    12281228    {
    12291229        "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",
    12321232        "dist": {
    12331233            "type": "path",
     
    12511251    {
    12521252        "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",
    12551255        "dist": {
    12561256            "type": "path",
     
    12881288    {
    12891289        "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",
    12921292        "dist": {
    12931293            "type": "path",
     
    13291329    {
    13301330        "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",
    13331333        "dist": {
    13341334            "type": "path",
     
    13521352    {
    13531353        "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",
    13561356        "dist": {
    13571357            "type": "path",
     
    13761376    {
    13771377        "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",
    13801380        "dist": {
    13811381            "type": "path",
     
    14001400    {
    14011401        "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",
    14041404        "dist": {
    14051405            "type": "path",
     
    14231423    {
    14241424        "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",
    14271427        "dist": {
    14281428            "type": "path",
     
    14471447    {
    14481448        "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",
    14511451        "dist": {
    14521452            "type": "path",
     
    24192419    {
    24202420        "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",
    24232423        "source": {
    24242424            "type": "git",
    24252425            "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",
    24322432            "shasum": "",
    24332433            "mirrors": [
     
    24412441            "php": ">=5.3.0"
    24422442        },
    2443         "time": "2020-03-23T09:12:05+00:00",
     2443        "time": "2021-05-03T11:20:27+00:00",
    24442444        "type": "library",
    24452445        "extra": {
     
    24612461            {
    24622462                "name": "PHP-FIG",
    2463                 "homepage": "http://www.php-fig.org/"
     2463                "homepage": "https://www.php-fig.org/"
    24642464            }
    24652465        ],
     
    24702470            "psr",
    24712471            "psr-3"
    2472         ]
     2472        ],
     2473        "support": {
     2474            "source": "https://github.com/php-fig/log/tree/1.1.4"
     2475        }
    24732476    },
    24742477    {
  • zettle-pos-integration/trunk/vendor/psr/log/Psr/Log/AbstractLogger.php

    r2477105 r2528961  
    1515     * System is unusable.
    1616     *
    17      * @param string $message
    18      * @param array $context
     17     * @param string  $message
     18     * @param mixed[] $context
    1919     *
    2020     * @return void
     
    3131     * trigger the SMS alerts and wake you up.
    3232     *
    33      * @param string $message
    34      * @param array $context
     33     * @param string  $message
     34     * @param mixed[] $context
    3535     *
    3636     * @return void
     
    4646     * Example: Application component unavailable, unexpected exception.
    4747     *
    48      * @param string $message
    49      * @param array $context
     48     * @param string  $message
     49     * @param mixed[] $context
    5050     *
    5151     * @return void
     
    6060     * be logged and monitored.
    6161     *
    62      * @param string $message
    63      * @param array $context
     62     * @param string  $message
     63     * @param mixed[] $context
    6464     *
    6565     * @return void
     
    7676     * that are not necessarily wrong.
    7777     *
    78      * @param string $message
    79      * @param array $context
     78     * @param string  $message
     79     * @param mixed[] $context
    8080     *
    8181     * @return void
     
    8989     * Normal but significant events.
    9090     *
    91      * @param string $message
    92      * @param array $context
     91     * @param string  $message
     92     * @param mixed[] $context
    9393     *
    9494     * @return void
     
    104104     * Example: User logs in, SQL logs.
    105105     *
    106      * @param string $message
    107      * @param array $context
     106     * @param string  $message
     107     * @param mixed[] $context
    108108     *
    109109     * @return void
     
    117117     * Detailed debug information.
    118118     *
    119      * @param string $message
    120      * @param array $context
     119     * @param string  $message
     120     * @param mixed[] $context
    121121     *
    122122     * @return void
  • zettle-pos-integration/trunk/vendor/psr/log/Psr/Log/LoggerAwareTrait.php

    r2477105 r2528961  
    1111     * The logger instance.
    1212     *
    13      * @var LoggerInterface
     13     * @var LoggerInterface|null
    1414     */
    1515    protected $logger;
  • zettle-pos-integration/trunk/zettle-pos-integration.php

    r2522603 r2528961  
    88 * Plugin URI:  https://zettle.inpsyde.com/
    99 * Description: Zettle Point-Of-Sale Integration for WooCommerce
    10  * Version:     1.3.0
     10 * Version:     1.3.1
    1111 * Requires at least: 5.4
    1212 * Requires PHP: 7.2
     
    148148        static function () {
    149149            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            }
    150159        }
    151160    );
Note: See TracChangeset for help on using the changeset viewer.