Skip to content

Commit

Permalink
feat: allow package type mailbox for dpd (#475)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark-Ernst authored Apr 11, 2024
1 parent 57bfd3b commit a1326a3
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/Model/Consignment/DPDConsignment.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down

0 comments on commit a1326a3

Please sign in to comment.