cntms

package
v1.3.5 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package cntms 包含菜鸟配送API相关结构体

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReleaseCainiaoCntmsLogisticsOrderConsignAPIRequest added in v1.3.4

func ReleaseCainiaoCntmsLogisticsOrderConsignAPIRequest(v *CainiaoCntmsLogisticsOrderConsignAPIRequest)

ReleaseCainiaoCntmsLogisticsOrderConsignAPIRequest 将 CainiaoCntmsLogisticsOrderConsignAPIRequest 放入 sync.Pool

func ReleaseCainiaoCntmsLogisticsOrderConsignAPIResponse added in v1.3.4

func ReleaseCainiaoCntmsLogisticsOrderConsignAPIResponse(v *CainiaoCntmsLogisticsOrderConsignAPIResponse)

ReleaseCainiaoCntmsLogisticsOrderConsignAPIResponse 将 CainiaoCntmsLogisticsOrderConsignAPIResponse 保存到 sync.Pool

func ReleaseCnTmsLogisticsOrderConsignContent added in v1.3.4

func ReleaseCnTmsLogisticsOrderConsignContent(v *CnTmsLogisticsOrderConsignContent)

ReleaseCnTmsLogisticsOrderConsignContent 释放CnTmsLogisticsOrderConsignContent

func ReleaseCnTmsLogisticsOrderDeliverRequirements added in v1.3.4

func ReleaseCnTmsLogisticsOrderDeliverRequirements(v *CnTmsLogisticsOrderDeliverRequirements)

ReleaseCnTmsLogisticsOrderDeliverRequirements 释放CnTmsLogisticsOrderDeliverRequirements

func ReleaseCnTmsLogisticsOrderGotService added in v1.3.4

func ReleaseCnTmsLogisticsOrderGotService(v *CnTmsLogisticsOrderGotService)

ReleaseCnTmsLogisticsOrderGotService 释放CnTmsLogisticsOrderGotService

func ReleaseCnTmsLogisticsOrderItem added in v1.3.4

func ReleaseCnTmsLogisticsOrderItem(v *CnTmsLogisticsOrderItem)

ReleaseCnTmsLogisticsOrderItem 释放CnTmsLogisticsOrderItem

func ReleaseCnTmsLogisticsOrderItemPackageInfo added in v1.3.4

func ReleaseCnTmsLogisticsOrderItemPackageInfo(v *CnTmsLogisticsOrderItemPackageInfo)

ReleaseCnTmsLogisticsOrderItemPackageInfo 释放CnTmsLogisticsOrderItemPackageInfo

func ReleaseCnTmsLogisticsOrderReceiverInfo added in v1.3.4

func ReleaseCnTmsLogisticsOrderReceiverInfo(v *CnTmsLogisticsOrderReceiverInfo)

ReleaseCnTmsLogisticsOrderReceiverInfo 释放CnTmsLogisticsOrderReceiverInfo

func ReleaseCnTmsLogisticsOrderSenderinfo added in v1.3.4

func ReleaseCnTmsLogisticsOrderSenderinfo(v *CnTmsLogisticsOrderSenderinfo)

ReleaseCnTmsLogisticsOrderSenderinfo 释放CnTmsLogisticsOrderSenderinfo

Types

type CainiaoCntmsLogisticsOrderConsignAPIRequest added in v1.2.0

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

CainiaoCntmsLogisticsOrderConsignAPIRequest 菜鸟配商家仓库发货 API请求 cainiao.cntms.logistics.order.consign

商家包装打印面单结束后,通知菜鸟包裹要发货

func GetCainiaoCntmsLogisticsOrderConsignAPIRequest added in v1.3.4

func GetCainiaoCntmsLogisticsOrderConsignAPIRequest() *CainiaoCntmsLogisticsOrderConsignAPIRequest

GetCainiaoCntmsLogisticsOrderConsignRequest 从 sync.Pool 获取 CainiaoCntmsLogisticsOrderConsignAPIRequest

