tblogistics

package
v1.2.9 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 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.2.9

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

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

修改物流公司和运单号

func NewAlibabaAscpLogisticsConsignModifyRequest added in v1.2.9

func NewAlibabaAscpLogisticsConsignModifyRequest() *AlibabaAscpLogisticsConsignModifyAPIRequest

NewAlibabaAscpLogisticsConsignModifyRequest 初始化AlibabaAscpLogisticsConsignModifyAPIRequest对象

func (AlibabaAscpLogisticsConsignModifyAPIRequest) GetApiMethodName added in v1.2.9

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaAscpLogisticsConsignModifyAPIRequest) GetApiParams added in v1.2.9

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaAscpLogisticsConsignModifyAPIRequest) GetFeature added in v1.2.9

GetFeature Feature Getter

func (AlibabaAscpLogisticsConsignModifyAPIRequest) GetGoods added in v1.2.9

GetGoods Goods Getter

func (AlibabaAscpLogisticsConsignModifyAPIRequest) GetNewCompanyCode added in v1.2.9

GetNewCompanyCode NewCompanyCode Getter

func (AlibabaAscpLogisticsConsignModifyAPIRequest) GetNewOutSid added in v1.2.9

GetNewOutSid NewOutSid Getter

func (AlibabaAscpLogisticsConsignModifyAPIRequest) GetOldCompanyCode added in v1.2.9

GetOldCompanyCode OldCompanyCode Getter

func (AlibabaAscpLogisticsConsignModifyAPIRequest) GetOldOutSid added in v1.2.9

GetOldOutSid OldOutSid Getter

func (AlibabaAscpLogisticsConsignModifyAPIRequest) GetRawParams added in v1.2.9

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

func (AlibabaAscpLogisticsConsignModifyAPIRequest) GetTid added in v1.2.9

GetTid Tid Getter

func (*AlibabaAscpLogisticsConsignModifyAPIRequest) SetFeature added in v1.2.9

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

func (*AlibabaAscpLogisticsConsignModifyAPIRequest) SetGoods added in v1.2.9

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

func (*AlibabaAscpLogisticsConsignModifyAPIRequest) SetNewCompanyCode added in v1.2.9

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

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

func (*AlibabaAscpLogisticsConsignModifyAPIRequest) SetNewOutSid added in v1.2.9

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

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

func (*AlibabaAscpLogisticsConsignModifyAPIRequest) SetOldCompanyCode added in v1.2.9

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

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

func (*AlibabaAscpLogisticsConsignModifyAPIRequest) SetOldOutSid added in v1.2.9

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

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

func (*AlibabaAscpLogisticsConsignModifyAPIRequest) SetTid added in v1.2.9

SetTid is Tid Setter 订单id

type AlibabaAscpLogisticsConsignModifyAPIResponse added in v1.2.9

type AlibabaAscpLogisticsConsignModifyAPIResponse struct {
	model.CommonResponse
	AlibabaAscpLogisticsConsignModifyAPIResponseModel
}

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

修改物流公司和运单号

type AlibabaAscpLogisticsConsignModifyAPIResponseModel added in v1.2.9

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

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

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

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

func NewAlibabaAscpLogisticsConsignResendRequest

func NewAlibabaAscpLogisticsConsignResendRequest() *AlibabaAscpLogisticsConsignResendAPIRequest

NewAlibabaAscpLogisticsConsignResendRequest 初始化AlibabaAscpLogisticsConsignResendAPIRequest对象

func (AlibabaAscpLogisticsConsignResendAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaAscpLogisticsConsignResendAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaAscpLogisticsConsignResendAPIRequest) GetConsignPkgs

GetConsignPkgs ConsignPkgs Getter

func (AlibabaAscpLogisticsConsignResendAPIRequest) GetFeature added in v1.2.9

GetFeature Feature Getter

func (AlibabaAscpLogisticsConsignResendAPIRequest) GetRawParams

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

func (AlibabaAscpLogisticsConsignResendAPIRequest) GetSubTids

GetSubTids SubTids Getter

func (AlibabaAscpLogisticsConsignResendAPIRequest) GetTid

GetTid Tid Getter

func (*AlibabaAscpLogisticsConsignResendAPIRequest) SetConsignPkgs

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

func (*AlibabaAscpLogisticsConsignResendAPIRequest) SetFeature added in v1.2.9

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

func (*AlibabaAscpLogisticsConsignResendAPIRequest) SetSubTids

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

func (*AlibabaAscpLogisticsConsignResendAPIRequest) SetTid

SetTid is Tid Setter 订单id

type AlibabaAscpLogisticsConsignResendAPIResponse

type AlibabaAscpLogisticsConsignResendAPIResponse struct {
	model.CommonResponse
	AlibabaAscpLogisticsConsignResendAPIResponseModel
}

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

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

type AlibabaAscpLogisticsConsignResendAPIResponseModel

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

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

AlibabaAscpLogisticsConsignResendResultDto 结构体

type AlibabaAscpLogisticsInstantsonlineCalldeliveryAPIRequest added in v1.2.9

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

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

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

func NewAlibabaAscpLogisticsInstantsonlineCalldeliveryRequest added in v1.2.9

func NewAlibabaAscpLogisticsInstantsonlineCalldeliveryRequest() *AlibabaAscpLogisticsInstantsonlineCalldeliveryAPIRequest

NewAlibabaAscpLogisticsInstantsonlineCalldeliveryRequest 初始化AlibabaAscpLogisticsInstantsonlineCalldeliveryAPIRequest对象

func (AlibabaAscpLogisticsInstantsonlineCalldeliveryAPIRequest) GetApiMethodName added in v1.2.9

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaAscpLogisticsInstantsonlineCalldeliveryAPIRequest) GetApiParams added in v1.2.9

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaAscpLogisticsInstantsonlineCalldeliveryAPIRequest) GetBizType added in v1.2.9

GetBizType BizType Getter

func (AlibabaAscpLogisticsInstantsonlineCalldeliveryAPIRequest) GetDefaultGenPickupCode added in v1.2.9

GetDefaultGenPickupCode DefaultGenPickupCode Getter

func (AlibabaAscpLogisticsInstantsonlineCalldeliveryAPIRequest) GetDefaultTradeReceiver added in v1.2.9

GetDefaultTradeReceiver DefaultTradeReceiver Getter

func (AlibabaAscpLogisticsInstantsonlineCalldeliveryAPIRequest) GetGenPickupCodeConfig added in v1.2.9

GetGenPickupCodeConfig GenPickupCodeConfig Getter

func (AlibabaAscpLogisticsInstantsonlineCalldeliveryAPIRequest) GetItemList added in v1.2.9

GetItemList ItemList Getter

func (AlibabaAscpLogisticsInstantsonlineCalldeliveryAPIRequest) GetOutOrderId added in v1.2.9

GetOutOrderId OutOrderId Getter

func (AlibabaAscpLogisticsInstantsonlineCalldeliveryAPIRequest) GetPickupCode added in v1.2.9

GetPickupCode PickupCode Getter

func (AlibabaAscpLogisticsInstantsonlineCalldeliveryAPIRequest) GetRawParams added in v1.2.9

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

func (AlibabaAscpLogisticsInstantsonlineCalldeliveryAPIRequest) GetReceiver added in v1.2.9

GetReceiver Receiver Getter

func (AlibabaAscpLogisticsInstantsonlineCalldeliveryAPIRequest) GetSelectedResource added in v1.2.9

GetSelectedResource SelectedResource Getter

func (AlibabaAscpLogisticsInstantsonlineCalldeliveryAPIRequest) GetSender added in v1.2.9

GetSender Sender Getter

func (AlibabaAscpLogisticsInstantsonlineCalldeliveryAPIRequest) GetTid added in v1.2.9

GetTid Tid Getter

func (AlibabaAscpLogisticsInstantsonlineCalldeliveryAPIRequest) GetTotalItemActualValue added in v1.2.9

GetTotalItemActualValue TotalItemActualValue Getter

func (AlibabaAscpLogisticsInstantsonlineCalldeliveryAPIRequest) GetTotalItemValue added in v1.2.9

GetTotalItemValue TotalItemValue Getter

func (AlibabaAscpLogisticsInstantsonlineCalldeliveryAPIRequest) GetTotalWeight added in v1.2.9

GetTotalWeight TotalWeight Getter

func (*AlibabaAscpLogisticsInstantsonlineCalldeliveryAPIRequest) SetBizType added in v1.2.9

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

func (*AlibabaAscpLogisticsInstantsonlineCalldeliveryAPIRequest) SetDefaultGenPickupCode added in v1.2.9

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

SetDefaultGenPickupCode is DefaultGenPickupCode Setter 默认生成取件码

func (*AlibabaAscpLogisticsInstantsonlineCalldeliveryAPIRequest) SetDefaultTradeReceiver added in v1.2.9

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

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

func (*AlibabaAscpLogisticsInstantsonlineCalldeliveryAPIRequest) SetGenPickupCodeConfig added in v1.2.9

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

SetGenPickupCodeConfig is GenPickupCodeConfig Setter 生成取件码配置

func (*AlibabaAscpLogisticsInstantsonlineCalldeliveryAPIRequest) SetItemList added in v1.2.9

SetItemList is ItemList Setter 商品清单

func (*AlibabaAscpLogisticsInstantsonlineCalldeliveryAPIRequest) SetOutOrderId added in v1.2.9

SetOutOrderId is OutOrderId Setter ERP单号

func (*AlibabaAscpLogisticsInstantsonlineCalldeliveryAPIRequest) SetPickupCode added in v1.2.9

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

func (*AlibabaAscpLogisticsInstantsonlineCalldeliveryAPIRequest) SetReceiver added in v1.2.9

SetReceiver is Receiver Setter 收货联系人

func (*AlibabaAscpLogisticsInstantsonlineCalldeliveryAPIRequest) SetSelectedResource added in v1.2.9

SetSelectedResource is SelectedResource Setter 选择的物流资源

func (*AlibabaAscpLogisticsInstantsonlineCalldeliveryAPIRequest) SetSender added in v1.2.9

SetSender is Sender Setter 发货联系人

func (*AlibabaAscpLogisticsInstantsonlineCalldeliveryAPIRequest) SetTid added in v1.2.9

SetTid is Tid Setter 淘宝订主单号

func (*AlibabaAscpLogisticsInstantsonlineCalldeliveryAPIRequest) SetTotalItemActualValue added in v1.2.9

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

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

func (*AlibabaAscpLogisticsInstantsonlineCalldeliveryAPIRequest) SetTotalItemValue added in v1.2.9

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

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

func (*AlibabaAscpLogisticsInstantsonlineCalldeliveryAPIRequest) SetTotalWeight added in v1.2.9

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

type AlibabaAscpLogisticsInstantsonlineCalldeliveryAPIResponse added in v1.2.9

type AlibabaAscpLogisticsInstantsonlineCalldeliveryAPIResponse struct {
	model.CommonResponse
	AlibabaAscpLogisticsInstantsonlineCalldeliveryAPIResponseModel
}

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

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

type AlibabaAscpLogisticsInstantsonlineCalldeliveryAPIResponseModel added in v1.2.9

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.2.9

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.2.9

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

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

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

func NewAlibabaAscpLogisticsInstantsonlineCanceldeliveryRequest added in v1.2.9

func NewAlibabaAscpLogisticsInstantsonlineCanceldeliveryRequest() *AlibabaAscpLogisticsInstantsonlineCanceldeliveryAPIRequest

NewAlibabaAscpLogisticsInstantsonlineCanceldeliveryRequest 初始化AlibabaAscpLogisticsInstantsonlineCanceldeliveryAPIRequest对象

func (AlibabaAscpLogisticsInstantsonlineCanceldeliveryAPIRequest) GetApiMethodName added in v1.2.9

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaAscpLogisticsInstantsonlineCanceldeliveryAPIRequest) GetApiParams added in v1.2.9

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaAscpLogisticsInstantsonlineCanceldeliveryAPIRequest) GetBizType added in v1.2.9

GetBizType BizType Getter

func (AlibabaAscpLogisticsInstantsonlineCanceldeliveryAPIRequest) GetOutOrderId added in v1.2.9

