WxPayService.java 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. package com.kym.service.wechat;
  2. import com.alibaba.fastjson2.JSONObject;
  3. import com.kym.entity.miniapp.Invoice;
  4. import com.kym.entity.wechat.*;
  5. import com.wechat.pay.java.service.payments.jsapi.model.PrepayWithRequestPaymentResponse;
  6. import com.wechat.pay.java.service.refund.model.Refund;
  7. import jakarta.servlet.http.HttpServletRequest;
  8. import lombok.SneakyThrows;
  9. import org.springframework.http.ResponseEntity;
  10. import java.io.IOException;
  11. import java.util.Map;
  12. /**
  13. * @author skyline
  14. * @description
  15. * @date 2023-08-11 19:05
  16. */
  17. public interface WxPayService {
  18. void applyWxRefund(String reason);
  19. void wxRefund(long refundLogId);
  20. Refund queryByOutRefundNo(String outRefundNo);
  21. @SneakyThrows
  22. ResponseEntity<Object> wxRefundNotify(HttpServletRequest request);
  23. PrepayWithRequestPaymentResponse wxPay(JSONObject rechargeAmount);
  24. ResponseEntity<Object> wxNotify(HttpServletRequest request) throws IOException;
  25. Object devConfig();
  26. void cardTemplate();
  27. Object getDevConfig();
  28. //================================================================发票=====================================================================
  29. TitleUrl titleUrl(Invoice invoice);
  30. void titleWriteNotice(Object[] notifyRes);
  31. FaPiao.BuyerInformation userTitle(String applyId);
  32. InvoiceBaseInfo baseInformation();
  33. void fapiaoApplication(String invoiceId);
  34. void wxInvoiceNotify(Object[] notifyRes);
  35. void invoiceNotify(HttpServletRequest request);
  36. Map<String, String> downloadInvoice(String invoiceId);
  37. FapiaoDownload getFapiaoDownloadInfo(String applyId);
  38. FapiaoApplications queryFapiao(String applyId);
  39. }