Skip to content

Commit

Permalink
fix(interface/lockers): add a allocation id
Browse files Browse the repository at this point in the history
to help with syncing
  • Loading branch information
stakach committed Feb 3, 2025
1 parent 2904c9d commit d836430
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion shard.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: placeos-driver
version: 7.3.3
version: 7.3.4

dependencies:
action-controller:
Expand Down
4 changes: 4 additions & 0 deletions src/placeos-driver/interface/lockers.cr
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ abstract class PlaceOS::Driver
# is the current locker allocated
property? allocated : Bool?

# an indicator that can be synced with PlaceOS bookings
# could be the locker system user id or a booking id
property allocation_id : String | Int64? = nil

# when the locker is released if known / enabled in the locker system
@[JSON::Field(converter: Time::EpochConverter, type: "integer", format: "Int64")]
property expires_at : Time? = nil
Expand Down

0 comments on commit d836430

Please sign in to comment.