From a1326a3cb6241226b45c9835ace7ef32ae325e12 Mon Sep 17 00:00:00 2001 From: Mark Ernst <33826576+Mark-Ernst@users.noreply.github.com> Date: Thu, 11 Apr 2024 12:59:32 +0200 Subject: [PATCH] feat: allow package type mailbox for dpd (#475) --- src/Model/Consignment/DPDConsignment.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/Model/Consignment/DPDConsignment.php b/src/Model/Consignment/DPDConsignment.php index dc7308a1..683b6bd3 100644 --- a/src/Model/Consignment/DPDConsignment.php +++ b/src/Model/Consignment/DPDConsignment.php @@ -46,6 +46,17 @@ class DPDConsignment extends AbstractConsignment */ protected $validatorClass = DPDConsignmentValidator::class; + /** + * @return string[] + */ + public function getAllowedPackageTypes(): array + { + return [ + self::PACKAGE_TYPE_PACKAGE_NAME, + self::PACKAGE_TYPE_MAILBOX_NAME, + ]; + } + /** * @param array $consignmentEncoded *