refactor(core): enhance SDK structure and documentation
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
21
src/Data/B2C/B2CPaymentRequestData.php
Normal file
21
src/Data/B2C/B2CPaymentRequestData.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace Apoloz\AlfaBank\Data\B2C;
|
||||
|
||||
use Spatie\LaravelData\Attributes\DataCollectionOf;
|
||||
use Spatie\LaravelData\Data;
|
||||
use Spatie\LaravelData\DataCollection;
|
||||
|
||||
class B2CPaymentRequestData extends Data
|
||||
{
|
||||
public function __construct(
|
||||
public B2CClientData $client,
|
||||
public string $inn,
|
||||
public string $account,
|
||||
public float $total,
|
||||
public string $signedBody,
|
||||
#[DataCollectionOf(B2CPaymentRecipientData::class)]
|
||||
public DataCollection $payments,
|
||||
public bool $nameCheck = true,
|
||||
) {}
|
||||
}
|
||||
Reference in New Issue
Block a user