forked from apoloz/alfa-bank-sdk
refactor(core): enhance SDK structure and documentation
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
13
src/Data/SelfEmployed/ActivityData.php
Normal file
13
src/Data/SelfEmployed/ActivityData.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace Apoloz\AlfaBank\Data\SelfEmployed;
|
||||
|
||||
use Spatie\LaravelData\Data;
|
||||
|
||||
class ActivityData extends Data
|
||||
{
|
||||
public function __construct(
|
||||
public string $id,
|
||||
public string $name,
|
||||
) {}
|
||||
}
|
||||
13
src/Data/SelfEmployed/AgreementLinkData.php
Normal file
13
src/Data/SelfEmployed/AgreementLinkData.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace Apoloz\AlfaBank\Data\SelfEmployed;
|
||||
|
||||
use Spatie\LaravelData\Data;
|
||||
|
||||
class AgreementLinkData extends Data
|
||||
{
|
||||
public function __construct(
|
||||
public string $link,
|
||||
public ?string $requestId = null,
|
||||
) {}
|
||||
}
|
||||
15
src/Data/SelfEmployed/AgreementPageRequestData.php
Normal file
15
src/Data/SelfEmployed/AgreementPageRequestData.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
namespace Apoloz\AlfaBank\Data\SelfEmployed;
|
||||
|
||||
use Spatie\LaravelData\Data;
|
||||
|
||||
class AgreementPageRequestData extends Data
|
||||
{
|
||||
public function __construct(
|
||||
public ?string $phone = null,
|
||||
public ?array $activities = null, // array of strings (activity IDs)
|
||||
public ?array $regions = null, // array of strings (OKTMO)
|
||||
public ?string $returnUrl = null,
|
||||
) {}
|
||||
}
|
||||
14
src/Data/SelfEmployed/PayoutRequestData.php
Normal file
14
src/Data/SelfEmployed/PayoutRequestData.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace Apoloz\AlfaBank\Data\SelfEmployed;
|
||||
|
||||
use Spatie\LaravelData\Data;
|
||||
|
||||
class PayoutRequestData extends Data
|
||||
{
|
||||
public function __construct(
|
||||
public string $externalId,
|
||||
public array $company,
|
||||
public array $requisite,
|
||||
) {}
|
||||
}
|
||||
13
src/Data/SelfEmployed/PayoutResponseData.php
Normal file
13
src/Data/SelfEmployed/PayoutResponseData.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace Apoloz\AlfaBank\Data\SelfEmployed;
|
||||
|
||||
use Spatie\LaravelData\Data;
|
||||
|
||||
class PayoutResponseData extends Data
|
||||
{
|
||||
public function __construct(
|
||||
public string $id,
|
||||
public string $status,
|
||||
) {}
|
||||
}
|
||||
13
src/Data/SelfEmployed/TaxpayerStatusRequestData.php
Normal file
13
src/Data/SelfEmployed/TaxpayerStatusRequestData.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace Apoloz\AlfaBank\Data\SelfEmployed;
|
||||
|
||||
use Spatie\LaravelData\Data;
|
||||
|
||||
class TaxpayerStatusRequestData extends Data
|
||||
{
|
||||
public function __construct(
|
||||
public string $externalId,
|
||||
public array $selfemployedVatinList,
|
||||
) {}
|
||||
}
|
||||
14
src/Data/SelfEmployed/TaxpayerStatusResponseData.php
Normal file
14
src/Data/SelfEmployed/TaxpayerStatusResponseData.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace Apoloz\AlfaBank\Data\SelfEmployed;
|
||||
|
||||
use Spatie\LaravelData\Data;
|
||||
|
||||
class TaxpayerStatusResponseData extends Data
|
||||
{
|
||||
public function __construct(
|
||||
public string $requestId,
|
||||
public string $externalId,
|
||||
public array $taxpayerStatusList,
|
||||
) {}
|
||||
}
|
||||
Reference in New Issue
Block a user