Skip to content

Commit

Permalink
Update to support Balikobot API v1.990 - Add SDS carrier
Browse files Browse the repository at this point in the history
  • Loading branch information
tomas-novotny committed Dec 2, 2023
1 parent d614219 commit 5cf12c5
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/Definitions/Carrier.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,4 +175,9 @@ final class Carrier extends BaseEnum
* Sameday
*/
public const SAMEDAY = 'sameday';

/**
* Sameday
*/
public const SDS = 'sds';
}
16 changes: 15 additions & 1 deletion src/Definitions/Service.php
Original file line number Diff line number Diff line change
Expand Up @@ -2037,10 +2037,15 @@ final class Service extends BaseEnum
public const SAMEDAY_LOCKER_NEXT_DAY = '15';

/**
* "Locker Return
* Locker Return
*/
public const SAMEDAY_LOCKER_RETURN = '24';

/**
* SDS Standard
*/
public const SDS_STANDART = 'Standard';

/**
* @return array<string>|null
*/
Expand Down Expand Up @@ -2089,6 +2094,7 @@ private static function getForCarriers(): array
Carrier::LIFTAGO => self::liftago(),
Carrier::MAGYARPOSTA => self::magyarposta(),
Carrier::SAMEDAY => self::sameday(),
Carrier::SDS => self::sds(),
];
}

Expand Down Expand Up @@ -2734,4 +2740,12 @@ private static function sameday(): array
self::SAMEDAY_LOCKER_RETURN,
];
}

/** @return array<string> */
private static function sds(): array
{
return [
self::SDS_STANDART,
];
}
}

0 comments on commit 5cf12c5

Please sign in to comment.