<?php
/**
 * Class DeleteShipment
 *
 * @package DhlPolska\API\ParcelShop\Method
 */

namespace DhlPolska\API\ParcelShop\Method;

use DhlPolska\API\AuthDataInterface;
use JsonSerializable;

/**
 * DeleteShipment structure.
 */
class DeleteShipment implements JsonSerializable {

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

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

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

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