feat: implementation UsetrenoQRCodeProvider
This commit is contained in:
18
src/Entity/Remote/Usetreno/Edge/EdgeQRCode.php
Normal file
18
src/Entity/Remote/Usetreno/Edge/EdgeQRCode.php
Normal 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)
|
||||
{ }
|
||||
}
|
||||
9
src/Entity/Remote/Usetreno/Edge/EdgeQRCodeMoney.php
Normal file
9
src/Entity/Remote/Usetreno/Edge/EdgeQRCodeMoney.php
Normal 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) { }
|
||||
}
|
||||
@@ -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) { }
|
||||
}
|
||||
11
src/Entity/Remote/Usetreno/Edge/EdgeQRCodeQROptions.php
Normal file
11
src/Entity/Remote/Usetreno/Edge/EdgeQRCodeQROptions.php
Normal 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)
|
||||
{
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user