Skip to content

Commit 7f666f0

Browse files
authored
Merge pull request #113 from dingo-d/hotfix/fiscalization-option-fix
Hotfix/fiscalization option fix
2 parents 4841d2e + 865ddca commit 7f666f0

File tree

7 files changed

+27
-15
lines changed

7 files changed

+27
-15
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@ This projects adheres to [Semantic Versioning](https://semver.org/) and [Keep a
1616

1717
_No documentation available about unreleased changes as of yet._
1818

19+
## [3.1.0] - 2023-08-09
20+
21+
### Fixed
22+
23+
* Fix issue with fiscalization options
24+
* Tested with WC 8.0.0 and WP 6.3
25+
1926
## [3.0.1] - 2023-01-31
2027

2128
### Fixed
@@ -409,6 +416,7 @@ A lot of issues were fixed. The plugin should be more stable and work better now
409416
* Initial release
410417

411418
[Unreleased]: https://github.com/dingo-d/woo-solo-api/compare/master...HEAD
419+
[3.1.0]: https://github.com/dingo-d/woo-solo-api/compare/3.0.1...3.1.0
412420
[3.0.1]: https://github.com/dingo-d/woo-solo-api/compare/3.0.0...3.0.1
413421
[3.0.0]: https://github.com/dingo-d/woo-solo-api/compare/2.3.0...3.0.0
414422
[2.3.0]: https://github.com/dingo-d/woo-solo-api/compare/2.2.0...2.3.0

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
**Tags**: woocommerce, api, solo api, solo, api integration, shop, payment, woo
1616
**Requires at least**: 5.9
1717
**Requires PHP**: 7.4
18-
**Tested up to**: 5.9
19-
**Stable tag**: 3.0.1
20-
**WC requires at least**: 6.0.0
21-
**WC tested up to**: 7.3.0
18+
**Tested up to**: 6.3
19+
**Stable tag**: 3.1.0
20+
**WC requires at least**: 7.0.0
21+
**WC tested up to**: 8.0.0
2222
**License**: MIT
2323
**License URI**: https://opensource.org/licenses/MIT
2424

README.txt

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ Be sure you have WooCommerce plugin installed first, otherwise you'll get an err
5151
== Requirements ==
5252

5353
* PHP 7.4 or greater
54-
* WordPress 5.9 or above
55-
* WooCommerce 6.0.0 or above
54+
* WordPress 6.0 or above
55+
* WooCommerce 7.0.0 or above
5656
* Non IE browser
5757

5858
== Screenshots ==
@@ -66,6 +66,12 @@ Be sure you have WooCommerce plugin installed first, otherwise you'll get an err
6666

6767
== Changelog ==
6868

69+
= 3.1.0 =
70+
Release Date: August 9th, 2023
71+
72+
* Fix issue with fiscalization options
73+
* Tested with WC 8.0.0 and WP 6.3
74+
6975
= 3.0.1 =
7076
Release Date: January 31st, 2023
7177

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "woo-solo-api",
3-
"version": "3.0.0",
3+
"version": "3.1.0",
44
"description": "This plugin provides integration of the SOLO API service with WooCommerce.",
55
"authors": [
66
{

src/Core/Autowiring.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ private function buildClassInterfaceIndex(array $reflectionClasses): array
335335
$classInterfaceIndex = [];
336336
foreach ($reflectionClasses as $projectClass => $reflectionClass) {
337337
$interfaces = \array_map(
338-
function () {
338+
static function () {
339339
return true;
340340
},
341341
$reflectionClass->getInterfaces()
@@ -397,7 +397,7 @@ private function convertDependencyTreeIntoDefinitionList(array $dependencyTree):
397397
*/
398398
private function validateAndBuildClasses(array $classNames, bool $skipInvalid): array
399399
{
400-
$classNames = array_filter($classNames, function($className) {
400+
$classNames = array_filter($classNames, static function ($className) {
401401
return $className !== 'MadeByDenis\WooSoloApi\Core\WooCompiledContainer';
402402
});
403403

src/Request/SoloApiRequest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -574,9 +574,7 @@ public function executeApiCall($order): void
574574
}
575575

576576
if ($billType === self::INVOICE) {
577-
$requestBody['fiskalizacija'] = '0';
578-
579-
if (!empty($soloApiFiscalization)) {
577+
if ($soloApiFiscalization === '1') {
580578
$requestBody['fiskalizacija'] = '1';
581579
}
582580
}

woo-solo-api.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@
1010
* Plugin Name: Woo Solo Api
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.0.1
13+
* Version: 3.1.0
1414
* Author: Denis Žoljom
1515
* Author URI: https://madebydenis.com
1616
* License: MIT
1717
* License URI: https://opensource.org/licenses/MIT
1818
* Text Domain: woo-solo-api
1919
* Domain Path: /languages
20-
* WC requires at least: 6.0.0
21-
* WC tested up to: 7.3.0
20+
* WC requires at least: 7.0.0
21+
* WC tested up to: 8.0.0
2222
* Requires PHP: 7.4
2323
*/
2424

0 commit comments

Comments
 (0)