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

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

There is a newer version: 1.10.85
Show newest version
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.PddSmsCustomTemplateQueryResponse;
import com.pdd.pop.sdk.http.HttpMethod;
import com.pdd.pop.sdk.http.PopBaseHttpRequest;

import java.util.Map;

public class PddSmsCustomTemplateQueryRequest extends PopBaseHttpRequest {

    /**
     *  1-审核中  2-审核驳回  3-审核通过
     */
    @JsonProperty("status")
    private Integer status;

    /**
     * true or false 审核通过的排前面,在模版选择的时候调用
     */
    @JsonProperty("order_by_status")
    private Boolean orderByStatus;

    /**
     * 页码
     */
    @JsonProperty("page_number")
    private Integer pageNumber;

    /**
     * 每页大小
     */
    @JsonProperty("page_size")
    private Integer pageSize;

    /**
     * 自定义模板类型
     * 0,正常模板
     * 1,需要带优惠券类型的模板
     */
    @JsonProperty("template_type")
    private Integer templateType;

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

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

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

    @Override
    public String getType() {
        return "pdd.sms.custom.template.query";
    }

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

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

    @Override
    protected void setUserParams(Map params) {
        setUserParam(params, "status", status);
        setUserParam(params, "order_by_status", orderByStatus);
        setUserParam(params, "page_number", pageNumber);
        setUserParam(params, "page_size", pageSize);
        setUserParam(params, "template_type", templateType);
    }

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

    public void setOrderByStatus(Boolean orderByStatus) {
        this.orderByStatus = orderByStatus;
    }

    public void setPageNumber(Integer pageNumber) {
        this.pageNumber = pageNumber;
    }

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

    public void setTemplateType(Integer templateType) {
        this.templateType = templateType;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy