lstlogistics2

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 lstlogistics2 包含零售通履单API相关结构体

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddressParam

type AddressParam struct {
	// 省
	ProvinceName string `json:"province_name,omitempty" xml:"province_name,omitempty"`
	// 市
	CityName string `json:"city_name,omitempty" xml:"city_name,omitempty"`
	// 区
	DistrictName string `json:"district_name,omitempty" xml:"district_name,omitempty"`
	// 街道
	StreetName string `json:"street_name,omitempty" xml:"street_name,omitempty"`
	// 详细地址
	Address string `json:"address,omitempty" xml:"address,omitempty"`
}

AddressParam 结构体

type AlibabaLstTradeSellerOfflineOrderCancelAPIRequest added in v1.2.0

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

AlibabaLstTradeSellerOfflineOrderCancelAPIRequest 供应商-线下订单-取消接口 API请求 alibaba.lst.trade.seller.offline.order.cancel

供应商线下订单数据上传之后取消

func NewAlibabaLstTradeSellerOfflineOrderCancelRequest

func NewAlibabaLstTradeSellerOfflineOrderCancelRequest() *AlibabaLstTradeSellerOfflineOrderCancelAPIRequest

NewAlibabaLstTradeSellerOfflineOrderCancelRequest 初始化AlibabaLstTradeSellerOfflineOrderCancelAPIRequest对象

func (AlibabaLstTradeSellerOfflineOrderCancelAPIRequest) GetApiMethodName added in v1.2.0

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaLstTradeSellerOfflineOrderCancelAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaLstTradeSellerOfflineOrderCancelAPIRequest) GetOfflineOrderCancalParam added in v1.2.0

GetOfflineOrderCancalParam OfflineOrderCancalParam Getter

func (AlibabaLstTradeSellerOfflineOrderCancelAPIRequest) GetRawParams added in v1.2.8

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

func (*AlibabaLstTradeSellerOfflineOrderCancelAPIRequest) SetOfflineOrderCancalParam added in v1.2.0

func (r *AlibabaLstTradeSellerOfflineOrderCancelAPIRequest) SetOfflineOrderCancalParam(_offlineOrderCancalParam *LstOfflineOrderCancalParam) error

SetOfflineOrderCancalParam is OfflineOrderCancalParam Setter 入参

type AlibabaLstTradeSellerOfflineOrderCancelAPIResponse

type AlibabaLstTradeSellerOfflineOrderCancelAPIResponse struct {
	model.CommonResponse
	AlibabaLstTradeSellerOfflineOrderCancelAPIResponseModel
}

AlibabaLstTradeSellerOfflineOrderCancelAPIResponse 供应商-线下订单-取消接口 API返回值 alibaba.lst.trade.seller.offline.order.cancel

供应商线下订单数据上传之后取消

type AlibabaLstTradeSellerOfflineOrderCancelAPIResponseModel added in v1.2.0

type AlibabaLstTradeSellerOfflineOrderCancelAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_lst_trade_seller_offline_order_cancel_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 接口返回model
	Result *AlibabaLstTradeSellerOfflineOrderCancelResult `json:"result,omitempty" xml:"result,omitempty"`
}

AlibabaLstTradeSellerOfflineOrderCancelAPIResponseModel is 供应商-线下订单-取消接口 成功返回结果

type AlibabaLstTradeSellerOfflineOrderCancelResult

type AlibabaLstTradeSellerOfflineOrderCancelResult struct {
	// 系统自动生成
	ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"`
	// 错误码
	ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"`
	// 是否成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
	// 是否取消成功
	Content bool `json:"content,omitempty" xml:"content,omitempty"`
}

AlibabaLstTradeSellerOfflineOrderCancelResult 结构体

type AlibabaLstTradeSellerOfflineOrderQueryAPIRequest added in v1.2.0

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

AlibabaLstTradeSellerOfflineOrderQueryAPIRequest 供应商-线下订单-查询接口 API请求 alibaba.lst.trade.seller.offline.order.query

供应商线下订单数据上传后查询物流状态

func NewAlibabaLstTradeSellerOfflineOrderQueryRequest

func NewAlibabaLstTradeSellerOfflineOrderQueryRequest() *AlibabaLstTradeSellerOfflineOrderQueryAPIRequest

NewAlibabaLstTradeSellerOfflineOrderQueryRequest 初始化AlibabaLstTradeSellerOfflineOrderQueryAPIRequest对象

