com.dingtalk.api.request.OapiAlitripBtripCostCenterModifyRequest Maven / Gradle / Ivy
The newest version!
package com.dingtalk.api.request;
import com.taobao.api.internal.mapping.ApiField;
import com.taobao.api.TaobaoObject;
import java.util.Map;
import java.util.List;
import com.taobao.api.ApiRuleException;
import com.taobao.api.BaseTaobaoRequest;
import com.dingtalk.api.DingTalkConstants;
import com.taobao.api.Constants;
import com.taobao.api.internal.util.TaobaoHashMap;
import com.taobao.api.internal.util.TaobaoUtils;
import com.taobao.api.internal.util.json.JSONWriter;
import com.dingtalk.api.response.OapiAlitripBtripCostCenterModifyResponse;
/**
* TOP DingTalk-API: dingtalk.oapi.alitrip.btrip.cost.center.modify request
*
* @author top auto create
* @since 1.0, 2018.08.07
*/
public class OapiAlitripBtripCostCenterModifyRequest extends BaseTaobaoRequest {
/**
* 请求对象
*/
private String rq;
public void setRq(String rq) {
this.rq = rq;
}
public void setRq(OpenCostCenterModifyRq rq) {
this.rq = new JSONWriter(false,false,true).write(rq);
}
public String getRq() {
return this.rq;
}
public String getApiMethodName() {
return "dingtalk.oapi.alitrip.btrip.cost.center.modify";
}
private String topResponseType = Constants.RESPONSE_TYPE_DINGTALK_OAPI;
public String getTopResponseType() {
return this.topResponseType;
}
public void setTopResponseType(String topResponseType) {
this.topResponseType = topResponseType;
}
public String getTopApiCallType() {
return DingTalkConstants.CALL_TYPE_OAPI;
}
private String topHttpMethod = DingTalkConstants.HTTP_METHOD_POST;
public String getTopHttpMethod() {
return this.topHttpMethod;
}
public void setTopHttpMethod(String topHttpMethod) {
this.topHttpMethod = topHttpMethod;
}
public void setHttpMethod(String httpMethod) {
this.setTopHttpMethod(httpMethod);
}
public Map getTextParams() {
TaobaoHashMap txtParams = new TaobaoHashMap();
txtParams.put("rq", this.rq);
if(this.udfParams != null) {
txtParams.putAll(this.udfParams);
}
return txtParams;
}
public Class getResponseClass() {
return OapiAlitripBtripCostCenterModifyResponse.class;
}
public void check() throws ApiRuleException {
}
/**
* 请求对象
*
* @author top auto create
* @since 1.0, null
*/
public static class OpenCostCenterModifyRq extends TaobaoObject {
private static final long serialVersionUID = 2531225694397781795L;
/**
* 绑定支付宝账号
*/
@ApiField("alipay_no")
private String alipayNo;
/**
* 企业id
*/
@ApiField("corpid")
private String corpid;
/**
* 成本中心编号
*/
@ApiField("number")
private String number;
/**
* 适用范围: 1全员,2部分员工
*/
@ApiField("scope")
private Long scope;
/**
* 第三方成本中心id
*/
@ApiField("thirdpart_id")
private String thirdpartId;
/**
* 成本中心名称
*/
@ApiField("title")
private String title;
public String getAlipayNo() {
return this.alipayNo;
}
public void setAlipayNo(String alipayNo) {
this.alipayNo = alipayNo;
}
public String getCorpid() {
return this.corpid;
}
public void setCorpid(String corpid) {
this.corpid = corpid;
}
public String getNumber() {
return this.number;
}
public void setNumber(String number) {
this.number = number;
}
public Long getScope() {
return this.scope;
}
public void setScope(Long scope) {
this.scope = scope;
}
public String getThirdpartId() {
return this.thirdpartId;
}
public void setThirdpartId(String thirdpartId) {
this.thirdpartId = thirdpartId;
}
public String getTitle() {
return this.title;
}
public void setTitle(String title) {
this.title = title;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy