Changeset 3022432
- Timestamp:
- 01/16/2024 02:19:34 PM (7 months ago)
- Location:
- woo-solo-api
- Files:
-
- 334 added
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
woo-solo-api/trunk/CHANGELOG.md
r2960789 r3022432 16 16 17 17 _No documentation available about unreleased changes as of yet._ 18 19 20 21 22 23 24 25 26 27 28 29 30 31 18 32 19 33 ## [3.2.0] - 2023-08-30 … … 434 448 435 449 [Unreleased]: https://github.com/dingo-d/woo-solo-api/compare/master...HEAD 450 436 451 [3.2.0]: https://github.com/dingo-d/woo-solo-api/compare/3.1.1...3.2.0 437 452 [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 16 16 **Requires at least**: 6.0 17 17 **Requires PHP**: 7.4 18 **Tested up to**: 6. 3.119 **Stable tag**: 3. 2.018 **Tested up to**: 6. 19 **Stable tag**: 3..0 20 20 **WC requires at least**: 7.0.0 21 **WC tested up to**: 8. 0.321 **WC tested up to**: 8. 22 22 **License**: MIT 23 23 **License URI**: https://opensource.org/licenses/MIT … … 156 156 ## License 157 157 158 Copyright ©202 3Denis Žoljom.158 Copyright ©202 Denis Žoljom. 159 159 This plugin is free software, and may be redistributed under the terms specified in the LICENSE file. -
woo-solo-api/trunk/README.txt
r2960789 r3022432 2 2 Contributors: dingo_d 3 3 Tags: woocommerce, api, solo api, solo, api integration, shop, payment, woo 4 Requires at least: 6. 04 Requires at least: 6. 5 5 Requires PHP: 7.4 6 Tested up to: 6. 3.17 Stable tag: 3. 2.06 Tested up to: 6. 7 Stable tag: 3..0 8 8 WC requires at least: 7.0.0 9 WC tested up to: 8. 0.39 WC tested up to: 8. 10 10 License: MIT 11 11 License URI: https://opensource.org/licenses/MIT … … 66 66 67 67 == Changelog == 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 68 83 69 84 = 3.2.0 = -
woo-solo-api/trunk/assets/dev/scripts/components/Settings/GeneralSettingsPanel.jsx
r2950133 r3022432 111 111 const fiscal = `solo_api_fiscalization-${type}`; 112 112 const payment = `solo_api_payment_type-${type}`; 113 114 115 116 117 118 119 120 121 113 122 114 123 return <div className='components-panel__item' key={type}> … … 144 153 name={fiscal} 145 154 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={} 148 157 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 }} 150 165 /> 151 166 <ErrorNotice errors={errors} type={fiscal} /> -
woo-solo-api/trunk/assets/dev/scripts/const/dueDate.js
r2950133 r3022432 5 5 6 6 export const dueDate = [ 7 7 8 {value: '1d', label: __('1 day', 'woo-solo-api')}, 8 9 {value: '2d', label: __('2 days', 'woo-solo-api')}, -
woo-solo-api/trunk/src/BackgroundJobs/SendCustomerEmail.php
r2857110 r3022432 66 66 67 67 if (empty($checkedGateways)) { 68 68 69 return; 69 70 } 70 71 71 72 if (!is_array($checkedGateways)) { 73 72 74 return; 73 75 } 74 76 75 77 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 78 82 79 83 global $wp_filesystem; … … 105 109 } 106 110 107 $pdfGet = wp_remote_get($pdfLink );111 $pdfGet = wp_remote_get($pdfLink); 108 112 109 113 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"); 112 118 113 119 return new WP_Error($errorCode, $errorMessage); // @phpstan-ignore-line … … 120 126 // Our credentials were no good, ask the user for them again. 121 127 request_filesystem_credentials('', '', true, '', null, false); 128 129 122 130 return; 123 131 } … … 158 166 'post_status' => 'inherit', 159 167 ]; 160 161 168 $urlParse = wp_parse_url($attachment); 162 163 169 if ($urlParse === false) { 164 170 // phpcs:ignore … … 174 180 175 181 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"); 178 186 179 187 return new WP_Error($errorCode, $errorMessage); // @phpstan-ignore-line … … 326 334 // Now we delete the saved attachment because of GDPR :). 327 335 $deleted = wp_delete_attachment($attachmentId, true); 328 329 336 // If for some reason WP won't delete it, try to force deletion. 330 337 if ($deleted === false || $deleted === null) { -
woo-solo-api/trunk/vendor/autoload.php
r2960789 r3022432 23 23 require_once __DIR__ . '/composer/autoload_real.php'; 24 24 25 return ComposerAutoloaderInit ad21f7023f88f4b2cfda3498a26e502d::getLoader();25 return ComposerAutoloaderInit::getLoader(); -
woo-solo-api/trunk/vendor/composer/autoload_real.php
r2960789 r3022432 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit ad21f7023f88f4b2cfda3498a26e502d5 class ComposerAutoloaderInit 6 6 { 7 7 private static $loader; … … 25 25 require __DIR__ . '/platform_check.php'; 26 26 27 spl_autoload_register(array('ComposerAutoloaderInit ad21f7023f88f4b2cfda3498a26e502d', 'loadClassLoader'), true, true);27 spl_autoload_register(array('ComposerAutoloaderInit', 'loadClassLoader'), true, true); 28 28 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); 29 spl_autoload_unregister(array('ComposerAutoloaderInit ad21f7023f88f4b2cfda3498a26e502d', 'loadClassLoader'));29 spl_autoload_unregister(array('ComposerAutoloaderInit', 'loadClassLoader')); 30 30 31 31 require __DIR__ . '/autoload_static.php'; 32 call_user_func(\Composer\Autoload\ComposerStaticInit ad21f7023f88f4b2cfda3498a26e502d::getInitializer($loader));32 call_user_func(\Composer\Autoload\ComposerStaticInit::getInitializer($loader)); 33 33 34 34 $loader->register(true); 35 35 36 $filesToLoad = \Composer\Autoload\ComposerStaticInit ad21f7023f88f4b2cfda3498a26e502d::$files;36 $filesToLoad = \Composer\Autoload\ComposerStaticInit::$files; 37 37 $requireFile = static function ($fileIdentifier, $file) { 38 38 if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { -
woo-solo-api/trunk/vendor/composer/autoload_static.php
r2960789 r3022432 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit ad21f7023f88f4b2cfda3498a26e502d7 class ComposerStaticInit 8 8 { 9 9 public static $files = array ( … … 221 221 { 222 222 return \Closure::bind(function () use ($loader) { 223 $loader->prefixLengthsPsr4 = ComposerStaticInit ad21f7023f88f4b2cfda3498a26e502d::$prefixLengthsPsr4;224 $loader->prefixDirsPsr4 = ComposerStaticInit ad21f7023f88f4b2cfda3498a26e502d::$prefixDirsPsr4;225 $loader->classMap = ComposerStaticInit ad21f7023f88f4b2cfda3498a26e502d::$classMap;223 $loader->prefixLengthsPsr4 = ComposerStaticInit::$prefixLengthsPsr4; 224 $loader->prefixDirsPsr4 = ComposerStaticInit::$prefixDirsPsr4; 225 $loader->classMap = ComposerStaticInit::$classMap; 226 226 227 227 }, null, ClassLoader::class); -
woo-solo-api/trunk/vendor/composer/installed.php
r2960789 r3022432 2 2 'root' => array( 3 3 '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' => '', 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 12 12 'versions' => array( 13 13 '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' => '', 17 17 'type' => 'wordpress-plugin', 18 18 'install_path' => __DIR__ . '/../../', -
woo-solo-api/trunk/woo-solo-api.php
r2960789 r3022432 11 11 * Plugin URI: https://madebydenis.com/woo-solo-api 12 12 * Description: This plugin provides integration of the SOLO API service with WooCommerce. 13 * Version: 3. 2.013 * Version: 3..0 14 14 * Author: Denis Žoljom 15 15 * Author URI: https://madebydenis.com … … 19 19 * Domain Path: /languages 20 20 * WC requires at least: 7.0.0 21 * WC tested up to: 8. 0.021 * WC tested up to: 8..0 22 22 * Requires PHP: 7.4 23 23 */
Note: See TracChangeset
for help on using the changeset viewer.