cn.felord.payment.wechat.v3

## 类 WechatPartnerPayApi

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

-     public class WechatPartnerPayApi
      extends AbstractApi

  普通支付-服务商模式
  从以下版本开始:
    1.0.8.RELEASE
  作者:
    felord.cn

- - ### 构造器概要

    构造器
    构造器和说明
    `WechatPartnerPayApi(WechatPayClient wechatPayClient, String tenantId)` Instantiates a new Abstract api.

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `WechatResponseEntity<com.fasterxml.jackson.databind.node.ObjectNode>` | `appPay(PartnerPayParams partnerPayParams)` APP下单API
    `WechatResponseEntity<com.fasterxml.jackson.databind.node.ObjectNode>` | `close(CloseTransParams closeTransParams)` 关单API
    `private org.springframework.http.RequestEntity<?>` | `closeByOutTradeNoFunction(WechatPayV3Type type, CloseTransParams closeTransParams)`
    `WechatResponseEntity<com.fasterxml.jackson.databind.node.ObjectNode>` | `h5Pay(PartnerPayParams partnerPayParams)` H5下单API
    `WechatResponseEntity<com.fasterxml.jackson.databind.node.ObjectNode>` | `jsPay(PartnerPayParams partnerPayParams)` JSAPI/小程序下单API
    `WechatResponseEntity<com.fasterxml.jackson.databind.node.ObjectNode>` | `nativePay(PartnerPayParams partnerPayParams)` Native下单API
    `private org.springframework.http.RequestEntity<?>` | `payFunction(WechatPayV3Type type, PartnerPayParams partnerPayParams)`
    `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)`

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

      `billCsvDownload, billResource, client, container, downloadBillResponse, downloadFundFlowBill, downloadTradeBill, Get, Get, getMapper, Patch, Post, Post, tenantId, wechatMetaBean`

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

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

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

    - #### WechatPartnerPayApi

          public WechatPartnerPayApi(WechatPayClient wechatPayClient,
                                     String tenantId)

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

  - ### 方法详细资料

    - #### appPay

          public WechatResponseEntity<com.fasterxml.jackson.databind.node.ObjectNode> appPay(PartnerPayParams partnerPayParams)

      APP下单API
      参数:
        `partnerPayParams` - the partner pay params
      返回:
        the wechat response entity
      从以下版本开始:
        1.0.8.RELEASE

    - #### jsPay

          public WechatResponseEntity<com.fasterxml.jackson.databind.node.ObjectNode> jsPay(PartnerPayParams partnerPayParams)

      JSAPI/小程序下单API
      参数:
        `partnerPayParams` - the pay params
      返回:
        wechat response entity
      从以下版本开始:
        1.0.8.RELEASE

    - #### nativePay

          public WechatResponseEntity<com.fasterxml.jackson.databind.node.ObjectNode> nativePay(PartnerPayParams partnerPayParams)

      Native下单API
      参数:
        `partnerPayParams` - the pay params
      返回:
        wechat response entity
      从以下版本开始:
        1.0.8.RELEASE

    - #### h5Pay

          public WechatResponseEntity<com.fasterxml.jackson.databind.node.ObjectNode> h5Pay(PartnerPayParams partnerPayParams)

      H5下单API
      参数:
        `partnerPayParams` - the partner pay params
      返回:
        wechat response entity
      从以下版本开始:
        1.0.8.RELEASE

    - #### payFunction

          private org.springframework.http.RequestEntity<?> payFunction(WechatPayV3Type type,
                                                                        PartnerPayParams partnerPayParams)

    - #### queryTransactionById

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

      微信支付订单号查询API
      参数:
        `params` - the params
      返回:
        the wechat response entity
      从以下版本开始:
        1.0.8.RELEASE

    - #### queryTransactionByOutTradeNo

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

      商户订单号查询API
      参数:
        `params` - the params
      返回:
        the wechat response entity
      从以下版本开始:
        1.0.8.RELEASE

    - #### queryTransactionFunction

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

    - #### close

          public WechatResponseEntity<com.fasterxml.jackson.databind.node.ObjectNode> close(CloseTransParams closeTransParams)

      关单API
      参数:
        `closeTransParams` - the closeTransParams
      返回:
        the wechat response entity
      从以下版本开始:
        1.0.8.RELEASE

    - #### closeByOutTradeNoFunction

          private org.springframework.http.RequestEntity<?> closeByOutTradeNoFunction(WechatPayV3Type type,
                                                                                      CloseTransParams closeTransParams)

Copyright © 2022. All rights reserved.