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

com.github.binarywang.wxpay.service.TransferService Maven / Gradle / Ivy

The newest version!
package com.github.binarywang.wxpay.service;

import com.github.binarywang.wxpay.bean.notify.SignatureHeader;
import com.github.binarywang.wxpay.bean.transfer.*;
import com.github.binarywang.wxpay.exception.WxPayException;

/**
 * 商家转账到零钱
 *
 * @author zhongjun
 * created on  2022/6/17
 **/
public interface TransferService {

  /**
   * 
   *
   * 发起商家转账API
   *
   * 请求方式:POST(HTTPS)
   * 请求地址:请求地址
   *
   * 文档地址:发起商家转账API
   * 
* * @param request 转账请求参数 * @return TransferBatchesResult 转账结果 * @throws WxPayException . */ TransferBatchesResult transferBatches(TransferBatchesRequest request) throws WxPayException; /** * 解析商家转账结果 * 详见 * * @param notifyData 通知数据 * @param header 通知头部数据,不传则表示不校验头 * @return the wx transfer notify result * @throws WxPayException the wx pay exception */ TransferNotifyResult parseTransferNotifyResult(String notifyData, SignatureHeader header) throws WxPayException; /** *
   *
   * 微信批次单号查询批次单API
   *
   * 请求方式:GET(HTTPS)
   * 请求地址:请求地址
   *
   * 文档地址:微信批次单号查询批次单API
   * 
* * @param request 查询请求参数 * @return TransferBatchesResult 查询结果 * @throws WxPayException . */ QueryTransferBatchesResult transferBatchesBatchId(QueryTransferBatchesRequest request) throws WxPayException; /** *
   *
   * 微信明细单号查询明细单API
   *
   * 请求方式:GET(HTTPS)
   * 请求地址:请求地址
   *
   * 文档地址:微信明细单号查询明细单API
   * 
* * @param batchId 微信批次单号 * @param detailId 微信明细单号 * @return TransferBatchDetailResult 查询结果 * @throws WxPayException . */ TransferBatchDetailResult transferBatchesBatchIdDetail(String batchId, String detailId) throws WxPayException; /** *
   *
   * 商家批次单号查询批次单API
   *
   * 请求方式:GET(HTTPS)
   * 请求地址:请求地址
   *
   * 文档地址:商家批次单号查询批次单API
   * 
* * @param request 查询请求参数 * @return TransferBatchesResult 查询结果 * @throws WxPayException . * @throws WxPayException . */ QueryTransferBatchesResult transferBatchesOutBatchNo(QueryTransferBatchesRequest request) throws WxPayException; /** *
   *
   * 商家明细单号查询明细单API
   *
   * 请求方式:GET(HTTPS)
   * 请求地址:请求地址
   *
   * 文档地址:商家明细单号查询明细单API
   * 
* * @param outBatchNo 商家明细单号 * @param outDetailNo 商家批次单号 * @return TransferBatchDetailResult 查询结果 * @throws WxPayException . */ TransferBatchDetailResult transferBatchesOutBatchNoDetail(String outBatchNo, String outDetailNo) throws WxPayException; }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy