=== RoomWin Bookings ===
Contributors: roomwin
Tags: escape room, booking, reservations, calendar, appointments
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Private-team escape room bookings for one room, with contact verification, staff scheduling and payment at the venue.

== Description ==

RoomWin Bookings connects guest reservations and staff operations on your own WordPress website. Free provides complete booking functionality for one escape room, with no booking subscription or expiry. Third-party messaging providers may charge for their services.

* Private teams, player limits, game duration and reset time.
* Weekday/weekend schedules, date exceptions and technical blocks.
* Base, extra-player, weekend/holiday and special-session prices; optional Prime Time Premium.
* Email OTP or SMS verification before confirmation. Payment is collected at the venue.
* Booking calendar, staff edits, cancellation history and payment/arrival indicators.
* Guest confirmations and reminders; optional Telegram staff alerts.
* Configurable colours, typography, square room artwork and mobile booking flow.
* 25 guest languages, editable guest translations and one currency per venue. The administration interface is currently English.
* Role-based staff access and configurable personal-data retention.

This is a complete single-room booking plugin. It contains no multi-room engine, capacity-unlock hook, disabled paid features or license-key system. RoomWin Pro is a separate plugin in development; Pro code is not included in this package.

= External services and privacy =

No account with RoomWin, registration, telemetry or external license connection is required to run this plugin. External messaging is used only after the venue configures it and enables the relevant verification or notification option. Guest bookings are paused on installation. SMS notifications and Telegram alerts are off by default.

Email OTP and guest email notifications use WordPress wp_mail and your configured hosting/SMTP service. Recipient address, verification code or booking message is handed to that service when requested. Configure authenticated delivery and test your inbox before opening bookings. RoomWin cannot guarantee inbox placement.

Optional Twilio: SMS OTP uses Verify and SMS notifications use Messaging. A configured account receives the guest phone number, language and verification request or notification text when that action is requested. Endpoints: verify.twilio.com and api.twilio.com. Terms: https://www.twilio.com/en-us/legal/tos ; privacy: https://www.twilio.com/en-us/legal/privacy .

Optional SMSAPI: sends SMS codes or booking messages to api.smsapi.com using the venue account. Sends the recipient number, sender name and message text. Terms: https://www.smsapi.com/de/agb ; privacy: https://www.smsapi.com/en/privacy .

Optional Vonage: sends SMS codes or booking messages to rest.nexmo.com using the venue account. Sends the recipient number, sender name and message text. Terms: https://www.vonage.com/legal/communications-apis/terms-of-use/ ; privacy: https://www.vonage.com/legal/privacy-policy/ .

Optional Telegram: configured staff alerts send booking and guest details to the venue's chosen chat via api.telegram.org. Only enable this after deciding which staff may access that chat and informing guests. Terms: https://telegram.org/tos ; privacy: https://telegram.org/privacy .

The venue controls its own booking data and must publish appropriate booking terms and privacy information. Rate-limit keys are stored as keyed hashes, not raw IP addresses. OTP codes are stored as keyed hashes except when Twilio manages verification. Deactivation does not delete bookings, settings or artwork. Back up your database and WordPress salts together: saved provider credentials depend on those salts.

== Installation ==

1. Back up your site. Install this ZIP using Plugins > Add New > Upload Plugin, then activate.
2. Open RoomWin Bookings > Staff access. Keep your existing owner login or choose a staff username, recovery email and password (at least 12 characters). Each person should have a separate account. Then configure your venue, timezone, currency and room.
3. Choose Email code or configure your chosen SMS provider under SMS & connections. Save credentials privately in WordPress. No credentials are included in this package.
4. Set your schedules, prices, artwork, appearance, guest languages and privacy/terms URLs.
5. Add [roomwin_bookings] in a Shortcode block on a public page.
6. Optionally add [roomwin_bookings_admin] to a published staff page (any page name). It provides a branded sign-in form and returns staff to their workspace. HTTPS is required. Assign RoomWin Manager or RoomWin Game Master roles using WordPress Users. Do not give staff administrator access merely to manage bookings.
7. Test a complete booking and delivery on your staging site. Enable guest bookings only when ready.

