karrio-geodis 2025.5.6__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.
@@ -54,6 +54,17 @@ def _extract_details(
54
54
  code=event.codeSituationJustification,
55
55
  time=lib.flocaltime(event.heureSuivi),
56
56
  location=event.libelleCentre,
57
+ timestamp=lib.fiso_timestamp(
58
+ lib.text(event.dateSuivi, event.heureSuivi, separator=" ")
59
+ ),
60
+ reason=next(
61
+ (
62
+ r.name
63
+ for r in list(provider_units.TrackingIncidentReason)
64
+ if event.codeSituationJustification in r.value
65
+ ),
66
+ None,
67
+ ),
57
68
  )
58
69
  for event in contenu.listSuivis
59
70
  ],
@@ -180,6 +180,14 @@ LABTEST_RATE_SHEET = [
180
180
  ]
181
181
 
182
182
 
183
+ class TrackingIncidentReason(lib.Enum):
184
+ """Maps Geodis exception codes to normalized TrackingIncidentReason."""
185
+ carrier_damaged_parcel = []
186
+ consignee_refused = []
187
+ consignee_not_home = []
188
+ unknown = []
189
+
190
+
183
191
  DEFAULT_SERVICES = [
184
192
  models.ServiceLevel(
185
193
  service_name="GEODIS Express",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: karrio_geodis
3
- Version: 2025.5.6
3
+ Version: 2025.5.7
4
4
  Summary: Karrio - GEODIS Shipping Extension
5
5
  Author-email: karrio <hello@karrio.io>
6
6
  License-Expression: LGPL-3.0
@@ -5,8 +5,8 @@ karrio/mappers/geodis/settings.py,sha256=rxSFMlzyJ7cpwVj1bqRnckuiRaNdWk8BaDVRMIq
5
5
  karrio/plugins/geodis/__init__.py,sha256=O5KyFBVDwcKyKjZv0-gXKx0JCpckGuWUO4EitBp9m5s,519
6
6
  karrio/providers/geodis/__init__.py,sha256=mORc64CizSQPWZotdDsGc0GQ3_8cf2gPGnd5DEW17jc,316
7
7
  karrio/providers/geodis/error.py,sha256=IiCv6yjI1alxgO6ujfk7GeKdVNoMQFiTWPr0VcuDfzY,840
8
- karrio/providers/geodis/tracking.py,sha256=n9McvuIjc2S_o7LlHzf2yYhU5Yl7jIdZE6u9V-YcY3o,3421
9
- karrio/providers/geodis/units.py,sha256=6yJ-Y7B1GpjN5D62OtpOFsfNy0033Y0NQX1IAL7VNJs,7844
8
+ karrio/providers/geodis/tracking.py,sha256=LguYDLrWIqvPNVKTX6EUJ_wFqqbRU-yM5dQxh-s1bNI,3863
9
+ karrio/providers/geodis/units.py,sha256=OUEoGX2Dsq7er45_yKMWCPPzGV5O9ns0XSdv4XAiXyI,8066
10
10
  karrio/providers/geodis/utils.py,sha256=b9N3NtMWKD8hZ6YUkdAYyIP7u3V7beWN4BP5_Q3O98M,1538
11
11
  karrio/providers/geodis/shipment/__init__.py,sha256=UntO3FIgOv0jZzcp70e-P0d7KSGQ0dQ_oGk22WEHel0,228
12
12
  karrio/providers/geodis/shipment/cancel.py,sha256=8NT1M0Jk8rZF3tJXDC21-Jg1J8asJkC-BUA0N4L2cmE,1201
@@ -19,8 +19,8 @@ karrio/schemas/geodis/shipping_request.py,sha256=hukxIfMyqpClZyF3-zrIS_1lmk5YY8g
19
19
  karrio/schemas/geodis/shipping_response.py,sha256=tEh0aTS7Rd7B73XYuki3eqraOlJlLuSiwle6g9VtIW0,3395
20
20
  karrio/schemas/geodis/tracking_request.py,sha256=drZlCbINrSOOfBgZtIUmotmeJMqs_cqOBFkbwbeFOVQ,181
21
21
  karrio/schemas/geodis/tracking_response.py,sha256=MDtb-SEI6UYCwWtPr808_V931t42SozAc_ejUejS51A,9366
22
- karrio_geodis-2025.5.6.dist-info/METADATA,sha256=0LjjIkAR9L7xFOlfFWNKStmA02c4ohkHhZdYCGPlpg4,981
23
- karrio_geodis-2025.5.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
24
- karrio_geodis-2025.5.6.dist-info/entry_points.txt,sha256=aWuFnvMvXF2TLAPblGwpwH-XWzbCv4FnZDsF41vKyJs,57
25
- karrio_geodis-2025.5.6.dist-info/top_level.txt,sha256=FZCY8Nwft8oEGHdl--xku8P3TrnOxu5dETEU_fWpRSM,20
26
- karrio_geodis-2025.5.6.dist-info/RECORD,,
22
+ karrio_geodis-2025.5.7.dist-info/METADATA,sha256=6FtIlcjuE4W7o35w0MSdUDHyHBW3xKkW83q0DtRHd8c,981
23
+ karrio_geodis-2025.5.7.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
24
+ karrio_geodis-2025.5.7.dist-info/entry_points.txt,sha256=aWuFnvMvXF2TLAPblGwpwH-XWzbCv4FnZDsF41vKyJs,57
25
+ karrio_geodis-2025.5.7.dist-info/top_level.txt,sha256=FZCY8Nwft8oEGHdl--xku8P3TrnOxu5dETEU_fWpRSM,20
26
+ karrio_geodis-2025.5.7.dist-info/RECORD,,