com.pdd.pop.sdk.http.api.ark.request.PddTrainTicketRefundRequest Maven / Gradle / Ivy
package com.pdd.pop.sdk.http.api.ark.request;
import com.pdd.pop.ext.fasterxml.jackson.annotation.JsonProperty;
import com.pdd.pop.sdk.http.api.ark.response.PddTrainTicketRefundResponse;
import com.pdd.pop.sdk.http.HttpMethod;
import com.pdd.pop.sdk.http.PopBaseHttpRequest;
import java.util.Map;
public class PddTrainTicketRefundRequest extends PopBaseHttpRequest {
/**
* 商家子单号
*/
@JsonProperty("sub_order_id")
private String subOrderId;
@Override
public String getVersion() {
return "V1";
}
@Override
public String getDataType() {
return "JSON";
}
@Override
public Integer getPlatform() {
return 1;
}
@Override
public String getType() {
return "pdd.train.ticket.refund";
}
@Override
public HttpMethod getHttpMethod() {
return HttpMethod.POST;
}
@Override
public Class getResponseClass() {
return PddTrainTicketRefundResponse.class;
}
@Override
protected void setUserParams(Map params) {
setUserParam(params, "sub_order_id", subOrderId);
}
public void setSubOrderId(String subOrderId) {
this.subOrderId = subOrderId;
}
}