|
2 | 2 |
|
3 | 3 | import static com.github.binarywang.wxpay.constant.WxPayConstants.QUERY_COMMENT_DATE_FORMAT; |
4 | 4 | import static com.github.binarywang.wxpay.constant.WxPayConstants.TarType; |
5 | | - |
| 5 | +import com.github.binarywang.wxpay.bean.coupon.*; |
| 6 | +import com.github.binarywang.wxpay.bean.notify.*; |
| 7 | +import com.github.binarywang.wxpay.bean.request.*; |
| 8 | +import com.github.binarywang.wxpay.bean.result.*; |
| 9 | +import com.github.binarywang.wxpay.service.*; |
| 10 | +import java.util.*; |
| 11 | +import com.github.binarywang.wxpay.bean.result.enums.GlobalTradeTypeEnum; |
| 12 | +import com.github.binarywang.wxpay.bean.result.enums.TradeTypeEnum; |
6 | 13 | import com.github.binarywang.utils.qrcode.QrcodeUtils; |
7 | 14 | import com.github.binarywang.wxpay.bean.WxPayApiData; |
8 | | -import com.github.binarywang.wxpay.bean.coupon.WxPayCouponInfoQueryRequest; |
9 | | -import com.github.binarywang.wxpay.bean.coupon.WxPayCouponInfoQueryResult; |
10 | | -import com.github.binarywang.wxpay.bean.coupon.WxPayCouponSendRequest; |
11 | | -import com.github.binarywang.wxpay.bean.coupon.WxPayCouponSendResult; |
12 | | -import com.github.binarywang.wxpay.bean.coupon.WxPayCouponStockQueryRequest; |
13 | | -import com.github.binarywang.wxpay.bean.coupon.WxPayCouponStockQueryResult; |
14 | | -import com.github.binarywang.wxpay.bean.notify.CombineNotifyResult; |
15 | | -import com.github.binarywang.wxpay.bean.notify.ComplaintNotifyResult; |
16 | | -import com.github.binarywang.wxpay.bean.notify.OriginNotifyResponse; |
17 | | -import com.github.binarywang.wxpay.bean.notify.SignatureHeader; |
18 | | -import com.github.binarywang.wxpay.bean.notify.WxPayBaseNotifyV3Result; |
19 | | -import com.github.binarywang.wxpay.bean.notify.WxPayNotifyV3Result; |
20 | | -import com.github.binarywang.wxpay.bean.notify.WxPayOrderNotifyResult; |
21 | | -import com.github.binarywang.wxpay.bean.notify.WxPayPartnerNotifyV3Result; |
22 | | -import com.github.binarywang.wxpay.bean.notify.WxPayPartnerRefundNotifyV3Result; |
23 | | -import com.github.binarywang.wxpay.bean.notify.WxPayRefundNotifyResult; |
24 | | -import com.github.binarywang.wxpay.bean.notify.WxPayRefundNotifyV3Result; |
25 | | -import com.github.binarywang.wxpay.bean.notify.WxPayTransferBatchesNotifyV3Result; |
26 | | -import com.github.binarywang.wxpay.bean.notify.WxScanPayNotifyResult; |
27 | 15 | import com.github.binarywang.wxpay.bean.order.WxPayAppOrderResult; |
28 | 16 | import com.github.binarywang.wxpay.bean.order.WxPayMpOrderResult; |
29 | 17 | import com.github.binarywang.wxpay.bean.order.WxPayMwebOrderResult; |
30 | 18 | import com.github.binarywang.wxpay.bean.order.WxPayNativeOrderResult; |
31 | | -import com.github.binarywang.wxpay.bean.request.CombineCloseRequest; |
32 | | -import com.github.binarywang.wxpay.bean.request.CombineTransactionsRequest; |
33 | | -import com.github.binarywang.wxpay.bean.request.WxPayApplyFundFlowBillV3Request; |
34 | | -import com.github.binarywang.wxpay.bean.request.WxPayApplyTradeBillV3Request; |
35 | | -import com.github.binarywang.wxpay.bean.request.WxPayAuthcode2OpenidRequest; |
36 | | -import com.github.binarywang.wxpay.bean.request.WxPayCodepayRequest; |
37 | | -import com.github.binarywang.wxpay.bean.request.WxPayDefaultRequest; |
38 | | -import com.github.binarywang.wxpay.bean.request.WxPayDownloadBillRequest; |
39 | | -import com.github.binarywang.wxpay.bean.request.WxPayDownloadFundFlowRequest; |
40 | | -import com.github.binarywang.wxpay.bean.request.WxPayFaceAuthInfoRequest; |
41 | | -import com.github.binarywang.wxpay.bean.request.WxPayFacepayRequest; |
42 | | -import com.github.binarywang.wxpay.bean.request.WxPayMicropayRequest; |
43 | | -import com.github.binarywang.wxpay.bean.request.WxPayOrderCloseRequest; |
44 | | -import com.github.binarywang.wxpay.bean.request.WxPayOrderCloseV3Request; |
45 | | -import com.github.binarywang.wxpay.bean.request.WxPayOrderQueryRequest; |
46 | | -import com.github.binarywang.wxpay.bean.request.WxPayOrderQueryV3Request; |
47 | | -import com.github.binarywang.wxpay.bean.request.WxPayOrderReverseRequest; |
48 | | -import com.github.binarywang.wxpay.bean.request.WxPayOrderReverseV3Request; |
49 | | -import com.github.binarywang.wxpay.bean.request.WxPayPartnerOrderCloseV3Request; |
50 | | -import com.github.binarywang.wxpay.bean.request.WxPayPartnerOrderQueryV3Request; |
51 | | -import com.github.binarywang.wxpay.bean.request.WxPayPartnerRefundV3Request; |
52 | | -import com.github.binarywang.wxpay.bean.request.WxPayPartnerUnifiedOrderV3Request; |
53 | | -import com.github.binarywang.wxpay.bean.request.WxPayQueryCommentRequest; |
54 | | -import com.github.binarywang.wxpay.bean.request.WxPayQueryExchangeRateRequest; |
55 | | -import com.github.binarywang.wxpay.bean.request.WxPayRefundQueryRequest; |
56 | | -import com.github.binarywang.wxpay.bean.request.WxPayRefundQueryV3Request; |
57 | | -import com.github.binarywang.wxpay.bean.request.WxPayRefundRequest; |
58 | | -import com.github.binarywang.wxpay.bean.request.WxPayRefundV3Request; |
59 | | -import com.github.binarywang.wxpay.bean.request.WxPayReportRequest; |
60 | | -import com.github.binarywang.wxpay.bean.request.WxPayShorturlRequest; |
61 | | -import com.github.binarywang.wxpay.bean.request.WxPayUnifiedOrderRequest; |
62 | | -import com.github.binarywang.wxpay.bean.request.WxPayUnifiedOrderV3GlobalRequest; |
63 | | -import com.github.binarywang.wxpay.bean.request.WxPayUnifiedOrderV3Request; |
64 | | -import com.github.binarywang.wxpay.bean.result.BaseWxPayResult; |
65 | | -import com.github.binarywang.wxpay.bean.result.CombineQueryResult; |
66 | | -import com.github.binarywang.wxpay.bean.result.CombineTransactionsResult; |
67 | | -import com.github.binarywang.wxpay.bean.result.WxPayApplyBillV3Result; |
68 | | -import com.github.binarywang.wxpay.bean.result.WxPayAuthcode2OpenidResult; |
69 | | -import com.github.binarywang.wxpay.bean.result.WxPayBillResult; |
70 | | -import com.github.binarywang.wxpay.bean.result.WxPayCodepayResult; |
71 | | -import com.github.binarywang.wxpay.bean.result.WxPayCommonResult; |
72 | | -import com.github.binarywang.wxpay.bean.result.WxPayFaceAuthInfoResult; |
73 | | -import com.github.binarywang.wxpay.bean.result.WxPayFacepayResult; |
74 | | -import com.github.binarywang.wxpay.bean.result.WxPayFundFlowBaseResult; |
75 | | -import com.github.binarywang.wxpay.bean.result.WxPayFundFlowResult; |
76 | | -import com.github.binarywang.wxpay.bean.result.WxPayMicropayResult; |
77 | | -import com.github.binarywang.wxpay.bean.result.WxPayOrderCloseResult; |
78 | | -import com.github.binarywang.wxpay.bean.result.WxPayOrderQueryResult; |
79 | | -import com.github.binarywang.wxpay.bean.result.WxPayOrderQueryV3Result; |
80 | | -import com.github.binarywang.wxpay.bean.result.WxPayOrderReverseResult; |
81 | | -import com.github.binarywang.wxpay.bean.result.WxPayOrderReverseV3Result; |
82 | | -import com.github.binarywang.wxpay.bean.result.WxPayPartnerOrderQueryV3Result; |
83 | | -import com.github.binarywang.wxpay.bean.result.WxPayQueryExchangeRateResult; |
84 | | -import com.github.binarywang.wxpay.bean.result.WxPayRefundQueryResult; |
85 | | -import com.github.binarywang.wxpay.bean.result.WxPayRefundQueryV3Result; |
86 | | -import com.github.binarywang.wxpay.bean.result.WxPayRefundResult; |
87 | | -import com.github.binarywang.wxpay.bean.result.WxPayRefundV3Result; |
88 | | -import com.github.binarywang.wxpay.bean.result.WxPaySandboxSignKeyResult; |
89 | | -import com.github.binarywang.wxpay.bean.result.WxPayShorturlResult; |
90 | | -import com.github.binarywang.wxpay.bean.result.WxPayUnifiedOrderResult; |
91 | | -import com.github.binarywang.wxpay.bean.result.WxPayUnifiedOrderV3Result; |
92 | | -import com.github.binarywang.wxpay.bean.result.enums.GlobalTradeTypeEnum; |
93 | | -import com.github.binarywang.wxpay.bean.result.enums.TradeTypeEnum; |
94 | 19 | import com.github.binarywang.wxpay.bean.transfer.TransferBillsNotifyResult; |
95 | 20 | import com.github.binarywang.wxpay.config.WxPayConfig; |
96 | 21 | import com.github.binarywang.wxpay.config.WxPayConfigHolder; |
97 | 22 | import com.github.binarywang.wxpay.constant.WxPayConstants.SignType; |
98 | 23 | import com.github.binarywang.wxpay.constant.WxPayConstants.TradeType; |
99 | 24 | import com.github.binarywang.wxpay.exception.WxPayException; |
100 | 25 | import com.github.binarywang.wxpay.exception.WxSignTestException; |
101 | | -import com.github.binarywang.wxpay.service.BankService; |
102 | | -import com.github.binarywang.wxpay.service.BrandMerchantTransferService; |
103 | | -import com.github.binarywang.wxpay.service.BusinessCircleService; |
104 | | -import com.github.binarywang.wxpay.service.BusinessOperationTransferService; |
105 | | -import com.github.binarywang.wxpay.service.ComplaintService; |
106 | | -import com.github.binarywang.wxpay.service.EcommerceService; |
107 | | -import com.github.binarywang.wxpay.service.EntPayService; |
108 | | -import com.github.binarywang.wxpay.service.MarketingBusiFavorService; |
109 | | -import com.github.binarywang.wxpay.service.MarketingFavorService; |
110 | | -import com.github.binarywang.wxpay.service.MarketingMediaService; |
111 | | -import com.github.binarywang.wxpay.service.MerchantMediaService; |
112 | | -import com.github.binarywang.wxpay.service.MerchantTransferService; |
113 | | -import com.github.binarywang.wxpay.service.MiPayService; |
114 | | -import com.github.binarywang.wxpay.service.PartnerPayScoreService; |
115 | | -import com.github.binarywang.wxpay.service.PartnerPayScoreSignPlanService; |
116 | | -import com.github.binarywang.wxpay.service.PartnerTransferService; |
117 | | -import com.github.binarywang.wxpay.service.PayScoreService; |
118 | | -import com.github.binarywang.wxpay.service.PayrollService; |
119 | | -import com.github.binarywang.wxpay.service.ProfitSharingService; |
120 | | -import com.github.binarywang.wxpay.service.RedpackService; |
121 | | -import com.github.binarywang.wxpay.service.SubscriptionBillingService; |
122 | | -import com.github.binarywang.wxpay.service.TransferService; |
123 | | -import com.github.binarywang.wxpay.service.WxDepositService; |
124 | | -import com.github.binarywang.wxpay.service.WxEntrustPapService; |
125 | | -import com.github.binarywang.wxpay.service.WxPayService; |
126 | 26 | import com.github.binarywang.wxpay.util.SignUtils; |
127 | 27 | import com.github.binarywang.wxpay.util.XmlConfig; |
128 | 28 | import com.github.binarywang.wxpay.util.ZipUtils; |
|
140 | 40 | import java.nio.file.Path; |
141 | 41 | import java.nio.file.Paths; |
142 | 42 | import java.security.GeneralSecurityException; |
143 | | -import java.util.Date; |
144 | | -import java.util.HashMap; |
145 | | -import java.util.LinkedList; |
146 | | -import java.util.List; |
147 | | -import java.util.Map; |
148 | | -import java.util.Objects; |
149 | 43 | import java.util.concurrent.ConcurrentHashMap; |
150 | 44 | import java.util.zip.ZipException; |
151 | 45 | import lombok.Getter; |
|
0 commit comments