delivery

package
v0.0.0-...-32237eb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 13, 2013 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

提供了发货,物流单详情,区域地址和物流公司信息查询功能 auto sdk from taobao ApiMetadata.xml version 20130808 auther: dz7changkong@qq.com

Index

Constants

View Source
const VersionNo = "20130808"

Variables

This section is empty.

Functions

This section is empty.

Types

type AddressResult

type AddressResult struct {
	Addr          string `json:"addr"`
	AreaId        int    `json:"area_id"`
	CancelDef     bool   `json:"cancel_def"`
	City          string `json:"city"`
	ContactId     int    `json:"contact_id"`
	ContactName   string `json:"contact_name"`
	Country       string `json:"country"`
	GetDef        bool   `json:"get_def"`
	Memo          string `json:"memo"`
	MobilePhone   string `json:"mobile_phone"`
	ModifyDate    string `json:"modify_date"`
	Phone         string `json:"phone"`
	Province      string `json:"province"`
	SellerCompany string `json:"seller_company"`
	SendDef       bool   `json:"send_def"`
	ZipCode       string `json:"zip_code"`
}

地址库返回数据信息

type AlibabaLogisticsOrderCancelRequest

type AlibabaLogisticsOrderCancelRequest struct {
	open_taobao.TaobaoMethodRequest
}

运单发货后,客户或者系统需要撤销运单时,调用撤销接口。

func (*AlibabaLogisticsOrderCancelRequest) GetResponse

func (*AlibabaLogisticsOrderCancelRequest) SetOrderId

func (r *AlibabaLogisticsOrderCancelRequest) SetOrderId(value string)

物流订单id

func (*AlibabaLogisticsOrderCancelRequest) SetReason

func (r *AlibabaLogisticsOrderCancelRequest) SetReason(value string)

撤销原因说明。

type AlibabaLogisticsOrderCancelResponse

type AlibabaLogisticsOrderCancelResponse struct {
	CancelOrderResult *CancelOrderResult `json:"cancel_order_result"`
}

type AlibabaLogisticsOrderCancelResponseResult

type AlibabaLogisticsOrderCancelResponseResult struct {
	Response *AlibabaLogisticsOrderCancelResponse `json:"alibaba_logistics_order_cancel_response"`
}

type AlibabaLogisticsOrderChargeRequest

type AlibabaLogisticsOrderChargeRequest struct {
	open_taobao.TaobaoMethodRequest
}

订单价格计算

func (*AlibabaLogisticsOrderChargeRequest) GetResponse

func (*AlibabaLogisticsOrderChargeRequest) SetCargoDescription

func (r *AlibabaLogisticsOrderChargeRequest) SetCargoDescription(value string)

货物描述

func (*AlibabaLogisticsOrderChargeRequest) SetCargoName

func (r *AlibabaLogisticsOrderChargeRequest) SetCargoName(value string)

货物名称

func (*AlibabaLogisticsOrderChargeRequest) SetPayType

func (r *AlibabaLogisticsOrderChargeRequest) SetPayType(value string)

付款方式。0:发货人支付;1:收货人支付;2:双方支付

func (*AlibabaLogisticsOrderChargeRequest) SetRouteCode

func (r *AlibabaLogisticsOrderChargeRequest) SetRouteCode(value string)

线路标志

func (*AlibabaLogisticsOrderChargeRequest) SetTotalNumber

func (r *AlibabaLogisticsOrderChargeRequest) SetTotalNumber(value string)

货物件数

func (*AlibabaLogisticsOrderChargeRequest) SetTotalVolume

func (r *AlibabaLogisticsOrderChargeRequest) SetTotalVolume(value string)

货物体积

func (*AlibabaLogisticsOrderChargeRequest) SetTotalWeight

func (r *AlibabaLogisticsOrderChargeRequest) SetTotalWeight(value string)

货物重量

func (*AlibabaLogisticsOrderChargeRequest) SetVasList

func (r *AlibabaLogisticsOrderChargeRequest) SetVasList(value string)

下单选中的增值服务

type AlibabaLogisticsOrderChargeResponse

type AlibabaLogisticsOrderChargeResponse struct {
	OrderCharge *OrderCharge `json:"order_charge"`
}

type AlibabaLogisticsOrderChargeResponseResult

type AlibabaLogisticsOrderChargeResponseResult struct {
	Response *AlibabaLogisticsOrderChargeResponse `json:"alibaba_logistics_order_charge_response"`
}

type AlibabaLogisticsOrderConsignRequest

type AlibabaLogisticsOrderConsignRequest struct {
	open_taobao.TaobaoMethodRequest
}

货运发货接口。通过该接口可以在通过淘宝对物流公司下单,并且可以享有部分折扣优惠。

func (*AlibabaLogisticsOrderConsignRequest) GetResponse

func (*AlibabaLogisticsOrderConsignRequest) SetCargoDescription

func (r *AlibabaLogisticsOrderConsignRequest) SetCargoDescription(value string)

货物描述

func (*AlibabaLogisticsOrderConsignRequest) SetCargoName

func (r *AlibabaLogisticsOrderConsignRequest) SetCargoName(value string)

货物名称

func (*AlibabaLogisticsOrderConsignRequest) SetOrderId

func (r *AlibabaLogisticsOrderConsignRequest) SetOrderId(value string)

物流订单id

func (*AlibabaLogisticsOrderConsignRequest) SetPayType

func (r *AlibabaLogisticsOrderConsignRequest) SetPayType(value string)

付款方式。0:发货人支付;1:收货人支付;2:双方支付

func (*AlibabaLogisticsOrderConsignRequest) SetReceiverAddress

func (r *AlibabaLogisticsOrderConsignRequest) SetReceiverAddress(value string)

收件人地址

func (*AlibabaLogisticsOrderConsignRequest) SetReceiverAreaId

func (r *AlibabaLogisticsOrderConsignRequest) SetReceiverAreaId(value string)

收件人地区编码

func (*AlibabaLogisticsOrderConsignRequest) SetReceiverCityName

func (r *AlibabaLogisticsOrderConsignRequest) SetReceiverCityName(value string)

收件人城市名

func (*AlibabaLogisticsOrderConsignRequest) SetReceiverCorpName

func (r *AlibabaLogisticsOrderConsignRequest) SetReceiverCorpName(value string)

收件人公司名称

func (*AlibabaLogisticsOrderConsignRequest) SetReceiverCountyName

func (r *AlibabaLogisticsOrderConsignRequest) SetReceiverCountyName(value string)

收件人区名

func (*AlibabaLogisticsOrderConsignRequest) SetReceiverMobile

func (r *AlibabaLogisticsOrderConsignRequest) SetReceiverMobile(value string)

收件人手机号

func (*AlibabaLogisticsOrderConsignRequest) SetReceiverName

func (r *AlibabaLogisticsOrderConsignRequest) SetReceiverName(value string)

收件人名

func (*AlibabaLogisticsOrderConsignRequest) SetReceiverPhoneAreaCode

func (r *AlibabaLogisticsOrderConsignRequest) SetReceiverPhoneAreaCode(value string)

收件人电话区号

func (*AlibabaLogisticsOrderConsignRequest) SetReceiverPhoneTel

func (r *AlibabaLogisticsOrderConsignRequest) SetReceiverPhoneTel(value string)

收件人电话号码

func (*AlibabaLogisticsOrderConsignRequest) SetReceiverPhoneTelExt

func (r *AlibabaLogisticsOrderConsignRequest) SetReceiverPhoneTelExt(value string)

收件人电话分机号

func (*AlibabaLogisticsOrderConsignRequest) SetReceiverPostcode

func (r *AlibabaLogisticsOrderConsignRequest) SetReceiverPostcode(value string)

收件人邮编

func (*AlibabaLogisticsOrderConsignRequest) SetReceiverProvinceName

func (r *AlibabaLogisticsOrderConsignRequest) SetReceiverProvinceName(value string)

收件人省名

func (*AlibabaLogisticsOrderConsignRequest) SetReceiverWangwangNo

func (r *AlibabaLogisticsOrderConsignRequest) SetReceiverWangwangNo(value string)

收件人旺旺号

func (*AlibabaLogisticsOrderConsignRequest) SetRefunderAddress

func (r *AlibabaLogisticsOrderConsignRequest) SetRefunderAddress(value string)

退货接收人地址

func (*AlibabaLogisticsOrderConsignRequest) SetRefunderAreaId

func (r *AlibabaLogisticsOrderConsignRequest) SetRefunderAreaId(value string)

退货接收人地区id

func (*AlibabaLogisticsOrderConsignRequest) SetRefunderCityName

func (r *AlibabaLogisticsOrderConsignRequest) SetRefunderCityName(value string)

退货接收人城市名

func (*AlibabaLogisticsOrderConsignRequest) SetRefunderCorpName

func (r *AlibabaLogisticsOrderConsignRequest) SetRefunderCorpName(value string)

退货接收人公司名称

func (*AlibabaLogisticsOrderConsignRequest) SetRefunderCountyName

func (r *AlibabaLogisticsOrderConsignRequest) SetRefunderCountyName(value string)

退货接收人区名

func (*AlibabaLogisticsOrderConsignRequest) SetRefunderMobile

func (r *AlibabaLogisticsOrderConsignRequest) SetRefunderMobile(value string)

退货接收人手机号码

func (*AlibabaLogisticsOrderConsignRequest) SetRefunderName

func (r *AlibabaLogisticsOrderConsignRequest) SetRefunderName(value string)

退货接收人姓名

func (*AlibabaLogisticsOrderConsignRequest) SetRefunderPhoneAreaCode

func (r *AlibabaLogisticsOrderConsignRequest) SetRefunderPhoneAreaCode(value string)

退货接收人电话区号

func (*AlibabaLogisticsOrderConsignRequest) SetRefunderPhoneTel

func (r *AlibabaLogisticsOrderConsignRequest) SetRefunderPhoneTel(value string)

退货接收人电话号码

func (*AlibabaLogisticsOrderConsignRequest) SetRefunderPhoneTelExt

func (r *AlibabaLogisticsOrderConsignRequest) SetRefunderPhoneTelExt(value string)

退货接收人电话分机号

func (*AlibabaLogisticsOrderConsignRequest) SetRefunderPostcode

func (r *AlibabaLogisticsOrderConsignRequest) SetRefunderPostcode(value string)

退货接收人邮编

func (*AlibabaLogisticsOrderConsignRequest) SetRefunderProvinceName

func (r *AlibabaLogisticsOrderConsignRequest) SetRefunderProvinceName(value string)

退货接收人省名

func (*AlibabaLogisticsOrderConsignRequest) SetRefunderWangwangNo

func (r *AlibabaLogisticsOrderConsignRequest) SetRefunderWangwangNo(value string)

退货接收人旺旺id

func (*AlibabaLogisticsOrderConsignRequest) SetRemark

func (r *AlibabaLogisticsOrderConsignRequest) SetRemark(value string)

发货备注

func (*AlibabaLogisticsOrderConsignRequest) SetRouteCode

func (r *AlibabaLogisticsOrderConsignRequest) SetRouteCode(value string)

线路code,线路的业务标识。

func (*AlibabaLogisticsOrderConsignRequest) SetSenderAddress

func (r *AlibabaLogisticsOrderConsignRequest) SetSenderAddress(value string)

发货人地址

func (*AlibabaLogisticsOrderConsignRequest) SetSenderAreaId

func (r *AlibabaLogisticsOrderConsignRequest) SetSenderAreaId(value string)

发货地区编码

func (*AlibabaLogisticsOrderConsignRequest) SetSenderCityName

func (r *AlibabaLogisticsOrderConsignRequest) SetSenderCityName(value string)

发货人城市名

func (*AlibabaLogisticsOrderConsignRequest) SetSenderCorpName

func (r *AlibabaLogisticsOrderConsignRequest) SetSenderCorpName(value string)

发货人公司名称

func (*AlibabaLogisticsOrderConsignRequest) SetSenderCountyName

func (r *AlibabaLogisticsOrderConsignRequest) SetSenderCountyName(value string)

发货人区名

func (*AlibabaLogisticsOrderConsignRequest) SetSenderMobile

func (r *AlibabaLogisticsOrderConsignRequest) SetSenderMobile(value string)

发货人手机号

func (*AlibabaLogisticsOrderConsignRequest) SetSenderName

func (r *AlibabaLogisticsOrderConsignRequest) SetSenderName(value string)

发货人姓名

