<?php

namespace PostenBringCheckout\admin\bring\models\booking;

defined( 'ABSPATH' ) || exit;

class WebshopBooking {
	public ?string $externalOrderId;
	public MybringBookingRequest $booking;
	public function __construct( ?string $externalOrderId, MybringBookingRequest $booking ) {
		$this->externalOrderId = $externalOrderId;
		$this->booking         = $booking;
	}

	public function toArray() {
		return array(
			'externalOrderId' => $this->externalOrderId,
			'booking'         => $this->booking->toArray(),
		);
	}
}
