Skip to content

Commit

Permalink
Merge pull request #207 from seamapi/dependabot/npm_and_yarn/seam-b08…
Browse files Browse the repository at this point in the history
…d3a41b2

feat(deps-dev): Bump @seamapi/types from 1.287.3 to 1.288.0 in the seam group
  • Loading branch information
seambot authored Nov 5, 2024
2 parents e0df562 + aaa2cb7 commit ad1ef7f
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"devDependencies": {
"@prettier/plugin-php": "^0.22.1",
"@seamapi/nextlove-sdk-generator": "1.14.10",
"@seamapi/types": "1.287.3",
"@seamapi/types": "1.288.0",
"del": "^7.1.0",
"prettier": "^3.0.0"
}
Expand Down
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 ad1ef7f

Please sign in to comment.