U-D/U-E/O5: Prozess-Tester im eigenen Prozess (standardmäßig gesperrt, 15 Negativtests, statischer Wächter), Szenarien und Bericht, Kanalereignisse (API-Eingang ohne Umbau von iCal/Mail), Abschluss nach finanzieller Klärung, Löschfrist 30 Tage
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
c255783cec
commit
0689c0a591
68 files changed
+3350
-35
No files matched your search
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
namespace App\Channels\Events;
|
||||
|
||||
use App\Models\Channel;
|
||||
use Carbon\CarbonImmutable;
|
||||
|
||||
/**
|
||||
* Where a channel event came from (docs/Prozessarchitektur/Architektur/02 §8.2): channel, transport and whether its
|
||||
* origin is technically authenticated (a signed webhook, an API call with credentials). It says nothing about whether a
|
||||
* business action really happened – that is evidence, which only the landlord or a checked receipt provides (M3).
|
||||
*/
|
||||
final readonly class Provenance
|
||||
{
|
||||
public const AUTHENTICATED = 'authenticated';
|
||||
|
||||
public const UNAUTHENTICATED = 'unauthenticated';
|
||||
|
||||
public function __construct(
|
||||
public Channel $channel,
|
||||
public string $transport,
|
||||
public string $authenticity,
|
||||
public ?string $externalReference,
|
||||
public string $evidenceRef,
|
||||
public CarbonImmutable $receivedAt,
|
||||
) {}
|
||||
|
||||
public function isAuthenticated(): bool
|
||||
{
|
||||
return $this->authenticity === self::AUTHENTICATED;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user