waybill

package
v1.2.1 Latest Latest
Warning

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

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

Documentation

Overview

电子面单API model

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

type Address struct {
	// 市
	City string `json:"city,omitempty" xml:"city,omitempty"`
	// 详细地址
	Detail string `json:"detail,omitempty" xml:"detail,omitempty"`
	// 区
	District string `json:"district,omitempty" xml:"district,omitempty"`
	// 省
	Province string `json:"province,omitempty" xml:"province,omitempty"`
	// 街道
	Town string `json:"town,omitempty" xml:"town,omitempty"`
}

Address 结构体

type AddressArea

type AddressArea struct {
	// 市
	City string `json:"city,omitempty" xml:"city,omitempty"`
	// 省
	Province string `json:"province,omitempty" xml:"province,omitempty"`
}

AddressArea 结构体

type AddressDto

type AddressDto struct {
	// 城市,长度小于20
	City string `json:"city,omitempty" xml:"city,omitempty"`
	// 详细地址,长度小于256
	Detail string `json:"detail,omitempty" xml:"detail,omitempty"`
	// 区,长度小于20
	District string `json:"district,omitempty" xml:"district,omitempty"`
	// 省,长度小于20
	Province string `json:"province,omitempty" xml:"province,omitempty"`
	// 街道,长度小于30
	Town string `json:"town,omitempty" xml:"town,omitempty"`
}

AddressDto 结构体

type CainiaoCloudprintClientinfoPutAPIRequest added in v1.2.0

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

云打印客户端监控信息收集 API请求 cainiao.cloudprint.clientinfo.put

云打印客户端监控信息收集

func NewCainiaoCloudprintClientinfoPutRequest

func NewCainiaoCloudprintClientinfoPutRequest() *CainiaoCloudprintClientinfoPutAPIRequest

NewCainiaoCloudprintClientinfoPutRequest 初始化CainiaoCloudprintClientinfoPutAPIRequest对象

func (CainiaoCloudprintClientinfoPutAPIRequest) GetApiMethodName added in v1.2.0

func (r CainiaoCloudprintClientinfoPutAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (CainiaoCloudprintClientinfoPutAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (CainiaoCloudprintClientinfoPutAPIRequest) GetJsonData added in v1.2.0

Get JsonData Getter

func (*CainiaoCloudprintClientinfoPutAPIRequest) SetJsonData added in v1.2.0

func (r *CainiaoCloudprintClientinfoPutAPIRequest) SetJsonData(_jsonData string) error

Set is JsonData Setter 客户端上传json数据

type CainiaoCloudprintClientinfoPutAPIResponse

type CainiaoCloudprintClientinfoPutAPIResponse struct {
	model.CommonResponse
	CainiaoCloudprintClientinfoPutAPIResponseModel
}
CainiaoCloudprintClientinfoPutAPIResponse

云打印客户端监控信息收集 API返回值 cainiao.cloudprint.clientinfo.put

云打印客户端监控信息收集

type CainiaoCloudprintClientinfoPutAPIResponseModel added in v1.2.0

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

CainiaoCloudprintClientinfoPutAPIResponseModel is 云打印客户端监控信息收集 成功返回结果

type CainiaoCloudprintCmdprintRenderAPIRequest added in v1.2.0

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

生成打印机渲染命令(通过打印机命令打印) API请求 cainiao.cloudprint.cmdprint.render

isv 进行无线打印,需要将渲染数据传给打印机,通过生成打印机命令的方式能够最大限度的减少移动设备和打印机之间通信数据量。

func NewCainiaoCloudprintCmdprintRenderRequest

func NewCainiaoCloudprintCmdprintRenderRequest() *CainiaoCloudprintCmdprintRenderAPIRequest

NewCainiaoCloudprintCmdprintRenderRequest 初始化CainiaoCloudprintCmdprintRenderAPIRequest对象

func (CainiaoCloudprintCmdprintRenderAPIRequest) GetApiMethodName added in v1.2.0

GetApiMethodName IRequest interface 方法, 获取Api method

func (CainiaoCloudprintCmdprintRenderAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (CainiaoCloudprintCmdprintRenderAPIRequest) GetParams added in v1.2.0

Get Params Getter

func (*CainiaoCloudprintCmdprintRenderAPIRequest) SetParams added in v1.2.0

Set is Params Setter 参数对象

type CainiaoCloudprintCmdprintRenderAPIResponse

type CainiaoCloudprintCmdprintRenderAPIResponse struct {
	model.CommonResponse
	CainiaoCloudprintCmdprintRenderAPIResponseModel
}
CainiaoCloudprintCmdprintRenderAPIResponse

生成打印机渲染命令(通过打印机命令打印) API返回值 cainiao.cloudprint.cmdprint.render

isv 进行无线打印,需要将渲染数据传给打印机,通过生成打印机命令的方式能够最大限度的减少移动设备和打印机之间通信数据量。

type CainiaoCloudprintCmdprintRenderAPIResponseModel added in v1.2.0

type CainiaoCloudprintCmdprintRenderAPIResponseModel struct {
	XMLName xml.Name `xml:"cainiao_cloudprint_cmdprint_render_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 0成功,非0失败
	RetCode string `json:"ret_code,omitempty" xml:"ret_code,omitempty"`
	// 错误信息
	RetMsg string `json:"ret_msg,omitempty" xml:"ret_msg,omitempty"`
	// 指令集内容串
	CmdContent string `json:"cmd_content,omitempty" xml:"cmd_content,omitempty"`
	// 指令集编码方式:origin-原串 gzip-采用gzip压缩并base64编码
	CmdEncoding string `json:"cmd_encoding,omitempty" xml:"cmd_encoding,omitempty"`
}

CainiaoCloudprintCmdprintRenderAPIResponseModel is 生成打印机渲染命令(通过打印机命令打印) 成功返回结果

type CainiaoCloudprintCustomareaUpdateAPIRequest added in v1.2.0

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

自定义区内容更新 API请求 cainiao.cloudprint.customarea.update

自定义区内容更新

func NewCainiaoCloudprintCustomareaUpdateRequest

func NewCainiaoCloudprintCustomareaUpdateRequest() *CainiaoCloudprintCustomareaUpdateAPIRequest

NewCainiaoCloudprintCustomareaUpdateRequest 初始化CainiaoCloudprintCustomareaUpdateAPIRequest对象

func (CainiaoCloudprintCustomareaUpdateAPIRequest) GetApiMethodName added in v1.2.0

GetApiMethodName IRequest interface 方法, 获取Api method

func (CainiaoCloudprintCustomareaUpdateAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (CainiaoCloudprintCustomareaUpdateAPIRequest) GetCustomAreaContent added in v1.2.0

func (r CainiaoCloudprintCustomareaUpdateAPIRequest) GetCustomAreaContent() string

Get CustomAreaContent Getter

func (CainiaoCloudprintCustomareaUpdateAPIRequest) GetCustomAreaId added in v1.2.0

Get CustomAreaId Getter

func (CainiaoCloudprintCustomareaUpdateAPIRequest) GetCustomAreaName added in v1.2.0

Get CustomAreaName Getter

func (*CainiaoCloudprintCustomareaUpdateAPIRequest) SetCustomAreaContent added in v1.2.0

func (r *CainiaoCloudprintCustomareaUpdateAPIRequest) SetCustomAreaContent(_customAreaContent string) error

Set is CustomAreaContent Setter 自定义区内容(可修改)

func (*CainiaoCloudprintCustomareaUpdateAPIRequest) SetCustomAreaId added in v1.2.0

func (r *CainiaoCloudprintCustomareaUpdateAPIRequest) SetCustomAreaId(_customAreaId int64) error

Set is CustomAreaId Setter 自定义区id(不可修改)

func (*CainiaoCloudprintCustomareaUpdateAPIRequest) SetCustomAreaName added in v1.2.0

func (r *CainiaoCloudprintCustomareaUpdateAPIRequest) SetCustomAreaName(_customAreaName string) error

Set is CustomAreaName Setter 自定义区名称(可修改)

type CainiaoCloudprintCustomareaUpdateAPIResponse

type CainiaoCloudprintCustomareaUpdateAPIResponse struct {
	model.CommonResponse
	CainiaoCloudprintCustomareaUpdateAPIResponseModel
}
CainiaoCloudprintCustomareaUpdateAPIResponse

自定义区内容更新 API返回值 cainiao.cloudprint.customarea.update

自定义区内容更新

type CainiaoCloudprintCustomareaUpdateAPIResponseModel added in v1.2.0

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

CainiaoCloudprintCustomareaUpdateAPIResponseModel is 自定义区内容更新 成功返回结果

type CainiaoCloudprintCustomaresGetAPIRequest added in v1.2.0

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

获取商家的自定义区模板信息 API请求 cainiao.cloudprint.customares.get

供isv使用,获取商家的自定义区的模板信息

func NewCainiaoCloudprintCustomaresGetRequest

func NewCainiaoCloudprintCustomaresGetRequest() *CainiaoCloudprintCustomaresGetAPIRequest

NewCainiaoCloudprintCustomaresGetRequest 初始化CainiaoCloudprintCustomaresGetAPIRequest对象

func (CainiaoCloudprintCustomaresGetAPIRequest) GetApiMethodName added in v1.2.0

func (r CainiaoCloudprintCustomaresGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (CainiaoCloudprintCustomaresGetAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (CainiaoCloudprintCustomaresGetAPIRequest) GetTemplateId added in v1.2.0

Get TemplateId Getter

func (*CainiaoCloudprintCustomaresGetAPIRequest) SetTemplateId added in v1.2.0

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

Set is TemplateId Setter 用户使用的标准模板id

type CainiaoCloudprintCustomaresGetAPIResponse

type CainiaoCloudprintCustomaresGetAPIResponse struct {
	model.CommonResponse
	CainiaoCloudprintCustomaresGetAPIResponseModel
}
CainiaoCloudprintCustomaresGetAPIResponse

获取商家的自定义区模板信息 API返回值 cainiao.cloudprint.customares.get

供isv使用,获取商家的自定义区的模板信息

type CainiaoCloudprintCustomaresGetAPIResponseModel added in v1.2.0

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

CainiaoCloudprintCustomaresGetAPIResponseModel is 获取商家的自定义区模板信息 成功返回结果

type CainiaoCloudprintIsvResourcesGetAPIRequest added in v1.2.0

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

isv资源查询 API请求 cainiao.cloudprint.isv.resources.get

isv资源查询,包括isv模板、打印项、预设的自定义区等

func NewCainiaoCloudprintIsvResourcesGetRequest

func NewCainiaoCloudprintIsvResourcesGetRequest() *CainiaoCloudprintIsvResourcesGetAPIRequest

NewCainiaoCloudprintIsvResourcesGetRequest 初始化CainiaoCloudprintIsvResourcesGetAPIRequest对象

func (CainiaoCloudprintIsvResourcesGetAPIRequest) GetApiMethodName added in v1.2.0

GetApiMethodName IRequest interface 方法, 获取Api method

func (CainiaoCloudprintIsvResourcesGetAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (CainiaoCloudprintIsvResourcesGetAPIRequest) GetIsvResourceType added in v1.2.0

func (r CainiaoCloudprintIsvResourcesGetAPIRequest) GetIsvResourceType() string

Get IsvResourceType Getter

func (*CainiaoCloudprintIsvResourcesGetAPIRequest) SetIsvResourceType added in v1.2.0

func (r *CainiaoCloudprintIsvResourcesGetAPIRequest) SetIsvResourceType(_isvResourceType string) error

Set is IsvResourceType Setter isv资源类型,分为:TEMPLATE(表示模板),PRINT_ITEM(打印项),CUSTOM_AREA(预设自定义区)

type CainiaoCloudprintIsvResourcesGetAPIResponse

type CainiaoCloudprintIsvResourcesGetAPIResponse struct {
	model.CommonResponse
	CainiaoCloudprintIsvResourcesGetAPIResponseModel
}
CainiaoCloudprintIsvResourcesGetAPIResponse

isv资源查询 API返回值 cainiao.cloudprint.isv.resources.get

isv资源查询,包括isv模板、打印项、预设的自定义区等

type CainiaoCloudprintIsvResourcesGetAPIResponseModel added in v1.2.0

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

CainiaoCloudprintIsvResourcesGetAPIResponseModel is isv资源查询 成功返回结果

type CainiaoCloudprintIsvtemplatesGetAPIRequest added in v1.2.0

type CainiaoCloudprintIsvtemplatesGetAPIRequest struct {
	model.Params
}
CainiaoCloudprintIsvtemplatesGetAPIRequest

获取商家使用的标准模板 API请求 cainiao.cloudprint.isvtemplates.get

获取商家使用的标准模板

func NewCainiaoCloudprintIsvtemplatesGetRequest

func NewCainiaoCloudprintIsvtemplatesGetRequest() *CainiaoCloudprintIsvtemplatesGetAPIRequest

NewCainiaoCloudprintIsvtemplatesGetRequest 初始化CainiaoCloudprintIsvtemplatesGetAPIRequest对象

func (CainiaoCloudprintIsvtemplatesGetAPIRequest) GetApiMethodName added in v1.2.0

GetApiMethodName IRequest interface 方法, 获取Api method

func (CainiaoCloudprintIsvtemplatesGetAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

type CainiaoCloudprintIsvtemplatesGetAPIResponse

type CainiaoCloudprintIsvtemplatesGetAPIResponse struct {
	model.CommonResponse
	CainiaoCloudprintIsvtemplatesGetAPIResponseModel
}
CainiaoCloudprintIsvtemplatesGetAPIResponse

获取商家使用的标准模板 API返回值 cainiao.cloudprint.isvtemplates.get

获取商家使用的标准模板

type CainiaoCloudprintIsvtemplatesGetAPIResponseModel added in v1.2.0

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

CainiaoCloudprintIsvtemplatesGetAPIResponseModel is 获取商家使用的标准模板 成功返回结果

type CainiaoCloudprintMystdtemplatesGetAPIRequest added in v1.2.0

type CainiaoCloudprintMystdtemplatesGetAPIRequest struct {
	model.Params
}
CainiaoCloudprintMystdtemplatesGetAPIRequest

获取用户使用的菜鸟电子面单模板信息 API请求 cainiao.cloudprint.mystdtemplates.get

获取用户使用的菜鸟电子面单

func NewCainiaoCloudprintMystdtemplatesGetRequest

func NewCainiaoCloudprintMystdtemplatesGetRequest() *CainiaoCloudprintMystdtemplatesGetAPIRequest

NewCainiaoCloudprintMystdtemplatesGetRequest 初始化CainiaoCloudprintMystdtemplatesGetAPIRequest对象

func (CainiaoCloudprintMystdtemplatesGetAPIRequest) GetApiMethodName added in v1.2.0

GetApiMethodName IRequest interface 方法, 获取Api method

func (CainiaoCloudprintMystdtemplatesGetAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

type CainiaoCloudprintMystdtemplatesGetAPIResponse

type CainiaoCloudprintMystdtemplatesGetAPIResponse struct {
	model.CommonResponse
	CainiaoCloudprintMystdtemplatesGetAPIResponseModel
}
CainiaoCloudprintMystdtemplatesGetAPIResponse

获取用户使用的菜鸟电子面单模板信息 API返回值 cainiao.cloudprint.mystdtemplates.get

获取用户使用的菜鸟电子面单

type CainiaoCloudprintMystdtemplatesGetAPIResponseModel added in v1.2.0

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

CainiaoCloudprintMystdtemplatesGetAPIResponseModel is 获取用户使用的菜鸟电子面单模板信息 成功返回结果

type CainiaoCloudprintSingleCustomareaGetAPIRequest added in v1.2.0

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

获取商家单一自定义区 API请求 cainiao.cloudprint.single.customarea.get

商家所有快递公司模板只有一个自定义区

func NewCainiaoCloudprintSingleCustomareaGetRequest

func NewCainiaoCloudprintSingleCustomareaGetRequest() *CainiaoCloudprintSingleCustomareaGetAPIRequest

NewCainiaoCloudprintSingleCustomareaGetRequest 初始化CainiaoCloudprintSingleCustomareaGetAPIRequest对象

func (CainiaoCloudprintSingleCustomareaGetAPIRequest) GetApiMethodName added in v1.2.0

GetApiMethodName IRequest interface 方法, 获取Api method

func (CainiaoCloudprintSingleCustomareaGetAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (CainiaoCloudprintSingleCustomareaGetAPIRequest) GetSellerId added in v1.2.0

Get SellerId Getter

func (*CainiaoCloudprintSingleCustomareaGetAPIRequest) SetSellerId added in v1.2.0

Set is SellerId Setter 这是商家用户id

type CainiaoCloudprintSingleCustomareaGetAPIResponse

type CainiaoCloudprintSingleCustomareaGetAPIResponse struct {
	model.CommonResponse
	CainiaoCloudprintSingleCustomareaGetAPIResponseModel
}
CainiaoCloudprintSingleCustomareaGetAPIResponse

获取商家单一自定义区 API返回值 cainiao.cloudprint.single.customarea.get

商家所有快递公司模板只有一个自定义区

type CainiaoCloudprintSingleCustomareaGetAPIResponseModel added in v1.2.0

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

CainiaoCloudprintSingleCustomareaGetAPIResponseModel is 获取商家单一自定义区 成功返回结果

type CainiaoCloudprintStdtemplatesGetAPIRequest added in v1.2.0

type CainiaoCloudprintStdtemplatesGetAPIRequest struct {
	model.Params
}
CainiaoCloudprintStdtemplatesGetAPIRequest

获取所有的菜鸟标准电子面单模板 API请求 cainiao.cloudprint.stdtemplates.get

获取菜鸟标准电子面单模板

func NewCainiaoCloudprintStdtemplatesGetRequest

func NewCainiaoCloudprintStdtemplatesGetRequest() *CainiaoCloudprintStdtemplatesGetAPIRequest

NewCainiaoCloudprintStdtemplatesGetRequest 初始化CainiaoCloudprintStdtemplatesGetAPIRequest对象

func (CainiaoCloudprintStdtemplatesGetAPIRequest) GetApiMethodName added in v1.2.0

GetApiMethodName IRequest interface 方法, 获取Api method

func (CainiaoCloudprintStdtemplatesGetAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

type CainiaoCloudprintStdtemplatesGetAPIResponse

type CainiaoCloudprintStdtemplatesGetAPIResponse struct {
	model.CommonResponse
	CainiaoCloudprintStdtemplatesGetAPIResponseModel
}
CainiaoCloudprintStdtemplatesGetAPIResponse

获取所有的菜鸟标准电子面单模板 API返回值 cainiao.cloudprint.stdtemplates.get

获取菜鸟标准电子面单模板

type CainiaoCloudprintStdtemplatesGetAPIResponseModel added in v1.2.0

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

CainiaoCloudprintStdtemplatesGetAPIResponseModel is 获取所有的菜鸟标准电子面单模板 成功返回结果

type CainiaoCloudprintTemplatesMigrateAPIRequest added in v1.2.0

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

云打印模板迁移接口 API请求 cainiao.cloudprint.templates.migrate

云打印模板迁移接口

func NewCainiaoCloudprintTemplatesMigrateRequest

func NewCainiaoCloudprintTemplatesMigrateRequest() *CainiaoCloudprintTemplatesMigrateAPIRequest

NewCainiaoCloudprintTemplatesMigrateRequest 初始化CainiaoCloudprintTemplatesMigrateAPIRequest对象

func (CainiaoCloudprintTemplatesMigrateAPIRequest) GetApiMethodName added in v1.2.0

GetApiMethodName IRequest interface 方法, 获取Api method

func (CainiaoCloudprintTemplatesMigrateAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (CainiaoCloudprintTemplatesMigrateAPIRequest) GetCustomAreaContent added in v1.2.0

func (r CainiaoCloudprintTemplatesMigrateAPIRequest) GetCustomAreaContent() string

Get CustomAreaContent Getter

func (CainiaoCloudprintTemplatesMigrateAPIRequest) GetCustomAreaName added in v1.2.0

Get CustomAreaName Getter

func (CainiaoCloudprintTemplatesMigrateAPIRequest) GetTempalteId added in v1.2.0

Get TempalteId Getter

func (*CainiaoCloudprintTemplatesMigrateAPIRequest) SetCustomAreaContent added in v1.2.0

func (r *CainiaoCloudprintTemplatesMigrateAPIRequest) SetCustomAreaContent(_customAreaContent string) error

Set is CustomAreaContent Setter 自定义区内容

func (*CainiaoCloudprintTemplatesMigrateAPIRequest) SetCustomAreaName added in v1.2.0

func (r *CainiaoCloudprintTemplatesMigrateAPIRequest) SetCustomAreaName(_customAreaName string) error

Set is CustomAreaName Setter 自定义区名称

func (*CainiaoCloudprintTemplatesMigrateAPIRequest) SetTempalteId added in v1.2.0

func (r *CainiaoCloudprintTemplatesMigrateAPIRequest) SetTempalteId(_tempalteId int64) error

Set is TempalteId Setter 标准电子面单模板的id

type CainiaoCloudprintTemplatesMigrateAPIResponse

type CainiaoCloudprintTemplatesMigrateAPIResponse struct {
	model.CommonResponse
	CainiaoCloudprintTemplatesMigrateAPIResponseModel
}
CainiaoCloudprintTemplatesMigrateAPIResponse

云打印模板迁移接口 API返回值 cainiao.cloudprint.templates.migrate

云打印模板迁移接口

type CainiaoCloudprintTemplatesMigrateAPIResponseModel added in v1.2.0

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

CainiaoCloudprintTemplatesMigrateAPIResponseModel is 云打印模板迁移接口 成功返回结果

type CainiaoSmartdeliveryStrategyWarehouseIDeleteAPIRequest added in v1.2.0

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

删除智能发货引擎仓策略 API请求 cainiao.smartdelivery.strategy.warehouse.i.delete

删除智能发货引擎仓策略

func NewCainiaoSmartdeliveryStrategyWarehouseIDeleteRequest

func NewCainiaoSmartdeliveryStrategyWarehouseIDeleteRequest() *CainiaoSmartdeliveryStrategyWarehouseIDeleteAPIRequest

NewCainiaoSmartdeliveryStrategyWarehouseIDeleteRequest 初始化CainiaoSmartdeliveryStrategyWarehouseIDeleteAPIRequest对象

func (CainiaoSmartdeliveryStrategyWarehouseIDeleteAPIRequest) GetApiMethodName added in v1.2.0

GetApiMethodName IRequest interface 方法, 获取Api method

func (CainiaoSmartdeliveryStrategyWarehouseIDeleteAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (CainiaoSmartdeliveryStrategyWarehouseIDeleteAPIRequest) GetWarehouseId added in v1.2.0

Get WarehouseId Getter

func (*CainiaoSmartdeliveryStrategyWarehouseIDeleteAPIRequest) SetWarehouseId added in v1.2.0

func (r *CainiaoSmartdeliveryStrategyWarehouseIDeleteAPIRequest) SetWarehouseId(_warehouseId int64) error

Set is WarehouseId Setter 仓id

type CainiaoSmartdeliveryStrategyWarehouseIDeleteAPIResponse

type CainiaoSmartdeliveryStrategyWarehouseIDeleteAPIResponse struct {
	model.CommonResponse
	CainiaoSmartdeliveryStrategyWarehouseIDeleteAPIResponseModel
}
CainiaoSmartdeliveryStrategyWarehouseIDeleteAPIResponse

删除智能发货引擎仓策略 API返回值 cainiao.smartdelivery.strategy.warehouse.i.delete

删除智能发货引擎仓策略

type CainiaoSmartdeliveryStrategyWarehouseIDeleteAPIResponseModel added in v1.2.0

type CainiaoSmartdeliveryStrategyWarehouseIDeleteAPIResponseModel struct {
	XMLName xml.Name `xml:"cainiao_smartdelivery_strategy_warehouse_i_delete_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// data
	IsDeleteSuccess bool `json:"is_delete_success,omitempty" xml:"is_delete_success,omitempty"`
}

CainiaoSmartdeliveryStrategyWarehouseIDeleteAPIResponseModel is 删除智能发货引擎仓策略 成功返回结果

type CainiaoSmartdeliveryStrategyWarehouseIUpdateAPIRequest added in v1.2.0

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

智能发货引擎策略仓设置 API请求 cainiao.smartdelivery.strategy.warehouse.i.update

智能发货引擎发货策略设置仓维度

func NewCainiaoSmartdeliveryStrategyWarehouseIUpdateRequest

func NewCainiaoSmartdeliveryStrategyWarehouseIUpdateRequest() *CainiaoSmartdeliveryStrategyWarehouseIUpdateAPIRequest

NewCainiaoSmartdeliveryStrategyWarehouseIUpdateRequest 初始化CainiaoSmartdeliveryStrategyWarehouseIUpdateAPIRequest对象

func (CainiaoSmartdeliveryStrategyWarehouseIUpdateAPIRequest) GetApiMethodName added in v1.2.0

GetApiMethodName IRequest interface 方法, 获取Api method

func (CainiaoSmartdeliveryStrategyWarehouseIUpdateAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (CainiaoSmartdeliveryStrategyWarehouseIUpdateAPIRequest) GetDeliveryStrategySetRequest added in v1.2.0

Get DeliveryStrategySetRequest Getter

func (*CainiaoSmartdeliveryStrategyWarehouseIUpdateAPIRequest) SetDeliveryStrategySetRequest added in v1.2.0

func (r *CainiaoSmartdeliveryStrategyWarehouseIUpdateAPIRequest) SetDeliveryStrategySetRequest(_deliveryStrategySetRequest *DeliveryStrategySetRequest) error

Set is DeliveryStrategySetRequest Setter 智能发货设置请求参数

type CainiaoSmartdeliveryStrategyWarehouseIUpdateAPIResponse

type CainiaoSmartdeliveryStrategyWarehouseIUpdateAPIResponse struct {
	model.CommonResponse
	CainiaoSmartdeliveryStrategyWarehouseIUpdateAPIResponseModel
}
CainiaoSmartdeliveryStrategyWarehouseIUpdateAPIResponse

智能发货引擎策略仓设置 API返回值 cainiao.smartdelivery.strategy.warehouse.i.update

智能发货引擎发货策略设置仓维度

type CainiaoSmartdeliveryStrategyWarehouseIUpdateAPIResponseModel added in v1.2.0

type CainiaoSmartdeliveryStrategyWarehouseIUpdateAPIResponseModel struct {
	XMLName xml.Name `xml:"cainiao_smartdelivery_strategy_warehouse_i_update_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 仓信息
	WarehouseInfo *WarehouseDto `json:"warehouse_info,omitempty" xml:"warehouse_info,omitempty"`
}

CainiaoSmartdeliveryStrategyWarehouseIUpdateAPIResponseModel is 智能发货引擎策略仓设置 成功返回结果

type CainiaoWaybillIiCancelAPIRequest added in v1.2.0

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

商家取消获取的电子面单号 API请求 cainiao.waybill.ii.cancel

面单号有误需要取消的时候,调用该接口取消获取的电子面单。

func NewCainiaoWaybillIiCancelRequest

func NewCainiaoWaybillIiCancelRequest() *CainiaoWaybillIiCancelAPIRequest

NewCainiaoWaybillIiCancelRequest 初始化CainiaoWaybillIiCancelAPIRequest对象

func (CainiaoWaybillIiCancelAPIRequest) GetApiMethodName added in v1.2.0

func (r CainiaoWaybillIiCancelAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (CainiaoWaybillIiCancelAPIRequest) GetApiParams added in v1.2.0

func (r CainiaoWaybillIiCancelAPIRequest) GetApiParams() url.Values

GetApiParams IRequest interface 方法, 获取API参数

func (CainiaoWaybillIiCancelAPIRequest) GetCpCode added in v1.2.0

Get CpCode Getter

func (CainiaoWaybillIiCancelAPIRequest) GetWaybillCode added in v1.2.0

func (r CainiaoWaybillIiCancelAPIRequest) GetWaybillCode() string

Get WaybillCode Getter

func (*CainiaoWaybillIiCancelAPIRequest) SetCpCode added in v1.2.0

func (r *CainiaoWaybillIiCancelAPIRequest) SetCpCode(_cpCode string) error

Set is CpCode Setter 快递公司code

func (*CainiaoWaybillIiCancelAPIRequest) SetWaybillCode added in v1.2.0

func (r *CainiaoWaybillIiCancelAPIRequest) SetWaybillCode(_waybillCode string) error

Set is WaybillCode Setter 电子面单号

type CainiaoWaybillIiCancelAPIResponse

type CainiaoWaybillIiCancelAPIResponse struct {
	model.CommonResponse
	CainiaoWaybillIiCancelAPIResponseModel
}
CainiaoWaybillIiCancelAPIResponse

商家取消获取的电子面单号 API返回值 cainiao.waybill.ii.cancel

面单号有误需要取消的时候,调用该接口取消获取的电子面单。

type CainiaoWaybillIiCancelAPIResponseModel added in v1.2.0

type CainiaoWaybillIiCancelAPIResponseModel struct {
	XMLName xml.Name `xml:"cainiao_waybill_ii_cancel_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 调用取消是否成功
	CancelResult bool `json:"cancel_result,omitempty" xml:"cancel_result,omitempty"`
}

CainiaoWaybillIiCancelAPIResponseModel is 商家取消获取的电子面单号 成功返回结果

type CainiaoWaybillIiGetAPIRequest added in v1.2.0

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

电子面单云打印接口 API请求 cainiao.waybill.ii.get

菜鸟电子面单的云打印申请电子面单号的方法

func NewCainiaoWaybillIiGetRequest

func NewCainiaoWaybillIiGetRequest() *CainiaoWaybillIiGetAPIRequest

NewCainiaoWaybillIiGetRequest 初始化CainiaoWaybillIiGetAPIRequest对象

func (CainiaoWaybillIiGetAPIRequest) GetApiMethodName added in v1.2.0

func (r CainiaoWaybillIiGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (CainiaoWaybillIiGetAPIRequest) GetApiParams added in v1.2.0

func (r CainiaoWaybillIiGetAPIRequest) GetApiParams() url.Values

GetApiParams IRequest interface 方法, 获取API参数

func (CainiaoWaybillIiGetAPIRequest) GetParamWaybillCloudPrintApplyNewRequest added in v1.2.0

func (r CainiaoWaybillIiGetAPIRequest) GetParamWaybillCloudPrintApplyNewRequest() *WaybillCloudPrintApplyNewRequest

Get ParamWaybillCloudPrintApplyNewRequest Getter

func (*CainiaoWaybillIiGetAPIRequest) SetParamWaybillCloudPrintApplyNewRequest added in v1.2.0

func (r *CainiaoWaybillIiGetAPIRequest) SetParamWaybillCloudPrintApplyNewRequest(_paramWaybillCloudPrintApplyNewRequest *WaybillCloudPrintApplyNewRequest) error

Set is ParamWaybillCloudPrintApplyNewRequest Setter 入参信息

type CainiaoWaybillIiGetAPIResponse

type CainiaoWaybillIiGetAPIResponse struct {
	model.CommonResponse
	CainiaoWaybillIiGetAPIResponseModel
}
CainiaoWaybillIiGetAPIResponse

电子面单云打印接口 API返回值 cainiao.waybill.ii.get

菜鸟电子面单的云打印申请电子面单号的方法

type CainiaoWaybillIiGetAPIResponseModel added in v1.2.0

type CainiaoWaybillIiGetAPIResponseModel struct {
	XMLName xml.Name `xml:"cainiao_waybill_ii_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 系统自动生成
	Modules []WaybillCloudPrintResponse `json:"modules,omitempty" xml:"modules>waybill_cloud_print_response,omitempty"`
}

CainiaoWaybillIiGetAPIResponseModel is 电子面单云打印接口 成功返回结果

type CainiaoWaybillIiLogisticsdetailUrlGetAPIRequest added in v1.2.0

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

电子面单物流详情授权url获取 API请求 cainiao.waybill.ii.logisticsdetail.url.get

获取电子面单物流详情授权访问的H5 url

func NewCainiaoWaybillIiLogisticsdetailUrlGetRequest

func NewCainiaoWaybillIiLogisticsdetailUrlGetRequest() *CainiaoWaybillIiLogisticsdetailUrlGetAPIRequest

NewCainiaoWaybillIiLogisticsdetailUrlGetRequest 初始化CainiaoWaybillIiLogisticsdetailUrlGetAPIRequest对象

func (CainiaoWaybillIiLogisticsdetailUrlGetAPIRequest) GetApiMethodName added in v1.2.0

GetApiMethodName IRequest interface 方法, 获取Api method

func (CainiaoWaybillIiLogisticsdetailUrlGetAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (CainiaoWaybillIiLogisticsdetailUrlGetAPIRequest) GetCpCode added in v1.2.0

Get CpCode Getter

func (CainiaoWaybillIiLogisticsdetailUrlGetAPIRequest) GetWaybillCode added in v1.2.0

Get WaybillCode Getter

func (*CainiaoWaybillIiLogisticsdetailUrlGetAPIRequest) SetCpCode added in v1.2.0

Set is CpCode Setter 快递公司编码

func (*CainiaoWaybillIiLogisticsdetailUrlGetAPIRequest) SetWaybillCode added in v1.2.0

func (r *CainiaoWaybillIiLogisticsdetailUrlGetAPIRequest) SetWaybillCode(_waybillCode string) error

Set is WaybillCode Setter 电子面单单号

type CainiaoWaybillIiLogisticsdetailUrlGetAPIResponse

type CainiaoWaybillIiLogisticsdetailUrlGetAPIResponse struct {
	model.CommonResponse
	CainiaoWaybillIiLogisticsdetailUrlGetAPIResponseModel
}
CainiaoWaybillIiLogisticsdetailUrlGetAPIResponse

电子面单物流详情授权url获取 API返回值 cainiao.waybill.ii.logisticsdetail.url.get

获取电子面单物流详情授权访问的H5 url

type CainiaoWaybillIiLogisticsdetailUrlGetAPIResponseModel added in v1.2.0

type CainiaoWaybillIiLogisticsdetailUrlGetAPIResponseModel struct {
	XMLName xml.Name `xml:"cainiao_waybill_ii_logisticsdetail_url_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 授权访问的url
	Url string `json:"url,omitempty" xml:"url,omitempty"`
}

CainiaoWaybillIiLogisticsdetailUrlGetAPIResponseModel is 电子面单物流详情授权url获取 成功返回结果

type CainiaoWaybillIiProductAPIRequest added in v1.2.0

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

商家查询物流商产品类型接口 API请求 cainiao.waybill.ii.product

商家可以查询物流商的产品类型和服务能力。

func NewCainiaoWaybillIiProductRequest

func NewCainiaoWaybillIiProductRequest() *CainiaoWaybillIiProductAPIRequest

NewCainiaoWaybillIiProductRequest 初始化CainiaoWaybillIiProductAPIRequest对象

func (CainiaoWaybillIiProductAPIRequest) GetApiMethodName added in v1.2.0

func (r CainiaoWaybillIiProductAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (CainiaoWaybillIiProductAPIRequest) GetApiParams added in v1.2.0

func (r CainiaoWaybillIiProductAPIRequest) GetApiParams() url.Values

GetApiParams IRequest interface 方法, 获取API参数

func (CainiaoWaybillIiProductAPIRequest) GetCpCode added in v1.2.0

Get CpCode Getter

func (*CainiaoWaybillIiProductAPIRequest) SetCpCode added in v1.2.0

func (r *CainiaoWaybillIiProductAPIRequest) SetCpCode(_cpCode string) error

Set is CpCode Setter 快递公司code

type CainiaoWaybillIiProductAPIResponse

type CainiaoWaybillIiProductAPIResponse struct {
	model.CommonResponse
	CainiaoWaybillIiProductAPIResponseModel
}
CainiaoWaybillIiProductAPIResponse

商家查询物流商产品类型接口 API返回值 cainiao.waybill.ii.product

商家可以查询物流商的产品类型和服务能力。

type CainiaoWaybillIiProductAPIResponseModel added in v1.2.0

type CainiaoWaybillIiProductAPIResponseModel struct {
	XMLName xml.Name `xml:"cainiao_waybill_ii_product_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回值
	ProductTypes []WaybillProductType `json:"product_types,omitempty" xml:"product_types>waybill_product_type,omitempty"`
}

CainiaoWaybillIiProductAPIResponseModel is 商家查询物流商产品类型接口 成功返回结果

type CainiaoWaybillIiQueryByTradecodeAPIRequest added in v1.2.0

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

通过订单号查询电子面单通接口 API请求 cainiao.waybill.ii.query.by.tradecode

通过订单号查看面单的信息

func NewCainiaoWaybillIiQueryByTradecodeRequest

func NewCainiaoWaybillIiQueryByTradecodeRequest() *CainiaoWaybillIiQueryByTradecodeAPIRequest

NewCainiaoWaybillIiQueryByTradecodeRequest 初始化CainiaoWaybillIiQueryByTradecodeAPIRequest对象

func (CainiaoWaybillIiQueryByTradecodeAPIRequest) GetApiMethodName added in v1.2.0

GetApiMethodName IRequest interface 方法, 获取Api method

func (CainiaoWaybillIiQueryByTradecodeAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (CainiaoWaybillIiQueryByTradecodeAPIRequest) GetParamList added in v1.2.0

Get ParamList Getter

func (*CainiaoWaybillIiQueryByTradecodeAPIRequest) SetParamList added in v1.2.0

Set is ParamList Setter 订单号列表

type CainiaoWaybillIiQueryByTradecodeAPIResponse

type CainiaoWaybillIiQueryByTradecodeAPIResponse struct {
	model.CommonResponse
	CainiaoWaybillIiQueryByTradecodeAPIResponseModel
}
CainiaoWaybillIiQueryByTradecodeAPIResponse

通过订单号查询电子面单通接口 API返回值 cainiao.waybill.ii.query.by.tradecode

通过订单号查看面单的信息

type CainiaoWaybillIiQueryByTradecodeAPIResponseModel added in v1.2.0

type CainiaoWaybillIiQueryByTradecodeAPIResponseModel struct {
	XMLName xml.Name `xml:"cainiao_waybill_ii_query_by_tradecode_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 查询返回值
	Modules []WaybillCloudPrintWithResultDescResponse `json:"modules,omitempty" xml:"modules>waybill_cloud_print_with_result_desc_response,omitempty"`
}

CainiaoWaybillIiQueryByTradecodeAPIResponseModel is 通过订单号查询电子面单通接口 成功返回结果

type CainiaoWaybillIiQueryByWaybillcodeAPIRequest added in v1.2.0

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

通过面单号查询面单信息 API请求 cainiao.waybill.ii.query.by.waybillcode

通过面单号查看面单号的当前状态,如签收、发货、失效等。

func NewCainiaoWaybillIiQueryByWaybillcodeRequest

func NewCainiaoWaybillIiQueryByWaybillcodeRequest() *CainiaoWaybillIiQueryByWaybillcodeAPIRequest

NewCainiaoWaybillIiQueryByWaybillcodeRequest 初始化CainiaoWaybillIiQueryByWaybillcodeAPIRequest对象

func (CainiaoWaybillIiQueryByWaybillcodeAPIRequest) GetApiMethodName added in v1.2.0

GetApiMethodName IRequest interface 方法, 获取Api method

func (CainiaoWaybillIiQueryByWaybillcodeAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (CainiaoWaybillIiQueryByWaybillcodeAPIRequest) GetParamList added in v1.2.0

Get ParamList Getter

func (*CainiaoWaybillIiQueryByWaybillcodeAPIRequest) SetParamList added in v1.2.0

Set is ParamList Setter 系统自动生成

type CainiaoWaybillIiQueryByWaybillcodeAPIResponse

type CainiaoWaybillIiQueryByWaybillcodeAPIResponse struct {
	model.CommonResponse
	CainiaoWaybillIiQueryByWaybillcodeAPIResponseModel
}
CainiaoWaybillIiQueryByWaybillcodeAPIResponse

通过面单号查询面单信息 API返回值 cainiao.waybill.ii.query.by.waybillcode

通过面单号查看面单号的当前状态,如签收、发货、失效等。

type CainiaoWaybillIiQueryByWaybillcodeAPIResponseModel added in v1.2.0

type CainiaoWaybillIiQueryByWaybillcodeAPIResponseModel struct {
	XMLName xml.Name `xml:"cainiao_waybill_ii_query_by_waybillcode_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 查询返回值
	Modules []WaybillCloudPrintWithResultDescResponse `json:"modules,omitempty" xml:"modules>waybill_cloud_print_with_result_desc_response,omitempty"`
}

CainiaoWaybillIiQueryByWaybillcodeAPIResponseModel is 通过面单号查询面单信息 成功返回结果

type CainiaoWaybillIiSearchAPIRequest added in v1.2.0

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

查询面单服务订购及面单使用情况 API请求 cainiao.waybill.ii.search

获取发货地&CP开通状态&账户的使用情况

func NewCainiaoWaybillIiSearchRequest

func NewCainiaoWaybillIiSearchRequest() *CainiaoWaybillIiSearchAPIRequest

NewCainiaoWaybillIiSearchRequest 初始化CainiaoWaybillIiSearchAPIRequest对象

func (CainiaoWaybillIiSearchAPIRequest) GetApiMethodName added in v1.2.0

func (r CainiaoWaybillIiSearchAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (CainiaoWaybillIiSearchAPIRequest) GetApiParams added in v1.2.0

func (r CainiaoWaybillIiSearchAPIRequest) GetApiParams() url.Values

GetApiParams IRequest interface 方法, 获取API参数

func (CainiaoWaybillIiSearchAPIRequest) GetCpCode added in v1.2.0

Get CpCode Getter

func (*CainiaoWaybillIiSearchAPIRequest) SetCpCode added in v1.2.0

func (r *CainiaoWaybillIiSearchAPIRequest) SetCpCode(_cpCode string) error

Set is CpCode Setter 物流公司code

type CainiaoWaybillIiSearchAPIResponse

type CainiaoWaybillIiSearchAPIResponse struct {
	model.CommonResponse
	CainiaoWaybillIiSearchAPIResponseModel
}
CainiaoWaybillIiSearchAPIResponse

查询面单服务订购及面单使用情况 API返回值 cainiao.waybill.ii.search

获取发货地&CP开通状态&账户的使用情况

type CainiaoWaybillIiSearchAPIResponseModel added in v1.2.0

type CainiaoWaybillIiSearchAPIResponseModel struct {
	XMLName xml.Name `xml:"cainiao_waybill_ii_search_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// CP网点信息及对应的商家的发货信息
	WaybillApplySubscriptionCols []WaybillApplySubscriptionInfo `` /* 128-byte string literal not displayed */
}

CainiaoWaybillIiSearchAPIResponseModel is 查询面单服务订购及面单使用情况 成功返回结果

type CainiaoWaybillIiUpdateAPIRequest added in v1.2.0

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

电子面单云打印更新接口 API请求 cainiao.waybill.ii.update

商家更新电子面单号对应的面单信息。

func NewCainiaoWaybillIiUpdateRequest

func NewCainiaoWaybillIiUpdateRequest() *CainiaoWaybillIiUpdateAPIRequest

NewCainiaoWaybillIiUpdateRequest 初始化CainiaoWaybillIiUpdateAPIRequest对象

func (CainiaoWaybillIiUpdateAPIRequest) GetApiMethodName added in v1.2.0

func (r CainiaoWaybillIiUpdateAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (CainiaoWaybillIiUpdateAPIRequest) GetApiParams added in v1.2.0

func (r CainiaoWaybillIiUpdateAPIRequest) GetApiParams() url.Values

GetApiParams IRequest interface 方法, 获取API参数

func (CainiaoWaybillIiUpdateAPIRequest) GetParamWaybillCloudPrintUpdateRequest added in v1.2.0

func (r CainiaoWaybillIiUpdateAPIRequest) GetParamWaybillCloudPrintUpdateRequest() *WaybillCloudPrintUpdateRequest

Get ParamWaybillCloudPrintUpdateRequest Getter

func (*CainiaoWaybillIiUpdateAPIRequest) SetParamWaybillCloudPrintUpdateRequest added in v1.2.0

func (r *CainiaoWaybillIiUpdateAPIRequest) SetParamWaybillCloudPrintUpdateRequest(_paramWaybillCloudPrintUpdateRequest *WaybillCloudPrintUpdateRequest) error

Set is ParamWaybillCloudPrintUpdateRequest Setter 更新请求信息

type CainiaoWaybillIiUpdateAPIResponse

type CainiaoWaybillIiUpdateAPIResponse struct {
	model.CommonResponse
	CainiaoWaybillIiUpdateAPIResponseModel
}
CainiaoWaybillIiUpdateAPIResponse

电子面单云打印更新接口 API返回值 cainiao.waybill.ii.update

商家更新电子面单号对应的面单信息。

type CainiaoWaybillIiUpdateAPIResponseModel added in v1.2.0

type CainiaoWaybillIiUpdateAPIResponseModel struct {
	XMLName xml.Name `xml:"cainiao_waybill_ii_update_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 面单号
	WaybillCode string `json:"waybill_code,omitempty" xml:"waybill_code,omitempty"`
	// 模板内容
	PrintData string `json:"print_data,omitempty" xml:"print_data,omitempty"`
}

CainiaoWaybillIiUpdateAPIResponseModel is 电子面单云打印更新接口 成功返回结果

type CainiaoWaybillPrivacySellerOrderGetAPIRequest added in v1.2.0

type CainiaoWaybillPrivacySellerOrderGetAPIRequest struct {
	model.Params
}
CainiaoWaybillPrivacySellerOrderGetAPIRequest

隐私面单商家订单查询 API请求 cainiao.waybill.privacy.seller.order.get

商家查询最近100天隐私面单记录

func NewCainiaoWaybillPrivacySellerOrderGetRequest

func NewCainiaoWaybillPrivacySellerOrderGetRequest() *CainiaoWaybillPrivacySellerOrderGetAPIRequest

NewCainiaoWaybillPrivacySellerOrderGetRequest 初始化CainiaoWaybillPrivacySellerOrderGetAPIRequest对象

func (CainiaoWaybillPrivacySellerOrderGetAPIRequest) GetApiMethodName added in v1.2.0

GetApiMethodName IRequest interface 方法, 获取Api method

func (CainiaoWaybillPrivacySellerOrderGetAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

type CainiaoWaybillPrivacySellerOrderGetAPIResponse

type CainiaoWaybillPrivacySellerOrderGetAPIResponse struct {
	model.CommonResponse
	CainiaoWaybillPrivacySellerOrderGetAPIResponseModel
}
CainiaoWaybillPrivacySellerOrderGetAPIResponse

隐私面单商家订单查询 API返回值 cainiao.waybill.privacy.seller.order.get

商家查询最近100天隐私面单记录

type CainiaoWaybillPrivacySellerOrderGetAPIResponseModel added in v1.2.0

type CainiaoWaybillPrivacySellerOrderGetAPIResponseModel struct {
	XMLName xml.Name `xml:"cainiao_waybill_privacy_seller_order_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 错误列表
	ErrorCodeList []string `json:"error_code_list,omitempty" xml:"error_code_list>string,omitempty"`
	// 是否失败
	Failure bool `json:"failure,omitempty" xml:"failure,omitempty"`
	// 第一个错误
	OneErrorInfo string `json:"one_error_info,omitempty" xml:"one_error_info,omitempty"`
	// 错误信息
	ErrorInfoList []string `json:"error_info_list,omitempty" xml:"error_info_list>string,omitempty"`
	// objectId
	ObjectId string `json:"object_id,omitempty" xml:"object_id,omitempty"`
	// 返回值
	ResponseList []CainiaoWaybillPrivacySellerOrderGetModule `json:"response_list,omitempty" xml:"response_list>cainiao_waybill_privacy_seller_order_get_module,omitempty"`
}

CainiaoWaybillPrivacySellerOrderGetAPIResponseModel is 隐私面单商家订单查询 成功返回结果

type CainiaoWaybillPrivacySellerOrderGetModule

type CainiaoWaybillPrivacySellerOrderGetModule struct {
	// 商家ID
	SellerId string `json:"seller_id,omitempty" xml:"seller_id,omitempty"`
	// 隐私次数
	PrivacyCount int64 `json:"privacy_count,omitempty" xml:"privacy_count,omitempty"`
	// 日期
	OrderDate string `json:"order_date,omitempty" xml:"order_date,omitempty"`
	// 订单渠道
	OrderChannel string `json:"order_channel,omitempty" xml:"order_channel,omitempty"`
	// 店铺id
	ShopId string `json:"shop_id,omitempty" xml:"shop_id,omitempty"`
}

CainiaoWaybillPrivacySellerOrderGetModule 结构体

type CainiaoWaybillPrivacySubscriptionGetAPIRequest added in v1.2.0

type CainiaoWaybillPrivacySubscriptionGetAPIRequest struct {
	model.Params
}
CainiaoWaybillPrivacySubscriptionGetAPIRequest

隐私面单商家订购查询 API请求 cainiao.waybill.privacy.subscription.get

ISV查询商家是否订购隐私面单

func NewCainiaoWaybillPrivacySubscriptionGetRequest

func NewCainiaoWaybillPrivacySubscriptionGetRequest() *CainiaoWaybillPrivacySubscriptionGetAPIRequest

NewCainiaoWaybillPrivacySubscriptionGetRequest 初始化CainiaoWaybillPrivacySubscriptionGetAPIRequest对象

func (CainiaoWaybillPrivacySubscriptionGetAPIRequest) GetApiMethodName added in v1.2.0

GetApiMethodName IRequest interface 方法, 获取Api method

func (CainiaoWaybillPrivacySubscriptionGetAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

type CainiaoWaybillPrivacySubscriptionGetAPIResponse

type CainiaoWaybillPrivacySubscriptionGetAPIResponse struct {
	model.CommonResponse
	CainiaoWaybillPrivacySubscriptionGetAPIResponseModel
}
CainiaoWaybillPrivacySubscriptionGetAPIResponse

隐私面单商家订购查询 API返回值 cainiao.waybill.privacy.subscription.get

ISV查询商家是否订购隐私面单

type CainiaoWaybillPrivacySubscriptionGetAPIResponseModel added in v1.2.0

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

CainiaoWaybillPrivacySubscriptionGetAPIResponseModel is 隐私面单商家订购查询 成功返回结果

type CainiaoWaybillPrivacySubscriptionGetResult

type CainiaoWaybillPrivacySubscriptionGetResult struct {
	// 错误code列表
	ErrorCodeList []string `json:"error_code_list,omitempty" xml:"error_code_list>string,omitempty"`
	// 是否失败
	Failure bool `json:"failure,omitempty" xml:"failure,omitempty"`
	// 第一个错误
	OneErrorInfo string `json:"one_error_info,omitempty" xml:"one_error_info,omitempty"`
	// 是否成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
	// 商家是否订购
	Subscription bool `json:"subscription,omitempty" xml:"subscription,omitempty"`
	// 系统自动生成
	ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"`
	// 错误码
	ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"`
	// 错误列表
	ErrorInfoList []string `json:"error_info_list,omitempty" xml:"error_info_list>string,omitempty"`
	// 系统信息
	ObjectId string `json:"object_id,omitempty" xml:"object_id,omitempty"`
}

CainiaoWaybillPrivacySubscriptionGetResult 结构体

type CloudPrintBaseResult

type CloudPrintBaseResult struct {
	// data
	Data string `json:"data,omitempty" xml:"data,omitempty"`
	// errorCode
	ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"`
	// errorMessage
	ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"`
	// success
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
	// 数据
	Datas []CustomAreaResult `json:"datas,omitempty" xml:"datas>custom_area_result,omitempty"`
	// data
	ResourceList []IsvResourceDo `json:"resource_list,omitempty" xml:"resource_list>isv_resource_do,omitempty"`
}

CloudPrintBaseResult 结构体

type CmdRenderParams

type CmdRenderParams struct {
	// 需要打印的文档,包括模板地址、打印数据
	Document *RenderDocument `json:"document,omitempty" xml:"document,omitempty"`
	// 打印机名称
	PrinterName string `json:"printer_name,omitempty" xml:"printer_name,omitempty"`
	// 客户端ID
	ClientId string `json:"client_id,omitempty" xml:"client_id,omitempty"`
	// 客户端类型:weixin/alipay/native
	ClientType string `json:"client_type,omitempty" xml:"client_type,omitempty"`
	// 打印配置
	Config *RenderConfig `json:"config,omitempty" xml:"config,omitempty"`
}

CmdRenderParams 结构体

type CpInfo

type CpInfo struct {
	// 地址信息
	Address *Address `json:"address,omitempty" xml:"address,omitempty"`
	// 云打印模板
	CloudTemplateId string `json:"cloud_template_id,omitempty" xml:"cloud_template_id,omitempty"`
	// 快递公司
	CpCode string `json:"cp_code,omitempty" xml:"cp_code,omitempty"`
	// 状态: 0-禁用, 1-启用
	Status int64 `json:"status,omitempty" xml:"status,omitempty"`
}

CpInfo 结构体

type CustomAreaResult

type CustomAreaResult struct {
	// customAreaId
	CustomAreaId int64 `json:"custom_area_id,omitempty" xml:"custom_area_id,omitempty"`
	// customAreaUrl
	CustomAreaUrl string `json:"custom_area_url,omitempty" xml:"custom_area_url,omitempty"`
	// keys
	Keys []KeyResult `json:"keys,omitempty" xml:"keys>key_result,omitempty"`
	// 标准模板名称
	StandardTemplateId int64 `json:"standard_template_id,omitempty" xml:"standard_template_id,omitempty"`
	// 标准模板url
	StandardTemplateUrl string `json:"standard_template_url,omitempty" xml:"standard_template_url,omitempty"`
	// 自定义区名称
	CustomAreaName string `json:"custom_area_name,omitempty" xml:"custom_area_name,omitempty"`
	// 用户模板id,等同于mystdtemplates.get中返回的用户模板id
	UserTemplateId int64 `json:"user_template_id,omitempty" xml:"user_template_id,omitempty"`
}

CustomAreaResult 结构体

type CustomAreaSingleResult

type CustomAreaSingleResult struct {
	// 自定义区id
	CustomAreaId int64 `json:"custom_area_id,omitempty" xml:"custom_area_id,omitempty"`
	// 自定义区内容的URL
	CustomAreaUrl string `json:"custom_area_url,omitempty" xml:"custom_area_url,omitempty"`
	// keys
	Keys []KeyResult `json:"keys,omitempty" xml:"keys>key_result,omitempty"`
}

CustomAreaSingleResult 结构体

type CustomTemplateResult

type CustomTemplateResult struct {
	// isv模板的id
	IsvTemplateId int64 `json:"isv_template_id,omitempty" xml:"isv_template_id,omitempty"`
	// isv模板的名称
	IsvTemplateName string `json:"isv_template_name,omitempty" xml:"isv_template_name,omitempty"`
	// isv模板的url
	IsvTemplateUrl string `json:"isv_template_url,omitempty" xml:"isv_template_url,omitempty"`
	// 模板的keys
	Keys []KeyResult `json:"keys,omitempty" xml:"keys>key_result,omitempty"`
	// 版本号
	Version string `json:"version,omitempty" xml:"version,omitempty"`
}

CustomTemplateResult 结构体

type DeliveryStrategyInfo

type DeliveryStrategyInfo struct {
	// 识别买家备注: 0-忽略, 1-识别, 2-仅识别合作cp
	BuyerMessageRule int64 `json:"buyer_message_rule,omitempty" xml:"buyer_message_rule,omitempty"`
	// 合作CP信息
	CocpInfoList []CpInfo `json:"cocp_info_list,omitempty" xml:"cocp_info_list>cp_info,omitempty"`
	// 特殊线路
	SpecialRouteInfoList []SpecialRouteInfo `json:"special_route_info_list,omitempty" xml:"special_route_info_list>special_route_info,omitempty"`
	// 仓id
	WarehouseId int64 `json:"warehouse_id,omitempty" xml:"warehouse_id,omitempty"`
	// 仓名称
	WarehouseName string `json:"warehouse_name,omitempty" xml:"warehouse_name,omitempty"`
}

DeliveryStrategyInfo 结构体

type DeliveryStrategySetRequest

type DeliveryStrategySetRequest struct {
	// 策略信息对象
	DeliveryStrategyInfo *DeliveryStrategyInfo `json:"delivery_strategy_info,omitempty" xml:"delivery_strategy_info,omitempty"`
}

DeliveryStrategySetRequest 结构体

type IsvResourceDo

type IsvResourceDo struct {
	// 资源内容(当资源类型为TEMPLATE时,为空)
	ResourceContent string `json:"resource_content,omitempty" xml:"resource_content,omitempty"`
	// 资源id
	ResourceId int64 `json:"resource_id,omitempty" xml:"resource_id,omitempty"`
	// 资源名称
	ResourceName string `json:"resource_name,omitempty" xml:"resource_name,omitempty"`
	// 资源类型
	ResourceType string `json:"resource_type,omitempty" xml:"resource_type,omitempty"`
	// 资源url(当资源类型为打印项时,为空)
	ResourceUrl string `json:"resource_url,omitempty" xml:"resource_url,omitempty"`
}

IsvResourceDo 结构体

type Item

type Item struct {
	// 数量
	Count int64 `json:"count,omitempty" xml:"count,omitempty"`
	// 名称
	Name string `json:"name,omitempty" xml:"name,omitempty"`
}

Item 结构体

type KeyResult

type KeyResult struct {
	// keyName
	KeyName string `json:"key_name,omitempty" xml:"key_name,omitempty"`
}

KeyResult 结构体

type LogisticsService

type LogisticsService struct {
	// 服务类型值,json格式表示
	ServiceValue4Json string `json:"service_value4_json,omitempty" xml:"service_value4_json,omitempty"`
	// 服务编码
	ServiceCode string `json:"service_code,omitempty" xml:"service_code,omitempty"`
}

LogisticsService 结构体

type OrderInfoDto

type OrderInfoDto struct {
	// <a href="http://open.taobao.com/doc2/detail.htm?spm=a219a.7629140.0.0.8cf9Nj&treeId=17&articleId=105085&docType=1#2">订单渠道平台编码</a>
	OrderChannelsType string `json:"order_channels_type,omitempty" xml:"order_channels_type,omitempty"`
	// 订单号,数量限制100,订单号(只限传入数字、字母、下划线和中划线,为避免出现冲突,请按电商平台真实订单号传入,请避免使用同个订单号重复取号)
	TradeOrderList []string `json:"trade_order_list,omitempty" xml:"trade_order_list>string,omitempty"`
	// 外部电商平台交易单号集合,非必填,数量限制100
	OutTradeOrderList []string `json:"out_trade_order_list,omitempty" xml:"out_trade_order_list>string,omitempty"`
	// 外部电商平台交易子单号集合,非必填,数量限制100
	OutTradeSubOrderList []string `json:"out_trade_sub_order_list,omitempty" xml:"out_trade_sub_order_list>string,omitempty"`
}

OrderInfoDto 结构体

type PackageInfoDto

type PackageInfoDto struct {
	// 包裹id,用于拆合单场景(只能传入数字、字母和下划线;批量请求时值不得重复,大小写敏感,即123A,123a 不可当做不同ID,否则存在一定可能取号失败)
	Id string `json:"id,omitempty" xml:"id,omitempty"`
	// 商品信息,数量限制为100
	Items []Item `json:"items,omitempty" xml:"items>item,omitempty"`
	// 体积, 单位 ml
	Volume int64 `json:"volume,omitempty" xml:"volume,omitempty"`
	// 重量,单位 g
	Weight int64 `json:"weight,omitempty" xml:"weight,omitempty"`
	// 子母件模式中的总包裹数/总件数,用于打印当前包裹处于总件数的位置比如5-2,可以表示总包裹数为5,当前为第2个包裹,只有快运公司需要传入,其他的可以不用传入
	TotalPackagesCount int64 `json:"total_packages_count,omitempty" xml:"total_packages_count,omitempty"`
	// 大件快运中的包装方式描述
	PackagingDescription string `json:"packaging_description,omitempty" xml:"packaging_description,omitempty"`
	// 大件快运中的货品描述,比如服装,家具
	GoodsDescription string `json:"goods_description,omitempty" xml:"goods_description,omitempty"`
}

PackageInfoDto 结构体

type PackageItem

type PackageItem struct {
	// 商品名称
	ItemName string `json:"item_name,omitempty" xml:"item_name,omitempty"`
	// 商品数量
	Count int64 `json:"count,omitempty" xml:"count,omitempty"`
}

PackageItem 结构体

type PrintCheckInfo

type PrintCheckInfo struct {
	// 发货网点编码
	ShippingBranchCode string `json:"shipping_branch_code,omitempty" xml:"shipping_branch_code,omitempty"`
	// 收件人姓名
	ConsigneeName string `json:"consignee_name,omitempty" xml:"consignee_name,omitempty"`
	// 发件人联系方式
	SendPhone string `json:"send_phone,omitempty" xml:"send_phone,omitempty"`
	// 包裹重量 单位为G(克)
	Weight int64 `json:"weight,omitempty" xml:"weight,omitempty"`
	// 电子面单单号
	WaybillCode string `json:"waybill_code,omitempty" xml:"waybill_code,omitempty"`
	// 收\发货地址
	ConsigneeAddress *WaybillAddress `json:"consignee_address,omitempty" xml:"consignee_address,omitempty"`
	// 快递服务产品类型编码
	ProductType string `json:"product_type,omitempty" xml:"product_type,omitempty"`
	// 发件人姓名
	SendName string `json:"send_name,omitempty" xml:"send_name,omitempty"`
	// 收货网点编码
	ConsigneeBranchCode string `json:"consignee_branch_code,omitempty" xml:"consignee_branch_code,omitempty"`
	// 物流服务能力集合
	LogisticsServiceList []LogisticsService `json:"logistics_service_list,omitempty" xml:"logistics_service_list>logistics_service,omitempty"`
	// 收货网点信息
	ConsigneeBranchName string `json:"consignee_branch_name,omitempty" xml:"consignee_branch_name,omitempty"`
	// 发货网点信息
	ShippingBranchName string `json:"shipping_branch_name,omitempty" xml:"shipping_branch_name,omitempty"`
	// 拣货规则(大头笔信息)
	ShortAddress string `json:"short_address,omitempty" xml:"short_address,omitempty"`
	// 包裹体积 单位为ML(毫升)或立方厘米
	Volume int64 `json:"volume,omitempty" xml:"volume,omitempty"`
	// consigneePhone
	ConsigneePhone string `json:"consignee_phone,omitempty" xml:"consignee_phone,omitempty"`
	// 收\发货地址
	ShippingAddress *WaybillAddress `json:"shipping_address,omitempty" xml:"shipping_address,omitempty"`
	// 使用者ID
	RealUserId int64 `json:"real_user_id,omitempty" xml:"real_user_id,omitempty"`
	// 集包地、目的地中心代码。打 印时根据该 code 生成目的地 中心的条码,条码生成的算法 与对应的电子面单条码一致
	PackageCenterCode string `json:"package_center_code,omitempty" xml:"package_center_code,omitempty"`
	// 集包地、目的地中心名称
	PackageCenterName string `json:"package_center_name,omitempty" xml:"package_center_name,omitempty"`
	// 打标设置字段,直接传给ali-lodop。不用管具体含义。
	PrintConfig string `json:"print_config,omitempty" xml:"print_config,omitempty"`
}

PrintCheckInfo 结构体

type RecipientInfoDto

type RecipientInfoDto struct {
	// 地址
	Address *AddressDto `json:"address,omitempty" xml:"address,omitempty"`
	// 手机号码
	Mobile string `json:"mobile,omitempty" xml:"mobile,omitempty"`
	// 姓名
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 固定电话
	Phone string `json:"phone,omitempty" xml:"phone,omitempty"`
	// 淘宝订单收件人ID (Open Addressee ID),长度不超过128个字符,淘宝订单加密情况用于解密。
	Oaid string `json:"oaid,omitempty" xml:"oaid,omitempty"`
	// 电商平台真实交易订单号,针对电商平台订单隐私加密场景使用,非必填,如果填写则必须是电商平台真实的交易订单ID
	Tid string `json:"tid,omitempty" xml:"tid,omitempty"`
	// 菜鸟解密地址ID,用于电商平台收件人信息加密的场景使用,非订单加密场景请勿使用。
	Caid string `json:"caid,omitempty" xml:"caid,omitempty"`
}

RecipientInfoDto 结构体

type RenderConfig

type RenderConfig struct {
	// 打印方向:normal-正常 reverse-翻转(旋转180°)
	Orientation string `json:"orientation,omitempty" xml:"orientation,omitempty"`
	NeedBottomLogo bool `json:"need_bottom_logo,omitempty" xml:"need_bottom_logo,omitempty"`
	NeedMiddleLogo bool `json:"need_middle_logo,omitempty" xml:"need_middle_logo,omitempty"`
	NeedTopLogo bool `json:"need_top_logo,omitempty" xml:"need_top_logo,omitempty"`
}

RenderConfig 结构体

type RenderContent

type RenderContent struct {
	// 打印数据
	PrintData string `json:"print_data,omitempty" xml:"print_data,omitempty"`
	// 模板url
	TemplateUrl string `json:"template_url,omitempty" xml:"template_url,omitempty"`
	// 是否获取加密数据
	Encrypted bool `json:"encrypted,omitempty" xml:"encrypted,omitempty"`
	// 加密数据使用秘钥版本
	Ver string `json:"ver,omitempty" xml:"ver,omitempty"`
	// 数据签名
	Signature string `json:"signature,omitempty" xml:"signature,omitempty"`
	// 附加数据(用于修改数据)
	AddData string `json:"add_data,omitempty" xml:"add_data,omitempty"`
}

RenderContent 结构体

type RenderDocument

type RenderDocument struct {
	// 包含的区域列表。对于有自定义区的文档,content会包含两条,即第一条是标准模板区域内容、第二条是自定义区域内容
	Contents []RenderContent `json:"contents,omitempty" xml:"contents>render_content,omitempty"`
}

RenderDocument 结构体

type ServiceAttributeDto

type ServiceAttributeDto struct {
	// 属性的值,用户实际传入的值
	AttributeCode string `json:"attribute_code,omitempty" xml:"attribute_code,omitempty"`
	// 属性的名称,可以用于前端的展示
	AttributeName string `json:"attribute_name,omitempty" xml:"attribute_name,omitempty"`
	// 属性的类型,可能值有 [number, string, enum]
	AttributeType string `json:"attribute_type,omitempty" xml:"attribute_type,omitempty"`
	// 枚举类型的枚举值,key为用户选中的需要传值的数据,value为对应的描述,可以作为前端的展示
	TypeDesc string `json:"type_desc,omitempty" xml:"type_desc,omitempty"`
}

ServiceAttributeDto 结构体

type ServiceInfoDto

type ServiceInfoDto struct {
	// 服务名称
	ServiceName string `json:"service_name,omitempty" xml:"service_name,omitempty"`
	// 服务编码
	ServiceCode string `json:"service_code,omitempty" xml:"service_code,omitempty"`
	// 服务属性定义
	ServiceAttributes []ServiceAttributeDto `json:"service_attributes,omitempty" xml:"service_attributes>service_attribute_dto,omitempty"`
	// 服务的官方描述,可以用作前端展示
	ServiceDesc string `json:"service_desc,omitempty" xml:"service_desc,omitempty"`
	// 该服务是否为必选服务
	Required bool `json:"required,omitempty" xml:"required,omitempty"`
}

ServiceInfoDto 结构体

type SpecialRouteInfo

type SpecialRouteInfo struct {
	// 快递公司code
	CpCode string `json:"cp_code,omitempty" xml:"cp_code,omitempty"`
	// 到货区域
	ReceiveArea *AddressArea `json:"receive_area,omitempty" xml:"receive_area,omitempty"`
}

SpecialRouteInfo 结构体

type StandardTemplateDo

type StandardTemplateDo struct {
	// 模板id
	StandardTemplateId int64 `json:"standard_template_id,omitempty" xml:"standard_template_id,omitempty"`
	// 模板名称
	StandardTemplateName string `json:"standard_template_name,omitempty" xml:"standard_template_name,omitempty"`
	// 模板url
	StandardTemplateUrl string `json:"standard_template_url,omitempty" xml:"standard_template_url,omitempty"`
	// 1 快递标准面单 ,2 快递三联面单, 3 快递便携式三联单, 4 快运标准面单, 5 快运三联面单, 6 快递一联单
	StandardWaybillType int64 `json:"standard_waybill_type,omitempty" xml:"standard_waybill_type,omitempty"`
}

StandardTemplateDo 结构体

type StandardTemplateResult

type StandardTemplateResult struct {
	// cp编码
	CpCode string `json:"cp_code,omitempty" xml:"cp_code,omitempty"`
	// 该cp的所有标准模板
	StandardTemplates []StandardTemplateDo `json:"standard_templates,omitempty" xml:"standard_templates>standard_template_do,omitempty"`
}

StandardTemplateResult 结构体

type TaobaoWlbWaybillICancelAPIRequest added in v1.2.0

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

商家取消获取的电子面单号v1.0 API请求 taobao.wlb.waybill.i.cancel

面单号有误需要取消的时候,调用该接口取消获取的电子面单。

func NewTaobaoWlbWaybillICancelRequest

func NewTaobaoWlbWaybillICancelRequest() *TaobaoWlbWaybillICancelAPIRequest

NewTaobaoWlbWaybillICancelRequest 初始化TaobaoWlbWaybillICancelAPIRequest对象

func (TaobaoWlbWaybillICancelAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoWlbWaybillICancelAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoWlbWaybillICancelAPIRequest) GetApiParams added in v1.2.0

func (r TaobaoWlbWaybillICancelAPIRequest) GetApiParams() url.Values

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoWlbWaybillICancelAPIRequest) GetWaybillApplyCancelRequest added in v1.2.0

func (r TaobaoWlbWaybillICancelAPIRequest) GetWaybillApplyCancelRequest() *WaybillApplyCancelRequest

Get WaybillApplyCancelRequest Getter

func (*TaobaoWlbWaybillICancelAPIRequest) SetWaybillApplyCancelRequest added in v1.2.0

func (r *TaobaoWlbWaybillICancelAPIRequest) SetWaybillApplyCancelRequest(_waybillApplyCancelRequest *WaybillApplyCancelRequest) error

Set is WaybillApplyCancelRequest Setter 取消接口入参

type TaobaoWlbWaybillICancelAPIResponse

type TaobaoWlbWaybillICancelAPIResponse struct {
	model.CommonResponse
	TaobaoWlbWaybillICancelAPIResponseModel
}
TaobaoWlbWaybillICancelAPIResponse

商家取消获取的电子面单号v1.0 API返回值 taobao.wlb.waybill.i.cancel

面单号有误需要取消的时候,调用该接口取消获取的电子面单。

type TaobaoWlbWaybillICancelAPIResponseModel added in v1.2.0

type TaobaoWlbWaybillICancelAPIResponseModel struct {
	XMLName xml.Name `xml:"wlb_waybill_i_cancel_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 调用取消是否成功
	CancelResult bool `json:"cancel_result,omitempty" xml:"cancel_result,omitempty"`
}

TaobaoWlbWaybillICancelAPIResponseModel is 商家取消获取的电子面单号v1.0 成功返回结果

type TaobaoWlbWaybillIFullupdateAPIRequest added in v1.2.0

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

面单信息更新接口v1.0 API请求 taobao.wlb.waybill.i.fullupdate

商家更新电子面单号对应的订单信息。<br/><br/>a.涉及到订单信息(如拆/合单、取消订单等)、修改发货地的逻辑时候,需要使用CANCEL+GET组合操作。一般的面单信息更新使用该接口;<br/><br/>b.该接口是全量修改接口,对于不做更新的字段也要把原有的字段值传进去,否则做为修改为空处理。

func NewTaobaoWlbWaybillIFullupdateRequest

func NewTaobaoWlbWaybillIFullupdateRequest() *TaobaoWlbWaybillIFullupdateAPIRequest

NewTaobaoWlbWaybillIFullupdateRequest 初始化TaobaoWlbWaybillIFullupdateAPIRequest对象

func (TaobaoWlbWaybillIFullupdateAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoWlbWaybillIFullupdateAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoWlbWaybillIFullupdateAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoWlbWaybillIFullupdateAPIRequest) GetWaybillApplyFullUpdateRequest added in v1.2.0

func (r TaobaoWlbWaybillIFullupdateAPIRequest) GetWaybillApplyFullUpdateRequest() *WaybillApplyFullUpdateRequest

Get WaybillApplyFullUpdateRequest Getter

func (*TaobaoWlbWaybillIFullupdateAPIRequest) SetWaybillApplyFullUpdateRequest added in v1.2.0

func (r *TaobaoWlbWaybillIFullupdateAPIRequest) SetWaybillApplyFullUpdateRequest(_waybillApplyFullUpdateRequest *WaybillApplyFullUpdateRequest) error

Set is WaybillApplyFullUpdateRequest Setter 更新面单信息请求

type TaobaoWlbWaybillIFullupdateAPIResponse

type TaobaoWlbWaybillIFullupdateAPIResponse struct {
	model.CommonResponse
	TaobaoWlbWaybillIFullupdateAPIResponseModel
}
TaobaoWlbWaybillIFullupdateAPIResponse

面单信息更新接口v1.0 API返回值 taobao.wlb.waybill.i.fullupdate

商家更新电子面单号对应的订单信息。<br/><br/>a.涉及到订单信息(如拆/合单、取消订单等)、修改发货地的逻辑时候,需要使用CANCEL+GET组合操作。一般的面单信息更新使用该接口;<br/><br/>b.该接口是全量修改接口,对于不做更新的字段也要把原有的字段值传进去,否则做为修改为空处理。

type TaobaoWlbWaybillIFullupdateAPIResponseModel added in v1.2.0

type TaobaoWlbWaybillIFullupdateAPIResponseModel struct {
	XMLName xml.Name `xml:"wlb_waybill_i_fullupdate_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 更新接口出参
	WaybillApplyUpdateInfo *WaybillApplyUpdateInfo `json:"waybill_apply_update_info,omitempty" xml:"waybill_apply_update_info,omitempty"`
}

TaobaoWlbWaybillIFullupdateAPIResponseModel is 面单信息更新接口v1.0 成功返回结果

type TaobaoWlbWaybillIGetAPIRequest added in v1.2.0

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

获取物流服务商电子面单号v1.0 API请求 taobao.wlb.waybill.i.get

商家根据订单信息,实时、批量获取指定物流服务商的电子面单号。

func NewTaobaoWlbWaybillIGetRequest

func NewTaobaoWlbWaybillIGetRequest() *TaobaoWlbWaybillIGetAPIRequest

NewTaobaoWlbWaybillIGetRequest 初始化TaobaoWlbWaybillIGetAPIRequest对象

func (TaobaoWlbWaybillIGetAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoWlbWaybillIGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoWlbWaybillIGetAPIRequest) GetApiParams added in v1.2.0

func (r TaobaoWlbWaybillIGetAPIRequest) GetApiParams() url.Values

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoWlbWaybillIGetAPIRequest) GetWaybillApplyNewRequest added in v1.2.0

func (r TaobaoWlbWaybillIGetAPIRequest) GetWaybillApplyNewRequest() *WaybillApplyNewRequest

Get WaybillApplyNewRequest Getter

func (*TaobaoWlbWaybillIGetAPIRequest) SetWaybillApplyNewRequest added in v1.2.0

func (r *TaobaoWlbWaybillIGetAPIRequest) SetWaybillApplyNewRequest(_waybillApplyNewRequest *WaybillApplyNewRequest) error

Set is WaybillApplyNewRequest Setter 面单申请

type TaobaoWlbWaybillIGetAPIResponse

type TaobaoWlbWaybillIGetAPIResponse struct {
	model.CommonResponse
	TaobaoWlbWaybillIGetAPIResponseModel
}
TaobaoWlbWaybillIGetAPIResponse

获取物流服务商电子面单号v1.0 API返回值 taobao.wlb.waybill.i.get

商家根据订单信息,实时、批量获取指定物流服务商的电子面单号。

type TaobaoWlbWaybillIGetAPIResponseModel added in v1.2.0

type TaobaoWlbWaybillIGetAPIResponseModel struct {
	XMLName xml.Name `xml:"wlb_waybill_i_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 面单申请接口返回信息
	WaybillApplyNewCols []WaybillApplyNewInfo `json:"waybill_apply_new_cols,omitempty" xml:"waybill_apply_new_cols>waybill_apply_new_info,omitempty"`
}

TaobaoWlbWaybillIGetAPIResponseModel is 获取物流服务商电子面单号v1.0 成功返回结果

type TaobaoWlbWaybillIPrintAPIRequest added in v1.2.0

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

打印确认接口v1.0 API请求 taobao.wlb.waybill.i.print

打印面单前的校验接口,判断面单号信息与订单信息是否匹配。

func NewTaobaoWlbWaybillIPrintRequest

func NewTaobaoWlbWaybillIPrintRequest() *TaobaoWlbWaybillIPrintAPIRequest

NewTaobaoWlbWaybillIPrintRequest 初始化TaobaoWlbWaybillIPrintAPIRequest对象

func (TaobaoWlbWaybillIPrintAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoWlbWaybillIPrintAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoWlbWaybillIPrintAPIRequest) GetApiParams added in v1.2.0

func (r TaobaoWlbWaybillIPrintAPIRequest) GetApiParams() url.Values

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoWlbWaybillIPrintAPIRequest) GetWaybillApplyPrintCheckRequest added in v1.2.0

func (r TaobaoWlbWaybillIPrintAPIRequest) GetWaybillApplyPrintCheckRequest() *WaybillApplyPrintCheckRequest

Get WaybillApplyPrintCheckRequest Getter

func (*TaobaoWlbWaybillIPrintAPIRequest) SetWaybillApplyPrintCheckRequest added in v1.2.0

func (r *TaobaoWlbWaybillIPrintAPIRequest) SetWaybillApplyPrintCheckRequest(_waybillApplyPrintCheckRequest *WaybillApplyPrintCheckRequest) error

Set is WaybillApplyPrintCheckRequest Setter 打印请求

type TaobaoWlbWaybillIPrintAPIResponse

type TaobaoWlbWaybillIPrintAPIResponse struct {
	model.CommonResponse
	TaobaoWlbWaybillIPrintAPIResponseModel
}
TaobaoWlbWaybillIPrintAPIResponse

打印确认接口v1.0 API返回值 taobao.wlb.waybill.i.print

打印面单前的校验接口,判断面单号信息与订单信息是否匹配。

type TaobaoWlbWaybillIPrintAPIResponseModel added in v1.2.0

type TaobaoWlbWaybillIPrintAPIResponseModel struct {
	XMLName xml.Name `xml:"wlb_waybill_i_print_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 面单打印信息
	WaybillApplyPrintCheckInfos []WaybillApplyPrintCheckInfo `` /* 127-byte string literal not displayed */
}

TaobaoWlbWaybillIPrintAPIResponseModel is 打印确认接口v1.0 成功返回结果

type TaobaoWlbWaybillIProductAPIRequest added in v1.2.0

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

商家查询物流商产品类型接口 API请求 taobao.wlb.waybill.i.product

商家可以查询物流商的产品类型和服务能力。

func NewTaobaoWlbWaybillIProductRequest

func NewTaobaoWlbWaybillIProductRequest() *TaobaoWlbWaybillIProductAPIRequest

NewTaobaoWlbWaybillIProductRequest 初始化TaobaoWlbWaybillIProductAPIRequest对象

func (TaobaoWlbWaybillIProductAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoWlbWaybillIProductAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoWlbWaybillIProductAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoWlbWaybillIProductAPIRequest) GetWaybillProductTypeRequest added in v1.2.0

func (r TaobaoWlbWaybillIProductAPIRequest) GetWaybillProductTypeRequest() *WaybillProductTypeRequest

Get WaybillProductTypeRequest Getter

func (*TaobaoWlbWaybillIProductAPIRequest) SetWaybillProductTypeRequest added in v1.2.0

func (r *TaobaoWlbWaybillIProductAPIRequest) SetWaybillProductTypeRequest(_waybillProductTypeRequest *WaybillProductTypeRequest) error

Set is WaybillProductTypeRequest Setter 查询物流商电子面单产品类型入参

type TaobaoWlbWaybillIProductAPIResponse

type TaobaoWlbWaybillIProductAPIResponse struct {
	model.CommonResponse
	TaobaoWlbWaybillIProductAPIResponseModel
}
TaobaoWlbWaybillIProductAPIResponse

商家查询物流商产品类型接口 API返回值 taobao.wlb.waybill.i.product

商家可以查询物流商的产品类型和服务能力。

type TaobaoWlbWaybillIProductAPIResponseModel added in v1.2.0

type TaobaoWlbWaybillIProductAPIResponseModel struct {
	XMLName xml.Name `xml:"wlb_waybill_i_product_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 产品类型返回
	ProductTypes []WaybillProductType `json:"product_types,omitempty" xml:"product_types>waybill_product_type,omitempty"`
}

TaobaoWlbWaybillIProductAPIResponseModel is 商家查询物流商产品类型接口 成功返回结果

type TaobaoWlbWaybillIQuerydetailAPIRequest added in v1.2.0

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

查面单号状态v1.0 API请求 taobao.wlb.waybill.i.querydetail

查看面单号的当前状态,如签收、发货、失效等。

func NewTaobaoWlbWaybillIQuerydetailRequest

func NewTaobaoWlbWaybillIQuerydetailRequest() *TaobaoWlbWaybillIQuerydetailAPIRequest

NewTaobaoWlbWaybillIQuerydetailRequest 初始化TaobaoWlbWaybillIQuerydetailAPIRequest对象

func (TaobaoWlbWaybillIQuerydetailAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoWlbWaybillIQuerydetailAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoWlbWaybillIQuerydetailAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoWlbWaybillIQuerydetailAPIRequest) GetWaybillDetailQueryRequest added in v1.2.0

func (r TaobaoWlbWaybillIQuerydetailAPIRequest) GetWaybillDetailQueryRequest() *WaybillDetailQueryRequest

Get WaybillDetailQueryRequest Getter

func (*TaobaoWlbWaybillIQuerydetailAPIRequest) SetWaybillDetailQueryRequest added in v1.2.0

func (r *TaobaoWlbWaybillIQuerydetailAPIRequest) SetWaybillDetailQueryRequest(_waybillDetailQueryRequest *WaybillDetailQueryRequest) error

Set is WaybillDetailQueryRequest Setter 面单查询请求

type TaobaoWlbWaybillIQuerydetailAPIResponse

type TaobaoWlbWaybillIQuerydetailAPIResponse struct {
	model.CommonResponse
	TaobaoWlbWaybillIQuerydetailAPIResponseModel
}
TaobaoWlbWaybillIQuerydetailAPIResponse

查面单号状态v1.0 API返回值 taobao.wlb.waybill.i.querydetail

查看面单号的当前状态,如签收、发货、失效等。

type TaobaoWlbWaybillIQuerydetailAPIResponseModel added in v1.2.0

type TaobaoWlbWaybillIQuerydetailAPIResponseModel struct {
	XMLName xml.Name `xml:"wlb_waybill_i_querydetail_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 不存在的面单号
	InexistentWaybillCodes []string `json:"inexistent_waybill_codes,omitempty" xml:"inexistent_waybill_codes>string,omitempty"`
	// 查询是否成功
	QuerySuccess bool `json:"query_success,omitempty" xml:"query_success,omitempty"`
	// 面单详情
	WaybillDetails []WaybillDetailQueryInfo `json:"waybill_details,omitempty" xml:"waybill_details>waybill_detail_query_info,omitempty"`
	// 面单查询错误编码
	ErrorCodes []string `json:"error_codes,omitempty" xml:"error_codes>string,omitempty"`
}

TaobaoWlbWaybillIQuerydetailAPIResponseModel is 查面单号状态v1.0 成功返回结果

type TaobaoWlbWaybillISearchAPIRequest added in v1.2.0

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

查询面单服务订购及面单使用情况v1.0 API请求 taobao.wlb.waybill.i.search

获取发货地&CP开通状态&账户的使用情况

func NewTaobaoWlbWaybillISearchRequest

func NewTaobaoWlbWaybillISearchRequest() *TaobaoWlbWaybillISearchAPIRequest

NewTaobaoWlbWaybillISearchRequest 初始化TaobaoWlbWaybillISearchAPIRequest对象

func (TaobaoWlbWaybillISearchAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoWlbWaybillISearchAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoWlbWaybillISearchAPIRequest) GetApiParams added in v1.2.0

func (r TaobaoWlbWaybillISearchAPIRequest) GetApiParams() url.Values

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoWlbWaybillISearchAPIRequest) GetWaybillApplyRequest added in v1.2.0

func (r TaobaoWlbWaybillISearchAPIRequest) GetWaybillApplyRequest() *WaybillApplyRequest

Get WaybillApplyRequest Getter

func (*TaobaoWlbWaybillISearchAPIRequest) SetWaybillApplyRequest added in v1.2.0

func (r *TaobaoWlbWaybillISearchAPIRequest) SetWaybillApplyRequest(_waybillApplyRequest *WaybillApplyRequest) error

Set is WaybillApplyRequest Setter 查询网点信息

type TaobaoWlbWaybillISearchAPIResponse

type TaobaoWlbWaybillISearchAPIResponse struct {
	model.CommonResponse
	TaobaoWlbWaybillISearchAPIResponseModel
}
TaobaoWlbWaybillISearchAPIResponse

查询面单服务订购及面单使用情况v1.0 API返回值 taobao.wlb.waybill.i.search

获取发货地&CP开通状态&账户的使用情况

type TaobaoWlbWaybillISearchAPIResponseModel added in v1.2.0

type TaobaoWlbWaybillISearchAPIResponseModel struct {
	XMLName xml.Name `xml:"wlb_waybill_i_search_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 订购关系
	Subscribtions []WaybillApplySubscriptionInfo `json:"subscribtions,omitempty" xml:"subscribtions>waybill_apply_subscription_info,omitempty"`
}

TaobaoWlbWaybillISearchAPIResponseModel is 查询面单服务订购及面单使用情况v1.0 成功返回结果

type TradeOrderInfo

type TradeOrderInfo struct {
	// 商品名称
	ItemName string `json:"item_name,omitempty" xml:"item_name,omitempty"`
	// 收货人
	ConsigneeName string `json:"consignee_name,omitempty" xml:"consignee_name,omitempty"`
	// 是否阿里系订单
	AliOrder bool `json:"ali_order,omitempty" xml:"ali_order,omitempty"`
	// 大头笔
	ShortAddress string `json:"short_address,omitempty" xml:"short_address,omitempty"`
	// 订单渠道
	OrderChannelsType string `json:"order_channels_type,omitempty" xml:"order_channels_type,omitempty"`
	// 交易订单列表
	TradeOrderList []string `json:"trade_order_list,omitempty" xml:"trade_order_list>string,omitempty"`
	// 面单号
	WaybillCode string `json:"waybill_code,omitempty" xml:"waybill_code,omitempty"`
	// 收货人联系方式
	ConsigneePhone string `json:"consignee_phone,omitempty" xml:"consignee_phone,omitempty"`
	// 收货人地址
	ConsigneeAddress *WaybillAddress `json:"consignee_address,omitempty" xml:"consignee_address,omitempty"`
	// 发货人联系方式
	SendPhone string `json:"send_phone,omitempty" xml:"send_phone,omitempty"`
	// 包裹重量(克)
	Weight int64 `json:"weight,omitempty" xml:"weight,omitempty"`
	// 发货人姓名
	SendName string `json:"send_name,omitempty" xml:"send_name,omitempty"`
	// 订单渠道来源
	OrderType int64 `json:"order_type,omitempty" xml:"order_type,omitempty"`
	// 包裹中的商品类型
	PackageItems []PackageItem `json:"package_items,omitempty" xml:"package_items>package_item,omitempty"`
	// 物流服务能力集合
	LogisticsServiceList []LogisticsService `json:"logistics_service_list,omitempty" xml:"logistics_service_list>logistics_service,omitempty"`
	// 快递服务产品类型编码
	ProductType string `json:"product_type,omitempty" xml:"product_type,omitempty"`
	// 使用者ID
	RealUserId int64 `json:"real_user_id,omitempty" xml:"real_user_id,omitempty"`
	// 包裹体积(立方厘米)
	Volume int64 `json:"volume,omitempty" xml:"volume,omitempty"`
	// 包裹号(或者ERP订单号)
	PackageId string `json:"package_id,omitempty" xml:"package_id,omitempty"`
}

TradeOrderInfo 结构体

type TradeOrderInfoDto

type TradeOrderInfoDto struct {
	// 物流服务值(详见https://support-cnkuaidi.taobao.com/doc.htm#?docId=106156&docType=1,如无特殊服务请置空)
	LogisticsServices string `json:"logistics_services,omitempty" xml:"logistics_services,omitempty"`
	// <a href="http://open.taobao.com/docs/doc.htm?docType=1&articleId=105086&treeId=17&platformId=17#6">请求ID</a>
	ObjectId string `json:"object_id,omitempty" xml:"object_id,omitempty"`
	// 订单信息
	OrderInfo *OrderInfoDto `json:"order_info,omitempty" xml:"order_info,omitempty"`
	// 包裹信息
	PackageInfo *PackageInfoDto `json:"package_info,omitempty" xml:"package_info,omitempty"`
	// 收件人信息
	Recipient *RecipientInfoDto `json:"recipient,omitempty" xml:"recipient,omitempty"`
	// 云打印标准模板URL(组装云打印结果使用,值格式http://cloudprint.cainiao.com/template/standard/${模板ID})
	TemplateUrl string `json:"template_url,omitempty" xml:"template_url,omitempty"`
	// 使用者ID(使用电子面单账号的实际商家ID,如存在一个电子面单账号多个店铺使用时,请传入店铺的商家ID)
	UserId int64 `json:"user_id,omitempty" xml:"user_id,omitempty"`
}

TradeOrderInfoDto 结构体

type UserInfoDto

type UserInfoDto struct {
	// 发货地址需要通过<a href="http://open.taobao.com/doc2/detail.htm?spm=a219a.7629140.0.0.3OFCPk&treeId=17&articleId=104860&docType=1">search接口</a>
	Address *AddressDto `json:"address,omitempty" xml:"address,omitempty"`
	// 手机号码(手机号和固定电话不能同时为空),长度小于20
	Mobile string `json:"mobile,omitempty" xml:"mobile,omitempty"`
	// 姓名,长度小于40
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 固定电话(手机号和固定电话不能同时为空),长度小于20
	Phone string `json:"phone,omitempty" xml:"phone,omitempty"`
	// 开放地址ID
	Oaid string `json:"oaid,omitempty" xml:"oaid,omitempty"`
	// 菜鸟地址ID,针对电商平台加密订单场景使用,淘系订单使用oaid,非淘使用caid。
	Caid string `json:"caid,omitempty" xml:"caid,omitempty"`
}

UserInfoDto 结构体

type UserTemplateDo

type UserTemplateDo struct {
	// keys
	Keys []KeyResult `json:"keys,omitempty" xml:"keys>key_result,omitempty"`
	// 用户使用模板的url
	UserStdTemplateUrl string `json:"user_std_template_url,omitempty" xml:"user_std_template_url,omitempty"`
	// 用户使用模板的id
	UserStdTemplateId int64 `json:"user_std_template_id,omitempty" xml:"user_std_template_id,omitempty"`
	// 用户使用模板名称
	UserStdTemplateName string `json:"user_std_template_name,omitempty" xml:"user_std_template_name,omitempty"`
}

UserTemplateDo 结构体

type UserTemplateResult

type UserTemplateResult struct {
	// cp编码
	CpCode string `json:"cp_code,omitempty" xml:"cp_code,omitempty"`
	// 用户使用的模板数据
	UserStdTemplates []UserTemplateDo `json:"user_std_templates,omitempty" xml:"user_std_templates>user_template_do,omitempty"`
}

UserTemplateResult 结构体

type WarehouseDto

type WarehouseDto struct {
	// 仓id
	WarehouseId int64 `json:"warehouse_id,omitempty" xml:"warehouse_id,omitempty"`
	// 仓名称
	WarehouseName string `json:"warehouse_name,omitempty" xml:"warehouse_name,omitempty"`
}

WarehouseDto 结构体

type WaybillAddress

type WaybillAddress struct {
	// 区名称(三级地址)
	Area string `json:"area,omitempty" xml:"area,omitempty"`
	// 一级地址(省、直辖市
	Province string `json:"province,omitempty" xml:"province,omitempty"`
	// 街道\镇名称(四级地址)
	Town string `json:"town,omitempty" xml:"town,omitempty"`
	// 详细地址
	AddressDetail string `json:"address_detail,omitempty" xml:"address_detail,omitempty"`
	// 市名称(二级地址)
	City string `json:"city,omitempty" xml:"city,omitempty"`
	// 末级地址
	DivisionId int64 `json:"division_id,omitempty" xml:"division_id,omitempty"`
	// waybill 地址记录ID(非地址库ID)
	WaybillAddressId int64 `json:"waybill_address_id,omitempty" xml:"waybill_address_id,omitempty"`
}

WaybillAddress 结构体

type WaybillApplyCancelRequest

type WaybillApplyCancelRequest struct {
	// 面单使用者编号
	RealUserId int64 `json:"real_user_id,omitempty" xml:"real_user_id,omitempty"`
	// 交易订单列表
	TradeOrderList []string `json:"trade_order_list,omitempty" xml:"trade_order_list>string,omitempty"`
	// CP快递公司编码
	CpCode string `json:"cp_code,omitempty" xml:"cp_code,omitempty"`
	// 电子面单号码
	WaybillCode string `json:"waybill_code,omitempty" xml:"waybill_code,omitempty"`
	// ERP订单号或包裹号
	PackageId string `json:"package_id,omitempty" xml:"package_id,omitempty"`
}

WaybillApplyCancelRequest 结构体

type WaybillApplyFullUpdateRequest

type WaybillApplyFullUpdateRequest struct {
	// 发件人联系方式
	SendPhone string `json:"send_phone,omitempty" xml:"send_phone,omitempty"`
	// 收件人姓名
	ConsigneeName string `json:"consignee_name,omitempty" xml:"consignee_name,omitempty"`
	// 包裹重量 单位为G(克)
	Weight int64 `json:"weight,omitempty" xml:"weight,omitempty"`
	// 发件人姓名
	SendName string `json:"send_name,omitempty" xml:"send_name,omitempty"`
	// 交易订单号(组合表示合并订单)
	TradeOrderList []string `json:"trade_order_list,omitempty" xml:"trade_order_list>string,omitempty"`
	// 快递服务商CODE
	CpCode string `json:"cp_code,omitempty" xml:"cp_code,omitempty"`
	// 电子面单单号
	WaybillCode string `json:"waybill_code,omitempty" xml:"waybill_code,omitempty"`
	// 快递服务产品类型编码
	ProductType string `json:"product_type,omitempty" xml:"product_type,omitempty"`
	// 订单渠道类型
	OrderChannelsType string `json:"order_channels_type,omitempty" xml:"order_channels_type,omitempty"`
	// 使用者ID
	RealUserId int64 `json:"real_user_id,omitempty" xml:"real_user_id,omitempty"`
	// 包裹体积 单位为ML(毫升)或立方厘米
	Volume int64 `json:"volume,omitempty" xml:"volume,omitempty"`
	// 包裹里面的商品名称
	PackageItems []PackageItem `json:"package_items,omitempty" xml:"package_items>package_item,omitempty"`
	// 物流服务能力集合
	LogisticsServiceList []LogisticsService `json:"logistics_service_list,omitempty" xml:"logistics_service_list>logistics_service,omitempty"`
	// 收\发货地址
	ConsigneeAddress *WaybillAddress `json:"consignee_address,omitempty" xml:"consignee_address,omitempty"`
	// 收件人电话
	ConsigneePhone string `json:"consignee_phone,omitempty" xml:"consignee_phone,omitempty"`
	// ERP 订单号或包裹号
	PackageId string `json:"package_id,omitempty" xml:"package_id,omitempty"`
}

WaybillApplyFullUpdateRequest 结构体

type WaybillApplyNewInfo

type WaybillApplyNewInfo struct {
	// 根据收货地址返回大头笔信息
	ShortAddress string `json:"short_address,omitempty" xml:"short_address,omitempty"`
	// 面单对应的订单列
	TradeOrderInfo *TradeOrderInfo `json:"trade_order_info,omitempty" xml:"trade_order_info,omitempty"`
	// 返回的面单号
	WaybillCode string `json:"waybill_code,omitempty" xml:"waybill_code,omitempty"`
	// 集包地代码
	PackageCenterCode string `json:"package_center_code,omitempty" xml:"package_center_code,omitempty"`
	// 集包地名称
	PackageCenterName string `json:"package_center_name,omitempty" xml:"package_center_name,omitempty"`
	// 打印配置项,传给ali-print组件
	PrintConfig string `json:"print_config,omitempty" xml:"print_config,omitempty"`
	// 面单号对应的物流服务商网点(分支机构)代码
	ShippingBranchCode string `json:"shipping_branch_code,omitempty" xml:"shipping_branch_code,omitempty"`
	// 包裹对应的派件(收件)物流服务商网点(分支机构)名称
	ConsigneeBranchName string `json:"consignee_branch_name,omitempty" xml:"consignee_branch_name,omitempty"`
	// 面单号对于的物流服务商网点(分支机构)名称
	ShippingBranchName string `json:"shipping_branch_name,omitempty" xml:"shipping_branch_name,omitempty"`
	// 包裹对应的派件(收件)物流服务商网点(分支机构)代码
	ConsigneeBranchCode string `json:"consignee_branch_code,omitempty" xml:"consignee_branch_code,omitempty"`
}

WaybillApplyNewInfo 结构体

type WaybillApplyNewRequest

type WaybillApplyNewRequest struct {
	// 物流服务商编码
	CpCode string `json:"cp_code,omitempty" xml:"cp_code,omitempty"`
	// 收\发货地址
	ShippingAddress *WaybillAddress `json:"shipping_address,omitempty" xml:"shipping_address,omitempty"`
	// 订单数据
	TradeOrderInfoCols []TradeOrderInfo `json:"trade_order_info_cols,omitempty" xml:"trade_order_info_cols>trade_order_info,omitempty"`
}

WaybillApplyNewRequest 结构体

type WaybillApplyPrintCheckInfo

type WaybillApplyPrintCheckInfo struct {
	// 打印提示信息编码
	NoticeCode string `json:"notice_code,omitempty" xml:"notice_code,omitempty"`
	// 打印次数
	PrintQuantity int64 `json:"print_quantity,omitempty" xml:"print_quantity,omitempty"`
	// 打印提示信息
	NoticeMessage string `json:"notice_message,omitempty" xml:"notice_message,omitempty"`
	// 电子面单号
	WaybillCode string `json:"waybill_code,omitempty" xml:"waybill_code,omitempty"`
}

WaybillApplyPrintCheckInfo 结构体

type WaybillApplyPrintCheckRequest

type WaybillApplyPrintCheckRequest struct {
	// 面单详情信息
	PrintCheckInfoCols []PrintCheckInfo `json:"print_check_info_cols,omitempty" xml:"print_check_info_cols>print_check_info,omitempty"`
	// 物流服务商Code
	CpCode string `json:"cp_code,omitempty" xml:"cp_code,omitempty"`
}

WaybillApplyPrintCheckRequest 结构体

type WaybillApplyRequest

type WaybillApplyRequest struct {
	// 物流服务商ID
	CpCode string `json:"cp_code,omitempty" xml:"cp_code,omitempty"`
}

WaybillApplyRequest 结构体

type WaybillApplySubscriptionInfo

type WaybillApplySubscriptionInfo struct {
	// CP网点信息及对应的商家的发货信息
	BranchAccountCols []WaybillBranchAccount `json:"branch_account_cols,omitempty" xml:"branch_account_cols>waybill_branch_account,omitempty"`
	// 物流服务商ID
	CpCode string `json:"cp_code,omitempty" xml:"cp_code,omitempty"`
	// 物流服务商业务类型 1:直营 2:加盟 3:落地配 4:直营带网点
	CpType int64 `json:"cp_type,omitempty" xml:"cp_type,omitempty"`
}

WaybillApplySubscriptionInfo 结构体

type WaybillApplyUpdateInfo

type WaybillApplyUpdateInfo struct {
	// --
	TradeOrderInfo *TradeOrderInfo `json:"trade_order_info,omitempty" xml:"trade_order_info,omitempty"`
	// --
	WaybillCode string `json:"waybill_code,omitempty" xml:"waybill_code,omitempty"`
	// 收货网点编码
	ConsigneeBranchName string `json:"consignee_branch_name,omitempty" xml:"consignee_branch_name,omitempty"`
	// 挑拣规则(大头笔信息)
	ShortAddress string `json:"short_address,omitempty" xml:"short_address,omitempty"`
	// 收货网点信息
	ConsigneeBranchCode string `json:"consignee_branch_code,omitempty" xml:"consignee_branch_code,omitempty"`
	// 集包地、目的地中心代码。打印时根据该 code 生成目的地中心的条码,条码生成的算法与对应的电子面单条码一致
	PackageCenterCode string `json:"package_center_code,omitempty" xml:"package_center_code,omitempty"`
	// 集包地、目的地中心名称
	PackageCenterName string `json:"package_center_name,omitempty" xml:"package_center_name,omitempty"`
}

WaybillApplyUpdateInfo 结构体

type WaybillBranchAccount

type WaybillBranchAccount struct {
	// 已用面单数量
	AllocatedQuantity int64 `json:"allocated_quantity,omitempty" xml:"allocated_quantity,omitempty"`
	// 网点Code
	BranchCode string `json:"branch_code,omitempty" xml:"branch_code,omitempty"`
	// 网点名称
	BranchName string `json:"branch_name,omitempty" xml:"branch_name,omitempty"`
	// 网点状态
	BranchStatus int64 `json:"branch_status,omitempty" xml:"branch_status,omitempty"`
	// 取消的面单总数
	CancelQuantity int64 `json:"cancel_quantity,omitempty" xml:"cancel_quantity,omitempty"`
	// 已经打印的面单总数
	PrintQuantity int64 `json:"print_quantity,omitempty" xml:"print_quantity,omitempty"`
	// 电子面单余额数量
	Quantity int64 `json:"quantity,omitempty" xml:"quantity,omitempty"`
	// 当前网点下的发货地址
	ShippAddressCols []AddressDto `json:"shipp_address_cols,omitempty" xml:"shipp_address_cols>address_dto,omitempty"`
	// 可用的服务信息列表
	ServiceInfoCols []ServiceInfoDto `json:"service_info_cols,omitempty" xml:"service_info_cols>service_info_dto,omitempty"`
	// 号段信息
	SegmentCode string `json:"segment_code,omitempty" xml:"segment_code,omitempty"`
	// 商家ID
	SellerId int64 `json:"seller_id,omitempty" xml:"seller_id,omitempty"`
}

WaybillBranchAccount 结构体

type WaybillCloudPrintApplyNewRequest

type WaybillCloudPrintApplyNewRequest struct {
	// <a href="http://open.taobao.com/doc2/detail.htm?spm=a219a.7629140.0.0.8cf9Nj&treeId=17&articleId=105085&docType=1#1">物流公司Code</a>,长度小于20
	CpCode string `json:"cp_code,omitempty" xml:"cp_code,omitempty"`
	// 目前已经不推荐使用此字段,请不要使用
	ProductCode string `json:"product_code,omitempty" xml:"product_code,omitempty"`
	// 发货人信息
	Sender *UserInfoDto `json:"sender,omitempty" xml:"sender,omitempty"`
	// 请求面单信息,数量限制为10
	TradeOrderInfoDtos []TradeOrderInfoDto `json:"trade_order_info_dtos,omitempty" xml:"trade_order_info_dtos>trade_order_info_dto,omitempty"`
	// 仓code, 仓库WMS系统对接落地配业务,其它场景请不要使用
	StoreCode string `json:"store_code,omitempty" xml:"store_code,omitempty"`
	// 配送资源code, 仓库WMS系统对接落地配业务,其它场景请不要使用
	ResourceCode string `json:"resource_code,omitempty" xml:"resource_code,omitempty"`
	// 是否使用智分宝预分拣, 仓库WMS系统对接落地配业务,其它场景请不要使用
	DmsSorting bool `json:"dms_sorting,omitempty" xml:"dms_sorting,omitempty"`
	// 订单上是否带3PLtiming属性, 该属性需要严格与订单上属性保持一致,如果不确定,请使用默认false。
	ThreePlTiming bool `json:"three_pl_timing,omitempty" xml:"three_pl_timing,omitempty"`
	// 设定取号返回的云打印报文是否加密
	NeedEncrypt bool `json:"need_encrypt,omitempty" xml:"need_encrypt,omitempty"`
	// 快递公司支持一票多件,快运公司子母件请勿使用该参数
	MultiPackagesShipment bool `json:"multi_packages_shipment,omitempty" xml:"multi_packages_shipment,omitempty"`
}

WaybillCloudPrintApplyNewRequest 结构体

type WaybillCloudPrintResponse

type WaybillCloudPrintResponse struct {
	// 请求id
	ObjectId string `json:"object_id,omitempty" xml:"object_id,omitempty"`
	// 面单号, 子母件模式下为子面单号
	WaybillCode string `json:"waybill_code,omitempty" xml:"waybill_code,omitempty"`
	// 云打印内容(encryptedData表示加密结果,data表示非加密结果);模板内容,具体解释见<a href="http://open.taobao.com/doc2/detail.htm?spm=a219a.7629140.0.0.8cf9Nj&treeId=17&articleId=105085&docType=1#12">链接</a>
	PrintData string `json:"print_data,omitempty" xml:"print_data,omitempty"`
	// 子母件中的母单号,当为子母件模式时,需要此单号为实际挂载物流详情的单号,需要使用此单号进行发货,查询物流详情,非子母件,此字段为空
	ParentWaybillCode string `json:"parent_waybill_code,omitempty" xml:"parent_waybill_code,omitempty"`
}

WaybillCloudPrintResponse 结构体

type WaybillCloudPrintUpdateRequest

type WaybillCloudPrintUpdateRequest struct {
	// 物流公司CODE
	CpCode string `json:"cp_code,omitempty" xml:"cp_code,omitempty"`
	// 物流服务内容<a href="http://open.taobao.com/doc2/detail.htm?spm=a219a.7629140.0.0.eK8aZm&treeId=17&articleId=26765&docType=2">链接</a>
	LogisticsServices string `json:"logistics_services,omitempty" xml:"logistics_services,omitempty"`
	// 包裹信息
	PackageInfo *PackageInfoDto `json:"package_info,omitempty" xml:"package_info,omitempty"`
	// 收件信息
	Recipient *UserInfoDto `json:"recipient,omitempty" xml:"recipient,omitempty"`
	// 发件信息
	Sender *UserInfoDto `json:"sender,omitempty" xml:"sender,omitempty"`
	// 模板URL
	TemplateUrl string `json:"template_url,omitempty" xml:"template_url,omitempty"`
	// 面单号
	WaybillCode string `json:"waybill_code,omitempty" xml:"waybill_code,omitempty"`
	// 请求表示id
	ObjectId string `json:"object_id,omitempty" xml:"object_id,omitempty"`
}

WaybillCloudPrintUpdateRequest 结构体

type WaybillCloudPrintWithResultDescResponse

type WaybillCloudPrintWithResultDescResponse struct {
	// 单查询错误code
	ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"`
	// 单查询错误message
	ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"`
	// 请求id
	ObjectId string `json:"object_id,omitempty" xml:"object_id,omitempty"`
	// 是否查询
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
	// 面单信息
	WaybillCloudPrintResponse *WaybillCloudPrintResponse `json:"waybill_cloud_print_response,omitempty" xml:"waybill_cloud_print_response,omitempty"`
}

WaybillCloudPrintWithResultDescResponse 结构体

type WaybillDetailQueryByBizSubCodeRequest

type WaybillDetailQueryByBizSubCodeRequest struct {
	// 订单号
	BizSubCode string `json:"biz_sub_code,omitempty" xml:"biz_sub_code,omitempty"`
	// 请求id
	ObjectId string `json:"object_id,omitempty" xml:"object_id,omitempty"`
}

WaybillDetailQueryByBizSubCodeRequest 结构体

type WaybillDetailQueryByWaybillCodeRequest

type WaybillDetailQueryByWaybillCodeRequest struct {
	// 快递公司code
	CpCode string `json:"cp_code,omitempty" xml:"cp_code,omitempty"`
	// 请求id
	ObjectId string `json:"object_id,omitempty" xml:"object_id,omitempty"`
	// 电子面单号
	WaybillCode string `json:"waybill_code,omitempty" xml:"waybill_code,omitempty"`
}

WaybillDetailQueryByWaybillCodeRequest 结构体

type WaybillDetailQueryInfo

type WaybillDetailQueryInfo struct {
	// 发货网点编码
	ShippingBranchCode string `json:"shipping_branch_code,omitempty" xml:"shipping_branch_code,omitempty"`
	// 创建时间
	CreateTime string `json:"create_time,omitempty" xml:"create_time,omitempty"`
	// 发件人联系方式
	SendPhone string `json:"send_phone,omitempty" xml:"send_phone,omitempty"`
	// 收件人姓名
	ConsigneeName string `json:"consignee_name,omitempty" xml:"consignee_name,omitempty"`
	// 包裹体积 单位为ML(毫升)或立方厘米
	Weight int64 `json:"weight,omitempty" xml:"weight,omitempty"`
	// 发件人姓名
	SendName string `json:"send_name,omitempty" xml:"send_name,omitempty"`
	// 面单状态
	Status int64 `json:"status,omitempty" xml:"status,omitempty"`
	// 打印次数
	PrintCount int64 `json:"print_count,omitempty" xml:"print_count,omitempty"`
	// 包裹里面的商品类型
	PackageItems []PackageItem `json:"package_items,omitempty" xml:"package_items>package_item,omitempty"`
	// 揽收时间
	PickupTime string `json:"pickup_time,omitempty" xml:"pickup_time,omitempty"`
	// 物流商编码CODE
	CpCode string `json:"cp_code,omitempty" xml:"cp_code,omitempty"`
	// 最后一次打印时间
	LastPrintTime string `json:"last_print_time,omitempty" xml:"last_print_time,omitempty"`
	// 电子面单信息
	WaybillCode string `json:"waybill_code,omitempty" xml:"waybill_code,omitempty"`
	// 大头笔信息
	ShortAddress string `json:"short_address,omitempty" xml:"short_address,omitempty"`
	// 签收时间
	SignTime string `json:"sign_time,omitempty" xml:"sign_time,omitempty"`
	// 使用者ID
	RealUserId int64 `json:"real_user_id,omitempty" xml:"real_user_id,omitempty"`
	// 包裹重量 单位为G(克)
	Volume int64 `json:"volume,omitempty" xml:"volume,omitempty"`
	// 发货网点信息
	ShippingBranchName string `json:"shipping_branch_name,omitempty" xml:"shipping_branch_name,omitempty"`
	// 包裹对应的派件(收件)物流服务商网点(分支机构)代码
	ConsigneeBranchCode string `json:"consignee_branch_code,omitempty" xml:"consignee_branch_code,omitempty"`
	// 交易订单列表
	TradeOrderList []string `json:"trade_order_list,omitempty" xml:"trade_order_list>string,omitempty"`
	// 包裹对应的派件(收件)物流服务商网点(分支机构)名称
	ConsigneeBranchName string `json:"consignee_branch_name,omitempty" xml:"consignee_branch_name,omitempty"`
	// 收件人联系方式
	ConsigneePhone string `json:"consignee_phone,omitempty" xml:"consignee_phone,omitempty"`
	// 收货人地址
	ConsigneeAddress *WaybillAddress `json:"consignee_address,omitempty" xml:"consignee_address,omitempty"`
	// 发货地址
	ShippingAddress *WaybillAddress `json:"shipping_address,omitempty" xml:"shipping_address,omitempty"`
	// 物流服务能力集合
	LogisticsServiceList []LogisticsService `json:"logistics_service_list,omitempty" xml:"logistics_service_list>logistics_service,omitempty"`
	// 快递服务产品类型编码
	ProductType string `json:"product_type,omitempty" xml:"product_type,omitempty"`
	// ERP订单号或包裹号
	PackageId string `json:"package_id,omitempty" xml:"package_id,omitempty"`
	// 集包地、目的地中心代码。打印时根据该 code 生成目的地中心的条码,条码生成的算法与对应的电子面单条码一致
	PackageCenterCode string `json:"package_center_code,omitempty" xml:"package_center_code,omitempty"`
	// 集包地、目的地中心名称
	PackageCenterName string `json:"package_center_name,omitempty" xml:"package_center_name,omitempty"`
	// 打印配置项
	PrintConfig string `json:"print_config,omitempty" xml:"print_config,omitempty"`
}

WaybillDetailQueryInfo 结构体

type WaybillDetailQueryRequest

type WaybillDetailQueryRequest struct {
	// 电子面单单号
	WaybillCodes []string `json:"waybill_codes,omitempty" xml:"waybill_codes>string,omitempty"`
	// CP快递公司编码
	CpCode string `json:"cp_code,omitempty" xml:"cp_code,omitempty"`
	// 0:根据cp_code和waybil_code查询;1:根据订单号查询
	QueryBy int64 `json:"query_by,omitempty" xml:"query_by,omitempty"`
	// 交易订单号
	TradeOrderList []string `json:"trade_order_list,omitempty" xml:"trade_order_list>string,omitempty"`
}

WaybillDetailQueryRequest 结构体

type WaybillProductType

type WaybillProductType struct {
	// 产品code
	Code string `json:"code,omitempty" xml:"code,omitempty"`
	// 产品名称
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 物流服务
	ServiceTypes []WaybillServiceType `json:"service_types,omitempty" xml:"service_types>waybill_service_type,omitempty"`
}

WaybillProductType 结构体

type WaybillProductTypeRequest

type WaybillProductTypeRequest struct {
	// 物流商编码CODE
	CpCode string `json:"cp_code,omitempty" xml:"cp_code,omitempty"`
}

WaybillProductTypeRequest 结构体

type WaybillServiceType

type WaybillServiceType struct {
	// code
	Code string `json:"code,omitempty" xml:"code,omitempty"`
	// name
	Name string `json:"name,omitempty" xml:"name,omitempty"`
}

WaybillServiceType 结构体

Source Files

Jump to

Keyboard shortcuts

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