Skip to content

Commit

Permalink
ci: Generate code
Browse files Browse the repository at this point in the history
  • Loading branch information
seambot committed Nov 5, 2024
1 parent a9e25ae commit aaa2cb7
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/SeamClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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;
}
Expand Down Expand Up @@ -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
Expand All @@ -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"
);
Expand Down Expand Up @@ -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
Expand All @@ -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"
);
Expand Down

0 comments on commit aaa2cb7

Please sign in to comment.