Class EcommerceRefundService

java.lang.Object
com.wechat.pay.java.service.ecommercerefund.EcommerceRefundService

public class EcommerceRefundService extends Object
EcommerceRefundService服务
  • Method Details

    • createRefund

      public Refund4Create createRefund(CreateRefundRequest request)
      申请退款
      Parameters:
      request - 请求参数
      Returns:
      Refund4Create
      Throws:
      com.wechat.pay.java.core.exception.HttpException - 发送HTTP请求失败。例如构建请求参数失败、发送请求失败、I/O错误等。包含请求信息。
      com.wechat.pay.java.core.exception.ValidationException - 发送HTTP请求成功,验证微信支付返回签名失败。
      com.wechat.pay.java.core.exception.ServiceException - 发送HTTP请求成功,服务返回异常。例如返回状态码小于200或大于等于300。
      com.wechat.pay.java.core.exception.MalformedMessageException - 服务返回成功,content-type不为application/json、解析返回体失败。
    • createReturnAdvance

      public ReturnAdvance createReturnAdvance(CreateReturnAdvanceRequest request)
      垫付退款回补
      Parameters:
      request - 请求参数
      Returns:
      ReturnAdvance
      Throws:
      com.wechat.pay.java.core.exception.HttpException - 发送HTTP请求失败。例如构建请求参数失败、发送请求失败、I/O错误等。包含请求信息。
      com.wechat.pay.java.core.exception.ValidationException - 发送HTTP请求成功,验证微信支付返回签名失败。
      com.wechat.pay.java.core.exception.ServiceException - 发送HTTP请求成功,服务返回异常。例如返回状态码小于200或大于等于300。
      com.wechat.pay.java.core.exception.MalformedMessageException - 服务返回成功,content-type不为application/json、解析返回体失败。
    • queryRefund

      public Refund queryRefund(QueryRefundRequest request)
      查询单笔退款(按微信支付退款单号)
      Parameters:
      request - 请求参数
      Returns:
      Refund
      Throws:
      com.wechat.pay.java.core.exception.HttpException - 发送HTTP请求失败。例如构建请求参数失败、发送请求失败、I/O错误等。包含请求信息。
      com.wechat.pay.java.core.exception.ValidationException - 发送HTTP请求成功,验证微信支付返回签名失败。
      com.wechat.pay.java.core.exception.ServiceException - 发送HTTP请求成功,服务返回异常。例如返回状态码小于200或大于等于300。
      com.wechat.pay.java.core.exception.MalformedMessageException - 服务返回成功,content-type不为application/json、解析返回体失败。
    • queryRefundByOutRefundNo

      public Refund queryRefundByOutRefundNo(QueryRefundByOutRefundNoRequest request)
      查询单笔退款(按商户退款单号)
      Parameters:
      request - 请求参数
      Returns:
      Refund
      Throws:
      com.wechat.pay.java.core.exception.HttpException - 发送HTTP请求失败。例如构建请求参数失败、发送请求失败、I/O错误等。包含请求信息。
      com.wechat.pay.java.core.exception.ValidationException - 发送HTTP请求成功,验证微信支付返回签名失败。
      com.wechat.pay.java.core.exception.ServiceException - 发送HTTP请求成功,服务返回异常。例如返回状态码小于200或大于等于300。
      com.wechat.pay.java.core.exception.MalformedMessageException - 服务返回成功,content-type不为application/json、解析返回体失败。
    • queryReturnAdvance

      public ReturnAdvance queryReturnAdvance(QueryReturnAdvanceRequest request)
      查询垫付回补结果
      Parameters:
      request - 请求参数
      Returns:
      ReturnAdvance
      Throws:
      com.wechat.pay.java.core.exception.HttpException - 发送HTTP请求失败。例如构建请求参数失败、发送请求失败、I/O错误等。包含请求信息。
      com.wechat.pay.java.core.exception.ValidationException - 发送HTTP请求成功,验证微信支付返回签名失败。
      com.wechat.pay.java.core.exception.ServiceException - 发送HTTP请求成功,服务返回异常。例如返回状态码小于200或大于等于300。
      com.wechat.pay.java.core.exception.MalformedMessageException - 服务返回成功,content-type不为application/json、解析返回体失败。