package request

type TaobaoLogisticsDummySendRequest struct {
	/*
	   feature参数格式<br>范例: identCode=tid1:识别码1,识别码2|tid2:识别码3;machineCode=tid3:3C机器号A,3C机器号B<br>identCode为识别码的KEY,machineCode为3C的KEY,多个key之间用”;”分隔<br>“tid1:识别码1,识别码2|tid2:识别码3”为identCode对应的value。"|"不同商品间的分隔符。<br>例1商品和2商品，之间就用"|"分开。<br>TID就是商品代表的子订单号，对应taobao.trade.fullinfo.get 接口获得的oid字段。(通过OID可以唯一定位到当前商品上)<br>":"TID和具体传入参数间的分隔符。冒号前表示TID,之后代表该商品的参数属性。<br>"," 属性间分隔符。（对应商品数量，当存在一个商品的数量超过1个时，用逗号分开）。<br>具体:当订单中A商品的数量为2个，其中手机串号分别为"12345","67890"。<br>参数格式：identCode=TIDA:12345,67890。TIDA对应了A宝贝，冒号后用逗号分隔的"12345","67890".说明本订单A宝贝的数量为2，值分别为"12345","67890"。<br>当存在"|"时，就说明订单中存在多个商品，商品间用"|"分隔了开来。|"之后的内容含义同上。     */
	Feature *string `json:"feature,omitempty" required:"false" `
	/*
	   商家的IP地址     */
	SellerIp *string `json:"seller_ip,omitempty" required:"false" `
	/*
	   淘宝交易ID     */
	Tid *int64 `json:"tid" required:"true" `
}

func (s *TaobaoLogisticsDummySendRequest) SetFeature(v string) *TaobaoLogisticsDummySendRequest {
	s.Feature = &v
	return s
}
func (s *TaobaoLogisticsDummySendRequest) SetSellerIp(v string) *TaobaoLogisticsDummySendRequest {
	s.SellerIp = &v
	return s
}
func (s *TaobaoLogisticsDummySendRequest) SetTid(v int64) *TaobaoLogisticsDummySendRequest {
	s.Tid = &v
	return s
}

func (req *TaobaoLogisticsDummySendRequest) ToMap() map[string]interface{} {
	paramMap := make(map[string]interface{})
	if req.Feature != nil {
		paramMap["feature"] = *req.Feature
	}
	if req.SellerIp != nil {
		paramMap["seller_ip"] = *req.SellerIp
	}
	if req.Tid != nil {
		paramMap["tid"] = *req.Tid
	}
	return paramMap
}

func (req *TaobaoLogisticsDummySendRequest) ToFileMap() map[string]interface{} {
	fileMap := make(map[string]interface{})
	return fileMap
}
