<?php

namespace DhlPolskaVendor\Octolize\DhlPolska\API\WebApi\Struct;

use JsonSerializable;
/**
 * ItemToPrint structure.
 */
class ItemToPrint implements JsonSerializable
{
    /**
     * @var string
     */
    private string $label_type;
    /**
     * @var int
     */
    private int $shipment_id;
    /**
     * ItemToPrint constructor.
     *
     * @param int    $shipment_id
     * @param string $label_type
     */
    public function __construct(int $shipment_id, string $label_type)
    {
        $this->shipment_id = $shipment_id;
        $this->label_type = $label_type;
    }
    /**
     * @return array
     */
    public function jsonSerialize(): array
    {
        return ['labelType' => $this->label_type, 'shipmentId' => $this->shipment_id];
    }
}
