<?php
/**
 * Class ReturnItemToPrint
 *
 * @package DhlPolska\API\WebApi\Struct
 */

namespace DhlPolska\API\WebApi\Struct;

use JsonSerializable;

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

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

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

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

	/**
	 * ReturnItemToPrint constructor.
	 *
	 * @param string $shipment_id
	 * @param string $waybill
	 * @param string $label_type
	 */
	public function __construct( string $shipment_id, string $waybill, string $label_type ) {
		$this->shipment_id = $shipment_id;
		$this->waybill     = $waybill;
		$this->label_type  = $label_type;
	}

	/**
	 * @return array
	 */
	public function jsonSerialize(): array {
		return [
			'labelType'  => $this->label_type,
			'shipmentId' => $this->shipment_id,
			'wayBill'    => $this->waybill,
		];
	}
}
