com.dingtalk.api.request.OapiAlitripBtripReimbursementUpdateRequest Maven / Gradle / Ivy
The newest version!
package com.dingtalk.api.request;
import java.util.List;
import com.taobao.api.internal.mapping.ApiField;
import com.taobao.api.internal.mapping.ApiListField;
import com.taobao.api.internal.util.json.JSONValidatingReader;
import com.taobao.api.TaobaoObject;
import java.util.Date;
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.OapiAlitripBtripReimbursementUpdateResponse;
/**
* TOP DingTalk-API: dingtalk.oapi.alitrip.btrip.reimbursement.update request
*
* @author top auto create
* @since 1.0, 2020.10.15
*/
public class OapiAlitripBtripReimbursementUpdateRequest extends BaseTaobaoRequest {
/**
* 请求参数
*/
private String rq;
public void setRq(String rq) {
this.rq = rq;
}
public void setRq(OpenApiUpdateReimbursementRq rq) {
this.rq = new JSONWriter(false,false,true).write(rq);
}
public String getRq() {
return this.rq;
}
public String getApiMethodName() {
return "dingtalk.oapi.alitrip.btrip.reimbursement.update";
}
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 OapiAlitripBtripReimbursementUpdateResponse.class;
}
public void check() throws ApiRuleException {
}
/**
* 审批人列表
*
* @author top auto create
* @since 1.0, null
*/
public static class Auditlist extends TaobaoObject {
private static final long serialVersionUID = 5329646118714358792L;
/**
* 备注
*/
@ApiField("note")
private String note;
/**
* 审批操作时间
*/
@ApiField("operate_time")
private Date operateTime;
/**
* 审批状态:0审批中 1已同意 2已拒绝 3已转交,4已取消 5已终止
*/
@ApiField("status")
private Long status;
/**
* 审批人id
*/
@ApiField("userid")
private String userid;
public String getNote() {
return this.note;
}
public void setNote(String note) {
this.note = note;
}
public Date getOperateTime() {
return this.operateTime;
}
public void setOperateTime(Date operateTime) {
this.operateTime = operateTime;
}
public Long getStatus() {
return this.status;
}
public void setStatus(Long status) {
this.status = status;
}
public String getUserid() {
return this.userid;
}
public void setUserid(String userid) {
this.userid = userid;
}
}
/**
* 请求参数
*
* @author top auto create
* @since 1.0, null
*/
public static class OpenApiUpdateReimbursementRq extends TaobaoObject {
private static final long serialVersionUID = 8636311528783295484L;
/**
* 申请单编号,如不做变更,请与创建报销单时保持一致
*/
@ApiField("apply_flow_no")
private Long applyFlowNo;
/**
* 审批人列表
*/
@ApiListField("audit_list")
@ApiField("auditlist")
private List auditList;
/**
* corp id
*/
@ApiField("corpid")
private String corpid;
/**
* 审批单号
*/
@ApiField("flow_no")
private Long flowNo;
/**
* 审批操作时间
*/
@ApiField("operate_time")
private Date operateTime;
/**
* 关联的报销订单id列表,<订单id:类型(机、酒、火、用车)>如不做变更,请与创建报销单时保持一致
*/
@ApiField("order_ids")
private String orderIds;
/**
* 审批状态
*/
@ApiField("status")
private Long status;
/**
* 第三方报销单id
*/
@ApiField("thirdparty_flow_id")
private String thirdpartyFlowId;
public Long getApplyFlowNo() {
return this.applyFlowNo;
}
public void setApplyFlowNo(Long applyFlowNo) {
this.applyFlowNo = applyFlowNo;
}
public List getAuditList() {
return this.auditList;
}
public void setAuditList(List auditList) {
this.auditList = auditList;
}
public String getCorpid() {
return this.corpid;
}
public void setCorpid(String corpid) {
this.corpid = corpid;
}
public Long getFlowNo() {
return this.flowNo;
}
public void setFlowNo(Long flowNo) {
this.flowNo = flowNo;
}
public Date getOperateTime() {
return this.operateTime;
}
public void setOperateTime(Date operateTime) {
this.operateTime = operateTime;
}
public String getOrderIds() {
return this.orderIds;
}
public void setOrderIds(String orderIds) {
this.orderIds = orderIds;
}
public void setOrderIdsString(String orderIds) {
this.orderIds = orderIds;
}
public Long getStatus() {
return this.status;
}
public void setStatus(Long status) {
this.status = status;
}
public String getThirdpartyFlowId() {
return this.thirdpartyFlowId;
}
public void setThirdpartyFlowId(String thirdpartyFlowId) {
this.thirdpartyFlowId = thirdpartyFlowId;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy