020 update city code resolving

This commit is contained in:
Раис Юсупалиев
2026-03-21 10:03:46 +03:00
parent c4175121a0
commit 163f379a65
14 changed files with 45939 additions and 271 deletions
+4 -2
View File
@@ -2,7 +2,7 @@
from abc import ABC, abstractmethod
from app.schemas.request import DeliveryRequest
from app.schemas.request import DeliveryCalculationRequest
from app.schemas.response import DeliveryPrice
@@ -10,7 +10,9 @@ class DeliveryProvider(ABC):
name: str
@abstractmethod
async def get_prices(self, request: DeliveryRequest) -> list[DeliveryPrice]:
async def get_prices(
self, request: DeliveryCalculationRequest
) -> list[DeliveryPrice]:
"""Fetch provider tariffs for a delivery request."""
raise NotImplementedError