Skip to content

Commit

Permalink
Add ZASILKOVNA services
Browse files Browse the repository at this point in the history
  • Loading branch information
tomas-novotny committed Apr 4, 2024
1 parent 36fc2e8 commit 83ddc62
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 38 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
80 changes: 46 additions & 34 deletions src/Definitions/Service.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down Expand Up @@ -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(),
];
}

Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 83ddc62

Please sign in to comment.