From 83ddc62c9df67043b83e40412ca518f15a295027 Mon Sep 17 00:00:00 2001 From: tomas-novotny Date: Thu, 4 Apr 2024 09:43:25 +0200 Subject: [PATCH] Add ZASILKOVNA services --- CHANGELOG.md | 8 +++- README.md | 2 +- composer.json | 4 +- src/Definitions/Service.php | 80 +++++++++++++++++++++---------------- 4 files changed, 56 insertions(+), 38 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a8326ee..8a21aa6 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,13 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). -## [Unreleased](https://github.com/inspirum/balikobot-php/compare/v7.7.0...master) +## [Unreleased](https://github.com/inspirum/balikobot-php/compare/v7.8.0...master) + + +## [v7.8.0 (2024-04-04)](https://github.com/inspirum/balikobot-php/compare/v7.7.0...v7.8.0) +### Added +- Added **ZASILKOVNA_HU_POST_PP** service type +- Added **ZASILKOVNA_HU_POST_BOX** service type ## [v7.7.0 (2023-12-27)](https://github.com/inspirum/balikobot-php/compare/v7.6.1...v7.7.0) diff --git a/README.md b/README.md index 374d865..f21f7c5 100755 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ [![Total Downloads][ico-packagist-download]][link-packagist-download] [![Software License][ico-license]][link-licence] -Offers implementation of Balikobot API [v2][link-api-v2-upgrade] described in the official [documentation][link-api-v2] until **v1.990** *(2023-11-30)*. +Offers implementation of Balikobot API [v2][link-api-v2-upgrade] described in the official [documentation][link-api-v2] until **v1.996** *(2024-03-05)*. > If you want to use older API [v1][link-api], please use [`^4.0`](https://github.com/inspirum/balikobot-php/tree/v4.5.0) version. diff --git a/composer.json b/composer.json index 51e131b..384692f 100755 --- a/composer.json +++ b/composer.json @@ -26,8 +26,8 @@ "require-dev": { "inspirum/coding-standard": "^1.4", "phpstan/phpstan": "^1.10", - "phpunit/phpunit": "^10.4", - "squizlabs/php_codesniffer": "^3.7" + "phpunit/phpunit": "^10.5", + "squizlabs/php_codesniffer": "^3.9" }, "autoload": { "psr-4": { diff --git a/src/Definitions/Service.php b/src/Definitions/Service.php index 183cb57..28a0a92 100644 --- a/src/Definitions/Service.php +++ b/src/Definitions/Service.php @@ -851,6 +851,16 @@ final class Service extends BaseEnum */ public const ZASILKOVNA_HU_POST_HD = '763'; + /** + * Maďarská pošta PP + */ + public const ZASILKOVNA_HU_POST_PP = '4539'; + + /** + * Maďarská pošta Box + */ + public const ZASILKOVNA_HU_POST_BOX = '29760'; + /** * HU Fáma Futár HD */ @@ -2110,41 +2120,41 @@ public static function getForCarrier(string $carrier): ?array private static function getForCarriers(): array { return [ - Carrier::CP => self::cp(), - Carrier::DPD => self::dpd(), - Carrier::DHL => self::dhl(), - Carrier::GEIS => self::geis(), - Carrier::GLS => self::gls(), - Carrier::INTIME => self::intime(), - Carrier::PBH => self::pbh(), - Carrier::PPL => self::ppl(), - Carrier::SP => self::sp(), - Carrier::SPS => self::sps(), - Carrier::TOPTRANS => self::topTrans(), - Carrier::ULOZENKA => self::ulozenka(), - Carrier::UPS => self::ups(), - Carrier::ZASILKOVNA => self::zasilkovna(), - Carrier::TNT => self::tnt(), - Carrier::GW => self::gw(), - Carrier::GWCZ => self::gwcz(), - Carrier::MESSENGER => self::messenger(), - Carrier::DHLDE => self::dhlde(), - Carrier::FEDEX => self::fedex(), - Carrier::FOFR => self::fofr(), - Carrier::DACHSER => self::dachser(), - Carrier::DHLPARCEL => self::dhlparcel(), - Carrier::RABEN => self::raben(), - Carrier::SPRING => self::spring(), - Carrier::DSV => self::dsv(), + Carrier::CP => self::cp(), + Carrier::DPD => self::dpd(), + Carrier::DHL => self::dhl(), + Carrier::GEIS => self::geis(), + Carrier::GLS => self::gls(), + Carrier::INTIME => self::intime(), + Carrier::PBH => self::pbh(), + Carrier::PPL => self::ppl(), + Carrier::SP => self::sp(), + Carrier::SPS => self::sps(), + Carrier::TOPTRANS => self::topTrans(), + Carrier::ULOZENKA => self::ulozenka(), + Carrier::UPS => self::ups(), + Carrier::ZASILKOVNA => self::zasilkovna(), + Carrier::TNT => self::tnt(), + Carrier::GW => self::gw(), + Carrier::GWCZ => self::gwcz(), + Carrier::MESSENGER => self::messenger(), + Carrier::DHLDE => self::dhlde(), + Carrier::FEDEX => self::fedex(), + Carrier::FOFR => self::fofr(), + Carrier::DACHSER => self::dachser(), + Carrier::DHLPARCEL => self::dhlparcel(), + Carrier::RABEN => self::raben(), + Carrier::SPRING => self::spring(), + Carrier::DSV => self::dsv(), Carrier::DHLFREIGHTEC => self::dhlfreightec(), - Carrier::KURIER => self::kurier(), - Carrier::DBSCHENKER => self::dbschenker(), - Carrier::AIRWAY => self::airway(), - Carrier::JAPO => self::japo(), - Carrier::LIFTAGO => self::liftago(), - Carrier::MAGYARPOSTA => self::magyarposta(), - Carrier::SAMEDAY => self::sameday(), - Carrier::SDS => self::sds(), + Carrier::KURIER => self::kurier(), + Carrier::DBSCHENKER => self::dbschenker(), + Carrier::AIRWAY => self::airway(), + Carrier::JAPO => self::japo(), + Carrier::LIFTAGO => self::liftago(), + Carrier::MAGYARPOSTA => self::magyarposta(), + Carrier::SAMEDAY => self::sameday(), + Carrier::SDS => self::sds(), ]; } @@ -2454,6 +2464,8 @@ private static function zasilkovna(): array self::ZASILKOVNA_HU_DPD_HD, self::ZASILKOVNA_HU_COURIER_HD, self::ZASILKOVNA_HU_POST_HD, + self::ZASILKOVNA_HU_POST_PP, + self::ZASILKOVNA_HU_POST_BOX, // self::ZASILKOVNA_HU_FAMA_FUTAR_HD, self::ZASILKOVNA_CH_POST_PRIORITY_HD, self::ZASILKOVNA_CH_POST_HD,