Activate separately per site; network-wide activation is not supported. Requires MySQL/MariaDB with InnoDB, HTTPS on public installations, working WordPress cron, PHP OpenSSL and outbound HTTPS for configured SMS/Telegram services. Exclude staff-shortcode pages from full-page caching. Reservation and availability endpoints use uncached server responses. Use a real cron runner if your site receives little traffic.

Do not replace an existing multi-room release candidate with this one-room package. It preserves existing data and pauses incompatible operation; restore the original package to resume. Normal one-room updates preserve data. Pro development includes a data-preserving Free upgrade workflow. Use the upgrade instructions supplied with the separate Pro package; do not delete your booking data.

== Email verification test ==

Select Email code in SMS & connections and Save changes. Email OTP Configured confirms the minimum configuration, not inbox delivery. Use Send test OTP by Email in SMS & connections or Venue & languages. The test goes only to your signed-in WordPress administrator email. Enter the six-digit code within ten minutes to confirm receipt. This test creates no booking or Telegram alert and is recommended, not an additional activation requirement. It is limited to three sends per administrator per fifteen minutes and twenty per site per hour; five incorrect code attempts invalidate the test. Standard WordPress mail/SMTP settings apply. The test code cannot sign you in or confirm a reservation.

== Private staff channel setup ==

In SMS & connections, open Private staff channel. Create a bot dedicated to this website with Telegram’s verified BotFather and paste its token. Create a private Telegram channel, add the bot as an administrator, open Manage Messages and enable Post Messages (some Telegram versions show Post Messages directly), save, and post the one-time connection code shown by RoomWin. Choose Find my private channel, send the sample alert, then confirm receipt to enable staff alerts. No manual chat ID or public webhook is needed. Setup expires after 30 minutes; an existing connection stays in place until its replacement is confirmed.

In Notifications, choose What staff receive and save changes. Optional named note fields can be guest-visible or staff-only. New fields are not sent to Telegram until selected. The existing booking note remains available. Removing a field preserves historic values in its bookings. Long alerts are shortened; full notes stay in the booking record.

Setup contacts Telegram to validate the bot, read the matching connection-code channel post, verify privacy/posting permissions and send an explicitly requested sample. Pending tokens are encrypted; unrelated Telegram message contents are not retained. After connection, private-channel status and permission are checked before each alert. A previous manual private-channel connection remains usable after bot identity, privacy and posting rights are checked, but is labelled unverified until setup is completed. Public channels and groups are refused. WordPress data erasure does not remove messages already delivered to Telegram.

Verify actual booking, change and cancellation alerts on your installation, including delivery when the website has little traffic. The test message confirms the Telegram connection; reliable queued alerts also require working WordPress scheduled tasks.

== Frequently Asked Questions ==

= Is Free limited to a number of bookings or days? =
No. It manages one room with full functionality. Safety limits on OTP attempts protect guests and messaging budgets; they are not commercial usage quotas.

= Are online payments included? =
No. Version 1 records bookings for full payment on arrival, with staff payment tracking.

= Is Telegram required? =
No. RoomWin connects directly to a Telegram bot if you configure and enable staff alerts.

= Can I use email instead of paying for SMS? =
Yes. Select Email code and configure reliable WordPress email delivery. The guest must provide that email address. SMS remains optional and incurs provider charges if enabled.

= What happens when I deactivate or remove the plugin? =
Bookings and settings remain in the database to protect your records and future upgrades. Reinstalling reconnects them. Use the WordPress privacy tools and configured retention period to manage personal data before permanent site removal. Keep required business records according to your own obligations.

= How do I go Pro later? =
Continue using Free until Pro is released with its upgrade instructions. Pro development includes same-site continuity and an encrypted transfer workflow for another WordPress site, with preservation of Free data as a requirement. Back up your site and follow the instructions supplied with the released Pro package; do not delete Free or reset your data in preparation.

= How do staff sign in? =
Place [roomwin_bookings_admin] on a published page. Signed-out staff see RoomWin sign-in; authorised staff see the workspace and a Sign out link. Use existing WordPress accounts with RoomWin Manager or RoomWin Game Master roles. No separate RoomWin password or registration is created. Accounts without permission see an access message and cannot read booking data.

