=== WooCommerce QuickRelease Connector ===
Contributors: upconsulting
Tags: woocommerce, quickrelease, balloon, booking, flights
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.1
WC requires at least: 8.9
WC tested up to: 9.4
Stable tag: 1.1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Connects a WooCommerce shop to the QuickRelease balloon-flight API. A single configurable
build for any operator — country, language, currency and theme agnostic.

== Description ==

* Imports QuickRelease flights as WooCommerce products on a schedule (Action Scheduler).
* Maps QR tags to price/category and regions to category + featured image.
* Captures passenger details at checkout (classic **and** block checkout).
* Pushes bookings to QuickRelease on configurable order statuses, with retries and failure handling.
* Optional gift-voucher sale (create_voucher) and voucher redemption (get_voucher) at checkout.
* Optional admin order panel and manual assign/detach of a booking to a flight.
* HPOS-compatible, TLS-verified HTTP, redacted logging (no PII in public files).
* Diagnostics shared with Quick Release (on by default, can be switched off): a daily heartbeat
  and short, redacted error reports, so a broken connection is spotted early.
* Optional Sentry error forwarding (set a DSN; dependency-free, PII-redacted, non-blocking).

Supports 13 of the 14 QuickRelease public endpoints. `create_flight` is intentionally not
included — operators create flights in QuickRelease itself.

== Configuration ==

WordPress admin → QuickRelease. Fill in the API base URL, API key and tenant/company ID, then
use "Test connection". Configure import, checkout, booking push, vouchers and advanced options
on their tabs. One WordPress site connects to one QuickRelease tenant.

== Privacy ==

Passenger and contact data are sent only to QuickRelease, to create the booking.

With "Share diagnostics with Quick Release" switched on (Advanced tab, default on), the plugin
also sends QuickRelease:
* once a day, and when the plugin is activated or its settings are saved: the plugin,
  WordPress, WooCommerce and PHP versions, the site's host name, the number of imported flight
  products, which features are switched on, and the time of the last import, the last booking
  push and the last error code;
* when an API call or a scheduled job fails: the job (import, booking push, voucher, ...), an
  error code and a short error message with e-mail addresses, phone numbers, IDs, codes and keys
  removed. At most 10 per hour; the same error at most once per hour.

It never sends customer, passenger or order data. Diagnostics use the API key you configured and
are delivered in the background, so they never slow down the shop or the checkout. Untick the
option to stop all diagnostics.

== Changelog ==

= 1.1.0 =
* New: "Share diagnostics with Quick Release" (Advanced tab, on by default). A daily heartbeat
  and rate-limited, redacted error reports are sent to Quick Release in the background, so a
  broken connection can be spotted before it costs a booking. No customer data; see Privacy.
* Older QuickRelease API gateways that do not know diagnostics yet simply ignore them.

= 1.0.1 =
* Fix: saving one settings tab (e.g. Booking push) no longer reverts the fields on another tab
  (e.g. Advanced) to their defaults. Each tab now only updates its own fields.

= 1.0.0 =
* Full rebuild of the wc_quickrelease v0.9 proof-of-concept. WPML now optional, HPOS + Block
  Checkout support, WordPress HTTP API with TLS verification, redacted WC logging, full
  configurability, and complete API coverage (except create_flight).
