2021-12-03 15:53:42 +00:00
|
|
|
<?php
|
2022-12-14 16:19:55 +00:00
|
|
|
|
2021-12-03 15:53:42 +00:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2020-2021 Антон Аксенов (Anthony Axenov)
|
|
|
|
*
|
|
|
|
* This code is licensed under MIT.
|
|
|
|
* Этот код распространяется по лицензии MIT.
|
|
|
|
* https://github.com/anthonyaxenov/atol-online/blob/master/LICENSE
|
|
|
|
*/
|
|
|
|
|
2022-12-14 16:19:55 +00:00
|
|
|
declare(strict_types=1);
|
2021-12-03 15:53:42 +00:00
|
|
|
|
|
|
|
namespace AtolOnline\Exceptions;
|
|
|
|
|
2022-12-14 16:19:55 +00:00
|
|
|
use AtolOnline\Constraints;
|
|
|
|
use AtolOnline\Ffd105Tags;
|
2021-12-03 15:53:42 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Исключение, возникающее при попытке установки слишком большой суммы оплаты
|
|
|
|
*/
|
|
|
|
class TooHighPaymentSumException extends TooManyException
|
|
|
|
{
|
|
|
|
protected $message = 'Слишком высокый размер оплаты';
|
|
|
|
protected array $ffd_tags = [
|
|
|
|
Ffd105Tags::PAYMENT_TYPE_CASH,
|
|
|
|
Ffd105Tags::PAYMENT_TYPE_CREDIT,
|
|
|
|
Ffd105Tags::PAYMENT_TYPE_ELECTRON,
|
|
|
|
Ffd105Tags::PAYMENT_TYPE_PREPAID,
|
|
|
|
Ffd105Tags::PAYMENT_TYPE_OTHER,
|
|
|
|
];
|
|
|
|
protected float $max = Constraints::MAX_COUNT_PAYMENT_SUM;
|
|
|
|
}
|