func NewCainiaoCntmsLogisticsOrderConsignRequest

func NewCainiaoCntmsLogisticsOrderConsignRequest() *CainiaoCntmsLogisticsOrderConsignAPIRequest

NewCainiaoCntmsLogisticsOrderConsignRequest 初始化CainiaoCntmsLogisticsOrderConsignAPIRequest对象

func (CainiaoCntmsLogisticsOrderConsignAPIRequest) GetApiMethodName added in v1.2.0

GetApiMethodName IRequest interface 方法, 获取Api method

func (CainiaoCntmsLogisticsOrderConsignAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (CainiaoCntmsLogisticsOrderConsignAPIRequest) GetContent added in v1.2.0

GetContent Content Getter

func (CainiaoCntmsLogisticsOrderConsignAPIRequest) GetRawParams added in v1.2.8

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

func (*CainiaoCntmsLogisticsOrderConsignAPIRequest) Reset added in v1.3.4

Reset IRequest interface 方法, 清空结构体

func (*CainiaoCntmsLogisticsOrderConsignAPIRequest) SetContent added in v1.2.0

SetContent is Content Setter 配送发货信息

type CainiaoCntmsLogisticsOrderConsignAPIResponse

type CainiaoCntmsLogisticsOrderConsignAPIResponse struct {
	model.CommonResponse
	CainiaoCntmsLogisticsOrderConsignAPIResponseModel
}

CainiaoCntmsLogisticsOrderConsignAPIResponse 菜鸟配商家仓库发货 API返回值 cainiao.cntms.logistics.order.consign

商家包装打印面单结束后,通知菜鸟包裹要发货

func GetCainiaoCntmsLogisticsOrderConsignAPIResponse added in v1.3.4

func GetCainiaoCntmsLogisticsOrderConsignAPIResponse() *CainiaoCntmsLogisticsOrderConsignAPIResponse

GetCainiaoCntmsLogisticsOrderConsignAPIResponse 从 sync.Pool 获取 CainiaoCntmsLogisticsOrderConsignAPIResponse

func (*CainiaoCntmsLogisticsOrderConsignAPIResponse) Reset added in v1.3.4

Reset 清空结构体

type CainiaoCntmsLogisticsOrderConsignAPIResponseModel added in v1.2.0

type CainiaoCntmsLogisticsOrderConsignAPIResponseModel struct {
	XMLName xml.Name `xml:"cainiao_cntms_logistics_order_consign_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 物流单号
	LogisticsOrderCode string `json:"logistics_order_code,omitempty" xml:"logistics_order_code,omitempty"`
}

CainiaoCntmsLogisticsOrderConsignAPIResponseModel is 菜鸟配商家仓库发货 成功返回结果

func (*CainiaoCntmsLogisticsOrderConsignAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

type CnTmsLogisticsOrderConsignContent

type CnTmsLogisticsOrderConsignContent struct {
	// 发货商品信息,最大50条记录
	Items []CnTmsLogisticsOrderItem `json:"items,omitempty" xml:"items>cn_tms_logistics_order_item,omitempty"`
	// 包裹列表,支持一单多包裹
	PackageList []CnTmsLogisticsOrderItemPackageInfo `json:"package_list,omitempty" xml:"package_list>cn_tms_logistics_order_item_package_info,omitempty"`
	// ERP订单号
	OrderCode string `json:"order_code,omitempty" xml:"order_code,omitempty"`
	// 交易订单id或者商家订单号; 若阿里系订单,必须与阿里对应
	TradeId string `json:"trade_id,omitempty" xml:"trade_id,omitempty"`
	// 来源渠道(TB 淘宝,JD 京东,TM 天猫,1688 1688(阿里中文站),YHD 1号店,DD 当当,VANCL 凡客,PP 拍拍,YX 易讯,EBAY 易贝ebay,AMAZON 亚马逊,SN 苏宁在线,GM 国美在线,WPH 唯品会,JM 聚美优品,LF 乐蜂网,MGJ 蘑菇街,JS 聚尚网,YG 优购,YT 银泰,YL 邮乐,PX 拍鞋网,POS POS门店,OTHERS 其他)
	OrderSource string `json:"order_source,omitempty" xml:"order_source,omitempty"`
	// 店铺编码
	ShopCode string `json:"shop_code,omitempty" xml:"shop_code,omitempty"`
	// 运单号
	MailNo string `json:"mail_no,omitempty" xml:"mail_no,omitempty"`
	// 物流公司编码
	TmsCode string `json:"tms_code,omitempty" xml:"tms_code,omitempty"`
	// 物流服务解决方案Code,此字段由菜鸟提供
	SolutionsCode string `json:"solutions_code,omitempty" xml:"solutions_code,omitempty"`
	// 扩展字段 K:V;
	ExtendFields string `json:"extend_fields,omitempty" xml:"extend_fields,omitempty"`
	// 备注
	Remark string `json:"remark,omitempty" xml:"remark,omitempty"`
	// 配送发货单收件人信息
	ReceiverInfo *CnTmsLogisticsOrderReceiverInfo `json:"receiver_info,omitempty" xml:"receiver_info,omitempty"`
	// 配送发货单发件人信息
	SenderInfo *CnTmsLogisticsOrderSenderinfo `json:"sender_info,omitempty" xml:"sender_info,omitempty"`
	// 配送要求信息(当前业务暂不支持)
	DeliverRequirements *CnTmsLogisticsOrderDeliverRequirements `json:"deliver_requirements,omitempty" xml:"deliver_requirements,omitempty"`
	// 商家送货方式,1商家送货,2菜鸟揽货
	PickUpType int64 `json:"pick_up_type,omitempty" xml:"pick_up_type,omitempty"`
	// 要求菜鸟上门揽货服务,当pick_up_Type=2且需求指定时做揽收时,此字段需要传值(当前业务暂不支持)
	TmsGotService *CnTmsLogisticsOrderGotService `json:"tms_got_service,omitempty" xml:"tms_got_service,omitempty"`
	// 此订单的第几个包裹,如订单拆包裹时,传入此参数,配送时会将同一订单的包裹一配送
	PackageNo int64 `json:"package_no,omitempty" xml:"package_no,omitempty"`
	// 包裹重量(克)
	PackageWeight int64 `json:"package_weight,omitempty" xml:"package_weight,omitempty"`
	// 此订单总的包裹数,如订单拆包裹时,传入此参数,配送时会将同一订单的包裹一配送
	PackageCount int64 `json:"package_count,omitempty" xml:"package_count,omitempty"`
	// 包裹长度(厘米)
	PackageLength int64 `json:"package_length,omitempty" xml:"package_length,omitempty"`
	// 包裹高度(厘米)
	PackageHeight int64 `json:"package_height,omitempty" xml:"package_height,omitempty"`
	// 包裹体积(立方厘米)
	PackageVolume int64 `json:"package_volume,omitempty" xml:"package_volume,omitempty"`
	// 包裹宽度(厘米)
	PackageWidth int64 `json:"package_width,omitempty" xml:"package_width,omitempty"`
	// 关单标示,true表示发货完结
	IsLastBatch bool `json:"is_last_batch,omitempty" xml:"is_last_batch,omitempty"`
}

CnTmsLogisticsOrderConsignContent 结构体

func GetCnTmsLogisticsOrderConsignContent added in v1.3.4

func GetCnTmsLogisticsOrderConsignContent() *CnTmsLogisticsOrderConsignContent

GetCnTmsLogisticsOrderConsignContent() 从对象池中获取CnTmsLogisticsOrderConsignContent

type CnTmsLogisticsOrderDeliverRequirements

type CnTmsLogisticsOrderDeliverRequirements struct {
	// 配送类型: PTPS-普通配送 LLPS-冷链配送
	DeliveryType string `json:"delivery_type,omitempty" xml:"delivery_type,omitempty"`
	// 投递时延要求(1 工作日 2 节假日 104 预约达 )
	ScheduleType string `json:"schedule_type,omitempty" xml:"schedule_type,omitempty"`
	// 送达日期(格式为 yyyy-MM-dd)
	ScheduleDay string `json:"schedule_day,omitempty" xml:"schedule_day,omitempty"`
	// 送达开始时间(格式为 hh:mm)
	ScheduleStart string `json:"schedule_start,omitempty" xml:"schedule_start,omitempty"`
	// 送达结束时间(格式为 hh:mm)
	ScheduleEnd string `json:"schedule_end,omitempty" xml:"schedule_end,omitempty"`
}

CnTmsLogisticsOrderDeliverRequirements 结构体

func GetCnTmsLogisticsOrderDeliverRequirements added in v1.3.4

func GetCnTmsLogisticsOrderDeliverRequirements() *CnTmsLogisticsOrderDeliverRequirements

GetCnTmsLogisticsOrderDeliverRequirements() 从对象池中获取CnTmsLogisticsOrderDeliverRequirements

type CnTmsLogisticsOrderGotService

type CnTmsLogisticsOrderGotService struct {
	// 揽收日期yyyyMMdd
	GotDate string `json:"got_date,omitempty" xml:"got_date,omitempty"`
	// 揽收时间段 09:00-10:00
	GotRange string `json:"got_range,omitempty" xml:"got_range,omitempty"`
}

CnTmsLogisticsOrderGotService 结构体

func GetCnTmsLogisticsOrderGotService added in v1.3.4

func GetCnTmsLogisticsOrderGotService() *CnTmsLogisticsOrderGotService

GetCnTmsLogisticsOrderGotService() 从对象池中获取CnTmsLogisticsOrderGotService

type CnTmsLogisticsOrderItem

type CnTmsLogisticsOrderItem struct {
	// ERP订单明细编码
	OrderItemId string `json:"order_item_id,omitempty" xml:"order_item_id,omitempty"`
	// 子交易号
	SubTradeId string `json:"sub_trade_id,omitempty" xml:"sub_trade_id,omitempty"`
	// 发货商品名称
	ItemName string `json:"item_name,omitempty" xml:"item_name,omitempty"`
	// 扩展字段 K:V;
	ExtendFields string `json:"extend_fields,omitempty" xml:"extend_fields,omitempty"`
	// 备注
	Remark string `json:"remark,omitempty" xml:"remark,omitempty"`
	// 发货商品商品数量
	Quantity int64 `json:"quantity,omitempty" xml:"quantity,omitempty"`
	// 商品单价,单位分
	ItemPrice int64 `json:"item_price,omitempty" xml:"item_price,omitempty"`
}

CnTmsLogisticsOrderItem 结构体

func GetCnTmsLogisticsOrderItem added in v1.3.4

func GetCnTmsLogisticsOrderItem() *CnTmsLogisticsOrderItem

GetCnTmsLogisticsOrderItem() 从对象池中获取CnTmsLogisticsOrderItem

type CnTmsLogisticsOrderItemPackageInfo

type CnTmsLogisticsOrderItemPackageInfo struct {
	// 发货商品信息,最大50条记录
	Items []CnTmsLogisticsOrderItem `json:"items,omitempty" xml:"items>cn_tms_logistics_order_item,omitempty"`
	// 运单号
	MailNo string `json:"mail_no,omitempty" xml:"mail_no,omitempty"`
	// 包裹重量(克)
	PackageWeight string `json:"package_weight,omitempty" xml:"package_weight,omitempty"`
	// 包裹长度(厘米)
	PackageLength string `json:"package_length,omitempty" xml:"package_length,omitempty"`
	// 包裹宽度(厘米)
	PackageWidth string `json:"package_width,omitempty" xml:"package_width,omitempty"`
	// 包裹高度(厘米)
	PackageHeight string `json:"package_height,omitempty" xml:"package_height,omitempty"`
	// 包裹体积(立方厘米)
	PackageVolume string `json:"package_volume,omitempty" xml:"package_volume,omitempty"`
}

CnTmsLogisticsOrderItemPackageInfo 结构体

func GetCnTmsLogisticsOrderItemPackageInfo added in v1.3.4

func GetCnTmsLogisticsOrderItemPackageInfo() *CnTmsLogisticsOrderItemPackageInfo

GetCnTmsLogisticsOrderItemPackageInfo() 从对象池中获取CnTmsLogisticsOrderItemPackageInfo

type CnTmsLogisticsOrderReceiverInfo

type CnTmsLogisticsOrderReceiverInfo struct {
	// 收件人省份
	ReceiverProvince string `json:"receiver_province,omitempty" xml:"receiver_province,omitempty"`
	// 收件人城市
	ReceiverCity string `json:"receiver_city,omitempty" xml:"receiver_city,omitempty"`
	// 收件人区县
	ReceiverArea string `json:"receiver_area,omitempty" xml:"receiver_area,omitempty"`
	// 收件人区县
	ReceiverAddress string `json:"receiver_address,omitempty" xml:"receiver_address,omitempty"`
	// 收件方邮编
	ReceiverZipCode string `json:"receiver_zip_code,omitempty" xml:"receiver_zip_code,omitempty"`
	// 收件人姓名
	ReceiverName string `json:"receiver_name,omitempty" xml:"receiver_name,omitempty"`
	// 收件人昵称
	ReceiverNick string `json:"receiver_nick,omitempty" xml:"receiver_nick,omitempty"`
	// 收件人手机,手机与电话必须有一值不为空
	ReceiverMobile string `json:"receiver_mobile,omitempty" xml:"receiver_mobile,omitempty"`
	// 收件人电话,手机与电话必须有一值不为空
	ReceiverPhone string `json:"receiver_phone,omitempty" xml:"receiver_phone,omitempty"`
}

CnTmsLogisticsOrderReceiverInfo 结构体

func GetCnTmsLogisticsOrderReceiverInfo added in v1.3.4

func GetCnTmsLogisticsOrderReceiverInfo() *CnTmsLogisticsOrderReceiverInfo

GetCnTmsLogisticsOrderReceiverInfo() 从对象池中获取CnTmsLogisticsOrderReceiverInfo

type CnTmsLogisticsOrderSenderinfo

type CnTmsLogisticsOrderSenderinfo struct {
	// 发件人省份
	SenderProvince string `json:"sender_province,omitempty" xml:"sender_province,omitempty"`
	// 发件人城市
	SenderCity string `json:"sender_city,omitempty" xml:"sender_city,omitempty"`
	// 发件人区县
	SenderArea string `json:"sender_area,omitempty" xml:"sender_area,omitempty"`
	// 发件人地址
	SenderAddress string `json:"sender_address,omitempty" xml:"sender_address,omitempty"`
	// 发件人邮编
	SenderZipCode string `json:"sender_zip_code,omitempty" xml:"sender_zip_code,omitempty"`
	// 发件人姓名
	SenderName string `json:"sender_name,omitempty" xml:"sender_name,omitempty"`
	// 发件人手机,手机与电话必须有一值不为空
	SenderMobile string `json:"sender_mobile,omitempty" xml:"sender_mobile,omitempty"`
	// 发件人电话,手机与电话必须有一值不为空
	SenderPhone string `json:"sender_phone,omitempty" xml:"sender_phone,omitempty"`
}

CnTmsLogisticsOrderSenderinfo 结构体

func GetCnTmsLogisticsOrderSenderinfo added in v1.3.4

func GetCnTmsLogisticsOrderSenderinfo() *CnTmsLogisticsOrderSenderinfo

GetCnTmsLogisticsOrderSenderinfo() 从对象池中获取CnTmsLogisticsOrderSenderinfo

Jump to

Keyboard shortcuts

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