refactor: dto, requests, connector
This commit is contained in:
33
src/Sbp/Data/Reversal/ReversalHistoryResponseData.php
Normal file
33
src/Sbp/Data/Reversal/ReversalHistoryResponseData.php
Normal 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,
|
||||
) {}
|
||||
}
|
||||
Reference in New Issue
Block a user