func (*AlibabaLogisticsOrderConsignRequest) SetSenderPhoneAreaCode

func (r *AlibabaLogisticsOrderConsignRequest) SetSenderPhoneAreaCode(value string)

发货人电话区号

func (*AlibabaLogisticsOrderConsignRequest) SetSenderPhoneTel

func (r *AlibabaLogisticsOrderConsignRequest) SetSenderPhoneTel(value string)

发货人电话

func (*AlibabaLogisticsOrderConsignRequest) SetSenderPhoneTelExt

func (r *AlibabaLogisticsOrderConsignRequest) SetSenderPhoneTelExt(value string)

发货人电话分机号

func (*AlibabaLogisticsOrderConsignRequest) SetSenderPostcode

func (r *AlibabaLogisticsOrderConsignRequest) SetSenderPostcode(value string)

发货人地区邮编

func (*AlibabaLogisticsOrderConsignRequest) SetSenderProvinceName

func (r *AlibabaLogisticsOrderConsignRequest) SetSenderProvinceName(value string)

发货人省名

func (*AlibabaLogisticsOrderConsignRequest) SetSenderWangwangNo

func (r *AlibabaLogisticsOrderConsignRequest) SetSenderWangwangNo(value string)

发货人旺旺号

func (*AlibabaLogisticsOrderConsignRequest) SetSource

func (r *AlibabaLogisticsOrderConsignRequest) SetSource(value string)

top开放的来源。默认都使用:TAOBAO_TOP。

func (*AlibabaLogisticsOrderConsignRequest) SetTotalNumber

func (r *AlibabaLogisticsOrderConsignRequest) SetTotalNumber(value string)

货物件数

func (*AlibabaLogisticsOrderConsignRequest) SetTotalVolume

func (r *AlibabaLogisticsOrderConsignRequest) SetTotalVolume(value string)

货物体积

func (*AlibabaLogisticsOrderConsignRequest) SetTotalWeight

func (r *AlibabaLogisticsOrderConsignRequest) SetTotalWeight(value string)

货物重量

func (*AlibabaLogisticsOrderConsignRequest) SetVasList

func (r *AlibabaLogisticsOrderConsignRequest) SetVasList(value string)

下单选中的增值服务

type AlibabaLogisticsOrderConsignResponse

type AlibabaLogisticsOrderConsignResponse struct {
	ConsignResult *ConsignResult `json:"consign_result"`
}

type AlibabaLogisticsOrderConsignResponseResult

type AlibabaLogisticsOrderConsignResponseResult struct {
	Response *AlibabaLogisticsOrderConsignResponse `json:"alibaba_logistics_order_consign_response"`
}

type AlibabaLogisticsRouteQueryRequest

type AlibabaLogisticsRouteQueryRequest struct {
	open_taobao.TaobaoMethodRequest
}

根据始发地,目的地等条件查询线路的分页列表

func (*AlibabaLogisticsRouteQueryRequest) GetResponse

func (*AlibabaLogisticsRouteQueryRequest) SetAirTransport

func (r *AlibabaLogisticsRouteQueryRequest) SetAirTransport(value string)

是否是空运的条件

func (*AlibabaLogisticsRouteQueryRequest) SetCorpList

func (r *AlibabaLogisticsRouteQueryRequest) SetCorpList(value string)

过滤线路的公司塞选条件

func (*AlibabaLogisticsRouteQueryRequest) SetEndAreaId

func (r *AlibabaLogisticsRouteQueryRequest) SetEndAreaId(value string)

目的地id,可以是市和区

func (*AlibabaLogisticsRouteQueryRequest) SetMergeRoute

func (r *AlibabaLogisticsRouteQueryRequest) SetMergeRoute(value string)

是否合并线路

func (*AlibabaLogisticsRouteQueryRequest) SetPageIndex

func (r *AlibabaLogisticsRouteQueryRequest) SetPageIndex(value string)

当前第几页

func (*AlibabaLogisticsRouteQueryRequest) SetPageSize

func (r *AlibabaLogisticsRouteQueryRequest) SetPageSize(value string)

每页显示的线路数

func (*AlibabaLogisticsRouteQueryRequest) SetShowCods

func (r *AlibabaLogisticsRouteQueryRequest) SetShowCods(value string)

线路是否具有代收货款服务

func (*AlibabaLogisticsRouteQueryRequest) SetShowSpecials

func (r *AlibabaLogisticsRouteQueryRequest) SetShowSpecials(value string)

线路是否显示保障服务

func (*AlibabaLogisticsRouteQueryRequest) SetShowStatisticsInfo

func (r *AlibabaLogisticsRouteQueryRequest) SetShowStatisticsInfo(value string)

是否在线路中显示评价和网点信息

func (*AlibabaLogisticsRouteQueryRequest) SetSortType

func (r *AlibabaLogisticsRouteQueryRequest) SetSortType(value string)

线路排序方式。具体值如下,precise:精确匹配,corp:公司,wpa:重物价格升序,wpd:重物价格降序,vpa:体积价格升序,vpd:体积价格降序,trtid:运输时效降序,trtia:运输时效升序,corpLevel:公司级别,品牌>集市,evalScore:评价分数,routeTop:线路是否置顶,orderCount:下单量多少排序,special:保障服务优先排序。

func (*AlibabaLogisticsRouteQueryRequest) SetSource

func (r *AlibabaLogisticsRouteQueryRequest) SetSource(value string)

数据来源,默认开放部分物流公司。

func (*AlibabaLogisticsRouteQueryRequest) SetStartAreaId

func (r *AlibabaLogisticsRouteQueryRequest) SetStartAreaId(value string)

起始地id,可以是市和区

func (*AlibabaLogisticsRouteQueryRequest) SetSummaryTotalCorps

func (r *AlibabaLogisticsRouteQueryRequest) SetSummaryTotalCorps(value string)

是否查询总的查询条件的公司数目

func (*AlibabaLogisticsRouteQueryRequest) SetSummeryByCorp

func (r *AlibabaLogisticsRouteQueryRequest) SetSummeryByCorp(value string)

是否统计对应公司的线路数

func (*AlibabaLogisticsRouteQueryRequest) SetTurnLevel

func (r *AlibabaLogisticsRouteQueryRequest) SetTurnLevel(value string)

如果查找不到指定地区的线路,是否对地址进行上翻。如杭州市滨江区的地址呗翻转为杭州市。

type AlibabaLogisticsRouteQueryResponse

type AlibabaLogisticsRouteQueryResponse struct {
	QueryRouteResult *QueryRouteResult `json:"query_route_result"`
}

type AlibabaLogisticsRouteQueryResponseResult

type AlibabaLogisticsRouteQueryResponseResult struct {
	Response *AlibabaLogisticsRouteQueryResponse `json:"alibaba_logistics_route_query_response"`
}

type Area

type Area struct {
	Id       int    `json:"id"`
	Name     string `json:"name"`
	ParentId int    `json:"parent_id"`
	Type     int    `json:"type"`
	Zip      string `json:"zip"`
}

地址区域结构

type AreasGetRequest

type AreasGetRequest struct {
	open_taobao.TaobaoMethodRequest
}

查询标准地址区域代码信息 参考:http://www.stats.gov.cn/tjbz/xzqhdm/t20100623_402652267.htm

func (*AreasGetRequest) GetResponse

func (r *AreasGetRequest) GetResponse(accessToken string) (*AreasGetResponse, []byte, error)

func (*AreasGetRequest) SetFields

func (r *AreasGetRequest) SetFields(value string)

需返回的字段列表.可选值:Area 结构中的所有字段;多个字段之间用","分隔.如:id,type,name,parent_id,zip.

type AreasGetResponse

type AreasGetResponse struct {
	Areas []*Area `json:"areas"`
}

type AreasGetResponseResult

type AreasGetResponseResult struct {
	Response *AreasGetResponse `json:"areas_get_response"`
}

type CancelOrderResult

type CancelOrderResult struct {
	RecreateOrderId int `json:"recreate_order_id"`
}

撤销运单结果

type CarriageDetail

type CarriageDetail struct {
	AddFee        int    `json:"add_fee"`
	AddWeight     int    `json:"add_weight"`
	DamagePayment string `json:"damage_payment"`
	GotTime       string `json:"got_time"`
	InitialFee    int    `json:"initial_fee"`
	InitialWeight int    `json:"initial_weight"`
	LostPayment   string `json:"lost_payment"`
	WayDay        string `json:"way_day"`
}

物流公司资费相关信息

type CompanyRouteSummary

type CompanyRouteSummary struct {
	CompanyCode string `json:"company_code"`
	CompanyId   string `json:"company_id"`
	CompanyName string `json:"company_name"`
	RouteCounts int    `json:"route_counts"`
}

公司的线路统计

type ComplexLogisticsRoute

type ComplexLogisticsRoute struct {
	CarriageInfo     *RouteCarriageInfo   `json:"carriage_info"`
	Company          *FreightCompany      `json:"company"`
	ExtenalInfo      *RouteExtenalInfo    `json:"extenal_info"`
	FromAreaId       int                  `json:"from_area_id"`
	FromCityName     string               `json:"from_city_name"`
	FromCountyName   string               `json:"from_county_name"`
	FromProvinceName string               `json:"from_province_name"`
	PromotionInfo    *RoutePromotionInfo  `json:"promotion_info"`
	RouteCode        string               `json:"route_code"`
	StatisticsInfo   *RouteStatisticsInfo `json:"statistics_info"`
	ToAreaId         int                  `json:"to_area_id"`
	ToCityName       string               `json:"to_city_name"`
	ToCountyName     string               `json:"to_county_name"`
	ToProvinceName   string               `json:"to_province_name"`
}

线路的整条完整信息

type ConsignResult

type ConsignResult struct {
	LogisticsId string `json:"logistics_id"`
	OrderId     int    `json:"order_id"`
}

发货返回结果

type DeliveryTemplate

type DeliveryTemplate struct {
	Address       string    `json:"address"`
	Assumer       int       `json:"assumer"`
	ConsignAreaId int       `json:"consign_area_id"`
	Created       string    `json:"created"`
	FeeList       []*TopFee `json:"fee_list"`
	Modified      string    `json:"modified"`
	Name          string    `json:"name"`
	Supports      string    `json:"supports"`
	TemplateId    int       `json:"template_id"`
	Valuation     int       `json:"valuation"`
}

运费模板对象

type DeliveryTemplateAddRequest

type DeliveryTemplateAddRequest struct {
	open_taobao.TaobaoMethodRequest
}

新增运费模板

func (*DeliveryTemplateAddRequest) GetResponse

func (r *DeliveryTemplateAddRequest) GetResponse(accessToken string) (*DeliveryTemplateAddResponse, []byte, error)

func (*DeliveryTemplateAddRequest) SetAssumer

func (r *DeliveryTemplateAddRequest) SetAssumer(value string)

可选值:0,1 <br> 说明<br>0:表示买家承担服务费;<br>1:表示卖家承担服务费

func (*DeliveryTemplateAddRequest) SetConsignAreaId

func (r *DeliveryTemplateAddRequest) SetConsignAreaId(value string)
卖家发货地址区域ID

<br/><br/><font color=blue>可以不填,如果没有填写取卖家默认发货地址的区域ID,如果需要输入必须用taobao.areas.get接口获取.或者参考:http://www.stats.gov.cn/tjbz/xzqhdm/t20080215_402462675.htm </font>

<br/><br/><font color=red>注意:填入该值时必须取您的发货地址最小区域级别ID,比如您的发货地址是:某省XX市xx区(县)时需要填入区(县)的ID,当然有些地方没有区或县可以直接填市级别的ID</font>

func (*DeliveryTemplateAddRequest) SetName

func (r *DeliveryTemplateAddRequest) SetName(value string)

运费模板的名称,长度不能超过50个字节

func (*DeliveryTemplateAddRequest) SetTemplateAddFees

func (r *DeliveryTemplateAddRequest) SetTemplateAddFees(value string)
增费:输入0.00-999.99(最多包含两位小数)

<br/><br/><font color=blue>增费必须小于等于首费,但是当首费为0时增费可以大于首费</font>

<br/><br/><font color=red>输入的格式分号个数和template_types数量一致,逗号个数必须与template_dests以分号隔开之后一一对应的数量一致</font>

func (*DeliveryTemplateAddRequest) SetTemplateAddStandards

