feat: implementation UsetrenoQRCodeProvider

This commit is contained in:
2024-01-18 14:20:10 +01:00
parent 450187aa23
commit 264e0260cf
9 changed files with 328 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
<?php
declare(strict_types=1);
namespace App\Entity\Remote\Usetreno\Edge;
/* Bohuzel jsem se nedozvedel z API co je optional a co je required. Tudiz jsem vychazel z toho ze vsechno je required az na EdgeQRCodeMoney.*
ktery uz z principu veci by mel byt optional (cizi staty nepodporuji variable, constant, specific...)
*/
readonly class EdgeQRCode {
public function __construct(
public string $iban,
public string $dueDate,
public string $message,
public EdgeQRCodeMoney $money,
public EdgeQRCodeQROptions $qrOptions,
public EdgeQRCodePaymentIdentification $paymentIdentification)
{ }
}

View File

@@ -0,0 +1,9 @@
<?php
declare(strict_types=1);
namespace App\Entity\Remote\Usetreno\Edge;
readonly class EdgeQRCodeMoney
{
public function __construct(public string $amount, public string $currency) { }
}

View File

@@ -0,0 +1,9 @@
<?php
declare(strict_types=1);
namespace App\Entity\Remote\Usetreno\Edge;
readonly class EdgeQRCodePaymentIdentification
{
public function __construct(public string $variableSymbol, public string $specificSymbol, public string $constantSymbol) { }
}

View File

@@ -0,0 +1,11 @@
<?php
declare(strict_types=1);
namespace App\Entity\Remote\Usetreno\Edge;
readonly class EdgeQRCodeQROptions
{
public function __construct(public int $scale, public int $margin)
{
}
}