public FastPayment GetFastPayment(Order order, FastPaymentDTO paymentDto)
 {
     return(new FastPayment
     {
         Amount = order.OrderSum,
         CreationDate = paymentDto.CreationDate,
         Order = order,
         Ticket = paymentDto.Ticket,
         QRPngBase64 = paymentDto.QRPngBase64,
         ExternalId = paymentDto.ExternalId,
         FastPaymentGuid = paymentDto.FastPaymentGuid,
         FastPaymentPayType = paymentDto.FastPaymentPayType
     });
 }
        private void CacheData(
            OrderRegistrationResponseDTO orderRegistrationResponseDto,
            int orderId,
            DateTime creationDate,
            Guid fastPaymentGuid,
            FastPaymentPayType payType)
        {
            var fastPaymentDTO = new FastPaymentDTO
            {
                OrderId            = orderId,
                CreationDate       = creationDate,
                Ticket             = orderRegistrationResponseDto.Ticket,
                QRPngBase64        = orderRegistrationResponseDto.QRPngBase64,
                ExternalId         = orderId,
                FastPaymentGuid    = fastPaymentGuid,
                FastPaymentPayType = payType
            };

            _fastPaymentFileCache.WritePaymentCache(fastPaymentDTO);
        }