GetOutOrderId OutOrderId Getter

func (AlibabaAscpLogisticsInstantsonlineCanceldeliveryAPIRequest) GetRawParams added in v1.2.9

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

func (*AlibabaAscpLogisticsInstantsonlineCanceldeliveryAPIRequest) SetBizType added in v1.2.9

SetBizType is BizType Setter 类型

func (*AlibabaAscpLogisticsInstantsonlineCanceldeliveryAPIRequest) SetOutOrderId added in v1.2.9

SetOutOrderId is OutOrderId Setter ERP单号

type AlibabaAscpLogisticsInstantsonlineCanceldeliveryAPIResponse added in v1.2.9

type AlibabaAscpLogisticsInstantsonlineCanceldeliveryAPIResponse struct {
	model.CommonResponse
	AlibabaAscpLogisticsInstantsonlineCanceldeliveryAPIResponseModel
}

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

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

type AlibabaAscpLogisticsInstantsonlineCanceldeliveryAPIResponseModel added in v1.2.9

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.2.9

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.2.9

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

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

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

func NewAlibabaAscpLogisticsInstantsonlineCheckdeliveryauthRequest added in v1.2.9

func NewAlibabaAscpLogisticsInstantsonlineCheckdeliveryauthRequest() *AlibabaAscpLogisticsInstantsonlineCheckdeliveryauthAPIRequest

NewAlibabaAscpLogisticsInstantsonlineCheckdeliveryauthRequest 初始化AlibabaAscpLogisticsInstantsonlineCheckdeliveryauthAPIRequest对象

func (AlibabaAscpLogisticsInstantsonlineCheckdeliveryauthAPIRequest) GetApiMethodName added in v1.2.9

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaAscpLogisticsInstantsonlineCheckdeliveryauthAPIRequest) GetApiParams added in v1.2.9

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaAscpLogisticsInstantsonlineCheckdeliveryauthAPIRequest) GetBizType added in v1.2.9

GetBizType BizType Getter

func (AlibabaAscpLogisticsInstantsonlineCheckdeliveryauthAPIRequest) GetRawParams added in v1.2.9

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

func (*AlibabaAscpLogisticsInstantsonlineCheckdeliveryauthAPIRequest) SetBizType added in v1.2.9

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

type AlibabaAscpLogisticsInstantsonlineCheckdeliveryauthAPIResponse added in v1.2.9

type AlibabaAscpLogisticsInstantsonlineCheckdeliveryauthAPIResponse struct {
	model.CommonResponse
	AlibabaAscpLogisticsInstantsonlineCheckdeliveryauthAPIResponseModel
}

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

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

type AlibabaAscpLogisticsInstantsonlineCheckdeliveryauthAPIResponseModel added in v1.2.9

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.2.9

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.2.9

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

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

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

func NewAlibabaAscpLogisticsInstantsonlineDeliveryorderGetRequest added in v1.2.9

func NewAlibabaAscpLogisticsInstantsonlineDeliveryorderGetRequest() *AlibabaAscpLogisticsInstantsonlineDeliveryorderGetAPIRequest

NewAlibabaAscpLogisticsInstantsonlineDeliveryorderGetRequest 初始化AlibabaAscpLogisticsInstantsonlineDeliveryorderGetAPIRequest对象

func (AlibabaAscpLogisticsInstantsonlineDeliveryorderGetAPIRequest) GetApiMethodName added in v1.2.9

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaAscpLogisticsInstantsonlineDeliveryorderGetAPIRequest) GetApiParams added in v1.2.9

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaAscpLogisticsInstantsonlineDeliveryorderGetAPIRequest) GetOutOrderId added in v1.2.9

GetOutOrderId OutOrderId Getter

func (AlibabaAscpLogisticsInstantsonlineDeliveryorderGetAPIRequest) GetRawParams added in v1.2.9

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

func (*AlibabaAscpLogisticsInstantsonlineDeliveryorderGetAPIRequest) SetOutOrderId added in v1.2.9

SetOutOrderId is OutOrderId Setter ERP单号

type AlibabaAscpLogisticsInstantsonlineDeliveryorderGetAPIResponse added in v1.2.9

type AlibabaAscpLogisticsInstantsonlineDeliveryorderGetAPIResponse struct {
	model.CommonResponse
	AlibabaAscpLogisticsInstantsonlineDeliveryorderGetAPIResponseModel
}

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

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

type AlibabaAscpLogisticsInstantsonlineDeliveryorderGetAPIResponseModel added in v1.2.9

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.2.9

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.2.9

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

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

同城配送在线下单预询价

func NewAlibabaAscpLogisticsInstantsonlinePriorcalldeliveryRequest added in v1.2.9

func NewAlibabaAscpLogisticsInstantsonlinePriorcalldeliveryRequest() *AlibabaAscpLogisticsInstantsonlinePriorcalldeliveryAPIRequest

NewAlibabaAscpLogisticsInstantsonlinePriorcalldeliveryRequest 初始化AlibabaAscpLogisticsInstantsonlinePriorcalldeliveryAPIRequest对象

func (AlibabaAscpLogisticsInstantsonlinePriorcalldeliveryAPIRequest) GetApiMethodName added in v1.2.9

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaAscpLogisticsInstantsonlinePriorcalldeliveryAPIRequest) GetApiParams added in v1.2.9

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaAscpLogisticsInstantsonlinePriorcalldeliveryAPIRequest) GetBizType added in v1.2.9

GetBizType BizType Getter

func (AlibabaAscpLogisticsInstantsonlinePriorcalldeliveryAPIRequest) GetDefaultTradeReceiver added in v1.2.9

GetDefaultTradeReceiver DefaultTradeReceiver Getter

func (AlibabaAscpLogisticsInstantsonlinePriorcalldeliveryAPIRequest) GetItemList added in v1.2.9

GetItemList ItemList Getter

func (AlibabaAscpLogisticsInstantsonlinePriorcalldeliveryAPIRequest) GetOutOrderId added in v1.2.9

GetOutOrderId OutOrderId Getter

func (AlibabaAscpLogisticsInstantsonlinePriorcalldeliveryAPIRequest) GetRawParams added in v1.2.9

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

func (AlibabaAscpLogisticsInstantsonlinePriorcalldeliveryAPIRequest) GetReceiver added in v1.2.9

GetReceiver Receiver Getter

func (AlibabaAscpLogisticsInstantsonlinePriorcalldeliveryAPIRequest) GetSender added in v1.2.9

GetSender Sender Getter

func (AlibabaAscpLogisticsInstantsonlinePriorcalldeliveryAPIRequest) GetTid added in v1.2.9

GetTid Tid Getter

func (AlibabaAscpLogisticsInstantsonlinePriorcalldeliveryAPIRequest) GetTotalItemActualValue added in v1.2.9

GetTotalItemActualValue TotalItemActualValue Getter

func (AlibabaAscpLogisticsInstantsonlinePriorcalldeliveryAPIRequest) GetTotalItemValue added in v1.2.9

GetTotalItemValue TotalItemValue Getter

func (AlibabaAscpLogisticsInstantsonlinePriorcalldeliveryAPIRequest) GetTotalWeight added in v1.2.9

GetTotalWeight TotalWeight Getter

func (*AlibabaAscpLogisticsInstantsonlinePriorcalldeliveryAPIRequest) SetBizType added in v1.2.9

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

func (*AlibabaAscpLogisticsInstantsonlinePriorcalldeliveryAPIRequest) SetDefaultTradeReceiver added in v1.2.9

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

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

func (*AlibabaAscpLogisticsInstantsonlinePriorcalldeliveryAPIRequest) SetItemList added in v1.2.9

SetItemList is ItemList Setter 商品清单

func (*AlibabaAscpLogisticsInstantsonlinePriorcalldeliveryAPIRequest) SetOutOrderId added in v1.2.9

SetOutOrderId is OutOrderId Setter ERP单号

func (*AlibabaAscpLogisticsInstantsonlinePriorcalldeliveryAPIRequest) SetReceiver added in v1.2.9

SetReceiver is Receiver Setter 收货联系人

func (*AlibabaAscpLogisticsInstantsonlinePriorcalldeliveryAPIRequest) SetSender added in v1.2.9

SetSender is Sender Setter 发货联系人

func (*AlibabaAscpLogisticsInstantsonlinePriorcalldeliveryAPIRequest) SetTid added in v1.2.9

SetTid is Tid Setter 淘宝订主单号

func (*AlibabaAscpLogisticsInstantsonlinePriorcalldeliveryAPIRequest) SetTotalItemActualValue added in v1.2.9

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

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

func (*AlibabaAscpLogisticsInstantsonlinePriorcalldeliveryAPIRequest) SetTotalItemValue added in v1.2.9

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

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

func (*AlibabaAscpLogisticsInstantsonlinePriorcalldeliveryAPIRequest) SetTotalWeight added in v1.2.9

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

type AlibabaAscpLogisticsInstantsonlinePriorcalldeliveryAPIResponse added in v1.2.9

type AlibabaAscpLogisticsInstantsonlinePriorcalldeliveryAPIResponse struct {
	model.CommonResponse
	AlibabaAscpLogisticsInstantsonlinePriorcalldeliveryAPIResponseModel
}

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

同城配送在线下单预询价

type AlibabaAscpLogisticsInstantsonlinePriorcalldeliveryAPIResponseModel added in v1.2.9

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.2.9

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

AlibabaAscpLogisticsInstantsonlinePriorcalldeliveryTopResult 结构体

type AlibabaAscpLogisticsOfflineSendAPIRequest

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

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

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

func NewAlibabaAscpLogisticsOfflineSendRequest

func NewAlibabaAscpLogisticsOfflineSendRequest() *AlibabaAscpLogisticsOfflineSendAPIRequest

NewAlibabaAscpLogisticsOfflineSendRequest 初始化AlibabaAscpLogisticsOfflineSendAPIRequest对象

func (AlibabaAscpLogisticsOfflineSendAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaAscpLogisticsOfflineSendAPIRequest) GetApiParams

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaAscpLogisticsOfflineSendAPIRequest) GetCancelId

GetCancelId CancelId Getter

func (AlibabaAscpLogisticsOfflineSendAPIRequest) GetConsignPkgs

GetConsignPkgs ConsignPkgs Getter

func (AlibabaAscpLogisticsOfflineSendAPIRequest) GetConsignStatus added in v1.2.9

GetConsignStatus ConsignStatus Getter

func (AlibabaAscpLogisticsOfflineSendAPIRequest) GetConsignType added in v1.2.9

GetConsignType ConsignType Getter

func (AlibabaAscpLogisticsOfflineSendAPIRequest) GetFeature

GetFeature Feature Getter

func (AlibabaAscpLogisticsOfflineSendAPIRequest) GetRawParams

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

func (AlibabaAscpLogisticsOfflineSendAPIRequest) GetSenderId

GetSenderId SenderId Getter

func (AlibabaAscpLogisticsOfflineSendAPIRequest) GetSubTid

GetSubTid SubTid Getter

func (AlibabaAscpLogisticsOfflineSendAPIRequest) GetTid

GetTid Tid Getter

func (*AlibabaAscpLogisticsOfflineSendAPIRequest) SetCancelId

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

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

func (*AlibabaAscpLogisticsOfflineSendAPIRequest) SetConsignPkgs

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

SetConsignPkgs is ConsignPkgs Setter 包裹信息

func (*AlibabaAscpLogisticsOfflineSendAPIRequest) SetConsignStatus added in v1.2.9

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

SetConsignStatus is ConsignStatus Setter 子订单发货状态

func (*AlibabaAscpLogisticsOfflineSendAPIRequest) SetConsignType added in v1.2.9

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

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

func (*AlibabaAscpLogisticsOfflineSendAPIRequest) SetFeature

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

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

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

func (*AlibabaAscpLogisticsOfflineSendAPIRequest) SetSubTid

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

func (*AlibabaAscpLogisticsOfflineSendAPIRequest) SetTid

SetTid is Tid Setter 淘宝交易ID

type AlibabaAscpLogisticsOfflineSendAPIResponse

type AlibabaAscpLogisticsOfflineSendAPIResponse struct {
	model.CommonResponse
	AlibabaAscpLogisticsOfflineSendAPIResponseModel
}

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

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