func (r *DeliveryTemplateAddRequest) SetTemplateAddStandards(value string)
增费标准:当valuation(记价方式)为0时输入1-9999范围内的整数<br/><br/><font color=red>当valuation(记价方式)为1时输入0.1-9999.9范围内的小数只能包含以为小数(单位为千克)<br/><br/><font color=blue>当valuation(记价方式)为3时输入0.1-999.9范围内的数值,数值只能包含一位小数(单位为 立方米)

<br/> <br/> <br/>

<br><font color=red>输入的格式分号个数和template_types数量一致,逗号个数必须与template_dests以分号隔开之后一一对应的数量一致</font>

func (*DeliveryTemplateAddRequest) SetTemplateDests

func (r *DeliveryTemplateAddRequest) SetTemplateDests(value string)
邮费子项涉及的地区.结构: value1;value2;value3,value4

<br>如:1,110000;1,110000;1,310000;1,320000,330000。 aredId解释(1=全国,110000=北京,310000=上海,320000=江苏,330000=浙江) 如果template_types设置为post;ems;exmpress;cod则表示为平邮(post)指定默认地区(全国)和北京地区的运费;其他的类似以分号区分一一对应 <br/>可以用taobao.areas.get接口获取.或者参考:http://www.stats.gov.cn/tjbz/xzqhdm/t20080215_402462675.htm <br/><font color=red>每个运费方式设置的设涉及地区中必须包含全国地区(areaId=1)表示默认运费,可以只设置默认运费</font> <br><font color=blue>注意:为多个地区指定指定不同(首费标准、首费、增费标准、增费一项不一样就算不同)的运费以逗号","区分, template_start_standards(首费标准)、template_start_fees(首费)、 template_add_standards(增费标准)、 template_add_fees(增费)必须与template_types分号数量相同。如果为需要为多个地区指定相同运费则地区之间用“|”隔开即可。</font> <font color=red>如果卖家没有传入发货地址则默认地址库的发货地址</font>

func (*DeliveryTemplateAddRequest) SetTemplateStartFees

func (r *DeliveryTemplateAddRequest) SetTemplateStartFees(value string)
首费:输入0.00-999.99(最多包含两位小数)

<br/><br><font color=red>输入的格式分号个数和template_types数量一致,逗号个数必须与template_dests以分号隔开之后一一对应的数量一致</font>

func (*DeliveryTemplateAddRequest) SetTemplateStartStandards

func (r *DeliveryTemplateAddRequest) SetTemplateStartStandards(value string)
首费标准:当valuation(记价方式)为0时输入1-9999范围内的整数<br/><br/><font color=red>当valuation(记价方式)为1时输入0.1-9999.9范围内的小数只能包含以为小数(单位为千克)<br/><br/><font color=blue>当valuation(记价方式)为3时输入0.1-999.9范围内的数值,数值只能包含一位小数(单位为 立方米)

<br/> <br/> <br/>

<br><font color=red>输入的格式分号个数和template_types数量一致,逗号个数必须与template_dests以分号隔开之后一一对应的数量一致</font>

func (*DeliveryTemplateAddRequest) SetTemplateTypes

func (r *DeliveryTemplateAddRequest) SetTemplateTypes(value string)
运费方式:平邮 (post),快递公司(express),EMS (ems),货到付款(cod),物流宝保障速递(wlb),家装物流(furniture)结构:value1;value2;value3;value4

如: post;express;ems;cod <br/><br/> <br/><font color=red> 注意:在添加多个运费方式时,字符串中使用 ";" 分号区分 。template_dests(指定地区) template_start_standards(首费标准)、template_start_fees(首费)、template_add_standards(增费标准)、template_add_fees(增费)必须与template_types的分号数量相同. </font> <br><br/><br/>

<font color=blue> 注意:<br/> 1、post,ems,express三种运费方式必须填写一个<br/> 2、只有订购了货到付款用户可以填cod;只有家装物流用户可以填写furniture 只有订购了保障速递的用户可以填写bzsd,只有物流宝用户可以填写wlb<br/> 3、如果是货到付款用户当没有填写cod运送方式的时候运费模板会默认继承express的费用为cod的费用<br/> 4、如果是保障速递户当没有填写bzsd运送方式的时候运费模板会默认继承express的费用为bzsd的费用<br/> 5、由于3和4的原因所以当是货到付款用户或保障速递用户时如果没填写对应的运送方式express是必须填写的 </font>

func (*DeliveryTemplateAddRequest) SetValuation

func (r *DeliveryTemplateAddRequest) SetValuation(value string)
可选值:0<br>说明:<br>0:表示按宝贝件数计算运费 <br>1:表示按宝贝重量计算运费

<br>3:表示按宝贝体积计算运费

type DeliveryTemplateAddResponse

type DeliveryTemplateAddResponse struct {
	DeliveryTemplate *DeliveryTemplate `json:"delivery_template"`
}

type DeliveryTemplateAddResponseResult

type DeliveryTemplateAddResponseResult struct {
	Response *DeliveryTemplateAddResponse `json:"delivery_template_add_response"`
}

type DeliveryTemplateDeleteRequest

type DeliveryTemplateDeleteRequest struct {
	open_taobao.TaobaoMethodRequest
}

根据用户指定的模板ID删除指定的模板

func (*DeliveryTemplateDeleteRequest) GetResponse

func (*DeliveryTemplateDeleteRequest) SetTemplateId

func (r *DeliveryTemplateDeleteRequest) SetTemplateId(value string)

运费模板ID

type DeliveryTemplateDeleteResponse

type DeliveryTemplateDeleteResponse struct {
	Complete bool `json:"complete"`
}

type DeliveryTemplateDeleteResponseResult

type DeliveryTemplateDeleteResponseResult struct {
	Response *DeliveryTemplateDeleteResponse `json:"delivery_template_delete_response"`
}

type DeliveryTemplateGetRequest

type DeliveryTemplateGetRequest struct {
	open_taobao.TaobaoMethodRequest
}

获取用户指定运费模板信息

func (*DeliveryTemplateGetRequest) GetResponse

func (r *DeliveryTemplateGetRequest) GetResponse(accessToken string) (*DeliveryTemplateGetResponse, []byte, error)

func (*DeliveryTemplateGetRequest) SetFields

func (r *DeliveryTemplateGetRequest) SetFields(value string)
需返回的字段列表。 <br/>

<B> 可选值:示例中的值;各字段之间用","隔开 </B> <br/><br/> <font color=blue> template_id:查询模板ID <br/> template_name:查询模板名称 <br/> assumer:查询服务承担放 <br/> valuation:查询计价规则 <br/> supports:查询增值服务列表 <br/> created:查询模板创建时间 <br/> modified:查询修改时间<br/> consign_area_id:运费模板上设置的卖家发货地址最小级别ID<br/> address:卖家地址信息 </font> <br/><br/> <font color=bule> query_cod:查询货到付款运费信息<br/> query_post:查询平邮运费信息 <br/> query_express:查询快递公司运费信息 <br/> query_ems:查询EMS运费信息<br/> query_bzsd:查询普通保障速递运费信息<br/> query_wlb:查询物流宝保障速递运费信息<br/> query_furniture:查询家装物流运费信息 <font color=blue> <br/><br/> <font color=red>不能有空格</font>

func (*DeliveryTemplateGetRequest) SetTemplateIds

func (r *DeliveryTemplateGetRequest) SetTemplateIds(value string)

需要查询的运费模板ID列表

func (*DeliveryTemplateGetRequest) SetUserNick

func (r *DeliveryTemplateGetRequest) SetUserNick(value string)

在没有登录的情况下根据淘宝用户昵称查询指定的模板

type DeliveryTemplateGetResponse

type DeliveryTemplateGetResponse struct {
	DeliveryTemplates []*DeliveryTemplate `json:"delivery_templates"`
	TotalResults      int                 `json:"total_results"`
}

type DeliveryTemplateGetResponseResult

type DeliveryTemplateGetResponseResult struct {
	Response *DeliveryTemplateGetResponse `json:"delivery_template_get_response"`
}

type DeliveryTemplateUpdateRequest

type DeliveryTemplateUpdateRequest struct {
	open_taobao.TaobaoMethodRequest
}

修改运费模板

func (*DeliveryTemplateUpdateRequest) GetResponse

func (*DeliveryTemplateUpdateRequest) SetAssumer

func (r *DeliveryTemplateUpdateRequest) SetAssumer(value string)

可选值:0,1 <br> 说明<br>0:表示买家承担服务费;<br>1:表示卖家承担服务费

func (*DeliveryTemplateUpdateRequest) SetName

func (r *DeliveryTemplateUpdateRequest) SetName(value string)

模板名称,长度不能大于50个字节

func (*DeliveryTemplateUpdateRequest) SetTemplateAddFees

func (r *DeliveryTemplateUpdateRequest) SetTemplateAddFees(value string)

增费:输入0.00-999.99(最多包含两位小数)<br/><font color=blue>增费可以为0</font><br/><font color=red>输入的格式分号个数和template_types数量一致,逗号个数必须与template_dests以分号隔开之后一一对应的数量一致</font>

func (*DeliveryTemplateUpdateRequest) SetTemplateAddStandards

func (r *DeliveryTemplateUpdateRequest) SetTemplateAddStandards(value string)
增费标准:当valuation(记价方式)为0时输入1-9999范围内的整数<br><font color=blue>增费标准目前只能为1</font>

<br><font color=red>输入的格式分号个数和template_types数量一致,逗号个数必须与template_dests以分号隔开之后一一对应的数量一致</font>

func (*DeliveryTemplateUpdateRequest) SetTemplateDests

func (r *DeliveryTemplateUpdateRequest) SetTemplateDests(value string)
邮费子项涉及的地区.结构: value1;value2;value3,value4

<br>如:1,110000;1,110000;1,310000;1,320000,330000。 aredId解释(1=全国,110000=北京,310000=上海,320000=江苏,330000=浙江) 如果template_types设置为post;ems;exmpress;cod则表示为平邮(post)指定默认地区(全国)和北京地区的运费;其他的类似以分号区分一一对应 <br/>可以用taobao.areas.get接口获取.或者参考:http://www.stats.gov.cn/tjbz/xzqhdm/t20080215_402462675.htm <br/><font color=red>每个运费方式设置的设涉及地区中必须包含全国地区(areaId=1)表示默认运费,可以只设置默认运费</font> <br><font color=blue>注意:为多个地区指定指定不同(首费标准、首费、增费标准、增费一项不一样就算不同)的运费以逗号","区分, template_start_standards(首费标准)、template_start_fees(首费)、 template_add_standards(增费标准)、 template_add_fees(增费)必须与template_types分号数量相同。如果为需要为多个地区指定相同运费则地区之间用“|”隔开即可。</font>

func (*DeliveryTemplateUpdateRequest) SetTemplateId

func (r *DeliveryTemplateUpdateRequest) SetTemplateId(value string)

需要修改的模板对应的模板ID

func (*DeliveryTemplateUpdateRequest) SetTemplateStartFees

func (r *DeliveryTemplateUpdateRequest) SetTemplateStartFees(value string)
首费:输入0.01-999.99(最多包含两位小数)

<br/><font color=blue> 首费不能为0</font><br><font color=red>输入的格式分号个数和template_types数量一致,逗号个数必须与template_dests以分号隔开之后一一对应的数量一致</font>

func (*DeliveryTemplateUpdateRequest) SetTemplateStartStandards

func (r *DeliveryTemplateUpdateRequest) SetTemplateStartStandards(value string)
首费标准:当valuation(记价方式)为0时输入1-9999范围内的整数<br><font color=blue>首费标准目前只能为1</br>

<br><font color=red>输入的格式分号个数和template_types数量一致,逗号个数必须与template_dests以分号隔开之后一一对应的数量一致</font>

func (*DeliveryTemplateUpdateRequest) SetTemplateTypes

func (r *DeliveryTemplateUpdateRequest) SetTemplateTypes(value string)
运费方式:平邮 (post),快递公司(express),EMS (ems),货到付款(cod)结构:value1;value2;value3;value4

如: post;express;ems;cod <br/><font color=red> 注意:在添加多个运费方式时,字符串中使用 ";" 分号区分。template_dests(指定地区) template_start_standards(首费标准)、template_start_fees(首费)、template_add_standards(增费标准)、template_add_fees(增费)必须与template_types的分号数量相同.

</font>

<br/> <font color=blue> 普通用户:post,ems,express三种运费方式必须填写一个,不能填写cod。 货到付款用户:如果填写了cod运费方式,则post,ems,express三种运费方式也必须填写一个,如果没有填写cod则填写的运费方式中必须存在express</font>

