cn.felord.payment.wechat.v2.model

## 类 BaseModel

- java.lang.Object
- - cn.felord.payment.wechat.v2.model.BaseModel

- 直接已知子类:
    GroupRedpackModel, RedpackInfoModel, RedpackModel, RefundModel, TransferInfoModel, TransferModel

      public abstract class BaseModel
      extends Object

  The type Base model.
  从以下版本开始:
    1.0.5.RELEASE
  作者:
    felord.cn

- - ### 字段概要

    字段
    限定符和类型 | 字段和说明
    --- | ---
    `private String` | `appSecret`
    `private static org.springframework.util.IdGenerator` | `ID_GENERATOR`
    `private String` | `nonceStr`
    `private static com.fasterxml.jackson.databind.ObjectMapper` | `OBJECT_MAPPER`
    `private String` | `sign`
    `private static com.fasterxml.jackson.dataformat.xml.XmlMapper` | `XML_MAPPER`

  - ### 构造器概要

    构造器
    构造器和说明
    `BaseModel()`

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `BaseModel` | `appSecret(String appSecret)`
    `private org.springframework.web.client.RestTemplate` | `getRestTemplateClientAuthentication(String mchId)`
    `private <T> String` | `link(T t)` 按照格式拼接参数以生成签名
    `private String` | `md5(String src)` md5摘要.
    `com.fasterxml.jackson.databind.JsonNode` | `request(String mchId, org.springframework.http.HttpMethod method, String url)`
    `private String` | `xml()` Xml string.

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

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

- - ### 字段详细资料

    - #### XML_MAPPER

          private static final com.fasterxml.jackson.dataformat.xml.XmlMapper XML_MAPPER

    - #### OBJECT_MAPPER

          private static final com.fasterxml.jackson.databind.ObjectMapper OBJECT_MAPPER

    - #### ID_GENERATOR

          private static final org.springframework.util.IdGenerator ID_GENERATOR

    - #### nonceStr

          private final String nonceStr

    - #### sign

          private String sign

    - #### appSecret

          private String appSecret

  - ### 构造器详细资料

    - #### BaseModel

          public BaseModel()

  - ### 方法详细资料

    - #### appSecret

          public BaseModel appSecret(String appSecret)

    - #### xml

          private String xml()

      Xml string.
      返回:
        the string

    - #### md5

          private String md5(String src)

      md5摘要.
      参数:
        `src` - the src
      返回:
        the string

    - #### link

          private <T> String link(T t)

      按照格式拼接参数以生成签名
      类型参数:
        `T` - the type parameter
      参数:
        `t` - the t
      返回:
        the map

    - #### request

          public com.fasterxml.jackson.databind.JsonNode request(String mchId,
                                                                 org.springframework.http.HttpMethod method,
                                                                 String url)

    - #### getRestTemplateClientAuthentication

          private org.springframework.web.client.RestTemplate getRestTemplateClientAuthentication(String mchId)
                                                                                           throws IOException,
                                                                                                  UnrecoverableKeyException,
                                                                                                  CertificateException,
                                                                                                  NoSuchAlgorithmException,
                                                                                                  KeyStoreException,
                                                                                                  KeyManagementException

      抛出:
        `IOException`
        `UnrecoverableKeyException`
        `CertificateException`
        `NoSuchAlgorithmException`
        `KeyStoreException`
        `KeyManagementException`

Copyright © 2021. All rights reserved.