cn.felord.payment.wechat.v2.model

## 类 BaseModel

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

直接已知子类:
  BaseProfitSharingModel, BaseProfitSharingReceiverModel, GroupRedpackModel, ProfitSharingFinishModel, ProfitSharingOrderAmountQueryModel, ProfitSharingQueryModel, ProfitSharingReturnModel, ProfitSharingReturnQueryModel, 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 String` `certPath`
`static String` `HMAC_SHA256`
`private static org.springframework.util.IdGenerator` `ID_GENERATOR`
`private String` `nonceStr`
`private static com.fasterxml.jackson.databind.ObjectMapper` `OBJECT_MAPPER`
`private String` `sign`
`private String` `signType`
`private static com.fasterxml.jackson.dataformat.xml.XmlMapper` `XML_MAPPER`

### 构造器概要

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

### 方法概要

所有方法 实例方法 具体方法
`BaseModel` `appSecret(String appSecret)`
`BaseModel` `certPath(String certPath)`
`private org.springframework.web.client.RestTemplate` `getRestTemplateClientAuthentication(String mchId)`
`private String` `hmacSha256(String src)` hmacSha256.
`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)`
`BaseModel` `signType(String signType)`
`private String` `xml()` Xml string.

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

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

### 字段详细资料

#### HMAC_SHA256

    public static final String HMAC_SHA256

另请参阅:
  常量字段值

#### 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

#### certPath

    private String certPath

#### signType

    private String signType

### 构造器详细资料

#### BaseModel

    public BaseModel()

### 方法详细资料

#### appSecret

    public BaseModel appSecret(String appSecret)

#### certPath

    public BaseModel certPath(String certPath)

#### signType

    public BaseModel signType(String signType)

#### xml

    private String xml()

Xml string.

返回:
  the string

#### md5

    private String md5(String src)

md5摘要.

参数:
  `src` - the src
返回:
  the string

#### hmacSha256

    private String hmacSha256(String src)

hmacSha256.

参数:
  `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`