type DeliveryTemplateUpdateResponse

type DeliveryTemplateUpdateResponse struct {
	Complete bool `json:"complete"`
}

type DeliveryTemplateUpdateResponseResult

type DeliveryTemplateUpdateResponseResult struct {
	Response *DeliveryTemplateUpdateResponse `json:"delivery_template_update_response"`
}

type DeliveryTemplatesGetRequest

type DeliveryTemplatesGetRequest struct {
	open_taobao.TaobaoMethodRequest
}

根据用户ID获取用户下所有模板

func (*DeliveryTemplatesGetRequest) GetResponse

func (r *DeliveryTemplatesGetRequest) GetResponse(accessToken string) (*DeliveryTemplatesGetResponse, []byte, error)

func (*DeliveryTemplatesGetRequest) SetFields

func (r *DeliveryTemplatesGetRequest) SetFields(value string)
需返回的字段列表。 <br/>

<B> 可选值:示例中的值;各字段之间用","隔开 </B> <br/><br/> <font color=blue> template_id:查询模板ID <br/> template_name:查询模板名称 <br/> assumer:查询服务承担放 <br/> valuation:查询计价规则 <br/> supports:查询增值服务列表 <br/> created:查询模板创建时间 <br/> modified:查询修改时间<br/> consign_area_id:运费模板上设置的卖家发货地址最小级别ID<br/> address:卖家地址信息 </font> <br/><br/> <font color=bule> query_cod:查询货到付款运费信息<br/> query_post:查询平邮运费信息 <br/> query_express:查询快递公司运费信息 <br/> query_ems:查询EMS运费信息<br/> query_bzsd:查询普通保障速递运费信息<br/> query_wlb:查询物流宝保障速递运费信息<br/> query_furniture:查询家装物流运费信息 <font color=blue> <br/><br/> <font color=red>不能有空格</font>

type DeliveryTemplatesGetResponse

type DeliveryTemplatesGetResponse struct {
	DeliveryTemplates []*DeliveryTemplate `json:"delivery_templates"`
	TotalResults      int                 `json:"total_results"`
}

type DeliveryTemplatesGetResponseResult

type DeliveryTemplatesGetResponseResult struct {
	Response *DeliveryTemplatesGetResponse `json:"delivery_templates_get_response"`
}

type FreightCompany

type FreightCompany struct {
	Comments           string          `json:"comments"`
	CompanyId          int             `json:"company_id"`
	CompanyName        string          `json:"company_name"`
	CompanyeCode       string          `json:"companye_code"`
	CorpLevel          string          `json:"corp_level"`
	CustomerServiceTel string          `json:"customer_service_tel"`
	LogoUrl            string          `json:"logo_url"`
	ShopUrl            string          `json:"shop_url"`
	Sort               int             `json:"sort"`
	VasFeeHelpUrl      string          `json:"vas_fee_help_url"`
	WangwangList       []*WangwangInfo `json:"wangwang_list"`
}

线路的相关公司信息

type Location

type Location struct {
	Address  string `json:"address"`
	City     string `json:"city"`
	Country  string `json:"country"`
	District string `json:"district"`
	State    string `json:"state"`
	Zip      string `json:"zip"`
}

用户地址

type LogisticsAddressAddRequest

type LogisticsAddressAddRequest struct {
	open_taobao.TaobaoMethodRequest
}

通过此接口新增卖家地址库,卖家最多可添加5条地址库,新增第一条卖家地址,将会自动设为默认地址库

func (*LogisticsAddressAddRequest) GetResponse

func (r *LogisticsAddressAddRequest) GetResponse(accessToken string) (*LogisticsAddressAddResponse, []byte, error)

func (*LogisticsAddressAddRequest) SetAddr

func (r *LogisticsAddressAddRequest) SetAddr(value string)

详细街道地址,不需要重复填写省/市/区

func (*LogisticsAddressAddRequest) SetCancelDef

func (r *LogisticsAddressAddRequest) SetCancelDef(value string)
默认退货地址。<br>

<font color='red'>选择此项(true),将当前地址设为默认退货地址,撤消原默认退货地址</font>

func (*LogisticsAddressAddRequest) SetCity

func (r *LogisticsAddressAddRequest) SetCity(value string)

所在市

func (*LogisticsAddressAddRequest) SetContactName

func (r *LogisticsAddressAddRequest) SetContactName(value string)

联系人姓名 <font color='red'>长度不可超过20个字节</font>

func (*LogisticsAddressAddRequest) SetCountry

func (r *LogisticsAddressAddRequest) SetCountry(value string)
区、县

<br><font color='red'>如果所在地区是海外的可以为空,否则为必参</font>

func (*LogisticsAddressAddRequest) SetGetDef

func (r *LogisticsAddressAddRequest) SetGetDef(value string)
默认取货地址。<br>

<font color='red'>选择此项(true),将当前地址设为默认取货地址,撤消原默认取货地址</font>

func (*LogisticsAddressAddRequest) SetMemo

func (r *LogisticsAddressAddRequest) SetMemo(value string)

备注,<br><font color='red'>备注不能超过256字节</font>

func (*LogisticsAddressAddRequest) SetMobilePhone

func (r *LogisticsAddressAddRequest) SetMobilePhone(value string)
手机号码,手机与电话必需有一个

<br><font color='red'>手机号码不能超过20位</font>

func (*LogisticsAddressAddRequest) SetPhone

func (r *LogisticsAddressAddRequest) SetPhone(value string)

电话号码,手机与电话必需有一个

func (*LogisticsAddressAddRequest) SetProvince

func (r *LogisticsAddressAddRequest) SetProvince(value string)

所在省

func (*LogisticsAddressAddRequest) SetSellerCompany

func (r *LogisticsAddressAddRequest) SetSellerCompany(value string)

公司名称,<br><font color="red">公司名称长能不能超过20字节</font>

func (*LogisticsAddressAddRequest) SetZipCode

func (r *LogisticsAddressAddRequest) SetZipCode(value string)
地区邮政编码

<br><font color='red'>如果所在地区是海外的可以为空,否则为必参</font>

type LogisticsAddressAddResponse

type LogisticsAddressAddResponse struct {
	AddressResult *AddressResult `json:"address_result"`
}

type LogisticsAddressAddResponseResult

type LogisticsAddressAddResponseResult struct {
	Response *LogisticsAddressAddResponse `json:"logistics_address_add_response"`
}

type LogisticsAddressModifyRequest

type LogisticsAddressModifyRequest struct {
	open_taobao.TaobaoMethodRequest
}

卖家地址库修改

func (*LogisticsAddressModifyRequest) GetResponse

func (*LogisticsAddressModifyRequest) SetAddr

func (r *LogisticsAddressModifyRequest) SetAddr(value string)

详细街道地址,不需要重复填写省/市/区

func (*LogisticsAddressModifyRequest) SetCancelDef

func (r *LogisticsAddressModifyRequest) SetCancelDef(value string)
默认退货地址。<br>

<font color='red'>选择此项(true),将当前地址设为默认退货地址,撤消原默认退货地址</font>

func (*LogisticsAddressModifyRequest) SetCity

func (r *LogisticsAddressModifyRequest) SetCity(value string)

所在市

func (*LogisticsAddressModifyRequest) SetContactId

func (r *LogisticsAddressModifyRequest) SetContactId(value string)

地址库ID

func (*LogisticsAddressModifyRequest) SetContactName

func (r *LogisticsAddressModifyRequest) SetContactName(value string)
联系人姓名

<font color='red'>长度不可超过20个字节</font>

func (*LogisticsAddressModifyRequest) SetCountry

func (r *LogisticsAddressModifyRequest) SetCountry(value string)
区、县

<br><font color='red'>如果所在地区是海外的可以为空,否则为必参</font>

func (*LogisticsAddressModifyRequest) SetGetDef

func (r *LogisticsAddressModifyRequest) SetGetDef(value string)
默认取货地址。<br>

<font color='red'>选择此项(true),将当前地址设为默认取货地址,撤消原默认取货地址</font>

func (*LogisticsAddressModifyRequest) SetMemo

func (r *LogisticsAddressModifyRequest) SetMemo(value string)

备注,<br><font color='red'>备注不能超过256字节</font>

func (*LogisticsAddressModifyRequest) SetMobilePhone

func (r *LogisticsAddressModifyRequest) SetMobilePhone(value string)

手机号码,手机与电话必需有一个 <br><font color='red'>手机号码不能超过20位</font>

func (*LogisticsAddressModifyRequest) SetPhone

func (r *LogisticsAddressModifyRequest) SetPhone(value string)

电话号码,手机与电话必需有一个

func (*LogisticsAddressModifyRequest) SetProvince

func (r *LogisticsAddressModifyRequest) SetProvince(value string)

所在省

func (*LogisticsAddressModifyRequest) SetSellerCompany

func (r *LogisticsAddressModifyRequest) SetSellerCompany(value string)
公司名称,

<br><font color='red'>公司名称长能不能超过20字节</font>

func (*LogisticsAddressModifyRequest) SetZipCode

func (r *LogisticsAddressModifyRequest) SetZipCode(value string)
地区邮政编码

<br><font color='red'>如果所在地区是海外的可以为空,否则为必参</font>

type LogisticsAddressModifyResponse

type LogisticsAddressModifyResponse struct {
	AddressResult *AddressResult `json:"address_result"`
}

type LogisticsAddressModifyResponseResult

type LogisticsAddressModifyResponseResult struct {
	Response *LogisticsAddressModifyResponse `json:"logistics_address_modify_response"`
}

type LogisticsAddressRemoveRequest

type LogisticsAddressRemoveRequest struct {
	open_taobao.TaobaoMethodRequest
}

用此接口删除卖家地址库

func (*LogisticsAddressRemoveRequest) GetResponse

func (*LogisticsAddressRemoveRequest) SetContactId

func (r *LogisticsAddressRemoveRequest) SetContactId(value string)

地址库ID

type LogisticsAddressRemoveResponse

type LogisticsAddressRemoveResponse struct {
	AddressResult *AddressResult `json:"address_result"`
}

type LogisticsAddressRemoveResponseResult

type LogisticsAddressRemoveResponseResult struct {
	Response *LogisticsAddressRemoveResponse `json:"logistics_address_remove_response"`
}

type LogisticsAddressSearchRequest

type LogisticsAddressSearchRequest struct {
	open_taobao.TaobaoMethodRequest
}

通过此接口查询卖家地址库,

func (*LogisticsAddressSearchRequest) GetResponse

func (*LogisticsAddressSearchRequest) SetRdef

func (r *LogisticsAddressSearchRequest) SetRdef(value string)
可选,参数列表如下:<br><font color='red'>

no_def:查询非默认地址<br> get_def:查询默认取货地址<br> cancel_def:查询默认退货地址<br> 缺省此参数时,查询所有当前用户的地址库 </font>

type LogisticsAddressSearchResponse

type LogisticsAddressSearchResponse struct {
	Addresses []*AddressResult `json:"addresses"`
}

type LogisticsAddressSearchResponseResult

type LogisticsAddressSearchResponseResult struct {
	Response *LogisticsAddressSearchResponse `json:"logistics_address_search_response"`
}

type LogisticsCompaniesGetRequest

type LogisticsCompaniesGetRequest struct {
	open_taobao.TaobaoMethodRequest
}

查询淘宝网合作的物流公司信息,用于发货接口。

func (*LogisticsCompaniesGetRequest) GetResponse

func (r *LogisticsCompaniesGetRequest) GetResponse(accessToken string) (*LogisticsCompaniesGetResponse, []byte, error)

func (*LogisticsCompaniesGetRequest) SetFields

func (r *LogisticsCompaniesGetRequest) SetFields(value string)
需返回的字段列表。可选值:LogisticCompany 结构中的所有字段;多个字段间用","逗号隔开.

如:id,code,name,reg_mail_no <br><font color='red'>说明:</font> <br>id:物流公司ID <br>code:物流公司code <br>name:物流公司名称 <br>reg_mail_no:物流公司对应的运单规则

func (*LogisticsCompaniesGetRequest) SetIsRecommended

func (r *LogisticsCompaniesGetRequest) SetIsRecommended(value string)

是否查询推荐物流公司.可选值:true,false.如果不提供此参数,将会返回所有支持电话联系的物流公司.

func (*LogisticsCompaniesGetRequest) SetOrderMode

func (r *LogisticsCompaniesGetRequest) SetOrderMode(value string)

