Skip to content

Commit

Permalink
Merge pull request #113 from dingo-d/hotfix/fiscalization-option-fix
Browse files Browse the repository at this point in the history
Hotfix/fiscalization option fix
  • Loading branch information
dingo-d authored Aug 9, 2023
2 parents 4841d2e + 865ddca commit 7f666f0
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 15 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ This projects adheres to [Semantic Versioning](https://semver.org/) and [Keep a

_No documentation available about unreleased changes as of yet._

## [3.1.0] - 2023-08-09

### Fixed

* Fix issue with fiscalization options
* Tested with WC 8.0.0 and WP 6.3

## [3.0.1] - 2023-01-31

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

[Unreleased]: https://github.com/dingo-d/woo-solo-api/compare/master...HEAD
[3.1.0]: https://github.com/dingo-d/woo-solo-api/compare/3.0.1...3.1.0
[3.0.1]: https://github.com/dingo-d/woo-solo-api/compare/3.0.0...3.0.1
[3.0.0]: https://github.com/dingo-d/woo-solo-api/compare/2.3.0...3.0.0
[2.3.0]: https://github.com/dingo-d/woo-solo-api/compare/2.2.0...2.3.0
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
**Tags**: woocommerce, api, solo api, solo, api integration, shop, payment, woo
**Requires at least**: 5.9
**Requires PHP**: 7.4
**Tested up to**: 5.9
**Stable tag**: 3.0.1
**WC requires at least**: 6.0.0
**WC tested up to**: 7.3.0
**Tested up to**: 6.3
**Stable tag**: 3.1.0
**WC requires at least**: 7.0.0
**WC tested up to**: 8.0.0
**License**: MIT
**License URI**: https://opensource.org/licenses/MIT

Expand Down
10 changes: 8 additions & 2 deletions README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ Be sure you have WooCommerce plugin installed first, otherwise you'll get an err
== Requirements ==

* PHP 7.4 or greater
* WordPress 5.9 or above
* WooCommerce 6.0.0 or above
* WordPress 6.0 or above
* WooCommerce 7.0.0 or above
* Non IE browser

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

== Changelog ==

= 3.1.0 =
Release Date: August 9th, 2023

* Fix issue with fiscalization options
* Tested with WC 8.0.0 and WP 6.3

= 3.0.1 =
Release Date: January 31st, 2023

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "woo-solo-api",
"version": "3.0.0",
"version": "3.1.0",
"description": "This plugin provides integration of the SOLO API service with WooCommerce.",
"authors": [
{
Expand Down
4 changes: 2 additions & 2 deletions src/Core/Autowiring.php
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ private function buildClassInterfaceIndex(array $reflectionClasses): array
$classInterfaceIndex = [];
foreach ($reflectionClasses as $projectClass => $reflectionClass) {
$interfaces = \array_map(
function () {
static function () {
return true;
},
$reflectionClass->getInterfaces()
Expand Down Expand Up @@ -397,7 +397,7 @@ private function convertDependencyTreeIntoDefinitionList(array $dependencyTree):
*/
private function validateAndBuildClasses(array $classNames, bool $skipInvalid): array
{
$classNames = array_filter($classNames, function($className) {
$classNames = array_filter($classNames, static function ($className) {
return $className !== 'MadeByDenis\WooSoloApi\Core\WooCompiledContainer';
});

Expand Down
4 changes: 1 addition & 3 deletions src/Request/SoloApiRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -574,9 +574,7 @@ public function executeApiCall($order): void
}

if ($billType === self::INVOICE) {
$requestBody['fiskalizacija'] = '0';

if (!empty($soloApiFiscalization)) {
if ($soloApiFiscalization === '1') {
$requestBody['fiskalizacija'] = '1';
}
}
Expand Down
6 changes: 3 additions & 3 deletions woo-solo-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
* Plugin Name: Woo Solo Api
* Plugin URI: https://madebydenis.com/woo-solo-api
* Description: This plugin provides integration of the SOLO API service with WooCommerce.
* Version: 3.0.1
* Version: 3.1.0
* Author: Denis Žoljom
* Author URI: https://madebydenis.com
* License: MIT
* License URI: https://opensource.org/licenses/MIT
* Text Domain: woo-solo-api
* Domain Path: /languages
* WC requires at least: 6.0.0
* WC tested up to: 7.3.0
* WC requires at least: 7.0.0
* WC tested up to: 8.0.0
* Requires PHP: 7.4
*/

Expand Down

0 comments on commit 7f666f0

Please sign in to comment.