From c468b10b2db33ab9ac93f077dc11099f345b7c3c Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Thu, 5 Feb 2026 14:28:03 +0000
Subject: [PATCH 1/4] Initial plan
From 082e7e273552e3682c738c53a25f0728649e9eff Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Thu, 5 Feb 2026 14:36:09 +0000
Subject: [PATCH 2/4] feat: add capture_type property to
StaticLivenessResourceResponse
Co-authored-by: mehmet-yoti <111424390+mehmet-yoti@users.noreply.github.com>
---
.../Retrieve/StaticLivenessResourceResponse.php | 14 ++++++++++++++
.../StaticLivenessResourceResponseTest.php | 6 ++++++
2 files changed, 20 insertions(+)
diff --git a/src/DocScan/Session/Retrieve/StaticLivenessResourceResponse.php b/src/DocScan/Session/Retrieve/StaticLivenessResourceResponse.php
index ada82639..23ef6dbf 100644
--- a/src/DocScan/Session/Retrieve/StaticLivenessResourceResponse.php
+++ b/src/DocScan/Session/Retrieve/StaticLivenessResourceResponse.php
@@ -11,6 +11,10 @@ class StaticLivenessResourceResponse extends LivenessResourceResponse
*/
private $image;
+ /**
+ * @var string|null
+ */
+ private $captureType;
/**
* StaticLivenessResourceResponse constructor.
@@ -24,6 +28,8 @@ public function __construct(array $zoomLiveness)
if (isset($zoomLiveness['image'])) {
$this->image = new MediaResponse($zoomLiveness['image']['media']);
}
+
+ $this->captureType = $zoomLiveness['capture_type'] ?? null;
}
/**
@@ -33,4 +39,12 @@ public function getImage(): ?MediaResponse
{
return $this->image;
}
+
+ /**
+ * @return string|null
+ */
+ public function getCaptureType(): ?string
+ {
+ return $this->captureType;
+ }
}
diff --git a/tests/DocScan/Session/Retrieve/StaticLivenessResourceResponseTest.php b/tests/DocScan/Session/Retrieve/StaticLivenessResourceResponseTest.php
index 6e280f90..d5e37c39 100644
--- a/tests/DocScan/Session/Retrieve/StaticLivenessResourceResponseTest.php
+++ b/tests/DocScan/Session/Retrieve/StaticLivenessResourceResponseTest.php
@@ -13,17 +13,20 @@ class StaticLivenessResourceResponseTest extends TestCase
{
private const SOME_LIVENESS_TYPE = 'someLivenessType';
private const SOME_ID = '493ru49358gh945fh305';
+ private const SOME_CAPTURE_TYPE = 'someCaptureType';
/**
* @test
* @covers ::__construct
* @covers ::getLivenessType
* @covers ::getImage
+ * @covers ::getCaptureType
*/
public function shouldBuildCorrectly()
{
$input = [
'liveness_type' => self::SOME_LIVENESS_TYPE,
+ 'capture_type' => self::SOME_CAPTURE_TYPE,
'image' => [
'media' => [
'id' => self::SOME_ID,
@@ -38,6 +41,7 @@ public function shouldBuildCorrectly()
$result = new StaticLivenessResourceResponse($input);
$this->assertEquals(self::SOME_LIVENESS_TYPE, $result->getLivenessType());
+ $this->assertEquals(self::SOME_CAPTURE_TYPE, $result->getCaptureType());
$this->assertEquals(self::SOME_ID, $result->getImage()->getId());
$this->assertNotNull($result->getImage());
$this->assertInstanceOf(MediaResponse::class, $result->getImage());
@@ -48,6 +52,7 @@ public function shouldBuildCorrectly()
* @covers ::__construct
* @covers ::getLivenessType
* @covers ::getImage
+ * @covers ::getCaptureType
*/
public function shouldNotThrowExceptionIfMissingValues()
{
@@ -55,5 +60,6 @@ public function shouldNotThrowExceptionIfMissingValues()
$this->assertNull($result->getLivenessType());
$this->assertNull($result->getImage());
+ $this->assertNull($result->getCaptureType());
}
}
From 478f1df6dcab3dd98279d982269067f9eab258d6 Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Thu, 5 Feb 2026 15:06:11 +0000
Subject: [PATCH 3/4] test: verify capture_type property works correctly
Co-authored-by: mehmet-yoti <111424390+mehmet-yoti@users.noreply.github.com>
---
phpunit.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/phpunit.xml b/phpunit.xml
index fe461e65..1c22d6ed 100755
--- a/phpunit.xml
+++ b/phpunit.xml
@@ -21,6 +21,6 @@
-
+
From bfd5e73b1407b8a80958f0c11e4b20b540092dd9 Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Thu, 5 Feb 2026 15:06:53 +0000
Subject: [PATCH 4/4] fix: remove extra space in phpunit.xml comment
Co-authored-by: mehmet-yoti <111424390+mehmet-yoti@users.noreply.github.com>
---
phpunit.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/phpunit.xml b/phpunit.xml
index 1c22d6ed..49624a07 100755
--- a/phpunit.xml
+++ b/phpunit.xml
@@ -21,6 +21,6 @@
-
+