wip: continue implementation
This commit is contained in:
@@ -16,6 +16,7 @@ class Booking
|
||||
public ?int $travelId = null;
|
||||
public ?string $travelCode = null;
|
||||
public ?\DateTimeImmutable $travelDate = null;
|
||||
public ?Travel $travelData = null;
|
||||
public ?int $hotelId = null;
|
||||
public ?string $hotelName = null;
|
||||
public ?bool $document = null;
|
||||
|
||||
@@ -7,6 +7,7 @@ class Communication
|
||||
public ?string $phone = null;
|
||||
public ?string $mobile = null;
|
||||
public ?string $email = null;
|
||||
public bool $newsletter = false;
|
||||
|
||||
public function toPayload(): array
|
||||
{
|
||||
@@ -14,6 +15,7 @@ class Communication
|
||||
'email' => $this->email,
|
||||
'telefonmobil' => $this->mobile,
|
||||
'telefonprivat' => $this->phone,
|
||||
'newsletter' => $this->newsletter ? 'True' : 'False',
|
||||
];
|
||||
}
|
||||
}
|
||||
@@ -8,10 +8,13 @@ class PersonalData
|
||||
{
|
||||
public ?int $addressId = null;
|
||||
public ?int $personId = null;
|
||||
|
||||
#[Assert\NotBlank(message: 'Bitte angeben')]
|
||||
public ?string $name = null;
|
||||
|
||||
#[Assert\NotBlank(message: 'Bitte angeben')]
|
||||
public ?string $firstName = null;
|
||||
|
||||
public ?string $salutation = null;
|
||||
public ?string $title = null;
|
||||
public ?string $gender = null;
|
||||
@@ -20,8 +23,10 @@ class PersonalData
|
||||
public ?string $shoeSize = null;
|
||||
public ?string $weight = null;
|
||||
public ?\DateTimeImmutable $dateOfBirth = null;
|
||||
|
||||
#[Assert\Valid()]
|
||||
public ?Address $address = null;
|
||||
|
||||
#[Assert\Valid()]
|
||||
public ?Communication $communication = null;
|
||||
|
||||
|
||||
@@ -4,6 +4,9 @@ namespace App\BusProNet\Model;
|
||||
|
||||
class Service
|
||||
{
|
||||
public const SOURCE_TRAVEL = 'travel';
|
||||
public const SOURCE_BOOKING = 'booking';
|
||||
|
||||
public const CATEGORY_ADDITIONAL = 'additional';
|
||||
public const CATEGORY_TRANSPORTATION = 'transportation';
|
||||
|
||||
@@ -14,6 +17,7 @@ class Service
|
||||
public const TOKEN_RENTALS = ['VER', 'VE2', 'VE3', 'VE4', 'VE5', 'VE6', 'VE7', 'VE8'];
|
||||
|
||||
public ?int $id = null;
|
||||
public ?string $source = null;
|
||||
public ?string $category = null;
|
||||
public ?string $status = null;
|
||||
public bool $mandatory = false;
|
||||
|
||||
Reference in New Issue
Block a user