wip: insurance booking

This commit is contained in:
Björn Fromme committed 2025-09-29 19:54:20 +02:00
1 parent 0809f07d46
commit 90ae78262a
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;
}
}