OrderDonService.java 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. package com.cyksj.service.order;
  2. import com.alipay.api.AlipayApiException;
  3. import com.alipay.api.response.AlipayFundTransCommonQueryResponse;
  4. import com.alipay.api.response.AlipayTradeFastpayRefundQueryResponse;
  5. import com.alipay.api.response.AlipayTradeQueryResponse;
  6. import com.baomidou.mybatisplus.extension.service.IService;
  7. import com.cyksj.model.dto.AliPayParams;
  8. import com.cyksj.model.dto.H5JsPayParams;
  9. import com.cyksj.model.entity.*;
  10. import com.cyksj.model.manage.views.UpgradeOrderDetailView;
  11. import com.cyksj.model.request.AlipayOrderDonReq;
  12. import com.cyksj.model.request.OrderPayRequest;
  13. import java.util.Date;
  14. import java.util.List;
  15. import java.util.Map;
  16. /**
  17. * @author chan
  18. * @date 2021/10/11 下午4:07
  19. */
  20. public interface OrderDonService extends IService<OrderDon> {
  21. OrderDon submit(OrderPayRequest request) throws Exception;
  22. /**
  23. * 订单支付
  24. */
  25. H5JsPayParams pay(Long orderId, String tradeType) throws Exception;
  26. /**
  27. * 微信pc端支付
  28. */
  29. H5JsPayParams wxPcWebPay(Long orderId, String tradeType) throws Exception;
  30. /**
  31. * 微信支付回调
  32. */
  33. void prepayNotify(Map<String, String> map) throws Exception;
  34. /**
  35. * 关闭订单
  36. */
  37. void closeOrder(Long orderId, Long userId);
  38. OrderDon renewal(OrderPayRequest request) throws Exception;
  39. OrderDetailView getDetail(Long orderId, Long userId);
  40. List<OrderDon> getAppleOneOrderDons(List<Long> skuIds, List<String> noOrderStatus, Date yesZeroDate, Date thisZeroDate);
  41. /**
  42. * 支付宝预支付
  43. */
  44. AliPayParams aliPay(AlipayOrderDonReq alipayOrderDonReq, String productCode, String qrPayMode) throws Exception;
  45. /**
  46. * 支付宝回调
  47. */
  48. void aliPayNotify(Map<String, String> paramsMap) throws Exception;
  49. List<RealGoodsInterestUser> selectNoPaymentRealGoods();
  50. Integer updateHasPaymentInterestRealGoods();
  51. void updateHasPaymentInterestRealGoodsPayTime();
  52. void saveTransport(Long addressId, Long orderId);
  53. /**
  54. * 查询支付宝转账状态
  55. */
  56. AlipayFundTransCommonQueryResponse getTransFerStatusByTid(String translationId) throws Exception;
  57. /**
  58. * 支付宝订单详情
  59. */
  60. AlipayTradeQueryResponse getZfbOrderDetail(String shopId, String orderNo) throws AlipayApiException;
  61. /**
  62. * 支付宝退款订单详情
  63. */
  64. AlipayTradeFastpayRefundQueryResponse getZfbRefundDetail(String shopId, String orderNo) throws AlipayApiException;
  65. /**
  66. * 0元订单确认
  67. */
  68. void zeroOrderConfirm(Long orderId);
  69. void zeroUpgradeOrderConfirm(Long orderId);
  70. void orderNotify(OrderDon orderDon);
  71. UpgradeOrderDon submitUpgrade(OrderPayRequest payRequest);
  72. AliPayParams aliPayUpgrade(AlipayOrderDonReq re, String productCode, String qrPayMode) throws Exception;
  73. void aliPayUpgradeNotify(Map<String, String> params) throws Exception;
  74. void closeUpgradeOrder(Long orderId, Long userId);
  75. UpgradeOrderDetailView getUpgradeOrderDetail(Long orderId, Long userId);
  76. OrderDon submitRenewUpgrade(OrderPayRequest payRequest);
  77. OrderDon userBenefitsSubmit(OrderPayRequest orderPayRequest) throws Exception;
  78. UserPayEquipmentAvailableBenefits getComboOptionalTicketRecord(long userId, Long orderId);
  79. AliPayParams aliPaySpotifyUpgrade(AlipayOrderDonReq alipayOrderDonReq, String productCode, String qrPayMode) throws Exception;
  80. void aliPaySpotifyUpgradeNotify(Map<String, String> params) throws Exception;
  81. void receiveGptMirrorDayCard(Long orderId) throws Exception;
  82. OrderDon ccDeductSubmitOrder(OrderPayRequest payRequest);
  83. }