courier library

Courier helpers: courier statuses in one vocabulary, and city names as couriers and customers write them. No courier API is called.

Same as the pakdatakit/courier entry point of the npm package.

Enums

Courier
Couriers that mapCourierStatus knows about.
CourierStatus
A courier's status in one vocabulary, from order to delivery or return.

Functions

mapCourierStatus(String courier, Object? raw) → CourierStatus?
Maps a courier's own status (its name, numeric ID or code, as the courier documents it) to a CourierStatus.
normalizeCityForCourier(String input) → String?
Maps the way a customer or a courier writes a city to the city's name in pakdatakit's city list, so orders can be matched against a courier's service list.