From 885b5e2d4165b49dacea789cf9494a083f6bd551 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 17 Dec 2024 03:14:10 +0000 Subject: [PATCH 1/2] feat(deps-dev): Bump @seamapi/types in the seam group Bumps the seam group with 1 update: [@seamapi/types](https://github.com/seamapi/types). Updates `@seamapi/types` from 1.313.0 to 1.315.0 - [Release notes](https://github.com/seamapi/types/releases) - [Changelog](https://github.com/seamapi/types/blob/main/.releaserc.json) - [Commits](https://github.com/seamapi/types/compare/v1.313.0...v1.315.0) --- updated-dependencies: - dependency-name: "@seamapi/types" dependency-type: direct:development update-type: version-update:semver-minor dependency-group: seam ... Signed-off-by: dependabot[bot] --- package-lock.json | 8 ++++---- package.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index 9c490e9..c521dcb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,7 +11,7 @@ "devDependencies": { "@prettier/plugin-php": "^0.22.1", "@seamapi/nextlove-sdk-generator": "1.14.17", - "@seamapi/types": "1.313.0", + "@seamapi/types": "1.315.0", "del": "^7.1.0", "prettier": "^3.0.0" } @@ -456,9 +456,9 @@ } }, "node_modules/@seamapi/types": { - "version": "1.313.0", - "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.313.0.tgz", - "integrity": "sha512-uk/fRmMvtAgTjZwRLmjvfxIkS6+BR1V5b9M6oA5+5Q3y9iTK2e/57fRat5qsyb+R00rmlb8Lh/rqs7W0nHu2IA==", + "version": "1.315.0", + "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.315.0.tgz", + "integrity": "sha512-/j+5WmOWD2QdHLvaXIZihfQdc+RilxPUCVhY1xwoqTmQ0jvies0TDNhDmVEqGmsxp6e7YA7vqdmRVwDkE/aZbQ==", "dev": true, "engines": { "node": ">=18.12.0", diff --git a/package.json b/package.json index ed0941f..1158710 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "devDependencies": { "@prettier/plugin-php": "^0.22.1", "@seamapi/nextlove-sdk-generator": "1.14.17", - "@seamapi/types": "1.313.0", + "@seamapi/types": "1.315.0", "del": "^7.1.0", "prettier": "^3.0.0" } From 9cbef527dc5b250397cba7eb5fe1808366d2fa59 Mon Sep 17 00:00:00 2001 From: Seam Bot Date: Tue, 17 Dec 2024 03:14:28 +0000 Subject: [PATCH 2/2] ci: Generate code --- src/SeamClient.php | 106 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 106 insertions(+) diff --git a/src/SeamClient.php b/src/SeamClient.php index 9656b50..49fdcc1 100644 --- a/src/SeamClient.php +++ b/src/SeamClient.php @@ -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;