type AlibabaAscpLogisticsOfflineSendAPIResponseModel

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

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

AlibabaAscpLogisticsOfflineSendResultDto 结构体

type AlibabaAscpLogisticsSellerOrdersGetAPIRequest

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

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

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

func NewAlibabaAscpLogisticsSellerOrdersGetRequest

func NewAlibabaAscpLogisticsSellerOrdersGetRequest() *AlibabaAscpLogisticsSellerOrdersGetAPIRequest

NewAlibabaAscpLogisticsSellerOrdersGetRequest 初始化AlibabaAscpLogisticsSellerOrdersGetAPIRequest对象

func (AlibabaAscpLogisticsSellerOrdersGetAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaAscpLogisticsSellerOrdersGetAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaAscpLogisticsSellerOrdersGetAPIRequest) GetPageIndex

GetPageIndex PageIndex Getter

func (AlibabaAscpLogisticsSellerOrdersGetAPIRequest) GetPageSize

GetPageSize PageSize Getter

func (AlibabaAscpLogisticsSellerOrdersGetAPIRequest) GetRawParams

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

func (AlibabaAscpLogisticsSellerOrdersGetAPIRequest) GetReceiveCode

GetReceiveCode ReceiveCode Getter

func (AlibabaAscpLogisticsSellerOrdersGetAPIRequest) GetTid

GetTid Tid Getter

func (AlibabaAscpLogisticsSellerOrdersGetAPIRequest) GetWriteOffDate

GetWriteOffDate WriteOffDate Getter

func (AlibabaAscpLogisticsSellerOrdersGetAPIRequest) GetWriteOffStatus

GetWriteOffStatus WriteOffStatus Getter

func (*AlibabaAscpLogisticsSellerOrdersGetAPIRequest) SetPageIndex

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

SetPageIndex is PageIndex Setter 分页索引

func (*AlibabaAscpLogisticsSellerOrdersGetAPIRequest) SetPageSize

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

SetPageSize is PageSize Setter 分页大小

func (*AlibabaAscpLogisticsSellerOrdersGetAPIRequest) SetReceiveCode

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

SetReceiveCode is ReceiveCode Setter 收货码

func (*AlibabaAscpLogisticsSellerOrdersGetAPIRequest) SetTid

SetTid is Tid Setter 淘系交易id

func (*AlibabaAscpLogisticsSellerOrdersGetAPIRequest) SetWriteOffDate

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

SetWriteOffDate is WriteOffDate Setter 核销日期

func (*AlibabaAscpLogisticsSellerOrdersGetAPIRequest) SetWriteOffStatus

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

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

type AlibabaAscpLogisticsSellerOrdersGetAPIResponse

type AlibabaAscpLogisticsSellerOrdersGetAPIResponse struct {
	model.CommonResponse
	AlibabaAscpLogisticsSellerOrdersGetAPIResponseModel
}

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

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

type AlibabaAscpLogisticsSellerOrdersGetAPIResponseModel

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

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

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

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

func NewAlibabaAscpLogisticsSellerSendRequest

func NewAlibabaAscpLogisticsSellerSendRequest() *AlibabaAscpLogisticsSellerSendAPIRequest

NewAlibabaAscpLogisticsSellerSendRequest 初始化AlibabaAscpLogisticsSellerSendAPIRequest对象

func (AlibabaAscpLogisticsSellerSendAPIRequest) GetApiMethodName

func (r AlibabaAscpLogisticsSellerSendAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaAscpLogisticsSellerSendAPIRequest) GetApiParams

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaAscpLogisticsSellerSendAPIRequest) GetCancelId

GetCancelId CancelId Getter

func (AlibabaAscpLogisticsSellerSendAPIRequest) GetDeliveryMobile

func (r AlibabaAscpLogisticsSellerSendAPIRequest) GetDeliveryMobile() string

GetDeliveryMobile DeliveryMobile Getter

func (AlibabaAscpLogisticsSellerSendAPIRequest) GetDeliveryName

GetDeliveryName DeliveryName Getter

func (AlibabaAscpLogisticsSellerSendAPIRequest) GetFeature

GetFeature Feature Getter

func (AlibabaAscpLogisticsSellerSendAPIRequest) GetMode added in v1.2.9

GetMode Mode Getter

func (AlibabaAscpLogisticsSellerSendAPIRequest) GetRawParams

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

func (AlibabaAscpLogisticsSellerSendAPIRequest) GetSenderId

GetSenderId SenderId Getter

func (AlibabaAscpLogisticsSellerSendAPIRequest) GetSubTid

GetSubTid SubTid Getter

func (AlibabaAscpLogisticsSellerSendAPIRequest) GetTid

GetTid Tid Getter

func (*AlibabaAscpLogisticsSellerSendAPIRequest) SetCancelId

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

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

func (*AlibabaAscpLogisticsSellerSendAPIRequest) SetDeliveryMobile

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

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

func (*AlibabaAscpLogisticsSellerSendAPIRequest) SetDeliveryName

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

SetDeliveryName is DeliveryName Setter 派送员姓名

func (*AlibabaAscpLogisticsSellerSendAPIRequest) SetFeature

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.2.9

SetMode is Mode Setter

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

func (*AlibabaAscpLogisticsSellerSendAPIRequest) SetSenderId

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

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

func (*AlibabaAscpLogisticsSellerSendAPIRequest) SetSubTid

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

func (*AlibabaAscpLogisticsSellerSendAPIRequest) SetTid

SetTid is Tid Setter 淘宝交易ID

type AlibabaAscpLogisticsSellerSendAPIResponse

type AlibabaAscpLogisticsSellerSendAPIResponse struct {
	model.CommonResponse
	AlibabaAscpLogisticsSellerSendAPIResponseModel
}

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

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

type AlibabaAscpLogisticsSellerSendAPIResponseModel

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.2.9

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

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

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

func NewAlibabaAscpLogisticsSellerWritelogisticsnodeRequest added in v1.2.9

func NewAlibabaAscpLogisticsSellerWritelogisticsnodeRequest() *AlibabaAscpLogisticsSellerWritelogisticsnodeAPIRequest

NewAlibabaAscpLogisticsSellerWritelogisticsnodeRequest 初始化AlibabaAscpLogisticsSellerWritelogisticsnodeAPIRequest对象

func (AlibabaAscpLogisticsSellerWritelogisticsnodeAPIRequest) GetApiMethodName added in v1.2.9

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaAscpLogisticsSellerWritelogisticsnodeAPIRequest) GetApiParams added in v1.2.9

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaAscpLogisticsSellerWritelogisticsnodeAPIRequest) GetLpOrderId added in v1.2.9

GetLpOrderId LpOrderId Getter

func (AlibabaAscpLogisticsSellerWritelogisticsnodeAPIRequest) GetNodes added in v1.2.9

GetNodes Nodes Getter

func (AlibabaAscpLogisticsSellerWritelogisticsnodeAPIRequest) GetRawParams added in v1.2.9

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

func (*AlibabaAscpLogisticsSellerWritelogisticsnodeAPIRequest) SetLpOrderId added in v1.2.9

SetLpOrderId is LpOrderId Setter 物流发货单号

func (*AlibabaAscpLogisticsSellerWritelogisticsnodeAPIRequest) SetNodes added in v1.2.9

SetNodes is Nodes Setter 物流节点

type AlibabaAscpLogisticsSellerWritelogisticsnodeAPIResponse added in v1.2.9

type AlibabaAscpLogisticsSellerWritelogisticsnodeAPIResponse struct {
	model.CommonResponse
	AlibabaAscpLogisticsSellerWritelogisticsnodeAPIResponseModel
}

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

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

type AlibabaAscpLogisticsSellerWritelogisticsnodeAPIResponseModel added in v1.2.9

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

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

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

商家配送核销

func NewAlibabaAscpLogisticsSellerWriteoffRequest

func NewAlibabaAscpLogisticsSellerWriteoffRequest() *AlibabaAscpLogisticsSellerWriteoffAPIRequest

NewAlibabaAscpLogisticsSellerWriteoffRequest 初始化AlibabaAscpLogisticsSellerWriteoffAPIRequest对象

func (AlibabaAscpLogisticsSellerWriteoffAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaAscpLogisticsSellerWriteoffAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaAscpLogisticsSellerWriteoffAPIRequest) GetLpOrderId

GetLpOrderId LpOrderId Getter

func (AlibabaAscpLogisticsSellerWriteoffAPIRequest) GetRawParams

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

func (AlibabaAscpLogisticsSellerWriteoffAPIRequest) GetReceiveCode

GetReceiveCode ReceiveCode Getter

func (*AlibabaAscpLogisticsSellerWriteoffAPIRequest) SetLpOrderId

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

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

func (*AlibabaAscpLogisticsSellerWriteoffAPIRequest) SetReceiveCode

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

SetReceiveCode is ReceiveCode Setter 核销码

type AlibabaAscpLogisticsSellerWriteoffAPIResponse

type AlibabaAscpLogisticsSellerWriteoffAPIResponse struct {
	model.CommonResponse
	AlibabaAscpLogisticsSellerWriteoffAPIResponseModel
}

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

商家配送核销

