| | |
| | | package com.ruoyi.shop.util; |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.github.binarywang.wxpay.bean.ecommerce.ApplymentsRequest; |
| | | import com.github.binarywang.wxpay.bean.ecommerce.ApplymentsResult; |
| | | import com.github.binarywang.wxpay.bean.ecommerce.ApplymentsStatusResult; |
| | | import com.github.binarywang.wxpay.bean.ecommerce.*; |
| | | import com.github.binarywang.wxpay.bean.media.ImageUploadResult; |
| | | import com.github.binarywang.wxpay.bean.profitsharingV3.ProfitSharingReceiver; |
| | | import com.github.binarywang.wxpay.exception.WxPayException; |
| | | import com.github.binarywang.wxpay.service.EcommerceService; |
| | | import com.github.binarywang.wxpay.service.MerchantMediaService; |
| | |
| | | return wxService.getEcommerceService().queryApplyStatusByApplymentId(applymentId); |
| | | } |
| | | |
| | | public ProfitSharingReceiver addProfitSharingReceiver(ProfitSharingReceiver profitSharingReceiver) throws WxPayException { |
| | | profitSharingReceiver.setAppid("wxb7f0ea286fc4e535"); |
| | | profitSharingReceiver.setType("MERCHANT_ID"); |
| | | profitSharingReceiver.setRelationType("SERVICE_PROVIDER"); |
| | | ProfitSharingReceiver result = wxService.getProfitSharingV3Service().addProfitSharingReceiver(profitSharingReceiver); |
| | | public ProfitSharingReceiverResult addProfitSharingReceiver(ProfitSharingReceiverRequest request) throws WxPayException { |
| | | request.setAppid("wxb7f0ea286fc4e535"); |
| | | request.setType("MERCHANT_ID"); |
| | | request.setRelationType("SERVICE_PROVIDER"); |
| | | ProfitSharingReceiverResult result = wxService.getEcommerceService().addReceivers(request); |
| | | return result; |
| | | } |
| | | } |