func (AlibabaLstTradeSellerOfflineOrderQueryAPIRequest) GetApiMethodName added in v1.2.0

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaLstTradeSellerOfflineOrderQueryAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaLstTradeSellerOfflineOrderQueryAPIRequest) GetOfflineOrderQueryParam added in v1.2.0

GetOfflineOrderQueryParam OfflineOrderQueryParam Getter

func (AlibabaLstTradeSellerOfflineOrderQueryAPIRequest) GetRawParams added in v1.2.8

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

func (*AlibabaLstTradeSellerOfflineOrderQueryAPIRequest) SetOfflineOrderQueryParam added in v1.2.0

func (r *AlibabaLstTradeSellerOfflineOrderQueryAPIRequest) SetOfflineOrderQueryParam(_offlineOrderQueryParam *LstOfflineOrderQueryParam) error

SetOfflineOrderQueryParam is OfflineOrderQueryParam Setter 入参

type AlibabaLstTradeSellerOfflineOrderQueryAPIResponse

type AlibabaLstTradeSellerOfflineOrderQueryAPIResponse struct {
	model.CommonResponse
	AlibabaLstTradeSellerOfflineOrderQueryAPIResponseModel
}

AlibabaLstTradeSellerOfflineOrderQueryAPIResponse 供应商-线下订单-查询接口 API返回值 alibaba.lst.trade.seller.offline.order.query

供应商线下订单数据上传后查询物流状态

type AlibabaLstTradeSellerOfflineOrderQueryAPIResponseModel added in v1.2.0

type AlibabaLstTradeSellerOfflineOrderQueryAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_lst_trade_seller_offline_order_query_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 接口返回model
	Result *AlibabaLstTradeSellerOfflineOrderQueryResult `json:"result,omitempty" xml:"result,omitempty"`
}

AlibabaLstTradeSellerOfflineOrderQueryAPIResponseModel is 供应商-线下订单-查询接口 成功返回结果

type AlibabaLstTradeSellerOfflineOrderQueryResult

type AlibabaLstTradeSellerOfflineOrderQueryResult struct {
	// 系统自动生成
	ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"`
	// 错误码
	ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"`
	// 主订单
	Content *Content `json:"content,omitempty" xml:"content,omitempty"`
	// 是否成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

AlibabaLstTradeSellerOfflineOrderQueryResult 结构体

type AlibabaLstTradeSellerOfflineOrderUploadAPIRequest added in v1.2.0

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

AlibabaLstTradeSellerOfflineOrderUploadAPIRequest 供应商-线下订单-导入接口 API请求 alibaba.lst.trade.seller.offline.order.upload

供应商线下订单数据上传、实现和零售通本地云仓订单的共配

func NewAlibabaLstTradeSellerOfflineOrderUploadRequest

func NewAlibabaLstTradeSellerOfflineOrderUploadRequest() *AlibabaLstTradeSellerOfflineOrderUploadAPIRequest

NewAlibabaLstTradeSellerOfflineOrderUploadRequest 初始化AlibabaLstTradeSellerOfflineOrderUploadAPIRequest对象

func (AlibabaLstTradeSellerOfflineOrderUploadAPIRequest) GetApiMethodName added in v1.2.0

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaLstTradeSellerOfflineOrderUploadAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaLstTradeSellerOfflineOrderUploadAPIRequest) GetOfflineOrderUploadParam added in v1.2.0

GetOfflineOrderUploadParam OfflineOrderUploadParam Getter

func (AlibabaLstTradeSellerOfflineOrderUploadAPIRequest) GetRawParams added in v1.2.8

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

func (*AlibabaLstTradeSellerOfflineOrderUploadAPIRequest) SetOfflineOrderUploadParam added in v1.2.0

func (r *AlibabaLstTradeSellerOfflineOrderUploadAPIRequest) SetOfflineOrderUploadParam(_offlineOrderUploadParam *LstOffLineOrderUploadParam) error

SetOfflineOrderUploadParam is OfflineOrderUploadParam Setter 入参

type AlibabaLstTradeSellerOfflineOrderUploadAPIResponse

type AlibabaLstTradeSellerOfflineOrderUploadAPIResponse struct {
	model.CommonResponse
	AlibabaLstTradeSellerOfflineOrderUploadAPIResponseModel
}

AlibabaLstTradeSellerOfflineOrderUploadAPIResponse 供应商-线下订单-导入接口 API返回值 alibaba.lst.trade.seller.offline.order.upload

