public SearchPaymentResponse searchPayment(SearchPaymentRequest request) {
   SearchPaymentResponse searchPaymentResponse = new SearchPaymentResponse();
   List<Payment> paymentInfoList =
       paymentDao.getPaymentsInfo(
           request.getPaymentId(),
           Assembler.convertToStatus(request.getPaymentStatus()),
           request.getMerchantId());
   ArrayList<PaymentInfo> paymentInfos = new ArrayList<>();
   if (paymentInfoList != null) {
     for (Payment payment : paymentInfoList) {
       paymentInfos.add(Assembler.convertToPaymentInfo(payment));
     }
   }
   searchPaymentResponse.setPaymentInfos(paymentInfos);
   return searchPaymentResponse;
 }
 public SearchDiscountResponse searchDiscount(SearchDiscountRequest request) {
   List<Discount> discounts =
       discountDao.find(
           request.getDiscountFrom(),
           request.getDistanceLessThan(),
           request.getGroupName(),
           request.getMerchantName(),
           request.getTags());
   return Assembler.convertToDiscountResponse(discounts, request);
 }