推荐物流公司的下单方式.可选值:offline(电话联系/自己联系),online(在线下单),all(即电话联系又在线下单). 此参数仅仅用于is_recommended 为ture时。就是说对于推荐物流公司才可用.如果不选择此参数将会返回推荐物流中支持电话联系的物流公司.

type LogisticsCompaniesGetResponse

type LogisticsCompaniesGetResponse struct {
	LogisticsCompanies []*LogisticsCompany `json:"logistics_companies"`
}

type LogisticsCompaniesGetResponseResult

type LogisticsCompaniesGetResponseResult struct {
	Response *LogisticsCompaniesGetResponse `json:"logistics_companies_get_response"`
}

type LogisticsCompany

type LogisticsCompany struct {
	Code      string `json:"code"`
	Id        int    `json:"id"`
	Name      string `json:"name"`
	RegMailNo string `json:"reg_mail_no"`
}

物流公司基础数据结构

type LogisticsConsignOrderCreateandsendRequest

type LogisticsConsignOrderCreateandsendRequest struct {
	open_taobao.TaobaoMethodRequest
}

创建物流订单,并发货。

func (*LogisticsConsignOrderCreateandsendRequest) GetResponse

func (*LogisticsConsignOrderCreateandsendRequest) SetCompanyId

func (r *LogisticsConsignOrderCreateandsendRequest) SetCompanyId(value string)

物流公司ID

func (*LogisticsConsignOrderCreateandsendRequest) SetItemJsonString

func (r *LogisticsConsignOrderCreateandsendRequest) SetItemJsonString(value string)

物品的json数据。

func (*LogisticsConsignOrderCreateandsendRequest) SetLogisType

func (r *LogisticsConsignOrderCreateandsendRequest) SetLogisType(value string)
物流订单物流类型LogisType

LogisticsOrderConstant.LOGIS_TYPE_RECOMMENDED

func (*LogisticsConsignOrderCreateandsendRequest) SetMailNo

运单号

func (*LogisticsConsignOrderCreateandsendRequest) SetOrderSource

func (r *LogisticsConsignOrderCreateandsendRequest) SetOrderSource(value string)
订单来源,参考:

LogisticsOrderConstant.ORDER_SOURCE_*

func (*LogisticsConsignOrderCreateandsendRequest) SetOrderType

func (r *LogisticsConsignOrderCreateandsendRequest) SetOrderType(value string)
订单类型,参考:

LogisticsOrderConstant.ORDER_TYPE_

func (*LogisticsConsignOrderCreateandsendRequest) SetRAddress

func (r *LogisticsConsignOrderCreateandsendRequest) SetRAddress(value string)

收件人街道地址

func (*LogisticsConsignOrderCreateandsendRequest) SetRAreaId

收件人区域ID

func (*LogisticsConsignOrderCreateandsendRequest) SetRCityName

func (r *LogisticsConsignOrderCreateandsendRequest) SetRCityName(value string)

func (*LogisticsConsignOrderCreateandsendRequest) SetRDistName

func (r *LogisticsConsignOrderCreateandsendRequest) SetRDistName(value string)

func (*LogisticsConsignOrderCreateandsendRequest) SetRMobilePhone

func (r *LogisticsConsignOrderCreateandsendRequest) SetRMobilePhone(value string)

手机号码

func (*LogisticsConsignOrderCreateandsendRequest) SetRName

收件人名称

func (*LogisticsConsignOrderCreateandsendRequest) SetRProvName

func (r *LogisticsConsignOrderCreateandsendRequest) SetRProvName(value string)

func (*LogisticsConsignOrderCreateandsendRequest) SetRTelephone

func (r *LogisticsConsignOrderCreateandsendRequest) SetRTelephone(value string)

电话号码

func (*LogisticsConsignOrderCreateandsendRequest) SetRZipCode

func (r *LogisticsConsignOrderCreateandsendRequest) SetRZipCode(value string)

收件人邮编

func (*LogisticsConsignOrderCreateandsendRequest) SetSAddress

func (r *LogisticsConsignOrderCreateandsendRequest) SetSAddress(value string)

发件人街道地址

func (*LogisticsConsignOrderCreateandsendRequest) SetSAreaId

发件人区域ID

func (*LogisticsConsignOrderCreateandsendRequest) SetSCityName

func (r *LogisticsConsignOrderCreateandsendRequest) SetSCityName(value string)

func (*LogisticsConsignOrderCreateandsendRequest) SetSDistName

func (r *LogisticsConsignOrderCreateandsendRequest) SetSDistName(value string)

func (*LogisticsConsignOrderCreateandsendRequest) SetSMobilePhone

func (r *LogisticsConsignOrderCreateandsendRequest) SetSMobilePhone(value string)

手机号码

func (*LogisticsConsignOrderCreateandsendRequest) SetSName

发件人名称

func (*LogisticsConsignOrderCreateandsendRequest) SetSProvName

func (r *LogisticsConsignOrderCreateandsendRequest) SetSProvName(value string)

func (*LogisticsConsignOrderCreateandsendRequest) SetSTelephone

func (r *LogisticsConsignOrderCreateandsendRequest) SetSTelephone(value string)

电话号码

func (*LogisticsConsignOrderCreateandsendRequest) SetSZipCode

func (r *LogisticsConsignOrderCreateandsendRequest) SetSZipCode(value string)

发件人出编

func (*LogisticsConsignOrderCreateandsendRequest) SetShipping

func (r *LogisticsConsignOrderCreateandsendRequest) SetShipping(value string)

费用承担方式 1买家承担运费 2卖家承担运费

func (*LogisticsConsignOrderCreateandsendRequest) SetTradeId

交易流水号

func (*LogisticsConsignOrderCreateandsendRequest) SetUserId

用户ID

type LogisticsConsignOrderCreateandsendResponse

type LogisticsConsignOrderCreateandsendResponse struct {
	IsSuccess  bool   `json:"is_success"`
	OrderId    int    `json:"order_id"`
	ResultDesc string `json:"result_desc"`
}

type LogisticsConsignOrderCreateandsendResponseResult

type LogisticsConsignOrderCreateandsendResponseResult struct {
	Response *LogisticsConsignOrderCreateandsendResponse `json:"logistics_consign_order_createandsend_response"`
}

type LogisticsConsignResendRequest

type LogisticsConsignResendRequest struct {
	open_taobao.TaobaoMethodRequest
}
支持卖家发货后修改物流公司和运单号。支持订单类型支持在线下单和自己联系。

自己联系只能切换为自己联系的公司,在线下单也只能切换为在线下单的物流公司。

调用时订单状态是卖家已发货,自己联系在发货后24小时内在线下单未揽收成功才可使用

func (*LogisticsConsignResendRequest) GetResponse

func (*LogisticsConsignResendRequest) SetCompanyCode

func (r *LogisticsConsignResendRequest) SetCompanyCode(value string)
物流公司代码.如"POST"就代表中国邮政,"ZJS"就代表宅急送.调用 taobao.logistics.companies.get 获取。

<br><font color='red'>如果是货到付款订单,选择的物流公司必须支持货到付款发货方式</font>

func (*LogisticsConsignResendRequest) SetFeature

func (r *LogisticsConsignResendRequest) SetFeature(value string)
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> 当存在"|"时,就说明订单中存在多个商品,商品间用"|"分隔了开来。|"之后的内容含义同上。

func (*LogisticsConsignResendRequest) SetIsSplit

func (r *LogisticsConsignResendRequest) SetIsSplit(value string)

表明是否是拆单,默认值0,1表示拆单

func (*LogisticsConsignResendRequest) SetOutSid

func (r *LogisticsConsignResendRequest) SetOutSid(value string)

运单号.具体一个物流公司的真实运单号码。淘宝官方物流会校验,请谨慎传入;

func (*LogisticsConsignResendRequest) SetSellerIp

func (r *LogisticsConsignResendRequest) SetSellerIp(value string)

商家的IP地址

func (*LogisticsConsignResendRequest) SetSubTid

func (r *LogisticsConsignResendRequest) SetSubTid(value string)

拆单子订单列表,对应的数据是:子订单号的列表。可以不传,但是如果传了则必须符合传递的规则。子订单必须是操作的物流订单的子订单的真子集!

func (*LogisticsConsignResendRequest) SetTid

func (r *LogisticsConsignResendRequest) SetTid(value string)

淘宝交易ID

type LogisticsConsignResendResponse

type LogisticsConsignResendResponse struct {
	Shipping *Shipping `json:"shipping"`
}

type LogisticsConsignResendResponseResult

type LogisticsConsignResendResponseResult struct {
	Response *LogisticsConsignResendResponse `json:"logistics_consign_resend_response"`
}

type LogisticsDummySendRequest

type LogisticsDummySendRequest struct {
	open_taobao.TaobaoMethodRequest
}

用户调用该接口可实现无需物流(虚拟)发货,使用该接口发货,交易订单状态会直接变成卖家已发货

func (*LogisticsDummySendRequest) GetResponse

func (r *LogisticsDummySendRequest) GetResponse(accessToken string) (*LogisticsDummySendResponse, []byte, error)

func (*LogisticsDummySendRequest) SetFeature

func (r *LogisticsDummySendRequest) SetFeature(value string)
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> 当存在"|"时,就说明订单中存在多个商品,商品间用"|"分隔了开来。|"之后的内容含义同上。

func (*LogisticsDummySendRequest) SetSellerIp

func (r *LogisticsDummySendRequest) SetSellerIp(value string)

商家的IP地址

func (*LogisticsDummySendRequest) SetTid

func (r *LogisticsDummySendRequest) SetTid(value string)

淘宝交易ID

type LogisticsDummySendResponse

type LogisticsDummySendResponse struct {
	Shipping *Shipping `json:"shipping"`
}

type LogisticsDummySendResponseResult

type LogisticsDummySendResponseResult struct {
	Response *LogisticsDummySendResponse `json:"logistics_dummy_send_response"`
}

type LogisticsOfflineSendRequest

type LogisticsOfflineSendRequest struct {
	open_taobao.TaobaoMethodRequest
}

用户调用该接口可实现自己联系发货(线下物流),使用该接口发货,交易订单状态会直接变成卖家已发货。不支持货到付款、在线下单类型的订单。

func (*LogisticsOfflineSendRequest) GetResponse

func (r *LogisticsOfflineSendRequest) GetResponse(accessToken string) (*LogisticsOfflineSendResponse, []byte, error)

func (*LogisticsOfflineSendRequest) SetCancelId

func (r *LogisticsOfflineSendRequest) SetCancelId(value string)

卖家联系人地址库ID,可以通过taobao.logistics.address.search接口查询到地址库ID。<br><font color='red'>如果为空,取的卖家的默认退货地址</font><br>

func (*LogisticsOfflineSendRequest) SetCompanyCode

func (r *LogisticsOfflineSendRequest) SetCompanyCode(value string)

物流公司代码.如"POST"就代表中国邮政,"ZJS"就代表宅急送.调用 taobao.logistics.companies.get 获取。非淘宝官方物流合作公司,填写具体的物流公司名称,如“顺丰”。

func (*LogisticsOfflineSendRequest) SetFeature

func (r *LogisticsOfflineSendRequest) SetFeature(value string)
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> 当存在"|"时,就说明订单中存在多个商品,商品间用"|"分隔了开来。|"之后的内容含义同上。

func (*LogisticsOfflineSendRequest) SetIsSplit

func (r *LogisticsOfflineSendRequest) SetIsSplit(value string)
表明是否是拆单

1表示拆单 0表示不拆单,默认值0

func (*LogisticsOfflineSendRequest) SetOutSid

func (r *LogisticsOfflineSendRequest) SetOutSid(value string)

运单号.具体一个物流公司的真实运单号码。淘宝官方物流会校验,请谨慎传入;若company_code中传入的代码非淘宝官方物流合作公司,此处运单号不校验。

func (*LogisticsOfflineSendRequest) SetSellerIp

func (r *LogisticsOfflineSendRequest) SetSellerIp(value string)

商家的IP地址

func (*LogisticsOfflineSendRequest) SetSenderId

func (r *LogisticsOfflineSendRequest) SetSenderId(value string)

卖家联系人地址库ID,可以通过taobao.logistics.address.search接口查询到地址库ID。<font color='red'>如果为空,取的卖家的默认取货地址</font>

func (*LogisticsOfflineSendRequest) SetSubTid

func (r *LogisticsOfflineSendRequest) SetSubTid(value string)

需要拆单发货的子订单集合,为空表示不做拆单发货。

