com.pdd.pop.sdk.http.api.ark.request.PddTrainCancelReserveRequest 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.PddTrainCancelReserveResponse;
import com.pdd.pop.sdk.http.HttpMethod;
import com.pdd.pop.sdk.http.PopBaseHttpRequest;
import java.util.Map;
public class PddTrainCancelReserveRequest extends PopBaseHttpRequest {
/**
* 商家唯一订单号
*/
@JsonProperty("order_id")
private String orderId;
@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.cancel.reserve";
}
@Override
public HttpMethod getHttpMethod() {
return HttpMethod.POST;
}
@Override
public Class getResponseClass() {
return PddTrainCancelReserveResponse.class;
}
@Override
protected void setUserParams(Map params) {
setUserParam(params, "order_id", orderId);
}
public void setOrderId(String orderId) {
this.orderId = orderId;
}
}