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

com.pdd.pop.sdk.http.api.pop.request.PddOpenMsgServiceSendExpressMsgRequest 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.PddOpenMsgServiceSendExpressMsgResponse;
import com.pdd.pop.sdk.http.HttpMethod;
import com.pdd.pop.sdk.http.PopBaseHttpRequest;

import java.util.List;
import java.util.Map;

public class PddOpenMsgServiceSendExpressMsgRequest extends PopBaseHttpRequest {

    /**
     * 短信签名名称
     */
    @JsonProperty("sign_name")
    private String signName;

    /**
     * 短信模板CODE
     */
    @JsonProperty("template_code")
    private Long templateCode;

    /**
     * 短信模板变量JSON集合(与手机号对应)与按照手机号发短信一致key变量名 value变量值
     */
    @JsonProperty("template_param_json")
    private List> templateParamJson;

    /**
     * 物流单号集合
     */
    @JsonProperty("waybill_codes")
    private List waybillCodes;

    /**
     * 快递公司编码
     */
    @JsonProperty("wp_code")
    private String wpCode;

    /**
     * 业务请求唯一标识
     */
    @JsonProperty("out_id")
    private String outId;

    /**
     * 上行短信扩展码
     */
    @JsonProperty("sms_up_extend_code")
    private String smsUpExtendCode;

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

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

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

    @Override
    public String getType() {
        return "pdd.open.msg.service.send.express.msg";
    }

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

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

    @Override
    protected void setUserParams(Map params) {
        setUserParam(params, "sign_name", signName);
        setUserParam(params, "template_code", templateCode);
        setUserParam(params, "template_param_json", templateParamJson);
        setUserParam(params, "waybill_codes", waybillCodes);
        setUserParam(params, "wp_code", wpCode);
        setUserParam(params, "out_id", outId);
        setUserParam(params, "sms_up_extend_code", smsUpExtendCode);
    }

    public void setSignName(String signName) {
        this.signName = signName;
    }

    public void setTemplateCode(Long templateCode) {
        this.templateCode = templateCode;
    }

    public void setTemplateParamJson(List> templateParamJson) {
        this.templateParamJson = templateParamJson;
    }

    public void setWaybillCodes(List waybillCodes) {
        this.waybillCodes = waybillCodes;
    }

    public void setWpCode(String wpCode) {
        this.wpCode = wpCode;
    }

    public void setOutId(String outId) {
        this.outId = outId;
    }

    public void setSmsUpExtendCode(String smsUpExtendCode) {
        this.smsUpExtendCode = smsUpExtendCode;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy