All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.gitee.putaoo.easypay.feign.WxpaySandboxApi Maven / Gradle / Ivy

package io.gitee.putaoo.easypay.feign;

import io.gitee.putaoo.easypay.constant.WxConstant;
import io.gitee.putaoo.easypay.domain.wx.response.WxOrderQueryResponse;
import io.gitee.putaoo.easypay.domain.wx.response.WxPayResponse;
import io.gitee.putaoo.easypay.domain.wx.response.WxPaySandboxKeyResponse;
import io.gitee.putaoo.easypay.domain.wx.response.WxRefundResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

@FeignClient(name = "wxpaySandboxApi",url = WxConstant.URL)
public interface WxpaySandboxApi {
    /**
     * 统一下单
     * @param body
     * @return
     */
    @PostMapping("/sandboxnew/pay/unifiedorder")
    WxPayResponse unifiedorder(@RequestBody Map body);

    /**
     * 付款码支付
     * @param body
     * @return
     */
    @PostMapping("/sandboxnew/pay/micropay")
    WxPayResponse micropay(@RequestBody Map body);

    /**
     * 申请退款
     * @param body
     * @return
     */
    @PostMapping("/sandboxnew/secapi/pay/refund")
    WxRefundResponse refund(@RequestBody Map body);

    /**
     * 申请沙箱密钥
     * @param body
     * @return
     */
    @PostMapping("/sandboxnew/pay/getsignkey")
    WxPaySandboxKeyResponse getsignkey(@RequestBody Map body);

    /**
     * 订单查询
     * @param body
     * @return
     */
    @PostMapping("/sandboxnew/pay/orderquery")
    WxOrderQueryResponse orderquery(@RequestBody Map body);

    /**
     * 企业付款到用户银行卡
     * @param body
     * @return
     */
    @PostMapping("/sandboxnew/mmpaysptrans/pay_bank")
    WxPayResponse payBank(@RequestBody Map body);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy