Initial xentral_oss_20.3.c9ffacf
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Xentral\Modules\FiskalyApi\Exception;
|
||||
|
||||
use RuntimeException;
|
||||
|
||||
class FiskalyApiBaseException extends RuntimeException implements FiskalyApiExceptionInterface
|
||||
{
|
||||
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Xentral\Modules\FiskalyApi\Exception;
|
||||
|
||||
|
||||
use Xentral\Core\Exception\ModuleExceptionInterface;
|
||||
|
||||
interface FiskalyApiExceptionInterface extends ModuleExceptionInterface
|
||||
{
|
||||
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Xentral\Modules\FiskalyApi\Exception;
|
||||
|
||||
use InvalidArgumentException as SplInvalidArgumentException;
|
||||
|
||||
class InvalidArgumentException extends SplInvalidArgumentException implements FiskalyApiExceptionInterface
|
||||
{
|
||||
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Xentral\Modules\FiskalyApi\Exception;
|
||||
|
||||
class InvalidCredentialsException extends FiskalyApiBaseException
|
||||
{
|
||||
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Xentral\Modules\FiskalyApi\Exception;
|
||||
|
||||
use InvalidArgumentException;
|
||||
|
||||
class InvalidTransactionException extends InvalidArgumentException implements FiskalyApiExceptionInterface
|
||||
{
|
||||
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Xentral\Modules\FiskalyApi\Exception;
|
||||
|
||||
use RuntimeException as SplRuntimeException;
|
||||
|
||||
class SmaEndpointNotFoundException extends SplRuntimeException implements FiskalyApiExceptionInterface
|
||||
{
|
||||
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Xentral\Modules\FiskalyApi\Exception;
|
||||
|
||||
use RuntimeException as SplRuntimeException;
|
||||
|
||||
class SmaEndpointNotReachableException extends SplRuntimeException implements FiskalyApiExceptionInterface
|
||||
{
|
||||
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Xentral\Modules\FiskalyApi\Exception;
|
||||
|
||||
class VatRateNotFoundException extends FiskalyApiBaseException
|
||||
{
|
||||
public static function fromPercentage(float $percentage){
|
||||
return new VatRateNotFoundException("VAT rate {$percentage} not found");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user