供应商线下订单数据上传、实现和零售通本地云仓订单的共配

type AlibabaLstTradeSellerOfflineOrderUploadAPIResponseModel added in v1.2.0

type AlibabaLstTradeSellerOfflineOrderUploadAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_lst_trade_seller_offline_order_upload_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 接口返回model
	Result *AlibabaLstTradeSellerOfflineOrderUploadResult `json:"result,omitempty" xml:"result,omitempty"`
}

AlibabaLstTradeSellerOfflineOrderUploadAPIResponseModel is 供应商-线下订单-导入接口 成功返回结果

type AlibabaLstTradeSellerOfflineOrderUploadResult

type AlibabaLstTradeSellerOfflineOrderUploadResult struct {
	// 系统自动生成
	ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"`
	// 错误码
	ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"`
	// 出货单id
	Content int64 `json:"content,omitempty" xml:"content,omitempty"`
	// 是否成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

AlibabaLstTradeSellerOfflineOrderUploadResult 结构体

type ContactParam

type ContactParam struct {
	// 联系人姓名
	ContactName string `json:"contact_name,omitempty" xml:"contact_name,omitempty"`
	// 手机号为11位
	ContactMobile string `json:"contact_mobile,omitempty" xml:"contact_mobile,omitempty"`
	// 电话
	ContactPhone string `json:"contact_phone,omitempty" xml:"contact_phone,omitempty"`
}

ContactParam 结构体

type Content

type Content struct {
	// 子订单
	SubOrders []SubOrders `json:"sub_orders,omitempty" xml:"sub_orders>sub_orders,omitempty"`
	// 揽收时间
	PickTime string `json:"pick_time,omitempty" xml:"pick_time,omitempty"`
	// 签收时间
	SignTime string `json:"sign_time,omitempty" xml:"sign_time,omitempty"`
	// 外单主订单号
	OutOrderId string `json:"out_order_id,omitempty" xml:"out_order_id,omitempty"`
	// 车辆信息
	VehicleInfo string `json:"vehicle_info,omitempty" xml:"vehicle_info,omitempty"`
	// 司机手机号
	DriverMobile string `json:"driver_mobile,omitempty" xml:"driver_mobile,omitempty"`
	// 司机
	DriverName string `json:"driver_name,omitempty" xml:"driver_name,omitempty"`
	// * 发货单状态 * NEW          ---> 新建 * LOAD_WAIT    ---> 待装车 * LOAD_SUCCESS  ---> 已装车 * SIGN_SUCCESS  ---> 签收、部分签收 * SIGN_FAILED   ---> 拒签 * CANCEL        ---> 取消
	ShipStatus string `json:"ship_status,omitempty" xml:"ship_status,omitempty"`
	// 出库时间
	OutBoundTime string `json:"out_bound_time,omitempty" xml:"out_bound_time,omitempty"`
	// 供应商userId
	SupplierUserId int64 `json:"supplier_user_id,omitempty" xml:"supplier_user_id,omitempty"`
	// 零售通订单id
	LstOrderId int64 `json:"lst_order_id,omitempty" xml:"lst_order_id,omitempty"`
}

Content 结构体

type LstOffLineOrderUploadParam

type LstOffLineOrderUploadParam struct {
	// 子订单
	SubOrders []SubOrderParam `json:"sub_orders,omitempty" xml:"sub_orders>sub_order_param,omitempty"`
	// 外部订单号,保证在商家下唯一
	OutOrderId string `json:"out_order_id,omitempty" xml:"out_order_id,omitempty"`
	// 订单创建时间
	OrderCreateTime string `json:"order_create_time,omitempty" xml:"order_create_time,omitempty"`
	// 订单支付时间
	OrderPayTime string `json:"order_pay_time,omitempty" xml:"order_pay_time,omitempty"`
	// 仓库名称
	WarehouseName string `json:"warehouse_name,omitempty" xml:"warehouse_name,omitempty"`
	// 小店名称
	ShopName string `json:"shop_name,omitempty" xml:"shop_name,omitempty"`
	// erp小店id
	OutShopId string `json:"out_shop_id,omitempty" xml:"out_shop_id,omitempty"`
	// 买家备注
	BuyerMessage string `json:"buyer_message,omitempty" xml:"buyer_message,omitempty"`
	// 订单支付金额
	PayAmount int64 `json:"pay_amount,omitempty" xml:"pay_amount,omitempty"`
	// 零售通小店id
	LstShopId int64 `json:"lst_shop_id,omitempty" xml:"lst_shop_id,omitempty"`
	// 收货人联系方式
	ReceiverContact *ContactParam `json:"receiver_contact,omitempty" xml:"receiver_contact,omitempty"`
	// 发货人联系方式
	SenderContact *ContactParam `json:"sender_contact,omitempty" xml:"sender_contact,omitempty"`
	// 收货地址
	ReceiverAddress *AddressParam `json:"receiver_address,omitempty" xml:"receiver_address,omitempty"`
}

LstOffLineOrderUploadParam 结构体

type LstOfflineOrderCancalParam

type LstOfflineOrderCancalParam struct {
	// 买家手机号
	BuyerMobile string `json:"buyer_mobile,omitempty" xml:"buyer_mobile,omitempty"`
	// 外部主订单号
	OutOrderId string `json:"out_order_id,omitempty" xml:"out_order_id,omitempty"`
}

LstOfflineOrderCancalParam 结构体

type LstOfflineOrderQueryParam

type LstOfflineOrderQueryParam struct {
	// 外部主订单号
	OutOrderId string `json:"out_order_id,omitempty" xml:"out_order_id,omitempty"`
	// 买家手机号
	BuyerMobile string `json:"buyer_mobile,omitempty" xml:"buyer_mobile,omitempty"`
}

LstOfflineOrderQueryParam 结构体

type SubOrderParam

type SubOrderParam struct {
	// 外部erp子单号
	SubOrderId string `json:"sub_order_id,omitempty" xml:"sub_order_id,omitempty"`
	// 商品名称
	ItemName string `json:"item_name,omitempty" xml:"item_name,omitempty"`
	// erp商品编码
	OutItemCode string `json:"out_item_code,omitempty" xml:"out_item_code,omitempty"`
	// 商品条码
	ItemBarCode string `json:"item_bar_code,omitempty" xml:"item_bar_code,omitempty"`
	// 计量单位/规格 箱/个
	ItemUnit string `json:"item_unit,omitempty" xml:"item_unit,omitempty"`
	// lst商品id
	ItemId int64 `json:"item_id,omitempty" xml:"item_id,omitempty"`
	// lst货品id
	ScItemId int64 `json:"sc_item_id,omitempty" xml:"sc_item_id,omitempty"`
	// 商品单价,单位:分
	ItemPrice int64 `json:"item_price,omitempty" xml:"item_price,omitempty"`
	// 商品数量
	ItemQuantity int64 `json:"item_quantity,omitempty" xml:"item_quantity,omitempty"`
	// 支付金额,单位:分
	PayAmount int64 `json:"pay_amount,omitempty" xml:"pay_amount,omitempty"`
	// 长 单位: mm
	Length int64 `json:"length,omitempty" xml:"length,omitempty"`
	// 宽 单位: mm
	Width int64 `json:"width,omitempty" xml:"width,omitempty"`
	// 高 单位: mm
	Height int64 `json:"height,omitempty" xml:"height,omitempty"`
	// 重量 单位:克
	Weight int64 `json:"weight,omitempty" xml:"weight,omitempty"`
	// 体积 单位:立方毫米
	Volume int64 `json:"volume,omitempty" xml:"volume,omitempty"`
}

SubOrderParam 结构体

type SubOrders

type SubOrders struct {
	// 外部商品编码
	OutItemCode string `json:"out_item_code,omitempty" xml:"out_item_code,omitempty"`
	// 商品条码
	ItemBarCode string `json:"item_bar_code,omitempty" xml:"item_bar_code,omitempty"`
	// 商品名称
	ItemName string `json:"item_name,omitempty" xml:"item_name,omitempty"`
	// 零售通子订单号
	LstSubOrderId string `json:"lst_sub_order_id,omitempty" xml:"lst_sub_order_id,omitempty"`
	// 外部子订单号
	OutSubOrderId string `json:"out_sub_order_id,omitempty" xml:"out_sub_order_id,omitempty"`
	// 商品数量
	ItemQuantity int64 `json:"item_quantity,omitempty" xml:"item_quantity,omitempty"`
	// 揽收数量
	PickQuantity int64 `json:"pick_quantity,omitempty" xml:"pick_quantity,omitempty"`
	// 签收数量
	SignQuantity int64 `json:"sign_quantity,omitempty" xml:"sign_quantity,omitempty"`
}

SubOrders 结构体

Jump to

Keyboard shortcuts

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