Only site administrators can create staff accounts in RoomWin Bookings > Staff access. Manager accounts can manage bookings; Game Masters can only view the schedule. Existing accounts are never overwritten, passwords are hashed by WordPress, and no invitation email is sent automatically. Owners keep their existing administrator credentials for venue and Telegram settings.

Passwords go directly to WordPress's normal login endpoint. WordPress and installed security plugins own password checks, sessions, recovery and additional authentication challenges. More sign-in options opens the native login flow with RoomWin branding for site-specific login widgets, MFA or SSO. Test your actual security plugin: compatibility with every third-party login integration is not guaranteed. RoomWin does not provide its own MFA and does not replace site-wide login protection.

Use HTTPS and exclude the staff page and wp-login.php from page/CDN caching. RoomWin sends private/no-store, noindex and same-origin framing headers on its staff page. Branded forms use a browser-bound nonce and allow at most 20 attempts per IP per 15-minute window; RoomWin also limits core password sign-ins for staff and owner accounts, including direct WordPress sign-in. The host must supply the correct client IP through any trusted proxy. Application passwords and third-party SSO use separate authentication paths; configure and test site-wide MFA and abuse protection. No passwords or raw IP addresses are stored by RoomWin. Do not share staff accounts. RoomWin does not grant extra WordPress permissions or hide the WordPress dashboard.

== Security and privacy ==

Public booking forms, staff data and data transfer require HTTPS. Provider credentials are encrypted with keys derived from this site's WordPress salts; booking records and notification snapshots remain in the WordPress database. Protect hosting access, database and backup storage, keep WordPress and all installed software updated, and use individual staff accounts and site-wide MFA. No plugin can guarantee immunity from attacks or protect data on an already compromised host.

Privacy erasure includes retained notification snapshots from earlier contact details. Anonymized bookings cannot be edited to restore personal details; retention also repairs legacy anonymized records. Already-delivered email, SMS or Telegram messages require separate provider/recipient retention management. Queued notifications respect the current channel/event choices and Telegram field selection.

== Changelog ==

= 1.1.0 =
* Use a single room object throughout booking, availability, configuration and staff/guest interfaces. Remove the multi-room capacity hook and room-selection engine.
* Preserve existing one-room settings, booking records, staff access and artwork. Retain the saved-data envelope for continuity with the separate Pro plugin. Cross-site transfers use the separately supplied transfer companion.
* Correct the Telegram FAQ and SMSAPI terms link; recheck the provider privacy link.
* Keep the existing design themes, Telegram setup, email OTP readiness and security protections.


= 1.0.3 =
* Supersede the unpublished 1.0.2 package with accurate Pro upgrade guidance while final packaging awaits WordPress.org review clarification.
* Retain the reviewed 1.0.2-alpha.10 booking engine and all setup, design, Telegram and security improvements below; only release metadata and documentation change.

= 1.0.2 =
* Prepare the reviewed 1.0.2-alpha.10 code for the RoomWin.io Free release; no booking-engine behavior changes from that candidate.
* Include guided private Telegram staff-channel setup, selectable alert details/custom notes, branded staff sign-in and staff-account setup.
* Include four design presets, responsive staff layout, desktop date-selection improvements and the guest-booking readiness checklist with email OTP testing.
* Include the authentication, HTTPS, notification, OTP and privacy hardening recorded below. Existing bookings, settings and artwork are retained.

= 1.0.2-alpha.10 =
* Harden staff password authentication, public HTTPS requirements, REST body limits and origin validation.
* Keep external OTP verification outside the venue transaction while preserving attempt limits and single confirmation.
* Repair privacy erasure/retention, prevent editing erased bookings, and respect current notification opt-outs.
* Validate every Telegram destination as a private channel with posting rights, including legacy saved connections.


= 1.0.2-alpha.9 =
* Replace Ocean with Retro 80s: navy surfaces, cyan selections and red primary actions, retaining the ocean identifier.
* Keep the ocean preset identifier and four-theme list; select Retro 80s and save to apply its redesigned appearance.
* Remember Retro appearance overrides independently of Horror and preserve other preset styling.


= 1.0.2-alpha.8 =
* Add the cinematic Horror preset with scoped dark surfaces, red action/selected/focus states and system/serif typography.
* Remember explicit Horror appearance overrides across theme changes and saves. Retain existing RoomWin, Ocean and Midnight preset behaviour.
* Legacy non-default additional appearance settings are preserved when first selecting Horror; identical-to-default choices cannot be distinguished from untouched settings.


= 1.0.2-alpha.7 =
* Preserve desktop scroll position and time-panel height when selecting a date; retain mobile progression to times.
* Show Email OTP Configured after saving email verification, and explicitly label unconfigured SMS.
* Add an administrator-only Send test OTP by Email flow with code receipt verification, expiry and rate limits; no booking is created.


= 1.0.2-alpha.6 =
* Add a saved-setup checklist beside the guest-booking switch with green completion checks and actionable missing-item guidance.
* Check verification configuration, visible rooms, opening days, future scheduled sessions and directly embedded published guest pages.
* Keep actual code receipt as a manual delivery test; builder/template embeds may need manual page checking.


= 1.0.2-alpha.5 =
* Move Enable guest bookings into an info box beside the Venue & languages heading, stacking below on narrow screens.
* Explain verification, room availability, the guest page and saving; distinguish saved state from unsaved switch choices.
* Preserve server verification checks, settings, bookings and Telegram connections.


= 1.0.2-alpha.4 =
* Clarify Telegram Manage Messages / Post Messages permissions in the guide and errors.
* Show a prominent green check and SUCCESS after the owner confirms sample receipt.
* Add matching emoji to staff alert lines, including custom notes and multiline text, preserving field selection and guest email/SMS content.


= 1.0.2-alpha.3 =
* Let the signed-in staff shortcode use the theme's wide content area.
* Adapt staff navigation, summary cards and panels to the actual container width, including narrow theme columns on large screens.
* Preserve login, staff permissions, Telegram setup and booking records.


= 1.0.2-alpha.2 =
* Test candidate: branded staff sign-in on the existing admin shortcode, with return to the staff page, account recovery links, access-denied state and sign-out.
* Reuse WordPress authentication and existing staff capabilities; protect branded forms with HTTPS, browser-bound nonces, attempt limits and private response headers.
* Preserve the Telegram setup and booking data from alpha.1.


= 1.0.2-alpha.1 =
* Test candidate: guided private staff-channel connection, bot and posting-permission checks, automatic channel discovery and a sample alert with owner confirmation.
* Select staff alert details and optional named booking notes, with guest-visible or staff-only fields.
* Preserve existing connections until replacement is confirmed and include custom notes in privacy export, erasure and retention.

= 1.0.1 =
* Register the notification interval during activation and repair missing notification schedules.
* Keep WordPress privacy tools available when a multi-room extension is temporarily unavailable.

= 1.0.0 =
* Initial one-room Free release with verified guest bookings, staff scheduling and configurable messaging.
* Prepared for a data-preserving upgrade through a separate Pro add-on.

== Upgrade Notice ==

= 1.1.0 =
Back up your site, replace the existing Free plugin and retain its data. Existing one-room bookings, settings, staff access and artwork are preserved. Keep Pro installations on their separate compatible package.


= 1.0.3 =
Security and setup improvements with clarified Pro upgrade guidance. Back up your site, replace the existing one-room Free plugin and retain its data. Multi-room installations must keep their compatible package.

= 1.0.2 =
Security and setup improvements for one-room Free installations. Back up your site before replacing the installed plugin; do not delete it. Existing data is retained. Multi-room installations must retain their compatible package.

= 1.0.0 =
One-room Free release. Existing multi-room release candidates must retain their original package until the compatible Pro add-on is available.

== Credits ==

RoomWin code, styles, default text/catalogues and included logo are distributed under GPLv2-or-later. Inline SVG icons use Lucide-derived paths (ISC/MIT licenses; see THIRD-PARTY.txt). No external fonts or remote artwork are loaded by this plugin.
