karrio-allied-express 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.
@@ -67,6 +67,26 @@ def _extract_details(
67
67
  result.statusBarcodesList.scannnedTimestamp,
68
68
  "%Y-%m-%dT%H:%M:%S.%f%z",
69
69
  ),
70
+ timestamp=lib.fiso_timestamp(
71
+ result.statusBarcodesList.scannnedTimestamp,
72
+ current_format="%Y-%m-%dT%H:%M:%S.%f%z",
73
+ ),
74
+ status=next(
75
+ (
76
+ s.name
77
+ for s in list(provider_units.TrackingStatus)
78
+ if result.statusBarcodesList.scannedBarcode in s.value
79
+ ),
80
+ None,
81
+ ),
82
+ reason=next(
83
+ (
84
+ r.name
85
+ for r in list(provider_units.TrackingIncidentReason)
86
+ if result.statusBarcodesList.scannedBarcode in r.value
87
+ ),
88
+ None,
89
+ ),
70
90
  )
71
91
  ],
72
92
  status=status,
@@ -63,3 +63,11 @@ class TrackingStatus(lib.Enum):
63
63
  delivery_delayed = ["RETURN TO DEPOT", "CARD LEFT", "LEFT IN DEPOT"]
64
64
  out_for_delivery = ["It's on board with driver"]
65
65
  ready_for_pickup = ["IN AGENT"]
66
+
67
+
68
+ class TrackingIncidentReason(lib.Enum):
69
+ """Maps Allied Express exception codes to normalized TrackingIncidentReason."""
70
+ carrier_damaged_parcel = ["DAMAGED"]
71
+ consignee_refused = []
72
+ consignee_not_home = ["CARD LEFT"]
73
+ unknown = []
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: karrio_allied_express
3
- Version: 2025.5.6
3
+ Version: 2025.5.7
4
4
  Summary: Karrio - Allied Express Shipping Extension
5
5
  Author-email: karrio <hello@karrio.io>
6
6
  License-Expression: LGPL-3.0
@@ -6,8 +6,8 @@ karrio/plugins/allied_express/__init__.py,sha256=kZKqmVG4Mgqgd1H4DPNftyA1_6Mr3bP
6
6
  karrio/providers/allied_express/__init__.py,sha256=ZaBspoVXxTttEzcQgBwlzW8AiXkwISJcb9AMA1kLnpc,424
7
7
  karrio/providers/allied_express/error.py,sha256=8AmPzB1LSRVq4OGoLgD9EkGJRZ5YxuGTvhcVn_waL8E,896
8
8
  karrio/providers/allied_express/rate.py,sha256=WIyuI6ITD4aRKdPnZcekuGwUNFxYZEsbKunnD2N7e8g,5430
9
- karrio/providers/allied_express/tracking.py,sha256=CZ0hy24MBg2CUFwkjE7OEt198E5MjxIIBhnnKqWe_Bc,2852
10
- karrio/providers/allied_express/units.py,sha256=7q0pXy6dlqOujnYeWskpNpULxypESKafcCuqDDKW-7U,1679
9
+ karrio/providers/allied_express/tracking.py,sha256=CGm0Y4NtHtK-mBYB4KLfwa8HcoNVn9un7laaSpdwX10,3647
10
+ karrio/providers/allied_express/units.py,sha256=tw8YSYjUR0LL7zqS0svQlCBq1ZCvpTNzSCKTq8EYsC0,1929
11
11
  karrio/providers/allied_express/utils.py,sha256=qWPrFRagbw_YT_iBGhiz8mL5VibKcUXLo8hT3npnq-w,4170
12
12
  karrio/providers/allied_express/shipment/__init__.py,sha256=I66Y4E1sezhvF0ZmVTh2Tw1xj2xGpBnSdanYceaGdHg,245
13
13
  karrio/providers/allied_express/shipment/cancel.py,sha256=UJ1sI4FxW0p11lLxdYX-8O53HwMoPj3z-Y4IRIaB_bI,1429
@@ -21,8 +21,8 @@ karrio/schemas/allied_express/tracking_request.py,sha256=JKZYhlhzo8f9e8TVcBg9jdd
21
21
  karrio/schemas/allied_express/tracking_response.py,sha256=dFxS-U4LxUW2IjaThfDxsoH5R9RJFe7qFYz6w1EEi1w,1010
22
22
  karrio/schemas/allied_express/void_request.py,sha256=UEWq6f-WVtNtiZOwEaeSYMs6XuuDmAKs6tIcjIvPPxA,181
23
23
  karrio/schemas/allied_express/void_response.py,sha256=ldHlbqsb-TsfSwBBXiXis6Blpx97fZ1VZn0jqYANR-c,801
24
- karrio_allied_express-2025.5.6.dist-info/METADATA,sha256=X2LC2mKdGUUEYXt8vUHxDy0rsDWK4V1NLnp-uy5p0IQ,1045
25
- karrio_allied_express-2025.5.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
26
- karrio_allied_express-2025.5.6.dist-info/entry_points.txt,sha256=kyxJtJulN0JYgZMTnWl1sIpiT2l_g7TNMlPu8w68w7Q,73
27
- karrio_allied_express-2025.5.6.dist-info/top_level.txt,sha256=FZCY8Nwft8oEGHdl--xku8P3TrnOxu5dETEU_fWpRSM,20
28
- karrio_allied_express-2025.5.6.dist-info/RECORD,,
24
+ karrio_allied_express-2025.5.7.dist-info/METADATA,sha256=Qz6730hSoNziOmLLVrkxfAXLQa9pc_5-Z1Z-rjl8MiU,1045
25
+ karrio_allied_express-2025.5.7.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
26
+ karrio_allied_express-2025.5.7.dist-info/entry_points.txt,sha256=kyxJtJulN0JYgZMTnWl1sIpiT2l_g7TNMlPu8w68w7Q,73
27
+ karrio_allied_express-2025.5.7.dist-info/top_level.txt,sha256=FZCY8Nwft8oEGHdl--xku8P3TrnOxu5dETEU_fWpRSM,20
28
+ karrio_allied_express-2025.5.7.dist-info/RECORD,,