forked from apoloz/alfa-bank-sdk
refactor(sbp): refund
This commit is contained in:
@@ -14,6 +14,7 @@ namespace Apoloz\AlfaBank\Sbp\Data\Reversal;
|
||||
// <SECTION name="module_imports" intent="Import the base Spatie Laravel Data class.">
|
||||
// <BELIEF_STATE "Extending `Spatie\LaravelData\Data` enables automatic casting from JSON and provides DTO benefits.">
|
||||
use Spatie\LaravelData\Data;
|
||||
use Spatie\LaravelData\Attributes\MapName;
|
||||
|
||||
// </SECTION>
|
||||
|
||||
@@ -36,6 +37,7 @@ class GetQrcReversalDataResponseData extends Data
|
||||
public ?string $qrcId = null,
|
||||
public ?string $trxDT = null,
|
||||
public ?string $trxId = null,
|
||||
#[MapName('RestAmount')]
|
||||
public ?string $restAmount = null,
|
||||
) {}
|
||||
// </SECTION>
|
||||
|
||||
@@ -14,6 +14,7 @@ namespace Apoloz\AlfaBank\Sbp\Data\Reversal;
|
||||
// <SECTION name="module_imports" intent="Import the base Spatie Laravel Data class.">
|
||||
// <BELIEF_STATE "Extending `Spatie\LaravelData\Data` enables automatic casting from JSON and provides DTO benefits.">
|
||||
use Spatie\LaravelData\Data;
|
||||
use Spatie\LaravelData\Attributes\MapName;
|
||||
|
||||
// </SECTION>
|
||||
|
||||
@@ -33,6 +34,7 @@ class QrcReversalResponseData extends Data
|
||||
public ?string $trxDT = null,
|
||||
public ?string $trxId = null,
|
||||
public ?string $payrrn = null,
|
||||
#[MapName('RestAmount')]
|
||||
public ?string $restAmount = null,
|
||||
) {}
|
||||
// </SECTION>
|
||||
|
||||
Reference in New Issue
Block a user