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

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

import java.util.Map;

public class PddCloudprintCustomaresGetRequest extends PopBaseHttpRequest {

    /**
     * 用户使用的模板id,即pdd.cloudprint.stdtemplates.get接口中的standard_template_id
     */
    @JsonProperty("template_id")
    private String templateId;

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

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

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

    @Override
    public String getType() {
        return "pdd.cloudprint.customares.get";
    }

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

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

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

    public void setTemplateId(String templateId) {
        this.templateId = templateId;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy