<?php

namespace Alsendo\AlsendoWrapper\Api\Ecolet\Model\Order;

use Alsendo\AlsendoWrapper\Api\Ecolet\Model\Parcel;
use Alsendo\AlsendoWrapper\Model\Contact;
use Alsendo\AlsendoWrapper\Model\Request;

/**
 * This class represents an order request in the Ecolet system.
 *
 * @package Alsendo\AlsendoWrapper\Api\Ecolet\Model\Order
 */
class EcoletOrderRequest extends Request
{
    /**
     * @var Contact The sender's contact information.
     */
    public Contact $sender;

    /**
     * @var Contact The receiver's contact information.
     */
    public Contact $receiver;

    /**
     * @var Parcel The parcel details associated with the order.
     */
    public Parcel $parcel;

    /**
     * @var array|null A list of additional services requested for the order.
     */
    public ?array $additionalServices;

    /**
     * @var Courier The courier responsible for delivering the order.
     */
    public Courier $courier;
    /**
     * @var array|null A list of parcels associated with the order.
     */
    public ?array$parcels;

    // fix Ecolet source.
    public string $source;
}