Skip to content

Commit

Permalink
ci: Generate code
Browse files Browse the repository at this point in the history
  • Loading branch information
seambot committed Dec 16, 2024
1 parent 2716926 commit a6a9a6c
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 22 deletions.
72 changes: 58 additions & 14 deletions src/Objects/Event.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 4 additions & 8 deletions src/SeamClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -1482,17 +1482,13 @@ public function list(

public function scan_credential(
string $acs_encoder_id,
string $acs_system_id,
bool $wait_for_action_attempt = true
): ActionAttempt {
$request_payload = [];

if ($acs_encoder_id !== null) {
$request_payload["acs_encoder_id"] = $acs_encoder_id;
}
if ($acs_system_id !== null) {
$request_payload["acs_system_id"] = $acs_system_id;
}

$res = $this->seam->request(
"POST",
Expand Down Expand Up @@ -1703,11 +1699,11 @@ public function add_to_access_group(

public function create(
string $acs_system_id,
string $full_name,
mixed $access_schedule = null,
array $acs_access_group_ids = null,
string $email = null,
string $email_address = null,
string $full_name = null,
string $phone_number = null,
string $user_identity_id = null
): AcsUser {
Expand All @@ -1716,6 +1712,9 @@ public function create(
if ($acs_system_id !== null) {
$request_payload["acs_system_id"] = $acs_system_id;
}
if ($full_name !== null) {
$request_payload["full_name"] = $full_name;
}
if ($access_schedule !== null) {
$request_payload["access_schedule"] = $access_schedule;
}
Expand All @@ -1728,9 +1727,6 @@ public function create(
if ($email_address !== null) {
$request_payload["email_address"] = $email_address;
}
if ($full_name !== null) {
$request_payload["full_name"] = $full_name;
}
if ($phone_number !== null) {
$request_payload["phone_number"] = $phone_number;
}
Expand Down

0 comments on commit a6a9a6c

Please sign in to comment.