Skip to content

Add Omnitec Support #1

Open
abrahampo1 wants to merge 2 commits intocommitsun:mainfrom
Tu-buen-camino:main
Open

Add Omnitec Support #1
abrahampo1 wants to merge 2 commits intocommitsun:mainfrom
Tu-buen-camino:main

Conversation

@abrahampo1
Copy link
Copy Markdown

Summary

  • Implement OmnitecProvider using the OsAccess API (osaccess-backend.osaccess.net/api) for PMS-level lock management:
    • create_code: passcodes with time windows (dateTimeCheckin / dateTimeCheckout)
    • invalidate_code: booking cancellation via PUT /Reservas/{id}/onlineCancel (idempotent)
    • modify_code: direct modification via bookId, with create+delete fallback
    • test_connection: auth verification via headers (instance + apikey)
  • 22 unit tests for roomdoo-locks-omnitec: auth headers, create/invalidate/modify flows, fallback strategy, error mapping (401/403/404/5xx with retries)
  • 22 unit tests for roomdoo-locks-base: UTC validation, time range ordering, CodeResult immutability, exception hierarchy

Rewrite OmnitecProvider to use OsAccess API instead of Rent&Pass.
OsAccess natively supports time-bounded passcodes, booking cancellation,
and modification via bookId, resolving all gaps from the Rent&Pass API.
Tests for time range validation (UTC enforcement, ordering),
CodeResult immutability and masked repr, and exception hierarchy.
@abrahampo1 abrahampo1 changed the title Add Omnitel Support Add Omnitec Support Mar 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant