Skip to content

Commit

Permalink
feat: add international bbp
Browse files Browse the repository at this point in the history
  • Loading branch information
joerivanveen committed Mar 12, 2024
1 parent f9e82cf commit de8af39
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Model/Consignment/PostNLConsignment.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,13 @@ public function getAllowedExtraOptions(): array
*/
public function getAllowedPackageTypes(): array
{
$cc = $this->getCountry() ?? $this->getLocalCountryCode();
if ($cc !== $this->getLocalCountryCode()) {
return [
self::PACKAGE_TYPE_PACKAGE_NAME,
self::PACKAGE_TYPE_MAILBOX_NAME,
];
}
return [
self::PACKAGE_TYPE_PACKAGE_NAME,
self::PACKAGE_TYPE_MAILBOX_NAME,
Expand Down

0 comments on commit de8af39

Please sign in to comment.