Plugin Directory

Changeset 3022432

Timestamp:
01/16/2024 02:19:34 PM (7 months ago)
Author:
dingo_d
Message:

Release version 3.3.0

Location:
woo-solo-api
Files:
334 added
11 edited

Legend:

Unmodified
Added
Removed
  • woo-solo-api/trunk/CHANGELOG.md

    r2960789 r3022432  
    1616
    1717_No documentation available about unreleased changes as of yet._
     18
     19
     20
     21
     22
     23
     24
     25
     26
     27
     28
     29
     30
     31
    1832
    1933## [3.2.0] - 2023-08-30
     
    434448
    435449[Unreleased]: https://github.com/dingo-d/woo-solo-api/compare/master...HEAD
     450
    436451[3.2.0]: https://github.com/dingo-d/woo-solo-api/compare/3.1.1...3.2.0 
    437452[3.1.1]: https://github.com/dingo-d/woo-solo-api/compare/3.1.0...3.1.1 
  • woo-solo-api/trunk/README.md

    r2960789 r3022432  
    1616**Requires at least**: 6.0 
    1717**Requires PHP**: 7.4 
    18 **Tested up to**: 6.3.1 
    19 **Stable tag**: 3.2.0
     18**Tested up to**: 6.
     19**Stable tag**: 3..0
    2020**WC requires at least**: 7.0.0 
    21 **WC tested up to**: 8.0.3 
     21**WC tested up to**: 8. 
    2222**License**: MIT 
    2323**License URI**: https://opensource.org/licenses/MIT
     
    156156## License
    157157
    158 Copyright ©2023 Denis Žoljom.
     158Copyright ©202 Denis Žoljom.
    159159This plugin is free software, and may be redistributed under the terms specified in the LICENSE file.
  • woo-solo-api/trunk/README.txt

    r2960789 r3022432  
    22Contributors: dingo_d
    33Tags: woocommerce, api, solo api, solo, api integration, shop, payment, woo
    4 Requires at least: 6.0
     4Requires at least: 6.
    55Requires PHP: 7.4
    6 Tested up to: 6.3.1
    7 Stable tag: 3.2.0
     6Tested up to: 6.
     7Stable tag: 3..0
    88WC requires at least: 7.0.0
    9 WC tested up to: 8.0.3
     9WC tested up to: 8.
    1010License: MIT
    1111License URI: https://opensource.org/licenses/MIT
     
    6666
    6767== Changelog ==
     68
     69
     70
     71
     72
     73
     74
     75
     76
     77
     78
     79
     80
     81
     82
    6883
    6984= 3.2.0 =
  • woo-solo-api/trunk/assets/dev/scripts/components/Settings/GeneralSettingsPanel.jsx

    r2950133 r3022432  
    111111                            const fiscal = `solo_api_fiscalization-${type}`;
    112112                            const payment = `solo_api_payment_type-${type}`;
     113
     114
     115
     116
     117
     118
     119
     120
     121
    113122
    114123                            return <div className='components-panel__item' key={type}>
     
    144153                                    name={fiscal}
    145154                                    label={__('Check if you want the invoice to be fiscalized *', 'woo-solo-api')}
    146                                     help={settings[fiscal] ? __('Fiscalize', 'woo-solo-api') : __('Don\'t fiscalize', 'woo-solo-api')}
    147                                     checked={settings[fiscal]}
     155                                    help={ ? __('Fiscalize', 'woo-solo-api') : __('Don\'t fiscalize', 'woo-solo-api')}
     156                                    checked={}
    148157                                    disabled={isActive}
    149                                     onChange={(value) => setSettings({...settings, [fiscal]: value, settingsRefs})}
     158                                    onChange={(value) => {
     159                                        setSettings({
     160                                            ...settings,
     161                                            [fiscal]: (value === null || value === false) ? false : true,
     162                                            settingsRefs
     163                                        })
     164                                    }}
    150165                                />
    151166                                <ErrorNotice errors={errors} type={fiscal} />
  • woo-solo-api/trunk/assets/dev/scripts/const/dueDate.js

    r2950133 r3022432  
    55
    66export const dueDate = [
     7
    78    {value: '1d', label: __('1 day', 'woo-solo-api')},
    89    {value: '2d', label: __('2 days', 'woo-solo-api')},
  • woo-solo-api/trunk/src/BackgroundJobs/SendCustomerEmail.php

    r2857110 r3022432  
    6666
    6767        if (empty($checkedGateways)) {
     68
    6869            return;
    6970        }
    7071
    7172        if (!is_array($checkedGateways)) {
     73
    7274            return;
    7375        }
    7476
    7577        if (!in_array($paymentMethod, $checkedGateways, true)) {
    76             return;
    77         }
     78            SoloOrdersTable::addApiResponseError($orderId, esc_html__('Selected payment gateways is not in the list of payment gateways', 'woo-solo-api'));
     79            return;
     80        }
     81
    7882
    7983        global $wp_filesystem;
     
    105109        }
    106110
    107         $pdfGet = wp_remote_get($pdfLink);
     111        $pdfGet = wp_remote_get($pdfLink);
    108112
    109113        if (is_wp_error($pdfGet)) {
    110             $errorCode = wp_remote_retrieve_response_code($pdfGet);
    111             $errorMessage = wp_remote_retrieve_response_message($pdfGet);
     114            $errorCode = $pdfGet->get_error_code();
     115            $errorMessage = $pdfGet->get_error_message();
     116
     117            SoloOrdersTable::addApiResponseError($orderId, "$errorCode: $errorMessage");
    112118
    113119            return new WP_Error($errorCode, $errorMessage); // @phpstan-ignore-line
     
    120126            // Our credentials were no good, ask the user for them again.
    121127            request_filesystem_credentials('', '', true, '', null, false);
     128
     129
    122130            return;
    123131        }
     
    158166            'post_status' => 'inherit',
    159167        ];
    160 
    161168        $urlParse = wp_parse_url($attachment);
    162 
    163169        if ($urlParse === false) {
    164170            // phpcs:ignore
     
    174180
    175181        if (is_wp_error($attachmentId)) { // @phpstan-ignore-line
    176             $errorCode = wp_remote_retrieve_response_code($attachmentId);
    177             $errorMessage = wp_remote_retrieve_response_message($attachmentId);
     182            $errorCode = $attachmentId->get_error_code();
     183            $errorMessage = $attachmentId->get_error_message();
     184
     185            SoloOrdersTable::addApiResponseError($orderId, "$errorCode: $errorMessage");
    178186
    179187            return new WP_Error($errorCode, $errorMessage); // @phpstan-ignore-line
     
    326334        // Now we delete the saved attachment because of GDPR :).
    327335        $deleted = wp_delete_attachment($attachmentId, true);
    328 
    329336        // If for some reason WP won't delete it, try to force deletion.
    330337        if ($deleted === false || $deleted === null) {
  • woo-solo-api/trunk/vendor/autoload.php

    r2960789 r3022432  
    2323require_once __DIR__ . '/composer/autoload_real.php';
    2424
    25 return ComposerAutoloaderInitad21f7023f88f4b2cfda3498a26e502d::getLoader();
     25return ComposerAutoloaderInit::getLoader();
  • woo-solo-api/trunk/vendor/composer/autoload_real.php

    r2960789 r3022432  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInitad21f7023f88f4b2cfda3498a26e502d
     5class ComposerAutoloaderInit
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInitad21f7023f88f4b2cfda3498a26e502d', 'loadClassLoader'), true, true);
     27        spl_autoload_register(array('ComposerAutoloaderInit', 'loadClassLoader'), true, true);
    2828        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
    29         spl_autoload_unregister(array('ComposerAutoloaderInitad21f7023f88f4b2cfda3498a26e502d', 'loadClassLoader'));
     29        spl_autoload_unregister(array('ComposerAutoloaderInit', 'loadClassLoader'));
    3030
    3131        require __DIR__ . '/autoload_static.php';
    32         call_user_func(\Composer\Autoload\ComposerStaticInitad21f7023f88f4b2cfda3498a26e502d::getInitializer($loader));
     32        call_user_func(\Composer\Autoload\ComposerStaticInit::getInitializer($loader));
    3333
    3434        $loader->register(true);
    3535
    36         $filesToLoad = \Composer\Autoload\ComposerStaticInitad21f7023f88f4b2cfda3498a26e502d::$files;
     36        $filesToLoad = \Composer\Autoload\ComposerStaticInit::$files;
    3737        $requireFile = static function ($fileIdentifier, $file) {
    3838            if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
  • woo-solo-api/trunk/vendor/composer/autoload_static.php

    r2960789 r3022432  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInitad21f7023f88f4b2cfda3498a26e502d
     7class ComposerStaticInit
    88{
    99    public static $files = array (
     
    221221    {
    222222        return \Closure::bind(function () use ($loader) {
    223             $loader->prefixLengthsPsr4 = ComposerStaticInitad21f7023f88f4b2cfda3498a26e502d::$prefixLengthsPsr4;
    224             $loader->prefixDirsPsr4 = ComposerStaticInitad21f7023f88f4b2cfda3498a26e502d::$prefixDirsPsr4;
    225             $loader->classMap = ComposerStaticInitad21f7023f88f4b2cfda3498a26e502d::$classMap;
     223            $loader->prefixLengthsPsr4 = ComposerStaticInit::$prefixLengthsPsr4;
     224            $loader->prefixDirsPsr4 = ComposerStaticInit::$prefixDirsPsr4;
     225            $loader->classMap = ComposerStaticInit::$classMap;
    226226
    227227        }, null, ClassLoader::class);
  • woo-solo-api/trunk/vendor/composer/installed.php

    r2960789 r3022432  
    22    'root' => array(
    33        'name' => 'dingo-d/woo-solo-api',
    4         'pretty_version' => 'dev-main',
    5         'version' => 'dev-main',
    6         'reference' => '725c6c1cffb4c48a75db658f7ade0c25c8c8b1ca',
     4        'pretty_version' => 'dev-',
     5        'version' => 'dev-',
     6        'reference' => '',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    1212    'versions' => array(
    1313        'dingo-d/woo-solo-api' => array(
    14             'pretty_version' => 'dev-main',
    15             'version' => 'dev-main',
    16             'reference' => '725c6c1cffb4c48a75db658f7ade0c25c8c8b1ca',
     14            'pretty_version' => 'dev-',
     15            'version' => 'dev-',
     16            'reference' => '',
    1717            'type' => 'wordpress-plugin',
    1818            'install_path' => __DIR__ . '/../../',
  • woo-solo-api/trunk/woo-solo-api.php

    r2960789 r3022432  
    1111 * Plugin URI:           https://madebydenis.com/woo-solo-api
    1212 * Description:          This plugin provides integration of the SOLO API service with WooCommerce.
    13  * Version:              3.2.0
     13 * Version:              3..0
    1414 * Author:               Denis Žoljom
    1515 * Author URI:           https://madebydenis.com
     
    1919 * Domain Path:          /languages
    2020 * WC requires at least: 7.0.0
    21  * WC tested up to:      8.0.0
     21 * WC tested up to:      8..0
    2222 * Requires PHP:         7.4
    2323 */
Note: See TracChangeset for help on using the changeset viewer.