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

cn.binarywang.wx.miniapp.api.WxMaShopPayService Maven / Gradle / Ivy

There is a newer version: 4.6.7.B
Show newest version
package cn.binarywang.wx.miniapp.api;

import cn.binarywang.wx.miniapp.bean.shop.request.WxMaShopPayCreateOrderRequest;
import cn.binarywang.wx.miniapp.bean.shop.request.WxMaShopPayOrderRefundRequest;
import cn.binarywang.wx.miniapp.bean.shop.response.WxMaShopBaseResponse;
import cn.binarywang.wx.miniapp.bean.shop.response.WxMaShopPayCreateOrderResponse;
import cn.binarywang.wx.miniapp.bean.shop.response.WxMaShopPayGetOrderResponse;
import me.chanjar.weixin.common.error.WxErrorException;

/**
 * 小程序支付管理订单相关接口
 *
 * @author liming1019
 */
public interface WxMaShopPayService {

  /**
   * 创建订单
   * 文档地址:文档地址
   *
   * @param request 创建订单参数
   * @return 创建订单结果
   * @throws WxErrorException .
   */
  WxMaShopPayCreateOrderResponse createOrder(WxMaShopPayCreateOrderRequest request) throws WxErrorException;

  /**
   * 查询订单详情
   * 文档地址:文档地址
   *
   * @param trade_no
   * @return
   * @throws WxErrorException
   */
  WxMaShopPayGetOrderResponse getOrder(String trade_no) throws WxErrorException;

  /**
   * 订单退款
   * 文档地址:文档地址
   *
   * @param request
   * @return
   * @throws WxErrorException
   */
  WxMaShopBaseResponse refundOrder(WxMaShopPayOrderRefundRequest request) throws WxErrorException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy