<?php

namespace PostenBringCheckout\admin\bring\models\booking;

defined( 'ABSPATH' ) || exit;

class CustomsInformation {
	public bool $consent = true;
	public ?string $type;
	public CustomsNatureOfCargo $natureOfCargo;
	public array $customsDeclarations;
	public ?string $voec = null;
	public ?string $ioss = null;

	public function __construct( array $customsDeclarations, ?string $type = null, string $natureOfCargoType = 'SALE_OF_GOODS' ) {
		$this->natureOfCargo = new CustomsNatureOfCargo( $natureOfCargoType );
		$this->type = $type;
		$this->customsDeclarations = $customsDeclarations;
	}
}
