feat: add rub quote
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user