Buchungsprozess: Angebots-Snapshot, atomare Annahme, Auto-Angebot, Kanalfreigabe
Deploy FeWo mit PipelineManager / deploy (push) Failing after 3m38s

- Angebotsbedingungen und Zahlungsdaten werden je Version eingefroren (offer_terms, offer_hash)
- Annahme in einer gesperrten Transaktion, idempotent, mit Nachweis; Mail- und Portalfehler
  machen eine gespeicherte Buchung nicht ungueltig (Postfach, Nachversand)
- Je Wohnung: manuelle/automatische Angebote, optionale Vorreservierung
- Automatische Freigabe abhaengig von aktuellen Importen und Feed-Abruf bei Sofortbuchungsportalen
- Deutsche Fehlerseiten, Buchungsseite zeigt Angebots- und Zustellstatus
- Dokumentation: BOOKING-E2E-*.md, BOOKING-COMPLIANCE-HANDOVER.md

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
LarsandClaude Sonnet 5.5 committed 2026-10-30 12:01:02 +01:00
1 parent e7cc37a15b
commit eafab8a2cb
47 files changed
+2099 -104

No files matched your search

@@ -0,0 +1,32 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Frozen offer terms + integrity hash per offer version, and delivery tracking of the booking confirmation.
* Additive and nullable: existing bookings keep working (NULL = texts are read live, as before).
*/
public function up(): void
{
Schema::table('bookings', function (Blueprint $table) {
$table->json('offer_terms')->nullable()->after('offer_path');
$table->string('offer_hash', 64)->nullable()->after('offer_terms');
$table->timestamp('confirmation_sent_at')->nullable()->after('accepted_at');
$table->timestamp('confirmation_failed_at')->nullable()->after('confirmation_sent_at');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('bookings', function (Blueprint $table) {
$table->dropColumn(['offer_terms', 'offer_hash', 'confirmation_sent_at', 'confirmation_failed_at']);
});
}
};
@@ -0,0 +1,30 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Per property: manual (default) or automatic offers, and whether a request blocks the calendar (pre-reservation).
* The defaults reproduce the behaviour before these settings existed.
*/
public function up(): void
{
Schema::table('properties', function (Blueprint $table) {
$table->string('offer_mode', 10)->default('manual')->after('hold_hours');
$table->boolean('pre_reservation_enabled')->default(true)->after('offer_mode');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('properties', function (Blueprint $table) {
$table->dropColumn(['offer_mode', 'pre_reservation_enabled']);
});
}
};