mirror of
https://github.com/anikeen-com/id.git
synced 2026-03-15 14:46:15 +00:00
refactored code
Signed-off-by: Maurice Preuß (envoyr) <hello@envoyr.com>
This commit is contained in:
23
src/Id/Concerns/ManagesTaxation.php
Normal file
23
src/Id/Concerns/ManagesTaxation.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace Anikeen\Id\Concerns;
|
||||
|
||||
use Anikeen\Id\ApiOperations\Request;
|
||||
use Anikeen\Id\Exceptions\RequestRequiresClientIdException;
|
||||
use GuzzleHttp\Exception\GuzzleException;
|
||||
|
||||
trait ManagesTaxation
|
||||
{
|
||||
use Request;
|
||||
|
||||
/**
|
||||
* Get VAT for the current user.
|
||||
*
|
||||
* @throws RequestRequiresClientIdException
|
||||
* @throws GuzzleException
|
||||
*/
|
||||
public function vat(): float
|
||||
{
|
||||
return $this->getUserData()->vat;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user