feat: add rub quote

This commit is contained in:
2026-05-14 21:53:20 +03:00
parent 6130188a4f
commit 366bdc9515
7 changed files with 136 additions and 17 deletions

View File

@@ -39,6 +39,18 @@ class GetPaymentQuoteCommand:
return quote
class GetPaymentQuoteFromRubCommand:
def __init__(self, *, payment_quote_service: PaymentQuoteService, logger: ILogger):
self._payment_quote_service = payment_quote_service
self._logger = logger
async def __call__(self, total_rub: Decimal) -> PaymentQuote:
quote = await self._payment_quote_service.get_quote_from_total_rub(total_rub)
self._logger.info({'event':'payment_quote_from_rub_requested','total_rub':str(total_rub)})
return quote
class ListOrdersCommand:
def __init__(self, *, unit_of_work: IUnitOfWork, logger: ILogger):
self._unit_of_work = unit_of_work