refactor: dto, requests, connector

This commit is contained in:
2026-01-19 10:46:57 +03:00
parent b2786d8606
commit 78e1e82331
32 changed files with 894 additions and 42 deletions

View File

@@ -0,0 +1,33 @@
<?php
declare(strict_types=1);
namespace Apoloz\AlfaBank\Sbp\Data\Reversal;
use Spatie\LaravelData\Attributes\DataCollectionOf;
use Spatie\LaravelData\Data;
use Spatie\LaravelData\DataCollection;
class ReversalHistoryResponseData extends Data
{
public function __construct(
public int $ErrorCode,
public string $message,
#[DataCollectionOf(ReversalHistoryItemData::class)]
public ?DataCollection $refunds = null,
) {}
}
class ReversalHistoryItemData extends Data
{
public function __construct(
public string $TermNo,
public string $amount,
public string $originalQrcId,
public string $originalTrxId,
public string $payerId,
public string $status,
public ?string $trxId = null,
public ?string $trxDT = null,
) {}
}