cainiaoncwl

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

菜鸟农村物流 model

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CainiaoNcwlJhorderQueryAPIResponse

type CainiaoNcwlJhorderQueryAPIResponse struct {
	model.CommonResponse
	CainiaoNcwlJhorderQueryResponse
}

农村物流集货单查询接口 API返回值 cainiao.ncwl.jhorder.query

提供给接入商家,查询农村物流集货单

type CainiaoNcwlJhorderQueryRequest

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

农村物流集货单查询接口 API请求 cainiao.ncwl.jhorder.query

提供给接入商家,查询农村物流集货单

func NewCainiaoNcwlJhorderQueryRequest

func NewCainiaoNcwlJhorderQueryRequest() *CainiaoNcwlJhorderQueryRequest

初始化CainiaoNcwlJhorderQueryRequest对象

func (CainiaoNcwlJhorderQueryRequest) GetApiMethodName

func (r CainiaoNcwlJhorderQueryRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (CainiaoNcwlJhorderQueryRequest) GetApiParams

func (r CainiaoNcwlJhorderQueryRequest) GetApiParams() url.Values

IRequest interface 方法, 获取API参数

func (CainiaoNcwlJhorderQueryRequest) GetParam0

Param0 Getter

func (*CainiaoNcwlJhorderQueryRequest) SetParam0

func (r *CainiaoNcwlJhorderQueryRequest) SetParam0(param0 *JhRequest) error

Param0 Setter 1

type CainiaoNcwlJhorderQueryResponse

type CainiaoNcwlJhorderQueryResponse struct {
	XMLName xml.Name `xml:"cainiao_ncwl_jhorder_query_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 总结果记录数
	TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"`
	// 翻页查询当前返回页数;指定集货号时无效;
	CurrentPage int64 `json:"current_page,omitempty" xml:"current_page,omitempty"`
	// 总页数
	TotalPage int64 `json:"total_page,omitempty" xml:"total_page,omitempty"`
	// 查询获得的集货单列表
	JhOrderList []JhOrder `json:"jh_order_list,omitempty" xml:"jh_order_list>jh_order,omitempty"`
}

农村物流集货单查询接口 成功返回结果

type JhAreaInfo

type JhAreaInfo struct {
	// 可以指定某个省的集货单
	Provice string `json:"provice,omitempty" xml:"provice,omitempty"`
	// 可以指定某个省市的集货单
	District string `json:"district,omitempty" xml:"district,omitempty"`
	// 可以指定省市区的集货单
	City string `json:"city,omitempty" xml:"city,omitempty"`
}

JhAreaInfo

type JhFee

type JhFee struct {
	// 预留字段,总计金额
	TotalLogisticFee int64 `json:"total_logistic_fee,omitempty" xml:"total_logistic_fee,omitempty"`
}

JhFee

type JhItemInfo

type JhItemInfo struct {
	// 商品名称
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 外部编号,即商家商品编号
	OuterItemId string `json:"outer_item_id,omitempty" xml:"outer_item_id,omitempty"`
	// 数量
	Quantity int64 `json:"quantity,omitempty" xml:"quantity,omitempty"`
	// 淘系商品号
	TbItemId int64 `json:"tb_item_id,omitempty" xml:"tb_item_id,omitempty"`
	// 淘系skuid
	TbSkuId int64 `json:"tb_sku_id,omitempty" xml:"tb_sku_id,omitempty"`
	// 体积,单位,立方分米
	Volume int64 `json:"volume,omitempty" xml:"volume,omitempty"`
	// 重量,单位,克
	Weight int64 `json:"weight,omitempty" xml:"weight,omitempty"`
	// 预留字段,活动报名时候配置的,根据包装与包含了几个售卖单位;商家内部有维护,以公司内部为准;
	PacakgeRule string `json:"pacakge_rule,omitempty" xml:"pacakge_rule,omitempty"`
	// 预留字段,售卖1件相当于几个东西;如果销售商品售卖规则与商家内部规则一致,可以不使用这个字段;
	SellRule string `json:"sell_rule,omitempty" xml:"sell_rule,omitempty"`
}

JhItemInfo

type JhOrder

type JhOrder struct {
	// 此集货单集货开始时间
	BeginTime string `json:"begin_time,omitempty" xml:"begin_time,omitempty"`
	// 此集货单集货停止时间
	FinishTime string `json:"finish_time,omitempty" xml:"finish_time,omitempty"`
	// 此集货单商品列表
	ItemInfoList []JhItemInfo `json:"item_info_list,omitempty" xml:"item_info_list>jh_item_info,omitempty"`
	// 收货信息
	JhReceiverInfo *JhReceiverInfo `json:"jh_receiver_info,omitempty" xml:"jh_receiver_info,omitempty"`
	// 集货单号
	OrderCode string `json:"order_code,omitempty" xml:"order_code,omitempty"`
	// 补货原主单号
	OriginalOrder string `json:"original_order,omitempty" xml:"original_order,omitempty"`
	// 集货单状态,CONSOLIDATED 已集货;CONSIGNED 已发货;INBOUND 县仓入库;LACK 缺货LACK
	Status string `json:"status,omitempty" xml:"status,omitempty"`
	// 预留字段,本集包费用,单位分
	JhFee *JhFee `json:"jh_fee,omitempty" xml:"jh_fee,omitempty"`
	// 是否是补货
	ReplenishFlag bool `json:"replenish_flag,omitempty" xml:"replenish_flag,omitempty"`
}

JhOrder

type JhReceiverInfo

type JhReceiverInfo struct {
	// 收货城市
	City string `json:"city,omitempty" xml:"city,omitempty"`
	// 收货县或者区
	District string `json:"district,omitempty" xml:"district,omitempty"`
	// 收货省
	Province string `json:"province,omitempty" xml:"province,omitempty"`
	// 收货明细地址
	ReceiverAddress string `json:"receiver_address,omitempty" xml:"receiver_address,omitempty"`
	// 收货手机号
	ReceiverMobile string `json:"receiver_mobile,omitempty" xml:"receiver_mobile,omitempty"`
	// 收货姓名
	ReceiverName string `json:"receiver_name,omitempty" xml:"receiver_name,omitempty"`
	// 收货电话
	ReceiverPhone string `json:"receiver_phone,omitempty" xml:"receiver_phone,omitempty"`
	// 收货邮编
	ReceiverZip string `json:"receiver_zip,omitempty" xml:"receiver_zip,omitempty"`
	// 收货镇或者街区
	Street string `json:"street,omitempty" xml:"street,omitempty"`
}

JhReceiverInfo

type JhRequest

type JhRequest struct {
	// 集单完成时间,查询起点
	StartTime string `json:"start_time,omitempty" xml:"start_time,omitempty"`
	// 1
	AreaInfo *JhAreaInfo `json:"area_info,omitempty" xml:"area_info,omitempty"`
	// 通常指定已集货状态;指定状态查询,不指定返回所有;CONSOLIDATED 已集货;CONSIGNED 已发货;INBOUND 县仓入库;LACK 缺货LACK
	Status string `json:"status,omitempty" xml:"status,omitempty"`
	// 查询第几页,起点1
	PageNo int64 `json:"page_no,omitempty" xml:"page_no,omitempty"`
	// 淘宝item_id
	ItemId string `json:"item_id,omitempty" xml:"item_id,omitempty"`
	// 一页查询多少数据,最大100
	PageSize int64 `json:"page_size,omitempty" xml:"page_size,omitempty"`
	// 可以指定集货号查询,此时其他条件忽略;最大指定5条,逗号分隔;
	OrderCodeList string `json:"order_code_list,omitempty" xml:"order_code_list,omitempty"`
	// 集单完成时间,查询尾点;尾点有起点不能超过7天;起点不能是一年以前;
	EndTime string `json:"end_time,omitempty" xml:"end_time,omitempty"`
	// 淘宝skuId
	SkuId string `json:"sku_id,omitempty" xml:"sku_id,omitempty"`
}

JhRequest

Jump to

Keyboard shortcuts

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