This commit is contained in:
@@ -22,7 +22,7 @@ from app.schemas.payment import (
|
||||
InitPaymentResponse,
|
||||
TBankPaymentNotification,
|
||||
)
|
||||
from app.schemas.request import AddressSuggestRequest, DeliveryCalculationRequest
|
||||
from app.schemas.request import DeliveryCalculationRequest, SuggestAddressRequest
|
||||
from app.schemas.response import AddressSuggestion, DeliveryPrice
|
||||
from app.services.aggregator import (
|
||||
AddressSuggestionsUnavailableError,
|
||||
@@ -149,12 +149,11 @@ async def get_delivery_price(
|
||||
response_model=list[AddressSuggestion],
|
||||
)
|
||||
async def suggest_addresses(
|
||||
address_request: AddressSuggestRequest,
|
||||
address_request: SuggestAddressRequest,
|
||||
service: AggregatorService = Depends(get_aggregator_service),
|
||||
) -> list[AddressSuggestion]:
|
||||
logger.info(
|
||||
"suggest_address_requested",
|
||||
country_code=address_request.country_code,
|
||||
city=address_request.city,
|
||||
query=address_request.query,
|
||||
limit=address_request.limit,
|
||||
|
||||
Reference in New Issue
Block a user