Skip to content

Commit

Permalink
feat: add monday/saturday to consignment extra options (#341)
Browse files Browse the repository at this point in the history
  • Loading branch information
EdieLemoine committed Nov 17, 2021
1 parent ccc59f9 commit 3a99a99
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Model/Consignment/AbstractConsignment.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,10 @@ abstract class AbstractConsignment
public const SHIPMENT_OPTION_RETURN = 'return';
public const SHIPMENT_OPTION_SIGNATURE = 'signature';

public const EXTRA_OPTION_DELIVERY_DATE = 'delivery_date';
public const EXTRA_OPTION_MULTI_COLLO = 'multi_collo';
public const EXTRA_OPTION_DELIVERY_DATE = 'delivery_date';
public const EXTRA_OPTION_DELIVERY_MONDAY = 'delivery_monday';
public const EXTRA_OPTION_DELIVERY_SATURDAY = 'delivery_saturday';
public const EXTRA_OPTION_MULTI_COLLO = 'multi_collo';

/**
* Consignment types.
Expand Down
1 change: 1 addition & 0 deletions src/Model/Consignment/BpostConsignment.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ public function getLocalCountryCode(): string
public function getAllowedExtraOptions(): array
{
return [
self::EXTRA_OPTION_DELIVERY_SATURDAY,
self::EXTRA_OPTION_MULTI_COLLO,
];
}
Expand Down
1 change: 1 addition & 0 deletions src/Model/Consignment/PostNLConsignment.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ public function getAllowedExtraOptions(): array
{
return [
self::EXTRA_OPTION_DELIVERY_DATE,
self::EXTRA_OPTION_DELIVERY_MONDAY,
self::EXTRA_OPTION_MULTI_COLLO,
];
}
Expand Down

0 comments on commit 3a99a99

Please sign in to comment.