tblogistics

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package tblogistics 包含淘宝物流API,相关结构体

https://open.taobao.com/API.htm?docType=2&docId=65697

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlibabaascplogisticsconsignmodifyAPIRequest added in v1.3.1

type AlibabaascplogisticsconsignmodifyAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

AlibabaascplogisticsconsignmodifyAPIRequest 修改物流公司和运单号 API请求 alibaba.ascp.logistics.consign.modify

修改物流公司和运单号

func NewAlibabaascplogisticsconsignmodifyRequest added in v1.3.1

func NewAlibabaascplogisticsconsignmodifyRequest() *AlibabaascplogisticsconsignmodifyAPIRequest

NewAlibabaascplogisticsconsignmodifyRequest 初始化AlibabaascplogisticsconsignmodifyAPIRequest对象

func (AlibabaascplogisticsconsignmodifyAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaascplogisticsconsignmodifyAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaascplogisticsconsignmodifyAPIRequest) GetFeature added in v1.3.1

GetFeature Feature Getter

func (AlibabaascplogisticsconsignmodifyAPIRequest) GetGoods added in v1.3.1

GetGoods Goods Getter

func (AlibabaascplogisticsconsignmodifyAPIRequest) GetNewCompanyCode added in v1.3.1

GetNewCompanyCode NewCompanyCode Getter

func (AlibabaascplogisticsconsignmodifyAPIRequest) GetNewOutSid added in v1.3.1

GetNewOutSid NewOutSid Getter

func (AlibabaascplogisticsconsignmodifyAPIRequest) GetOldCompanyCode added in v1.3.1

GetOldCompanyCode OldCompanyCode Getter

func (AlibabaascplogisticsconsignmodifyAPIRequest) GetOldOutSid added in v1.3.1

GetOldOutSid OldOutSid Getter

func (AlibabaascplogisticsconsignmodifyAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (AlibabaascplogisticsconsignmodifyAPIRequest) GetTid added in v1.3.1

GetTid Tid Getter

func (*AlibabaascplogisticsconsignmodifyAPIRequest) SetFeature added in v1.3.1

SetFeature is Feature Setter feature参数格式,KV之间用“=”分隔,多个key之间用”;”分隔 ,范例: instantMobilePhoneNumber=12345678910表示同城配送物流公司的物流订单收货人手机号,支持11位真实号和15位隐私号"12345678910-1234"。

func (*AlibabaascplogisticsconsignmodifyAPIRequest) SetGoods added in v1.3.1

SetGoods is Goods Setter 原包裹中的商品信息

func (*AlibabaascplogisticsconsignmodifyAPIRequest) SetNewCompanyCode added in v1.3.1

func (r *AlibabaascplogisticsconsignmodifyAPIRequest) SetNewCompanyCode(_newCompanyCode string) error

SetNewCompanyCode is NewCompanyCode Setter 新物流公司代码.如"POST"代表中国邮政,"ZJS"代表宅急送。调用 taobao.logistics.companies.get 获取

func (*AlibabaascplogisticsconsignmodifyAPIRequest) SetNewOutSid added in v1.3.1

func (r *AlibabaascplogisticsconsignmodifyAPIRequest) SetNewOutSid(_newOutSid string) error

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

func (*AlibabaascplogisticsconsignmodifyAPIRequest) SetOldCompanyCode added in v1.3.1

func (r *AlibabaascplogisticsconsignmodifyAPIRequest) SetOldCompanyCode(_oldCompanyCode string) error

SetOldCompanyCode is OldCompanyCode Setter 原物流公司代码.如"POST"代表中国邮政,"ZJS"代表宅急送。调用 taobao.logistics.companies.get 获取

func (*AlibabaascplogisticsconsignmodifyAPIRequest) SetOldOutSid added in v1.3.1

func (r *AlibabaascplogisticsconsignmodifyAPIRequest) SetOldOutSid(_oldOutSid string) error

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

func (*AlibabaascplogisticsconsignmodifyAPIRequest) SetTid added in v1.3.1

SetTid is Tid Setter 订单id

type AlibabaascplogisticsconsignmodifyAPIResponse added in v1.3.1

type AlibabaascplogisticsconsignmodifyAPIResponse struct {
	model.CommonResponse
	AlibabaascplogisticsconsignmodifyAPIResponseModel
}

AlibabaascplogisticsconsignmodifyAPIResponse 修改物流公司和运单号 API返回值 alibaba.ascp.logistics.consign.modify

修改物流公司和运单号

type AlibabaascplogisticsconsignmodifyAPIResponseModel added in v1.3.1

type AlibabaascplogisticsconsignmodifyAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_ascp_logistics_consign_modify_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 异步获取历史数据接口返回结果
	Result *ResultDto `json:"result,omitempty" xml:"result,omitempty"`
}

AlibabaascplogisticsconsignmodifyAPIResponseModel is 修改物流公司和运单号 成功返回结果

type AlibabaascplogisticsconsignresendAPIRequest added in v1.3.1

type AlibabaascplogisticsconsignresendAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

AlibabaascplogisticsconsignresendAPIRequest 修改物流公司和运单号 API请求 alibaba.ascp.logistics.consign.resend

支持卖家发货后修改运单号;支持在线下单和自己联系两种发货方式;使用条件: 1、必须是已发货订单,自己联系发货的必须50天内才可修改;在线下单的,必须下单后物流公司未揽收成功前才可修改; 2、自己联系只能切换为自己联系的公司,在线下单也只能切换为在线下单的物流公司

func NewAlibabaascplogisticsconsignresendRequest added in v1.3.1

func NewAlibabaascplogisticsconsignresendRequest() *AlibabaascplogisticsconsignresendAPIRequest

NewAlibabaascplogisticsconsignresendRequest 初始化AlibabaascplogisticsconsignresendAPIRequest对象

func (AlibabaascplogisticsconsignresendAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaascplogisticsconsignresendAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaascplogisticsconsignresendAPIRequest) GetConsignPkgs added in v1.3.1

GetConsignPkgs ConsignPkgs Getter

func (AlibabaascplogisticsconsignresendAPIRequest) GetFeature added in v1.3.1

GetFeature Feature Getter

func (AlibabaascplogisticsconsignresendAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (AlibabaascplogisticsconsignresendAPIRequest) GetSubTids added in v1.3.1

GetSubTids SubTids Getter

func (AlibabaascplogisticsconsignresendAPIRequest) GetTid added in v1.3.1

GetTid Tid Getter

func (*AlibabaascplogisticsconsignresendAPIRequest) SetConsignPkgs added in v1.3.1

SetConsignPkgs is ConsignPkgs Setter 包裹包含的运单号及快递公司编号,多包裹时,需要包含所有包裹的运单号等信息

func (*AlibabaascplogisticsconsignresendAPIRequest) SetFeature added in v1.3.1

SetFeature is Feature Setter feature参数格式,KV之间用“=”分隔,多个key之间用”;”分隔 ,范例: instantMobilePhoneNumber=12345678910表示同城配送物流公司的物流订单收货人手机号,支持11位真实号和15位隐私号"12345678910-1234"

func (*AlibabaascplogisticsconsignresendAPIRequest) SetSubTids added in v1.3.1

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

func (*AlibabaascplogisticsconsignresendAPIRequest) SetTid added in v1.3.1

SetTid is Tid Setter 订单id

type AlibabaascplogisticsconsignresendAPIResponse added in v1.3.1

type AlibabaascplogisticsconsignresendAPIResponse struct {
	model.CommonResponse
	AlibabaascplogisticsconsignresendAPIResponseModel
}

AlibabaascplogisticsconsignresendAPIResponse 修改物流公司和运单号 API返回值 alibaba.ascp.logistics.consign.resend

支持卖家发货后修改运单号;支持在线下单和自己联系两种发货方式;使用条件: 1、必须是已发货订单,自己联系发货的必须50天内才可修改;在线下单的,必须下单后物流公司未揽收成功前才可修改; 2、自己联系只能切换为自己联系的公司,在线下单也只能切换为在线下单的物流公司

type AlibabaascplogisticsconsignresendAPIResponseModel added in v1.3.1

type AlibabaascplogisticsconsignresendAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_ascp_logistics_consign_resend_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 异步获取历史数据接口返回结果
	Result *AlibabaascplogisticsconsignresendResultDto `json:"result,omitempty" xml:"result,omitempty"`
}

AlibabaascplogisticsconsignresendAPIResponseModel is 修改物流公司和运单号 成功返回结果

type AlibabaascplogisticsconsignresendResultDto added in v1.3.1

