Готов класс оплаты Payment для будущей поддержки оплат в документе

This commit is contained in:
2021-12-03 23:53:42 +08:00
parent 65ec639014
commit 7d0c526663
7 changed files with 301 additions and 99 deletions

View File

@@ -12,6 +12,7 @@ namespace AtolOnline\Tests\Entities;
use AtolOnline\{
Entities\Vat,
Enums\VatTypes,
Exceptions\InvalidEnumValueException,
Tests\BasicTestCase
};
@@ -69,6 +70,7 @@ class VatTest extends BasicTestCase
* @covers \AtolOnline\Entities\Vat::getSum
* @covers \AtolOnline\Entities\Vat::getCalculated
* @covers \AtolOnline\Entities\Vat::jsonSerialize
* @throws InvalidEnumValueException
*/
public function testConstructor(string $type, float $sum): void
{
@@ -90,6 +92,7 @@ class VatTest extends BasicTestCase
* @param float $after_minus Результат после -20р
* @covers \AtolOnline\Entities\Vat::addSum
* @covers \AtolOnline\Entities\Vat::getCalculated
* @throws InvalidEnumValueException
*/
public function testVatAdd(string $type, float $after_plus, float $after_minus)
{