karrio-veho 2025.5.5__py3-none-any.whl → 2025.5.7__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- karrio/providers/veho/tracking.py +19 -0
- karrio/providers/veho/units.py +8 -0
- {karrio_veho-2025.5.5.dist-info → karrio_veho-2025.5.7.dist-info}/METADATA +1 -1
- {karrio_veho-2025.5.5.dist-info → karrio_veho-2025.5.7.dist-info}/RECORD +7 -7
- {karrio_veho-2025.5.5.dist-info → karrio_veho-2025.5.7.dist-info}/WHEEL +0 -0
- {karrio_veho-2025.5.5.dist-info → karrio_veho-2025.5.7.dist-info}/entry_points.txt +0 -0
- {karrio_veho-2025.5.5.dist-info → karrio_veho-2025.5.7.dist-info}/top_level.txt +0 -0
|
@@ -80,6 +80,25 @@ def _extract_details(
|
|
|
80
80
|
code=event["code"],
|
|
81
81
|
time=event["time"], # Keep original time format
|
|
82
82
|
location=event["location"],
|
|
83
|
+
timestamp=lib.fiso_timestamp(
|
|
84
|
+
lib.text(event["date"], event["time"], separator=" ")
|
|
85
|
+
),
|
|
86
|
+
status=next(
|
|
87
|
+
(
|
|
88
|
+
s.name
|
|
89
|
+
for s in list(provider_units.TrackingStatus)
|
|
90
|
+
if event["code"] in s.value
|
|
91
|
+
),
|
|
92
|
+
None,
|
|
93
|
+
),
|
|
94
|
+
reason=next(
|
|
95
|
+
(
|
|
96
|
+
r.name
|
|
97
|
+
for r in list(provider_units.TrackingIncidentReason)
|
|
98
|
+
if event["code"] in r.value
|
|
99
|
+
),
|
|
100
|
+
None,
|
|
101
|
+
),
|
|
83
102
|
)
|
|
84
103
|
for event in events
|
|
85
104
|
],
|
karrio/providers/veho/units.py
CHANGED
|
@@ -59,6 +59,14 @@ class TrackingStatus(lib.Enum):
|
|
|
59
59
|
ready_for_pickup = ["ready_for_pickup"]
|
|
60
60
|
|
|
61
61
|
|
|
62
|
+
class TrackingIncidentReason(lib.Enum):
|
|
63
|
+
"""Maps Veho exception codes to normalized TrackingIncidentReason."""
|
|
64
|
+
carrier_damaged_parcel = []
|
|
65
|
+
consignee_refused = []
|
|
66
|
+
consignee_not_home = []
|
|
67
|
+
unknown = []
|
|
68
|
+
|
|
69
|
+
|
|
62
70
|
def is_ground_plus(service: str) -> bool:
|
|
63
71
|
"""Check if the service is Veho Ground Plus"""
|
|
64
72
|
return service == ShippingService.veho_ground_plus
|
|
@@ -6,8 +6,8 @@ karrio/plugins/veho/__init__.py,sha256=RRknnfI33kj91j93PTuP9rgLer-hF1d-_dlzTZo01
|
|
|
6
6
|
karrio/providers/veho/__init__.py,sha256=gDjr_Di_oloZNxMnq563-Vte1JeKiCBWmQNbG6GGvBM,431
|
|
7
7
|
karrio/providers/veho/error.py,sha256=k37spCUZcscb__4RYJIt4JvvSbGwcQTdhvgfHzFLzQw,890
|
|
8
8
|
karrio/providers/veho/rate.py,sha256=6iQQ8C4ONJstEhI1iEi-FnzY9txVRw6_sbbu5NBwKEw,3726
|
|
9
|
-
karrio/providers/veho/tracking.py,sha256=
|
|
10
|
-
karrio/providers/veho/units.py,sha256=
|
|
9
|
+
karrio/providers/veho/tracking.py,sha256=nYs7-lZPLsYohbHf-59AcNg14ZaqDJ9J_DFc7iT6Cio,4254
|
|
10
|
+
karrio/providers/veho/units.py,sha256=LkR4PQDOIPSW8jnL1DX6b0wSajyQQOUt51pI-G4ZWs4,2380
|
|
11
11
|
karrio/providers/veho/utils.py,sha256=_ImpPTYs5zar-Oz1WJzNxePju6ownDtSN2l_h5UtDqc,1132
|
|
12
12
|
karrio/providers/veho/shipment/__init__.py,sha256=pKpTtzzW6Sd89yTKFgWom1F3mUjU8s6zmxZUJF2gwUE,225
|
|
13
13
|
karrio/providers/veho/shipment/cancel.py,sha256=E78xzQGinexuaSjYVJAd87R5M451eyDKSKObCNyJ3sE,2667
|
|
@@ -22,8 +22,8 @@ karrio/schemas/veho/shipment_request.py,sha256=EwC2yMq-8w1dg593vYxvoEvqbrlB38ROx
|
|
|
22
22
|
karrio/schemas/veho/shipment_response.py,sha256=io3jpTNda_nAxuFKm_XxYQUSj4ua8zNhEKLgl7DB43w,686
|
|
23
23
|
karrio/schemas/veho/tracking_request.py,sha256=eX9thHKgCqwaA_hkfAGwglaaP6-HInJjsVG00XfixSw,189
|
|
24
24
|
karrio/schemas/veho/tracking_response.py,sha256=Ye-NApoMoDEdHm4OZqFq0Xq_B2iWz5dcfFt43lmMbEA,853
|
|
25
|
-
karrio_veho-2025.5.
|
|
26
|
-
karrio_veho-2025.5.
|
|
27
|
-
karrio_veho-2025.5.
|
|
28
|
-
karrio_veho-2025.5.
|
|
29
|
-
karrio_veho-2025.5.
|
|
25
|
+
karrio_veho-2025.5.7.dist-info/METADATA,sha256=4Z-vQTTj0ztpT7O3TKa8zkd0KOGBgr5RUoSd0Q23rYA,966
|
|
26
|
+
karrio_veho-2025.5.7.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
27
|
+
karrio_veho-2025.5.7.dist-info/entry_points.txt,sha256=-YsnLb5kpt9m6HNHbHh5MAvYVFJulu_CAO0fiHm5FQM,53
|
|
28
|
+
karrio_veho-2025.5.7.dist-info/top_level.txt,sha256=FZCY8Nwft8oEGHdl--xku8P3TrnOxu5dETEU_fWpRSM,20
|
|
29
|
+
karrio_veho-2025.5.7.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|