diff --git a/OsnovanieServiceClient.php b/OsnovanieServiceClient.php index 3ecde0e7e26efb59a0e679ee27a5df0d89a39192..3fea20de71202b95171ecbe52758224f2c03c319 100644 --- a/OsnovanieServiceClient.php +++ b/OsnovanieServiceClient.php @@ -219,4 +219,33 @@ class OsnovanieServiceClient true ); } + + /** + * Загрузить бланк сертификата + * + * @param int $certificateId + * @param string $certificateBlankBase64Content - бланк сертификата в base64 + * @param string $applicantSignBase64Content - открепленная подпись заявителя в base64 + * @param int $field - номер архива, если есть + * @return array + * @throws GuzzleException + */ + public function uploadCertificateBlank( + int $certificateId, + string $certificateBlankBase64Content, + string $applicantSignBase64Content, + int $field = 0 + ): array + { + return Utils::jsonDecode($this->client + ->request('POST', '/v1/request/' . $certificateId . '/uploadCertificateBlank', [ + 'certificateBlankBase64Content' => $certificateBlankBase64Content, + 'applicantSignBase64Content' => $applicantSignBase64Content, + 'field' => $field, + ]) + ->getBody() + ->getContents(), + true + ); + } }