diff --git a/magento/client.py b/magento/client.py index 99578c1..4d404a6 100644 --- a/magento/client.py +++ b/magento/client.py @@ -607,7 +607,7 @@ def get_orders_items(self, *, sku: Optional[str] = None, query: Query = None, li return self.get_paginated("/V1/orders/items", query=query, limit=limit, **kwargs) - def get_order(self, order_id: str | int, *, + def get_order(self, order_id: Union[str, int], *, none_on_404=False, none_on_empty=False, **kwargs) -> Order: @@ -628,7 +628,7 @@ def get_order_by_increment_id(self, increment_id: str, **kwargs) -> Optional[Ord return order return None - def hold_order(self, order_id: str | int, **kwargs): + def hold_order(self, order_id: Union[str, int], **kwargs): """ Hold an order. This is the opposite of ``unhold_order``. @@ -636,7 +636,7 @@ def hold_order(self, order_id: str | int, **kwargs): """ return self.post_json_api(f"/V1/orders/{escape_path(order_id)}/hold", **kwargs) - def unhold_order(self, order_id: str | int, **kwargs): + def unhold_order(self, order_id: Union[str, int], **kwargs): """ Un-hold an order. This is the opposite of ``hold_order``.