From 4f52a189c74393449f8e40205276d37f7e9b6340 Mon Sep 17 00:00:00 2001 From: Anatoliy Poloz Date: Thu, 19 Mar 2026 19:38:21 +0300 Subject: [PATCH] add Identification --- .../CreateUnidentifiedTransactionRequest.php | 63 +++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 src/Requests/NominalAccounts/Identification/CreateUnidentifiedTransactionRequest.php diff --git a/src/Requests/NominalAccounts/Identification/CreateUnidentifiedTransactionRequest.php b/src/Requests/NominalAccounts/Identification/CreateUnidentifiedTransactionRequest.php new file mode 100644 index 0000000..3dcc5c7 --- /dev/null +++ b/src/Requests/NominalAccounts/Identification/CreateUnidentifiedTransactionRequest.php @@ -0,0 +1,63 @@ +json()); + } + + protected function defaultBody(): array + { + return array_filter([ + 'documentNumber' => $this->documentNumber, + 'date' => $this->date, + 'amount' => $this->amount, + 'purpose' => $this->purpose, + 'accountNumber' => $this->accountNumber, + 'payer' => $this->payer ?? $this->getDefaultPayer(), + ], fn ($value) => $value !== null); + } + + protected function getDefaultPayer(): array + { + return [ + 'inn' => '221284672706', + 'kpp' => '641914992', + 'accountNumber' => '87149728127096890679', + 'name' => 'Тестовый плательщик', + 'bankAccount' => '3932755239052037086628', + 'bankBik' => '108997635', + 'bankName' => 'АО "Альфа-Банк"', + ]; + } +}