content: package com.alipay.api.request;
  
  import java.util.Map;
  
  import com.alipay.api.AlipayRequest;
  import com.alipay.api.internal.util.AlipayHashMap;
  import com.alipay.api.response.AlipayUserTradeSearchResponse;
  import com.alipay.api.AlipayObject;
  
  /**
   * ALIPAY API: alipay.user.trade.search request
   * 
   * @author auto create
   * @since 1.0, 2024-03-01 16:26:19
   */
  public class AlipayUserTradeSearchRequest implements AlipayRequest<AlipayUserTradeSearchResponse> {
  
  	private AlipayHashMap udfParams; // add user-defined text parameters
  	private String apiVersion="1.0";
  
  	/** 
  	* 支付宝订单号，为空查询所有记录
  	 */
  	private String alipayOrderNo;
  
  	/** 
  	* 结束时间。与开始时间间隔在七天之内
  	 */
  	private String endTime;
  
  	/** 
  	* 商户订单号，为空查询所有记录
  	 */
  	private String merchantOrderNo;
  
  	/** 
  	* 订单来源，为空查询所有来源。淘宝(TAOBAO)，支付宝(ALIPAY)，其它(OTHER)
  	 */
  	private String orderFrom;
  
  	/** 
  	* 订单状态，为空查询所有状态订单。例如：等待买家付款（WAIT_BUYER_PAY），等待卖家发货（WAIT_SELLER_SEND_GOODS），等待买家确认收货（WAIT_BUYER_CONFIRM_GOODS），交易完成（TRADE_FINISHED），交易关闭（TRADE_CLOSED），交易成功（TRADE_SUCCESS）
  	 */
  	private String orderStatus;
  
  	/** 
  	* 订单类型，为空查询所有类型订单。例如：交易（TRADE）,CAE代扣（CAE）,代付（PEERPAY）,转账到卡（TRANSFER）
  	 */
  	private String orderType;
  
  	/** 
  	* 页码。取值范围:大于零的整数; 默认值1
  	 */
  	private String pageNo;
  
  	/** 
  	* 每页获取条数。最大值500。
  	 */
  	private String pageSize;
  
  	/** 
  	* 开始时间，时间必须是今天范围之内。格式为yyyy-MM-dd HH:mm:ss，精确到秒(升级后的api 1.1版本)
  	 */
  	private String startTime;
  
  	public void setAlipayOrderNo(String alipayOrderNo) {
  		this.alipayOrderNo = alipayOrderNo;
  	}
  	public String getAlipayOrderNo() {
  		return this.alipayOrderNo;
  	}
  
  	public void setEndTime(String endTime) {
  		this.endTime = endTime;
  	}
  	public String getEndTime() {
  		return this.endTime;
  	}
  
  	public void setMerchantOrderNo(String merchantOrderNo) {
  		this.merchantOrderNo = merchantOrderNo;
  	}
  	public String getMerchantOrderNo() {
  		return this.merchantOrderNo;
  	}
  
  	public void setOrderFrom(String orderFrom) {
  		this.orderFrom = orderFrom;
  	}
  	public String getOrderFrom() {
  		return this.orderFrom;
  	}
  
  	public void setOrderStatus(String orderStatus) {
  		this.orderStatus = orderStatus;
  	}
  	public String getOrderStatus() {
  		return this.orderStatus;
  	}
  
  	public void setOrderType(String orderType) {
  		this.orderType = orderType;
  	}
  	public String getOrderType() {
  		return this.orderType;
  	}
  
  	public void setPageNo(String pageNo) {
  		this.pageNo = pageNo;
  	}
  	public String getPageNo() {
  		return this.pageNo;
  	}
  
  	public void setPageSize(String pageSize) {
  		this.pageSize = pageSize;
  	}
  	public String getPageSize() {
  		return this.pageSize;
  	}
  
  	public void setStartTime(String startTime) {
  		this.startTime = startTime;
  	}
  	public String getStartTime() {
  		return this.startTime;
  	}
  	private String terminalType;
  	private String terminalInfo;	
  	private String prodCode;
  	private String notifyUrl;
  	private String returnUrl;
  	private boolean needEncrypt=false;
  	private AlipayObject bizModel=null;
  
  	public String getNotifyUrl() {
  		return this.notifyUrl;
  	}
  
  	public void setNotifyUrl(String notifyUrl) {
  		this.notifyUrl = notifyUrl;
  	}
  
  	public String getReturnUrl() {
  		return this.returnUrl;
  	}
  
  	public void setReturnUrl(String returnUrl) {
  		this.returnUrl = returnUrl;
  	}
  
  	public String getApiVersion() {
  		return this.apiVersion;
  	}
  
  	public void setApiVersion(String apiVersion) {
  		this.apiVersion = apiVersion;
  	}
  
  	public void setTerminalType(String terminalType){
  		this.terminalType=terminalType;
  	}
  
      public String getTerminalType(){
      	return this.terminalType;
      }
  
      public void setTerminalInfo(String terminalInfo){
      	this.terminalInfo=terminalInfo;
      }
  
      public String getTerminalInfo(){
      	return this.terminalInfo;
      }	
  
  	public void setProdCode(String prodCode) {
  		this.prodCode=prodCode;
  	}
  
  	public String getProdCode() {
  		return this.prodCode; 
  	}
  
  	public String getApiMethodName() {
  		return "alipay.user.trade.search";
  	}
  
  	public Map<String, String> getTextParams() {		
  		AlipayHashMap txtParams = new AlipayHashMap();
  		txtParams.put("alipay_order_no", this.alipayOrderNo);
  		txtParams.put("end_time", this.endTime);
  		txtParams.put("merchant_order_no", this.merchantOrderNo);
  		txtParams.put("order_from", this.orderFrom);
  		txtParams.put("order_status", this.orderStatus);
  		txtParams.put("order_type", this.orderType);
  		txtParams.put("page_no", this.pageNo);
  		txtParams.put("page_size", this.pageSize);
  		txtParams.put("start_time", this.startTime);
  		if(udfParams != null) {
  			txtParams.putAll(this.udfParams);
  		}
  		return txtParams;
  	}
  
  	public void putOtherTextParam(String key, String value) {
  		if(this.udfParams == null) {
  			this.udfParams = new AlipayHashMap();
  		}
  		this.udfParams.put(key, value);
  	}
  
  	public Class<AlipayUserTradeSearchResponse> getResponseClass() {
  		return AlipayUserTradeSearchResponse.class;
  	}
  	
  
      public boolean isNeedEncrypt() {
      
        return this.needEncrypt;
      }
  
  
      public void setNeedEncrypt(boolean needEncrypt) {
      
           this.needEncrypt=needEncrypt;
      }
      
      public AlipayObject getBizModel() {
      
        return this.bizModel;
      }
  
  
      public void setBizModel(AlipayObject bizModel) {
      
           this.bizModel=bizModel;
      }
  	
  	
  }
  