From aaa2cb74059dd45ebec36c577b34dcb703b8e9c4 Mon Sep 17 00:00:00 2001 From: Seam Bot Date: Tue, 5 Nov 2024 03:20:00 +0000 Subject: [PATCH] ci: Generate code --- src/SeamClient.php | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/SeamClient.php b/src/SeamClient.php index 7d35784..eb945bd 100644 --- a/src/SeamClient.php +++ b/src/SeamClient.php @@ -1126,6 +1126,7 @@ public function create( string $access_method, string $acs_user_id, array $allowed_acs_entrance_ids = null, + mixed $assa_abloy_vostio_metadata = null, string $code = null, string $credential_manager_acs_system_id = null, string $ends_at = null, @@ -1146,6 +1147,11 @@ public function create( "allowed_acs_entrance_ids" ] = $allowed_acs_entrance_ids; } + if ($assa_abloy_vostio_metadata !== null) { + $request_payload[ + "assa_abloy_vostio_metadata" + ] = $assa_abloy_vostio_metadata; + } if ($code !== null) { $request_payload["code"] = $code; } @@ -1376,7 +1382,7 @@ public function __construct(SeamClient $seam) $this->seam = $seam; } - public function encode_credential( + public function encode_card( string $acs_credential_id, string $device_id, bool $wait_for_action_attempt = true @@ -1392,7 +1398,7 @@ public function encode_credential( $res = $this->seam->request( "POST", - "/acs/encoders/encode_credential", + "/acs/encoders/encode_card", json: $request_payload, inner_object: "action_attempt" ); @@ -1435,7 +1441,7 @@ public function list( return array_map(fn($r) => Device::from_json($r), $res); } - public function scan_credential( + public function scan_card( string $acs_system_id, string $device_id, bool $wait_for_action_attempt = true @@ -1451,7 +1457,7 @@ public function scan_credential( $res = $this->seam->request( "POST", - "/acs/encoders/scan_credential", + "/acs/encoders/scan_card", json: $request_payload, inner_object: "action_attempt" );