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

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

package com.pdd.pop.sdk.http.api.pop.request;

import com.pdd.pop.ext.fasterxml.jackson.annotation.JsonProperty;
import com.pdd.pop.sdk.http.api.pop.response.PddInvoiceApplicationQueryResponse;
import com.pdd.pop.sdk.http.HttpMethod;
import com.pdd.pop.sdk.http.PopBaseHttpRequest;

import java.util.Map;

public class PddInvoiceApplicationQueryRequest extends PopBaseHttpRequest {

    /**
     * 申请流水号
     */
    @JsonProperty("application_id")
    private Long applicationId;

    /**
     * 订单号;订单号和申请时间必填其一
     */
    @JsonProperty("order_sn")
    private String orderSn;

    /**
     * 页码,默认1
     */
    @JsonProperty("page")
    private Integer page;

    /**
     * 每页返回数目,默认50
     */
    @JsonProperty("page_size")
    private Integer pageSize;

    /**
     * 申请状态:0-已拒绝,1-申请中,2-已同意
     */
    @JsonProperty("status")
    private Integer status;

    /**
     * 申请结束时间, 时间戳(毫秒)
     */
    @JsonProperty("update_end_time")
    private Long updateEndTime;

    /**
     * 申请开始时间, 时间戳(毫秒)
     */
    @JsonProperty("update_start_time")
    private Long updateStartTime;

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

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

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

    @Override
    public String getType() {
        return "pdd.invoice.application.query";
    }

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

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

    @Override
    protected void setUserParams(Map params) {
        setUserParam(params, "application_id", applicationId);
        setUserParam(params, "order_sn", orderSn);
        setUserParam(params, "page", page);
        setUserParam(params, "page_size", pageSize);
        setUserParam(params, "status", status);
        setUserParam(params, "update_end_time", updateEndTime);
        setUserParam(params, "update_start_time", updateStartTime);
    }

    public void setApplicationId(Long applicationId) {
        this.applicationId = applicationId;
    }

    public void setOrderSn(String orderSn) {
        this.orderSn = orderSn;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public void setUpdateEndTime(Long updateEndTime) {
        this.updateEndTime = updateEndTime;
    }

    public void setUpdateStartTime(Long updateStartTime) {
        this.updateStartTime = updateStartTime;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy