forked from apoloz/alfa-bank-sdk
first commit
This commit is contained in:
32
src/Sbp/Data/QrCodeRequestData.php
Normal file
32
src/Sbp/Data/QrCodeRequestData.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
namespace Gemini\AlfaBank\Sbp\Data;
|
||||
|
||||
use Spatie\LaravelData\Data;
|
||||
|
||||
class QrCodeRequestData extends Data
|
||||
{
|
||||
public function __construct(
|
||||
public string $TermNo,
|
||||
public string $qrcType = '01', // '01' = Static, '02' = Dynamic
|
||||
public ?string $amount = null,
|
||||
public string $currency = 'RUB',
|
||||
public ?string $paymentPurpose = null,
|
||||
public ?string $redirectUrl = null,
|
||||
public ?string $messageID = null,
|
||||
public ?string $width = null,
|
||||
public ?string $height = null,
|
||||
public ?string $notificationUrl = null,
|
||||
|
||||
// Dynamic QR specific fields
|
||||
public ?string $OrderNumber = null,
|
||||
public ?string $qrTtl = null, // Minutes, 1-6
|
||||
public ?string $subscriptionServiceId = null,
|
||||
public ?string $subscriptionServiceName = null,
|
||||
|
||||
// Optional user data for Dynamic QR
|
||||
public ?string $SenderFIO = null,
|
||||
public ?string $SenderID = null,
|
||||
public ?string $SenderBankBIC = null,
|
||||
) {}
|
||||
}
|
||||
Reference in New Issue
Block a user