mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-12-26 14:40:29 +01:00
34 lines
838 B
PHP
34 lines
838 B
PHP
<?php
|
|
|
|
/*
|
|
* SPDX-FileCopyrightText: 2022 Andreas Palm
|
|
*
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
|
|
namespace Xentral\Carrier\Dhl\Data;
|
|
|
|
use DateTimeImmutable;
|
|
|
|
class ShipmentDetails
|
|
{
|
|
public string $product;
|
|
public string $accountNumber;
|
|
public string $customerReference;
|
|
private string $shipmentDate;
|
|
public string $costCentre;
|
|
public string $returnShipmentAccountNumber;
|
|
public string $returnShipmentReference;
|
|
public ShipmentItem $ShipmentItem;
|
|
public ShipmentService $Service;
|
|
public ShipmentNotification $Notification;
|
|
public Bank $BankData;
|
|
|
|
public function SetShipmentDate(DateTimeImmutable $date): void {
|
|
$this->shipmentDate = $date->format('Y-m-d');
|
|
}
|
|
|
|
public function GetShipmentDate(): DateTimeImmutable {
|
|
return DateTimeImmutable::createFromFormat('Y-m-d', $this->shipmentDate);
|
|
}
|
|
} |