Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preparing for 2.7.3 release #97

Merged
merged 5 commits into from
Jul 29, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [2.7.3] - 2024-07-29
### Added
- Support the new VAT in Finland

## [2.7.2] - 2024-06-06
### Changed
- Updated validation to support negative item rows
Expand Down
8 changes: 4 additions & 4 deletions src/Interfaces/ItemInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,17 +59,17 @@ public function setUnits(?int $units): ItemInterface;
/**
* Get the VAT percentage.
*
* @return int
* @return float
*/
public function getVatPercentage(): ?int;
public function getVatPercentage(): ?float;

/**
* Set the VAT percentage.
*
* @param int|null $vatPercentage
* @param float|null $vatPercentage
* @return ItemInterface Return self to enable chaining.
*/
public function setVatPercentage(?int $vatPercentage): ItemInterface;
public function setVatPercentage(?float $vatPercentage): ItemInterface;

/**
* Get the product code.
Expand Down
10 changes: 5 additions & 5 deletions src/Model/Item.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class Item implements \JsonSerializable, ItemInterface
/**
* The VAT percentage.
*
* @var integer
* @var float
*/
protected $vatPercentage;

Expand Down Expand Up @@ -159,20 +159,20 @@ public function setUnits(?int $units): ItemInterface
/**
* Get the VAT percentage.
*
* @return int
* @return float
*/
public function getVatPercentage(): ?int
public function getVatPercentage(): ?float
{
return $this->vatPercentage;
}

/**
* Set the VAT percentage.
*
* @param int $vatPercentage
* @param float $vatPercentage
* @return ItemInterface Return self to enable chaining.
*/
public function setVatPercentage(?int $vatPercentage): ItemInterface
public function setVatPercentage(?float $vatPercentage): ItemInterface
{
$this->vatPercentage = $vatPercentage;

Expand Down
Loading