type AlibabaAscpLogisticsSellerWriteoffAPIResponseModel

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 added in v1.2.9

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>tp_dto,omitempty"`
	// 安装公司列表
	InsTps []TPDto `json:"ins_tps,omitempty" xml:"ins_tps>tp_dto,omitempty"`
	// 物流公司列表
	LgCps []TPDto `json:"lg_cps,omitempty" xml:"lg_cps>tp_dto,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 TPDto added in v1.2.9

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 TaobaoAreasGetAPIRequest

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

func NewTaobaoAreasGetRequest() *TaobaoAreasGetAPIRequest

NewTaobaoAreasGetRequest 初始化TaobaoAreasGetAPIRequest对象

func (TaobaoAreasGetAPIRequest) GetApiMethodName

func (r TaobaoAreasGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoAreasGetAPIRequest) GetApiParams

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoAreasGetAPIRequest) GetFields

func (r TaobaoAreasGetAPIRequest) GetFields() string

GetFields Fields Getter

func (TaobaoAreasGetAPIRequest) GetRawParams

func (r TaobaoAreasGetAPIRequest) GetRawParams() model.Params

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

func (*TaobaoAreasGetAPIRequest) SetFields

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

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

type TaobaoAreasGetAPIResponse

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

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

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

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

增加运费模板的外部接口

func NewTaobaoDeliveryTemplateAddRequest

func NewTaobaoDeliveryTemplateAddRequest() *TaobaoDeliveryTemplateAddAPIRequest

NewTaobaoDeliveryTemplateAddRequest 初始化TaobaoDeliveryTemplateAddAPIRequest对象

func (TaobaoDeliveryTemplateAddAPIRequest) GetApiMethodName

func (r TaobaoDeliveryTemplateAddAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoDeliveryTemplateAddAPIRequest) GetApiParams

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoDeliveryTemplateAddAPIRequest) GetAssumer

GetAssumer Assumer Getter

func (TaobaoDeliveryTemplateAddAPIRequest) GetConsignAreaId

func (r TaobaoDeliveryTemplateAddAPIRequest) GetConsignAreaId() int64

GetConsignAreaId ConsignAreaId Getter

func (TaobaoDeliveryTemplateAddAPIRequest) GetName

GetName Name Getter

func (TaobaoDeliveryTemplateAddAPIRequest) GetRawParams

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

func (TaobaoDeliveryTemplateAddAPIRequest) GetTemplateAddFees

func (r TaobaoDeliveryTemplateAddAPIRequest) GetTemplateAddFees() string

GetTemplateAddFees TemplateAddFees Getter

func (TaobaoDeliveryTemplateAddAPIRequest) GetTemplateAddStandards

func (r TaobaoDeliveryTemplateAddAPIRequest) GetTemplateAddStandards() string

GetTemplateAddStandards TemplateAddStandards Getter

func (TaobaoDeliveryTemplateAddAPIRequest) GetTemplateDests

func (r TaobaoDeliveryTemplateAddAPIRequest) GetTemplateDests() string

GetTemplateDests TemplateDests Getter

func (TaobaoDeliveryTemplateAddAPIRequest) GetTemplateStartFees

func (r TaobaoDeliveryTemplateAddAPIRequest) GetTemplateStartFees() string

GetTemplateStartFees TemplateStartFees Getter

func (TaobaoDeliveryTemplateAddAPIRequest) GetTemplateStartStandards

func (r TaobaoDeliveryTemplateAddAPIRequest) GetTemplateStartStandards() string

GetTemplateStartStandards TemplateStartStandards Getter

func (TaobaoDeliveryTemplateAddAPIRequest) GetTemplateTypes

func (r TaobaoDeliveryTemplateAddAPIRequest) GetTemplateTypes() string

GetTemplateTypes TemplateTypes Getter

func (TaobaoDeliveryTemplateAddAPIRequest) GetValuation

func (r TaobaoDeliveryTemplateAddAPIRequest) GetValuation() int64

GetValuation Valuation Getter

func (*TaobaoDeliveryTemplateAddAPIRequest) SetAssumer

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

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

func (*TaobaoDeliveryTemplateAddAPIRequest) SetConsignAreaId

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

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

func (*TaobaoDeliveryTemplateAddAPIRequest) SetTemplateAddFees

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

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

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

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

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

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

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

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

type TaobaoDeliveryTemplateAddAPIResponse

type TaobaoDeliveryTemplateAddAPIResponse struct {
	model.CommonResponse
	TaobaoDeliveryTemplateAddAPIResponseModel
}

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

增加运费模板的外部接口

type TaobaoDeliveryTemplateAddAPIResponseModel

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

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

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

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

func NewTaobaoDeliveryTemplateDeleteRequest

func NewTaobaoDeliveryTemplateDeleteRequest() *TaobaoDeliveryTemplateDeleteAPIRequest

NewTaobaoDeliveryTemplateDeleteRequest 初始化TaobaoDeliveryTemplateDeleteAPIRequest对象

func (TaobaoDeliveryTemplateDeleteAPIRequest) GetApiMethodName

func (r TaobaoDeliveryTemplateDeleteAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoDeliveryTemplateDeleteAPIRequest) GetApiParams

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoDeliveryTemplateDeleteAPIRequest) GetRawParams

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

func (TaobaoDeliveryTemplateDeleteAPIRequest) GetTemplateId

GetTemplateId TemplateId Getter

func (*TaobaoDeliveryTemplateDeleteAPIRequest) SetTemplateId

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

SetTemplateId is TemplateId Setter 运费模板ID

type TaobaoDeliveryTemplateDeleteAPIResponse

type TaobaoDeliveryTemplateDeleteAPIResponse struct {
	model.CommonResponse
	TaobaoDeliveryTemplateDeleteAPIResponseModel
}

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

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

type TaobaoDeliveryTemplateDeleteAPIResponseModel

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

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

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

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

func NewTaobaoDeliveryTemplateGetRequest

func NewTaobaoDeliveryTemplateGetRequest() *TaobaoDeliveryTemplateGetAPIRequest

NewTaobaoDeliveryTemplateGetRequest 初始化TaobaoDeliveryTemplateGetAPIRequest对象

func (TaobaoDeliveryTemplateGetAPIRequest) GetApiMethodName

func (r TaobaoDeliveryTemplateGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoDeliveryTemplateGetAPIRequest) GetApiParams

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoDeliveryTemplateGetAPIRequest) GetFields

GetFields Fields Getter

func (TaobaoDeliveryTemplateGetAPIRequest) GetRawParams

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

func (TaobaoDeliveryTemplateGetAPIRequest) GetTemplateIds

func (r TaobaoDeliveryTemplateGetAPIRequest) GetTemplateIds() []string

GetTemplateIds TemplateIds Getter

func (TaobaoDeliveryTemplateGetAPIRequest) GetUserNick

GetUserNick UserNick Getter

func (*TaobaoDeliveryTemplateGetAPIRequest) SetFields

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

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

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

func (*TaobaoDeliveryTemplateGetAPIRequest) SetUserNick

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

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

type TaobaoDeliveryTemplateGetAPIResponse

type TaobaoDeliveryTemplateGetAPIResponse struct {
	model.CommonResponse
	TaobaoDeliveryTemplateGetAPIResponseModel
}

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

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

type TaobaoDeliveryTemplateGetAPIResponseModel

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 TaobaoDeliveryTemplateUpdateAPIRequest

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

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

修改运费模板

func NewTaobaoDeliveryTemplateUpdateRequest

func NewTaobaoDeliveryTemplateUpdateRequest() *TaobaoDeliveryTemplateUpdateAPIRequest

NewTaobaoDeliveryTemplateUpdateRequest 初始化TaobaoDeliveryTemplateUpdateAPIRequest对象

func (TaobaoDeliveryTemplateUpdateAPIRequest) GetApiMethodName

func (r TaobaoDeliveryTemplateUpdateAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoDeliveryTemplateUpdateAPIRequest) GetApiParams

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoDeliveryTemplateUpdateAPIRequest) GetAssumer

GetAssumer Assumer Getter

func (TaobaoDeliveryTemplateUpdateAPIRequest) GetName

GetName Name Getter

func (TaobaoDeliveryTemplateUpdateAPIRequest) GetRawParams

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

func (TaobaoDeliveryTemplateUpdateAPIRequest) GetTemplateAddFees

func (r TaobaoDeliveryTemplateUpdateAPIRequest) GetTemplateAddFees() string

GetTemplateAddFees TemplateAddFees Getter

func (TaobaoDeliveryTemplateUpdateAPIRequest) GetTemplateAddStandards

func (r TaobaoDeliveryTemplateUpdateAPIRequest) GetTemplateAddStandards() string

GetTemplateAddStandards TemplateAddStandards Getter

func (TaobaoDeliveryTemplateUpdateAPIRequest) GetTemplateDests

func (r TaobaoDeliveryTemplateUpdateAPIRequest) GetTemplateDests() string

GetTemplateDests TemplateDests Getter

func (TaobaoDeliveryTemplateUpdateAPIRequest) GetTemplateId

GetTemplateId TemplateId Getter

func (TaobaoDeliveryTemplateUpdateAPIRequest) GetTemplateStartFees

func (r TaobaoDeliveryTemplateUpdateAPIRequest) GetTemplateStartFees() string

GetTemplateStartFees TemplateStartFees Getter

func (TaobaoDeliveryTemplateUpdateAPIRequest) GetTemplateStartStandards

func (r TaobaoDeliveryTemplateUpdateAPIRequest) GetTemplateStartStandards() string

GetTemplateStartStandards TemplateStartStandards Getter

func (TaobaoDeliveryTemplateUpdateAPIRequest) GetTemplateTypes

func (r TaobaoDeliveryTemplateUpdateAPIRequest) GetTemplateTypes() string

GetTemplateTypes TemplateTypes Getter

func (*TaobaoDeliveryTemplateUpdateAPIRequest) SetAssumer

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

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

func (*TaobaoDeliveryTemplateUpdateAPIRequest) SetName

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

func (*TaobaoDeliveryTemplateUpdateAPIRequest) SetTemplateAddFees

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

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

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

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

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

func (*TaobaoDeliveryTemplateUpdateAPIRequest) SetTemplateStartFees

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

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

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

type TaobaoDeliveryTemplateUpdateAPIResponse struct {
	model.CommonResponse
	TaobaoDeliveryTemplateUpdateAPIResponseModel
}

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

修改运费模板

type TaobaoDeliveryTemplateUpdateAPIResponseModel

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 TaobaoDeliveryTemplatesGetAPIRequest

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

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

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

func NewTaobaoDeliveryTemplatesGetRequest

func NewTaobaoDeliveryTemplatesGetRequest() *TaobaoDeliveryTemplatesGetAPIRequest

NewTaobaoDeliveryTemplatesGetRequest 初始化TaobaoDeliveryTemplatesGetAPIRequest对象

func (TaobaoDeliveryTemplatesGetAPIRequest) GetApiMethodName

func (r TaobaoDeliveryTemplatesGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoDeliveryTemplatesGetAPIRequest) GetApiParams

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoDeliveryTemplatesGetAPIRequest) GetFields

GetFields Fields Getter

func (TaobaoDeliveryTemplatesGetAPIRequest) GetRawParams

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

func (*TaobaoDeliveryTemplatesGetAPIRequest) SetFields

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

type TaobaoDeliveryTemplatesGetAPIResponse struct {
	model.CommonResponse
	TaobaoDeliveryTemplatesGetAPIResponseModel
}

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

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

type TaobaoDeliveryTemplatesGetAPIResponseModel

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 TaobaoLogisticsCompaniesGetAPIRequest

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

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

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

func NewTaobaoLogisticsCompaniesGetRequest

func NewTaobaoLogisticsCompaniesGetRequest() *TaobaoLogisticsCompaniesGetAPIRequest

NewTaobaoLogisticsCompaniesGetRequest 初始化TaobaoLogisticsCompaniesGetAPIRequest对象

func (TaobaoLogisticsCompaniesGetAPIRequest) GetApiMethodName

func (r TaobaoLogisticsCompaniesGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoLogisticsCompaniesGetAPIRequest) GetApiParams

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoLogisticsCompaniesGetAPIRequest) GetFields

GetFields Fields Getter

func (TaobaoLogisticsCompaniesGetAPIRequest) GetIsRecommended

func (r TaobaoLogisticsCompaniesGetAPIRequest) GetIsRecommended() bool

GetIsRecommended IsRecommended Getter

func (TaobaoLogisticsCompaniesGetAPIRequest) GetOrderMode

GetOrderMode OrderMode Getter

func (TaobaoLogisticsCompaniesGetAPIRequest) GetRawParams

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

func (*TaobaoLogisticsCompaniesGetAPIRequest) SetFields

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

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

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

func (*TaobaoLogisticsCompaniesGetAPIRequest) SetOrderMode

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

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

type TaobaoLogisticsCompaniesGetAPIResponse

type TaobaoLogisticsCompaniesGetAPIResponse struct {
	model.CommonResponse
	TaobaoLogisticsCompaniesGetAPIResponseModel
}

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

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

type TaobaoLogisticsCompaniesGetAPIResponseModel

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

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

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

创建物流订单,并发货。

func NewTaobaoLogisticsConsignOrderCreateandsendRequest

func NewTaobaoLogisticsConsignOrderCreateandsendRequest() *TaobaoLogisticsConsignOrderCreateandsendAPIRequest

NewTaobaoLogisticsConsignOrderCreateandsendRequest 初始化TaobaoLogisticsConsignOrderCreateandsendAPIRequest对象

func (TaobaoLogisticsConsignOrderCreateandsendAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoLogisticsConsignOrderCreateandsendAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoLogisticsConsignOrderCreateandsendAPIRequest) GetCompanyId

GetCompanyId CompanyId Getter

func (TaobaoLogisticsConsignOrderCreateandsendAPIRequest) GetItemJsonString

GetItemJsonString ItemJsonString Getter

func (TaobaoLogisticsConsignOrderCreateandsendAPIRequest) GetLogisType

GetLogisType LogisType Getter

func (TaobaoLogisticsConsignOrderCreateandsendAPIRequest) GetMailNo

GetMailNo MailNo Getter

func (TaobaoLogisticsConsignOrderCreateandsendAPIRequest) GetOrderSource

GetOrderSource OrderSource Getter

func (TaobaoLogisticsConsignOrderCreateandsendAPIRequest) GetOrderType

GetOrderType OrderType Getter

func (TaobaoLogisticsConsignOrderCreateandsendAPIRequest) GetRAddress

GetRAddress RAddress Getter

func (TaobaoLogisticsConsignOrderCreateandsendAPIRequest) GetRAreaId

GetRAreaId RAreaId Getter

func (TaobaoLogisticsConsignOrderCreateandsendAPIRequest) GetRCityName

GetRCityName RCityName Getter

func (TaobaoLogisticsConsignOrderCreateandsendAPIRequest) GetRDistName

GetRDistName RDistName Getter

func (TaobaoLogisticsConsignOrderCreateandsendAPIRequest) GetRMobilePhone

GetRMobilePhone RMobilePhone Getter

func (TaobaoLogisticsConsignOrderCreateandsendAPIRequest) GetRName

GetRName RName Getter

func (TaobaoLogisticsConsignOrderCreateandsendAPIRequest) GetRProvName

GetRProvName RProvName Getter

func (TaobaoLogisticsConsignOrderCreateandsendAPIRequest) GetRTelephone

GetRTelephone RTelephone Getter

func (TaobaoLogisticsConsignOrderCreateandsendAPIRequest) GetRZipCode

GetRZipCode RZipCode Getter

func (TaobaoLogisticsConsignOrderCreateandsendAPIRequest) GetRawParams

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

func (TaobaoLogisticsConsignOrderCreateandsendAPIRequest) GetSAddress

GetSAddress SAddress Getter

func (TaobaoLogisticsConsignOrderCreateandsendAPIRequest) GetSAreaId

GetSAreaId SAreaId Getter

func (TaobaoLogisticsConsignOrderCreateandsendAPIRequest) GetSCityName

GetSCityName SCityName Getter

func (TaobaoLogisticsConsignOrderCreateandsendAPIRequest) GetSDistName

GetSDistName SDistName Getter

func (TaobaoLogisticsConsignOrderCreateandsendAPIRequest) GetSMobilePhone

GetSMobilePhone SMobilePhone Getter

func (TaobaoLogisticsConsignOrderCreateandsendAPIRequest) GetSName

GetSName SName Getter

func (TaobaoLogisticsConsignOrderCreateandsendAPIRequest) GetSProvName

GetSProvName SProvName Getter

func (TaobaoLogisticsConsignOrderCreateandsendAPIRequest) GetSTelephone

GetSTelephone STelephone Getter

func (TaobaoLogisticsConsignOrderCreateandsendAPIRequest) GetSZipCode

GetSZipCode SZipCode Getter

func (TaobaoLogisticsConsignOrderCreateandsendAPIRequest) GetShipping

GetShipping Shipping Getter

func (TaobaoLogisticsConsignOrderCreateandsendAPIRequest) GetTradeId

GetTradeId TradeId Getter

func (TaobaoLogisticsConsignOrderCreateandsendAPIRequest) GetUserId

GetUserId UserId Getter

func (*TaobaoLogisticsConsignOrderCreateandsendAPIRequest) SetCompanyId

SetCompanyId is CompanyId Setter 物流公司ID

func (*TaobaoLogisticsConsignOrderCreateandsendAPIRequest) SetItemJsonString

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

SetItemJsonString is ItemJsonString Setter 物品的json数据。

func (*TaobaoLogisticsConsignOrderCreateandsendAPIRequest) SetLogisType

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

func (*TaobaoLogisticsConsignOrderCreateandsendAPIRequest) SetMailNo

SetMailNo is MailNo Setter 运单号

func (*TaobaoLogisticsConsignOrderCreateandsendAPIRequest) SetOrderSource

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

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

func (*TaobaoLogisticsConsignOrderCreateandsendAPIRequest) SetOrderType

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

func (*TaobaoLogisticsConsignOrderCreateandsendAPIRequest) SetRAddress

SetRAddress is RAddress Setter 收件人街道地址

func (*TaobaoLogisticsConsignOrderCreateandsendAPIRequest) SetRAreaId

SetRAreaId is RAreaId Setter 收件人区域ID

func (*TaobaoLogisticsConsignOrderCreateandsendAPIRequest) SetRCityName

SetRCityName is RCityName Setter 市

func (*TaobaoLogisticsConsignOrderCreateandsendAPIRequest) SetRDistName

SetRDistName is RDistName Setter 区

func (*TaobaoLogisticsConsignOrderCreateandsendAPIRequest) SetRMobilePhone

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

SetRMobilePhone is RMobilePhone Setter 手机号码

func (*TaobaoLogisticsConsignOrderCreateandsendAPIRequest) SetRName

SetRName is RName Setter 收件人名称

func (*TaobaoLogisticsConsignOrderCreateandsendAPIRequest) SetRProvName

SetRProvName is RProvName Setter 省

func (*TaobaoLogisticsConsignOrderCreateandsendAPIRequest) SetRTelephone

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

SetRTelephone is RTelephone Setter 电话号码

func (*TaobaoLogisticsConsignOrderCreateandsendAPIRequest) SetRZipCode

SetRZipCode is RZipCode Setter 收件人邮编

func (*TaobaoLogisticsConsignOrderCreateandsendAPIRequest) SetSAddress

SetSAddress is SAddress Setter 发件人街道地址

func (*TaobaoLogisticsConsignOrderCreateandsendAPIRequest) SetSAreaId

SetSAreaId is SAreaId Setter 发件人区域ID

func (*TaobaoLogisticsConsignOrderCreateandsendAPIRequest) SetSCityName

SetSCityName is SCityName Setter 市

func (*TaobaoLogisticsConsignOrderCreateandsendAPIRequest) SetSDistName

SetSDistName is SDistName Setter 区

func (*TaobaoLogisticsConsignOrderCreateandsendAPIRequest) SetSMobilePhone

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

SetSMobilePhone is SMobilePhone Setter 手机号码

func (*TaobaoLogisticsConsignOrderCreateandsendAPIRequest) SetSName

SetSName is SName Setter 发件人名称

func (*TaobaoLogisticsConsignOrderCreateandsendAPIRequest) SetSProvName

SetSProvName is SProvName Setter 省

func (*TaobaoLogisticsConsignOrderCreateandsendAPIRequest) SetSTelephone

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

SetSTelephone is STelephone Setter 电话号码

func (*TaobaoLogisticsConsignOrderCreateandsendAPIRequest) SetSZipCode

SetSZipCode is SZipCode Setter 发件人出编

func (*TaobaoLogisticsConsignOrderCreateandsendAPIRequest) SetShipping

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

func (*TaobaoLogisticsConsignOrderCreateandsendAPIRequest) SetTradeId

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

func (*TaobaoLogisticsConsignOrderCreateandsendAPIRequest) SetUserId

SetUserId is UserId Setter 用户ID

type TaobaoLogisticsConsignOrderCreateandsendAPIResponse

type TaobaoLogisticsConsignOrderCreateandsendAPIResponse struct {
	model.CommonResponse
	TaobaoLogisticsConsignOrderCreateandsendAPIResponseModel
}

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

创建物流订单,并发货。

type TaobaoLogisticsConsignOrderCreateandsendAPIResponseModel

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

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

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

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

func NewTaobaoLogisticsDummySendRequest

func NewTaobaoLogisticsDummySendRequest() *TaobaoLogisticsDummySendAPIRequest

NewTaobaoLogisticsDummySendRequest 初始化TaobaoLogisticsDummySendAPIRequest对象

func (TaobaoLogisticsDummySendAPIRequest) GetApiMethodName

func (r TaobaoLogisticsDummySendAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoLogisticsDummySendAPIRequest) GetApiParams

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoLogisticsDummySendAPIRequest) GetFeature

GetFeature Feature Getter

func (TaobaoLogisticsDummySendAPIRequest) GetRawParams

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

func (TaobaoLogisticsDummySendAPIRequest) GetSellerIp

GetSellerIp SellerIp Getter

func (TaobaoLogisticsDummySendAPIRequest) GetTid

GetTid Tid Getter

func (*TaobaoLogisticsDummySendAPIRequest) SetFeature

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

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

SetSellerIp is SellerIp Setter 商家的IP地址

func (*TaobaoLogisticsDummySendAPIRequest) SetTid

SetTid is Tid Setter 淘宝交易ID

type TaobaoLogisticsDummySendAPIResponse

type TaobaoLogisticsDummySendAPIResponse struct {
	model.CommonResponse
	TaobaoLogisticsDummySendAPIResponseModel
}

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

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

type TaobaoLogisticsDummySendAPIResponseModel

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

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

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

物流详情查询

func NewTaobaoLogisticsInstantTraceSearchRequest

func NewTaobaoLogisticsInstantTraceSearchRequest() *TaobaoLogisticsInstantTraceSearchAPIRequest

NewTaobaoLogisticsInstantTraceSearchRequest 初始化TaobaoLogisticsInstantTraceSearchAPIRequest对象

func (TaobaoLogisticsInstantTraceSearchAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoLogisticsInstantTraceSearchAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoLogisticsInstantTraceSearchAPIRequest) GetIsSplit

GetIsSplit IsSplit Getter

func (TaobaoLogisticsInstantTraceSearchAPIRequest) GetMailNo

GetMailNo MailNo Getter

func (TaobaoLogisticsInstantTraceSearchAPIRequest) GetRawParams

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

func (TaobaoLogisticsInstantTraceSearchAPIRequest) GetSubTid

GetSubTid SubTid Getter

func (TaobaoLogisticsInstantTraceSearchAPIRequest) GetTid

GetTid Tid Getter

func (*TaobaoLogisticsInstantTraceSearchAPIRequest) SetIsSplit

SetIsSplit is IsSplit Setter 是否拆单

func (*TaobaoLogisticsInstantTraceSearchAPIRequest) SetMailNo

SetMailNo is MailNo Setter 运单号

func (*TaobaoLogisticsInstantTraceSearchAPIRequest) SetSubTid

SetSubTid is SubTid Setter 子订单列表

func (*TaobaoLogisticsInstantTraceSearchAPIRequest) SetTid

SetTid is Tid Setter 交易单号

type TaobaoLogisticsInstantTraceSearchAPIResponse

type TaobaoLogisticsInstantTraceSearchAPIResponse struct {
	model.CommonResponse
	TaobaoLogisticsInstantTraceSearchAPIResponseModel
}

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

物流详情查询

type TaobaoLogisticsInstantTraceSearchAPIResponseModel

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

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

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

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

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

func NewTaobaoLogisticsOnlineCancelRequest

func NewTaobaoLogisticsOnlineCancelRequest() *TaobaoLogisticsOnlineCancelAPIRequest

NewTaobaoLogisticsOnlineCancelRequest 初始化TaobaoLogisticsOnlineCancelAPIRequest对象

func (TaobaoLogisticsOnlineCancelAPIRequest) GetApiMethodName

func (r TaobaoLogisticsOnlineCancelAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoLogisticsOnlineCancelAPIRequest) GetApiParams

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoLogisticsOnlineCancelAPIRequest) GetRawParams

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

func (TaobaoLogisticsOnlineCancelAPIRequest) GetTid

GetTid Tid Getter

func (*TaobaoLogisticsOnlineCancelAPIRequest) SetTid

SetTid is Tid Setter 淘宝交易ID

type TaobaoLogisticsOnlineCancelAPIResponse

type TaobaoLogisticsOnlineCancelAPIResponse struct {
	model.CommonResponse
	TaobaoLogisticsOnlineCancelAPIResponseModel
}

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

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

type TaobaoLogisticsOnlineCancelAPIResponseModel

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

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

func NewTaobaoLogisticsOnlineConfirmRequest() *TaobaoLogisticsOnlineConfirmAPIRequest

NewTaobaoLogisticsOnlineConfirmRequest 初始化TaobaoLogisticsOnlineConfirmAPIRequest对象

func (TaobaoLogisticsOnlineConfirmAPIRequest) GetApiMethodName

func (r TaobaoLogisticsOnlineConfirmAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoLogisticsOnlineConfirmAPIRequest) GetApiParams

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoLogisticsOnlineConfirmAPIRequest) GetIsSplit

GetIsSplit IsSplit Getter

func (TaobaoLogisticsOnlineConfirmAPIRequest) GetOutSid

GetOutSid OutSid Getter

func (TaobaoLogisticsOnlineConfirmAPIRequest) GetRawParams

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

func (TaobaoLogisticsOnlineConfirmAPIRequest) GetSellerIp

GetSellerIp SellerIp Getter

func (TaobaoLogisticsOnlineConfirmAPIRequest) GetSubTid

GetSubTid SubTid Getter

func (TaobaoLogisticsOnlineConfirmAPIRequest) GetTid

GetTid Tid Getter

func (*TaobaoLogisticsOnlineConfirmAPIRequest) SetIsSplit

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

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

func (*TaobaoLogisticsOnlineConfirmAPIRequest) SetOutSid

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

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

func (*TaobaoLogisticsOnlineConfirmAPIRequest) SetSellerIp

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

SetSellerIp is SellerIp Setter 商家的IP地址

func (*TaobaoLogisticsOnlineConfirmAPIRequest) SetSubTid

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

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

func (*TaobaoLogisticsOnlineConfirmAPIRequest) SetTid

SetTid is Tid Setter 淘宝交易ID

type TaobaoLogisticsOnlineConfirmAPIResponse

type TaobaoLogisticsOnlineConfirmAPIResponse struct {
	model.CommonResponse
	TaobaoLogisticsOnlineConfirmAPIResponseModel
}

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

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

type TaobaoLogisticsOnlineConfirmAPIResponseModel

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

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

func NewTaobaoLogisticsOnlineSendRequest() *TaobaoLogisticsOnlineSendAPIRequest

NewTaobaoLogisticsOnlineSendRequest 初始化TaobaoLogisticsOnlineSendAPIRequest对象

func (TaobaoLogisticsOnlineSendAPIRequest) GetApiMethodName

func (r TaobaoLogisticsOnlineSendAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoLogisticsOnlineSendAPIRequest) GetApiParams

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoLogisticsOnlineSendAPIRequest) GetCancelId

GetCancelId CancelId Getter

func (TaobaoLogisticsOnlineSendAPIRequest) GetCompanyCode

func (r TaobaoLogisticsOnlineSendAPIRequest) GetCompanyCode() string

GetCompanyCode CompanyCode Getter

func (TaobaoLogisticsOnlineSendAPIRequest) GetFeature

GetFeature Feature Getter

func (TaobaoLogisticsOnlineSendAPIRequest) GetIsSplit

GetIsSplit IsSplit Getter

func (TaobaoLogisticsOnlineSendAPIRequest) GetOutSid

GetOutSid OutSid Getter

func (TaobaoLogisticsOnlineSendAPIRequest) GetRawParams

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

func (TaobaoLogisticsOnlineSendAPIRequest) GetSellerIp

GetSellerIp SellerIp Getter

func (TaobaoLogisticsOnlineSendAPIRequest) GetSenderId

GetSenderId SenderId Getter

func (TaobaoLogisticsOnlineSendAPIRequest) GetSubTid

GetSubTid SubTid Getter

func (TaobaoLogisticsOnlineSendAPIRequest) GetTid

GetTid Tid Getter

func (*TaobaoLogisticsOnlineSendAPIRequest) SetCancelId

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

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

func (*TaobaoLogisticsOnlineSendAPIRequest) SetCompanyCode

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

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

func (*TaobaoLogisticsOnlineSendAPIRequest) SetFeature

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

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

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

func (*TaobaoLogisticsOnlineSendAPIRequest) SetOutSid

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

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

func (*TaobaoLogisticsOnlineSendAPIRequest) SetSellerIp

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

SetSellerIp is SellerIp Setter 商家的IP地址

func (*TaobaoLogisticsOnlineSendAPIRequest) SetSenderId

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

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

func (*TaobaoLogisticsOnlineSendAPIRequest) SetSubTid

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

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

func (*TaobaoLogisticsOnlineSendAPIRequest) SetTid

SetTid is Tid Setter 淘宝交易ID

type TaobaoLogisticsOnlineSendAPIResponse

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

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

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

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

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

func NewTaobaoLogisticsOrderCreateRequest

func NewTaobaoLogisticsOrderCreateRequest() *TaobaoLogisticsOrderCreateAPIRequest

NewTaobaoLogisticsOrderCreateRequest 初始化TaobaoLogisticsOrderCreateAPIRequest对象

func (TaobaoLogisticsOrderCreateAPIRequest) GetApiMethodName

func (r TaobaoLogisticsOrderCreateAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoLogisticsOrderCreateAPIRequest) GetApiParams

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoLogisticsOrderCreateAPIRequest) GetGoodsNames

func (r TaobaoLogisticsOrderCreateAPIRequest) GetGoodsNames() string

GetGoodsNames GoodsNames Getter

func (TaobaoLogisticsOrderCreateAPIRequest) GetGoodsQuantities

func (r TaobaoLogisticsOrderCreateAPIRequest) GetGoodsQuantities() string

GetGoodsQuantities GoodsQuantities Getter

func (TaobaoLogisticsOrderCreateAPIRequest) GetIsConsign

func (r TaobaoLogisticsOrderCreateAPIRequest) GetIsConsign() bool

GetIsConsign IsConsign Getter

func (TaobaoLogisticsOrderCreateAPIRequest) GetItemValues

func (r TaobaoLogisticsOrderCreateAPIRequest) GetItemValues() string

GetItemValues ItemValues Getter

func (TaobaoLogisticsOrderCreateAPIRequest) GetLogisCompanyCode

func (r TaobaoLogisticsOrderCreateAPIRequest) GetLogisCompanyCode() string

GetLogisCompanyCode LogisCompanyCode Getter

func (TaobaoLogisticsOrderCreateAPIRequest) GetLogisType

GetLogisType LogisType Getter

func (TaobaoLogisticsOrderCreateAPIRequest) GetMailNo

GetMailNo MailNo Getter

func (TaobaoLogisticsOrderCreateAPIRequest) GetOrderType

GetOrderType OrderType Getter

func (TaobaoLogisticsOrderCreateAPIRequest) GetRawParams

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

func (TaobaoLogisticsOrderCreateAPIRequest) GetSellerWangwangId

func (r TaobaoLogisticsOrderCreateAPIRequest) GetSellerWangwangId() string

GetSellerWangwangId SellerWangwangId Getter

func (TaobaoLogisticsOrderCreateAPIRequest) GetShipping

GetShipping Shipping Getter

func (TaobaoLogisticsOrderCreateAPIRequest) GetTradeId

GetTradeId TradeId Getter

func (*TaobaoLogisticsOrderCreateAPIRequest) SetGoodsNames

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

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

func (*TaobaoLogisticsOrderCreateAPIRequest) SetGoodsQuantities

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

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

func (*TaobaoLogisticsOrderCreateAPIRequest) SetIsConsign

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

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

func (*TaobaoLogisticsOrderCreateAPIRequest) SetItemValues

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

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

func (*TaobaoLogisticsOrderCreateAPIRequest) SetLogisCompanyCode

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

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

func (*TaobaoLogisticsOrderCreateAPIRequest) SetLogisType

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

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

func (*TaobaoLogisticsOrderCreateAPIRequest) SetMailNo

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

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

func (*TaobaoLogisticsOrderCreateAPIRequest) SetOrderType

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

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

func (*TaobaoLogisticsOrderCreateAPIRequest) SetSellerWangwangId

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

SetSellerWangwangId is SellerWangwangId Setter 卖家旺旺号

func (*TaobaoLogisticsOrderCreateAPIRequest) SetShipping

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

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

func (*TaobaoLogisticsOrderCreateAPIRequest) SetTradeId

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

SetTradeId is TradeId Setter 订单的交易号码

type TaobaoLogisticsOrderCreateAPIResponse

type TaobaoLogisticsOrderCreateAPIResponse struct {
	model.CommonResponse
	TaobaoLogisticsOrderCreateAPIResponseModel
}

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

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

type TaobaoLogisticsOrderCreateAPIResponseModel

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

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

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

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

func NewTaobaoLogisticsOrdersDetailGetRequest

func NewTaobaoLogisticsOrdersDetailGetRequest() *TaobaoLogisticsOrdersDetailGetAPIRequest

NewTaobaoLogisticsOrdersDetailGetRequest 初始化TaobaoLogisticsOrdersDetailGetAPIRequest对象

func (TaobaoLogisticsOrdersDetailGetAPIRequest) GetApiMethodName

func (r TaobaoLogisticsOrdersDetailGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoLogisticsOrdersDetailGetAPIRequest) GetApiParams

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoLogisticsOrdersDetailGetAPIRequest) GetBuyerNick

GetBuyerNick BuyerNick Getter

func (TaobaoLogisticsOrdersDetailGetAPIRequest) GetEndCreated

GetEndCreated EndCreated Getter

func (TaobaoLogisticsOrdersDetailGetAPIRequest) GetFields

GetFields Fields Getter

func (TaobaoLogisticsOrdersDetailGetAPIRequest) GetFreightPayer

GetFreightPayer FreightPayer Getter

func (TaobaoLogisticsOrdersDetailGetAPIRequest) GetOuid

GetOuid Ouid Getter

func (TaobaoLogisticsOrdersDetailGetAPIRequest) GetPageNo

GetPageNo PageNo Getter

func (TaobaoLogisticsOrdersDetailGetAPIRequest) GetPageSize

GetPageSize PageSize Getter

func (TaobaoLogisticsOrdersDetailGetAPIRequest) GetRawParams

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

func (TaobaoLogisticsOrdersDetailGetAPIRequest) GetReceiverName

GetReceiverName ReceiverName Getter

func (TaobaoLogisticsOrdersDetailGetAPIRequest) GetSellerConfirm

func (r TaobaoLogisticsOrdersDetailGetAPIRequest) GetSellerConfirm() string

GetSellerConfirm SellerConfirm Getter

func (TaobaoLogisticsOrdersDetailGetAPIRequest) GetStartCreated

GetStartCreated StartCreated Getter

func (TaobaoLogisticsOrdersDetailGetAPIRequest) GetStatus

GetStatus Status Getter

func (TaobaoLogisticsOrdersDetailGetAPIRequest) GetTid

GetTid Tid Getter

func (TaobaoLogisticsOrdersDetailGetAPIRequest) GetType

GetType Type Getter

func (*TaobaoLogisticsOrdersDetailGetAPIRequest) SetBuyerNick

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

SetBuyerNick is BuyerNick Setter 买家昵称

func (*TaobaoLogisticsOrdersDetailGetAPIRequest) SetEndCreated

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

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

func (*TaobaoLogisticsOrdersDetailGetAPIRequest) SetFields

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

func (*TaobaoLogisticsOrdersDetailGetAPIRequest) SetFreightPayer

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

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

func (*TaobaoLogisticsOrdersDetailGetAPIRequest) SetOuid

SetOuid is Ouid Setter 系统自动生成

func (*TaobaoLogisticsOrdersDetailGetAPIRequest) SetPageNo

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

func (*TaobaoLogisticsOrdersDetailGetAPIRequest) SetPageSize

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

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

func (*TaobaoLogisticsOrdersDetailGetAPIRequest) SetReceiverName

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

SetReceiverName is ReceiverName Setter 收货人姓名

func (*TaobaoLogisticsOrdersDetailGetAPIRequest) SetSellerConfirm

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

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

func (*TaobaoLogisticsOrdersDetailGetAPIRequest) SetStartCreated

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

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

func (*TaobaoLogisticsOrdersDetailGetAPIRequest) SetStatus

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

func (*TaobaoLogisticsOrdersDetailGetAPIRequest) SetTid

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

func (*TaobaoLogisticsOrdersDetailGetAPIRequest) SetType

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

type TaobaoLogisticsOrdersDetailGetAPIResponse

type TaobaoLogisticsOrdersDetailGetAPIResponse struct {
	model.CommonResponse
	TaobaoLogisticsOrdersDetailGetAPIResponseModel
}

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

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

type TaobaoLogisticsOrdersDetailGetAPIResponseModel

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

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

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

批量查询物流订单。

func NewTaobaoLogisticsOrdersGetRequest

func NewTaobaoLogisticsOrdersGetRequest() *TaobaoLogisticsOrdersGetAPIRequest

NewTaobaoLogisticsOrdersGetRequest 初始化TaobaoLogisticsOrdersGetAPIRequest对象

func (TaobaoLogisticsOrdersGetAPIRequest) GetApiMethodName

func (r TaobaoLogisticsOrdersGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoLogisticsOrdersGetAPIRequest) GetApiParams

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoLogisticsOrdersGetAPIRequest) GetBuyerNick

func (r TaobaoLogisticsOrdersGetAPIRequest) GetBuyerNick() string

GetBuyerNick BuyerNick Getter

func (TaobaoLogisticsOrdersGetAPIRequest) GetEndCreated

func (r TaobaoLogisticsOrdersGetAPIRequest) GetEndCreated() string

GetEndCreated EndCreated Getter

func (TaobaoLogisticsOrdersGetAPIRequest) GetFields

GetFields Fields Getter

func (TaobaoLogisticsOrdersGetAPIRequest) GetFreightPayer

func (r TaobaoLogisticsOrdersGetAPIRequest) GetFreightPayer() string

GetFreightPayer FreightPayer Getter

func (TaobaoLogisticsOrdersGetAPIRequest) GetOuid

GetOuid Ouid Getter

func (TaobaoLogisticsOrdersGetAPIRequest) GetPageNo

GetPageNo PageNo Getter

func (TaobaoLogisticsOrdersGetAPIRequest) GetPageSize

func (r TaobaoLogisticsOrdersGetAPIRequest) GetPageSize() int64

GetPageSize PageSize Getter

func (TaobaoLogisticsOrdersGetAPIRequest) GetRawParams

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

func (TaobaoLogisticsOrdersGetAPIRequest) GetReceiverName

func (r TaobaoLogisticsOrdersGetAPIRequest) GetReceiverName() string

GetReceiverName ReceiverName Getter

func (TaobaoLogisticsOrdersGetAPIRequest) GetSellerConfirm

func (r TaobaoLogisticsOrdersGetAPIRequest) GetSellerConfirm() string

GetSellerConfirm SellerConfirm Getter

func (TaobaoLogisticsOrdersGetAPIRequest) GetStartCreated

func (r TaobaoLogisticsOrdersGetAPIRequest) GetStartCreated() string

GetStartCreated StartCreated Getter

func (TaobaoLogisticsOrdersGetAPIRequest) GetStatus

GetStatus Status Getter

func (TaobaoLogisticsOrdersGetAPIRequest) GetTid

GetTid Tid Getter

func (TaobaoLogisticsOrdersGetAPIRequest) GetType

GetType Type Getter

func (*TaobaoLogisticsOrdersGetAPIRequest) SetBuyerNick

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

SetBuyerNick is BuyerNick Setter 买家昵称

func (*TaobaoLogisticsOrdersGetAPIRequest) SetEndCreated

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

SetEndCreated is EndCreated Setter 创建时间结束

func (*TaobaoLogisticsOrdersGetAPIRequest) SetFields

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

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

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

func (*TaobaoLogisticsOrdersGetAPIRequest) SetOuid

SetOuid is Ouid Setter 系统自动生成

func (*TaobaoLogisticsOrdersGetAPIRequest) SetPageNo

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

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

func (*TaobaoLogisticsOrdersGetAPIRequest) SetPageSize

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

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

func (*TaobaoLogisticsOrdersGetAPIRequest) SetReceiverName

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

SetReceiverName is ReceiverName Setter 收货人姓名

func (*TaobaoLogisticsOrdersGetAPIRequest) SetSellerConfirm

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

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

func (*TaobaoLogisticsOrdersGetAPIRequest) SetStartCreated

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

SetStartCreated is StartCreated Setter 创建时间开始

func (*TaobaoLogisticsOrdersGetAPIRequest) SetStatus

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

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

func (*TaobaoLogisticsOrdersGetAPIRequest) SetTid

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

func (*TaobaoLogisticsOrdersGetAPIRequest) SetType

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

type TaobaoLogisticsOrdersGetAPIResponse

type TaobaoLogisticsOrdersGetAPIResponse struct {
	model.CommonResponse
	TaobaoLogisticsOrdersGetAPIResponseModel
}

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

批量查询物流订单。

type TaobaoLogisticsOrdersGetAPIResponseModel

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

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

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

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

func NewTaobaoLogisticsPartnersGetRequest

func NewTaobaoLogisticsPartnersGetRequest() *TaobaoLogisticsPartnersGetAPIRequest

NewTaobaoLogisticsPartnersGetRequest 初始化TaobaoLogisticsPartnersGetAPIRequest对象

func (TaobaoLogisticsPartnersGetAPIRequest) GetApiMethodName

func (r TaobaoLogisticsPartnersGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoLogisticsPartnersGetAPIRequest) GetApiParams

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoLogisticsPartnersGetAPIRequest) GetGoodsValue

func (r TaobaoLogisticsPartnersGetAPIRequest) GetGoodsValue() string

GetGoodsValue GoodsValue Getter

func (TaobaoLogisticsPartnersGetAPIRequest) GetIsNeedCarriage

func (r TaobaoLogisticsPartnersGetAPIRequest) GetIsNeedCarriage() bool

GetIsNeedCarriage IsNeedCarriage Getter

func (TaobaoLogisticsPartnersGetAPIRequest) GetRawParams

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

func (TaobaoLogisticsPartnersGetAPIRequest) GetServiceType

func (r TaobaoLogisticsPartnersGetAPIRequest) GetServiceType() string

GetServiceType ServiceType Getter

func (TaobaoLogisticsPartnersGetAPIRequest) GetSourceId

GetSourceId SourceId Getter

func (TaobaoLogisticsPartnersGetAPIRequest) GetTargetId

GetTargetId TargetId Getter

func (*TaobaoLogisticsPartnersGetAPIRequest) SetGoodsValue

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

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

func (*TaobaoLogisticsPartnersGetAPIRequest) SetIsNeedCarriage

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

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

func (*TaobaoLogisticsPartnersGetAPIRequest) SetServiceType

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

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

func (*TaobaoLogisticsPartnersGetAPIRequest) SetSourceId

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

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

type TaobaoLogisticsPartnersGetAPIResponse struct {
	model.CommonResponse
	TaobaoLogisticsPartnersGetAPIResponseModel
}

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

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

type TaobaoLogisticsPartnersGetAPIResponseModel

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.2.9

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

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

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

func NewTaobaoLogisticsTraceGetRequest added in v1.2.9

func NewTaobaoLogisticsTraceGetRequest() *TaobaoLogisticsTraceGetAPIRequest

NewTaobaoLogisticsTraceGetRequest 初始化TaobaoLogisticsTraceGetAPIRequest对象

func (TaobaoLogisticsTraceGetAPIRequest) GetApiMethodName added in v1.2.9

func (r TaobaoLogisticsTraceGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoLogisticsTraceGetAPIRequest) GetApiParams added in v1.2.9

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoLogisticsTraceGetAPIRequest) GetRawParams added in v1.2.9

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

func (TaobaoLogisticsTraceGetAPIRequest) GetTid added in v1.2.9

GetTid Tid Getter

func (*TaobaoLogisticsTraceGetAPIRequest) SetTid added in v1.2.9

SetTid is Tid Setter 交易号

type TaobaoLogisticsTraceGetAPIResponse added in v1.2.9

type TaobaoLogisticsTraceGetAPIResponse struct {
	model.CommonResponse
	TaobaoLogisticsTraceGetAPIResponseModel
}

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

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

type TaobaoLogisticsTraceGetAPIResponseModel added in v1.2.9

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

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

func NewTaobaoLogisticsTraceSearchRequest() *TaobaoLogisticsTraceSearchAPIRequest

NewTaobaoLogisticsTraceSearchRequest 初始化TaobaoLogisticsTraceSearchAPIRequest对象

func (TaobaoLogisticsTraceSearchAPIRequest) GetApiMethodName

func (r TaobaoLogisticsTraceSearchAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoLogisticsTraceSearchAPIRequest) GetApiParams

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoLogisticsTraceSearchAPIRequest) GetIsSplit

GetIsSplit IsSplit Getter

func (TaobaoLogisticsTraceSearchAPIRequest) GetRawParams

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

func (TaobaoLogisticsTraceSearchAPIRequest) GetSubTid

GetSubTid SubTid Getter

func (TaobaoLogisticsTraceSearchAPIRequest) GetTid

GetTid Tid Getter

func (*TaobaoLogisticsTraceSearchAPIRequest) SetIsSplit

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

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

func (*TaobaoLogisticsTraceSearchAPIRequest) SetSubTid

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

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

func (*TaobaoLogisticsTraceSearchAPIRequest) SetTid

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

type TaobaoLogisticsTraceSearchAPIResponse

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

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.2.9

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

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

包裹出库单确认

func NewTaobaoLogisticsWmsPackagedeliveryorderConfirmRequest added in v1.2.9

func NewTaobaoLogisticsWmsPackagedeliveryorderConfirmRequest() *TaobaoLogisticsWmsPackagedeliveryorderConfirmAPIRequest

NewTaobaoLogisticsWmsPackagedeliveryorderConfirmRequest 初始化TaobaoLogisticsWmsPackagedeliveryorderConfirmAPIRequest对象

func (TaobaoLogisticsWmsPackagedeliveryorderConfirmAPIRequest) GetApiMethodName added in v1.2.9

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoLogisticsWmsPackagedeliveryorderConfirmAPIRequest) GetApiParams added in v1.2.9

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoLogisticsWmsPackagedeliveryorderConfirmAPIRequest) GetConfirmPackageDeliveryOrderRequest added in v1.2.9

GetConfirmPackageDeliveryOrderRequest ConfirmPackageDeliveryOrderRequest Getter

func (TaobaoLogisticsWmsPackagedeliveryorderConfirmAPIRequest) GetRawParams added in v1.2.9

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

func (*TaobaoLogisticsWmsPackagedeliveryorderConfirmAPIRequest) SetConfirmPackageDeliveryOrderRequest added in v1.2.9

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

SetConfirmPackageDeliveryOrderRequest is ConfirmPackageDeliveryOrderRequest Setter 请求

type TaobaoLogisticsWmsPackagedeliveryorderConfirmAPIResponse added in v1.2.9

type TaobaoLogisticsWmsPackagedeliveryorderConfirmAPIResponse struct {
	model.CommonResponse
	TaobaoLogisticsWmsPackagedeliveryorderConfirmAPIResponseModel
}

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

包裹出库单确认

type TaobaoLogisticsWmsPackagedeliveryorderConfirmAPIResponseModel added in v1.2.9

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.2.9

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

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

包裹出库单拉单

func NewTaobaoLogisticsWmsPackagedeliveryorderPullRequest added in v1.2.9

func NewTaobaoLogisticsWmsPackagedeliveryorderPullRequest() *TaobaoLogisticsWmsPackagedeliveryorderPullAPIRequest

NewTaobaoLogisticsWmsPackagedeliveryorderPullRequest 初始化TaobaoLogisticsWmsPackagedeliveryorderPullAPIRequest对象

func (TaobaoLogisticsWmsPackagedeliveryorderPullAPIRequest) GetApiMethodName added in v1.2.9

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoLogisticsWmsPackagedeliveryorderPullAPIRequest) GetApiParams added in v1.2.9

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoLogisticsWmsPackagedeliveryorderPullAPIRequest) GetPullPackageDeliveryOrderRequest added in v1.2.9

func (r TaobaoLogisticsWmsPackagedeliveryorderPullAPIRequest) GetPullPackageDeliveryOrderRequest() *PullPackageOrderRequest

GetPullPackageDeliveryOrderRequest PullPackageDeliveryOrderRequest Getter

func (TaobaoLogisticsWmsPackagedeliveryorderPullAPIRequest) GetRawParams added in v1.2.9

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

func (*TaobaoLogisticsWmsPackagedeliveryorderPullAPIRequest) SetPullPackageDeliveryOrderRequest added in v1.2.9

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

SetPullPackageDeliveryOrderRequest is PullPackageDeliveryOrderRequest Setter 请求

type TaobaoLogisticsWmsPackagedeliveryorderPullAPIResponse added in v1.2.9

type TaobaoLogisticsWmsPackagedeliveryorderPullAPIResponse struct {
	model.CommonResponse
	TaobaoLogisticsWmsPackagedeliveryorderPullAPIResponseModel
}

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

包裹出库单拉单

type TaobaoLogisticsWmsPackagedeliveryorderPullAPIResponseModel added in v1.2.9

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.2.9

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

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

包裹入库单确认

func NewTaobaoLogisticsWmsPackageentryorderConfirmRequest added in v1.2.9

func NewTaobaoLogisticsWmsPackageentryorderConfirmRequest() *TaobaoLogisticsWmsPackageentryorderConfirmAPIRequest

NewTaobaoLogisticsWmsPackageentryorderConfirmRequest 初始化TaobaoLogisticsWmsPackageentryorderConfirmAPIRequest对象

func (TaobaoLogisticsWmsPackageentryorderConfirmAPIRequest) GetApiMethodName added in v1.2.9

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoLogisticsWmsPackageentryorderConfirmAPIRequest) GetApiParams added in v1.2.9

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoLogisticsWmsPackageentryorderConfirmAPIRequest) GetConfirmPackageEntryOrderRequest added in v1.2.9

GetConfirmPackageEntryOrderRequest ConfirmPackageEntryOrderRequest Getter

func (TaobaoLogisticsWmsPackageentryorderConfirmAPIRequest) GetRawParams added in v1.2.9

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

func (*TaobaoLogisticsWmsPackageentryorderConfirmAPIRequest) SetConfirmPackageEntryOrderRequest added in v1.2.9

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

SetConfirmPackageEntryOrderRequest is ConfirmPackageEntryOrderRequest Setter 请求

type TaobaoLogisticsWmsPackageentryorderConfirmAPIResponse added in v1.2.9

type TaobaoLogisticsWmsPackageentryorderConfirmAPIResponse struct {
	model.CommonResponse
	TaobaoLogisticsWmsPackageentryorderConfirmAPIResponseModel
}

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

包裹入库单确认

type TaobaoLogisticsWmsPackageentryorderConfirmAPIResponseModel added in v1.2.9

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.2.9

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

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

包裹入库单拉单

func NewTaobaoLogisticsWmsPackageentryorderPullRequest added in v1.2.9

func NewTaobaoLogisticsWmsPackageentryorderPullRequest() *TaobaoLogisticsWmsPackageentryorderPullAPIRequest

NewTaobaoLogisticsWmsPackageentryorderPullRequest 初始化TaobaoLogisticsWmsPackageentryorderPullAPIRequest对象

func (TaobaoLogisticsWmsPackageentryorderPullAPIRequest) GetApiMethodName added in v1.2.9

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoLogisticsWmsPackageentryorderPullAPIRequest) GetApiParams added in v1.2.9

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoLogisticsWmsPackageentryorderPullAPIRequest) GetPullPackageEntryOrderRequest added in v1.2.9

GetPullPackageEntryOrderRequest PullPackageEntryOrderRequest Getter

func (TaobaoLogisticsWmsPackageentryorderPullAPIRequest) GetRawParams added in v1.2.9

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

func (*TaobaoLogisticsWmsPackageentryorderPullAPIRequest) SetPullPackageEntryOrderRequest added in v1.2.9

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

SetPullPackageEntryOrderRequest is PullPackageEntryOrderRequest Setter 请求

type TaobaoLogisticsWmsPackageentryorderPullAPIResponse added in v1.2.9

type TaobaoLogisticsWmsPackageentryorderPullAPIResponse struct {
	model.CommonResponse
	TaobaoLogisticsWmsPackageentryorderPullAPIResponseModel
}

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

包裹入库单拉单

type TaobaoLogisticsWmsPackageentryorderPullAPIResponseModel added in v1.2.9

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.2.9

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

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

无主件回告

func NewTaobaoLogisticsWmsPackageexceptionReportRequest added in v1.2.9

func NewTaobaoLogisticsWmsPackageexceptionReportRequest() *TaobaoLogisticsWmsPackageexceptionReportAPIRequest

NewTaobaoLogisticsWmsPackageexceptionReportRequest 初始化TaobaoLogisticsWmsPackageexceptionReportAPIRequest对象

func (TaobaoLogisticsWmsPackageexceptionReportAPIRequest) GetApiMethodName added in v1.2.9

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoLogisticsWmsPackageexceptionReportAPIRequest) GetApiParams added in v1.2.9

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoLogisticsWmsPackageexceptionReportAPIRequest) GetRawParams added in v1.2.9

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

func (TaobaoLogisticsWmsPackageexceptionReportAPIRequest) GetReportExceptionRequest added in v1.2.9

GetReportExceptionRequest ReportExceptionRequest Getter

func (*TaobaoLogisticsWmsPackageexceptionReportAPIRequest) SetReportExceptionRequest added in v1.2.9

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

SetReportExceptionRequest is ReportExceptionRequest Setter 请求

type TaobaoLogisticsWmsPackageexceptionReportAPIResponse added in v1.2.9

type TaobaoLogisticsWmsPackageexceptionReportAPIResponse struct {
	model.CommonResponse
	TaobaoLogisticsWmsPackageexceptionReportAPIResponseModel
}

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

无主件回告

type TaobaoLogisticsWmsPackageexceptionReportAPIResponseModel added in v1.2.9

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

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

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

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

func NewTaobaoWlbOrderJzConsignRequest

func NewTaobaoWlbOrderJzConsignRequest() *TaobaoWlbOrderJzConsignAPIRequest

NewTaobaoWlbOrderJzConsignRequest 初始化TaobaoWlbOrderJzConsignAPIRequest对象

func (TaobaoWlbOrderJzConsignAPIRequest) GetApiMethodName

func (r TaobaoWlbOrderJzConsignAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoWlbOrderJzConsignAPIRequest) GetApiParams

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoWlbOrderJzConsignAPIRequest) GetInsReceiverTo

func (r TaobaoWlbOrderJzConsignAPIRequest) GetInsReceiverTo() *JzReceiverTO

GetInsReceiverTo InsReceiverTo Getter

func (TaobaoWlbOrderJzConsignAPIRequest) GetInsTpDto

func (r TaobaoWlbOrderJzConsignAPIRequest) GetInsTpDto() *TPDto

GetInsTpDto InsTpDto Getter

func (TaobaoWlbOrderJzConsignAPIRequest) GetJzReceiverTo

func (r TaobaoWlbOrderJzConsignAPIRequest) GetJzReceiverTo() *JzReceiverTO

GetJzReceiverTo JzReceiverTo Getter

func (TaobaoWlbOrderJzConsignAPIRequest) GetJzTopArgs

func (r TaobaoWlbOrderJzConsignAPIRequest) GetJzTopArgs() *JzTopArgs

GetJzTopArgs JzTopArgs Getter

func (TaobaoWlbOrderJzConsignAPIRequest) GetLgTpDto

func (r TaobaoWlbOrderJzConsignAPIRequest) GetLgTpDto() *TPDto

GetLgTpDto LgTpDto Getter

func (TaobaoWlbOrderJzConsignAPIRequest) GetRawParams

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

func (TaobaoWlbOrderJzConsignAPIRequest) GetSenderId

func (r TaobaoWlbOrderJzConsignAPIRequest) GetSenderId() int64

GetSenderId SenderId Getter

func (TaobaoWlbOrderJzConsignAPIRequest) GetTid

GetTid Tid Getter

func (*TaobaoWlbOrderJzConsignAPIRequest) SetInsReceiverTo

func (r *TaobaoWlbOrderJzConsignAPIRequest) SetInsReceiverTo(_insReceiverTo *JzReceiverTO) error

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

func (*TaobaoWlbOrderJzConsignAPIRequest) SetInsTpDto

func (r *TaobaoWlbOrderJzConsignAPIRequest) SetInsTpDto(_insTpDto *TPDto) error

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

func (*TaobaoWlbOrderJzConsignAPIRequest) SetJzReceiverTo

func (r *TaobaoWlbOrderJzConsignAPIRequest) SetJzReceiverTo(_jzReceiverTo *JzReceiverTO) error

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

func (*TaobaoWlbOrderJzConsignAPIRequest) SetJzTopArgs

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

SetJzTopArgs is JzTopArgs Setter 发货参数

func (*TaobaoWlbOrderJzConsignAPIRequest) SetLgTpDto

func (r *TaobaoWlbOrderJzConsignAPIRequest) SetLgTpDto(_lgTpDto *TPDto) error

SetLgTpDto is LgTpDto Setter 物流公司信息

func (*TaobaoWlbOrderJzConsignAPIRequest) SetSenderId

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

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

func (*TaobaoWlbOrderJzConsignAPIRequest) SetTid

SetTid is Tid Setter 交易号

type TaobaoWlbOrderJzConsignAPIResponse

type TaobaoWlbOrderJzConsignAPIResponse struct {
	model.CommonResponse
	TaobaoWlbOrderJzConsignAPIResponseModel
}

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

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

type TaobaoWlbOrderJzConsignAPIResponseModel

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

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

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

家装业务查询物流公司api

func NewTaobaoWlbOrderJzQueryRequest

func NewTaobaoWlbOrderJzQueryRequest() *TaobaoWlbOrderJzQueryAPIRequest

NewTaobaoWlbOrderJzQueryRequest 初始化TaobaoWlbOrderJzQueryAPIRequest对象

func (TaobaoWlbOrderJzQueryAPIRequest) GetApiMethodName

func (r TaobaoWlbOrderJzQueryAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoWlbOrderJzQueryAPIRequest) GetApiParams

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoWlbOrderJzQueryAPIRequest) GetInsJzReceiverTO

func (r TaobaoWlbOrderJzQueryAPIRequest) GetInsJzReceiverTO() *JzReceiverTO

GetInsJzReceiverTO InsJzReceiverTO Getter

func (TaobaoWlbOrderJzQueryAPIRequest) GetJzReceiverTo

func (r TaobaoWlbOrderJzQueryAPIRequest) GetJzReceiverTo() *JzReceiverTO

GetJzReceiverTo JzReceiverTo Getter

func (TaobaoWlbOrderJzQueryAPIRequest) GetRawParams

func (r TaobaoWlbOrderJzQueryAPIRequest) GetRawParams() model.Params

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

func (TaobaoWlbOrderJzQueryAPIRequest) GetSenderId

func (r TaobaoWlbOrderJzQueryAPIRequest) GetSenderId() int64

GetSenderId SenderId Getter

func (TaobaoWlbOrderJzQueryAPIRequest) GetTid

GetTid Tid Getter

func (*TaobaoWlbOrderJzQueryAPIRequest) SetInsJzReceiverTO

func (r *TaobaoWlbOrderJzQueryAPIRequest) SetInsJzReceiverTO(_insJzReceiverTO *JzReceiverTO) error

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

func (*TaobaoWlbOrderJzQueryAPIRequest) SetJzReceiverTo

func (r *TaobaoWlbOrderJzQueryAPIRequest) SetJzReceiverTo(_jzReceiverTo *JzReceiverTO) error

SetJzReceiverTo is JzReceiverTo Setter 家装收货人信息

func (*TaobaoWlbOrderJzQueryAPIRequest) SetSenderId

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

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

func (*TaobaoWlbOrderJzQueryAPIRequest) SetTid

SetTid is Tid Setter 交易id

type TaobaoWlbOrderJzQueryAPIResponse

type TaobaoWlbOrderJzQueryAPIResponse struct {
	model.CommonResponse
	TaobaoWlbOrderJzQueryAPIResponseModel
}

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

家装业务查询物流公司api

type TaobaoWlbOrderJzQueryAPIResponseModel

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

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

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

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

func NewTaobaoWlbStoresBaseinfoGetRequest

func NewTaobaoWlbStoresBaseinfoGetRequest() *TaobaoWlbStoresBaseinfoGetAPIRequest

NewTaobaoWlbStoresBaseinfoGetRequest 初始化TaobaoWlbStoresBaseinfoGetAPIRequest对象

func (TaobaoWlbStoresBaseinfoGetAPIRequest) GetApiMethodName

func (r TaobaoWlbStoresBaseinfoGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoWlbStoresBaseinfoGetAPIRequest) GetApiParams

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoWlbStoresBaseinfoGetAPIRequest) GetRawParams

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

func (TaobaoWlbStoresBaseinfoGetAPIRequest) GetType

GetType Type Getter

func (*TaobaoWlbStoresBaseinfoGetAPIRequest) SetType

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

type TaobaoWlbStoresBaseinfoGetAPIResponse

type TaobaoWlbStoresBaseinfoGetAPIResponse struct {
	model.CommonResponse
	TaobaoWlbStoresBaseinfoGetAPIResponseModel
}

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

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

type TaobaoWlbStoresBaseinfoGetAPIResponseModel

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 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