<?php

namespace DhlPolska\API\ParcelShop\Struct;

use DhlPolska\API\AuthDataInterface;
use JsonSerializable;

/**
 * GetPnpStructure.
 */
class GetPnpStructure implements JsonSerializable {

	/**
	 * @var AuthDataInterface
	 */
	private AuthDataInterface $auth_data;

	/**
	 * @var string
	 */
	private string $shipment_date;

	/**
	 * GetPnpStructure constructor.
	 *
	 * @param AuthDataInterface $auth_data .
	 * @param string            $shipment_date .
	 */
	public function __construct( AuthDataInterface $auth_data, string $shipment_date ) {
		$this->auth_data     = $auth_data;
		$this->shipment_date = $shipment_date;
	}

	/**
	 * @return array
	 */
	public function jsonSerialize(): array {
		return [
			'authData'     => $this->auth_data,
			'shipmentDate' => $this->shipment_date,
		];
	}
}
