cn.felord.payment.wechat.v3

## 类 WechatDirectPayApi

- java.lang.Object
- - cn.felord.payment.wechat.v3.AbstractApi
  - - cn.felord.payment.wechat.v3.WechatDirectPayApi

-     public class WechatDirectPayApi
      extends AbstractApi

  普通支付-直连模式.
  从以下版本开始:
    1.0.0.RELEASE
  作者:
    felord.cn

- - ### 构造器概要

    构造器
    构造器和说明
    `WechatDirectPayApi(WechatPayClient wechatPayClient, String tenantId)` Instantiates a new Wechat pay api.

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `WechatResponseEntity<com.fasterxml.jackson.databind.node.ObjectNode>` | `appPay(PayParams payParams)` APP下单API
    `WechatResponseEntity<com.fasterxml.jackson.databind.node.ObjectNode>` | `close(String outTradeNo)` 关单API
    `private org.springframework.http.RequestEntity<?>` | `closeByOutTradeNoFunction(WechatPayV3Type type, String outTradeNo)`
    `WechatResponseEntity<com.fasterxml.jackson.databind.node.ObjectNode>` | `h5Pay(PayParams payParams)` H5下单API
    `WechatResponseEntity<com.fasterxml.jackson.databind.node.ObjectNode>` | `jsPay(PayParams payParams)` JSAPI/小程序下单API
    `WechatResponseEntity<com.fasterxml.jackson.databind.node.ObjectNode>` | `nativePay(PayParams payParams)` Native下单API
    `private org.springframework.http.RequestEntity<?>` | `payFunction(WechatPayV3Type type, PayParams payParams)`
    `WechatResponseEntity<com.fasterxml.jackson.databind.node.ObjectNode>` | `queryRefundInfo(String outRefundNo)` 查询单笔退款API
    `WechatResponseEntity<com.fasterxml.jackson.databind.node.ObjectNode>` | `queryTransactionById(TransactionQueryParams params)` 微信支付订单号查询API
    `WechatResponseEntity<com.fasterxml.jackson.databind.node.ObjectNode>` | `queryTransactionByOutTradeNo(TransactionQueryParams params)` 商户订单号查询API
    `private org.springframework.http.RequestEntity<?>` | `queryTransactionFunction(WechatPayV3Type type, TransactionQueryParams params)`
    `WechatResponseEntity<com.fasterxml.jackson.databind.node.ObjectNode>` | `refund(RefundParams refundParams)` 申请退款API

    - ### 从类继承的方法 cn.felord.payment.wechat.v3.AbstractApi

      `billDownload, billResource, client, container, downloadFundFlowBill, downloadTradeBill, Get, getMapper, Post, tenantId, wechatMetaBean`

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 构造器详细资料

    - #### WechatDirectPayApi

          public WechatDirectPayApi(WechatPayClient wechatPayClient,
                                    String tenantId)

      Instantiates a new Wechat pay api.
      参数:
        `wechatPayClient` - the wechat pay client
        `tenantId` - the tenant id

  - ### 方法详细资料

    - #### appPay

          public WechatResponseEntity<com.fasterxml.jackson.databind.node.ObjectNode> appPay(PayParams payParams)

      APP下单API
      参数:
        `payParams` - the pay params
      返回:
        the wechat response entity

    - #### jsPay

          public WechatResponseEntity<com.fasterxml.jackson.databind.node.ObjectNode> jsPay(PayParams payParams)

      JSAPI/小程序下单API
      参数:
        `payParams` - the pay params
      返回:
        wechat response entity

    - #### nativePay

          public WechatResponseEntity<com.fasterxml.jackson.databind.node.ObjectNode> nativePay(PayParams payParams)

      Native下单API
      参数:
        `payParams` - the pay params
      返回:
        wechat response entity

    - #### h5Pay

          public WechatResponseEntity<com.fasterxml.jackson.databind.node.ObjectNode> h5Pay(PayParams payParams)

      H5下单API
      参数:
        `payParams` - the pay params
      返回:
        wechat response entity

    - #### payFunction

          private org.springframework.http.RequestEntity<?> payFunction(WechatPayV3Type type,
                                                                        PayParams payParams)

    - #### queryTransactionById

          public WechatResponseEntity<com.fasterxml.jackson.databind.node.ObjectNode> queryTransactionById(TransactionQueryParams params)

      微信支付订单号查询API
      参数:
        `params` - the params
      返回:
        the wechat response entity

    - #### queryTransactionByOutTradeNo

          public WechatResponseEntity<com.fasterxml.jackson.databind.node.ObjectNode> queryTransactionByOutTradeNo(TransactionQueryParams params)

      商户订单号查询API
      参数:
        `params` - the params
      返回:
        the wechat response entity

    - #### queryTransactionFunction

          private org.springframework.http.RequestEntity<?> queryTransactionFunction(WechatPayV3Type type,
                                                                                     TransactionQueryParams params)

    - #### close

          public WechatResponseEntity<com.fasterxml.jackson.databind.node.ObjectNode> close(String outTradeNo)

      关单API
      参数:
        `outTradeNo` - the out trade no
      返回:
        the wechat response entity

    - #### closeByOutTradeNoFunction

          private org.springframework.http.RequestEntity<?> closeByOutTradeNoFunction(WechatPayV3Type type,
                                                                                      String outTradeNo)

    - #### refund

          public WechatResponseEntity<com.fasterxml.jackson.databind.node.ObjectNode> refund(RefundParams refundParams)

      申请退款API
      参数:
        `refundParams` - the refund params
      返回:
        the wechat response entity
      从以下版本开始:
        1.0.6.RELEASE

    - #### queryRefundInfo

          public WechatResponseEntity<com.fasterxml.jackson.databind.node.ObjectNode> queryRefundInfo(String outRefundNo)

      查询单笔退款API
      参数:
        `outRefundNo` - the out refund no
      返回:
        the wechat response entity
      从以下版本开始:
        1.0.6.RELEASE

Copyright © 2021. All rights reserved.