@@ -426,38 +426,6 @@ public function get(
426426 return AccessCode::from_json ($ res ->access_code );
427427 }
428428
429- public function get_timeline (
430- string $ access_code_id ,
431- ?string $ after = null ,
432- ?string $ before = null ,
433- ?array $ event_types = null ,
434- ?float $ limit = null ,
435- ): void {
436- $ request_payload = [];
437-
438- if ($ access_code_id !== null ) {
439- $ request_payload ["access_code_id " ] = $ access_code_id ;
440- }
441- if ($ after !== null ) {
442- $ request_payload ["after " ] = $ after ;
443- }
444- if ($ before !== null ) {
445- $ request_payload ["before " ] = $ before ;
446- }
447- if ($ event_types !== null ) {
448- $ request_payload ["event_types " ] = $ event_types ;
449- }
450- if ($ limit !== null ) {
451- $ request_payload ["limit " ] = $ limit ;
452- }
453-
454- $ this ->seam ->request (
455- "POST " ,
456- "/access_codes/get_timeline " ,
457- json: (object ) $ request_payload ,
458- );
459- }
460-
461429 public function list (
462430 ?array $ access_code_ids = null ,
463431 ?string $ access_method_id = null ,
@@ -3402,11 +3370,10 @@ public function disconnect(string $connected_account_id): void
34023370class CustomersClient
34033371{
34043372 private SeamClient $ seam ;
3405- public CustomersReservationsClient $ reservations ;
3373+
34063374 public function __construct (SeamClient $ seam )
34073375 {
34083376 $ this ->seam = $ seam ;
3409- $ this ->reservations = new CustomersReservationsClient ($ seam );
34103377 }
34113378
34123379 public function create_portal (
@@ -3652,36 +3619,6 @@ public function push_data(
36523619 }
36533620}
36543621
3655- class CustomersReservationsClient
3656- {
3657- private SeamClient $ seam ;
3658-
3659- public function __construct (SeamClient $ seam )
3660- {
3661- $ this ->seam = $ seam ;
3662- }
3663-
3664- public function create_deep_link (
3665- string $ customer_key ,
3666- string $ reservation_key ,
3667- ): void {
3668- $ request_payload = [];
3669-
3670- if ($ customer_key !== null ) {
3671- $ request_payload ["customer_key " ] = $ customer_key ;
3672- }
3673- if ($ reservation_key !== null ) {
3674- $ request_payload ["reservation_key " ] = $ reservation_key ;
3675- }
3676-
3677- $ this ->seam ->request (
3678- "POST " ,
3679- "/customers/reservations/create_deep_link " ,
3680- json: (object ) $ request_payload ,
3681- );
3682- }
3683- }
3684-
36853622class DevicesClient
36863623{
36873624 private SeamClient $ seam ;
@@ -4366,6 +4303,43 @@ public function __construct(SeamClient $seam)
43664303 $ this ->simulate = new LocksSimulateClient ($ seam );
43674304 }
43684305
4306+ public function configure_auto_lock (
4307+ bool $ auto_lock_enabled ,
4308+ string $ device_id ,
4309+ ?float $ auto_lock_delay_seconds = null ,
4310+ bool $ wait_for_action_attempt = true ,
4311+ ): ActionAttempt {
4312+ $ request_payload = [];
4313+
4314+ if ($ auto_lock_enabled !== null ) {
4315+ $ request_payload ["auto_lock_enabled " ] = $ auto_lock_enabled ;
4316+ }
4317+ if ($ device_id !== null ) {
4318+ $ request_payload ["device_id " ] = $ device_id ;
4319+ }
4320+ if ($ auto_lock_delay_seconds !== null ) {
4321+ $ request_payload [
4322+ "auto_lock_delay_seconds "
4323+ ] = $ auto_lock_delay_seconds ;
4324+ }
4325+
4326+ $ res = $ this ->seam ->request (
4327+ "POST " ,
4328+ "/locks/configure_auto_lock " ,
4329+ json: (object ) $ request_payload ,
4330+ );
4331+
4332+ if (!$ wait_for_action_attempt ) {
4333+ return ActionAttempt::from_json ($ res ->action_attempt );
4334+ }
4335+
4336+ $ action_attempt = $ this ->seam ->action_attempts ->poll_until_ready (
4337+ $ res ->action_attempt ->action_attempt_id ,
4338+ );
4339+
4340+ return $ action_attempt ;
4341+ }
4342+
43694343 public function get (?string $ device_id = null , ?string $ name = null ): Device
43704344 {
43714345 $ request_payload = [];
0 commit comments