func (*LogisticsOfflineSendRequest) SetTid

func (r *LogisticsOfflineSendRequest) SetTid(value string)

淘宝交易ID

type LogisticsOfflineSendResponse

type LogisticsOfflineSendResponse struct {
	Shipping *Shipping `json:"shipping"`
}

type LogisticsOfflineSendResponseResult

type LogisticsOfflineSendResponseResult struct {
	Response *LogisticsOfflineSendResponse `json:"logistics_offline_send_response"`
}

type LogisticsOnlineCancelRequest

type LogisticsOnlineCancelRequest struct {
	open_taobao.TaobaoMethodRequest
}

调此接口取消发货的订单,重新选择物流公司发货。前提是物流公司未揽收货物。对未发货和已经被物流公司揽收的物流订单,是不能取消的。

func (*LogisticsOnlineCancelRequest) GetResponse

func (r *LogisticsOnlineCancelRequest) GetResponse(accessToken string) (*LogisticsOnlineCancelResponse, []byte, error)

func (*LogisticsOnlineCancelRequest) SetTid

func (r *LogisticsOnlineCancelRequest) SetTid(value string)

淘宝交易ID

type LogisticsOnlineCancelResponse

type LogisticsOnlineCancelResponse struct {
	IsSuccess        bool   `json:"is_success"`
	ModifyTime       string `json:"modify_time"`
	RecreatedOrderId int    `json:"recreated_order_id"`
}

type LogisticsOnlineCancelResponseResult

type LogisticsOnlineCancelResponseResult struct {
	Response *LogisticsOnlineCancelResponse `json:"logistics_online_cancel_response"`
}

type LogisticsOnlineConfirmRequest

type LogisticsOnlineConfirmRequest struct {
	open_taobao.TaobaoMethodRequest
}

确认发货的目的是让交易流程继承走下去,确认发货后交易状态会由【买家已付款】变为【卖家已发货】,然后买家才可以确认收货,货款打入卖家账号。货到付款的订单除外

func (*LogisticsOnlineConfirmRequest) GetResponse

func (*LogisticsOnlineConfirmRequest) SetIsSplit

func (r *LogisticsOnlineConfirmRequest) SetIsSplit(value string)

表明是否是拆单,默认值0,1表示拆单

func (*LogisticsOnlineConfirmRequest) SetOutSid

func (r *LogisticsOnlineConfirmRequest) SetOutSid(value string)

运单号.具体一个物流公司的真实运单号码。淘宝官方物流会校验,请谨慎传入;若company_code中传入的代码非淘宝官方物流合作公司,此处运单号不校验。<br>

func (*LogisticsOnlineConfirmRequest) SetSellerIp

func (r *LogisticsOnlineConfirmRequest) SetSellerIp(value string)

商家的IP地址

func (*LogisticsOnlineConfirmRequest) SetSubTid

func (r *LogisticsOnlineConfirmRequest) SetSubTid(value string)

拆单子订单列表,对应的数据是:子订单号的列表。可以不传,但是如果传了则必须符合传递的规则。子订单必须是操作的物流订单的子订单的真子集!

func (*LogisticsOnlineConfirmRequest) SetTid

func (r *LogisticsOnlineConfirmRequest) SetTid(value string)

淘宝交易ID

type LogisticsOnlineConfirmResponse

type LogisticsOnlineConfirmResponse struct {
	Shipping *Shipping `json:"shipping"`
}

type LogisticsOnlineConfirmResponseResult

type LogisticsOnlineConfirmResponseResult struct {
	Response *LogisticsOnlineConfirmResponse `json:"logistics_online_confirm_response"`
}

type LogisticsOnlineSendRequest

type LogisticsOnlineSendRequest struct {
	open_taobao.TaobaoMethodRequest
}
用户调用该接口可实现在线订单发货(支持货到付款)

调用该接口实现在线下单发货,有两种情况:<br> <font color='red'>如果不输入运单号的情况:交易状态不会改变,需要调用taobao.logistics.online.confirm确认发货后交易状态才会变成卖家已发货。<br> 如果输入运单号的情况发货:交易订单状态会直接变成卖家已发货 。</font>

func (*LogisticsOnlineSendRequest) GetResponse

func (r *LogisticsOnlineSendRequest) GetResponse(accessToken string) (*LogisticsOnlineSendResponse, []byte, error)

func (*LogisticsOnlineSendRequest) SetCancelId

func (r *LogisticsOnlineSendRequest) SetCancelId(value string)

卖家联系人地址库ID,可以通过taobao.logistics.address.search接口查询到地址库ID。<br><font color='red'>如果为空,取的卖家的默认退货地址</font><br>

func (*LogisticsOnlineSendRequest) SetCompanyCode

func (r *LogisticsOnlineSendRequest) SetCompanyCode(value string)
物流公司代码.如"POST"就代表中国邮政,"ZJS"就代表宅急送.调用 taobao.logistics.companies.get 获取。

<br><font color='red'>如果是货到付款订单,选择的物流公司必须支持货到付款发货方式</font>

func (*LogisticsOnlineSendRequest) SetFeature

func (r *LogisticsOnlineSendRequest) SetFeature(value string)
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> 当存在"|"时,就说明订单中存在多个商品,商品间用"|"分隔了开来。|"之后的内容含义同上。

func (*LogisticsOnlineSendRequest) SetIsSplit

func (r *LogisticsOnlineSendRequest) SetIsSplit(value string)

表明是否是拆单,默认值0,1表示拆单

func (*LogisticsOnlineSendRequest) SetOutSid

func (r *LogisticsOnlineSendRequest) SetOutSid(value string)

运单号.具体一个物流公司的真实运单号码。淘宝官方物流会校验,请谨慎传入;

func (*LogisticsOnlineSendRequest) SetSellerIp

func (r *LogisticsOnlineSendRequest) SetSellerIp(value string)

商家的IP地址

func (*LogisticsOnlineSendRequest) SetSenderId

func (r *LogisticsOnlineSendRequest) SetSenderId(value string)

卖家联系人地址库ID,可以通过taobao.logistics.address.search接口查询到地址库ID。<font color='red'>如果为空,取的卖家的默认取货地址</font>

func (*LogisticsOnlineSendRequest) SetSubTid

func (r *LogisticsOnlineSendRequest) SetSubTid(value string)

拆单子订单列表,对应的数据是:子订单号的列表。可以不传,但是如果传了则必须符合传递的规则。子订单必须是操作的物流订单的子订单的真子集!

func (*LogisticsOnlineSendRequest) SetTid

func (r *LogisticsOnlineSendRequest) SetTid(value string)

淘宝交易ID

type LogisticsOnlineSendResponse

type LogisticsOnlineSendResponse struct {
	Shipping *Shipping `json:"shipping"`
}

type LogisticsOnlineSendResponseResult

type LogisticsOnlineSendResponseResult struct {
	Response *LogisticsOnlineSendResponse `json:"logistics_online_send_response"`
}

type LogisticsOrdersDetailGetRequest

type LogisticsOrdersDetailGetRequest struct {
	open_taobao.TaobaoMethodRequest
}

查询物流订单的详细信息,涉及用户隐私字段。(注:该API主要是提供给卖家查询物流订单使用,买家查询物流订单,建议使用taobao.logistics.trace.search)

func (*LogisticsOrdersDetailGetRequest) GetResponse

func (*LogisticsOrdersDetailGetRequest) SetBuyerNick

func (r *LogisticsOrdersDetailGetRequest) SetBuyerNick(value string)

买家昵称

func (*LogisticsOrdersDetailGetRequest) SetEndCreated

func (r *LogisticsOrdersDetailGetRequest) SetEndCreated(value string)

创建时间结束.格式:yyyy-MM-dd HH:mm:ss

func (*LogisticsOrdersDetailGetRequest) SetFields

func (r *LogisticsOrdersDetailGetRequest) SetFields(value string)

需返回的字段列表.可选值:Shipping 物流数据结构中所有字段.fileds中可以指定返回以上任意一个或者多个字段,以","分隔.

func (*LogisticsOrdersDetailGetRequest) SetFreightPayer

func (r *LogisticsOrdersDetailGetRequest) SetFreightPayer(value string)

谁承担运费.可选值:buyer(买家),seller(卖家).如:buyer

func (*LogisticsOrdersDetailGetRequest) SetPageNo

func (r *LogisticsOrdersDetailGetRequest) SetPageNo(value string)

页码.该字段没传 或 值<1 ,则默认page_no为1

func (*LogisticsOrdersDetailGetRequest) SetPageSize

func (r *LogisticsOrdersDetailGetRequest) SetPageSize(value string)

每页条数.该字段没传 或 值<1 ,则默认page_size为40

func (*LogisticsOrdersDetailGetRequest) SetReceiverName

func (r *LogisticsOrdersDetailGetRequest) SetReceiverName(value string)

收货人姓名

func (*LogisticsOrdersDetailGetRequest) SetSellerConfirm

func (r *LogisticsOrdersDetailGetRequest) SetSellerConfirm(value string)

卖家是否发货.可选值:yes(是),no(否).如:yes.

func (*LogisticsOrdersDetailGetRequest) SetStartCreated

func (r *LogisticsOrdersDetailGetRequest) SetStartCreated(value string)

创建时间开始.格式:yyyy-MM-dd HH:mm:ss

func (*LogisticsOrdersDetailGetRequest) SetStatus

func (r *LogisticsOrdersDetailGetRequest) SetStatus(value string)

物流状态.可查看数据结构 Shipping 中的status字段.

func (*LogisticsOrdersDetailGetRequest) SetTid

func (r *LogisticsOrdersDetailGetRequest) SetTid(value string)

交易ID.如果加入tid参数的话,不用传其他的参数,但是仅会返回一条物流订单信息.

func (*LogisticsOrdersDetailGetRequest) SetType

func (r *LogisticsOrdersDetailGetRequest) SetType(value string)

物流方式.可选值:post(平邮),express(快递),ems(EMS).如:post

type LogisticsOrdersDetailGetResponse

type LogisticsOrdersDetailGetResponse struct {
	Shippings    []*Shipping `json:"shippings"`
	TotalResults int         `json:"total_results"`
}

type LogisticsOrdersDetailGetResponseResult

type LogisticsOrdersDetailGetResponseResult struct {
	Response *LogisticsOrdersDetailGetResponse `json:"logistics_orders_detail_get_response"`
}

type LogisticsOrdersGetRequest

type LogisticsOrdersGetRequest struct {
	open_taobao.TaobaoMethodRequest
}

批量查询物流订单。(注:该API主要是提供给卖家查询物流订单使用,买家查询物流订单,建议使用taobao.logistics.trace.search)

func (*LogisticsOrdersGetRequest) GetResponse

func (r *LogisticsOrdersGetRequest) GetResponse(accessToken string) (*LogisticsOrdersGetResponse, []byte, error)

func (*LogisticsOrdersGetRequest) SetBuyerNick

func (r *LogisticsOrdersGetRequest) SetBuyerNick(value string)

买家昵称

func (*LogisticsOrdersGetRequest) SetEndCreated

func (r *LogisticsOrdersGetRequest) SetEndCreated(value string)

创建时间结束

func (*LogisticsOrdersGetRequest) SetFields

func (r *LogisticsOrdersGetRequest) SetFields(value string)
需返回的字段列表.可选值:Shipping 物流数据结构中的以下字段: <br>

tid,order_code,seller_nick,buyer_nick,delivery_start, delivery_end,out_sid,item_title,receiver_name, created,modified,status,type,freight_payer,seller_confirm,company_name,sub_tids,is_spilt;<br>多个字段之间用","分隔。如tid,seller_nick,buyer_nick,delivery_start。

func (*LogisticsOrdersGetRequest) SetFreightPayer

func (r *LogisticsOrdersGetRequest) SetFreightPayer(value string)

谁承担运费.可选值:buyer(买家),seller(卖家).如:buyer

func (*LogisticsOrdersGetRequest) SetPageNo

func (r *LogisticsOrdersGetRequest) SetPageNo(value string)

页码.该字段没传 或 值<1 ,则默认page_no为1

func (*LogisticsOrdersGetRequest) SetPageSize

func (r *LogisticsOrdersGetRequest) SetPageSize(value string)

每页条数.该字段没传 或 值<1 ,则默认page_size为40

func (*LogisticsOrdersGetRequest) SetReceiverName

func (r *LogisticsOrdersGetRequest) SetReceiverName(value string)

收货人姓名