type AlibabaascplogisticsconsignresendResultDto struct {
	// 执行结果
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

AlibabaascplogisticsconsignresendResultDto 结构体

type AlibabaascplogisticsinstantsonlinecalldeliveryAPIRequest added in v1.3.1

type AlibabaascplogisticsinstantsonlinecalldeliveryAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

AlibabaascplogisticsinstantsonlinecalldeliveryAPIRequest 同城配送在线下单正式下单呼叫运力 API请求 alibaba.ascp.logistics.instantsonline.calldelivery

同城配送在线下单正式下单呼叫运力

func NewAlibabaascplogisticsinstantsonlinecalldeliveryRequest added in v1.3.1

func NewAlibabaascplogisticsinstantsonlinecalldeliveryRequest() *AlibabaascplogisticsinstantsonlinecalldeliveryAPIRequest

NewAlibabaascplogisticsinstantsonlinecalldeliveryRequest 初始化AlibabaascplogisticsinstantsonlinecalldeliveryAPIRequest对象

func (AlibabaascplogisticsinstantsonlinecalldeliveryAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaascplogisticsinstantsonlinecalldeliveryAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaascplogisticsinstantsonlinecalldeliveryAPIRequest) GetBizType added in v1.3.1

GetBizType BizType Getter

func (AlibabaascplogisticsinstantsonlinecalldeliveryAPIRequest) GetDefaultGenPickupCode added in v1.3.1

GetDefaultGenPickupCode DefaultGenPickupCode Getter

func (AlibabaascplogisticsinstantsonlinecalldeliveryAPIRequest) GetDefaultTradeReceiver added in v1.3.1

GetDefaultTradeReceiver DefaultTradeReceiver Getter

func (AlibabaascplogisticsinstantsonlinecalldeliveryAPIRequest) GetGenPickupCodeConfig added in v1.3.1

GetGenPickupCodeConfig GenPickupCodeConfig Getter

func (AlibabaascplogisticsinstantsonlinecalldeliveryAPIRequest) GetItemList added in v1.3.1

GetItemList ItemList Getter

func (AlibabaascplogisticsinstantsonlinecalldeliveryAPIRequest) GetOutOrderId added in v1.3.1

GetOutOrderId OutOrderId Getter

func (AlibabaascplogisticsinstantsonlinecalldeliveryAPIRequest) GetPickupCode added in v1.3.1

GetPickupCode PickupCode Getter

func (AlibabaascplogisticsinstantsonlinecalldeliveryAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (AlibabaascplogisticsinstantsonlinecalldeliveryAPIRequest) GetReceiver added in v1.3.1

GetReceiver Receiver Getter

func (AlibabaascplogisticsinstantsonlinecalldeliveryAPIRequest) GetSelectedResource added in v1.3.1

GetSelectedResource SelectedResource Getter

func (AlibabaascplogisticsinstantsonlinecalldeliveryAPIRequest) GetSender added in v1.3.1

GetSender Sender Getter

func (AlibabaascplogisticsinstantsonlinecalldeliveryAPIRequest) GetTid added in v1.3.1

GetTid Tid Getter

func (AlibabaascplogisticsinstantsonlinecalldeliveryAPIRequest) GetTotalItemActualValue added in v1.3.1

GetTotalItemActualValue TotalItemActualValue Getter

func (AlibabaascplogisticsinstantsonlinecalldeliveryAPIRequest) GetTotalItemValue added in v1.3.1

GetTotalItemValue TotalItemValue Getter

func (AlibabaascplogisticsinstantsonlinecalldeliveryAPIRequest) GetTotalWeight added in v1.3.1

GetTotalWeight TotalWeight Getter

func (*AlibabaascplogisticsinstantsonlinecalldeliveryAPIRequest) SetBizType added in v1.3.1

SetBizType is BizType Setter 业务类型,INSTANT_ONLINE:同城配送-在线下单

func (*AlibabaascplogisticsinstantsonlinecalldeliveryAPIRequest) SetDefaultGenPickupCode added in v1.3.1

func (r *AlibabaascplogisticsinstantsonlinecalldeliveryAPIRequest) SetDefaultGenPickupCode(_defaultGenPickupCode bool) error

SetDefaultGenPickupCode is DefaultGenPickupCode Setter 默认生成取件码

func (*AlibabaascplogisticsinstantsonlinecalldeliveryAPIRequest) SetDefaultTradeReceiver added in v1.3.1

func (r *AlibabaascplogisticsinstantsonlinecalldeliveryAPIRequest) SetDefaultTradeReceiver(_defaultTradeReceiver bool) error

SetDefaultTradeReceiver is DefaultTradeReceiver Setter 是否默认使用订单收货人地址,默认:true可不填写收货联系人

func (*AlibabaascplogisticsinstantsonlinecalldeliveryAPIRequest) SetGenPickupCodeConfig added in v1.3.1

func (r *AlibabaascplogisticsinstantsonlinecalldeliveryAPIRequest) SetGenPickupCodeConfig(_genPickupCodeConfig *GenPickupCodeConfigTopDto) error

SetGenPickupCodeConfig is GenPickupCodeConfig Setter 生成取件码配置

func (*AlibabaascplogisticsinstantsonlinecalldeliveryAPIRequest) SetItemList added in v1.3.1

SetItemList is ItemList Setter 商品清单

func (*AlibabaascplogisticsinstantsonlinecalldeliveryAPIRequest) SetOutOrderId added in v1.3.1

SetOutOrderId is OutOrderId Setter ERP单号

func (*AlibabaascplogisticsinstantsonlinecalldeliveryAPIRequest) SetPickupCode added in v1.3.1

SetPickupCode is PickupCode Setter 指定取件码,不超过16位

func (*AlibabaascplogisticsinstantsonlinecalldeliveryAPIRequest) SetReceiver added in v1.3.1

SetReceiver is Receiver Setter 收货联系人

func (*AlibabaascplogisticsinstantsonlinecalldeliveryAPIRequest) SetSelectedResource added in v1.3.1

SetSelectedResource is SelectedResource Setter 选择的物流资源

func (*AlibabaascplogisticsinstantsonlinecalldeliveryAPIRequest) SetSender added in v1.3.1

SetSender is Sender Setter 发货联系人

func (*AlibabaascplogisticsinstantsonlinecalldeliveryAPIRequest) SetTid added in v1.3.1

SetTid is Tid Setter 淘宝订主单号

func (*AlibabaascplogisticsinstantsonlinecalldeliveryAPIRequest) SetTotalItemActualValue added in v1.3.1

func (r *AlibabaascplogisticsinstantsonlinecalldeliveryAPIRequest) SetTotalItemActualValue(_totalItemActualValue int64) error

SetTotalItemActualValue is TotalItemActualValue Setter 商品实付总价(总价),单位分

func (*AlibabaascplogisticsinstantsonlinecalldeliveryAPIRequest) SetTotalItemValue added in v1.3.1

func (r *AlibabaascplogisticsinstantsonlinecalldeliveryAPIRequest) SetTotalItemValue(_totalItemValue int64) error

SetTotalItemValue is TotalItemValue Setter 商品总价(原价),单位分,默认:商品单价总和

func (*AlibabaascplogisticsinstantsonlinecalldeliveryAPIRequest) SetTotalWeight added in v1.3.1

SetTotalWeight is TotalWeight Setter 总重量,单位KG,不超过20KG

type AlibabaascplogisticsinstantsonlinecalldeliveryAPIResponse added in v1.3.1

type AlibabaascplogisticsinstantsonlinecalldeliveryAPIResponse struct {
	model.CommonResponse
	AlibabaascplogisticsinstantsonlinecalldeliveryAPIResponseModel
}

AlibabaascplogisticsinstantsonlinecalldeliveryAPIResponse 同城配送在线下单正式下单呼叫运力 API返回值 alibaba.ascp.logistics.instantsonline.calldelivery

同城配送在线下单正式下单呼叫运力

type AlibabaascplogisticsinstantsonlinecalldeliveryAPIResponseModel added in v1.3.1

type AlibabaascplogisticsinstantsonlinecalldeliveryAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_ascp_logistics_instantsonline_calldelivery_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回值
	Result *AlibabaascplogisticsinstantsonlinecalldeliveryTopResult `json:"result,omitempty" xml:"result,omitempty"`
}

AlibabaascplogisticsinstantsonlinecalldeliveryAPIResponseModel is 同城配送在线下单正式下单呼叫运力 成功返回结果

type AlibabaascplogisticsinstantsonlinecalldeliveryTopResult added in v1.3.1

type AlibabaascplogisticsinstantsonlinecalldeliveryTopResult struct {
	// 取号流水号
	CwOrderId string `json:"cw_order_id,omitempty" xml:"cw_order_id,omitempty"`
	// 物流单号
	WaybillCode string `json:"waybill_code,omitempty" xml:"waybill_code,omitempty"`
	// 资源CODE
	ResourceCode string `json:"resource_code,omitempty" xml:"resource_code,omitempty"`
	// 取件码
	PickupCode string `json:"pickup_code,omitempty" xml:"pickup_code,omitempty"`
	// 扩展
	Features string `json:"features,omitempty" xml:"features,omitempty"`
	// 执行结果
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

AlibabaascplogisticsinstantsonlinecalldeliveryTopResult 结构体

type AlibabaascplogisticsinstantsonlinecanceldeliveryAPIRequest added in v1.3.1

type AlibabaascplogisticsinstantsonlinecanceldeliveryAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

AlibabaascplogisticsinstantsonlinecanceldeliveryAPIRequest 同城配送在线下单取消下单取消呼叫的运力 API请求 alibaba.ascp.logistics.instantsonline.canceldelivery

同城配送在线下单取消下单取消呼叫的运力

func NewAlibabaascplogisticsinstantsonlinecanceldeliveryRequest added in v1.3.1

func NewAlibabaascplogisticsinstantsonlinecanceldeliveryRequest() *AlibabaascplogisticsinstantsonlinecanceldeliveryAPIRequest

NewAlibabaascplogisticsinstantsonlinecanceldeliveryRequest 初始化AlibabaascplogisticsinstantsonlinecanceldeliveryAPIRequest对象

func (AlibabaascplogisticsinstantsonlinecanceldeliveryAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaascplogisticsinstantsonlinecanceldeliveryAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaascplogisticsinstantsonlinecanceldeliveryAPIRequest) GetBizType added in v1.3.1

GetBizType BizType Getter

func (AlibabaascplogisticsinstantsonlinecanceldeliveryAPIRequest) GetOutOrderId added in v1.3.1

GetOutOrderId OutOrderId Getter

func (AlibabaascplogisticsinstantsonlinecanceldeliveryAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (*AlibabaascplogisticsinstantsonlinecanceldeliveryAPIRequest) SetBizType added in v1.3.1

SetBizType is BizType Setter 类型

func (*AlibabaascplogisticsinstantsonlinecanceldeliveryAPIRequest) SetOutOrderId added in v1.3.1

SetOutOrderId is OutOrderId Setter ERP单号

type AlibabaascplogisticsinstantsonlinecanceldeliveryAPIResponse added in v1.3.1

type AlibabaascplogisticsinstantsonlinecanceldeliveryAPIResponse struct {
	model.CommonResponse
	AlibabaascplogisticsinstantsonlinecanceldeliveryAPIResponseModel
}

AlibabaascplogisticsinstantsonlinecanceldeliveryAPIResponse 同城配送在线下单取消下单取消呼叫的运力 API返回值 alibaba.ascp.logistics.instantsonline.canceldelivery

同城配送在线下单取消下单取消呼叫的运力

type AlibabaascplogisticsinstantsonlinecanceldeliveryAPIResponseModel added in v1.3.1

type AlibabaascplogisticsinstantsonlinecanceldeliveryAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_ascp_logistics_instantsonline_canceldelivery_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回值
	Result *AlibabaascplogisticsinstantsonlinecanceldeliveryTopResult `json:"result,omitempty" xml:"result,omitempty"`
}

AlibabaascplogisticsinstantsonlinecanceldeliveryAPIResponseModel is 同城配送在线下单取消下单取消呼叫的运力 成功返回结果

type AlibabaascplogisticsinstantsonlinecanceldeliveryTopResult added in v1.3.1

type AlibabaascplogisticsinstantsonlinecanceldeliveryTopResult struct {
	// 执行结果
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
	// 是否已取消
	Canceled bool `json:"canceled,omitempty" xml:"canceled,omitempty"`
}

AlibabaascplogisticsinstantsonlinecanceldeliveryTopResult 结构体

type AlibabaascplogisticsinstantsonlinecheckdeliveryauthAPIRequest added in v1.3.1

type AlibabaascplogisticsinstantsonlinecheckdeliveryauthAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

AlibabaascplogisticsinstantsonlinecheckdeliveryauthAPIRequest 同城配送在线下单检查授权 API请求 alibaba.ascp.logistics.instantsonline.checkdeliveryauth

同城配送在线下单检查授权

func NewAlibabaascplogisticsinstantsonlinecheckdeliveryauthRequest added in v1.3.1

func NewAlibabaascplogisticsinstantsonlinecheckdeliveryauthRequest() *AlibabaascplogisticsinstantsonlinecheckdeliveryauthAPIRequest

NewAlibabaascplogisticsinstantsonlinecheckdeliveryauthRequest 初始化AlibabaascplogisticsinstantsonlinecheckdeliveryauthAPIRequest对象

func (AlibabaascplogisticsinstantsonlinecheckdeliveryauthAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaascplogisticsinstantsonlinecheckdeliveryauthAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaascplogisticsinstantsonlinecheckdeliveryauthAPIRequest) GetBizType added in v1.3.1

GetBizType BizType Getter

func (AlibabaascplogisticsinstantsonlinecheckdeliveryauthAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (*AlibabaascplogisticsinstantsonlinecheckdeliveryauthAPIRequest) SetBizType added in v1.3.1

SetBizType is BizType Setter 业务类型,INSTANT_ONLINE:同城配送-在线下单

type AlibabaascplogisticsinstantsonlinecheckdeliveryauthAPIResponse added in v1.3.1

type AlibabaascplogisticsinstantsonlinecheckdeliveryauthAPIResponse struct {
	model.CommonResponse
	AlibabaascplogisticsinstantsonlinecheckdeliveryauthAPIResponseModel
}

AlibabaascplogisticsinstantsonlinecheckdeliveryauthAPIResponse 同城配送在线下单检查授权 API返回值 alibaba.ascp.logistics.instantsonline.checkdeliveryauth

同城配送在线下单检查授权

type AlibabaascplogisticsinstantsonlinecheckdeliveryauthAPIResponseModel added in v1.3.1

type AlibabaascplogisticsinstantsonlinecheckdeliveryauthAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_ascp_logistics_instantsonline_checkdeliveryauth_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回值
	Result *AlibabaascplogisticsinstantsonlinecheckdeliveryauthTopResult `json:"result,omitempty" xml:"result,omitempty"`
}

AlibabaascplogisticsinstantsonlinecheckdeliveryauthAPIResponseModel is 同城配送在线下单检查授权 成功返回结果

type AlibabaascplogisticsinstantsonlinecheckdeliveryauthTopResult added in v1.3.1

type AlibabaascplogisticsinstantsonlinecheckdeliveryauthTopResult struct {
	// 数据
	Data *CheckDeliveryAuthTopResponse `json:"data,omitempty" xml:"data,omitempty"`
	// 执行结果
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

AlibabaascplogisticsinstantsonlinecheckdeliveryauthTopResult 结构体

type AlibabaascplogisticsinstantsonlinedeliveryordergetAPIRequest added in v1.3.1

type AlibabaascplogisticsinstantsonlinedeliveryordergetAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

AlibabaascplogisticsinstantsonlinedeliveryordergetAPIRequest 同城配送在线下单获取配送单 API请求 alibaba.ascp.logistics.instantsonline.deliveryorder.get

同城配送在线下单获取配送单

func NewAlibabaascplogisticsinstantsonlinedeliveryordergetRequest added in v1.3.1

func NewAlibabaascplogisticsinstantsonlinedeliveryordergetRequest() *AlibabaascplogisticsinstantsonlinedeliveryordergetAPIRequest

NewAlibabaascplogisticsinstantsonlinedeliveryordergetRequest 初始化AlibabaascplogisticsinstantsonlinedeliveryordergetAPIRequest对象

func (AlibabaascplogisticsinstantsonlinedeliveryordergetAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaascplogisticsinstantsonlinedeliveryordergetAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaascplogisticsinstantsonlinedeliveryordergetAPIRequest) GetOutOrderId added in v1.3.1

GetOutOrderId OutOrderId Getter

func (AlibabaascplogisticsinstantsonlinedeliveryordergetAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (*AlibabaascplogisticsinstantsonlinedeliveryordergetAPIRequest) SetOutOrderId added in v1.3.1

SetOutOrderId is OutOrderId Setter ERP单号

type AlibabaascplogisticsinstantsonlinedeliveryordergetAPIResponse added in v1.3.1

type AlibabaascplogisticsinstantsonlinedeliveryordergetAPIResponse struct {
	model.CommonResponse
	AlibabaascplogisticsinstantsonlinedeliveryordergetAPIResponseModel
}

AlibabaascplogisticsinstantsonlinedeliveryordergetAPIResponse 同城配送在线下单获取配送单 API返回值 alibaba.ascp.logistics.instantsonline.deliveryorder.get

同城配送在线下单获取配送单

type AlibabaascplogisticsinstantsonlinedeliveryordergetAPIResponseModel added in v1.3.1

type AlibabaascplogisticsinstantsonlinedeliveryordergetAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_ascp_logistics_instantsonline_deliveryorder_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回值
	Result *AlibabaascplogisticsinstantsonlinedeliveryordergetTopResult `json:"result,omitempty" xml:"result,omitempty"`
}

AlibabaascplogisticsinstantsonlinedeliveryordergetAPIResponseModel is 同城配送在线下单获取配送单 成功返回结果

type AlibabaascplogisticsinstantsonlinedeliveryordergetTopResult added in v1.3.1

type AlibabaascplogisticsinstantsonlinedeliveryordergetTopResult struct {
	// 数据
	Data *GetDeliveryOrderTopResponse `json:"data,omitempty" xml:"data,omitempty"`
	// 执行结果
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

AlibabaascplogisticsinstantsonlinedeliveryordergetTopResult 结构体

type AlibabaascplogisticsinstantsonlinepriorcalldeliveryAPIRequest added in v1.3.1

type AlibabaascplogisticsinstantsonlinepriorcalldeliveryAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

AlibabaascplogisticsinstantsonlinepriorcalldeliveryAPIRequest 同城配送在线下单预询价 API请求 alibaba.ascp.logistics.instantsonline.priorcalldelivery

同城配送在线下单预询价

func NewAlibabaascplogisticsinstantsonlinepriorcalldeliveryRequest added in v1.3.1

func NewAlibabaascplogisticsinstantsonlinepriorcalldeliveryRequest() *AlibabaascplogisticsinstantsonlinepriorcalldeliveryAPIRequest

NewAlibabaascplogisticsinstantsonlinepriorcalldeliveryRequest 初始化AlibabaascplogisticsinstantsonlinepriorcalldeliveryAPIRequest对象

func (AlibabaascplogisticsinstantsonlinepriorcalldeliveryAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaascplogisticsinstantsonlinepriorcalldeliveryAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaascplogisticsinstantsonlinepriorcalldeliveryAPIRequest) GetBizType added in v1.3.1

GetBizType BizType Getter

func (AlibabaascplogisticsinstantsonlinepriorcalldeliveryAPIRequest) GetDefaultTradeReceiver added in v1.3.1

GetDefaultTradeReceiver DefaultTradeReceiver Getter

func (AlibabaascplogisticsinstantsonlinepriorcalldeliveryAPIRequest) GetItemList added in v1.3.1

GetItemList ItemList Getter

func (AlibabaascplogisticsinstantsonlinepriorcalldeliveryAPIRequest) GetOutOrderId added in v1.3.1

GetOutOrderId OutOrderId Getter

func (AlibabaascplogisticsinstantsonlinepriorcalldeliveryAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (AlibabaascplogisticsinstantsonlinepriorcalldeliveryAPIRequest) GetReceiver added in v1.3.1

GetReceiver Receiver Getter

func (AlibabaascplogisticsinstantsonlinepriorcalldeliveryAPIRequest) GetSender added in v1.3.1

GetSender Sender Getter

func (AlibabaascplogisticsinstantsonlinepriorcalldeliveryAPIRequest) GetTid added in v1.3.1

GetTid Tid Getter

func (AlibabaascplogisticsinstantsonlinepriorcalldeliveryAPIRequest) GetTotalItemActualValue added in v1.3.1

GetTotalItemActualValue TotalItemActualValue Getter

func (AlibabaascplogisticsinstantsonlinepriorcalldeliveryAPIRequest) GetTotalItemValue added in v1.3.1

GetTotalItemValue TotalItemValue Getter

func (AlibabaascplogisticsinstantsonlinepriorcalldeliveryAPIRequest) GetTotalWeight added in v1.3.1

GetTotalWeight TotalWeight Getter

func (*AlibabaascplogisticsinstantsonlinepriorcalldeliveryAPIRequest) SetBizType added in v1.3.1

SetBizType is BizType Setter 业务类型,INSTANT_ONLINE:同城配送-在线下单

func (*AlibabaascplogisticsinstantsonlinepriorcalldeliveryAPIRequest) SetDefaultTradeReceiver added in v1.3.1

func (r *AlibabaascplogisticsinstantsonlinepriorcalldeliveryAPIRequest) SetDefaultTradeReceiver(_defaultTradeReceiver bool) error

SetDefaultTradeReceiver is DefaultTradeReceiver Setter 是否默认使用订单收货人地址,默认:true可不填写收货联系人

func (*AlibabaascplogisticsinstantsonlinepriorcalldeliveryAPIRequest) SetItemList added in v1.3.1

SetItemList is ItemList Setter 商品清单

func (*AlibabaascplogisticsinstantsonlinepriorcalldeliveryAPIRequest) SetOutOrderId added in v1.3.1

SetOutOrderId is OutOrderId Setter ERP单号

func (*AlibabaascplogisticsinstantsonlinepriorcalldeliveryAPIRequest) SetReceiver added in v1.3.1

SetReceiver is Receiver Setter 收货联系人

func (*AlibabaascplogisticsinstantsonlinepriorcalldeliveryAPIRequest) SetSender added in v1.3.1

SetSender is Sender Setter 发货联系人

func (*AlibabaascplogisticsinstantsonlinepriorcalldeliveryAPIRequest) SetTid added in v1.3.1

SetTid is Tid Setter 淘宝订主单号

func (*AlibabaascplogisticsinstantsonlinepriorcalldeliveryAPIRequest) SetTotalItemActualValue added in v1.3.1

func (r *AlibabaascplogisticsinstantsonlinepriorcalldeliveryAPIRequest) SetTotalItemActualValue(_totalItemActualValue int64) error

SetTotalItemActualValue is TotalItemActualValue Setter 商品实付总价(总价),单位分

func (*AlibabaascplogisticsinstantsonlinepriorcalldeliveryAPIRequest) SetTotalItemValue added in v1.3.1

func (r *AlibabaascplogisticsinstantsonlinepriorcalldeliveryAPIRequest) SetTotalItemValue(_totalItemValue int64) error

SetTotalItemValue is TotalItemValue Setter 商品总价(原价),单位分,默认:商品单价总和

func (*AlibabaascplogisticsinstantsonlinepriorcalldeliveryAPIRequest) SetTotalWeight added in v1.3.1

SetTotalWeight is TotalWeight Setter 总重量,单位KG,不超过20KG

type AlibabaascplogisticsinstantsonlinepriorcalldeliveryAPIResponse added in v1.3.1

type AlibabaascplogisticsinstantsonlinepriorcalldeliveryAPIResponse struct {
	model.CommonResponse
	AlibabaascplogisticsinstantsonlinepriorcalldeliveryAPIResponseModel
}

AlibabaascplogisticsinstantsonlinepriorcalldeliveryAPIResponse 同城配送在线下单预询价 API返回值 alibaba.ascp.logistics.instantsonline.priorcalldelivery

同城配送在线下单预询价

type AlibabaascplogisticsinstantsonlinepriorcalldeliveryAPIResponseModel added in v1.3.1

type AlibabaascplogisticsinstantsonlinepriorcalldeliveryAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_ascp_logistics_instantsonline_priorcalldelivery_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回值
	Result *AlibabaascplogisticsinstantsonlinepriorcalldeliveryTopResult `json:"result,omitempty" xml:"result,omitempty"`
}

AlibabaascplogisticsinstantsonlinepriorcalldeliveryAPIResponseModel is 同城配送在线下单预询价 成功返回结果

type AlibabaascplogisticsinstantsonlinepriorcalldeliveryTopResult added in v1.3.1

type AlibabaascplogisticsinstantsonlinepriorcalldeliveryTopResult struct {
	// 数据
	Data *PriorCallDeliveryTopResponse `json:"data,omitempty" xml:"data,omitempty"`
	// 执行结果
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

AlibabaascplogisticsinstantsonlinepriorcalldeliveryTopResult 结构体

type AlibabaascplogisticsofflinesendAPIRequest added in v1.3.1

type AlibabaascplogisticsofflinesendAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

AlibabaascplogisticsofflinesendAPIRequest 自己联系物流发货 API请求 alibaba.ascp.logistics.offline.send

用户调用该接口可实现自己联系发货,使用该接口发货,交易订单状态会直接变成卖家已发货

func NewAlibabaascplogisticsofflinesendRequest added in v1.3.1

func NewAlibabaascplogisticsofflinesendRequest() *AlibabaascplogisticsofflinesendAPIRequest

NewAlibabaascplogisticsofflinesendRequest 初始化AlibabaascplogisticsofflinesendAPIRequest对象

func (AlibabaascplogisticsofflinesendAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaascplogisticsofflinesendAPIRequest) GetApiParams added in v1.3.1

func (r AlibabaascplogisticsofflinesendAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaascplogisticsofflinesendAPIRequest) GetCancelId added in v1.3.1

GetCancelId CancelId Getter

func (AlibabaascplogisticsofflinesendAPIRequest) GetConsignPkgs added in v1.3.1

GetConsignPkgs ConsignPkgs Getter

func (AlibabaascplogisticsofflinesendAPIRequest) GetConsignStatus added in v1.3.1

GetConsignStatus ConsignStatus Getter

func (AlibabaascplogisticsofflinesendAPIRequest) GetConsignType added in v1.3.1

GetConsignType ConsignType Getter

func (AlibabaascplogisticsofflinesendAPIRequest) GetFeature added in v1.3.1

GetFeature Feature Getter

func (AlibabaascplogisticsofflinesendAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (AlibabaascplogisticsofflinesendAPIRequest) GetSenderId added in v1.3.1

GetSenderId SenderId Getter

func (AlibabaascplogisticsofflinesendAPIRequest) GetSubTid added in v1.3.1

GetSubTid SubTid Getter

func (AlibabaascplogisticsofflinesendAPIRequest) GetTid added in v1.3.1

GetTid Tid Getter

func (*AlibabaascplogisticsofflinesendAPIRequest) SetCancelId added in v1.3.1

func (r *AlibabaascplogisticsofflinesendAPIRequest) SetCancelId(_cancelId int64) error

SetCancelId is CancelId Setter 卖家联系人地址库ID,可以通过taobao.logistics.address.search接口查询到地址库ID。 如果为空,取的卖家的默认退货地址

func (*AlibabaascplogisticsofflinesendAPIRequest) SetConsignPkgs added in v1.3.1

func (r *AlibabaascplogisticsofflinesendAPIRequest) SetConsignPkgs(_consignPkgs []TopConsignPkgRequest) error

SetConsignPkgs is ConsignPkgs Setter 包裹信息

func (*AlibabaascplogisticsofflinesendAPIRequest) SetConsignStatus added in v1.3.1

func (r *AlibabaascplogisticsofflinesendAPIRequest) SetConsignStatus(_consignStatus *ConsignStatusRequest) error

SetConsignStatus is ConsignStatus Setter 子订单发货状态

func (*AlibabaascplogisticsofflinesendAPIRequest) SetConsignType added in v1.3.1

func (r *AlibabaascplogisticsofflinesendAPIRequest) SetConsignType(_consignType int64) error

SetConsignType is ConsignType Setter 发货类型 0:普通发货(老链路) 1: 普通发货(新链路,支持子订单部分发货、成分品发货以及ERP线下赠品发货) 2: 将发货状态从"部分发"修改为"全部发" 3:补发;默认为0

func (*AlibabaascplogisticsofflinesendAPIRequest) SetFeature added in v1.3.1

func (r *AlibabaascplogisticsofflinesendAPIRequest) SetFeature(_feature string) error

SetFeature is Feature Setter feature参数格式 范例: identCode=tid1:识别码1,识别码2|tid2:识别码3;machineCode=tid3:3C机器号A,3C机器号B identCode为识别码的KEY,machineCode为3C的KEY,多个key之间用”;”分隔 “tid1:识别码1,识别码2|tid2:识别码3”为identCode对应的value。 "|"不同商品间的分隔符。 例1商品和2商品,之间就用"|"分开。 TID就是商品代表的子订单号,对应taobao.trade.fullinfo.get 接口获得的oid字段。(通过OID可以唯一定位到当前商品上) ":"TID和具体传入参数间的分隔符。冒号前表示TID,之后代表该商品的参数属性。 "," 属性间分隔符。(对应商品数量,当存在一个商品的数量超过1个时,用逗号分开)。 具体:当订单中A商品的数量为2个,其中手机串号分别为"12345","67890"。 参数格式:identCode=TIDA:12345,67890。 TIDA对应了A宝贝,冒号后用逗号分隔的"12345","67890".说明本订单A宝贝的数量为2,值分别为"12345","67890"。 当存在"|"时,就说明订单中存在多个商品,商品间用"|"分隔了开来。|"之后的内容含义同上。retailStoreId=12345,发货门店ID或仓信息。retailStoreType=STORE: 发货门店类别,STORE表示门店,WAREHOUSE表示电商仓。对于全渠道订单回传的商家,retailStoreId和retailStoreType字段为必填字段。instantMobilePhoneNumber表示同城配送物流公司的物流订单收货人手机号,支持11位真实号和15位隐私号"12345678910-1234"。

func (*AlibabaascplogisticsofflinesendAPIRequest) SetSenderId added in v1.3.1

func (r *AlibabaascplogisticsofflinesendAPIRequest) SetSenderId(_senderId int64) error

SetSenderId is SenderId Setter 卖家联系人地址库ID,可以通过taobao.logistics.address.search接口查询到地址库ID。如果为空,取的卖家的默认取货地址

func (*AlibabaascplogisticsofflinesendAPIRequest) SetSubTid added in v1.3.1

SetSubTid is SubTid Setter 发货的子订单id列表(consign_type = 1、2、3 时不再使用次字段,使用新字段goods代替需要发货的子订单信息)

func (*AlibabaascplogisticsofflinesendAPIRequest) SetTid added in v1.3.1

SetTid is Tid Setter 淘宝交易ID

type AlibabaascplogisticsofflinesendAPIResponse added in v1.3.1

type AlibabaascplogisticsofflinesendAPIResponse struct {
	model.CommonResponse
	AlibabaascplogisticsofflinesendAPIResponseModel
}

AlibabaascplogisticsofflinesendAPIResponse 自己联系物流发货 API返回值 alibaba.ascp.logistics.offline.send

用户调用该接口可实现自己联系发货,使用该接口发货,交易订单状态会直接变成卖家已发货

type AlibabaascplogisticsofflinesendAPIResponseModel added in v1.3.1

type AlibabaascplogisticsofflinesendAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_ascp_logistics_offline_send_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 异步获取历史数据接口返回结果
	Result *AlibabaascplogisticsofflinesendResultDto `json:"result,omitempty" xml:"result,omitempty"`
}

AlibabaascplogisticsofflinesendAPIResponseModel is 自己联系物流发货 成功返回结果

type AlibabaascplogisticsofflinesendResultDto added in v1.3.1

type AlibabaascplogisticsofflinesendResultDto struct {
	// 执行结果
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

AlibabaascplogisticsofflinesendResultDto 结构体

type AlibabaascplogisticssellerordersgetAPIRequest added in v1.3.1

type AlibabaascplogisticssellerordersgetAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

AlibabaascplogisticssellerordersgetAPIRequest 商家配送核销订单列表查询 API请求 alibaba.ascp.logistics.seller.orders.get

商家配送核销订单列表查询

func NewAlibabaascplogisticssellerordersgetRequest added in v1.3.1

func NewAlibabaascplogisticssellerordersgetRequest() *AlibabaascplogisticssellerordersgetAPIRequest

NewAlibabaascplogisticssellerordersgetRequest 初始化AlibabaascplogisticssellerordersgetAPIRequest对象

func (AlibabaascplogisticssellerordersgetAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaascplogisticssellerordersgetAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaascplogisticssellerordersgetAPIRequest) GetPageIndex added in v1.3.1

GetPageIndex PageIndex Getter

func (AlibabaascplogisticssellerordersgetAPIRequest) GetPageSize added in v1.3.1

GetPageSize PageSize Getter

func (AlibabaascplogisticssellerordersgetAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (AlibabaascplogisticssellerordersgetAPIRequest) GetReceiveCode added in v1.3.1

GetReceiveCode ReceiveCode Getter

func (AlibabaascplogisticssellerordersgetAPIRequest) GetTid added in v1.3.1

GetTid Tid Getter

func (AlibabaascplogisticssellerordersgetAPIRequest) GetWriteOffDate added in v1.3.1

GetWriteOffDate WriteOffDate Getter

func (AlibabaascplogisticssellerordersgetAPIRequest) GetWriteOffStatus added in v1.3.1

GetWriteOffStatus WriteOffStatus Getter

func (*AlibabaascplogisticssellerordersgetAPIRequest) SetPageIndex added in v1.3.1

func (r *AlibabaascplogisticssellerordersgetAPIRequest) SetPageIndex(_pageIndex int64) error

SetPageIndex is PageIndex Setter 分页索引

func (*AlibabaascplogisticssellerordersgetAPIRequest) SetPageSize added in v1.3.1

func (r *AlibabaascplogisticssellerordersgetAPIRequest) SetPageSize(_pageSize int64) error

SetPageSize is PageSize Setter 分页大小

func (*AlibabaascplogisticssellerordersgetAPIRequest) SetReceiveCode added in v1.3.1

func (r *AlibabaascplogisticssellerordersgetAPIRequest) SetReceiveCode(_receiveCode string) error

SetReceiveCode is ReceiveCode Setter 收货码

func (*AlibabaascplogisticssellerordersgetAPIRequest) SetTid added in v1.3.1

SetTid is Tid Setter 淘系交易id

func (*AlibabaascplogisticssellerordersgetAPIRequest) SetWriteOffDate added in v1.3.1

func (r *AlibabaascplogisticssellerordersgetAPIRequest) SetWriteOffDate(_writeOffDate string) error

SetWriteOffDate is WriteOffDate Setter 核销日期

func (*AlibabaascplogisticssellerordersgetAPIRequest) SetWriteOffStatus added in v1.3.1

func (r *AlibabaascplogisticssellerordersgetAPIRequest) SetWriteOffStatus(_writeOffStatus string) error

SetWriteOffStatus is WriteOffStatus Setter 1代表未核销,2代表已核销

type AlibabaascplogisticssellerordersgetAPIResponse added in v1.3.1

type AlibabaascplogisticssellerordersgetAPIResponse struct {
	model.CommonResponse
	AlibabaascplogisticssellerordersgetAPIResponseModel
}

AlibabaascplogisticssellerordersgetAPIResponse 商家配送核销订单列表查询 API返回值 alibaba.ascp.logistics.seller.orders.get

商家配送核销订单列表查询

type AlibabaascplogisticssellerordersgetAPIResponseModel added in v1.3.1

type AlibabaascplogisticssellerordersgetAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_ascp_logistics_seller_orders_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回值
	Result *ResultDto `json:"result,omitempty" xml:"result,omitempty"`
}

AlibabaascplogisticssellerordersgetAPIResponseModel is 商家配送核销订单列表查询 成功返回结果

type AlibabaascplogisticssellersendAPIRequest added in v1.3.1

type AlibabaascplogisticssellersendAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

AlibabaascplogisticssellersendAPIRequest 商家配送发货 API请求 alibaba.ascp.logistics.seller.send

该API提供商家配送发货能力,使用该接口发货,交易订单状态会直接变成卖家已发货

func NewAlibabaascplogisticssellersendRequest added in v1.3.1

func NewAlibabaascplogisticssellersendRequest() *AlibabaascplogisticssellersendAPIRequest

NewAlibabaascplogisticssellersendRequest 初始化AlibabaascplogisticssellersendAPIRequest对象

func (AlibabaascplogisticssellersendAPIRequest) GetApiMethodName added in v1.3.1

func (r AlibabaascplogisticssellersendAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaascplogisticssellersendAPIRequest) GetApiParams added in v1.3.1

func (r AlibabaascplogisticssellersendAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaascplogisticssellersendAPIRequest) GetCancelId added in v1.3.1

GetCancelId CancelId Getter

func (AlibabaascplogisticssellersendAPIRequest) GetDeliveryMobile added in v1.3.1

func (r AlibabaascplogisticssellersendAPIRequest) GetDeliveryMobile() string

GetDeliveryMobile DeliveryMobile Getter

func (AlibabaascplogisticssellersendAPIRequest) GetDeliveryName added in v1.3.1

GetDeliveryName DeliveryName Getter

func (AlibabaascplogisticssellersendAPIRequest) GetFeature added in v1.3.1

GetFeature Feature Getter

func (AlibabaascplogisticssellersendAPIRequest) GetMode added in v1.3.1

GetMode Mode Getter

func (AlibabaascplogisticssellersendAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (AlibabaascplogisticssellersendAPIRequest) GetSenderId added in v1.3.1

GetSenderId SenderId Getter

func (AlibabaascplogisticssellersendAPIRequest) GetSubTid added in v1.3.1

GetSubTid SubTid Getter

func (AlibabaascplogisticssellersendAPIRequest) GetTid added in v1.3.1

GetTid Tid Getter

func (*AlibabaascplogisticssellersendAPIRequest) SetCancelId added in v1.3.1

func (r *AlibabaascplogisticssellersendAPIRequest) SetCancelId(_cancelId int64) error

SetCancelId is CancelId Setter 卖家联系人地址库ID,可以通过taobao.logistics.address.search接口查询到地址库ID。 如果为空,取的卖家的默认退货地址

func (*AlibabaascplogisticssellersendAPIRequest) SetDeliveryMobile added in v1.3.1

func (r *AlibabaascplogisticssellersendAPIRequest) SetDeliveryMobile(_deliveryMobile string) error

SetDeliveryMobile is DeliveryMobile Setter 派送员手机号(支持座机号和400)

func (*AlibabaascplogisticssellersendAPIRequest) SetDeliveryName added in v1.3.1

func (r *AlibabaascplogisticssellersendAPIRequest) SetDeliveryName(_deliveryName string) error

SetDeliveryName is DeliveryName Setter 派送员姓名

func (*AlibabaascplogisticssellersendAPIRequest) SetFeature added in v1.3.1

func (r *AlibabaascplogisticssellersendAPIRequest) SetFeature(_feature string) error

SetFeature is Feature Setter feature参数格式 范例: identCode=tid1:识别码1,识别码2|tid2:识别码3;machineCode=tid3:3C机器号A,3C机器号B identCode为识别码的KEY,machineCode为3C的KEY,多个key之间用”;”分隔 “tid1:识别码1,识别码2|tid2:识别码3”为identCode对应的value。 "|"不同商品间的分隔符。 例1商品和2商品,之间就用"|"分开。 TID就是商品代表的子订单号,对应taobao.trade.fullinfo.get 接口获得的oid字段。(通过OID可以唯一定位到当前商品上) ":"TID和具体传入参数间的分隔符。冒号前表示TID,之后代表该商品的参数属性。 "," 属性间分隔符。(对应商品数量,当存在一个商品的数量超过1个时,用逗号分开)。 具体:当订单中A商品的数量为2个,其中手机串号分别为"12345","67890"。 参数格式:identCode=TIDA:12345,67890。 TIDA对应了A宝贝,冒号后用逗号分隔的"12345","67890".说明本订单A宝贝的数量为2,值分别为"12345","67890"。 当存在"|"时,就说明订单中存在多个商品,商品间用"|"分隔了开来。|"之后的内容含义同上。retailStoreId=12345,发货门店ID或仓信息。retailStoreType=STORE: 发货门店类别,STORE表示门店,WAREHOUSE表示电商仓。对于全渠道订单回传的商家,retailStoreId和retailStoreType字段为必填字段

func (*AlibabaascplogisticssellersendAPIRequest) SetMode added in v1.3.1

SetMode is Mode Setter

A(默认,核销签收模式),B(商家回传物流节点模式)

func (*AlibabaascplogisticssellersendAPIRequest) SetSenderId added in v1.3.1

func (r *AlibabaascplogisticssellersendAPIRequest) SetSenderId(_senderId int64) error

SetSenderId is SenderId Setter 卖家联系人地址库ID,可以通过taobao.logistics.address.search接口查询到地址库ID。如果为空,取的卖家的默认取货地址

func (*AlibabaascplogisticssellersendAPIRequest) SetSubTid added in v1.3.1

SetSubTid is SubTid Setter 需要拆单发货的子订单集合,针对的是一笔交易下有多个子订单需要分开发货的场景;1次可传人多个子订单号,子订单间用逗号隔开;为空表示不做拆单发货。

func (*AlibabaascplogisticssellersendAPIRequest) SetTid added in v1.3.1

SetTid is Tid Setter 淘宝交易ID

type AlibabaascplogisticssellersendAPIResponse added in v1.3.1

type AlibabaascplogisticssellersendAPIResponse struct {
	model.CommonResponse
	AlibabaascplogisticssellersendAPIResponseModel
}

AlibabaascplogisticssellersendAPIResponse 商家配送发货 API返回值 alibaba.ascp.logistics.seller.send

该API提供商家配送发货能力,使用该接口发货,交易订单状态会直接变成卖家已发货

type AlibabaascplogisticssellersendAPIResponseModel added in v1.3.1

type AlibabaascplogisticssellersendAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_ascp_logistics_seller_send_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// -
	Result *ResultDto `json:"result,omitempty" xml:"result,omitempty"`
}

AlibabaascplogisticssellersendAPIResponseModel is 商家配送发货 成功返回结果

type AlibabaascplogisticssellerwritelogisticsnodeAPIRequest added in v1.3.1

type AlibabaascplogisticssellerwritelogisticsnodeAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

AlibabaascplogisticssellerwritelogisticsnodeAPIRequest 商家配送写入物流节点 API请求 alibaba.ascp.logistics.seller.writelogisticsnode

商家配送的订单,商家写入物流节点

func NewAlibabaascplogisticssellerwritelogisticsnodeRequest added in v1.3.1

func NewAlibabaascplogisticssellerwritelogisticsnodeRequest() *AlibabaascplogisticssellerwritelogisticsnodeAPIRequest

NewAlibabaascplogisticssellerwritelogisticsnodeRequest 初始化AlibabaascplogisticssellerwritelogisticsnodeAPIRequest对象

func (AlibabaascplogisticssellerwritelogisticsnodeAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaascplogisticssellerwritelogisticsnodeAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaascplogisticssellerwritelogisticsnodeAPIRequest) GetLpOrderId added in v1.3.1

GetLpOrderId LpOrderId Getter

func (AlibabaascplogisticssellerwritelogisticsnodeAPIRequest) GetNodes added in v1.3.1

GetNodes Nodes Getter

func (AlibabaascplogisticssellerwritelogisticsnodeAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (*AlibabaascplogisticssellerwritelogisticsnodeAPIRequest) SetLpOrderId added in v1.3.1

SetLpOrderId is LpOrderId Setter 物流发货单号

func (*AlibabaascplogisticssellerwritelogisticsnodeAPIRequest) SetNodes added in v1.3.1

SetNodes is Nodes Setter 物流节点

type AlibabaascplogisticssellerwritelogisticsnodeAPIResponse added in v1.3.1

type AlibabaascplogisticssellerwritelogisticsnodeAPIResponse struct {
	model.CommonResponse
	AlibabaascplogisticssellerwritelogisticsnodeAPIResponseModel
}

AlibabaascplogisticssellerwritelogisticsnodeAPIResponse 商家配送写入物流节点 API返回值 alibaba.ascp.logistics.seller.writelogisticsnode

商家配送的订单,商家写入物流节点

type AlibabaascplogisticssellerwritelogisticsnodeAPIResponseModel added in v1.3.1

type AlibabaascplogisticssellerwritelogisticsnodeAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_ascp_logistics_seller_writelogisticsnode_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回结果
	Result *BatchWriteLogisticsNodeTopResponse `json:"result,omitempty" xml:"result,omitempty"`
}

AlibabaascplogisticssellerwritelogisticsnodeAPIResponseModel is 商家配送写入物流节点 成功返回结果

type AlibabaascplogisticssellerwriteoffAPIRequest added in v1.3.1

type AlibabaascplogisticssellerwriteoffAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

AlibabaascplogisticssellerwriteoffAPIRequest 商家配送核销 API请求 alibaba.ascp.logistics.seller.writeoff

商家配送核销

func NewAlibabaascplogisticssellerwriteoffRequest added in v1.3.1

func NewAlibabaascplogisticssellerwriteoffRequest() *AlibabaascplogisticssellerwriteoffAPIRequest

NewAlibabaascplogisticssellerwriteoffRequest 初始化AlibabaascplogisticssellerwriteoffAPIRequest对象

func (AlibabaascplogisticssellerwriteoffAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaascplogisticssellerwriteoffAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaascplogisticssellerwriteoffAPIRequest) GetLpOrderId added in v1.3.1

GetLpOrderId LpOrderId Getter

func (AlibabaascplogisticssellerwriteoffAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (AlibabaascplogisticssellerwriteoffAPIRequest) GetReceiveCode added in v1.3.1

GetReceiveCode ReceiveCode Getter

func (*AlibabaascplogisticssellerwriteoffAPIRequest) SetLpOrderId added in v1.3.1

func (r *AlibabaascplogisticssellerwriteoffAPIRequest) SetLpOrderId(_lpOrderId int64) error

SetLpOrderId is LpOrderId Setter 所要核销的核销物流单ID,在alibaba.ascp.logistics.seller.orders.get中获取。

func (*AlibabaascplogisticssellerwriteoffAPIRequest) SetReceiveCode added in v1.3.1

func (r *AlibabaascplogisticssellerwriteoffAPIRequest) SetReceiveCode(_receiveCode string) error

SetReceiveCode is ReceiveCode Setter 核销码

type AlibabaascplogisticssellerwriteoffAPIResponse added in v1.3.1

type AlibabaascplogisticssellerwriteoffAPIResponse struct {
	model.CommonResponse
	AlibabaascplogisticssellerwriteoffAPIResponseModel
}

AlibabaascplogisticssellerwriteoffAPIResponse 商家配送核销 API返回值 alibaba.ascp.logistics.seller.writeoff

商家配送核销

type AlibabaascplogisticssellerwriteoffAPIResponseModel added in v1.3.1

type AlibabaascplogisticssellerwriteoffAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_ascp_logistics_seller_writeoff_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 操作结果
	Result *ResultDto `json:"result,omitempty" xml:"result,omitempty"`
}

AlibabaascplogisticssellerwriteoffAPIResponseModel is 商家配送核销 成功返回结果

type Area

type Area struct {
	// 地域名称.如北京市,杭州市,西湖区,每一个area_id 都代表了一个具体的地区.
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 具体一个地区的邮编
	Zip string `json:"zip,omitempty" xml:"zip,omitempty"`
	// 标准行政区域代码.参考:http://www.stats.gov.cn/tjbz/xzqhdm/t20120105_402777427.htm
	Id int64 `json:"id,omitempty" xml:"id,omitempty"`
	// 区域类型.area区域 1:country/国家;2:province/省/自治区/直辖市;3:city/地区(省下面的地级市);4:district/县/市(县级市)/区;abroad:海外. 比如北京市的area_type = 2,朝阳区是北京市的一个区,所以朝阳区的area_type = 4.
	Type int64 `json:"type,omitempty" xml:"type,omitempty"`
	// 父节点区域标识.如北京市的area_id是110100,朝阳区是北京市的一个区,所以朝阳区的parent_id就是北京市的area_id.
	ParentId int64 `json:"parent_id,omitempty" xml:"parent_id,omitempty"`
}

Area 结构体

type BatchWriteLogisticsNodeTopResponse added in v1.2.9

type BatchWriteLogisticsNodeTopResponse struct {
	// true成功,false失败
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

BatchWriteLogisticsNodeTopResponse 结构体

type CarriageDetail

type CarriageDetail struct {
	// 破损赔付
	DamagePayment string `json:"damage_payment,omitempty" xml:"damage_payment,omitempty"`
	// 物流公司揽收时间段
	GotTime string `json:"got_time,omitempty" xml:"got_time,omitempty"`
	// 丢单赔付
	LostPayment string `json:"lost_payment,omitempty" xml:"lost_payment,omitempty"`
	// 快件送达所需的时间(单位:天)
	WayDay string `json:"way_day,omitempty" xml:"way_day,omitempty"`
	// 续费(单位:元)
	AddFee int64 `json:"add_fee,omitempty" xml:"add_fee,omitempty"`
	// 续重(单位:千克)
	AddWeight int64 `json:"add_weight,omitempty" xml:"add_weight,omitempty"`
	// 首费(单位:元)
	InitialFee int64 `json:"initial_fee,omitempty" xml:"initial_fee,omitempty"`
	// 首重(单位:千克)
	InitialWeight int64 `json:"initial_weight,omitempty" xml:"initial_weight,omitempty"`
}

CarriageDetail 结构体

type CheckDeliveryAuthTopResponse added in v1.2.9

type CheckDeliveryAuthTopResponse struct {
	// 扩展
	Features string `json:"features,omitempty" xml:"features,omitempty"`
	// 0正常,1异常
	AuthStatus int64 `json:"auth_status,omitempty" xml:"auth_status,omitempty"`
}

CheckDeliveryAuthTopResponse 结构体

type ConfirmPackageOrderRequest added in v1.2.9

type ConfirmPackageOrderRequest struct {
	// 包裹信息
	Packages []PackageDto `json:"packages,omitempty" xml:"packages>package_dto,omitempty"`
	// 包裹入库单号
	DeliveryOrderCode string `json:"delivery_order_code,omitempty" xml:"delivery_order_code,omitempty"`
	// 业务类型,取值:JYPKZXCK(集运包裹正向出库)、JYPKNXCK(集运包裹逆向出库)
	OrderType string `json:"order_type,omitempty" xml:"order_type,omitempty"`
	// 单据状态,取值:confirm(出库确认)、exception(出库异常)
	OrderStatus string `json:"order_status,omitempty" xml:"order_status,omitempty"`
	// 业务操作时间
	OperateTime string `json:"operate_time,omitempty" xml:"operate_time,omitempty"`
	// 物流主体,例如:TaoTian(淘天)
	LogisticsOwner string `json:"logistics_owner,omitempty" xml:"logistics_owner,omitempty"`
	// 异常类型,回传出库异常时必传 【包裹破损】 【撤单拦截】 【出库单异常】 【联系不上商家】 【商家拒绝退回】 【其他原因】
	ErrorType string `json:"error_type,omitempty" xml:"error_type,omitempty"`
	// 异常原因说明,回传出库异常时必传
	ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"`
	// 服务商仓code
	WarehouseCode string `json:"warehouse_code,omitempty" xml:"warehouse_code,omitempty"`
	// WMS系统作业单号
	OuterOrderCode string `json:"outer_order_code,omitempty" xml:"outer_order_code,omitempty"`
	// 包裹入库单号
	EntryOrderCode string `json:"entry_order_code,omitempty" xml:"entry_order_code,omitempty"`
}

ConfirmPackageOrderRequest 结构体

type ConsignDto added in v1.2.9

type ConsignDto struct {
	// 发货文案描述
	ConsignDesc string `json:"consign_desc,omitempty" xml:"consign_desc,omitempty"`
	// 物流发货单号
	LpOrderId int64 `json:"lp_order_id,omitempty" xml:"lp_order_id,omitempty"`
}

ConsignDto 结构体

type ConsignStatusRequest added in v1.2.9

type ConsignStatusRequest struct {
	// 子订单id(组合品不需要传系统会自动计算)
	SubTid string `json:"sub_tid,omitempty" xml:"sub_tid,omitempty"`
	// 子订单是否部分发货,true:部分发货;false:全部发货;周期购、分销订单不支持部分发货
	IsPartConsign bool `json:"is_part_consign,omitempty" xml:"is_part_consign,omitempty"`
}

ConsignStatusRequest 结构体

type ContactInfo added in v1.2.9

type ContactInfo struct {
	// 姓名
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 固定电话
	Tel string `json:"tel,omitempty" xml:"tel,omitempty"`
	// 移动电话
	Mobile string `json:"mobile,omitempty" xml:"mobile,omitempty"`
	// 省份
	Province string `json:"province,omitempty" xml:"province,omitempty"`
	// 城市
	City string `json:"city,omitempty" xml:"city,omitempty"`
	// 区域
	Area string `json:"area,omitempty" xml:"area,omitempty"`
	// 城镇
	Town string `json:"town,omitempty" xml:"town,omitempty"`
	// 详细地址
	DetailAddress string `json:"detail_address,omitempty" xml:"detail_address,omitempty"`
	// 订单oaid,正向出库时下发
	Oaid string `json:"oaid,omitempty" xml:"oaid,omitempty"`
}

ContactInfo 结构体

type DeliveryTemplate

type DeliveryTemplate struct {
	// 运费模板中运费详细信息对象,包含默认运费和指定地区运费
	FeeList []TopFee `json:"fee_list,omitempty" xml:"fee_list>top_fee,omitempty"`
	// 模板创建时间
	Created string `json:"created,omitempty" xml:"created,omitempty"`
	// 模板名称,长度不能超过25个字节
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 物流服务模板支持增值服务列表,多个用分号隔开。cod:货到付款 mops:刷卡付款
	Supports string `json:"supports,omitempty" xml:"supports,omitempty"`
	// 模板修改时间
	Modified string `json:"modified,omitempty" xml:"modified,omitempty"`
	// 运费模板上设置的发货地址
	Address string `json:"address,omitempty" xml:"address,omitempty"`
	// 模块ID
	TemplateId int64 `json:"template_id,omitempty" xml:"template_id,omitempty"`
	// 可选值:0,1,2,3<br>,说明如下<br>1)买家承担运费的模版<br>0:买家承担服务费<br>1: 卖家承担服务费<br>2)卖家承担运费的模版<br>2:卖家承担运费的模版(集市),卖家承担服务费<br>3:卖家承担运费的模版(天猫),卖家承担服务费<br>
	Assumer int64 `json:"assumer,omitempty" xml:"assumer,omitempty"`
	// 可选值:0<br/>说明:<br/>0:表示按宝贝件数计算运费<br/><br/><br/><br/>1:表示按宝贝重量计算运费<br/><br/><br/><br/>3:表示按宝贝体积计算运费
	Valuation int64 `json:"valuation,omitempty" xml:"valuation,omitempty"`
	// 该模板上设置的卖家发货地址区域ID,如:address为浙江省杭州市西湖去文三路XX号那么这个consign_area_id的值就是西湖区的ID
	ConsignAreaId int64 `json:"consign_area_id,omitempty" xml:"consign_area_id,omitempty"`
}

DeliveryTemplate 结构体

type DeliveryTopDto added in v1.2.9

type DeliveryTopDto struct {
	// 配送员电话,支持手机、座机、400电话
	Phone string `json:"phone,omitempty" xml:"phone,omitempty"`
	// 配送员姓名
	Name string `json:"name,omitempty" xml:"name,omitempty"`
}

DeliveryTopDto 结构体

type GenPickupCodeConfigTopDto added in v1.2.9

type GenPickupCodeConfigTopDto struct {
	// 取件码分组,分组下唯一
	Group string `json:"group,omitempty" xml:"group,omitempty"`
}

GenPickupCodeConfigTopDto 结构体

type GetDeliveryOrderTopResponse added in v1.2.9

type GetDeliveryOrderTopResponse struct {
	// 商品清单
	ItemList []ItemTopDto `json:"item_list,omitempty" xml:"item_list>item_top_dto,omitempty"`
	// 业务流水号
	CwOrderId string `json:"cw_order_id,omitempty" xml:"cw_order_id,omitempty"`
	// 物流单号
	WaybillCode string `json:"waybill_code,omitempty" xml:"waybill_code,omitempty"`
	// 取件码
	PickupCode string `json:"pickup_code,omitempty" xml:"pickup_code,omitempty"`
	// ERP单号
	OutOrderId string `json:"out_order_id,omitempty" xml:"out_order_id,omitempty"`
	// 配送员姓名
	DeliveryName string `json:"delivery_name,omitempty" xml:"delivery_name,omitempty"`
	// 配送员电话
	DeliveryPhone string `json:"delivery_phone,omitempty" xml:"delivery_phone,omitempty"`
	// 扩展
	Features string `json:"features,omitempty" xml:"features,omitempty"`
	// 业务类型,INSTANT_ONLINE:同城配送-在线下单
	BizType string `json:"biz_type,omitempty" xml:"biz_type,omitempty"`
	// 状态,INIT(初始化),CREATED(已创建),ACCEPTED(骑手已接单),SHIPPING(配送中),SUCCESS(妥投/签收),CANCELED(已取消),ABNORMAL(配送异常),REFUSED(拒收)
	Status string `json:"status,omitempty" xml:"status,omitempty"`
	// 淘宝订主单号
	Tid int64 `json:"tid,omitempty" xml:"tid,omitempty"`
	// 发货联系人
	Sender *SenderTopDto `json:"sender,omitempty" xml:"sender,omitempty"`
	// 选择的物流资源
	SelectedResource *SelectedResourceTopDto `json:"selected_resource,omitempty" xml:"selected_resource,omitempty"`
	// 商品总价(原价),单位分,默认:商品单价总和
	TotalItemValue int64 `json:"total_item_value,omitempty" xml:"total_item_value,omitempty"`
	// 商品实付总价(总价),单位分
	TotalItemActualValue int64 `json:"total_item_actual_value,omitempty" xml:"total_item_actual_value,omitempty"`
	// 总重量,单位KG
	TotalWeight int64 `json:"total_weight,omitempty" xml:"total_weight,omitempty"`
}

GetDeliveryOrderTopResponse 结构体

type ItemTopDto added in v1.2.9

type ItemTopDto struct {
	// 商品名称
	ItemName string `json:"item_name,omitempty" xml:"item_name,omitempty"`
	// 商品类目
	ItemCate string `json:"item_cate,omitempty" xml:"item_cate,omitempty"`
	// 商品单价(原价)
	ItemValue int64 `json:"item_value,omitempty" xml:"item_value,omitempty"`
	// 商品数量
	ItemQuantity int64 `json:"item_quantity,omitempty" xml:"item_quantity,omitempty"`
	// 商品ID
	ItemId int64 `json:"item_id,omitempty" xml:"item_id,omitempty"`
}

ItemTopDto 结构体

type JzReceiverTo

type JzReceiverTo struct {
	// 详细地址
	Address string `json:"address,omitempty" xml:"address,omitempty"`
	// 市
	City string `json:"city,omitempty" xml:"city,omitempty"`
	// 收货人名称
	ContactName string `json:"contact_name,omitempty" xml:"contact_name,omitempty"`
	// 国家
	Country string `json:"country,omitempty" xml:"country,omitempty"`
	// 区
	District string `json:"district,omitempty" xml:"district,omitempty"`
	// 手机号
	MobilePhone string `json:"mobile_phone,omitempty" xml:"mobile_phone,omitempty"`
	// 省
	Province string `json:"province,omitempty" xml:"province,omitempty"`
	// 街道
	Street string `json:"street,omitempty" xml:"street,omitempty"`
	// 座机号
	TelePhone string `json:"tele_phone,omitempty" xml:"tele_phone,omitempty"`
	// 邮编
	ZipCode string `json:"zip_code,omitempty" xml:"zip_code,omitempty"`
}

JzReceiverTo 结构体

type JzTopArgs

type JzTopArgs struct {
	// 运单号,用快递或商家自有发货时,必填
	MailNo string `json:"mail_no,omitempty" xml:"mail_no,omitempty"`
	// 包裹数量
	PackageNumber string `json:"package_number,omitempty" xml:"package_number,omitempty"`
	// 包裹备注
	PackageRemark string `json:"package_remark,omitempty" xml:"package_remark,omitempty"`
	// 包裹体积
	PackageVolume string `json:"package_volume,omitempty" xml:"package_volume,omitempty"`
	// 包裹重量
	PackageWeight string `json:"package_weight,omitempty" xml:"package_weight,omitempty"`
	// 自有物流公司名称
	ZyCompany string `json:"zy_company,omitempty" xml:"zy_company,omitempty"`
	// 自有物流发货时间,时间不能早于当前时间
	ZyConsignTime string `json:"zy_consign_time,omitempty" xml:"zy_consign_time,omitempty"`
	// 自有物流公司电话
	ZyPhoneNumber string `json:"zy_phone_number,omitempty" xml:"zy_phone_number,omitempty"`
}

JzTopArgs 结构体

type JzTopDto

type JzTopDto struct {
	// 快递公司列表
	Expresses []Tpdto `json:"expresses,omitempty" xml:"expresses>tpdto,omitempty"`
	// 安装公司列表
	InsTps []Tpdto `json:"ins_tps,omitempty" xml:"ins_tps>tpdto,omitempty"`
	// 物流公司列表
	LgCps []Tpdto `json:"lg_cps,omitempty" xml:"lg_cps>tpdto,omitempty"`
	// 商品对应的服务信息
	GoodsRelations string `json:"goods_relations,omitempty" xml:"goods_relations,omitempty"`
	// 是否支持快递
	SupportDelivery bool `json:"support_delivery,omitempty" xml:"support_delivery,omitempty"`
	// 是否支持安装
	SupportInstall bool `json:"support_install,omitempty" xml:"support_install,omitempty"`
	// 是否支持修改安装地址
	SuppModifyInsAdd bool `json:"supp_modify_ins_add,omitempty" xml:"supp_modify_ins_add,omitempty"`
}

JzTopDto 结构体

type Location

type Location struct {
	// 邮政编码
	Zip string `json:"zip,omitempty" xml:"zip,omitempty"`
	// 详细地址,最大256个字节(128个中文)
	Address string `json:"address,omitempty" xml:"address,omitempty"`
	// 所在城市(中文名称)
	City string `json:"city,omitempty" xml:"city,omitempty"`
	// 所在省份(中文名称)
	State string `json:"state,omitempty" xml:"state,omitempty"`
	// 国家名称
	Country string `json:"country,omitempty" xml:"country,omitempty"`
	// 区/县(只适用于物流API)
	District string `json:"district,omitempty" xml:"district,omitempty"`
}

Location 结构体

type LocationTopDto added in v1.2.9

type LocationTopDto struct {
	// 省/直辖市
	Province string `json:"province,omitempty" xml:"province,omitempty"`
	// 地级市
	City string `json:"city,omitempty" xml:"city,omitempty"`
	// 区/县
	District string `json:"district,omitempty" xml:"district,omitempty"`
	// 乡/镇/街道
	Town string `json:"town,omitempty" xml:"town,omitempty"`
	// 经度,高德地图
	Lng string `json:"lng,omitempty" xml:"lng,omitempty"`
	// 纬度,高德地图
	Lat string `json:"lat,omitempty" xml:"lat,omitempty"`
}

LocationTopDto 结构体

type LogisticsCompany

type LogisticsCompany struct {
	// 物流公司代码
	Code string `json:"code,omitempty" xml:"code,omitempty"`
	// 物流公司简称
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 运单号验证正则表达式
	RegMailNo string `json:"reg_mail_no,omitempty" xml:"reg_mail_no,omitempty"`
	// 物流公司标识
	Id int64 `json:"id,omitempty" xml:"id,omitempty"`
}

LogisticsCompany 结构体

type LogisticsMail

type LogisticsMail struct {
	// 运单号.具体一个物流公司的运单号码.
	OutSid string `json:"out_sid,omitempty" xml:"out_sid,omitempty"`
	// 物流公司名称
	CompanyName string `json:"company_name,omitempty" xml:"company_name,omitempty"`
}

LogisticsMail 结构体

type LogisticsNodeTopDto added in v1.2.9

type LogisticsNodeTopDto struct {
	// ACCEPT(已揽收),TRANSPORT(运输中),DELIVERING(派送中),SIGN(已签收),CANCEL(已取消),FAILED(物流异常)
	Action string `json:"action,omitempty" xml:"action,omitempty"`
	// 操作时间戳,精确到毫秒(ms)
	OperateTime int64 `json:"operate_time,omitempty" xml:"operate_time,omitempty"`
	// 配送员信息
	Delivery *DeliveryTopDto `json:"delivery,omitempty" xml:"delivery,omitempty"`
	// 货物所在的当前位置
	Location *LocationTopDto `json:"location,omitempty" xml:"location,omitempty"`
}

LogisticsNodeTopDto 结构体

type LogisticsPartner

type LogisticsPartner struct {
	// 揽收说明信息
	CoverRemark string `json:"cover_remark,omitempty" xml:"cover_remark,omitempty"`
	// 不可送达的说明信息
	UncoverRemark string `json:"uncover_remark,omitempty" xml:"uncover_remark,omitempty"`
	// 物流公司揽收和资费详细信息
	Carriage *CarriageDetail `json:"carriage,omitempty" xml:"carriage,omitempty"`
	// 物流公司详细信息
	Partner *PartnerDetail `json:"partner,omitempty" xml:"partner,omitempty"`
}

LogisticsPartner 结构体

type PackageDto added in v1.2.9

type PackageDto struct {
	// 正向出库回传二段快递公司 逆向出库回传逆向退货商家仓的快递公司
	TmsCpCode string `json:"tms_cp_code,omitempty" xml:"tms_cp_code,omitempty"`
	// 正向出库回传二段运单号 逆向出库回传逆向退回商家仓的运单号
	MailNo string `json:"mail_no,omitempty" xml:"mail_no,omitempty"`
	// 包裹重量(单位:克),小数点后2位
	Weight string `json:"weight,omitempty" xml:"weight,omitempty"`
	// 包裹长度 (单位:cm),小数点后2位
	Length string `json:"length,omitempty" xml:"length,omitempty"`
	// 包裹宽度 (单位:cm),小数点后2位
	Width string `json:"width,omitempty" xml:"width,omitempty"`
	// 包裹高度(单位:cm),小数点后2位
	Height string `json:"height,omitempty" xml:"height,omitempty"`
	// 包裹仓储单号
	PackageLine string `json:"package_line,omitempty" xml:"package_line,omitempty"`
	// wms出库包裹单号
	OutPackageCode string `json:"out_package_code,omitempty" xml:"out_package_code,omitempty"`
}

PackageDto 结构体

type PartnerDetail

type PartnerDetail struct {
	// 物流公司支付宝账号
	AccountNo string `json:"account_no,omitempty" xml:"account_no,omitempty"`
	// 物流公司代码
	CompanyCode string `json:"company_code,omitempty" xml:"company_code,omitempty"`
	// 物流公司全名
	FullName string `json:"full_name,omitempty" xml:"full_name,omitempty"`
	// 运单号验证正则表达式
	RegMailNo string `json:"reg_mail_no,omitempty" xml:"reg_mail_no,omitempty"`
	// 旺旺id
	WangwangId string `json:"wangwang_id,omitempty" xml:"wangwang_id,omitempty"`
	// 物流公司简称
	CompanyName string `json:"company_name,omitempty" xml:"company_name,omitempty"`
	// 物流公司id
	CompanyId int64 `json:"company_id,omitempty" xml:"company_id,omitempty"`
}

PartnerDetail 结构体

type PriorCallDeliveryTopResponse added in v1.2.9

type PriorCallDeliveryTopResponse struct {
	// 资源列表
	ResourceList []ResourceDto `json:"resource_list,omitempty" xml:"resource_list>resource_dto,omitempty"`
}

PriorCallDeliveryTopResponse 结构体

type PullPackageOrderRequest added in v1.2.9

type PullPackageOrderRequest struct {
	// 业务类型,取值:JYPKZXCK(集运包裹正向出库)、JYPKNXCK(集运包裹逆向出库)
	OrderType string `json:"order_type,omitempty" xml:"order_type,omitempty"`
	// 物流主体,例如:TaoTian(淘天)
	LogisticsOwner string `json:"logistics_owner,omitempty" xml:"logistics_owner,omitempty"`
	// 服务商仓code
	WarehouseCode string `json:"warehouse_code,omitempty" xml:"warehouse_code,omitempty"`
	// 包裹货主
	PackageOwnerCode string `json:"package_owner_code,omitempty" xml:"package_owner_code,omitempty"`
	// 服务提供商
	SupplierId string `json:"supplier_id,omitempty" xml:"supplier_id,omitempty"`
	// 快递单号
	MailNo string `json:"mail_no,omitempty" xml:"mail_no,omitempty"`
}

PullPackageOrderRequest 结构体

type PullPackageOrderResponse added in v1.2.9

type PullPackageOrderResponse struct {
	// 包裹出库单号
	DeliveryOrderCode string `json:"delivery_order_code,omitempty" xml:"delivery_order_code,omitempty"`
	// 物流服务商ID
	MailNo string `json:"mail_no,omitempty" xml:"mail_no,omitempty"`
	// 主订单id,正向出库时下发
	OaidOrderSourceCode string `json:"oaid_order_source_code,omitempty" xml:"oaid_order_source_code,omitempty"`
	// 拓展字段
	ExtendProps string `json:"extend_props,omitempty" xml:"extend_props,omitempty"`
	// 配送公司
	TmsCpCode string `json:"tms_cp_code,omitempty" xml:"tms_cp_code,omitempty"`
	// 包裹入库单号
	EntryOrderCode string `json:"entry_order_code,omitempty" xml:"entry_order_code,omitempty"`
	// 物流主体,例如:TaoTian(淘天)
	LogisticsOwner string `json:"logistics_owner,omitempty" xml:"logistics_owner,omitempty"`
	// 收件人信息,逆向出库时下发
	ReceiverInfo *ContactInfo `json:"receiver_info,omitempty" xml:"receiver_info,omitempty"`
}

PullPackageOrderResponse 结构体

type ReceiverTopDto added in v1.2.9

type ReceiverTopDto struct {
	// 商品名称
	ItemName string `json:"item_name,omitempty" xml:"item_name,omitempty"`
	// 联系人姓名
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 联系人电话,支持手机、座机
	Phone string `json:"phone,omitempty" xml:"phone,omitempty"`
	// 地址门牌号
	Address string `json:"address,omitempty" xml:"address,omitempty"`
	// 纬度(高德)
	Lat string `json:"lat,omitempty" xml:"lat,omitempty"`
	// 经度(高德)
	Lng string `json:"lng,omitempty" xml:"lng,omitempty"`
	// 商品单价(原价)
	ItemValue int64 `json:"item_value,omitempty" xml:"item_value,omitempty"`
	// 商品数量
	ItemQuantity int64 `json:"item_quantity,omitempty" xml:"item_quantity,omitempty"`
	// 商品ID
	ItemId int64 `json:"item_id,omitempty" xml:"item_id,omitempty"`
}

ReceiverTopDto 结构体

type ReportExceptionRequest added in v1.2.9

type ReportExceptionRequest struct {
	// 异常包裹图片链接
	PackageImage []string `json:"package_image,omitempty" xml:"package_image>string,omitempty"`
	// 异常类型
	ErrorType []string `json:"error_type,omitempty" xml:"error_type>string,omitempty"`
	// 物流主体
	LogisticsOwner string `json:"logistics_owner,omitempty" xml:"logistics_owner,omitempty"`
	// 物流服务商ID
	SupplierId string `json:"supplier_id,omitempty" xml:"supplier_id,omitempty"`
	// 服务商仓code
	WarehouseCode string `json:"warehouse_code,omitempty" xml:"warehouse_code,omitempty"`
	// 异常包裹运单号
	MailNo string `json:"mail_no,omitempty" xml:"mail_no,omitempty"`
	// 异常作业单号
	OrderCode string `json:"order_code,omitempty" xml:"order_code,omitempty"`
	// 作业单类型
	OrderType string `json:"order_type,omitempty" xml:"order_type,omitempty"`
	// 异常包裹WMS单据号
	OuterOrderCode string `json:"outer_order_code,omitempty" xml:"outer_order_code,omitempty"`
	// 异常包裹快递公司code
	TmsCpCode string `json:"tms_cp_code,omitempty" xml:"tms_cp_code,omitempty"`
	// 异常操作时间
	OperateTime string `json:"operate_time,omitempty" xml:"operate_time,omitempty"`
	// 异常包裹寄件人手机号
	SenderMobile string `json:"sender_mobile,omitempty" xml:"sender_mobile,omitempty"`
	// 异常发生的仓内作业节点
	WmsOperateNode string `json:"wms_operate_node,omitempty" xml:"wms_operate_node,omitempty"`
	// 异常操作节点
	ErrorOperateStatus string `json:"error_operate_status,omitempty" xml:"error_operate_status,omitempty"`
	// 异常说明
	ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"`
	// 包裹货主
	PackageOwnerCode string `json:"package_owner_code,omitempty" xml:"package_owner_code,omitempty"`
	// 拓展属性
	ExtendProps string `json:"extend_props,omitempty" xml:"extend_props,omitempty"`
}

ReportExceptionRequest 结构体

type ResourceDto added in v1.2.9

type ResourceDto struct {
	// 下单凭证
	ResourceRequestId string `json:"resource_request_id,omitempty" xml:"resource_request_id,omitempty"`
	// 资源CODE,用于发货
	ResourceCode string `json:"resource_code,omitempty" xml:"resource_code,omitempty"`
	// 资源名称
	ResourceName string `json:"resource_name,omitempty" xml:"resource_name,omitempty"`
	// 费用明细
	FeeDetail string `json:"fee_detail,omitempty" xml:"fee_detail,omitempty"`
	// 失效原因
	InvalidReason string `json:"invalid_reason,omitempty" xml:"invalid_reason,omitempty"`
	// 扩展
	Features string `json:"features,omitempty" xml:"features,omitempty"`
	// 原价
	OriginaFee int64 `json:"origina_fee,omitempty" xml:"origina_fee,omitempty"`
	// 实付价格
	ActualFee int64 `json:"actual_fee,omitempty" xml:"actual_fee,omitempty"`
	// 是否有效
	Valid bool `json:"valid,omitempty" xml:"valid,omitempty"`
}

ResourceDto 结构体

type ResultDto

type ResultDto struct {
	// 返回核销订单列表
	WriteoffOrderList []WriteOffOrderDto `json:"writeoff_order_list,omitempty" xml:"writeoff_order_list>write_off_order_dto,omitempty"`
	// -
	Consign *ConsignDto `json:"consign,omitempty" xml:"consign,omitempty"`
	// 执行结果
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

ResultDto 结构体

type ResultWrappe added in v1.2.9

type ResultWrappe struct {
	// 错误编码
	ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"`
	// 错误信息
	ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"`
	// 结果
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

ResultWrappe 结构体

type ResultWrapper added in v1.2.9

type ResultWrapper struct {
	// 响应错误码
	ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"`
	// 响应错误信息
	ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"`
	// 错误信息
	ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"`
	// 业务数据
	Data *PullPackageOrderResponse `json:"data,omitempty" xml:"data,omitempty"`
	// 相应结果
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

ResultWrapper 结构体

type SelectedResourceTopDto added in v1.2.9

type SelectedResourceTopDto struct {
	// 下单凭证
	ResourceRequestId string `json:"resource_request_id,omitempty" xml:"resource_request_id,omitempty"`
	// 资源CODE,用于发货
	ResourceCode string `json:"resource_code,omitempty" xml:"resource_code,omitempty"`
	// 实付价格
	ActualFee int64 `json:"actual_fee,omitempty" xml:"actual_fee,omitempty"`
}

SelectedResourceTopDto 结构体

type SenderTopDto added in v1.2.9

type SenderTopDto struct {
	// 联系人姓名
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 联系人电话,支持手机、座机
	Phone string `json:"phone,omitempty" xml:"phone,omitempty"`
	// 地址门牌号
	Address string `json:"address,omitempty" xml:"address,omitempty"`
	// 纬度(高德)
	Lat string `json:"lat,omitempty" xml:"lat,omitempty"`
	// 经度(高德)
	Lng string `json:"lng,omitempty" xml:"lng,omitempty"`
}

SenderTopDto 结构体

type Shipping

type Shipping struct {
	// 拆单子订单列表,对应的数据是:该物流订单下的全部子订单
	SubTids []int64 `json:"sub_tids,omitempty" xml:"sub_tids>int64,omitempty"`
	// 物流订单编号
	OrderCode string `json:"order_code,omitempty" xml:"order_code,omitempty"`
	// 卖家昵称
	SellerNick string `json:"seller_nick,omitempty" xml:"seller_nick,omitempty"`
	// 买家昵称
	BuyerNick string `json:"buyer_nick,omitempty" xml:"buyer_nick,omitempty"`
	// 预约取货开始时间
	DeliveryStart string `json:"delivery_start,omitempty" xml:"delivery_start,omitempty"`
	// 预约取货结束时间
	DeliveryEnd string `json:"delivery_end,omitempty" xml:"delivery_end,omitempty"`
	// 运单号.具体一个物流公司的运单号码.
	OutSid string `json:"out_sid,omitempty" xml:"out_sid,omitempty"`
	// 货物名称
	ItemTitle string `json:"item_title,omitempty" xml:"item_title,omitempty"`
	// 收件人姓名
	ReceiverName string `json:"receiver_name,omitempty" xml:"receiver_name,omitempty"`
	// 运单创建时间
	Created string `json:"created,omitempty" xml:"created,omitempty"`
	// 运单修改时间
	Modified string `json:"modified,omitempty" xml:"modified,omitempty"`
	// 物流订单状态,可选值:CREATED(订单已创建) RECREATED(订单重新创建) CANCELLED(订单已取消) CLOSED(订单关闭) SENDING(等候发送给物流公司) ACCEPTING(已发送给物流公司,等待接单) ACCEPTED(物流公司已接单) REJECTED(物流公司不接单) PICK_UP(物流公司揽收成功) PICK_UP_FAILED(物流公司揽收失败) LOST(物流公司丢单) REJECTED_BY_RECEIVER(对方拒签) ACCEPTED_BY_RECEIVER(发货方式在线下单:对方已签收;自己联系:卖家已发货)
	Status string `json:"status,omitempty" xml:"status,omitempty"`
	// 物流方式.可选值:free(卖家包邮),post(平邮),express(快递),ems(EMS).
	Type string `json:"type,omitempty" xml:"type,omitempty"`
	// 谁承担运费.可选值:buyer(买家承担),seller(卖家承担运费).
	FreightPayer string `json:"freight_payer,omitempty" xml:"freight_payer,omitempty"`
	// 物流公司名称
	CompanyName string `json:"company_name,omitempty" xml:"company_name,omitempty"`
	// 卖家是否确认发货.可选值:yes(是),no(否).
	SellerConfirm string `json:"seller_confirm,omitempty" xml:"seller_confirm,omitempty"`
	// ouid
	Ouid string `json:"ouid,omitempty" xml:"ouid,omitempty"`
	// 1111
	Openuid string `json:"openuid,omitempty" xml:"openuid,omitempty"`
	// 交易ID
	Tid int64 `json:"tid,omitempty" xml:"tid,omitempty"`
	// 表明是否是拆单,默认值0,1表示拆单
	IsSplit int64 `json:"is_split,omitempty" xml:"is_split,omitempty"`
	// 返回发货是否成功。
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

Shipping 结构体

type SingleResultDto

type SingleResultDto struct {
	// 拆单子订单列表,对应的数据是:该物流订单下的全部子订单
	SubTids []int64 `json:"sub_tids,omitempty" xml:"sub_tids>int64,omitempty"`
	// 包裹信息,包含运单号及快递公司
	Mails []LogisticsMail `json:"mails,omitempty" xml:"mails>logistics_mail,omitempty"`
	// 物流订单编号
	OrderCode string `json:"order_code,omitempty" xml:"order_code,omitempty"`
	// 卖家昵称
	SellerNick string `json:"seller_nick,omitempty" xml:"seller_nick,omitempty"`
	// 买家昵称
	BuyerNick string `json:"buyer_nick,omitempty" xml:"buyer_nick,omitempty"`
	// 预约取货开始时间
	DeliveryStart string `json:"delivery_start,omitempty" xml:"delivery_start,omitempty"`
	// 预约取货结束时间
	DeliveryEnd string `json:"delivery_end,omitempty" xml:"delivery_end,omitempty"`
	// 运单号.具体一个物流公司的运单号码.
	OutSid string `json:"out_sid,omitempty" xml:"out_sid,omitempty"`
	// 货物名称
	ItemTitle string `json:"item_title,omitempty" xml:"item_title,omitempty"`
	// 收件人姓名
	ReceiverName string `json:"receiver_name,omitempty" xml:"receiver_name,omitempty"`
	// 收件人电话
	ReceiverPhone string `json:"receiver_phone,omitempty" xml:"receiver_phone,omitempty"`
	// 收件人手机号码
	ReceiverMobile string `json:"receiver_mobile,omitempty" xml:"receiver_mobile,omitempty"`
	// 运单创建时间
	Created string `json:"created,omitempty" xml:"created,omitempty"`
	// 运单修改时间
	Modified string `json:"modified,omitempty" xml:"modified,omitempty"`
	// 物流订单状态,可选值:CREATED(订单已创建) RECREATED(订单重新创建) CANCELLED(订单已取消) CLOSED(订单关闭) SENDING(等候发送给物流公司) ACCEPTING(已发送给物流公司,等待接单) ACCEPTED(物流公司已接单) REJECTED(物流公司不接单) PICK_UP(物流公司揽收成功) PICK_UP_FAILED(物流公司揽收失败) LOST(物流公司丢单) REJECTED_BY_RECEIVER(对方拒签) ACCEPTED_BY_RECEIVER(发货方式在线下单:对方已签收;自己联系:卖家已发货)
	Status string `json:"status,omitempty" xml:"status,omitempty"`
	// 物流方式.可选值:free(卖家包邮),post(平邮),express(快递),ems(EMS).
	Type string `json:"type,omitempty" xml:"type,omitempty"`
	// 谁承担运费.可选值:buyer(买家承担),seller(卖家承担运费).
	FreightPayer string `json:"freight_payer,omitempty" xml:"freight_payer,omitempty"`
	// 物流公司名称
	CompanyName string `json:"company_name,omitempty" xml:"company_name,omitempty"`
	// 卖家是否确认发货.可选值:yes(是),no(否).
	SellerConfirm string `json:"seller_confirm,omitempty" xml:"seller_confirm,omitempty"`
	// ouid
	Ouid string `json:"ouid,omitempty" xml:"ouid,omitempty"`
	// 脱敏收件人电话
	ReceiverPhoneNew string `json:"receiver_phone_new,omitempty" xml:"receiver_phone_new,omitempty"`
	// 脱敏收件人手机号码
	ReceiverMobileNew string `json:"receiver_mobile_new,omitempty" xml:"receiver_mobile_new,omitempty"`
	// 买家的openuid
	Openuid string `json:"openuid,omitempty" xml:"openuid,omitempty"`
	// 交易ID
	Tid int64 `json:"tid,omitempty" xml:"tid,omitempty"`
	// 收件人地址信息(在传输请求参数Fields字段时,必须使用“receiver_location”才能返回此字段)
	Location *Location `json:"location,omitempty" xml:"location,omitempty"`
	// 表明是否是拆单,默认值0,1表示拆单
	IsSplit int64 `json:"is_split,omitempty" xml:"is_split,omitempty"`
	// 标示为是否快捷COD订单
	IsQuickCodOrder bool `json:"is_quick_cod_order,omitempty" xml:"is_quick_cod_order,omitempty"`
}

SingleResultDto 结构体

type StoreInfo

type StoreInfo struct {
	// 仓库真实名字
	RealName string `json:"real_name,omitempty" xml:"real_name,omitempty"`
	// XXX果园
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 仓库服务代码
	ServiceCode string `json:"service_code,omitempty" xml:"service_code,omitempty"`
	// 详细地址
	Address string `json:"address,omitempty" xml:"address,omitempty"`
}

StoreInfo 结构体

type TaobaoareasgetAPIRequest added in v1.3.1

type TaobaoareasgetAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

TaobaoareasgetAPIRequest 查询地址区域 API请求 taobao.areas.get

查询标准地址区域代码信息。可以直接参考最新的行政区域代码: <a href="http://www.stats.gov.cn/tjsj/tjbz/tjyqhdmhcxhfdm/" target="_blank"> http://www.stats.gov.cn/tjsj/tjbz/tjyqhdmhcxhfdm/</a>

func NewTaobaoareasgetRequest added in v1.3.1

func NewTaobaoareasgetRequest() *TaobaoareasgetAPIRequest

NewTaobaoareasgetRequest 初始化TaobaoareasgetAPIRequest对象

func (TaobaoareasgetAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoareasgetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoareasgetAPIRequest) GetApiParams added in v1.3.1

func (r TaobaoareasgetAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoareasgetAPIRequest) GetFields added in v1.3.1

func (r TaobaoareasgetAPIRequest) GetFields() string

GetFields Fields Getter

func (TaobaoareasgetAPIRequest) GetRawParams added in v1.3.1

func (r TaobaoareasgetAPIRequest) GetRawParams() model.Params

GetRawParams IRequest interface 方法, 获取API原始参数

func (*TaobaoareasgetAPIRequest) SetFields added in v1.3.1

func (r *TaobaoareasgetAPIRequest) SetFields(_fields string) error

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

type TaobaoareasgetAPIResponse added in v1.3.1

type TaobaoareasgetAPIResponse struct {
	model.CommonResponse
	TaobaoareasgetAPIResponseModel
}

TaobaoareasgetAPIResponse 查询地址区域 API返回值 taobao.areas.get

查询标准地址区域代码信息。可以直接参考最新的行政区域代码: <a href="http://www.stats.gov.cn/tjsj/tjbz/tjyqhdmhcxhfdm/" target="_blank"> http://www.stats.gov.cn/tjsj/tjbz/tjyqhdmhcxhfdm/</a>

type TaobaoareasgetAPIResponseModel added in v1.3.1

type TaobaoareasgetAPIResponseModel struct {
	XMLName xml.Name `xml:"areas_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 地址区域信息列表.返回的Area包含的具体信息为入参fields请求的字段信息 。
	Areas []Area `json:"areas,omitempty" xml:"areas>area,omitempty"`
}

TaobaoareasgetAPIResponseModel is 查询地址区域 成功返回结果

type TaobaodeliverytemplateaddAPIRequest added in v1.3.1

type TaobaodeliverytemplateaddAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

TaobaodeliverytemplateaddAPIRequest 新增运费模板 API请求 taobao.delivery.template.add

增加运费模板的外部接口

func NewTaobaodeliverytemplateaddRequest added in v1.3.1

func NewTaobaodeliverytemplateaddRequest() *TaobaodeliverytemplateaddAPIRequest

NewTaobaodeliverytemplateaddRequest 初始化TaobaodeliverytemplateaddAPIRequest对象

func (TaobaodeliverytemplateaddAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaodeliverytemplateaddAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaodeliverytemplateaddAPIRequest) GetApiParams added in v1.3.1

func (r TaobaodeliverytemplateaddAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaodeliverytemplateaddAPIRequest) GetAssumer added in v1.3.1

GetAssumer Assumer Getter

func (TaobaodeliverytemplateaddAPIRequest) GetConsignAreaId added in v1.3.1

func (r TaobaodeliverytemplateaddAPIRequest) GetConsignAreaId() int64

GetConsignAreaId ConsignAreaId Getter

func (TaobaodeliverytemplateaddAPIRequest) GetName added in v1.3.1

GetName Name Getter

func (TaobaodeliverytemplateaddAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaodeliverytemplateaddAPIRequest) GetTemplateAddFees added in v1.3.1

func (r TaobaodeliverytemplateaddAPIRequest) GetTemplateAddFees() string

GetTemplateAddFees TemplateAddFees Getter

func (TaobaodeliverytemplateaddAPIRequest) GetTemplateAddStandards added in v1.3.1

func (r TaobaodeliverytemplateaddAPIRequest) GetTemplateAddStandards() string

GetTemplateAddStandards TemplateAddStandards Getter

func (TaobaodeliverytemplateaddAPIRequest) GetTemplateDests added in v1.3.1

func (r TaobaodeliverytemplateaddAPIRequest) GetTemplateDests() string

GetTemplateDests TemplateDests Getter

func (TaobaodeliverytemplateaddAPIRequest) GetTemplateStartFees added in v1.3.1

func (r TaobaodeliverytemplateaddAPIRequest) GetTemplateStartFees() string

GetTemplateStartFees TemplateStartFees Getter

func (TaobaodeliverytemplateaddAPIRequest) GetTemplateStartStandards added in v1.3.1

func (r TaobaodeliverytemplateaddAPIRequest) GetTemplateStartStandards() string

GetTemplateStartStandards TemplateStartStandards Getter

func (TaobaodeliverytemplateaddAPIRequest) GetTemplateTypes added in v1.3.1

func (r TaobaodeliverytemplateaddAPIRequest) GetTemplateTypes() string

GetTemplateTypes TemplateTypes Getter

func (TaobaodeliverytemplateaddAPIRequest) GetValuation added in v1.3.1

func (r TaobaodeliverytemplateaddAPIRequest) GetValuation() int64

GetValuation Valuation Getter

func (*TaobaodeliverytemplateaddAPIRequest) SetAssumer added in v1.3.1

func (r *TaobaodeliverytemplateaddAPIRequest) SetAssumer(_assumer int64) error

SetAssumer is Assumer Setter 可选值:0、1 ,说明如下<br>0:表示买家承担服务费;<br>1:表示卖家承担服务费

func (*TaobaodeliverytemplateaddAPIRequest) SetConsignAreaId added in v1.3.1

func (r *TaobaodeliverytemplateaddAPIRequest) SetConsignAreaId(_consignAreaId int64) error

SetConsignAreaId is ConsignAreaId Setter 卖家发货地址区域ID<br/><br/><br/><font color=blue>可以不填,如果没有填写取卖家默认发货地址的区域ID,如果需要输入必须用taobao.areas.get接口获取.或者参考:http://www.stats.gov.cn/tjbz/xzqhdm/t20080215_402462675.htm <br/></font><br/><br/><br/><br/><font color=red>注意:填入该值时必须取您的发货地址最小区域级别ID,比如您的发货地址是:某省XX市xx区(县)时需要填入区(县)的ID,当然有些地方没有区或县可以直接填市级别的ID</font>

func (*TaobaodeliverytemplateaddAPIRequest) SetName added in v1.3.1

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

func (*TaobaodeliverytemplateaddAPIRequest) SetTemplateAddFees added in v1.3.1

func (r *TaobaodeliverytemplateaddAPIRequest) SetTemplateAddFees(_templateAddFees string) error

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

func (*TaobaodeliverytemplateaddAPIRequest) SetTemplateAddStandards added in v1.3.1

func (r *TaobaodeliverytemplateaddAPIRequest) SetTemplateAddStandards(_templateAddStandards string) error

SetTemplateAddStandards is TemplateAddStandards Setter 增费标准:当valuation(记价方式)为0时输入1-9999范围内的整数<br/><font color=red>当valuation(记价方式)为1时输入0.1-9999.9范围内的小数只能包含以为小数(单位为千克)<br/><font color=blue>当valuation(记价方式)为3时输入0.1-999.9范围内的数值,数值只能包含一位小数(单位为 立方米)<br/><br><font color=red>输入的格式分号个数和template_types数量一致,逗号个数必须与template_dests以分号隔开之后一一对应的数量一致</font>

func (*TaobaodeliverytemplateaddAPIRequest) SetTemplateDests added in v1.3.1

func (r *TaobaodeliverytemplateaddAPIRequest) SetTemplateDests(_templateDests string) error

SetTemplateDests is TemplateDests Setter 邮费子项涉及的地区.结构: 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/><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 (*TaobaodeliverytemplateaddAPIRequest) SetTemplateStartFees added in v1.3.1

func (r *TaobaodeliverytemplateaddAPIRequest) SetTemplateStartFees(_templateStartFees string) error

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

func (*TaobaodeliverytemplateaddAPIRequest) SetTemplateStartStandards added in v1.3.1

func (r *TaobaodeliverytemplateaddAPIRequest) SetTemplateStartStandards(_templateStartStandards string) error

SetTemplateStartStandards is TemplateStartStandards Setter 首费标准:当valuation(记价方式)为0时输入1-9999范围内的整数<br/><font color=red>当valuation(记价方式)为1时输入0.1-9999.9范围内的小数只能包含以为小数(单位为千克)<br/><font color=blue>当valuation(记价方式)为3时输入0.1-999.9范围内的数值,数值只能包含一位小数(单位为 立方米)<br/><font color=red>输入的格式分号个数和template_types数量一致,逗号个数必须与template_dests以分号隔开之后一一对应的数量一致</font>

func (*TaobaodeliverytemplateaddAPIRequest) SetTemplateTypes added in v1.3.1

func (r *TaobaodeliverytemplateaddAPIRequest) SetTemplateTypes(_templateTypes string) error

SetTemplateTypes is TemplateTypes Setter 运费方式:平邮 (post),快递公司(express),EMS (ems),货到付款(cod),物流宝保障速递(wlb),家装物流(furniture)结构: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>注意:<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 (*TaobaodeliverytemplateaddAPIRequest) SetValuation added in v1.3.1

func (r *TaobaodeliverytemplateaddAPIRequest) SetValuation(_valuation int64) error

SetValuation is Valuation Setter 可选值:0、1、3,说明如下。<br>0:表示按宝贝件数计算运费 <br>1:表示按宝贝重量计算运费 <br>3:表示按宝贝体积计算运费

type TaobaodeliverytemplateaddAPIResponse added in v1.3.1

type TaobaodeliverytemplateaddAPIResponse struct {
	model.CommonResponse
	TaobaodeliverytemplateaddAPIResponseModel
}

TaobaodeliverytemplateaddAPIResponse 新增运费模板 API返回值 taobao.delivery.template.add

增加运费模板的外部接口

type TaobaodeliverytemplateaddAPIResponseModel added in v1.3.1

type TaobaodeliverytemplateaddAPIResponseModel struct {
	XMLName xml.Name `xml:"delivery_template_add_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 模板对象
	DeliveryTemplate *DeliveryTemplate `json:"delivery_template,omitempty" xml:"delivery_template,omitempty"`
}

TaobaodeliverytemplateaddAPIResponseModel is 新增运费模板 成功返回结果

type TaobaodeliverytemplatedeleteAPIRequest added in v1.3.1

type TaobaodeliverytemplatedeleteAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

TaobaodeliverytemplatedeleteAPIRequest 删除运费模板 API请求 taobao.delivery.template.delete

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

func NewTaobaodeliverytemplatedeleteRequest added in v1.3.1

func NewTaobaodeliverytemplatedeleteRequest() *TaobaodeliverytemplatedeleteAPIRequest

NewTaobaodeliverytemplatedeleteRequest 初始化TaobaodeliverytemplatedeleteAPIRequest对象

func (TaobaodeliverytemplatedeleteAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaodeliverytemplatedeleteAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaodeliverytemplatedeleteAPIRequest) GetApiParams added in v1.3.1

func (r TaobaodeliverytemplatedeleteAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaodeliverytemplatedeleteAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaodeliverytemplatedeleteAPIRequest) GetTemplateId added in v1.3.1

GetTemplateId TemplateId Getter

func (*TaobaodeliverytemplatedeleteAPIRequest) SetTemplateId added in v1.3.1

func (r *TaobaodeliverytemplatedeleteAPIRequest) SetTemplateId(_templateId int64) error

SetTemplateId is TemplateId Setter 运费模板ID

type TaobaodeliverytemplatedeleteAPIResponse added in v1.3.1

type TaobaodeliverytemplatedeleteAPIResponse struct {
	model.CommonResponse
	TaobaodeliverytemplatedeleteAPIResponseModel
}

TaobaodeliverytemplatedeleteAPIResponse 删除运费模板 API返回值 taobao.delivery.template.delete

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

type TaobaodeliverytemplatedeleteAPIResponseModel added in v1.3.1

type TaobaodeliverytemplatedeleteAPIResponseModel struct {
	XMLName xml.Name `xml:"delivery_template_delete_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 表示删除成功还是失败
	Complete bool `json:"complete,omitempty" xml:"complete,omitempty"`
}

TaobaodeliverytemplatedeleteAPIResponseModel is 删除运费模板 成功返回结果

type TaobaodeliverytemplategetAPIRequest added in v1.3.1

type TaobaodeliverytemplategetAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

TaobaodeliverytemplategetAPIRequest 获取用户指定运费模板信息 API请求 taobao.delivery.template.get

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

func NewTaobaodeliverytemplategetRequest added in v1.3.1

func NewTaobaodeliverytemplategetRequest() *TaobaodeliverytemplategetAPIRequest

NewTaobaodeliverytemplategetRequest 初始化TaobaodeliverytemplategetAPIRequest对象

func (TaobaodeliverytemplategetAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaodeliverytemplategetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaodeliverytemplategetAPIRequest) GetApiParams added in v1.3.1

func (r TaobaodeliverytemplategetAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaodeliverytemplategetAPIRequest) GetFields added in v1.3.1

GetFields Fields Getter

func (TaobaodeliverytemplategetAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaodeliverytemplategetAPIRequest) GetTemplateIds added in v1.3.1

func (r TaobaodeliverytemplategetAPIRequest) GetTemplateIds() []string

GetTemplateIds TemplateIds Getter

func (TaobaodeliverytemplategetAPIRequest) GetUserNick added in v1.3.1

GetUserNick UserNick Getter

func (*TaobaodeliverytemplategetAPIRequest) SetFields added in v1.3.1

func (r *TaobaodeliverytemplategetAPIRequest) SetFields(_fields []string) error

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

func (*TaobaodeliverytemplategetAPIRequest) SetTemplateIds added in v1.3.1

func (r *TaobaodeliverytemplategetAPIRequest) SetTemplateIds(_templateIds []string) error

SetTemplateIds is TemplateIds Setter 需要查询的运费模板ID列表

func (*TaobaodeliverytemplategetAPIRequest) SetUserNick added in v1.3.1

func (r *TaobaodeliverytemplategetAPIRequest) SetUserNick(_userNick string) error

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

type TaobaodeliverytemplategetAPIResponse added in v1.3.1

type TaobaodeliverytemplategetAPIResponse struct {
	model.CommonResponse
	TaobaodeliverytemplategetAPIResponseModel
}

TaobaodeliverytemplategetAPIResponse 获取用户指定运费模板信息 API返回值 taobao.delivery.template.get

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

type TaobaodeliverytemplategetAPIResponseModel added in v1.3.1

type TaobaodeliverytemplategetAPIResponseModel struct {
	XMLName xml.Name `xml:"delivery_template_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 运费模板列表
	DeliveryTemplates []DeliveryTemplate `json:"delivery_templates,omitempty" xml:"delivery_templates>delivery_template,omitempty"`
	// 获得到符合条件的结果总数
	TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"`
}

TaobaodeliverytemplategetAPIResponseModel is 获取用户指定运费模板信息 成功返回结果

type TaobaodeliverytemplatesgetAPIRequest added in v1.3.1

type TaobaodeliverytemplatesgetAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

TaobaodeliverytemplatesgetAPIRequest 获取用户下所有模板 API请求 taobao.delivery.templates.get

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

func NewTaobaodeliverytemplatesgetRequest added in v1.3.1

func NewTaobaodeliverytemplatesgetRequest() *TaobaodeliverytemplatesgetAPIRequest

NewTaobaodeliverytemplatesgetRequest 初始化TaobaodeliverytemplatesgetAPIRequest对象

func (TaobaodeliverytemplatesgetAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaodeliverytemplatesgetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaodeliverytemplatesgetAPIRequest) GetApiParams added in v1.3.1

func (r TaobaodeliverytemplatesgetAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaodeliverytemplatesgetAPIRequest) GetFields added in v1.3.1

GetFields Fields Getter

func (TaobaodeliverytemplatesgetAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (*TaobaodeliverytemplatesgetAPIRequest) SetFields added in v1.3.1

func (r *TaobaodeliverytemplatesgetAPIRequest) SetFields(_fields string) error

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

type TaobaodeliverytemplatesgetAPIResponse added in v1.3.1

type TaobaodeliverytemplatesgetAPIResponse struct {
	model.CommonResponse
	TaobaodeliverytemplatesgetAPIResponseModel
}

TaobaodeliverytemplatesgetAPIResponse 获取用户下所有模板 API返回值 taobao.delivery.templates.get

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

type TaobaodeliverytemplatesgetAPIResponseModel added in v1.3.1

type TaobaodeliverytemplatesgetAPIResponseModel struct {
	XMLName xml.Name `xml:"delivery_templates_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 运费模板列表
	DeliveryTemplates []DeliveryTemplate `json:"delivery_templates,omitempty" xml:"delivery_templates>delivery_template,omitempty"`
	// 获得到符合条件的结果总数
	TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"`
}

TaobaodeliverytemplatesgetAPIResponseModel is 获取用户下所有模板 成功返回结果

type TaobaodeliverytemplateupdateAPIRequest added in v1.3.1

type TaobaodeliverytemplateupdateAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

TaobaodeliverytemplateupdateAPIRequest 修改运费模板 API请求 taobao.delivery.template.update

修改运费模板

func NewTaobaodeliverytemplateupdateRequest added in v1.3.1

func NewTaobaodeliverytemplateupdateRequest() *TaobaodeliverytemplateupdateAPIRequest

NewTaobaodeliverytemplateupdateRequest 初始化TaobaodeliverytemplateupdateAPIRequest对象

func (TaobaodeliverytemplateupdateAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaodeliverytemplateupdateAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaodeliverytemplateupdateAPIRequest) GetApiParams added in v1.3.1

func (r TaobaodeliverytemplateupdateAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaodeliverytemplateupdateAPIRequest) GetAssumer added in v1.3.1

GetAssumer Assumer Getter

func (TaobaodeliverytemplateupdateAPIRequest) GetName added in v1.3.1

GetName Name Getter

func (TaobaodeliverytemplateupdateAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaodeliverytemplateupdateAPIRequest) GetTemplateAddFees added in v1.3.1

func (r TaobaodeliverytemplateupdateAPIRequest) GetTemplateAddFees() string

GetTemplateAddFees TemplateAddFees Getter

func (TaobaodeliverytemplateupdateAPIRequest) GetTemplateAddStandards added in v1.3.1

func (r TaobaodeliverytemplateupdateAPIRequest) GetTemplateAddStandards() string

GetTemplateAddStandards TemplateAddStandards Getter

func (TaobaodeliverytemplateupdateAPIRequest) GetTemplateDests added in v1.3.1

func (r TaobaodeliverytemplateupdateAPIRequest) GetTemplateDests() string

GetTemplateDests TemplateDests Getter

func (TaobaodeliverytemplateupdateAPIRequest) GetTemplateId added in v1.3.1

GetTemplateId TemplateId Getter

func (TaobaodeliverytemplateupdateAPIRequest) GetTemplateStartFees added in v1.3.1

func (r TaobaodeliverytemplateupdateAPIRequest) GetTemplateStartFees() string

GetTemplateStartFees TemplateStartFees Getter

func (TaobaodeliverytemplateupdateAPIRequest) GetTemplateStartStandards added in v1.3.1

func (r TaobaodeliverytemplateupdateAPIRequest) GetTemplateStartStandards() string

GetTemplateStartStandards TemplateStartStandards Getter

func (TaobaodeliverytemplateupdateAPIRequest) GetTemplateTypes added in v1.3.1

func (r TaobaodeliverytemplateupdateAPIRequest) GetTemplateTypes() string

GetTemplateTypes TemplateTypes Getter

func (*TaobaodeliverytemplateupdateAPIRequest) SetAssumer added in v1.3.1

func (r *TaobaodeliverytemplateupdateAPIRequest) SetAssumer(_assumer int64) error

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

func (*TaobaodeliverytemplateupdateAPIRequest) SetName added in v1.3.1

SetName is Name Setter 模板名称,长度不能大于50个字节

func (*TaobaodeliverytemplateupdateAPIRequest) SetTemplateAddFees added in v1.3.1

func (r *TaobaodeliverytemplateupdateAPIRequest) SetTemplateAddFees(_templateAddFees string) error

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

func (*TaobaodeliverytemplateupdateAPIRequest) SetTemplateAddStandards added in v1.3.1

func (r *TaobaodeliverytemplateupdateAPIRequest) SetTemplateAddStandards(_templateAddStandards string) error

SetTemplateAddStandards is TemplateAddStandards Setter 增费标准:当valuation(记价方式)为0时输入1-9999范围内的整数<br><font color=blue>增费标准目前只能为1</font><br><font color=red>输入的格式分号个数和template_types数量一致,逗号个数必须与template_dests以分号隔开之后一一对应的数量一致</font>

func (*TaobaodeliverytemplateupdateAPIRequest) SetTemplateDests added in v1.3.1

func (r *TaobaodeliverytemplateupdateAPIRequest) SetTemplateDests(_templateDests string) error

SetTemplateDests is TemplateDests Setter 邮费子项涉及的地区.结构: 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 (*TaobaodeliverytemplateupdateAPIRequest) SetTemplateId added in v1.3.1

func (r *TaobaodeliverytemplateupdateAPIRequest) SetTemplateId(_templateId int64) error

SetTemplateId is TemplateId Setter 需要修改的模板对应的模板ID

func (*TaobaodeliverytemplateupdateAPIRequest) SetTemplateStartFees added in v1.3.1

func (r *TaobaodeliverytemplateupdateAPIRequest) SetTemplateStartFees(_templateStartFees string) error

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

func (*TaobaodeliverytemplateupdateAPIRequest) SetTemplateStartStandards added in v1.3.1

func (r *TaobaodeliverytemplateupdateAPIRequest) SetTemplateStartStandards(_templateStartStandards string) error

SetTemplateStartStandards is TemplateStartStandards Setter 首费标准:当valuation(记价方式)为0时输入1-9999范围内的整数<br><font color=blue>首费标准目前只能为1</br><br><font color=red>输入的格式分号个数和template_types数量一致,逗号个数必须与template_dests以分号隔开之后一一对应的数量一致</font>

func (*TaobaodeliverytemplateupdateAPIRequest) SetTemplateTypes added in v1.3.1

func (r *TaobaodeliverytemplateupdateAPIRequest) SetTemplateTypes(_templateTypes string) error

SetTemplateTypes is TemplateTypes Setter 运费方式:平邮 (post),快递公司(express),EMS (ems),货到付款(cod)结构:value1;value2;value3;value4 <br/>如: post;express;ems;cod <br/><br/><font color=red><br/>注意:在添加多个运费方式时,字符串中使用 ";" 分号区分。template_dests(指定地区) template_start_standards(首费标准)、template_start_fees(首费)、template_add_standards(增费标准)、template_add_fees(增费)必须与template_types的分号数量相同. <br/> </font><br/><br/><br/><font color=blue><br/>普通用户:post,ems,express三种运费方式必须填写一个,不能填写cod。<br/>货到付款用户:如果填写了cod运费方式,则post,ems,express三种运费方式也必须填写一个,如果没有填写cod则填写的运费方式中必须存在express</font>

type TaobaodeliverytemplateupdateAPIResponse added in v1.3.1

type TaobaodeliverytemplateupdateAPIResponse struct {
	model.CommonResponse
	TaobaodeliverytemplateupdateAPIResponseModel
}

TaobaodeliverytemplateupdateAPIResponse 修改运费模板 API返回值 taobao.delivery.template.update

修改运费模板

type TaobaodeliverytemplateupdateAPIResponseModel added in v1.3.1

type TaobaodeliverytemplateupdateAPIResponseModel struct {
	XMLName xml.Name `xml:"delivery_template_update_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 表示修改是否成功
	Complete bool `json:"complete,omitempty" xml:"complete,omitempty"`
}

TaobaodeliverytemplateupdateAPIResponseModel is 修改运费模板 成功返回结果

type TaobaologisticscompaniesgetAPIRequest added in v1.3.1

type TaobaologisticscompaniesgetAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

TaobaologisticscompaniesgetAPIRequest 查询物流公司信息 API请求 taobao.logistics.companies.get

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

func NewTaobaologisticscompaniesgetRequest added in v1.3.1

func NewTaobaologisticscompaniesgetRequest() *TaobaologisticscompaniesgetAPIRequest

NewTaobaologisticscompaniesgetRequest 初始化TaobaologisticscompaniesgetAPIRequest对象

func (TaobaologisticscompaniesgetAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaologisticscompaniesgetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaologisticscompaniesgetAPIRequest) GetApiParams added in v1.3.1

func (r TaobaologisticscompaniesgetAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaologisticscompaniesgetAPIRequest) GetFields added in v1.3.1

GetFields Fields Getter

func (TaobaologisticscompaniesgetAPIRequest) GetIsRecommended added in v1.3.1

func (r TaobaologisticscompaniesgetAPIRequest) GetIsRecommended() bool

GetIsRecommended IsRecommended Getter

func (TaobaologisticscompaniesgetAPIRequest) GetOrderMode added in v1.3.1

GetOrderMode OrderMode Getter

func (TaobaologisticscompaniesgetAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (*TaobaologisticscompaniesgetAPIRequest) SetFields added in v1.3.1

func (r *TaobaologisticscompaniesgetAPIRequest) SetFields(_fields []string) error

SetFields is Fields Setter 需返回的字段列表。可选值:LogisticCompany 结构中的所有字段;多个字段间用","逗号隔开.<br/>如:id,code,name,reg_mail_no<br/><br><font color='red'>说明:</font><br/><br>id:物流公司ID<br/><br>code:物流公司code<br/><br>name:物流公司名称<br/><br>reg_mail_no:物流公司对应的运单规则

func (*TaobaologisticscompaniesgetAPIRequest) SetIsRecommended added in v1.3.1

func (r *TaobaologisticscompaniesgetAPIRequest) SetIsRecommended(_isRecommended bool) error

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

func (*TaobaologisticscompaniesgetAPIRequest) SetOrderMode added in v1.3.1

func (r *TaobaologisticscompaniesgetAPIRequest) SetOrderMode(_orderMode string) error

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

type TaobaologisticscompaniesgetAPIResponse added in v1.3.1

type TaobaologisticscompaniesgetAPIResponse struct {
	model.CommonResponse
	TaobaologisticscompaniesgetAPIResponseModel
}

TaobaologisticscompaniesgetAPIResponse 查询物流公司信息 API返回值 taobao.logistics.companies.get

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

type TaobaologisticscompaniesgetAPIResponseModel added in v1.3.1

type TaobaologisticscompaniesgetAPIResponseModel struct {
	XMLName xml.Name `xml:"logistics_companies_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 物流公司信息。返回的LogisticCompany包含的具体信息为入参fields请求的字段信息。
	LogisticsCompanies []LogisticsCompany `json:"logistics_companies,omitempty" xml:"logistics_companies>logistics_company,omitempty"`
}

TaobaologisticscompaniesgetAPIResponseModel is 查询物流公司信息 成功返回结果

type TaobaologisticsconsignordercreateandsendAPIRequest added in v1.3.1

type TaobaologisticsconsignordercreateandsendAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

TaobaologisticsconsignordercreateandsendAPIRequest 创建订单并发货 API请求 taobao.logistics.consign.order.createandsend

创建物流订单,并发货。

func NewTaobaologisticsconsignordercreateandsendRequest added in v1.3.1

func NewTaobaologisticsconsignordercreateandsendRequest() *TaobaologisticsconsignordercreateandsendAPIRequest

NewTaobaologisticsconsignordercreateandsendRequest 初始化TaobaologisticsconsignordercreateandsendAPIRequest对象

func (TaobaologisticsconsignordercreateandsendAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaologisticsconsignordercreateandsendAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaologisticsconsignordercreateandsendAPIRequest) GetCompanyId added in v1.3.1

GetCompanyId CompanyId Getter

func (TaobaologisticsconsignordercreateandsendAPIRequest) GetItemJsonString added in v1.3.1

GetItemJsonString ItemJsonString Getter

func (TaobaologisticsconsignordercreateandsendAPIRequest) GetLogisType added in v1.3.1

GetLogisType LogisType Getter

func (TaobaologisticsconsignordercreateandsendAPIRequest) GetMailNo added in v1.3.1

GetMailNo MailNo Getter

func (TaobaologisticsconsignordercreateandsendAPIRequest) GetOrderSource added in v1.3.1

GetOrderSource OrderSource Getter

func (TaobaologisticsconsignordercreateandsendAPIRequest) GetOrderType added in v1.3.1

GetOrderType OrderType Getter

func (TaobaologisticsconsignordercreateandsendAPIRequest) GetRAddress added in v1.3.1

GetRAddress RAddress Getter

func (TaobaologisticsconsignordercreateandsendAPIRequest) GetRAreaId added in v1.3.1

GetRAreaId RAreaId Getter

func (TaobaologisticsconsignordercreateandsendAPIRequest) GetRCityName added in v1.3.1

GetRCityName RCityName Getter

func (TaobaologisticsconsignordercreateandsendAPIRequest) GetRDistName added in v1.3.1

GetRDistName RDistName Getter

func (TaobaologisticsconsignordercreateandsendAPIRequest) GetRMobilePhone added in v1.3.1

GetRMobilePhone RMobilePhone Getter

func (TaobaologisticsconsignordercreateandsendAPIRequest) GetRName added in v1.3.1

GetRName RName Getter

func (TaobaologisticsconsignordercreateandsendAPIRequest) GetRProvName added in v1.3.1

GetRProvName RProvName Getter

func (TaobaologisticsconsignordercreateandsendAPIRequest) GetRTelephone added in v1.3.1

GetRTelephone RTelephone Getter

func (TaobaologisticsconsignordercreateandsendAPIRequest) GetRZipCode added in v1.3.1

GetRZipCode RZipCode Getter

func (TaobaologisticsconsignordercreateandsendAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaologisticsconsignordercreateandsendAPIRequest) GetSAddress added in v1.3.1

GetSAddress SAddress Getter

func (TaobaologisticsconsignordercreateandsendAPIRequest) GetSAreaId added in v1.3.1

GetSAreaId SAreaId Getter

func (TaobaologisticsconsignordercreateandsendAPIRequest) GetSCityName added in v1.3.1

GetSCityName SCityName Getter

func (TaobaologisticsconsignordercreateandsendAPIRequest) GetSDistName added in v1.3.1

GetSDistName SDistName Getter

func (TaobaologisticsconsignordercreateandsendAPIRequest) GetSMobilePhone added in v1.3.1

GetSMobilePhone SMobilePhone Getter

func (TaobaologisticsconsignordercreateandsendAPIRequest) GetSName added in v1.3.1

GetSName SName Getter

func (TaobaologisticsconsignordercreateandsendAPIRequest) GetSProvName added in v1.3.1

GetSProvName SProvName Getter

func (TaobaologisticsconsignordercreateandsendAPIRequest) GetSTelephone added in v1.3.1

GetSTelephone STelephone Getter

func (TaobaologisticsconsignordercreateandsendAPIRequest) GetSZipCode added in v1.3.1

GetSZipCode SZipCode Getter

func (TaobaologisticsconsignordercreateandsendAPIRequest) GetShipping added in v1.3.1

GetShipping Shipping Getter

func (TaobaologisticsconsignordercreateandsendAPIRequest) GetTradeId added in v1.3.1

GetTradeId TradeId Getter

func (TaobaologisticsconsignordercreateandsendAPIRequest) GetUserId added in v1.3.1

GetUserId UserId Getter

func (*TaobaologisticsconsignordercreateandsendAPIRequest) SetCompanyId added in v1.3.1

SetCompanyId is CompanyId Setter 物流公司ID

func (*TaobaologisticsconsignordercreateandsendAPIRequest) SetItemJsonString added in v1.3.1

func (r *TaobaologisticsconsignordercreateandsendAPIRequest) SetItemJsonString(_itemJsonString string) error

SetItemJsonString is ItemJsonString Setter 物品的json数据。

func (*TaobaologisticsconsignordercreateandsendAPIRequest) SetLogisType added in v1.3.1

SetLogisType is LogisType Setter 物流订单物流类型,值固定选择:2

func (*TaobaologisticsconsignordercreateandsendAPIRequest) SetMailNo added in v1.3.1

SetMailNo is MailNo Setter 运单号

func (*TaobaologisticsconsignordercreateandsendAPIRequest) SetOrderSource added in v1.3.1

func (r *TaobaologisticsconsignordercreateandsendAPIRequest) SetOrderSource(_orderSource int64) error

SetOrderSource is OrderSource Setter 订单来源,值选择:30

func (*TaobaologisticsconsignordercreateandsendAPIRequest) SetOrderType added in v1.3.1

SetOrderType is OrderType Setter 订单类型,值固定选择:30

func (*TaobaologisticsconsignordercreateandsendAPIRequest) SetRAddress added in v1.3.1

SetRAddress is RAddress Setter 收件人街道地址

func (*TaobaologisticsconsignordercreateandsendAPIRequest) SetRAreaId added in v1.3.1

SetRAreaId is RAreaId Setter 收件人区域ID

func (*TaobaologisticsconsignordercreateandsendAPIRequest) SetRCityName added in v1.3.1

SetRCityName is RCityName Setter 市

func (*TaobaologisticsconsignordercreateandsendAPIRequest) SetRDistName added in v1.3.1

SetRDistName is RDistName Setter 区

func (*TaobaologisticsconsignordercreateandsendAPIRequest) SetRMobilePhone added in v1.3.1

func (r *TaobaologisticsconsignordercreateandsendAPIRequest) SetRMobilePhone(_rMobilePhone string) error

SetRMobilePhone is RMobilePhone Setter 手机号码

func (*TaobaologisticsconsignordercreateandsendAPIRequest) SetRName added in v1.3.1

SetRName is RName Setter 收件人名称

func (*TaobaologisticsconsignordercreateandsendAPIRequest) SetRProvName added in v1.3.1

SetRProvName is RProvName Setter 省

func (*TaobaologisticsconsignordercreateandsendAPIRequest) SetRTelephone added in v1.3.1

func (r *TaobaologisticsconsignordercreateandsendAPIRequest) SetRTelephone(_rTelephone string) error

SetRTelephone is RTelephone Setter 电话号码

func (*TaobaologisticsconsignordercreateandsendAPIRequest) SetRZipCode added in v1.3.1

SetRZipCode is RZipCode Setter 收件人邮编

func (*TaobaologisticsconsignordercreateandsendAPIRequest) SetSAddress added in v1.3.1

SetSAddress is SAddress Setter 发件人街道地址

func (*TaobaologisticsconsignordercreateandsendAPIRequest) SetSAreaId added in v1.3.1

SetSAreaId is SAreaId Setter 发件人区域ID

func (*TaobaologisticsconsignordercreateandsendAPIRequest) SetSCityName added in v1.3.1

SetSCityName is SCityName Setter 市

func (*TaobaologisticsconsignordercreateandsendAPIRequest) SetSDistName added in v1.3.1

SetSDistName is SDistName Setter 区

func (*TaobaologisticsconsignordercreateandsendAPIRequest) SetSMobilePhone added in v1.3.1

func (r *TaobaologisticsconsignordercreateandsendAPIRequest) SetSMobilePhone(_sMobilePhone string) error

SetSMobilePhone is SMobilePhone Setter 手机号码

func (*TaobaologisticsconsignordercreateandsendAPIRequest) SetSName added in v1.3.1

SetSName is SName Setter 发件人名称

func (*TaobaologisticsconsignordercreateandsendAPIRequest) SetSProvName added in v1.3.1

SetSProvName is SProvName Setter 省

func (*TaobaologisticsconsignordercreateandsendAPIRequest) SetSTelephone added in v1.3.1

func (r *TaobaologisticsconsignordercreateandsendAPIRequest) SetSTelephone(_sTelephone string) error

SetSTelephone is STelephone Setter 电话号码

func (*TaobaologisticsconsignordercreateandsendAPIRequest) SetSZipCode added in v1.3.1

SetSZipCode is SZipCode Setter 发件人出编

func (*TaobaologisticsconsignordercreateandsendAPIRequest) SetShipping added in v1.3.1

SetShipping is Shipping Setter 费用承担方式 1买家承担运费 2卖家承担运费

func (*TaobaologisticsconsignordercreateandsendAPIRequest) SetTradeId added in v1.3.1

SetTradeId is TradeId Setter 交易流水号,淘外订单号或者商家内部交易流水号

func (*TaobaologisticsconsignordercreateandsendAPIRequest) SetUserId added in v1.3.1

SetUserId is UserId Setter 用户ID

type TaobaologisticsconsignordercreateandsendAPIResponse added in v1.3.1

type TaobaologisticsconsignordercreateandsendAPIResponse struct {
	model.CommonResponse
	TaobaologisticsconsignordercreateandsendAPIResponseModel
}

TaobaologisticsconsignordercreateandsendAPIResponse 创建订单并发货 API返回值 taobao.logistics.consign.order.createandsend

创建物流订单,并发货。

type TaobaologisticsconsignordercreateandsendAPIResponseModel added in v1.3.1

type TaobaologisticsconsignordercreateandsendAPIResponseModel struct {
	XMLName xml.Name `xml:"logistics_consign_order_createandsend_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 结果描述
	ResultDesc string `json:"result_desc,omitempty" xml:"result_desc,omitempty"`
	// 订单ID
	OrderId int64 `json:"order_id,omitempty" xml:"order_id,omitempty"`
	// 是否成功
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

TaobaologisticsconsignordercreateandsendAPIResponseModel is 创建订单并发货 成功返回结果

type TaobaologisticsdummysendAPIRequest added in v1.3.1

type TaobaologisticsdummysendAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

TaobaologisticsdummysendAPIRequest 无需物流(虚拟)发货处理 API请求 taobao.logistics.dummy.send

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

func NewTaobaologisticsdummysendRequest added in v1.3.1

func NewTaobaologisticsdummysendRequest() *TaobaologisticsdummysendAPIRequest

NewTaobaologisticsdummysendRequest 初始化TaobaologisticsdummysendAPIRequest对象

func (TaobaologisticsdummysendAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaologisticsdummysendAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaologisticsdummysendAPIRequest) GetApiParams added in v1.3.1

func (r TaobaologisticsdummysendAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaologisticsdummysendAPIRequest) GetFeature added in v1.3.1

GetFeature Feature Getter

func (TaobaologisticsdummysendAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaologisticsdummysendAPIRequest) GetSellerIp added in v1.3.1

GetSellerIp SellerIp Getter

func (TaobaologisticsdummysendAPIRequest) GetTid added in v1.3.1

GetTid Tid Getter

func (*TaobaologisticsdummysendAPIRequest) SetFeature added in v1.3.1

func (r *TaobaologisticsdummysendAPIRequest) SetFeature(_feature string) error

SetFeature is Feature Setter 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 (*TaobaologisticsdummysendAPIRequest) SetSellerIp added in v1.3.1

func (r *TaobaologisticsdummysendAPIRequest) SetSellerIp(_sellerIp string) error

SetSellerIp is SellerIp Setter 商家的IP地址

func (*TaobaologisticsdummysendAPIRequest) SetTid added in v1.3.1

SetTid is Tid Setter 淘宝交易ID

type TaobaologisticsdummysendAPIResponse added in v1.3.1

type TaobaologisticsdummysendAPIResponse struct {
	model.CommonResponse
	TaobaologisticsdummysendAPIResponseModel
}

TaobaologisticsdummysendAPIResponse 无需物流(虚拟)发货处理 API返回值 taobao.logistics.dummy.send

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

type TaobaologisticsdummysendAPIResponseModel added in v1.3.1

type TaobaologisticsdummysendAPIResponseModel struct {
	XMLName xml.Name `xml:"logistics_dummy_send_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回发货是否成功is_success
	Shipping *Shipping `json:"shipping,omitempty" xml:"shipping,omitempty"`
}

TaobaologisticsdummysendAPIResponseModel is 无需物流(虚拟)发货处理 成功返回结果

type TaobaologisticsinstanttracesearchAPIRequest added in v1.3.1

type TaobaologisticsinstanttracesearchAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

TaobaologisticsinstanttracesearchAPIRequest 物流详情查询 API请求 taobao.logistics.instant.trace.search

物流详情查询

func NewTaobaologisticsinstanttracesearchRequest added in v1.3.1

func NewTaobaologisticsinstanttracesearchRequest() *TaobaologisticsinstanttracesearchAPIRequest

NewTaobaologisticsinstanttracesearchRequest 初始化TaobaologisticsinstanttracesearchAPIRequest对象

func (TaobaologisticsinstanttracesearchAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaologisticsinstanttracesearchAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaologisticsinstanttracesearchAPIRequest) GetIsSplit added in v1.3.1

GetIsSplit IsSplit Getter

func (TaobaologisticsinstanttracesearchAPIRequest) GetMailNo added in v1.3.1

GetMailNo MailNo Getter

func (TaobaologisticsinstanttracesearchAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaologisticsinstanttracesearchAPIRequest) GetSubTid added in v1.3.1

GetSubTid SubTid Getter

func (TaobaologisticsinstanttracesearchAPIRequest) GetTid added in v1.3.1

GetTid Tid Getter

func (*TaobaologisticsinstanttracesearchAPIRequest) SetIsSplit added in v1.3.1

SetIsSplit is IsSplit Setter 是否拆单

func (*TaobaologisticsinstanttracesearchAPIRequest) SetMailNo added in v1.3.1

SetMailNo is MailNo Setter 运单号

func (*TaobaologisticsinstanttracesearchAPIRequest) SetSubTid added in v1.3.1

SetSubTid is SubTid Setter 子订单列表

func (*TaobaologisticsinstanttracesearchAPIRequest) SetTid added in v1.3.1

SetTid is Tid Setter 交易单号

type TaobaologisticsinstanttracesearchAPIResponse added in v1.3.1

type TaobaologisticsinstanttracesearchAPIResponse struct {
	model.CommonResponse
	TaobaologisticsinstanttracesearchAPIResponseModel
}

TaobaologisticsinstanttracesearchAPIResponse 物流详情查询 API返回值 taobao.logistics.instant.trace.search

物流详情查询

type TaobaologisticsinstanttracesearchAPIResponseModel added in v1.3.1

type TaobaologisticsinstanttracesearchAPIResponseModel struct {
	XMLName xml.Name `xml:"logistics_instant_trace_search_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回结果
	Result *TaobaologisticsinstanttracesearchResult `json:"result,omitempty" xml:"result,omitempty"`
}

TaobaologisticsinstanttracesearchAPIResponseModel is 物流详情查询 成功返回结果

type TaobaologisticsinstanttracesearchResult added in v1.3.1

type TaobaologisticsinstanttracesearchResult struct {
	// 运单列表
	MailList []TopLogisticsMailDto `json:"mail_list,omitempty" xml:"mail_list>top_logistics_mail_dto,omitempty"`
	// 是否成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

TaobaologisticsinstanttracesearchResult 结构体

type TaobaologisticsonlinecancelAPIRequest added in v1.3.1

type TaobaologisticsonlinecancelAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

TaobaologisticsonlinecancelAPIRequest 取消物流订单接口 API请求 taobao.logistics.online.cancel

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

func NewTaobaologisticsonlinecancelRequest added in v1.3.1

func NewTaobaologisticsonlinecancelRequest() *TaobaologisticsonlinecancelAPIRequest

NewTaobaologisticsonlinecancelRequest 初始化TaobaologisticsonlinecancelAPIRequest对象

func (TaobaologisticsonlinecancelAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaologisticsonlinecancelAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaologisticsonlinecancelAPIRequest) GetApiParams added in v1.3.1

func (r TaobaologisticsonlinecancelAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaologisticsonlinecancelAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaologisticsonlinecancelAPIRequest) GetTid added in v1.3.1

GetTid Tid Getter

func (*TaobaologisticsonlinecancelAPIRequest) SetTid added in v1.3.1

SetTid is Tid Setter 淘宝交易ID

type TaobaologisticsonlinecancelAPIResponse added in v1.3.1

type TaobaologisticsonlinecancelAPIResponse struct {
	model.CommonResponse
	TaobaologisticsonlinecancelAPIResponseModel
}

TaobaologisticsonlinecancelAPIResponse 取消物流订单接口 API返回值 taobao.logistics.online.cancel

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

type TaobaologisticsonlinecancelAPIResponseModel added in v1.3.1

type TaobaologisticsonlinecancelAPIResponseModel struct {
	XMLName xml.Name `xml:"logistics_online_cancel_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 修改时间
	ModifyTime string `json:"modify_time,omitempty" xml:"modify_time,omitempty"`
	// 重新创建物流订单id
	RecreatedOrderId string `json:"recreated_order_id,omitempty" xml:"recreated_order_id,omitempty"`
	// 成功与失败
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

TaobaologisticsonlinecancelAPIResponseModel is 取消物流订单接口 成功返回结果

type TaobaologisticsonlineconfirmAPIRequest added in v1.3.1

type TaobaologisticsonlineconfirmAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

TaobaologisticsonlineconfirmAPIRequest 确认发货通知接口 API请求 taobao.logistics.online.confirm

<br><font color='red'>仅在使用taobao.logistics.online.send 发货时未输入运单号的情况下,需要使用该接口补充填写运单号,来确认发货。<br> 确认发货的目的是让交易流程继续走下去,确认发货后交易状态会由【买家已付款】变为【卖家已发货】。</font>

func NewTaobaologisticsonlineconfirmRequest added in v1.3.1

func NewTaobaologisticsonlineconfirmRequest() *TaobaologisticsonlineconfirmAPIRequest

NewTaobaologisticsonlineconfirmRequest 初始化TaobaologisticsonlineconfirmAPIRequest对象

func (TaobaologisticsonlineconfirmAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaologisticsonlineconfirmAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaologisticsonlineconfirmAPIRequest) GetApiParams added in v1.3.1

func (r TaobaologisticsonlineconfirmAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaologisticsonlineconfirmAPIRequest) GetIsSplit added in v1.3.1

GetIsSplit IsSplit Getter

func (TaobaologisticsonlineconfirmAPIRequest) GetOutSid added in v1.3.1

GetOutSid OutSid Getter

func (TaobaologisticsonlineconfirmAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaologisticsonlineconfirmAPIRequest) GetSellerIp added in v1.3.1

GetSellerIp SellerIp Getter

func (TaobaologisticsonlineconfirmAPIRequest) GetSubTid added in v1.3.1

GetSubTid SubTid Getter

func (TaobaologisticsonlineconfirmAPIRequest) GetTid added in v1.3.1

GetTid Tid Getter

func (*TaobaologisticsonlineconfirmAPIRequest) SetIsSplit added in v1.3.1

func (r *TaobaologisticsonlineconfirmAPIRequest) SetIsSplit(_isSplit int64) error

SetIsSplit is IsSplit Setter 表明是否是拆单,默认值0,1表示拆单

func (*TaobaologisticsonlineconfirmAPIRequest) SetOutSid added in v1.3.1

func (r *TaobaologisticsonlineconfirmAPIRequest) SetOutSid(_outSid string) error

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

func (*TaobaologisticsonlineconfirmAPIRequest) SetSellerIp added in v1.3.1

func (r *TaobaologisticsonlineconfirmAPIRequest) SetSellerIp(_sellerIp string) error

SetSellerIp is SellerIp Setter 商家的IP地址

func (*TaobaologisticsonlineconfirmAPIRequest) SetSubTid added in v1.3.1

func (r *TaobaologisticsonlineconfirmAPIRequest) SetSubTid(_subTid []int64) error

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

func (*TaobaologisticsonlineconfirmAPIRequest) SetTid added in v1.3.1

SetTid is Tid Setter 淘宝交易ID

type TaobaologisticsonlineconfirmAPIResponse added in v1.3.1

type TaobaologisticsonlineconfirmAPIResponse struct {
	model.CommonResponse
	TaobaologisticsonlineconfirmAPIResponseModel
}

TaobaologisticsonlineconfirmAPIResponse 确认发货通知接口 API返回值 taobao.logistics.online.confirm

<br><font color='red'>仅在使用taobao.logistics.online.send 发货时未输入运单号的情况下,需要使用该接口补充填写运单号,来确认发货。<br> 确认发货的目的是让交易流程继续走下去,确认发货后交易状态会由【买家已付款】变为【卖家已发货】。</font>

type TaobaologisticsonlineconfirmAPIResponseModel added in v1.3.1

type TaobaologisticsonlineconfirmAPIResponseModel struct {
	XMLName xml.Name `xml:"logistics_online_confirm_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 只返回is_success:是否成功。
	Shipping *Shipping `json:"shipping,omitempty" xml:"shipping,omitempty"`
}

TaobaologisticsonlineconfirmAPIResponseModel is 确认发货通知接口 成功返回结果

type TaobaologisticsonlinesendAPIRequest added in v1.3.1

type TaobaologisticsonlinesendAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

TaobaologisticsonlinesendAPIRequest 在线订单发货处理(支持货到付款) API请求 taobao.logistics.online.send

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

func NewTaobaologisticsonlinesendRequest added in v1.3.1

func NewTaobaologisticsonlinesendRequest() *TaobaologisticsonlinesendAPIRequest

NewTaobaologisticsonlinesendRequest 初始化TaobaologisticsonlinesendAPIRequest对象

func (TaobaologisticsonlinesendAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaologisticsonlinesendAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaologisticsonlinesendAPIRequest) GetApiParams added in v1.3.1

func (r TaobaologisticsonlinesendAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaologisticsonlinesendAPIRequest) GetCancelId added in v1.3.1

GetCancelId CancelId Getter

func (TaobaologisticsonlinesendAPIRequest) GetCompanyCode added in v1.3.1

func (r TaobaologisticsonlinesendAPIRequest) GetCompanyCode() string

GetCompanyCode CompanyCode Getter

func (TaobaologisticsonlinesendAPIRequest) GetFeature added in v1.3.1

GetFeature Feature Getter

func (TaobaologisticsonlinesendAPIRequest) GetIsSplit added in v1.3.1

GetIsSplit IsSplit Getter

func (TaobaologisticsonlinesendAPIRequest) GetOutSid added in v1.3.1

GetOutSid OutSid Getter

func (TaobaologisticsonlinesendAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaologisticsonlinesendAPIRequest) GetSellerIp added in v1.3.1

GetSellerIp SellerIp Getter

func (TaobaologisticsonlinesendAPIRequest) GetSenderId added in v1.3.1

GetSenderId SenderId Getter

func (TaobaologisticsonlinesendAPIRequest) GetSubTid added in v1.3.1

GetSubTid SubTid Getter

func (TaobaologisticsonlinesendAPIRequest) GetTid added in v1.3.1

GetTid Tid Getter

func (*TaobaologisticsonlinesendAPIRequest) SetCancelId added in v1.3.1

func (r *TaobaologisticsonlinesendAPIRequest) SetCancelId(_cancelId int64) error

SetCancelId is CancelId Setter 卖家联系人地址库ID,可以通过taobao.logistics.address.search接口查询到地址库ID。 如果为空,取的卖家的默认退货地址

func (*TaobaologisticsonlinesendAPIRequest) SetCompanyCode added in v1.3.1

func (r *TaobaologisticsonlinesendAPIRequest) SetCompanyCode(_companyCode string) error

SetCompanyCode is CompanyCode Setter 物流公司代码.如"POST"就代表中国邮政,"ZJS"就代表宅急送.调用 taobao.logistics.companies.get 获取。

func (*TaobaologisticsonlinesendAPIRequest) SetFeature added in v1.3.1

func (r *TaobaologisticsonlinesendAPIRequest) SetFeature(_feature string) error

SetFeature is Feature Setter feature参数格式 范例: identCode=tid1:识别码1,识别码2|tid2:识别码3;machineCode=tid3:3C机器号A,3C机器号B identCode为识别码的KEY,machineCode为3C的KEY,多个key之间用”;”分隔 “tid1:识别码1,识别码2|tid2:识别码3”为identCode对应的value。 "|"不同商品间的分隔符。 例1商品和2商品,之间就用"|"分开。 TID就是商品代表的子订单号,对应taobao.trade.fullinfo.get 接口获得的oid字段。(通过OID可以唯一定位到当前商品上) ":"TID和具体传入参数间的分隔符。冒号前表示TID,之后代表该商品的参数属性。 "," 属性间分隔符。(对应商品数量,当存在一个商品的数量超过1个时,用逗号分开)。 具体:当订单中A商品的数量为2个,其中手机串号分别为"12345","67890"。 参数格式:identCode=TIDA:12345,67890。 TIDA对应了A宝贝,冒号后用逗号分隔的"12345","67890".说明本订单A宝贝的数量为2,值分别为"12345","67890"。 当存在"|"时,就说明订单中存在多个商品,商品间用"|"分隔了开来。|"之后的内容含义同上。retailStoreId=12345,发货门店ID或仓信息。retailStoreType=STORE: 发货门店类别,STORE表示门店,WAREHOUSE表示电商仓。对于全渠道订单回传的商家,retailStoreId和retailStoreType字段为必填字段。

func (*TaobaologisticsonlinesendAPIRequest) SetIsSplit added in v1.3.1

func (r *TaobaologisticsonlinesendAPIRequest) SetIsSplit(_isSplit int64) error

SetIsSplit is IsSplit Setter 表明是否是拆单,默认值0,1表示拆单

func (*TaobaologisticsonlinesendAPIRequest) SetOutSid added in v1.3.1

func (r *TaobaologisticsonlinesendAPIRequest) SetOutSid(_outSid string) error

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

func (*TaobaologisticsonlinesendAPIRequest) SetSellerIp added in v1.3.1

func (r *TaobaologisticsonlinesendAPIRequest) SetSellerIp(_sellerIp string) error

SetSellerIp is SellerIp Setter 商家的IP地址

func (*TaobaologisticsonlinesendAPIRequest) SetSenderId added in v1.3.1

func (r *TaobaologisticsonlinesendAPIRequest) SetSenderId(_senderId int64) error

SetSenderId is SenderId Setter 卖家联系人地址库ID,可以通过taobao.logistics.address.search接口查询到地址库ID。如果为空,取的卖家的默认取货地址

func (*TaobaologisticsonlinesendAPIRequest) SetSubTid added in v1.3.1

func (r *TaobaologisticsonlinesendAPIRequest) SetSubTid(_subTid []int64) error

SetSubTid is SubTid Setter 需要拆单发货的子订单集合,针对的是一笔交易下有多个子订单需要分开发货的场景;1次可传人多个子订单号,子订单间用逗号隔开;为空表示不做拆单发货。

func (*TaobaologisticsonlinesendAPIRequest) SetTid added in v1.3.1

SetTid is Tid Setter 淘宝交易ID

type TaobaologisticsonlinesendAPIResponse added in v1.3.1

type TaobaologisticsonlinesendAPIResponse struct {
	model.CommonResponse
	TaobaologisticsonlinesendAPIResponseModel
}

TaobaologisticsonlinesendAPIResponse 在线订单发货处理(支持货到付款) API返回值 taobao.logistics.online.send

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

type TaobaologisticsonlinesendAPIResponseModel added in v1.3.1

type TaobaologisticsonlinesendAPIResponseModel struct {
	XMLName xml.Name `xml:"logistics_online_send_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// de
	Shipping *Shipping `json:"shipping,omitempty" xml:"shipping,omitempty"`
}

TaobaologisticsonlinesendAPIResponseModel is 在线订单发货处理(支持货到付款) 成功返回结果

type TaobaologisticsordercreateAPIRequest added in v1.3.1

type TaobaologisticsordercreateAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

TaobaologisticsordercreateAPIRequest 创建物流订单 API请求 taobao.logistics.order.create

用户调用该接口可以创建物流订单。目前仅支持手工订单的创建,创建完毕后默认自动使用“自己联系”的方式发货并且初始状态为”已发货“。也可以通过可选参数选择是否发货以及何种方式进行发货。

func NewTaobaologisticsordercreateRequest added in v1.3.1

func NewTaobaologisticsordercreateRequest() *TaobaologisticsordercreateAPIRequest

NewTaobaologisticsordercreateRequest 初始化TaobaologisticsordercreateAPIRequest对象

func (TaobaologisticsordercreateAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaologisticsordercreateAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaologisticsordercreateAPIRequest) GetApiParams added in v1.3.1

func (r TaobaologisticsordercreateAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaologisticsordercreateAPIRequest) GetGoodsNames added in v1.3.1

func (r TaobaologisticsordercreateAPIRequest) GetGoodsNames() string

GetGoodsNames GoodsNames Getter

func (TaobaologisticsordercreateAPIRequest) GetGoodsQuantities added in v1.3.1

func (r TaobaologisticsordercreateAPIRequest) GetGoodsQuantities() string

GetGoodsQuantities GoodsQuantities Getter

func (TaobaologisticsordercreateAPIRequest) GetIsConsign added in v1.3.1

func (r TaobaologisticsordercreateAPIRequest) GetIsConsign() bool

GetIsConsign IsConsign Getter

func (TaobaologisticsordercreateAPIRequest) GetItemValues added in v1.3.1

func (r TaobaologisticsordercreateAPIRequest) GetItemValues() string

GetItemValues ItemValues Getter

func (TaobaologisticsordercreateAPIRequest) GetLogisCompanyCode added in v1.3.1

func (r TaobaologisticsordercreateAPIRequest) GetLogisCompanyCode() string

GetLogisCompanyCode LogisCompanyCode Getter

func (TaobaologisticsordercreateAPIRequest) GetLogisType added in v1.3.1

GetLogisType LogisType Getter

func (TaobaologisticsordercreateAPIRequest) GetMailNo added in v1.3.1

GetMailNo MailNo Getter

func (TaobaologisticsordercreateAPIRequest) GetOrderType added in v1.3.1

GetOrderType OrderType Getter

func (TaobaologisticsordercreateAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaologisticsordercreateAPIRequest) GetSellerWangwangId added in v1.3.1

func (r TaobaologisticsordercreateAPIRequest) GetSellerWangwangId() string

GetSellerWangwangId SellerWangwangId Getter

func (TaobaologisticsordercreateAPIRequest) GetShipping added in v1.3.1

GetShipping Shipping Getter

func (TaobaologisticsordercreateAPIRequest) GetTradeId added in v1.3.1

GetTradeId TradeId Getter

func (*TaobaologisticsordercreateAPIRequest) SetGoodsNames added in v1.3.1

func (r *TaobaologisticsordercreateAPIRequest) SetGoodsNames(_goodsNames string) error

SetGoodsNames is GoodsNames Setter 运送的货物名称列表,用|号隔开

func (*TaobaologisticsordercreateAPIRequest) SetGoodsQuantities added in v1.3.1

func (r *TaobaologisticsordercreateAPIRequest) SetGoodsQuantities(_goodsQuantities string) error

SetGoodsQuantities is GoodsQuantities Setter 运送货物的数量列表,用|号隔开

func (*TaobaologisticsordercreateAPIRequest) SetIsConsign added in v1.3.1

func (r *TaobaologisticsordercreateAPIRequest) SetIsConsign(_isConsign bool) error

SetIsConsign is IsConsign Setter 创建订单同时是否进行发货,默认发货。

func (*TaobaologisticsordercreateAPIRequest) SetItemValues added in v1.3.1

func (r *TaobaologisticsordercreateAPIRequest) SetItemValues(_itemValues string) error

SetItemValues is ItemValues Setter 运送货物的单价列表(注意:单位为分),用|号隔开

func (*TaobaologisticsordercreateAPIRequest) SetLogisCompanyCode added in v1.3.1

func (r *TaobaologisticsordercreateAPIRequest) SetLogisCompanyCode(_logisCompanyCode string) error

SetLogisCompanyCode is LogisCompanyCode Setter 发货的物流公司代码,如申通=STO,圆通=YTO。is_consign=true时,此项必填。

func (*TaobaologisticsordercreateAPIRequest) SetLogisType added in v1.3.1

func (r *TaobaologisticsordercreateAPIRequest) SetLogisType(_logisType string) error

SetLogisType is LogisType Setter 发货方式,默认为自己联系发货。可选值:ONLINE(在线下单)、OFFLINE(自己联系)。

func (*TaobaologisticsordercreateAPIRequest) SetMailNo added in v1.3.1

func (r *TaobaologisticsordercreateAPIRequest) SetMailNo(_mailNo string) error

SetMailNo is MailNo Setter 发货的物流公司运单号。在logis_type=OFFLINE且is_consign=true时,此项必填。

func (*TaobaologisticsordercreateAPIRequest) SetOrderType added in v1.3.1

func (r *TaobaologisticsordercreateAPIRequest) SetOrderType(_orderType int64) error

SetOrderType is OrderType Setter 物流发货类型:1-普通订单<br/>不填为默认类型 1-普通订单

func (*TaobaologisticsordercreateAPIRequest) SetSellerWangwangId added in v1.3.1

func (r *TaobaologisticsordercreateAPIRequest) SetSellerWangwangId(_sellerWangwangId string) error

SetSellerWangwangId is SellerWangwangId Setter 卖家旺旺号

func (*TaobaologisticsordercreateAPIRequest) SetShipping added in v1.3.1

func (r *TaobaologisticsordercreateAPIRequest) SetShipping(_shipping int64) error

SetShipping is Shipping Setter 运费承担方式。1为买家承担运费,2为卖家承担运费,其他值为错误参数。

func (*TaobaologisticsordercreateAPIRequest) SetTradeId added in v1.3.1

func (r *TaobaologisticsordercreateAPIRequest) SetTradeId(_tradeId int64) error

SetTradeId is TradeId Setter 订单的交易号码

type TaobaologisticsordercreateAPIResponse added in v1.3.1

type TaobaologisticsordercreateAPIResponse struct {
	model.CommonResponse
	TaobaologisticsordercreateAPIResponseModel
}

TaobaologisticsordercreateAPIResponse 创建物流订单 API返回值 taobao.logistics.order.create

用户调用该接口可以创建物流订单。目前仅支持手工订单的创建,创建完毕后默认自动使用“自己联系”的方式发货并且初始状态为”已发货“。也可以通过可选参数选择是否发货以及何种方式进行发货。

type TaobaologisticsordercreateAPIResponseModel added in v1.3.1

type TaobaologisticsordercreateAPIResponseModel struct {
	XMLName xml.Name `xml:"logistics_order_create_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 淘宝物流订单交易号,如返回-1则表示错误。如果在新建订单时传入trade_id,此处会返回此id,如果未传入trade_id,此处会返回淘宝物流分配的交易号码。
	TradeId int64 `json:"trade_id,omitempty" xml:"trade_id,omitempty"`
}

TaobaologisticsordercreateAPIResponseModel is 创建物流订单 成功返回结果

type TaobaologisticsordersdetailgetAPIRequest added in v1.3.1

type TaobaologisticsordersdetailgetAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

TaobaologisticsordersdetailgetAPIRequest 批量查询物流订单,返回详细信息 API请求 taobao.logistics.orders.detail.get

查询物流订单的详细信息,涉及用户隐私字段。

func NewTaobaologisticsordersdetailgetRequest added in v1.3.1

func NewTaobaologisticsordersdetailgetRequest() *TaobaologisticsordersdetailgetAPIRequest

NewTaobaologisticsordersdetailgetRequest 初始化TaobaologisticsordersdetailgetAPIRequest对象

func (TaobaologisticsordersdetailgetAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaologisticsordersdetailgetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaologisticsordersdetailgetAPIRequest) GetApiParams added in v1.3.1

func (r TaobaologisticsordersdetailgetAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaologisticsordersdetailgetAPIRequest) GetBuyerNick added in v1.3.1

GetBuyerNick BuyerNick Getter

func (TaobaologisticsordersdetailgetAPIRequest) GetEndCreated added in v1.3.1

GetEndCreated EndCreated Getter

func (TaobaologisticsordersdetailgetAPIRequest) GetFields added in v1.3.1

GetFields Fields Getter

func (TaobaologisticsordersdetailgetAPIRequest) GetFreightPayer added in v1.3.1

GetFreightPayer FreightPayer Getter

func (TaobaologisticsordersdetailgetAPIRequest) GetOuid added in v1.3.1

GetOuid Ouid Getter

func (TaobaologisticsordersdetailgetAPIRequest) GetPageNo added in v1.3.1

GetPageNo PageNo Getter

func (TaobaologisticsordersdetailgetAPIRequest) GetPageSize added in v1.3.1

GetPageSize PageSize Getter

func (TaobaologisticsordersdetailgetAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaologisticsordersdetailgetAPIRequest) GetReceiverName added in v1.3.1

GetReceiverName ReceiverName Getter

func (TaobaologisticsordersdetailgetAPIRequest) GetSellerConfirm added in v1.3.1

func (r TaobaologisticsordersdetailgetAPIRequest) GetSellerConfirm() string

GetSellerConfirm SellerConfirm Getter

func (TaobaologisticsordersdetailgetAPIRequest) GetStartCreated added in v1.3.1

GetStartCreated StartCreated Getter

func (TaobaologisticsordersdetailgetAPIRequest) GetStatus added in v1.3.1

GetStatus Status Getter

func (TaobaologisticsordersdetailgetAPIRequest) GetTid added in v1.3.1

GetTid Tid Getter

func (TaobaologisticsordersdetailgetAPIRequest) GetType added in v1.3.1

GetType Type Getter

func (*TaobaologisticsordersdetailgetAPIRequest) SetBuyerNick added in v1.3.1

func (r *TaobaologisticsordersdetailgetAPIRequest) SetBuyerNick(_buyerNick string) error

SetBuyerNick is BuyerNick Setter 买家昵称

func (*TaobaologisticsordersdetailgetAPIRequest) SetEndCreated added in v1.3.1

func (r *TaobaologisticsordersdetailgetAPIRequest) SetEndCreated(_endCreated string) error

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

func (*TaobaologisticsordersdetailgetAPIRequest) SetFields added in v1.3.1

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

func (*TaobaologisticsordersdetailgetAPIRequest) SetFreightPayer added in v1.3.1

func (r *TaobaologisticsordersdetailgetAPIRequest) SetFreightPayer(_freightPayer string) error

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

func (*TaobaologisticsordersdetailgetAPIRequest) SetOuid added in v1.3.1

SetOuid is Ouid Setter 系统自动生成

func (*TaobaologisticsordersdetailgetAPIRequest) SetPageNo added in v1.3.1

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

func (*TaobaologisticsordersdetailgetAPIRequest) SetPageSize added in v1.3.1

func (r *TaobaologisticsordersdetailgetAPIRequest) SetPageSize(_pageSize int64) error

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

func (*TaobaologisticsordersdetailgetAPIRequest) SetReceiverName added in v1.3.1

func (r *TaobaologisticsordersdetailgetAPIRequest) SetReceiverName(_receiverName string) error

SetReceiverName is ReceiverName Setter 收货人姓名

func (*TaobaologisticsordersdetailgetAPIRequest) SetSellerConfirm added in v1.3.1

func (r *TaobaologisticsordersdetailgetAPIRequest) SetSellerConfirm(_sellerConfirm string) error

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

func (*TaobaologisticsordersdetailgetAPIRequest) SetStartCreated added in v1.3.1

func (r *TaobaologisticsordersdetailgetAPIRequest) SetStartCreated(_startCreated string) error

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

func (*TaobaologisticsordersdetailgetAPIRequest) SetStatus added in v1.3.1

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

func (*TaobaologisticsordersdetailgetAPIRequest) SetTid added in v1.3.1

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

func (*TaobaologisticsordersdetailgetAPIRequest) SetType added in v1.3.1

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

type TaobaologisticsordersdetailgetAPIResponse added in v1.3.1

type TaobaologisticsordersdetailgetAPIResponse struct {
	model.CommonResponse
	TaobaologisticsordersdetailgetAPIResponseModel
}

TaobaologisticsordersdetailgetAPIResponse 批量查询物流订单,返回详细信息 API返回值 taobao.logistics.orders.detail.get

查询物流订单的详细信息,涉及用户隐私字段。

type TaobaologisticsordersdetailgetAPIResponseModel added in v1.3.1

type TaobaologisticsordersdetailgetAPIResponseModel struct {
	XMLName xml.Name `xml:"logistics_orders_detail_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 获取的物流订单详情列表.返回的Shipping包含的具体信息为入参fields请求的字段信息.
	Shippings []SingleResultDto `json:"shippings,omitempty" xml:"shippings>single_result_dto,omitempty"`
	// 搜索到的物流订单列表总数
	TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"`
}

TaobaologisticsordersdetailgetAPIResponseModel is 批量查询物流订单,返回详细信息 成功返回结果

type TaobaologisticsordersgetAPIRequest added in v1.3.1

type TaobaologisticsordersgetAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

TaobaologisticsordersgetAPIRequest 批量查询物流订单 API请求 taobao.logistics.orders.get

批量查询物流订单。

func NewTaobaologisticsordersgetRequest added in v1.3.1

func NewTaobaologisticsordersgetRequest() *TaobaologisticsordersgetAPIRequest

NewTaobaologisticsordersgetRequest 初始化TaobaologisticsordersgetAPIRequest对象

func (TaobaologisticsordersgetAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaologisticsordersgetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaologisticsordersgetAPIRequest) GetApiParams added in v1.3.1

func (r TaobaologisticsordersgetAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaologisticsordersgetAPIRequest) GetBuyerNick added in v1.3.1

func (r TaobaologisticsordersgetAPIRequest) GetBuyerNick() string

GetBuyerNick BuyerNick Getter

func (TaobaologisticsordersgetAPIRequest) GetEndCreated added in v1.3.1

func (r TaobaologisticsordersgetAPIRequest) GetEndCreated() string

GetEndCreated EndCreated Getter

func (TaobaologisticsordersgetAPIRequest) GetFields added in v1.3.1

GetFields Fields Getter

func (TaobaologisticsordersgetAPIRequest) GetFreightPayer added in v1.3.1

func (r TaobaologisticsordersgetAPIRequest) GetFreightPayer() string

GetFreightPayer FreightPayer Getter

func (TaobaologisticsordersgetAPIRequest) GetOuid added in v1.3.1

GetOuid Ouid Getter

func (TaobaologisticsordersgetAPIRequest) GetPageNo added in v1.3.1

GetPageNo PageNo Getter

func (TaobaologisticsordersgetAPIRequest) GetPageSize added in v1.3.1

func (r TaobaologisticsordersgetAPIRequest) GetPageSize() int64

GetPageSize PageSize Getter

func (TaobaologisticsordersgetAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaologisticsordersgetAPIRequest) GetReceiverName added in v1.3.1

func (r TaobaologisticsordersgetAPIRequest) GetReceiverName() string

GetReceiverName ReceiverName Getter

func (TaobaologisticsordersgetAPIRequest) GetSellerConfirm added in v1.3.1

func (r TaobaologisticsordersgetAPIRequest) GetSellerConfirm() string

GetSellerConfirm SellerConfirm Getter

func (TaobaologisticsordersgetAPIRequest) GetStartCreated added in v1.3.1

func (r TaobaologisticsordersgetAPIRequest) GetStartCreated() string

GetStartCreated StartCreated Getter

func (TaobaologisticsordersgetAPIRequest) GetStatus added in v1.3.1

GetStatus Status Getter

func (TaobaologisticsordersgetAPIRequest) GetTid added in v1.3.1

GetTid Tid Getter

func (TaobaologisticsordersgetAPIRequest) GetType added in v1.3.1

GetType Type Getter

func (*TaobaologisticsordersgetAPIRequest) SetBuyerNick added in v1.3.1

func (r *TaobaologisticsordersgetAPIRequest) SetBuyerNick(_buyerNick string) error

SetBuyerNick is BuyerNick Setter 买家昵称

func (*TaobaologisticsordersgetAPIRequest) SetEndCreated added in v1.3.1

func (r *TaobaologisticsordersgetAPIRequest) SetEndCreated(_endCreated string) error

SetEndCreated is EndCreated Setter 创建时间结束

func (*TaobaologisticsordersgetAPIRequest) SetFields added in v1.3.1

func (r *TaobaologisticsordersgetAPIRequest) SetFields(_fields string) error

SetFields is Fields Setter 需返回的字段列表.可选值:Shipping 物流数据结构中的以下字段: <br><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 (*TaobaologisticsordersgetAPIRequest) SetFreightPayer added in v1.3.1

func (r *TaobaologisticsordersgetAPIRequest) SetFreightPayer(_freightPayer string) error

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

func (*TaobaologisticsordersgetAPIRequest) SetOuid added in v1.3.1

SetOuid is Ouid Setter 系统自动生成

func (*TaobaologisticsordersgetAPIRequest) SetPageNo added in v1.3.1

func (r *TaobaologisticsordersgetAPIRequest) SetPageNo(_pageNo int64) error

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

func (*TaobaologisticsordersgetAPIRequest) SetPageSize added in v1.3.1

func (r *TaobaologisticsordersgetAPIRequest) SetPageSize(_pageSize int64) error

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

func (*TaobaologisticsordersgetAPIRequest) SetReceiverName added in v1.3.1

func (r *TaobaologisticsordersgetAPIRequest) SetReceiverName(_receiverName string) error

SetReceiverName is ReceiverName Setter 收货人姓名

func (*TaobaologisticsordersgetAPIRequest) SetSellerConfirm added in v1.3.1

func (r *TaobaologisticsordersgetAPIRequest) SetSellerConfirm(_sellerConfirm string) error

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

func (*TaobaologisticsordersgetAPIRequest) SetStartCreated added in v1.3.1

func (r *TaobaologisticsordersgetAPIRequest) SetStartCreated(_startCreated string) error

SetStartCreated is StartCreated Setter 创建时间开始

func (*TaobaologisticsordersgetAPIRequest) SetStatus added in v1.3.1

func (r *TaobaologisticsordersgetAPIRequest) SetStatus(_status string) error

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

func (*TaobaologisticsordersgetAPIRequest) SetTid added in v1.3.1

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

func (*TaobaologisticsordersgetAPIRequest) SetType added in v1.3.1

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

type TaobaologisticsordersgetAPIResponse added in v1.3.1

type TaobaologisticsordersgetAPIResponse struct {
	model.CommonResponse
	TaobaologisticsordersgetAPIResponseModel
}

TaobaologisticsordersgetAPIResponse 批量查询物流订单 API返回值 taobao.logistics.orders.get

批量查询物流订单。

type TaobaologisticsordersgetAPIResponseModel added in v1.3.1

type TaobaologisticsordersgetAPIResponseModel struct {
	XMLName xml.Name `xml:"logistics_orders_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 获取的物流订单详情列表 <br/>返回的Shipping包含的具体信息为入参fields请求的字段信息
	Shippings []Shipping `json:"shippings,omitempty" xml:"shippings>shipping,omitempty"`
	// 搜索到的物流订单列表总数
	TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"`
}

TaobaologisticsordersgetAPIResponseModel is 批量查询物流订单 成功返回结果

type TaobaologisticspartnersgetAPIRequest added in v1.3.1

type TaobaologisticspartnersgetAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

TaobaologisticspartnersgetAPIRequest 查询支持起始地到目的地范围的物流公司 API请求 taobao.logistics.partners.get

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

func NewTaobaologisticspartnersgetRequest added in v1.3.1

func NewTaobaologisticspartnersgetRequest() *TaobaologisticspartnersgetAPIRequest

NewTaobaologisticspartnersgetRequest 初始化TaobaologisticspartnersgetAPIRequest对象

func (TaobaologisticspartnersgetAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaologisticspartnersgetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaologisticspartnersgetAPIRequest) GetApiParams added in v1.3.1

func (r TaobaologisticspartnersgetAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaologisticspartnersgetAPIRequest) GetGoodsValue added in v1.3.1

func (r TaobaologisticspartnersgetAPIRequest) GetGoodsValue() string

GetGoodsValue GoodsValue Getter

func (TaobaologisticspartnersgetAPIRequest) GetIsNeedCarriage added in v1.3.1

func (r TaobaologisticspartnersgetAPIRequest) GetIsNeedCarriage() bool

GetIsNeedCarriage IsNeedCarriage Getter

func (TaobaologisticspartnersgetAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaologisticspartnersgetAPIRequest) GetServiceType added in v1.3.1

func (r TaobaologisticspartnersgetAPIRequest) GetServiceType() string

GetServiceType ServiceType Getter

func (TaobaologisticspartnersgetAPIRequest) GetSourceId added in v1.3.1

GetSourceId SourceId Getter

func (TaobaologisticspartnersgetAPIRequest) GetTargetId added in v1.3.1

GetTargetId TargetId Getter

func (*TaobaologisticspartnersgetAPIRequest) SetGoodsValue added in v1.3.1

func (r *TaobaologisticspartnersgetAPIRequest) SetGoodsValue(_goodsValue string) error

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

func (*TaobaologisticspartnersgetAPIRequest) SetIsNeedCarriage added in v1.3.1

func (r *TaobaologisticspartnersgetAPIRequest) SetIsNeedCarriage(_isNeedCarriage bool) error

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

func (*TaobaologisticspartnersgetAPIRequest) SetServiceType added in v1.3.1

func (r *TaobaologisticspartnersgetAPIRequest) SetServiceType(_serviceType string) error

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

func (*TaobaologisticspartnersgetAPIRequest) SetSourceId added in v1.3.1

func (r *TaobaologisticspartnersgetAPIRequest) SetSourceId(_sourceId string) error

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

func (*TaobaologisticspartnersgetAPIRequest) SetTargetId added in v1.3.1

func (r *TaobaologisticspartnersgetAPIRequest) SetTargetId(_targetId string) error

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

type TaobaologisticspartnersgetAPIResponse added in v1.3.1

type TaobaologisticspartnersgetAPIResponse struct {
	model.CommonResponse
	TaobaologisticspartnersgetAPIResponseModel
}

TaobaologisticspartnersgetAPIResponse 查询支持起始地到目的地范围的物流公司 API返回值 taobao.logistics.partners.get

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

type TaobaologisticspartnersgetAPIResponseModel added in v1.3.1

type TaobaologisticspartnersgetAPIResponseModel struct {
	XMLName xml.Name `xml:"logistics_partners_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 查询揽送范围之内的物流公司信息
	LogisticsPartners []LogisticsPartner `json:"logistics_partners,omitempty" xml:"logistics_partners>logistics_partner,omitempty"`
}

TaobaologisticspartnersgetAPIResponseModel is 查询支持起始地到目的地范围的物流公司 成功返回结果

type TaobaologisticstracegetAPIRequest added in v1.3.1

type TaobaologisticstracegetAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

TaobaologisticstracegetAPIRequest 用户根据交易号查询物流流转信息 API请求 taobao.logistics.trace.get

用户根据交易号查询物流流转信息

func NewTaobaologisticstracegetRequest added in v1.3.1

func NewTaobaologisticstracegetRequest() *TaobaologisticstracegetAPIRequest

NewTaobaologisticstracegetRequest 初始化TaobaologisticstracegetAPIRequest对象

func (TaobaologisticstracegetAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaologisticstracegetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaologisticstracegetAPIRequest) GetApiParams added in v1.3.1

func (r TaobaologisticstracegetAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaologisticstracegetAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaologisticstracegetAPIRequest) GetTid added in v1.3.1

GetTid Tid Getter

func (*TaobaologisticstracegetAPIRequest) SetTid added in v1.3.1

SetTid is Tid Setter 交易号

type TaobaologisticstracegetAPIResponse added in v1.3.1

type TaobaologisticstracegetAPIResponse struct {
	model.CommonResponse
	TaobaologisticstracegetAPIResponseModel
}

TaobaologisticstracegetAPIResponse 用户根据交易号查询物流流转信息 API返回值 taobao.logistics.trace.get

用户根据交易号查询物流流转信息

type TaobaologisticstracegetAPIResponseModel added in v1.3.1

type TaobaologisticstracegetAPIResponseModel struct {
	XMLName xml.Name `xml:"logistics_trace_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回对象
	Result []TransitStepResult `json:"result,omitempty" xml:"result>transit_step_result,omitempty"`
}

TaobaologisticstracegetAPIResponseModel is 用户根据交易号查询物流流转信息 成功返回结果

type TaobaologisticstracesearchAPIRequest added in v1.3.1

type TaobaologisticstracesearchAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

TaobaologisticstracesearchAPIRequest 物流流转信息查询 API请求 taobao.logistics.trace.search

用户根据淘宝交易号查询物流流转信息,如2010-8-10 15:23:00到达杭州集散地。<br/>此接口的返回信息都由物流公司提供。(备注:使用线下发货(offline.send)的运单,不支持运单状态的实时跟踪,只要一发货,状态就会变为<status>对方已签收</status>,该字段仅对线上发货(online.send)的运单有效。)

func NewTaobaologisticstracesearchRequest added in v1.3.1

func NewTaobaologisticstracesearchRequest() *TaobaologisticstracesearchAPIRequest

NewTaobaologisticstracesearchRequest 初始化TaobaologisticstracesearchAPIRequest对象

func (TaobaologisticstracesearchAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaologisticstracesearchAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaologisticstracesearchAPIRequest) GetApiParams added in v1.3.1

func (r TaobaologisticstracesearchAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaologisticstracesearchAPIRequest) GetIsSplit added in v1.3.1

GetIsSplit IsSplit Getter

func (TaobaologisticstracesearchAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaologisticstracesearchAPIRequest) GetSubTid added in v1.3.1

GetSubTid SubTid Getter

func (TaobaologisticstracesearchAPIRequest) GetTid added in v1.3.1

GetTid Tid Getter

func (*TaobaologisticstracesearchAPIRequest) SetIsSplit added in v1.3.1

func (r *TaobaologisticstracesearchAPIRequest) SetIsSplit(_isSplit int64) error

SetIsSplit is IsSplit Setter 表明是否是拆单,默认值0,1表示拆单

func (*TaobaologisticstracesearchAPIRequest) SetSubTid added in v1.3.1

func (r *TaobaologisticstracesearchAPIRequest) SetSubTid(_subTid []string) error

SetSubTid is SubTid Setter 拆单子订单列表,当is_split=1时,需要传人;对应的数据是:子订单号的列表。

func (*TaobaologisticstracesearchAPIRequest) SetTid added in v1.3.1

SetTid is Tid Setter 淘宝交易号,请勿传非淘宝交易号

type TaobaologisticstracesearchAPIResponse added in v1.3.1

type TaobaologisticstracesearchAPIResponse struct {
	model.CommonResponse
	TaobaologisticstracesearchAPIResponseModel
}

TaobaologisticstracesearchAPIResponse 物流流转信息查询 API返回值 taobao.logistics.trace.search

用户根据淘宝交易号查询物流流转信息,如2010-8-10 15:23:00到达杭州集散地。<br/>此接口的返回信息都由物流公司提供。(备注:使用线下发货(offline.send)的运单,不支持运单状态的实时跟踪,只要一发货,状态就会变为<status>对方已签收</status>,该字段仅对线上发货(online.send)的运单有效。)

type TaobaologisticstracesearchAPIResponseModel added in v1.3.1

type TaobaologisticstracesearchAPIResponseModel struct {
	XMLName xml.Name `xml:"logistics_trace_search_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 流转信息列表
	TraceList []TransitStepInfo `json:"trace_list,omitempty" xml:"trace_list>transit_step_info,omitempty"`
	// 运单号
	OutSid string `json:"out_sid,omitempty" xml:"out_sid,omitempty"`
	// 物流公司名称
	CompanyName string `json:"company_name,omitempty" xml:"company_name,omitempty"`
	// 订单的物流状态
	Status string `json:"status,omitempty" xml:"status,omitempty"`
	// 交易号
	Tid int64 `json:"tid,omitempty" xml:"tid,omitempty"`
}

TaobaologisticstracesearchAPIResponseModel is 物流流转信息查询 成功返回结果

type TaobaologisticswmspackagedeliveryorderconfirmAPIRequest added in v1.3.1

type TaobaologisticswmspackagedeliveryorderconfirmAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

TaobaologisticswmspackagedeliveryorderconfirmAPIRequest 包裹出库单确认 API请求 taobao.logistics.wms.packagedeliveryorder.confirm

包裹出库单确认

func NewTaobaologisticswmspackagedeliveryorderconfirmRequest added in v1.3.1

func NewTaobaologisticswmspackagedeliveryorderconfirmRequest() *TaobaologisticswmspackagedeliveryorderconfirmAPIRequest

NewTaobaologisticswmspackagedeliveryorderconfirmRequest 初始化TaobaologisticswmspackagedeliveryorderconfirmAPIRequest对象

func (TaobaologisticswmspackagedeliveryorderconfirmAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaologisticswmspackagedeliveryorderconfirmAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaologisticswmspackagedeliveryorderconfirmAPIRequest) GetConfirmPackageDeliveryOrderRequest added in v1.3.1

GetConfirmPackageDeliveryOrderRequest ConfirmPackageDeliveryOrderRequest Getter

func (TaobaologisticswmspackagedeliveryorderconfirmAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (*TaobaologisticswmspackagedeliveryorderconfirmAPIRequest) SetConfirmPackageDeliveryOrderRequest added in v1.3.1

func (r *TaobaologisticswmspackagedeliveryorderconfirmAPIRequest) SetConfirmPackageDeliveryOrderRequest(_confirmPackageDeliveryOrderRequest *ConfirmPackageOrderRequest) error

SetConfirmPackageDeliveryOrderRequest is ConfirmPackageDeliveryOrderRequest Setter 请求

type TaobaologisticswmspackagedeliveryorderconfirmAPIResponse added in v1.3.1

type TaobaologisticswmspackagedeliveryorderconfirmAPIResponse struct {
	model.CommonResponse
	TaobaologisticswmspackagedeliveryorderconfirmAPIResponseModel
}

TaobaologisticswmspackagedeliveryorderconfirmAPIResponse 包裹出库单确认 API返回值 taobao.logistics.wms.packagedeliveryorder.confirm

包裹出库单确认

type TaobaologisticswmspackagedeliveryorderconfirmAPIResponseModel added in v1.3.1

type TaobaologisticswmspackagedeliveryorderconfirmAPIResponseModel struct {
	XMLName xml.Name `xml:"logistics_wms_packagedeliveryorder_confirm_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 响应结果
	Result *ResultWrapper `json:"result,omitempty" xml:"result,omitempty"`
}

TaobaologisticswmspackagedeliveryorderconfirmAPIResponseModel is 包裹出库单确认 成功返回结果

type TaobaologisticswmspackagedeliveryorderpullAPIRequest added in v1.3.1

type TaobaologisticswmspackagedeliveryorderpullAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

TaobaologisticswmspackagedeliveryorderpullAPIRequest 包裹出库单拉单 API请求 taobao.logistics.wms.packagedeliveryorder.pull

包裹出库单拉单

func NewTaobaologisticswmspackagedeliveryorderpullRequest added in v1.3.1

func NewTaobaologisticswmspackagedeliveryorderpullRequest() *TaobaologisticswmspackagedeliveryorderpullAPIRequest

NewTaobaologisticswmspackagedeliveryorderpullRequest 初始化TaobaologisticswmspackagedeliveryorderpullAPIRequest对象

func (TaobaologisticswmspackagedeliveryorderpullAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaologisticswmspackagedeliveryorderpullAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaologisticswmspackagedeliveryorderpullAPIRequest) GetPullPackageDeliveryOrderRequest added in v1.3.1

func (r TaobaologisticswmspackagedeliveryorderpullAPIRequest) GetPullPackageDeliveryOrderRequest() *PullPackageOrderRequest

GetPullPackageDeliveryOrderRequest PullPackageDeliveryOrderRequest Getter

func (TaobaologisticswmspackagedeliveryorderpullAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (*TaobaologisticswmspackagedeliveryorderpullAPIRequest) SetPullPackageDeliveryOrderRequest added in v1.3.1

func (r *TaobaologisticswmspackagedeliveryorderpullAPIRequest) SetPullPackageDeliveryOrderRequest(_pullPackageDeliveryOrderRequest *PullPackageOrderRequest) error

SetPullPackageDeliveryOrderRequest is PullPackageDeliveryOrderRequest Setter 请求

type TaobaologisticswmspackagedeliveryorderpullAPIResponse added in v1.3.1

type TaobaologisticswmspackagedeliveryorderpullAPIResponse struct {
	model.CommonResponse
	TaobaologisticswmspackagedeliveryorderpullAPIResponseModel
}

TaobaologisticswmspackagedeliveryorderpullAPIResponse 包裹出库单拉单 API返回值 taobao.logistics.wms.packagedeliveryorder.pull

包裹出库单拉单

type TaobaologisticswmspackagedeliveryorderpullAPIResponseModel added in v1.3.1

type TaobaologisticswmspackagedeliveryorderpullAPIResponseModel struct {
	XMLName xml.Name `xml:"logistics_wms_packagedeliveryorder_pull_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 结果
	Result *ResultWrapper `json:"result,omitempty" xml:"result,omitempty"`
}

TaobaologisticswmspackagedeliveryorderpullAPIResponseModel is 包裹出库单拉单 成功返回结果

type TaobaologisticswmspackageentryorderconfirmAPIRequest added in v1.3.1

type TaobaologisticswmspackageentryorderconfirmAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

TaobaologisticswmspackageentryorderconfirmAPIRequest 包裹入库单确认 API请求 taobao.logistics.wms.packageentryorder.confirm

包裹入库单确认

func NewTaobaologisticswmspackageentryorderconfirmRequest added in v1.3.1

func NewTaobaologisticswmspackageentryorderconfirmRequest() *TaobaologisticswmspackageentryorderconfirmAPIRequest

NewTaobaologisticswmspackageentryorderconfirmRequest 初始化TaobaologisticswmspackageentryorderconfirmAPIRequest对象

func (TaobaologisticswmspackageentryorderconfirmAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaologisticswmspackageentryorderconfirmAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaologisticswmspackageentryorderconfirmAPIRequest) GetConfirmPackageEntryOrderRequest added in v1.3.1

GetConfirmPackageEntryOrderRequest ConfirmPackageEntryOrderRequest Getter

func (TaobaologisticswmspackageentryorderconfirmAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (*TaobaologisticswmspackageentryorderconfirmAPIRequest) SetConfirmPackageEntryOrderRequest added in v1.3.1

func (r *TaobaologisticswmspackageentryorderconfirmAPIRequest) SetConfirmPackageEntryOrderRequest(_confirmPackageEntryOrderRequest *ConfirmPackageOrderRequest) error

SetConfirmPackageEntryOrderRequest is ConfirmPackageEntryOrderRequest Setter 请求

type TaobaologisticswmspackageentryorderconfirmAPIResponse added in v1.3.1

type TaobaologisticswmspackageentryorderconfirmAPIResponse struct {
	model.CommonResponse
	TaobaologisticswmspackageentryorderconfirmAPIResponseModel
}

TaobaologisticswmspackageentryorderconfirmAPIResponse 包裹入库单确认 API返回值 taobao.logistics.wms.packageentryorder.confirm

包裹入库单确认

type TaobaologisticswmspackageentryorderconfirmAPIResponseModel added in v1.3.1

type TaobaologisticswmspackageentryorderconfirmAPIResponseModel struct {
	XMLName xml.Name `xml:"logistics_wms_packageentryorder_confirm_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 结果
	Result *ResultWrappe `json:"result,omitempty" xml:"result,omitempty"`
}

TaobaologisticswmspackageentryorderconfirmAPIResponseModel is 包裹入库单确认 成功返回结果

type TaobaologisticswmspackageentryorderpullAPIRequest added in v1.3.1

type TaobaologisticswmspackageentryorderpullAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

TaobaologisticswmspackageentryorderpullAPIRequest 包裹入库单拉单 API请求 taobao.logistics.wms.packageentryorder.pull

包裹入库单拉单

func NewTaobaologisticswmspackageentryorderpullRequest added in v1.3.1

func NewTaobaologisticswmspackageentryorderpullRequest() *TaobaologisticswmspackageentryorderpullAPIRequest

NewTaobaologisticswmspackageentryorderpullRequest 初始化TaobaologisticswmspackageentryorderpullAPIRequest对象

func (TaobaologisticswmspackageentryorderpullAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaologisticswmspackageentryorderpullAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaologisticswmspackageentryorderpullAPIRequest) GetPullPackageEntryOrderRequest added in v1.3.1

GetPullPackageEntryOrderRequest PullPackageEntryOrderRequest Getter

func (TaobaologisticswmspackageentryorderpullAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (*TaobaologisticswmspackageentryorderpullAPIRequest) SetPullPackageEntryOrderRequest added in v1.3.1

func (r *TaobaologisticswmspackageentryorderpullAPIRequest) SetPullPackageEntryOrderRequest(_pullPackageEntryOrderRequest *PullPackageOrderRequest) error

SetPullPackageEntryOrderRequest is PullPackageEntryOrderRequest Setter 请求

type TaobaologisticswmspackageentryorderpullAPIResponse added in v1.3.1

type TaobaologisticswmspackageentryorderpullAPIResponse struct {
	model.CommonResponse
	TaobaologisticswmspackageentryorderpullAPIResponseModel
}

TaobaologisticswmspackageentryorderpullAPIResponse 包裹入库单拉单 API返回值 taobao.logistics.wms.packageentryorder.pull

包裹入库单拉单

type TaobaologisticswmspackageentryorderpullAPIResponseModel added in v1.3.1

type TaobaologisticswmspackageentryorderpullAPIResponseModel struct {
	XMLName xml.Name `xml:"logistics_wms_packageentryorder_pull_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 结果
	Result *ResultWrapper `json:"result,omitempty" xml:"result,omitempty"`
}

TaobaologisticswmspackageentryorderpullAPIResponseModel is 包裹入库单拉单 成功返回结果

type TaobaologisticswmspackageexceptionreportAPIRequest added in v1.3.1

type TaobaologisticswmspackageexceptionreportAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

TaobaologisticswmspackageexceptionreportAPIRequest 无主件回告 API请求 taobao.logistics.wms.packageexception.report

无主件回告

func NewTaobaologisticswmspackageexceptionreportRequest added in v1.3.1

func NewTaobaologisticswmspackageexceptionreportRequest() *TaobaologisticswmspackageexceptionreportAPIRequest

NewTaobaologisticswmspackageexceptionreportRequest 初始化TaobaologisticswmspackageexceptionreportAPIRequest对象

func (TaobaologisticswmspackageexceptionreportAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaologisticswmspackageexceptionreportAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaologisticswmspackageexceptionreportAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaologisticswmspackageexceptionreportAPIRequest) GetReportExceptionRequest added in v1.3.1

GetReportExceptionRequest ReportExceptionRequest Getter

func (*TaobaologisticswmspackageexceptionreportAPIRequest) SetReportExceptionRequest added in v1.3.1

func (r *TaobaologisticswmspackageexceptionreportAPIRequest) SetReportExceptionRequest(_reportExceptionRequest *ReportExceptionRequest) error

SetReportExceptionRequest is ReportExceptionRequest Setter 请求

type TaobaologisticswmspackageexceptionreportAPIResponse added in v1.3.1

type TaobaologisticswmspackageexceptionreportAPIResponse struct {
	model.CommonResponse
	TaobaologisticswmspackageexceptionreportAPIResponseModel
}

TaobaologisticswmspackageexceptionreportAPIResponse 无主件回告 API返回值 taobao.logistics.wms.packageexception.report

无主件回告

type TaobaologisticswmspackageexceptionreportAPIResponseModel added in v1.3.1

type TaobaologisticswmspackageexceptionreportAPIResponseModel struct {
	XMLName xml.Name `xml:"logistics_wms_packageexception_report_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 响应信息
	Result *ResultWrapper `json:"result,omitempty" xml:"result,omitempty"`
}

TaobaologisticswmspackageexceptionreportAPIResponseModel is 无主件回告 成功返回结果

type TaobaowlborderjzconsignAPIRequest added in v1.3.1

type TaobaowlborderjzconsignAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

TaobaowlborderjzconsignAPIRequest 家装发货接口 API请求 taobao.wlb.order.jz.consign

家装类订单使用该接口发货

func NewTaobaowlborderjzconsignRequest added in v1.3.1

func NewTaobaowlborderjzconsignRequest() *TaobaowlborderjzconsignAPIRequest

NewTaobaowlborderjzconsignRequest 初始化TaobaowlborderjzconsignAPIRequest对象

func (TaobaowlborderjzconsignAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaowlborderjzconsignAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaowlborderjzconsignAPIRequest) GetApiParams added in v1.3.1

func (r TaobaowlborderjzconsignAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaowlborderjzconsignAPIRequest) GetInsReceiverTo added in v1.3.1

func (r TaobaowlborderjzconsignAPIRequest) GetInsReceiverTo() *JzReceiverTo

GetInsReceiverTo InsReceiverTo Getter

func (TaobaowlborderjzconsignAPIRequest) GetInsTpDto added in v1.3.1

func (r TaobaowlborderjzconsignAPIRequest) GetInsTpDto() *Tpdto

GetInsTpDto InsTpDto Getter

func (TaobaowlborderjzconsignAPIRequest) GetJzReceiverTo added in v1.3.1

func (r TaobaowlborderjzconsignAPIRequest) GetJzReceiverTo() *JzReceiverTo

GetJzReceiverTo JzReceiverTo Getter

func (TaobaowlborderjzconsignAPIRequest) GetJzTopArgs added in v1.3.1

func (r TaobaowlborderjzconsignAPIRequest) GetJzTopArgs() *JzTopArgs

GetJzTopArgs JzTopArgs Getter

func (TaobaowlborderjzconsignAPIRequest) GetLgTpDto added in v1.3.1

func (r TaobaowlborderjzconsignAPIRequest) GetLgTpDto() *Tpdto

GetLgTpDto LgTpDto Getter

func (TaobaowlborderjzconsignAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaowlborderjzconsignAPIRequest) GetSenderId added in v1.3.1

func (r TaobaowlborderjzconsignAPIRequest) GetSenderId() int64

GetSenderId SenderId Getter

func (TaobaowlborderjzconsignAPIRequest) GetTid added in v1.3.1

GetTid Tid Getter

func (*TaobaowlborderjzconsignAPIRequest) SetInsReceiverTo added in v1.3.1

func (r *TaobaowlborderjzconsignAPIRequest) SetInsReceiverTo(_insReceiverTo *JzReceiverTo) error

SetInsReceiverTo is InsReceiverTo Setter 安装收货人信息,如果为空,则取默认收货人信息

func (*TaobaowlborderjzconsignAPIRequest) SetInsTpDto added in v1.3.1

func (r *TaobaowlborderjzconsignAPIRequest) SetInsTpDto(_insTpDto *Tpdto) error

SetInsTpDto is InsTpDto Setter 安装公司信息,需要安装时,才填写

func (*TaobaowlborderjzconsignAPIRequest) SetJzReceiverTo added in v1.3.1

func (r *TaobaowlborderjzconsignAPIRequest) SetJzReceiverTo(_jzReceiverTo *JzReceiverTo) error

SetJzReceiverTo is JzReceiverTo Setter 家装收货人信息,如果为空,则取默认收货信息

func (*TaobaowlborderjzconsignAPIRequest) SetJzTopArgs added in v1.3.1

func (r *TaobaowlborderjzconsignAPIRequest) SetJzTopArgs(_jzTopArgs *JzTopArgs) error

SetJzTopArgs is JzTopArgs Setter 发货参数

func (*TaobaowlborderjzconsignAPIRequest) SetLgTpDto added in v1.3.1

func (r *TaobaowlborderjzconsignAPIRequest) SetLgTpDto(_lgTpDto *Tpdto) error

SetLgTpDto is LgTpDto Setter 物流公司信息

func (*TaobaowlborderjzconsignAPIRequest) SetSenderId added in v1.3.1

func (r *TaobaowlborderjzconsignAPIRequest) SetSenderId(_senderId int64) error

SetSenderId is SenderId Setter 卖家联系人地址库ID,可以通过taobao.logistics.address.search接口查询到地址库ID。如果为空,取的卖家的默认取货地址

func (*TaobaowlborderjzconsignAPIRequest) SetTid added in v1.3.1

SetTid is Tid Setter 交易号

type TaobaowlborderjzconsignAPIResponse added in v1.3.1

type TaobaowlborderjzconsignAPIResponse struct {
	model.CommonResponse
	TaobaowlborderjzconsignAPIResponseModel
}

TaobaowlborderjzconsignAPIResponse 家装发货接口 API返回值 taobao.wlb.order.jz.consign

家装类订单使用该接口发货

type TaobaowlborderjzconsignAPIResponseModel added in v1.3.1

type TaobaowlborderjzconsignAPIResponseModel struct {
	XMLName xml.Name `xml:"wlb_order_jz_consign_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 错误码
	ResultErrorCode string `json:"result_error_code,omitempty" xml:"result_error_code,omitempty"`
	// 错误信息描述
	ResultErrorMsg string `json:"result_error_msg,omitempty" xml:"result_error_msg,omitempty"`
	// 是否成功
	ResultSuccess bool `json:"result_success,omitempty" xml:"result_success,omitempty"`
}

TaobaowlborderjzconsignAPIResponseModel is 家装发货接口 成功返回结果

type TaobaowlborderjzqueryAPIRequest added in v1.3.1

type TaobaowlborderjzqueryAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

TaobaowlborderjzqueryAPIRequest 家装业务查询物流公司api API请求 taobao.wlb.order.jz.query

家装业务查询物流公司api

func NewTaobaowlborderjzqueryRequest added in v1.3.1

func NewTaobaowlborderjzqueryRequest() *TaobaowlborderjzqueryAPIRequest

NewTaobaowlborderjzqueryRequest 初始化TaobaowlborderjzqueryAPIRequest对象

func (TaobaowlborderjzqueryAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaowlborderjzqueryAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaowlborderjzqueryAPIRequest) GetApiParams added in v1.3.1

func (r TaobaowlborderjzqueryAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaowlborderjzqueryAPIRequest) GetInsJzReceiverTO added in v1.3.1

func (r TaobaowlborderjzqueryAPIRequest) GetInsJzReceiverTO() *JzReceiverTo

GetInsJzReceiverTO InsJzReceiverTO Getter

func (TaobaowlborderjzqueryAPIRequest) GetJzReceiverTo added in v1.3.1

func (r TaobaowlborderjzqueryAPIRequest) GetJzReceiverTo() *JzReceiverTo

GetJzReceiverTo JzReceiverTo Getter

func (TaobaowlborderjzqueryAPIRequest) GetRawParams added in v1.3.1

func (r TaobaowlborderjzqueryAPIRequest) GetRawParams() model.Params

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaowlborderjzqueryAPIRequest) GetSenderId added in v1.3.1

func (r TaobaowlborderjzqueryAPIRequest) GetSenderId() int64

GetSenderId SenderId Getter

func (TaobaowlborderjzqueryAPIRequest) GetTid added in v1.3.1

GetTid Tid Getter

func (*TaobaowlborderjzqueryAPIRequest) SetInsJzReceiverTO added in v1.3.1

func (r *TaobaowlborderjzqueryAPIRequest) SetInsJzReceiverTO(_insJzReceiverTO *JzReceiverTo) error

SetInsJzReceiverTO is InsJzReceiverTO Setter 家装安装服务收货人信息

func (*TaobaowlborderjzqueryAPIRequest) SetJzReceiverTo added in v1.3.1

func (r *TaobaowlborderjzqueryAPIRequest) SetJzReceiverTo(_jzReceiverTo *JzReceiverTo) error

SetJzReceiverTo is JzReceiverTo Setter 家装收货人信息

func (*TaobaowlborderjzqueryAPIRequest) SetSenderId added in v1.3.1

func (r *TaobaowlborderjzqueryAPIRequest) SetSenderId(_senderId int64) error

SetSenderId is SenderId Setter 卖家联系人地址库ID,可以通过taobao.logistics.address.search接口查询到地址库ID。如果为空,取的卖家的默认取货地址

func (*TaobaowlborderjzqueryAPIRequest) SetTid added in v1.3.1

SetTid is Tid Setter 交易id

type TaobaowlborderjzqueryAPIResponse added in v1.3.1

type TaobaowlborderjzqueryAPIResponse struct {
	model.CommonResponse
	TaobaowlborderjzqueryAPIResponseModel
}

TaobaowlborderjzqueryAPIResponse 家装业务查询物流公司api API返回值 taobao.wlb.order.jz.query

家装业务查询物流公司api

type TaobaowlborderjzqueryAPIResponseModel added in v1.3.1

type TaobaowlborderjzqueryAPIResponseModel struct {
	XMLName xml.Name `xml:"wlb_order_jz_query_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 错误编码
	ResultErrorCode string `json:"result_error_code,omitempty" xml:"result_error_code,omitempty"`
	// 错误信息
	ResultErrorMsg string `json:"result_error_msg,omitempty" xml:"result_error_msg,omitempty"`
	// 结果信息
	Result *JzTopDto `json:"result,omitempty" xml:"result,omitempty"`
	// 是否成功
	ResultSuccess bool `json:"result_success,omitempty" xml:"result_success,omitempty"`
}

TaobaowlborderjzqueryAPIResponseModel is 家装业务查询物流公司api 成功返回结果

type TaobaowlbstoresbaseinfogetAPIRequest added in v1.3.1

type TaobaowlbstoresbaseinfogetAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

TaobaowlbstoresbaseinfogetAPIRequest 商家按照仓的类型获取仓库接口 API请求 taobao.wlb.stores.baseinfo.get

通过USERID和仓库类型,获取商家自有仓库或菜鸟仓库或全部仓库

func NewTaobaowlbstoresbaseinfogetRequest added in v1.3.1

func NewTaobaowlbstoresbaseinfogetRequest() *TaobaowlbstoresbaseinfogetAPIRequest

NewTaobaowlbstoresbaseinfogetRequest 初始化TaobaowlbstoresbaseinfogetAPIRequest对象

func (TaobaowlbstoresbaseinfogetAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaowlbstoresbaseinfogetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaowlbstoresbaseinfogetAPIRequest) GetApiParams added in v1.3.1

func (r TaobaowlbstoresbaseinfogetAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaowlbstoresbaseinfogetAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaowlbstoresbaseinfogetAPIRequest) GetType added in v1.3.1

GetType Type Getter

func (*TaobaowlbstoresbaseinfogetAPIRequest) SetType added in v1.3.1

SetType is Type Setter 0.商家仓库.1.菜鸟仓库.2全部被划分的仓库

type TaobaowlbstoresbaseinfogetAPIResponse added in v1.3.1

type TaobaowlbstoresbaseinfogetAPIResponse struct {
	model.CommonResponse
	TaobaowlbstoresbaseinfogetAPIResponseModel
}

TaobaowlbstoresbaseinfogetAPIResponse 商家按照仓的类型获取仓库接口 API返回值 taobao.wlb.stores.baseinfo.get

通过USERID和仓库类型,获取商家自有仓库或菜鸟仓库或全部仓库

type TaobaowlbstoresbaseinfogetAPIResponseModel added in v1.3.1

type TaobaowlbstoresbaseinfogetAPIResponseModel struct {
	XMLName xml.Name `xml:"wlb_stores_baseinfo_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 仓库列表
	StoreInfoList []StoreInfo `json:"store_info_list,omitempty" xml:"store_info_list>store_info,omitempty"`
	// 返回的总数
	TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"`
}

TaobaowlbstoresbaseinfogetAPIResponseModel is 商家按照仓的类型获取仓库接口 成功返回结果

type TopConsignGoodsRequest added in v1.2.9

type TopConsignGoodsRequest struct {
	// 子订单id
	SubTid string `json:"sub_tid,omitempty" xml:"sub_tid,omitempty"`
	// 成分品itemId
	CompItemId string `json:"comp_item_id,omitempty" xml:"comp_item_id,omitempty"`
	// 成分品skuId
	CompSkuId string `json:"comp_sku_id,omitempty" xml:"comp_sku_id,omitempty"`
	// 商品类型 0:普通品 1:赠品 2:成分品,默认0
	ItemType int64 `json:"item_type,omitempty" xml:"item_type,omitempty"`
	// 商品数量,不传默认为子单上的商品数量;支持不传,但不能传0或负值
	Num int64 `json:"num,omitempty" xml:"num,omitempty"`
}

TopConsignGoodsRequest 结构体

type TopConsignPkgRequest

type TopConsignPkgRequest struct {
	// 包裹中商品信息
	Goods []TopConsignGoodsRequest `json:"goods,omitempty" xml:"goods>top_consign_goods_request,omitempty"`
	// 物流公司代码.如"POST"代表中国邮政,"ZJS"代表宅急送。调用 taobao.logistics.companies.get 获取
	CompanyCode string `json:"company_code,omitempty" xml:"company_code,omitempty"`
	// 运单号.具体一个物流公司的真实运单号码。淘宝官方物流会校验,请谨慎传入
	OutSid string `json:"out_sid,omitempty" xml:"out_sid,omitempty"`
	// 快递子单运单号
	SubOutSid string `json:"sub_out_sid,omitempty" xml:"sub_out_sid,omitempty"`
}

TopConsignPkgRequest 结构体

type TopFee

type TopFee struct {
	// 可选值:post:平邮; cod:货到付款; ems:EMS; express:快递公司
	ServiceType string `json:"service_type,omitempty" xml:"service_type,omitempty"`
	// 邮费子项涉及的地区,多个地区用逗号连接数量串;可以用taobao.areas.get接口获取.或者参考:http://www.stats.gov.cn/tjbz/xzqhdm/t20080215_402462675.htm 例 (110000,310000,320000,330000).就代表邮费子项涉 及(北京,上海,江苏,浙江)四个地区.填写时要注意对照地区代码值,如果填入错误地区代码,将会出现错误信息.
	Destination string `json:"destination,omitempty" xml:"destination,omitempty"`
	// 首费标准:当valuation(记价方式)为0时输入1-9999范围内的整数
	StartStandard string `json:"start_standard,omitempty" xml:"start_standard,omitempty"`
	// 首费:输入0.01-999.99(最多包含两位小数) 不能为空也不能为0
	StartFee string `json:"start_fee,omitempty" xml:"start_fee,omitempty"`
	// 增费标准:当valuation(记价方式)为0时输入1-9999范围内的整数
	AddStandard string `json:"add_standard,omitempty" xml:"add_standard,omitempty"`
	// 增费:输入0.00-999.99(最多包含两位小数) 不能为空不输入运费时必须输入0
	AddFee string `json:"add_fee,omitempty" xml:"add_fee,omitempty"`
}

TopFee 结构体

type TopLogisticsMailDto

type TopLogisticsMailDto struct {
	// 物流节点列表
	TraceList []TopLogisticsNodeDto `json:"trace_list,omitempty" xml:"trace_list>top_logistics_node_dto,omitempty"`
	// 运单号
	OutSid string `json:"out_sid,omitempty" xml:"out_sid,omitempty"`
	// 物流公司
	CompanyName string `json:"company_name,omitempty" xml:"company_name,omitempty"`
	// 当前最新节点
	Status string `json:"status,omitempty" xml:"status,omitempty"`
	// 交易单号
	Tid int64 `json:"tid,omitempty" xml:"tid,omitempty"`
}

TopLogisticsMailDto 结构体

type TopLogisticsNodeDto

type TopLogisticsNodeDto struct {
	// 节点描述
	StatusDesc string `json:"status_desc,omitempty" xml:"status_desc,omitempty"`
	// 节点枚举
	Action string `json:"action,omitempty" xml:"action,omitempty"`
	// 当前节点发生时间
	StatusTime int64 `json:"status_time,omitempty" xml:"status_time,omitempty"`
}

TopLogisticsNodeDto 结构体

type Tpdto

type Tpdto struct {
	// 公司编码
	Code string `json:"code,omitempty" xml:"code,omitempty"`
	// 公司名称
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 是否商家绑定的默认安装公司
	IsDefault bool `json:"is_default,omitempty" xml:"is_default,omitempty"`
}

Tpdto 结构体

type TransitStepInfo

type TransitStepInfo struct {
	// 状态发生的时间
	StatusTime string `json:"status_time,omitempty" xml:"status_time,omitempty"`
	// 状态描述
	StatusDesc string `json:"status_desc,omitempty" xml:"status_desc,omitempty"`
	// 节点说明 ,指明当前节点揽收、派送,签收。
	Action string `json:"action,omitempty" xml:"action,omitempty"`
}

TransitStepInfo 结构体

type TransitStepResult added in v1.2.9

type TransitStepResult struct {
	// 列表
	TraceList []TransitStepInfo `json:"trace_list,omitempty" xml:"trace_list>transit_step_info,omitempty"`
	// 运单号
	OutSid string `json:"out_sid,omitempty" xml:"out_sid,omitempty"`
	// 物流公司名称
	CompanyName string `json:"company_name,omitempty" xml:"company_name,omitempty"`
	// 订单物流状态
	Status string `json:"status,omitempty" xml:"status,omitempty"`
	// 交易号
	Tid int64 `json:"tid,omitempty" xml:"tid,omitempty"`
}

TransitStepResult 结构体

type WriteOffGoodsDto

type WriteOffGoodsDto struct {
	// 商品Id
	ItemId string `json:"item_id,omitempty" xml:"item_id,omitempty"`
	// 价格
	Price string `json:"price,omitempty" xml:"price,omitempty"`
	// 名称
	GoodsName string `json:"goods_name,omitempty" xml:"goods_name,omitempty"`
	// 商品sku id
	SkuId string `json:"sku_id,omitempty" xml:"sku_id,omitempty"`
	// 商品图片地址
	GoodsPicId string `json:"goods_pic_id,omitempty" xml:"goods_pic_id,omitempty"`
	// 数量
	GoodsQuantity int64 `json:"goods_quantity,omitempty" xml:"goods_quantity,omitempty"`
}

WriteOffGoodsDto 结构体

type WriteOffOrderDto

type WriteOffOrderDto struct {
	// 交易单所包含的商品列表
	GoodsList []WriteOffGoodsDto `json:"goods_list,omitempty" xml:"goods_list>write_off_goods_dto,omitempty"`
	// 核销订单Id
	LpOrderId string `json:"lp_order_id,omitempty" xml:"lp_order_id,omitempty"`
	// 淘宝交易Id
	TradeId string `json:"trade_id,omitempty" xml:"trade_id,omitempty"`
}

WriteOffOrderDto 结构体

Source Files

Jump to

Keyboard shortcuts

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