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

com.pdd.pop.sdk.http.api.ark.request.PddEinvoiceOutboundRuihongQueryTaxDiskStatusRequest Maven / Gradle / Ivy

The newest version!
package com.pdd.pop.sdk.http.api.ark.request;

import com.pdd.pop.sdk.common.util.JsonUtil;
import com.pdd.pop.ext.fasterxml.jackson.annotation.JsonProperty;
import com.pdd.pop.sdk.http.api.ark.response.PddEinvoiceOutboundRuihongQueryTaxDiskStatusResponse;
import com.pdd.pop.sdk.http.HttpMethod;
import com.pdd.pop.sdk.http.PopBaseHttpRequest;

import java.util.Map;

public class PddEinvoiceOutboundRuihongQueryTaxDiskStatusRequest extends PopBaseHttpRequest {

    /**
     * request
     */
    @JsonProperty("request")
    private Request request;

    @Override
    public String getVersion() {
        return "V1";
    }

    @Override
    public String getDataType() {
        return "JSON";
    }

    @Override
    public Integer getPlatform() {
        return 1;
    }

    @Override
    public String getType() {
        return "pdd.einvoice.outbound.ruihong.query.tax.disk.status";
    }

    @Override
    public HttpMethod getHttpMethod() {
        return HttpMethod.POST;
    }

    @Override
    public Class getResponseClass() {
        return PddEinvoiceOutboundRuihongQueryTaxDiskStatusResponse.class;
    }

    @Override
    protected void setUserParams(Map params) {
        setUserParam(params, "request", request);
    }

    public void setRequest(Request request) {
        this.request = request;
    }

    public static class Request {

        /**
         * 由电子发票平台分配的appCode
         */
        @JsonProperty("appCode")
        private String appCode;

        /**
         * 方法名称,标示不同的操作请求
         */
        @JsonProperty("cmdName")
        private String cmdName;

        /**
         * 签名
         */
        @JsonProperty("sign")
        private String sign;

        /**
         * 操作流水号。查询时不检查重复性。
         */
        @JsonProperty("serialNo")
        private String serialNo;

        /**
         * 请求发送时间。格式为yyyy-MM-dd HH:mm:ss。
         */
        @JsonProperty("postTime")
        private String postTime;

        /**
         * 企业税号
         */
        @JsonProperty("taxpayerCode")
        private String taxpayerCode;

        /**
         * 税盘编号
         */
        @JsonProperty("taxDiskNo")
        private String taxDiskNo;

        public void setAppCode(String appCode) {
            this.appCode = appCode;
        }

        public void setCmdName(String cmdName) {
            this.cmdName = cmdName;
        }

        public void setSign(String sign) {
            this.sign = sign;
        }

        public void setSerialNo(String serialNo) {
            this.serialNo = serialNo;
        }

        public void setPostTime(String postTime) {
            this.postTime = postTime;
        }

        public void setTaxpayerCode(String taxpayerCode) {
            this.taxpayerCode = taxpayerCode;
        }

        public void setTaxDiskNo(String taxDiskNo) {
            this.taxDiskNo = taxDiskNo;
        }

        @Override
        public String toString() {
            return JsonUtil.transferToJson(this);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy