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 17, 2024
1 parent 885b5e2 commit 9cbef52
Showing 1 changed file with 106 additions and 0 deletions.
106 changes: 106 additions & 0 deletions src/SeamClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -1509,6 +1509,112 @@ public function scan_credential(
}
}

class AcsEncodersSimulateClient
{
private SeamClient $seam;

public function __construct(SeamClient $seam)
{
$this->seam = $seam;
}

public function next_credential_encode_will_fail(
string $acs_encoder_id,
string $error_code = null,
string $acs_credential_id = null
): void {
$request_payload = [];

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

$this->seam->request(
"POST",
"/acs/encoders/simulate/next_credential_encode_will_fail",
json: $request_payload
);
}

public function next_credential_encode_will_succeed(
string $acs_encoder_id,
string $scenario = null
): void {
$request_payload = [];

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

$this->seam->request(
"POST",
"/acs/encoders/simulate/next_credential_encode_will_succeed",
json: $request_payload
);
}

public function next_credential_scan_will_fail(
string $acs_encoder_id,
string $error_code = null,
string $acs_credential_id_on_seam = null
): void {
$request_payload = [];

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

$this->seam->request(
"POST",
"/acs/encoders/simulate/next_credential_scan_will_fail",
json: $request_payload
);
}

public function next_credential_scan_will_succeed(
string $acs_encoder_id,
string $acs_credential_id_on_seam = null,
string $scenario = null
): void {
$request_payload = [];

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

$this->seam->request(
"POST",
"/acs/encoders/simulate/next_credential_scan_will_succeed",
json: $request_payload
);
}
}

class AcsEntrancesClient
{
private SeamClient $seam;
Expand Down

0 comments on commit 9cbef52

Please sign in to comment.