func (*LogisticsOrdersGetRequest) SetSellerConfirm

func (r *LogisticsOrdersGetRequest) SetSellerConfirm(value string)

卖家是否发货.可选值:yes(是),no(否).如:yes

func (*LogisticsOrdersGetRequest) SetStartCreated

func (r *LogisticsOrdersGetRequest) SetStartCreated(value string)

创建时间开始

func (*LogisticsOrdersGetRequest) SetStatus

func (r *LogisticsOrdersGetRequest) SetStatus(value string)

物流状态.查看数据结构 Shipping 中的status字段.

func (*LogisticsOrdersGetRequest) SetTid

func (r *LogisticsOrdersGetRequest) SetTid(value string)

交易ID.如果加入tid参数的话,不用传其他的参数,若传入tid:非拆单场景,仅会返回一条物流订单信息;拆单场景,会返回多条物流订单信息

func (*LogisticsOrdersGetRequest) SetType

func (r *LogisticsOrdersGetRequest) SetType(value string)

物流方式.可选值:post(平邮),express(快递),ems(EMS).如:post

type LogisticsOrdersGetResponse

type LogisticsOrdersGetResponse struct {
	Shippings    []*Shipping `json:"shippings"`
	TotalResults int         `json:"total_results"`
}

type LogisticsOrdersGetResponseResult

type LogisticsOrdersGetResponseResult struct {
	Response *LogisticsOrdersGetResponse `json:"logistics_orders_get_response"`
}

type LogisticsOrderstorePushRequest

type LogisticsOrderstorePushRequest struct {
	open_taobao.TaobaoMethodRequest
}

卖家使用自己的物流公司发货,可以通过本接口将订单的仓内信息推送到淘宝,淘宝保存这些仓内信息,并可在页面展示这些仓内信息。

func (*LogisticsOrderstorePushRequest) GetResponse

func (*LogisticsOrderstorePushRequest) SetIsSplit

func (r *LogisticsOrderstorePushRequest) SetIsSplit(value string)

表明是否是拆单,默认值0,1表示拆单

func (*LogisticsOrderstorePushRequest) SetOccureTime

func (r *LogisticsOrderstorePushRequest) SetOccureTime(value string)

流转状态发生时间

func (*LogisticsOrderstorePushRequest) SetOperateDetail

func (r *LogisticsOrderstorePushRequest) SetOperateDetail(value string)

仓内操作描述

func (*LogisticsOrderstorePushRequest) SetOperatorContact

func (r *LogisticsOrderstorePushRequest) SetOperatorContact(value string)

快递业务员联系方式

func (*LogisticsOrderstorePushRequest) SetOperatorName

func (r *LogisticsOrderstorePushRequest) SetOperatorName(value string)

快递业务员名称

func (*LogisticsOrderstorePushRequest) SetSubTid

func (r *LogisticsOrderstorePushRequest) SetSubTid(value string)

拆单子订单列表,对应的数据是:子订单号的列表。可以不传,但是如果传了则必须符合传递的规则。子订单必须是操作的物流订单的子订单的真子集!

func (*LogisticsOrderstorePushRequest) SetTradeId

func (r *LogisticsOrderstorePushRequest) SetTradeId(value string)

淘宝订单交易号

type LogisticsOrderstorePushResponse

type LogisticsOrderstorePushResponse struct {
	Shipping *Shipping `json:"shipping"`
}

type LogisticsOrderstorePushResponseResult

type LogisticsOrderstorePushResponseResult struct {
	Response *LogisticsOrderstorePushResponse `json:"logistics_orderstore_push_response"`
}

type LogisticsOrdertracePushRequest

type LogisticsOrdertracePushRequest struct {
	open_taobao.TaobaoMethodRequest
}

卖家使用自己的物流公司发货,可以通过本接口将订单的流转信息推送到淘宝,淘宝保存这些流转信息,并可在页面展示这些流转信息。

func (*LogisticsOrdertracePushRequest) GetResponse

func (*LogisticsOrdertracePushRequest) SetCompanyName

func (r *LogisticsOrdertracePushRequest) SetCompanyName(value string)

物流公司名称

func (*LogisticsOrdertracePushRequest) SetCurrentCity

func (r *LogisticsOrdertracePushRequest) SetCurrentCity(value string)

流转节点的当前城市

func (*LogisticsOrdertracePushRequest) SetFacilityName

func (r *LogisticsOrdertracePushRequest) SetFacilityName(value string)

网点名称

func (*LogisticsOrdertracePushRequest) SetMailNo

func (r *LogisticsOrdertracePushRequest) SetMailNo(value string)

快递单号。各个快递公司的运单号格式不同。

func (*LogisticsOrdertracePushRequest) SetNextCity

func (r *LogisticsOrdertracePushRequest) SetNextCity(value string)

流转节点的下一个城市

func (*LogisticsOrdertracePushRequest) SetNodeDescription

func (r *LogisticsOrdertracePushRequest) SetNodeDescription(value string)

描述当前节点的操作,操作是“揽收”、“派送”或“签收”。

func (*LogisticsOrdertracePushRequest) SetOccureTime

func (r *LogisticsOrdertracePushRequest) SetOccureTime(value string)

流转节点发生时间

func (*LogisticsOrdertracePushRequest) SetOperateDetail

func (r *LogisticsOrdertracePushRequest) SetOperateDetail(value string)

流转节点的详细地址及操作描述

func (*LogisticsOrdertracePushRequest) SetOperatorContact

func (r *LogisticsOrdertracePushRequest) SetOperatorContact(value string)

快递业务员联系方式,手机号码或电话。

func (*LogisticsOrdertracePushRequest) SetOperatorName

func (r *LogisticsOrdertracePushRequest) SetOperatorName(value string)

快递业务员名称

type LogisticsOrdertracePushResponse

type LogisticsOrdertracePushResponse struct {
	Shipping *Shipping `json:"shipping"`
}

type LogisticsOrdertracePushResponseResult

type LogisticsOrdertracePushResponseResult struct {
	Response *LogisticsOrdertracePushResponse `json:"logistics_ordertrace_push_response"`
}

type LogisticsPartner

type LogisticsPartner struct {
	Carriage      *CarriageDetail `json:"carriage"`
	CoverRemark   string          `json:"cover_remark"`
	Partner       *PartnerDetail  `json:"partner"`
	UncoverRemark string          `json:"uncover_remark"`
}

查询揽送范围之内的物流公司信息

type LogisticsPartnersGetRequest

type LogisticsPartnersGetRequest struct {
	open_taobao.TaobaoMethodRequest
}

查询物流公司信息(可以查询目的地可不可达情况)

func (*LogisticsPartnersGetRequest) GetResponse

func (r *LogisticsPartnersGetRequest) GetResponse(accessToken string) (*LogisticsPartnersGetResponse, []byte, error)

func (*LogisticsPartnersGetRequest) SetGoodsValue

func (r *LogisticsPartnersGetRequest) SetGoodsValue(value string)

货物价格.只有当选择货到付款此参数才会有效

func (*LogisticsPartnersGetRequest) SetIsNeedCarriage

func (r *LogisticsPartnersGetRequest) SetIsNeedCarriage(value string)

是否需要揽收资费信息,默认false。在此值为false时,返回内容中将无carriage。在未设置source_id或target_id的情况下,无法查询揽收资费信息。自己联系无揽收资费记录。

func (*LogisticsPartnersGetRequest) SetServiceType

func (r *LogisticsPartnersGetRequest) SetServiceType(value string)

服务类型,根据此参数可查出提供相应服务类型的物流公司信息(物流公司状态正常),可选值:cod(货到付款)、online(在线下单)、 offline(自己联系)、limit(限时物流)。然后再根据source_id,target_id,goods_value这三个条件来过滤物流公司. 目前输入自己联系服务类型将会返回空,因为自己联系并没有具体的服务信息,所以不会有记录。

func (*LogisticsPartnersGetRequest) SetSourceId

func (r *LogisticsPartnersGetRequest) SetSourceId(value string)

物流公司揽货地地区码(必须是区、县一级的).参考:http://www.stats.gov.cn/tjbz/xzqhdm/t20100623_402652267.htm 或者调用 taobao.areas.get 获取

func (*LogisticsPartnersGetRequest) SetTargetId

func (r *LogisticsPartnersGetRequest) SetTargetId(value string)

物流公司派送地地区码(必须是区、县一级的).参考:http://www.stats.gov.cn/tjbz/xzqhdm/t20100623_402652267.htm 或者调用 taobao.areas.get 获取

type LogisticsPartnersGetResponse

type LogisticsPartnersGetResponse struct {
	LogisticsPartners []*LogisticsPartner `json:"logistics_partners"`
}

type LogisticsPartnersGetResponseResult

type LogisticsPartnersGetResponseResult struct {
	Response *LogisticsPartnersGetResponse `json:"logistics_partners_get_response"`
}

type LogisticsTraceSearchRequest

type LogisticsTraceSearchRequest struct {
	open_taobao.TaobaoMethodRequest
}
用户根据淘宝交易号查询物流流转信息,如2010-8-10 15:23:00到达杭州集散地。

此接口的返回信息都由物流公司提供。(备注:使用线下发货(offline.send)的运单,不支持运单状态的实时跟踪,只要一发货,状态就会变为<status>对方已签收</status>,该字段仅对线上发货(online.send)的运单有效。)

func (*LogisticsTraceSearchRequest) GetResponse

func (r *LogisticsTraceSearchRequest) GetResponse(accessToken string) (*LogisticsTraceSearchResponse, []byte, error)

func (*LogisticsTraceSearchRequest) SetIsSplit

func (r *LogisticsTraceSearchRequest) SetIsSplit(value string)

表明是否是拆单,默认值0,1表示拆单

func (*LogisticsTraceSearchRequest) SetSellerNick

func (r *LogisticsTraceSearchRequest) SetSellerNick(value string)

卖家昵称

func (*LogisticsTraceSearchRequest) SetSubTid

func (r *LogisticsTraceSearchRequest) SetSubTid(value string)

拆单子订单列表,对应的数据是:子订单号的列表。可以不传,但是如果传了则必须符合传递的规则。子订单必须是操作的物流订单的子订单的真子集

func (*LogisticsTraceSearchRequest) SetTid

func (r *LogisticsTraceSearchRequest) SetTid(value string)

淘宝交易号,请勿传非淘宝交易号

type LogisticsTraceSearchResponse

type LogisticsTraceSearchResponse struct {
	CompanyName string             `json:"company_name"`
	OutSid      string             `json:"out_sid"`
	Status      string             `json:"status"`
	Tid         int                `json:"tid"`
	TraceList   []*TransitStepInfo `json:"trace_list"`
}

type LogisticsTraceSearchResponseResult

type LogisticsTraceSearchResponseResult struct {
	Response *LogisticsTraceSearchResponse `json:"logistics_trace_search_response"`
}

type LogisticsVas

type LogisticsVas struct {
	ChargeCalculateType string `json:"charge_calculate_type"`
	Comments            string `json:"comments"`
	DefaultSelected     bool   `json:"default_selected"`
	Displayable         bool   `json:"displayable"`
	Needed              bool   `json:"needed"`
	ValueDisplayable    bool   `json:"value_displayable"`
	VasCode             string `json:"vas_code"`
	VasName             string `json:"vas_name"`
}

货运增值服务信息

type LogisticsVasCharge

type LogisticsVasCharge struct {
	OriginalTotalVasCost float64                   `json:"original_total_vas_cost"`
	TotalVasCost         float64                   `json:"total_vas_cost"`
	TotalVasSaveCost     float64                   `json:"total_vas_save_cost"`
	VasCostList          []*LogisticsVasItemCharge `json:"vas_cost_list"`
}

增值服务的总的费用

type LogisticsVasItemCharge

type LogisticsVasItemCharge struct {
	Cost         float64 `json:"cost"`
	OriginalCost float64 `json:"original_cost"`
	VasCode      string  `json:"vas_code"`
	VasId        string  `json:"vas_id"`
}

物流增值服务每项费用

type OrderCharge

type OrderCharge struct {
	OriginalTotalCost float64             `json:"original_total_cost"`
	OtherCost         float64             `json:"other_cost"`
	TotalCost         float64             `json:"total_cost"`
	TotalSavedCost    float64             `json:"total_saved_cost"`
	TransportCharge   *TransportCharge    `json:"transport_charge"`
	VasCharge         *LogisticsVasCharge `json:"vas_charge"`
}

物流费用信息

type PartnerDetail

