All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.com.antcloud.api.common.BaseRequest Maven / Gradle / Ivy

Go to download

Ant Fin Tech API SDK For Java Copyright (c) 2015-present Alipay.com, https://www.alipay.com

The newest version!
/*
 * Copyright (c) 2015-present Alipay.com, https://www.alipay.com
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package cn.com.antcloud.api.common;

/**
 * 请求基础类
 * @param 
 */
public class BaseRequest {
    private String reqMsgId;
    private String method;
    private String version;
    private String reqBizId;
    private String authToken;
    private String sdkVersion;
    private String prodCode;
    private String channel;
    private GwSignType signType;
    /**
     * 是否加密,只有rsa、sm2的签名方式才支持加密
     */
    private boolean encrypt;

    /**
     * 客户端签名AK版本
     */
    private String signKeyVersion;
    /**
     * 签名版本,目前默认1.0
     */
    private String encryptionVersion;

    public String getReqMsgId() {
        return reqMsgId;
    }

    public void setReqMsgId(String reqMsgId) {
        this.reqMsgId = reqMsgId;
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public GwSignType getSignType() {
        return signType;
    }

    public void setSignType(GwSignType signType) {
        this.signType = signType;
    }

    public Class responseClass() {
        return (Class) GenericTypeResolver.resolveTypeArgument(getClass(), BaseRequest.class);
    }

    public String getReqBizId() {
        return reqBizId;
    }

    public void setReqBizId(String reqBizId) {
        this.reqBizId = reqBizId;
    }

    public String getAuthToken() {
        return authToken;
    }

    public void setAuthToken(String authToken) {
        this.authToken = authToken;
    }

    public String getSdkVersion() {
        return sdkVersion;
    }

    public void setSdkVersion(String sdkVersion) {
        this.sdkVersion = sdkVersion;
    }

    public String getProdCode() {
        return prodCode;
    }

    public void setProdCode(String prodCode) {
        this.prodCode = prodCode;
    }

    public String getChannel() {
        return channel;
    }

    public void setChannel(String channel) {
        this.channel = channel;
    }

    public boolean isEncrypt() {
        return encrypt;
    }

    public void setEncrypt(boolean encrypt) {
        this.encrypt = encrypt;
    }

    public String getSignKeyVersion() {
        return signKeyVersion;
    }

    public void setSignKeyVersion(String signKeyVersion) {
        this.signKeyVersion = signKeyVersion;
    }

    public String getEncryptionVersion() {
        return encryptionVersion;
    }

    public void setEncryptionVersion(String encryptionVersion) {
        this.encryptionVersion = encryptionVersion;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy