74 lines
2.6 KiB
PHP
74 lines
2.6 KiB
PHP
<?php
|
|
|
|
namespace App\BusProNet;
|
|
|
|
final class Constants
|
|
{
|
|
public const SOURCE_TRAVEL = 'travel';
|
|
public const SOURCE_BOOKING = 'booking';
|
|
|
|
public const CATEGORY_ADDITIONAL = 'additional';
|
|
public const CATEGORY_TRANSPORTATION = 'transportation';
|
|
|
|
public const TOKEN_COURSES = 'KUR';
|
|
public const TOKEN_SKI_PASS = 'SPA';
|
|
public const TOKEN_ADDITIONAL = 'SON';
|
|
public const TOKEN_BOARD = 'VPF';
|
|
public const TOKEN_VEG = 'VEG';
|
|
public const TOKEN_RENTALS = ['VER', 'VE2', 'VE3', 'VE4', 'VE5', 'VE6', 'VE7', 'VE8'];
|
|
public const TOKEN_RENTAL_INSURANCE = 'LVS';
|
|
public const TOKEN_INSURANCES = ['RRV', 'PAK', 'OHN', 'PKG'];
|
|
public const TOKEN_PARKING = 'PAR';
|
|
|
|
// Insurance subtype labels for display
|
|
public const INSURANCE_LABELS = [
|
|
'RRV' => 'Reiserücktrittsversicherung',
|
|
'PAK' => 'Reiseschutz',
|
|
'OHN' => 'Selbstbehalt',
|
|
];
|
|
|
|
// Normalized service group keys for pricing display
|
|
public const GROUP_TRANSPORTATION = 'transportation';
|
|
public const GROUP_RENTALS = 'rentals';
|
|
public const GROUP_INSURANCE = 'insurance';
|
|
|
|
// Service type display labels (German) - used in pricing calculator
|
|
public const SERVICE_LABELS = [
|
|
self::TOKEN_COURSES => 'Kurse',
|
|
self::TOKEN_SKI_PASS => 'Skipässe',
|
|
self::TOKEN_ADDITIONAL => 'Zusatzleistungen',
|
|
self::TOKEN_BOARD => 'Verpflegung',
|
|
self::TOKEN_VEG => 'Verpflegungswunsch',
|
|
self::TOKEN_RENTAL_INSURANCE => 'Leihmaterial-Versicherung',
|
|
self::TOKEN_PARKING => 'Parkplatz',
|
|
self::GROUP_TRANSPORTATION => 'Beförderung',
|
|
self::GROUP_RENTALS => 'Leihmaterial',
|
|
self::GROUP_INSURANCE => 'Reiseversicherungen',
|
|
];
|
|
|
|
public const STATUS_AVAILABLE = 'Frei';
|
|
public const STATUS_BLOCKED = 'Buchungsstop';
|
|
public const STATUS_ON_REQUEST = 'Anfrage';
|
|
|
|
// Booking types for API requests
|
|
public const BOOKING_TYPE_INQUIRY = 'Anfrage';
|
|
public const BOOKING_TYPE_BOOKING = 'Buchung';
|
|
|
|
// Booking status codes from buchungstatusmoeglich attribute
|
|
public const BOOKING_STATUS_FREE = 'F';
|
|
public const BOOKING_STATUS_INQUIRY = 'A';
|
|
public const BOOKING_STATUS_OPEN = 'O'; // Optionsbuchung - not relevant for current implementation
|
|
|
|
// Payment methods
|
|
public const PAYMENT_METHOD_TRANSFER = 'transfer';
|
|
public const PAYMENT_METHOD_DEBIT = 'debit';
|
|
|
|
// Payment type IDs for API
|
|
public const PAYMENT_TYPE_ID_TRANSFER = 2;
|
|
public const PAYMENT_TYPE_ID_DEBIT = 5;
|
|
|
|
// Baby room constraints
|
|
public const BABY_MAX_AGE = 2;
|
|
public const BABY_ROOM_CODE = 'Baby';
|
|
}
|