type PartnerDetail struct {
	AccountNo   string `json:"account_no"`
	CompanyCode string `json:"company_code"`
	CompanyId   int    `json:"company_id"`
	CompanyName string `json:"company_name"`
	FullName    string `json:"full_name"`
	RegMailNo   string `json:"reg_mail_no"`
	WangwangId  string `json:"wangwang_id"`
}

物流公司详细信息

type QueryRouteResult

type QueryRouteResult struct {
	CompanyRouteSummarys []*CompanyRouteSummary `json:"company_route_summarys"`
	IsTurnLevel          bool                   `json:"is_turn_level"`
	PagesRouteDetails    *RouteAlpPage          `json:"pages_route_details"`
	RouteVas             []*RouteVasInfo        `json:"route_vas"`
	TotalCorps           int                    `json:"total_corps"`
	TotalRoutes          int                    `json:"total_routes"`
}

查询线路的结果

type RouteAlpPage

type RouteAlpPage struct {
	Datas       []*ComplexLogisticsRoute `json:"datas"`
	End         int                      `json:"end"`
	PageCount   int                      `json:"page_count"`
	PageIndex   int                      `json:"page_index"`
	PageSize    int                      `json:"page_size"`
	RecordCount int                      `json:"record_count"`
	Start       int                      `json:"start"`
}

线路的分页信息

type RouteCarriageInfo

type RouteCarriageInfo struct {
	AddFee             float64 `json:"add_fee"`
	Comments           string  `json:"comments"`
	GiveTime           string  `json:"give_time"`
	InitialFee         float64 `json:"initial_fee"`
	LeastExpense       float64 `json:"least_expense"`
	OrigVolumeRate     float64 `json:"orig_volume_rate"`
	OrigWeightRate     float64 `json:"orig_weight_rate"`
	PriceDescription   string  `json:"price_description"`
	TakeTime           string  `json:"take_time"`
	TransportMode      string  `json:"transport_mode"`
	TransportName      string  `json:"transport_name"`
	TransportTime      string  `json:"transport_time"`
	TransportTimeHours int     `json:"transport_time_hours"`
	TransportTypeCode  string  `json:"transport_type_code"`
	TransportWay       string  `json:"transport_way"`
	VolumeRate         float64 `json:"volume_rate"`
	WeightRate         float64 `json:"weight_rate"`
}

线路运输相关的基本信息

type RouteExtenalInfo

type RouteExtenalInfo struct {
	Cod                bool     `json:"cod"`
	CreditOpened       bool     `json:"credit_opened"`
	CreditTotalBalance float64  `json:"credit_total_balance"`
	Recommend          bool     `json:"recommend"`
	SpecialCodes       []string `json:"special_codes"`
	Top                bool     `json:"top"`
}

线路附加信息

type RoutePromotionInfo

type RoutePromotionInfo struct {
	BasePromotionId      string `json:"base_promotion_id"`
	PromotionDescription string `json:"promotion_description"`
	PromotionUrl         string `json:"promotion_url"`
	UnbasePromotion      bool   `json:"unbase_promotion"`
}

线路的促销信息

type RouteStatisticsInfo

type RouteStatisticsInfo struct {
	EvaluationCount      int     `json:"evaluation_count"`
	EvaluationScore      float64 `json:"evaluation_score"`
	FromNetworkCount     int     `json:"from_network_count"`
	ToNetworkCount       int     `json:"to_network_count"`
	TrunkRouteOrderCount int     `json:"trunk_route_order_count"`
}

线路的统计信息

type RouteVasInfo

type RouteVasInfo struct {
	RouteCode string          `json:"route_code"`
	VasList   []*LogisticsVas `json:"vas_list"`
}

线路的增值服务信息

type Shipping

type Shipping struct {
	BuyerNick       string    `json:"buyer_nick"`
	CompanyName     string    `json:"company_name"`
	Created         string    `json:"created"`
	DeliveryEnd     string    `json:"delivery_end"`
	DeliveryStart   string    `json:"delivery_start"`
	FreightPayer    string    `json:"freight_payer"`
	IsQuickCodOrder bool      `json:"is_quick_cod_order"`
	IsSpilt         int       `json:"is_spilt"`
	IsSuccess       bool      `json:"is_success"`
	ItemTitle       string    `json:"item_title"`
	Location        *Location `json:"location"`
	Modified        string    `json:"modified"`
	OrderCode       string    `json:"order_code"`
	OutSid          string    `json:"out_sid"`
	ReceiverMobile  string    `json:"receiver_mobile"`
	ReceiverName    string    `json:"receiver_name"`
	ReceiverPhone   string    `json:"receiver_phone"`
	SellerConfirm   string    `json:"seller_confirm"`
	SellerNick      string    `json:"seller_nick"`
	Status          string    `json:"status"`
	SubTids         []int     `json:"sub_tids"`
	Tid             int       `json:"tid"`
	Type            string    `json:"type"`
}

获取的物流订单详情列表 返回的Shipping包含的具体信息为入参fields请求的字段信息

type Subtask

type Subtask struct {
	IsSuccess      bool   `json:"is_success"`
	SubTaskRequest string `json:"sub_task_request"`
	SubTaskResult  string `json:"sub_task_result"`
}

批量异步任务的子任务结果

type Task

type Task struct {
	CheckCode   string     `json:"check_code"`
	Created     string     `json:"created"`
	DownloadUrl string     `json:"download_url"`
	Method      string     `json:"method"`
	Schedule    string     `json:"schedule"`
	Status      string     `json:"status"`
	Subtasks    []*Subtask `json:"subtasks"`
	TaskId      int        `json:"task_id"`
}

批量异步任务结果

type TopFee

type TopFee struct {
	AddFee        string `json:"add_fee"`
	AddStandard   string `json:"add_standard"`
	Destination   string `json:"destination"`
	ServiceType   string `json:"service_type"`
	StartFee      string `json:"start_fee"`
	StartStandard string `json:"start_standard"`
}

运费模板中运费信息对象

type TopatsDeliverySendRequest

type TopatsDeliverySendRequest struct {
	open_taobao.TaobaoMethodRequest
}
提供异步批量物流发货功能。<br/>

对买家已付款状态的交易进行发货操作。(注:该API不支持货到付款订单发货)<br/> 异步API使用方法,请查看:<a href="http://open.taobao.com/doc/detail.htm?id=30">异步API使用说明</a><br/> 1. 一次最多发货40个订单<br/> 2. 提交任务后,通过taobao.topats.result.get来查看任务执行状态,如果任务已完成,则返回结果<br/> 3. 如果订阅了主动通知服务,任务完成后TOP会通过HTTP长连接推送消息,通知的消息格式请参考异步API使用文档<br/> 4. 此任务的有效期为2天,超过2天后任务会被删除

func (*TopatsDeliverySendRequest) GetResponse

func (r *TopatsDeliverySendRequest) GetResponse(accessToken string) (*TopatsDeliverySendResponse, []byte, error)

func (*TopatsDeliverySendRequest) SetCompanyCodes

func (r *TopatsDeliverySendRequest) SetCompanyCodes(value string)
每个tid所对应的物流公司代码。可以不传,表示所有的物流公司都为"其他",但是只要有一个订单需要指定物流公司,所有的订单都需要指定物流公司,每个类型之间用";"连接。排列要和tid顺序一致,不需要指定物流公司的订单,该位置上放上一个空字符串""。可以不传,传了长度和位置要和tid保持一致。

每个company_code表示物流公司代码.如"POST"就代表中国邮政,"ZJS"就代表宅急送.调用 taobao.logisticcompanies.get 获取。如传入的代码非淘宝官方物流合作公司,默认是“其他”物流的方式,在淘宝不显示物流具体进度,故传入需谨慎。如果orderType为delivery_needed,则必传

func (*TopatsDeliverySendRequest) SetMemos

func (r *TopatsDeliverySendRequest) SetMemos(value string)

每个tid所对应的卖家备注。可以不传,表示所有的发货订单都不需要卖家备注,但是只要有一个订单需要指定卖家备注,所有的订单都需要指定卖家备注,每个卖家备注之间用";"连接。排列要和tid顺序一致,不需要指定卖家备注的订单,该位置上放上一个空字符串""。可以不传,传了长度和位置要和tid保持一致。卖家备注.最大长度为250个字符。如果orderType为delivery_needed,则必传

func (*TopatsDeliverySendRequest) SetOrderTypes

func (r *TopatsDeliverySendRequest) SetOrderTypes(value string)

每个tid所对应的物流发货类型。可以不传,表示所有的发货类型都为"delivery_needed",但是只要有一个订单需要指定发货类型,所有的订单都需要指定发货类型,每个类型之间用";"连接。排列要和tid顺序一致,不需要指定发货类型的订单,该位置上放上一个空字符串""。可以不传,传了长度和位置要和tid保持一致。 每个类型可选( delivery_needed(物流订单发货),virtual_goods(虚拟物品发货). ) 注:选择virtual_goods类型进行发货的话下面的参数可以不需填写。如果选择delivery_needed 则下面的参数必须要填写

func (*TopatsDeliverySendRequest) SetOutSids

func (r *TopatsDeliverySendRequest) SetOutSids(value string)
每个tid所对应的物流公司运单号。可以不传,表示所有的物流订单都没有订单号,但是只要有一个订单需要有订单号,所有的订单都需要指定订单号,每个订单号之间用";"连接。排列要和tid顺序一致,不需要指定订单号的订单,该位置上放上一个空字符串""。可以不传,传了长度和位置要和tid保持一致。

具体一个物流公司的真实运单号码。淘宝官方物流会校验,请谨慎传入;若company_codes中传入的代码非淘宝官方物流合作公司,此处运单号不校验。如果orderType为delivery_needed,则必传

func (*TopatsDeliverySendRequest) SetSellerAddress

func (r *TopatsDeliverySendRequest) SetSellerAddress(value string)

卖家地址(详细地址).如:XXX街道XXX门牌,省市区不需要提供。如果orderType为delivery_needed,则必传

func (*TopatsDeliverySendRequest) SetSellerAreaId

func (r *TopatsDeliverySendRequest) SetSellerAreaId(value string)

卖家所在地国家公布的标准地区码.参考:http://www.stats.gov.cn/tjbz/xzqhdm/t20080215_402462675.htm 或者调用 taobao.areas.get 获取。如果orderType为delivery_needed,则必传

func (*TopatsDeliverySendRequest) SetSellerMobile

func (r *TopatsDeliverySendRequest) SetSellerMobile(value string)

卖家手机号码

func (*TopatsDeliverySendRequest) SetSellerName

func (r *TopatsDeliverySendRequest) SetSellerName(value string)

卖家姓名。如果orderType为delivery_needed,则必传

func (*TopatsDeliverySendRequest) SetSellerPhone

func (r *TopatsDeliverySendRequest) SetSellerPhone(value string)

卖家固定电话.包含区号,电话,分机号,中间用 " – "; 卖家固定电话和卖家手机号码,必须填写一个.

func (*TopatsDeliverySendRequest) SetSellerZip

func (r *TopatsDeliverySendRequest) SetSellerZip(value string)

卖家邮编。如果orderType为delivery_needed,则必传

func (*TopatsDeliverySendRequest) SetTids

func (r *TopatsDeliverySendRequest) SetTids(value string)

批量发货的订单id列表,每个订单id必需是合法的数字类型的tid,每个tid之间以";"分隔,至少要指定一个tid,最多不超过40个tid

type TopatsDeliverySendResponse

type TopatsDeliverySendResponse struct {
	Task *Task `json:"task"`
}

type TopatsDeliverySendResponseResult

type TopatsDeliverySendResponseResult struct {
	Response *TopatsDeliverySendResponse `json:"topats_delivery_send_response"`
}

type TransitStepInfo

type TransitStepInfo struct {
	Action          string `json:"action"`
	Desc            string `json:"desc"`
	NodeDescription string `json:"node_description"`
	StatusDesc      string `json:"status_desc"`
	StatusTime      string `json:"status_time"`
	Time            string `json:"time"`
}

物流跟踪信息的一条

type TransportCharge

type TransportCharge struct {
	Cost         float64 `json:"cost"`
	CostBy       string  `json:"cost_by"`
	OriginalCost float64 `json:"original_cost"`
	SavedCost    float64 `json:"saved_cost"`
}

运输费用

type WangwangInfo

type WangwangInfo struct {
	Site       string `json:"site"`
	WangwangId string `json:"wangwang_id"`
}

旺旺信息

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL