wip: insurance booking

This commit is contained in:
Björn Fromme committed 2026-03-16 11:59:10 +01:00
1 parent 8af7f0e797
commit 4ba81b8f03
19 files changed
+807 -128

No files matched your search

+19
View File
@@ -91,4 +91,23 @@ class Insurance
*/
#[Groups(['api:single', 'api:list'])]
public array $containedInsuranceIds = [];
public function __toString(): string
{
return (string) $this->id;
}
/**
* Returns the subType, with virtual 'PKG' subType for insurance packages.
*
* @return string|null The subType (RRV, PAK, OHN, PKG) or null
*/
public function getSubType(): ?string
{
if (true === $this->package) {
return 'PKG'; // Virtual subType for all insurance packages
}
return $this->subType;
}
}