diff --git a/CHANGES.md b/CHANGES.md index 2915f19..6d42a9a 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -6,6 +6,10 @@ Olza Logistic's Pickup Point API Client PHP library. # Changelog +* dev + * Added `PickupPointType` class with type consts. + + * v1.3.2 (2023-11-28) * `PickupPoint` class now implements exposes and `getType()` method. diff --git a/src/PickupPointType.php b/src/PickupPointType.php new file mode 100644 index 0000000..a2bcabc --- /dev/null +++ b/src/PickupPointType.php @@ -0,0 +1,37 @@ + + * @copyright 2024 DevelArt + * @license http://www.opensource.org/licenses/mit-license.php MIT + * @link https://github.com/develart-projects/pickup-points-api-client/ + */ + +namespace OlzaLogistic\PpApi\Client; + +/** + * Pickup Point types + */ +class PickupPointType +{ + /** Parcel Terminal, parcel locker */ + public const LOCKER = 'locker'; + + /** Post office */ + public const POST = 'post'; + + /** Point (pickup point, parcel shop, branch) */ + public const POINT = 'point'; + + /* ****************************************************************************************** */ + + public const ALL_TYPES = [ + self::LOCKER, + self::POINT, + self::POST, + ]; + +} // end of class