cainiaohandover

package
v1.2.0 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

菜鸟国际出口 model

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddressDto

type AddressDto struct {
	// 邮编
	ZipCode string `json:"zip_code,omitempty" xml:"zip_code,omitempty"`
	// 详细地址
	DetailAddress string `json:"detail_address,omitempty" xml:"detail_address,omitempty"`
	// 街道
	Street string `json:"street,omitempty" xml:"street,omitempty"`
	// 区
	District string `json:"district,omitempty" xml:"district,omitempty"`
	// 市
	City string `json:"city,omitempty" xml:"city,omitempty"`
	// 省
	Province string `json:"province,omitempty" xml:"province,omitempty"`
	// 国家
	Country string `json:"country,omitempty" xml:"country,omitempty"`
}

AddressDto

type AeopActualCarrierResponse

type AeopActualCarrierResponse struct {
	// 实际承运商
	CourierList []Courierlist `json:"courier_list,omitempty" xml:"courier_list>courierlist,omitempty"`
}

AeopActualCarrierResponse

type CainiaoGlobalHandoverCancelAPIRequest

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

取消交接单 API请求 cainiao.global.handover.cancel

提供给ISV通过该接口取消交接单

func NewCainiaoGlobalHandoverCancelRequest

func NewCainiaoGlobalHandoverCancelRequest() *CainiaoGlobalHandoverCancelAPIRequest

初始化CainiaoGlobalHandoverCancelAPIRequest对象

func (CainiaoGlobalHandoverCancelAPIRequest) GetApiMethodName

func (r CainiaoGlobalHandoverCancelAPIRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (CainiaoGlobalHandoverCancelAPIRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (CainiaoGlobalHandoverCancelAPIRequest) GetClient

Client Getter

func (CainiaoGlobalHandoverCancelAPIRequest) GetHandoverContentId

func (r CainiaoGlobalHandoverCancelAPIRequest) GetHandoverContentId() int64

HandoverContentId Getter

func (CainiaoGlobalHandoverCancelAPIRequest) GetHandoverOrderId

func (r CainiaoGlobalHandoverCancelAPIRequest) GetHandoverOrderId() int64

HandoverOrderId Getter

func (CainiaoGlobalHandoverCancelAPIRequest) GetLocale

Locale Getter

func (CainiaoGlobalHandoverCancelAPIRequest) GetTrackingNumber

func (r CainiaoGlobalHandoverCancelAPIRequest) GetTrackingNumber() string

TrackingNumber Getter

func (CainiaoGlobalHandoverCancelAPIRequest) GetUserInfo

UserInfo Getter

func (*CainiaoGlobalHandoverCancelAPIRequest) SetClient

func (r *CainiaoGlobalHandoverCancelAPIRequest) SetClient(_client string) error

Client Setter ISV名称,ISV:ISV-ISV英文或拼音名称、商家ERP:SELLER-商家英文或拼音名称

func (*CainiaoGlobalHandoverCancelAPIRequest) SetHandoverContentId

func (r *CainiaoGlobalHandoverCancelAPIRequest) SetHandoverContentId(_handoverContentId int64) error

HandoverContentId Setter 要取消的交接物id,即大包id

func (*CainiaoGlobalHandoverCancelAPIRequest) SetHandoverOrderId

func (r *CainiaoGlobalHandoverCancelAPIRequest) SetHandoverOrderId(_handoverOrderId int64) error

HandoverOrderId Setter 要取消的交接单id

func (*CainiaoGlobalHandoverCancelAPIRequest) SetLocale

func (r *CainiaoGlobalHandoverCancelAPIRequest) SetLocale(_locale string) error

Locale Setter 多语言

func (*CainiaoGlobalHandoverCancelAPIRequest) SetTrackingNumber

func (r *CainiaoGlobalHandoverCancelAPIRequest) SetTrackingNumber(_trackingNumber string) error

TrackingNumber Setter 要取消的交接物运单号,即大包运单号

func (*CainiaoGlobalHandoverCancelAPIRequest) SetUserInfo

func (r *CainiaoGlobalHandoverCancelAPIRequest) SetUserInfo(_userInfo *UserInfoDto) error

UserInfo Setter 系统自动生成

type CainiaoGlobalHandoverCancelAPIResponse

type CainiaoGlobalHandoverCancelAPIResponse struct {
	model.CommonResponse
	CainiaoGlobalHandoverCancelAPIResponseModel
}

取消交接单 API返回值 cainiao.global.handover.cancel

提供给ISV通过该接口取消交接单

type CainiaoGlobalHandoverCancelAPIResponseModel

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

取消交接单 成功返回结果

type CainiaoGlobalHandoverCloudprintGetAPIRequest

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

获取面单云打印数据 API请求 cainiao.global.handover.cloudprint.get

提供给ISV通过该接口获取面单云打印数据

func NewCainiaoGlobalHandoverCloudprintGetRequest

func NewCainiaoGlobalHandoverCloudprintGetRequest() *CainiaoGlobalHandoverCloudprintGetAPIRequest

初始化CainiaoGlobalHandoverCloudprintGetAPIRequest对象

func (CainiaoGlobalHandoverCloudprintGetAPIRequest) GetApiMethodName

IRequest interface 方法, 获取Api method

func (CainiaoGlobalHandoverCloudprintGetAPIRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (CainiaoGlobalHandoverCloudprintGetAPIRequest) GetClient

Client Getter

func (CainiaoGlobalHandoverCloudprintGetAPIRequest) GetLocale

Locale Getter

func (CainiaoGlobalHandoverCloudprintGetAPIRequest) GetOrderCode

OrderCode Getter

func (CainiaoGlobalHandoverCloudprintGetAPIRequest) GetTrackingNumber

TrackingNumber Getter

func (CainiaoGlobalHandoverCloudprintGetAPIRequest) GetUserInfo

UserInfo Getter

func (*CainiaoGlobalHandoverCloudprintGetAPIRequest) SetClient

Client Setter ISV名称,ISV:ISV-ISV英文或拼音名称、商家ERP:SELLER-商家英文或拼音名称

func (*CainiaoGlobalHandoverCloudprintGetAPIRequest) SetLocale

Locale Setter 多语言

func (*CainiaoGlobalHandoverCloudprintGetAPIRequest) SetOrderCode

func (r *CainiaoGlobalHandoverCloudprintGetAPIRequest) SetOrderCode(_orderCode string) error

OrderCode Setter 大包物流单LP号

func (*CainiaoGlobalHandoverCloudprintGetAPIRequest) SetTrackingNumber

func (r *CainiaoGlobalHandoverCloudprintGetAPIRequest) SetTrackingNumber(_trackingNumber string) error

TrackingNumber Setter 大包运单号

func (*CainiaoGlobalHandoverCloudprintGetAPIRequest) SetUserInfo

UserInfo Setter 用户信息

type CainiaoGlobalHandoverCloudprintGetAPIResponse

type CainiaoGlobalHandoverCloudprintGetAPIResponse struct {
	model.CommonResponse
	CainiaoGlobalHandoverCloudprintGetAPIResponseModel
}

获取面单云打印数据 API返回值 cainiao.global.handover.cloudprint.get

提供给ISV通过该接口获取面单云打印数据

type CainiaoGlobalHandoverCloudprintGetAPIResponseModel

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

获取面单云打印数据 成功返回结果

type CainiaoGlobalHandoverCommitAPIRequest

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

提交发布交接单 API请求 cainiao.global.handover.commit

提供给ISV通过该接口提交发布交接单

func NewCainiaoGlobalHandoverCommitRequest

func NewCainiaoGlobalHandoverCommitRequest() *CainiaoGlobalHandoverCommitAPIRequest

初始化CainiaoGlobalHandoverCommitAPIRequest对象

func (CainiaoGlobalHandoverCommitAPIRequest) GetApiMethodName

func (r CainiaoGlobalHandoverCommitAPIRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (CainiaoGlobalHandoverCommitAPIRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (CainiaoGlobalHandoverCommitAPIRequest) GetClient

Client Getter

func (CainiaoGlobalHandoverCommitAPIRequest) GetFeatures

Features Getter

func (CainiaoGlobalHandoverCommitAPIRequest) GetHandoverOrderId

func (r CainiaoGlobalHandoverCommitAPIRequest) GetHandoverOrderId() int64

HandoverOrderId Getter

func (CainiaoGlobalHandoverCommitAPIRequest) GetLocale

Locale Getter

func (CainiaoGlobalHandoverCommitAPIRequest) GetOrderCodeList

func (r CainiaoGlobalHandoverCommitAPIRequest) GetOrderCodeList() []string

OrderCodeList Getter

func (CainiaoGlobalHandoverCommitAPIRequest) GetPickupInfo

PickupInfo Getter

func (CainiaoGlobalHandoverCommitAPIRequest) GetRemark

Remark Getter

func (CainiaoGlobalHandoverCommitAPIRequest) GetReturnInfo

ReturnInfo Getter

func (CainiaoGlobalHandoverCommitAPIRequest) GetType

Type Getter

func (CainiaoGlobalHandoverCommitAPIRequest) GetUserInfo

UserInfo Getter

func (CainiaoGlobalHandoverCommitAPIRequest) GetWeight

Weight Getter

func (CainiaoGlobalHandoverCommitAPIRequest) GetWeightUnit

WeightUnit Getter

func (*CainiaoGlobalHandoverCommitAPIRequest) SetClient

func (r *CainiaoGlobalHandoverCommitAPIRequest) SetClient(_client string) error

Client Setter ISV名称,ISV:ISV-ISV英文或拼音名称、商家ERP:SELLER-商家英文或拼音名称

func (*CainiaoGlobalHandoverCommitAPIRequest) SetFeatures

func (r *CainiaoGlobalHandoverCommitAPIRequest) SetFeatures(_features *Features) error

Features Setter 扩展字段

func (*CainiaoGlobalHandoverCommitAPIRequest) SetHandoverOrderId

func (r *CainiaoGlobalHandoverCommitAPIRequest) SetHandoverOrderId(_handoverOrderId int64) error

HandoverOrderId Setter 交接单id

func (*CainiaoGlobalHandoverCommitAPIRequest) SetLocale

func (r *CainiaoGlobalHandoverCommitAPIRequest) SetLocale(_locale string) error

Locale Setter 多语言

func (*CainiaoGlobalHandoverCommitAPIRequest) SetOrderCodeList

func (r *CainiaoGlobalHandoverCommitAPIRequest) SetOrderCodeList(_orderCodeList []string) error

OrderCodeList Setter 要创建交接单的小包编码集合,数量上限1000

func (*CainiaoGlobalHandoverCommitAPIRequest) SetPickupInfo

func (r *CainiaoGlobalHandoverCommitAPIRequest) SetPickupInfo(_pickupInfo *PickupDto) error

PickupInfo Setter 揽收信息

func (*CainiaoGlobalHandoverCommitAPIRequest) SetRemark

func (r *CainiaoGlobalHandoverCommitAPIRequest) SetRemark(_remark string) error

Remark Setter 大包备注

func (*CainiaoGlobalHandoverCommitAPIRequest) SetReturnInfo

func (r *CainiaoGlobalHandoverCommitAPIRequest) SetReturnInfo(_returnInfo *ReturnerDto) error

ReturnInfo Setter 退件信息

func (*CainiaoGlobalHandoverCommitAPIRequest) SetType

Type Setter 交接单类型:cainiao_pickup(菜鸟揽收)、self_post(自寄)

func (*CainiaoGlobalHandoverCommitAPIRequest) SetUserInfo

func (r *CainiaoGlobalHandoverCommitAPIRequest) SetUserInfo(_userInfo *UserInfoDto) error

UserInfo Setter 用户信息

func (*CainiaoGlobalHandoverCommitAPIRequest) SetWeight

func (r *CainiaoGlobalHandoverCommitAPIRequest) SetWeight(_weight int64) error

Weight Setter 大包重量

func (*CainiaoGlobalHandoverCommitAPIRequest) SetWeightUnit

func (r *CainiaoGlobalHandoverCommitAPIRequest) SetWeightUnit(_weightUnit string) error

WeightUnit Setter 重量单位,克:g, 千克:kg,默认g

type CainiaoGlobalHandoverCommitAPIResponse

type CainiaoGlobalHandoverCommitAPIResponse struct {
	model.CommonResponse
	CainiaoGlobalHandoverCommitAPIResponseModel
}

提交发布交接单 API返回值 cainiao.global.handover.commit

提供给ISV通过该接口提交发布交接单

type CainiaoGlobalHandoverCommitAPIResponseModel

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

提交发布交接单 成功返回结果

type CainiaoGlobalHandoverContentQueryAPIRequest

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

查询大包详情 API请求 cainiao.global.handover.content.query

查询大包详情

func NewCainiaoGlobalHandoverContentQueryRequest

func NewCainiaoGlobalHandoverContentQueryRequest() *CainiaoGlobalHandoverContentQueryAPIRequest

初始化CainiaoGlobalHandoverContentQueryAPIRequest对象

func (CainiaoGlobalHandoverContentQueryAPIRequest) GetApiMethodName

IRequest interface 方法, 获取Api method

func (CainiaoGlobalHandoverContentQueryAPIRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (CainiaoGlobalHandoverContentQueryAPIRequest) GetClient

Client Getter

func (CainiaoGlobalHandoverContentQueryAPIRequest) GetLocale

Locale Getter

func (CainiaoGlobalHandoverContentQueryAPIRequest) GetOrderCode

OrderCode Getter

func (CainiaoGlobalHandoverContentQueryAPIRequest) GetTrackingNumber

TrackingNumber Getter

func (CainiaoGlobalHandoverContentQueryAPIRequest) GetUserInfo

UserInfo Getter

func (*CainiaoGlobalHandoverContentQueryAPIRequest) SetClient

Client Setter 客户端名称,ISV:ISV-ISV英文或拼音名称、商家ERP:SELLER-商家英文或拼音名称

func (*CainiaoGlobalHandoverContentQueryAPIRequest) SetLocale

Locale Setter 多语言

func (*CainiaoGlobalHandoverContentQueryAPIRequest) SetOrderCode

func (r *CainiaoGlobalHandoverContentQueryAPIRequest) SetOrderCode(_orderCode string) error

OrderCode Setter 交接物物流订单编码,和交接物运单号参数可以任选其一即可

func (*CainiaoGlobalHandoverContentQueryAPIRequest) SetTrackingNumber

func (r *CainiaoGlobalHandoverContentQueryAPIRequest) SetTrackingNumber(_trackingNumber string) error

TrackingNumber Setter 交接物运单号,和交接物物流订单编码参数任选其一即可

func (*CainiaoGlobalHandoverContentQueryAPIRequest) SetUserInfo

UserInfo Setter 用户信息

type CainiaoGlobalHandoverContentQueryAPIResponse

type CainiaoGlobalHandoverContentQueryAPIResponse struct {
	model.CommonResponse
	CainiaoGlobalHandoverContentQueryAPIResponseModel
}

查询大包详情 API返回值 cainiao.global.handover.content.query

查询大包详情

type CainiaoGlobalHandoverContentQueryAPIResponseModel

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

查询大包详情 成功返回结果

type CainiaoGlobalHandoverParcelQueryAPIRequest

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

获取交接单小包信息 API请求 cainiao.global.handover.parcel.query

提供给ISV通过该接口查询小包信息

func NewCainiaoGlobalHandoverParcelQueryRequest

func NewCainiaoGlobalHandoverParcelQueryRequest() *CainiaoGlobalHandoverParcelQueryAPIRequest

初始化CainiaoGlobalHandoverParcelQueryAPIRequest对象

func (CainiaoGlobalHandoverParcelQueryAPIRequest) GetApiMethodName

IRequest interface 方法, 获取Api method

func (CainiaoGlobalHandoverParcelQueryAPIRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (CainiaoGlobalHandoverParcelQueryAPIRequest) GetClient

Client Getter

func (CainiaoGlobalHandoverParcelQueryAPIRequest) GetLocale

Locale Getter

func (CainiaoGlobalHandoverParcelQueryAPIRequest) GetOrderCode

OrderCode Getter

func (CainiaoGlobalHandoverParcelQueryAPIRequest) GetTrackingNumber

func (r CainiaoGlobalHandoverParcelQueryAPIRequest) GetTrackingNumber() string

TrackingNumber Getter

func (CainiaoGlobalHandoverParcelQueryAPIRequest) GetUserInfo

UserInfo Getter

func (*CainiaoGlobalHandoverParcelQueryAPIRequest) SetClient

Client Setter 客户端名称,ISV:ISV-ISV英文或拼音名称、商家ERP:SELLER-商家英文或拼音名称

func (*CainiaoGlobalHandoverParcelQueryAPIRequest) SetLocale

Locale Setter 多语言

func (*CainiaoGlobalHandoverParcelQueryAPIRequest) SetOrderCode

func (r *CainiaoGlobalHandoverParcelQueryAPIRequest) SetOrderCode(_orderCode string) error

OrderCode Setter 小包的物流订单号,和小包的国际运单号参数任选其一即可

func (*CainiaoGlobalHandoverParcelQueryAPIRequest) SetTrackingNumber

func (r *CainiaoGlobalHandoverParcelQueryAPIRequest) SetTrackingNumber(_trackingNumber string) error

TrackingNumber Setter 小包的国际运单号,和小包的物流订单号参数任选其一即可

func (*CainiaoGlobalHandoverParcelQueryAPIRequest) SetUserInfo

UserInfo Setter 用户信息

type CainiaoGlobalHandoverParcelQueryAPIResponse

type CainiaoGlobalHandoverParcelQueryAPIResponse struct {
	model.CommonResponse
	CainiaoGlobalHandoverParcelQueryAPIResponseModel
}

获取交接单小包信息 API返回值 cainiao.global.handover.parcel.query

提供给ISV通过该接口查询小包信息

type CainiaoGlobalHandoverParcelQueryAPIResponseModel

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

获取交接单小包信息 成功返回结果

type CainiaoGlobalHandoverPdfGetAPIRequest

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

获取面单PDF文件数据 API请求 cainiao.global.handover.pdf.get

返回指定大包面单的PDF文件数据

func NewCainiaoGlobalHandoverPdfGetRequest

func NewCainiaoGlobalHandoverPdfGetRequest() *CainiaoGlobalHandoverPdfGetAPIRequest

初始化CainiaoGlobalHandoverPdfGetAPIRequest对象

func (CainiaoGlobalHandoverPdfGetAPIRequest) GetApiMethodName

func (r CainiaoGlobalHandoverPdfGetAPIRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (CainiaoGlobalHandoverPdfGetAPIRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (CainiaoGlobalHandoverPdfGetAPIRequest) GetClient

Client Getter

func (CainiaoGlobalHandoverPdfGetAPIRequest) GetHandoverContentId

func (r CainiaoGlobalHandoverPdfGetAPIRequest) GetHandoverContentId() int64

HandoverContentId Getter

func (CainiaoGlobalHandoverPdfGetAPIRequest) GetLocale

Locale Getter

func (CainiaoGlobalHandoverPdfGetAPIRequest) GetType

Type Getter

func (CainiaoGlobalHandoverPdfGetAPIRequest) GetUserInfo

UserInfo Getter

func (*CainiaoGlobalHandoverPdfGetAPIRequest) SetClient

func (r *CainiaoGlobalHandoverPdfGetAPIRequest) SetClient(_client string) error

Client Setter 客户端名称,ISV:ISV-ISV英文或拼音名称、商家ERP:SELLER-商家英文或拼音名称

func (*CainiaoGlobalHandoverPdfGetAPIRequest) SetHandoverContentId

func (r *CainiaoGlobalHandoverPdfGetAPIRequest) SetHandoverContentId(_handoverContentId int64) error

HandoverContentId Setter 大包编号id

func (*CainiaoGlobalHandoverPdfGetAPIRequest) SetLocale

func (r *CainiaoGlobalHandoverPdfGetAPIRequest) SetLocale(_locale string) error

Locale Setter 多语言

func (*CainiaoGlobalHandoverPdfGetAPIRequest) SetType

Type Setter 打印数据类型,1:面单、4:发货标签、512:交接清单

func (*CainiaoGlobalHandoverPdfGetAPIRequest) SetUserInfo

func (r *CainiaoGlobalHandoverPdfGetAPIRequest) SetUserInfo(_userInfo *UserInfoDto) error

UserInfo Setter 用户信息

type CainiaoGlobalHandoverPdfGetAPIResponse

type CainiaoGlobalHandoverPdfGetAPIResponse struct {
	model.CommonResponse
	CainiaoGlobalHandoverPdfGetAPIResponseModel
}

获取面单PDF文件数据 API返回值 cainiao.global.handover.pdf.get

返回指定大包面单的PDF文件数据

type CainiaoGlobalHandoverPdfGetAPIResponseModel

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

获取面单PDF文件数据 成功返回结果

type CainiaoGlobalHandoverSavedraftAPIRequest

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

创建交接单草稿 API请求 cainiao.global.handover.savedraft

提供给ISV通过该接口创建交接单草稿

func NewCainiaoGlobalHandoverSavedraftRequest

func NewCainiaoGlobalHandoverSavedraftRequest() *CainiaoGlobalHandoverSavedraftAPIRequest

初始化CainiaoGlobalHandoverSavedraftAPIRequest对象

func (CainiaoGlobalHandoverSavedraftAPIRequest) GetApiMethodName

func (r CainiaoGlobalHandoverSavedraftAPIRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (CainiaoGlobalHandoverSavedraftAPIRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (CainiaoGlobalHandoverSavedraftAPIRequest) GetClient

Client Getter

func (CainiaoGlobalHandoverSavedraftAPIRequest) GetLocale

Locale Getter

func (CainiaoGlobalHandoverSavedraftAPIRequest) GetOrderCodeList

func (r CainiaoGlobalHandoverSavedraftAPIRequest) GetOrderCodeList() []string

OrderCodeList Getter

func (CainiaoGlobalHandoverSavedraftAPIRequest) GetPickupInfo

PickupInfo Getter

func (CainiaoGlobalHandoverSavedraftAPIRequest) GetRemark

Remark Getter

func (CainiaoGlobalHandoverSavedraftAPIRequest) GetReturnInfo

ReturnInfo Getter

func (CainiaoGlobalHandoverSavedraftAPIRequest) GetUserInfo

UserInfo Getter

func (CainiaoGlobalHandoverSavedraftAPIRequest) GetWeight

Weight Getter

func (CainiaoGlobalHandoverSavedraftAPIRequest) GetWeightUnit

WeightUnit Getter

func (*CainiaoGlobalHandoverSavedraftAPIRequest) SetClient

Client Setter 客户端名称,ISV:ISV-ISV英文或拼音名称、商家ERP:SELLER-商家英文或拼音名称

func (*CainiaoGlobalHandoverSavedraftAPIRequest) SetLocale

Locale Setter 多语言

func (*CainiaoGlobalHandoverSavedraftAPIRequest) SetOrderCodeList

func (r *CainiaoGlobalHandoverSavedraftAPIRequest) SetOrderCodeList(_orderCodeList []string) error

OrderCodeList Setter 需要组装大包的小包编码集合,最多限制200个小包

func (*CainiaoGlobalHandoverSavedraftAPIRequest) SetPickupInfo

func (r *CainiaoGlobalHandoverSavedraftAPIRequest) SetPickupInfo(_pickupInfo *PickupDto) error

PickupInfo Setter 揽收信息

func (*CainiaoGlobalHandoverSavedraftAPIRequest) SetRemark

Remark Setter 备注

func (*CainiaoGlobalHandoverSavedraftAPIRequest) SetReturnInfo

func (r *CainiaoGlobalHandoverSavedraftAPIRequest) SetReturnInfo(_returnInfo *ReturnerDto) error

ReturnInfo Setter 退件信息

func (*CainiaoGlobalHandoverSavedraftAPIRequest) SetUserInfo

func (r *CainiaoGlobalHandoverSavedraftAPIRequest) SetUserInfo(_userInfo *UserInfoDto) error

UserInfo Setter 用户信息

func (*CainiaoGlobalHandoverSavedraftAPIRequest) SetWeight

Weight Setter 大包重量

func (*CainiaoGlobalHandoverSavedraftAPIRequest) SetWeightUnit

func (r *CainiaoGlobalHandoverSavedraftAPIRequest) SetWeightUnit(_weightUnit string) error

WeightUnit Setter 重量单位,克:g, 千克:kg,默认g

type CainiaoGlobalHandoverSavedraftAPIResponse

type CainiaoGlobalHandoverSavedraftAPIResponse struct {
	model.CommonResponse
	CainiaoGlobalHandoverSavedraftAPIResponseModel
}

创建交接单草稿 API返回值 cainiao.global.handover.savedraft

提供给ISV通过该接口创建交接单草稿

type CainiaoGlobalHandoverSavedraftAPIResponseModel

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

创建交接单草稿 成功返回结果

type CainiaoGlobalHandoverUpdateAPIRequest

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

修改交接单 API请求 cainiao.global.handover.update

提供给ISV通过该接口修改交接单

func NewCainiaoGlobalHandoverUpdateRequest

func NewCainiaoGlobalHandoverUpdateRequest() *CainiaoGlobalHandoverUpdateAPIRequest

初始化CainiaoGlobalHandoverUpdateAPIRequest对象

func (CainiaoGlobalHandoverUpdateAPIRequest) GetApiMethodName

func (r CainiaoGlobalHandoverUpdateAPIRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (CainiaoGlobalHandoverUpdateAPIRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (CainiaoGlobalHandoverUpdateAPIRequest) GetClient

Client Getter

func (CainiaoGlobalHandoverUpdateAPIRequest) GetHandoverOrderId

func (r CainiaoGlobalHandoverUpdateAPIRequest) GetHandoverOrderId() int64

HandoverOrderId Getter

func (CainiaoGlobalHandoverUpdateAPIRequest) GetLocale

Locale Getter

func (CainiaoGlobalHandoverUpdateAPIRequest) GetOrderCodeList

func (r CainiaoGlobalHandoverUpdateAPIRequest) GetOrderCodeList() []string

OrderCodeList Getter

func (CainiaoGlobalHandoverUpdateAPIRequest) GetPickupInfo

PickupInfo Getter

func (CainiaoGlobalHandoverUpdateAPIRequest) GetRemark

Remark Getter

func (CainiaoGlobalHandoverUpdateAPIRequest) GetReturnInfo

ReturnInfo Getter

func (CainiaoGlobalHandoverUpdateAPIRequest) GetType

Type Getter

func (CainiaoGlobalHandoverUpdateAPIRequest) GetUserInfo

UserInfo Getter

func (CainiaoGlobalHandoverUpdateAPIRequest) GetWeight

Weight Getter

func (CainiaoGlobalHandoverUpdateAPIRequest) GetWeightUnit

WeightUnit Getter

func (*CainiaoGlobalHandoverUpdateAPIRequest) SetClient

func (r *CainiaoGlobalHandoverUpdateAPIRequest) SetClient(_client string) error

Client Setter ISV名称,ISV:ISV-ISV英文或拼音名称、商家ERP:SELLER-商家英文或拼音名称

func (*CainiaoGlobalHandoverUpdateAPIRequest) SetHandoverOrderId

func (r *CainiaoGlobalHandoverUpdateAPIRequest) SetHandoverOrderId(_handoverOrderId int64) error

HandoverOrderId Setter 交接单id

func (*CainiaoGlobalHandoverUpdateAPIRequest) SetLocale

func (r *CainiaoGlobalHandoverUpdateAPIRequest) SetLocale(_locale string) error

Locale Setter 多语言

func (*CainiaoGlobalHandoverUpdateAPIRequest) SetOrderCodeList

func (r *CainiaoGlobalHandoverUpdateAPIRequest) SetOrderCodeList(_orderCodeList []string) error

OrderCodeList Setter 要创建交接单的小包编码集合,数量上限200

func (*CainiaoGlobalHandoverUpdateAPIRequest) SetPickupInfo

func (r *CainiaoGlobalHandoverUpdateAPIRequest) SetPickupInfo(_pickupInfo *PickupDto) error

PickupInfo Setter 揽收信息

func (*CainiaoGlobalHandoverUpdateAPIRequest) SetRemark

func (r *CainiaoGlobalHandoverUpdateAPIRequest) SetRemark(_remark string) error

Remark Setter 大包备注

func (*CainiaoGlobalHandoverUpdateAPIRequest) SetReturnInfo

func (r *CainiaoGlobalHandoverUpdateAPIRequest) SetReturnInfo(_returnInfo *ReturnerDto) error

ReturnInfo Setter 退件信息

func (*CainiaoGlobalHandoverUpdateAPIRequest) SetType

Type Setter 交接单类型,菜鸟揽收(cainiao_pickup)或自寄(self_post),默认菜鸟揽收

func (*CainiaoGlobalHandoverUpdateAPIRequest) SetUserInfo

func (r *CainiaoGlobalHandoverUpdateAPIRequest) SetUserInfo(_userInfo *UserInfoDto) error

UserInfo Setter 用户信息

func (*CainiaoGlobalHandoverUpdateAPIRequest) SetWeight

func (r *CainiaoGlobalHandoverUpdateAPIRequest) SetWeight(_weight int64) error

Weight Setter 大包重量

func (*CainiaoGlobalHandoverUpdateAPIRequest) SetWeightUnit

func (r *CainiaoGlobalHandoverUpdateAPIRequest) SetWeightUnit(_weightUnit string) error

WeightUnit Setter 重量单位,克:g, 千克:kg,默认g

type CainiaoGlobalHandoverUpdateAPIResponse

type CainiaoGlobalHandoverUpdateAPIResponse struct {
	model.CommonResponse
	CainiaoGlobalHandoverUpdateAPIResponseModel
}

修改交接单 API返回值 cainiao.global.handover.update

提供给ISV通过该接口修改交接单

type CainiaoGlobalHandoverUpdateAPIResponseModel

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

修改交接单 成功返回结果

type CainiaoGlobalLogisticOrderCreateAPIRequest

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

创建物流订单 API请求 cainiao.global.logistic.order.create

创建物流订单

func NewCainiaoGlobalLogisticOrderCreateRequest

func NewCainiaoGlobalLogisticOrderCreateRequest() *CainiaoGlobalLogisticOrderCreateAPIRequest

初始化CainiaoGlobalLogisticOrderCreateAPIRequest对象

func (CainiaoGlobalLogisticOrderCreateAPIRequest) GetApiMethodName

IRequest interface 方法, 获取Api method

func (CainiaoGlobalLogisticOrderCreateAPIRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (CainiaoGlobalLogisticOrderCreateAPIRequest) GetLocale

Locale Getter

func (CainiaoGlobalLogisticOrderCreateAPIRequest) GetOrderParam

OrderParam Getter

func (*CainiaoGlobalLogisticOrderCreateAPIRequest) SetLocale

Locale Setter 多语言

func (*CainiaoGlobalLogisticOrderCreateAPIRequest) SetOrderParam

func (r *CainiaoGlobalLogisticOrderCreateAPIRequest) SetOrderParam(_orderParam *OpenOrderParam) error

OrderParam Setter 订单参数

type CainiaoGlobalLogisticOrderCreateAPIResponse

type CainiaoGlobalLogisticOrderCreateAPIResponse struct {
	model.CommonResponse
	CainiaoGlobalLogisticOrderCreateAPIResponseModel
}

创建物流订单 API返回值 cainiao.global.logistic.order.create

创建物流订单

type CainiaoGlobalLogisticOrderCreateAPIResponseModel

type CainiaoGlobalLogisticOrderCreateAPIResponseModel struct {
	XMLName xml.Name `xml:"cainiao_global_logistic_order_create_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 是否需要重试
	NeedRetry bool `json:"need_retry,omitempty" xml:"need_retry,omitempty"`
	// 请求结果
	Result *OpenTakingOrderResponse `json:"result,omitempty" xml:"result,omitempty"`
	// 创建是否成功
	IsSuccess string `json:"is_success,omitempty" xml:"is_success,omitempty"`
	// 错误信息
	ErrorInfo *ErrorInfo `json:"error_info,omitempty" xml:"error_info,omitempty"`
}

创建物流订单 成功返回结果

type CainiaoGlobalLogisticsCarrierQuerylistAPIRequest

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

实际承运商查询 API请求 cainiao.global.logistics.carrier.querylist

查询出所有的实际承运商

func NewCainiaoGlobalLogisticsCarrierQuerylistRequest

func NewCainiaoGlobalLogisticsCarrierQuerylistRequest() *CainiaoGlobalLogisticsCarrierQuerylistAPIRequest

初始化CainiaoGlobalLogisticsCarrierQuerylistAPIRequest对象

func (CainiaoGlobalLogisticsCarrierQuerylistAPIRequest) GetApiMethodName

IRequest interface 方法, 获取Api method

func (CainiaoGlobalLogisticsCarrierQuerylistAPIRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (CainiaoGlobalLogisticsCarrierQuerylistAPIRequest) GetLocale

Locale Getter

func (*CainiaoGlobalLogisticsCarrierQuerylistAPIRequest) SetLocale

Locale Setter 多语言(暂不支持,保留入参)

type CainiaoGlobalLogisticsCarrierQuerylistAPIResponse

type CainiaoGlobalLogisticsCarrierQuerylistAPIResponse struct {
	model.CommonResponse
	CainiaoGlobalLogisticsCarrierQuerylistAPIResponseModel
}

实际承运商查询 API返回值 cainiao.global.logistics.carrier.querylist

查询出所有的实际承运商

type CainiaoGlobalLogisticsCarrierQuerylistAPIResponseModel

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

实际承运商查询 成功返回结果

type CainiaoGlobalSolutionInquiryAPIRequest

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

解决方案询盘 API请求 cainiao.global.solution.inquiry

根据交易单号查询可用的解决方案

func NewCainiaoGlobalSolutionInquiryRequest

func NewCainiaoGlobalSolutionInquiryRequest() *CainiaoGlobalSolutionInquiryAPIRequest

初始化CainiaoGlobalSolutionInquiryAPIRequest对象

func (CainiaoGlobalSolutionInquiryAPIRequest) GetApiMethodName

func (r CainiaoGlobalSolutionInquiryAPIRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (CainiaoGlobalSolutionInquiryAPIRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (CainiaoGlobalSolutionInquiryAPIRequest) GetLocale

Locale Getter

func (CainiaoGlobalSolutionInquiryAPIRequest) GetPackageParams

PackageParams Getter

func (CainiaoGlobalSolutionInquiryAPIRequest) GetSellerInfoParam

SellerInfoParam Getter

func (CainiaoGlobalSolutionInquiryAPIRequest) GetTradeOrderParam

TradeOrderParam Getter

func (*CainiaoGlobalSolutionInquiryAPIRequest) SetLocale

func (r *CainiaoGlobalSolutionInquiryAPIRequest) SetLocale(_locale string) error

Locale Setter 多语言,zh_CN中文、en_US:英文、ru_RU俄语

func (*CainiaoGlobalSolutionInquiryAPIRequest) SetPackageParams

func (r *CainiaoGlobalSolutionInquiryAPIRequest) SetPackageParams(_packageParams []OpenPackageParam) error

PackageParams Setter 包裹参数

func (*CainiaoGlobalSolutionInquiryAPIRequest) SetSellerInfoParam

func (r *CainiaoGlobalSolutionInquiryAPIRequest) SetSellerInfoParam(_sellerInfoParam *OpenSellerInfoParam) error

SellerInfoParam Setter 商家信息

func (*CainiaoGlobalSolutionInquiryAPIRequest) SetTradeOrderParam

func (r *CainiaoGlobalSolutionInquiryAPIRequest) SetTradeOrderParam(_tradeOrderParam *OpenTradeOrderParam) error

TradeOrderParam Setter 交易单参数

type CainiaoGlobalSolutionInquiryAPIResponse

type CainiaoGlobalSolutionInquiryAPIResponse struct {
	model.CommonResponse
	CainiaoGlobalSolutionInquiryAPIResponseModel
}

解决方案询盘 API返回值 cainiao.global.solution.inquiry

根据交易单号查询可用的解决方案

type CainiaoGlobalSolutionInquiryAPIResponseModel

type CainiaoGlobalSolutionInquiryAPIResponseModel struct {
	XMLName xml.Name `xml:"cainiao_global_solution_inquiry_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 是否成功
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
	// 错误信息
	ErrorInfo *ErrorInfo `json:"error_info,omitempty" xml:"error_info,omitempty"`
	// 请求结果
	Result *OpenSolutionInquiryResponse `json:"result,omitempty" xml:"result,omitempty"`
}

解决方案询盘 成功返回结果

type CainiaoGlobalSolutionServiceResourceQueryAPIRequest

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

查询解决方案服务资源列表 API请求 cainiao.global.solution.service.resource.query

返回直接解决方案的指定物流服务的可用资源列表

func NewCainiaoGlobalSolutionServiceResourceQueryRequest

func NewCainiaoGlobalSolutionServiceResourceQueryRequest() *CainiaoGlobalSolutionServiceResourceQueryAPIRequest

初始化CainiaoGlobalSolutionServiceResourceQueryAPIRequest对象

func (CainiaoGlobalSolutionServiceResourceQueryAPIRequest) GetApiMethodName

IRequest interface 方法, 获取Api method

func (CainiaoGlobalSolutionServiceResourceQueryAPIRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (CainiaoGlobalSolutionServiceResourceQueryAPIRequest) GetLocale

Locale Getter

func (CainiaoGlobalSolutionServiceResourceQueryAPIRequest) GetSellerParam

SellerParam Getter

func (CainiaoGlobalSolutionServiceResourceQueryAPIRequest) GetSenderParam

SenderParam Getter

func (CainiaoGlobalSolutionServiceResourceQueryAPIRequest) GetSolutionServiceResParam

SolutionServiceResParam Getter

func (*CainiaoGlobalSolutionServiceResourceQueryAPIRequest) SetLocale

Locale Setter 多语言信息

func (*CainiaoGlobalSolutionServiceResourceQueryAPIRequest) SetSellerParam

SellerParam Setter 商家信息

func (*CainiaoGlobalSolutionServiceResourceQueryAPIRequest) SetSenderParam

SenderParam Setter 发件信息

func (*CainiaoGlobalSolutionServiceResourceQueryAPIRequest) SetSolutionServiceResParam

func (r *CainiaoGlobalSolutionServiceResourceQueryAPIRequest) SetSolutionServiceResParam(_solutionServiceResParam *QuerySolutionServiceResParam) error

SolutionServiceResParam Setter 查询参数

type CainiaoGlobalSolutionServiceResourceQueryAPIResponse

type CainiaoGlobalSolutionServiceResourceQueryAPIResponse struct {
	model.CommonResponse
	CainiaoGlobalSolutionServiceResourceQueryAPIResponseModel
}

查询解决方案服务资源列表 API返回值 cainiao.global.solution.service.resource.query

返回直接解决方案的指定物流服务的可用资源列表

type CainiaoGlobalSolutionServiceResourceQueryAPIResponseModel

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

查询解决方案服务资源列表 成功返回结果

type CloudPrintDataGetResponse

type CloudPrintDataGetResponse struct {
	// 面单云打印数据
	PrintData string `json:"print_data,omitempty" xml:"print_data,omitempty"`
	// 面单云打印数据MD5加密串
	PrintDataMd5 string `json:"print_data_md5,omitempty" xml:"print_data_md5,omitempty"`
}

CloudPrintDataGetResponse

type Courierlist

type Courierlist struct {
	// 承运商名字
	CourierName string `json:"courier_name,omitempty" xml:"courier_name,omitempty"`
	// 承运商code
	CourierCode string `json:"courier_code,omitempty" xml:"courier_code,omitempty"`
}

Courierlist

type DubboResult

type DubboResult struct {
	// 返回数据是否成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
	// 错误码
	ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"`
	// 错误信息
	ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"`
	// 返回数据
	Data *AeopActualCarrierResponse `json:"data,omitempty" xml:"data,omitempty"`
}

DubboResult

type ErrorInfo

type ErrorInfo struct {
	// 错误码
	ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"`
	// 错误描述
	ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"`
}

ErrorInfo

type Features

type Features struct {
	// 货好时间时间戳
	GmtReadyToShip int64 `json:"gmt_ready_to_ship,omitempty" xml:"gmt_ready_to_ship,omitempty"`
	// 托盘数量
	PalletQuantity int64 `json:"pallet_quantity,omitempty" xml:"pallet_quantity,omitempty"`
	// 容器类型(1、托盘;2、大包或盒子3、散装)
	ContainerType string `json:"container_type,omitempty" xml:"container_type,omitempty"`
	// 自送仓资源编码
	WarehouseCode string `json:"warehouse_code,omitempty" xml:"warehouse_code,omitempty"`
	// 自送仓资源所对应的schemeCode
	ServiceResourceCode string `json:"service_resource_code,omitempty" xml:"service_resource_code,omitempty"`
	// 自寄时快递公司运单号
	ExpressMailNo string `json:"express_mail_no,omitempty" xml:"express_mail_no,omitempty"`
	// 自寄时快递公司的ID
	ExpressCompanyId string `json:"express_company_id,omitempty" xml:"express_company_id,omitempty"`
	// 自寄时快递公司的名称
	ExpressCompanyName string `json:"express_company_name,omitempty" xml:"express_company_name,omitempty"`
	// 预约流程
	AppointmentProcess string `json:"appointment_process,omitempty" xml:"appointment_process,omitempty"`
	// 是否需要预约
	NeedAppointment bool `json:"need_appointment,omitempty" xml:"need_appointment,omitempty"`
	// 揽收时间
	PickupWorkTime string `json:"pickup_work_time,omitempty" xml:"pickup_work_time,omitempty"`
}

Features

type GlspResponse

type GlspResponse struct {
	// 查询是否成功
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
	// 错误信息
	ErrorInfo *ErrorInfo `json:"error_info,omitempty" xml:"error_info,omitempty"`
	// 请求结果
	Result *SolutionServiceResQueryResponse `json:"result,omitempty" xml:"result,omitempty"`
}

GlspResponse

type HsfResult

type HsfResult struct {
	// 响应数据
	Data *OpenHandoverCancelResponse `json:"data,omitempty" xml:"data,omitempty"`
	// 错误信息
	ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"`
	// 异常码
	ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"`
	// 请求处理是否成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

HsfResult

type OpenAddressParam

type OpenAddressParam struct {
	// 最小区划地址库ID
	DivisionId int64 `json:"division_id,omitempty" xml:"division_id,omitempty"`
	// 邮编
	ZipCode string `json:"zip_code,omitempty" xml:"zip_code,omitempty"`
	// 国家名称
	CountryName string `json:"country_name,omitempty" xml:"country_name,omitempty"`
	// 省份
	Province string `json:"province,omitempty" xml:"province,omitempty"`
	// 城市
	City string `json:"city,omitempty" xml:"city,omitempty"`
	// 区
	District string `json:"district,omitempty" xml:"district,omitempty"`
	// 街道
	Street string `json:"street,omitempty" xml:"street,omitempty"`
	// 详细地址
	DetailAddress string `json:"detail_address,omitempty" xml:"detail_address,omitempty"`
	// 国家二字码,CN:中国、RU:俄罗斯
	CountryCode string `json:"country_code,omitempty" xml:"country_code,omitempty"`
}

OpenAddressParam

type OpenFeeDetailDto

type OpenFeeDetailDto struct {
	// 已支付费用
	PaidFee int64 `json:"paid_fee,omitempty" xml:"paid_fee,omitempty"`
	// 已支付费用币种
	PaidFeeCurrency string `json:"paid_fee_currency,omitempty" xml:"paid_fee_currency,omitempty"`
	// 应支付费用
	Fee int64 `json:"fee,omitempty" xml:"fee,omitempty"`
	// 应支付费用币种
	FeeCurrency string `json:"fee_currency,omitempty" xml:"fee_currency,omitempty"`
	// 详细费用类型,normal_delivery_fee:配送费,sms_service_fee
	FeeDetailType string `json:"fee_detail_type,omitempty" xml:"fee_detail_type,omitempty"`
}

OpenFeeDetailDto

type OpenFeeDto

type OpenFeeDto struct {
	// 总费用
	TotalFee int64 `json:"total_fee,omitempty" xml:"total_fee,omitempty"`
	// 币种
	Currency string `json:"currency,omitempty" xml:"currency,omitempty"`
	// 费用类型,POST_ESTIMATED_COST:预估费用
	FeeType string `json:"fee_type,omitempty" xml:"fee_type,omitempty"`
	// 费用详细列表
	FeeDetailList []OpenFeeDetailDto `json:"fee_detail_list,omitempty" xml:"fee_detail_list>open_fee_detail_dto,omitempty"`
}

OpenFeeDto

type OpenHandoverCancelResponse

type OpenHandoverCancelResponse struct {
	// 取消结果
	Result bool `json:"result,omitempty" xml:"result,omitempty"`
}

OpenHandoverCancelResponse

type OpenHandoverCommitResponse

type OpenHandoverCommitResponse struct {
	// 交接批次号,即交接单id
	HandoverOrderId int64 `json:"handover_order_id,omitempty" xml:"handover_order_id,omitempty"`
	// 交接物编码,即大包LP号
	HandoverContentCode string `json:"handover_content_code,omitempty" xml:"handover_content_code,omitempty"`
	// 交接物id,即大包id
	HandoverContentId int64 `json:"handover_content_id,omitempty" xml:"handover_content_id,omitempty"`
}

OpenHandoverCommitResponse

type OpenHandoverContentDetailResponse

type OpenHandoverContentDetailResponse struct {
	// 交接物状态
	Status string `json:"status,omitempty" xml:"status,omitempty"`
	// 大包关联的小包列表
	ParcelOrderList []OpenParcelOrderDto `json:"parcel_order_list,omitempty" xml:"parcel_order_list>open_parcel_order_dto,omitempty"`
	// 预估重量
	EstimateWeight string `json:"estimate_weight,omitempty" xml:"estimate_weight,omitempty"`
	// 实际重量
	ActualWeight string `json:"actual_weight,omitempty" xml:"actual_weight,omitempty"`
	// 重量单位
	WeightUnit string `json:"weight_unit,omitempty" xml:"weight_unit,omitempty"`
	// 预估费用
	EstimateFee string `json:"estimate_fee,omitempty" xml:"estimate_fee,omitempty"`
	// 实际费用
	ActualFee string `json:"actual_fee,omitempty" xml:"actual_fee,omitempty"`
	// 费用币种
	FeeCurrency string `json:"fee_currency,omitempty" xml:"fee_currency,omitempty"`
	// 费用单位
	FeeUnit string `json:"fee_unit,omitempty" xml:"fee_unit,omitempty"`
	// 交接物运单号
	TrackingNumber string `json:"tracking_number,omitempty" xml:"tracking_number,omitempty"`
	// 交接物物流订单编号
	OrderCode string `json:"order_code,omitempty" xml:"order_code,omitempty"`
	// 交接物状态
	StatusName string `json:"status_name,omitempty" xml:"status_name,omitempty"`
	// 交接物关联的交接单状态code
	HandoverOrderStatus string `json:"handover_order_status,omitempty" xml:"handover_order_status,omitempty"`
	// 交接物关联的交接单状态名称
	HandoverOrderStatusName string `json:"handover_order_status_name,omitempty" xml:"handover_order_status_name,omitempty"`
}

OpenHandoverContentDetailResponse

type OpenHandoverDraftSaveResponse

type OpenHandoverDraftSaveResponse struct {
	// 交接批次号,即交接单id
	HandoverOrderId int64 `json:"handover_order_id,omitempty" xml:"handover_order_id,omitempty"`
	// 交接物id,即大包id
	HandoverContentId int64 `json:"handover_content_id,omitempty" xml:"handover_content_id,omitempty"`
}

OpenHandoverDraftSaveResponse

type OpenHandoverUpdateResponse

type OpenHandoverUpdateResponse struct {
	// 更新结果
	Result bool `json:"result,omitempty" xml:"result,omitempty"`
}

OpenHandoverUpdateResponse

type OpenItemParam

type OpenItemParam struct {
	// 商品ID
	ItemId int64 `json:"item_id,omitempty" xml:"item_id,omitempty"`
	// 商品数量
	Quantity int64 `json:"quantity,omitempty" xml:"quantity,omitempty"`
	// 商品英文名称
	EnglishName string `json:"english_name,omitempty" xml:"english_name,omitempty"`
	// 商品本地名称
	LocalName string `json:"local_name,omitempty" xml:"local_name,omitempty"`
	// 商品单价,单位结算币种最小单位,如人民币分
	UnitPrice int64 `json:"unit_price,omitempty" xml:"unit_price,omitempty"`
	// sku
	Sku string `json:"sku,omitempty" xml:"sku,omitempty"`
	// 后台商品ID
	ScItemId int64 `json:"sc_item_id,omitempty" xml:"sc_item_id,omitempty"`
	// 商品重量,单位g
	Weight int64 `json:"weight,omitempty" xml:"weight,omitempty"`
	// 商品属性,cf_normal:普货、cf_has_battery:含电。
	ItemFeatures []string `json:"item_features,omitempty" xml:"item_features>string,omitempty"`
	// 商品价格币种
	Currency string `json:"currency,omitempty" xml:"currency,omitempty"`
	// 商品总价
	TotalPrice int64 `json:"total_price,omitempty" xml:"total_price,omitempty"`
	// 商品长度
	Length int64 `json:"length,omitempty" xml:"length,omitempty"`
	// 商品宽度
	Width int64 `json:"width,omitempty" xml:"width,omitempty"`
	// 商品高度
	Height int64 `json:"height,omitempty" xml:"height,omitempty"`
}

OpenItemParam

type OpenOrderParam

type OpenOrderParam struct {
	// 交易单参数
	TradeOrderParam *OpenTradeOrderParam `json:"trade_order_param,omitempty" xml:"trade_order_param,omitempty"`
	// 解决方案参数
	SolutionParam *OpenSolutionParam `json:"solution_param,omitempty" xml:"solution_param,omitempty"`
	// 商家信息参数
	SellerInfoParam *OpenSellerInfoParam `json:"seller_info_param,omitempty" xml:"seller_info_param,omitempty"`
	// 发件人信息
	SenderParam *OpenSenderParam `json:"sender_param,omitempty" xml:"sender_param,omitempty"`
	// 退货联系人信息
	ReturnerParam *OpenReturnerParam `json:"returner_param,omitempty" xml:"returner_param,omitempty"`
	// 收件人信息
	ReceiverParam *ReceiverParam `json:"receiver_param,omitempty" xml:"receiver_param,omitempty"`
	// 揽收信息参数
	PickupInfoParam *OpenPickupInfoParam `json:"pickup_info_param,omitempty" xml:"pickup_info_param,omitempty"`
	// 包裹参数
	PackageParams []OpenPackageParam `json:"package_params,omitempty" xml:"package_params>open_package_param,omitempty"`
}

OpenOrderParam

type OpenPackageParam

type OpenPackageParam struct {
	// 包裹长度
	Length int64 `json:"length,omitempty" xml:"length,omitempty"`
	// 包裹宽度
	Width int64 `json:"width,omitempty" xml:"width,omitempty"`
	// 包裹高度
	Height int64 `json:"height,omitempty" xml:"height,omitempty"`
	// 包裹重量
	Weight int64 `json:"weight,omitempty" xml:"weight,omitempty"`
	// 包裹价格
	Price int64 `json:"price,omitempty" xml:"price,omitempty"`
	// 商品参数
	ItemParams []OpenItemParam `json:"item_params,omitempty" xml:"item_params>open_item_param,omitempty"`
	// 包裹价格币种,CNY:人民币、USD:美元、RUB:卢布。
	Currency string `json:"currency,omitempty" xml:"currency,omitempty"`
}

OpenPackageParam

type OpenParcelOrderDto

type OpenParcelOrderDto struct {
	// 小包状态code
	Status string `json:"status,omitempty" xml:"status,omitempty"`
	// 小包异常码
	ExceptionCode string `json:"exception_code,omitempty" xml:"exception_code,omitempty"`
	// 小包物流订单编码
	OrderCode string `json:"order_code,omitempty" xml:"order_code,omitempty"`
	// 小包状态名称
	StatusName string `json:"status_name,omitempty" xml:"status_name,omitempty"`
}

OpenParcelOrderDto

type OpenParcelOrderQueryResponse

type OpenParcelOrderQueryResponse struct {
	// 交接仓编码,快递揽收场景,大包交接目的地国际分拨
	HandoverWarehouseCode string `json:"handover_warehouse_code,omitempty" xml:"handover_warehouse_code,omitempty"`
	// 交接仓名称,快递揽收场景,大包交接目的地国际分拨
	HandoverWarehouseName string `json:"handover_warehouse_name,omitempty" xml:"handover_warehouse_name,omitempty"`
	// 该小包是否已经组包
	HasBeenHandover bool `json:"has_been_handover,omitempty" xml:"has_been_handover,omitempty"`
	// 关联的交接单ID
	HandoverOrderId int64 `json:"handover_order_id,omitempty" xml:"handover_order_id,omitempty"`
	// 关联的大包的编码
	HandoverContentCode string `json:"handover_content_code,omitempty" xml:"handover_content_code,omitempty"`
	// 关联的大包ID
	HandoverContentId int64 `json:"handover_content_id,omitempty" xml:"handover_content_id,omitempty"`
	// 是否能组包
	CanCreateHandover bool `json:"can_create_handover,omitempty" xml:"can_create_handover,omitempty"`
}

OpenParcelOrderQueryResponse

type OpenPickupInfoParam

type OpenPickupInfoParam struct {
	// 卖家后台地址id,用来获取卖家详细地址信息,传入值为Long型;
	SellerAddressId int64 `json:"seller_address_id,omitempty" xml:"seller_address_id,omitempty"`
}

OpenPickupInfoParam

type OpenReturnerParam

type OpenReturnerParam struct {
	// 卖家后台地址id,用来获取卖家详细地址信息,传入值为Long型;
	SellerAddressId int64 `json:"seller_address_id,omitempty" xml:"seller_address_id,omitempty"`
}

OpenReturnerParam

type OpenSellerInfoParam

type OpenSellerInfoParam struct {
	// 跨店铺组包时的店铺分组ID
	TopUserKey string `json:"top_user_key,omitempty" xml:"top_user_key,omitempty"`
}

OpenSellerInfoParam

type OpenSenderParam

type OpenSenderParam struct {
	// 卖家后台地址id,用来获取卖家详细地址信息,传入值为Long型;
	SellerAddressId int64 `json:"seller_address_id,omitempty" xml:"seller_address_id,omitempty"`
}

OpenSenderParam

type OpenServiceParam

type OpenServiceParam struct {
	// DOOR_PICKUP:上门揽收;SELF_POST:自寄;SELF_SEND:自送;UNREACHABLE_RETURN:不可达退回;
	Code string `json:"code,omitempty" xml:"code,omitempty"`
	// 不同物流服务的扩展信息
	Features *Features `json:"features,omitempty" xml:"features,omitempty"`
}

OpenServiceParam

type OpenSolutionDto

type OpenSolutionDto struct {
	// 时效信息
	TimingList []OpenTimingDto `json:"timing_list,omitempty" xml:"timing_list>open_timing_dto,omitempty"`
	// 费用列表
	FeeList []OpenFeeDto `json:"fee_list,omitempty" xml:"fee_list>open_fee_dto,omitempty"`
	// 推荐指数
	RecommendIndex int64 `json:"recommend_index,omitempty" xml:"recommend_index,omitempty"`
	// 解决方案code
	Code string `json:"code,omitempty" xml:"code,omitempty"`
	// 解决方案名称
	Name string `json:"name,omitempty" xml:"name,omitempty"`
}

OpenSolutionDto

type OpenSolutionInquiryResponse

type OpenSolutionInquiryResponse struct {
	// 可用的解决方案列表
	UsableSolutionList []OpenSolutionDto `json:"usable_solution_list,omitempty" xml:"usable_solution_list>open_solution_dto,omitempty"`
}

OpenSolutionInquiryResponse

type OpenSolutionParam

type OpenSolutionParam struct {
	// 解决方案code
	SolutionCode string `json:"solution_code,omitempty" xml:"solution_code,omitempty"`
	// 物流服务列表
	ServiceParams []OpenServiceParam `json:"service_params,omitempty" xml:"service_params>open_service_param,omitempty"`
}

OpenSolutionParam

type OpenTakingOrderResponse

type OpenTakingOrderResponse struct {
	// 物流订单ID
	LogisticsOrderId int64 `json:"logistics_order_id,omitempty" xml:"logistics_order_id,omitempty"`
}

OpenTakingOrderResponse

type OpenTimingDto

type OpenTimingDto struct {
	// 展示文案
	DisplayText string `json:"display_text,omitempty" xml:"display_text,omitempty"`
	// 最慢时效
	SlowestTiming int64 `json:"slowest_timing,omitempty" xml:"slowest_timing,omitempty"`
	// 最快时效
	FastTiming int64 `json:"fast_timing,omitempty" xml:"fast_timing,omitempty"`
	// 时效类型,ESTIMATE:预估时效,PROMISE:承诺时效
	TimingType string `json:"timing_type,omitempty" xml:"timing_type,omitempty"`
}

OpenTimingDto

type OpenTradeOrderParam

type OpenTradeOrderParam struct {
	// 主交易单ID
	TradeOrderId int64 `json:"trade_order_id,omitempty" xml:"trade_order_id,omitempty"`
}

OpenTradeOrderParam

type PickupDto

type PickupDto struct {
	// 揽收地址
	Address *AddressDto `json:"address,omitempty" xml:"address,omitempty"`
	// 邮箱
	Email string `json:"email,omitempty" xml:"email,omitempty"`
	// 移动电话, 校验格式:^1(3|4|5|6|7|8|9)\d{9}$
	Mobile string `json:"mobile,omitempty" xml:"mobile,omitempty"`
	// 固定电话,可空,校验格式:(^0[\d]{2,3}-[\d]{7,8}$)|(^400[\d]{3,4}[\d]{3,4}$)|(400-[\d]{3,4}-[\d]{3,4}$)
	Phone string `json:"phone,omitempty" xml:"phone,omitempty"`
	// 揽收联系人名称,必须包含中文字符
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// AE后台维护的发件地址ID
	AddressId int64 `json:"address_id,omitempty" xml:"address_id,omitempty"`
}

PickupDto

type QuerySolutionServiceResParam

type QuerySolutionServiceResParam struct {
	// 解决方案code
	SolutionCode string `json:"solution_code,omitempty" xml:"solution_code,omitempty"`
	// 服务参数
	ServiceParam *ServiceParam `json:"service_param,omitempty" xml:"service_param,omitempty"`
}

QuerySolutionServiceResParam

type ReceiverParam

type ReceiverParam struct {
	// 收件人名称
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 收件人座机号
	Telephone string `json:"telephone,omitempty" xml:"telephone,omitempty"`
	// 收件人手机号
	MobilePhone string `json:"mobile_phone,omitempty" xml:"mobile_phone,omitempty"`
	// 收件人地址信息
	AddressParam *OpenAddressParam `json:"address_param,omitempty" xml:"address_param,omitempty"`
	// 用户昵称
	UserNick string `json:"user_nick,omitempty" xml:"user_nick,omitempty"`
	// 邮箱
	Email string `json:"email,omitempty" xml:"email,omitempty"`
}

ReceiverParam

type ReturnerDto

type ReturnerDto struct {
	// 退件地址
	Address *AddressDto `json:"address,omitempty" xml:"address,omitempty"`
	// 邮箱
	Email string `json:"email,omitempty" xml:"email,omitempty"`
	// 移动电话, 校验格式:^1(3|4|5|6|7|8|9)\d{9}$
	Mobile string `json:"mobile,omitempty" xml:"mobile,omitempty"`
	// 固定电话,可空,校验格式:(^0[\d]{2,3}-[\d]{7,8}$)|(^400[\d]{3,4}[\d]{3,4}$)|(400-[\d]{3,4}-[\d]{3,4}$)
	Phone string `json:"phone,omitempty" xml:"phone,omitempty"`
	// 退件联系人名称,必须包含中文字符
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// AE后台维护的退件地址ID
	AddressId int64 `json:"address_id,omitempty" xml:"address_id,omitempty"`
}

ReturnerDto

type SellerParam

type SellerParam struct {
}

SellerParam

type ServiceParam

type ServiceParam struct {
	// DOOR_PICKUP:揽收仓资源、SELF_SEND:自送dropOff
	Code string `json:"code,omitempty" xml:"code,omitempty"`
}

ServiceParam

type SolutionServiceResDto

type SolutionServiceResDto struct {
	// 解决方案编码
	SolutionCode string `json:"solution_code,omitempty" xml:"solution_code,omitempty"`
	// 扩展字段
	Features *Features `json:"features,omitempty" xml:"features,omitempty"`
	// 优先级
	Priority string `json:"priority,omitempty" xml:"priority,omitempty"`
	// 联系人名称
	ContactName string `json:"contact_name,omitempty" xml:"contact_name,omitempty"`
	// 联系人电话
	ContactTelephone string `json:"contact_telephone,omitempty" xml:"contact_telephone,omitempty"`
	// 工作时间
	WorkTimeTips string `json:"work_time_tips,omitempty" xml:"work_time_tips,omitempty"`
	// 地址对应的divisionId
	Division string `json:"division,omitempty" xml:"division,omitempty"`
	// 地址
	Address string `json:"address,omitempty" xml:"address,omitempty"`
	// 资源名称
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 资源编码
	Code string `json:"code,omitempty" xml:"code,omitempty"`
}

SolutionServiceResDto

type SolutionServiceResQueryResponse

type SolutionServiceResQueryResponse struct {
	// 物流服务资源列表
	SolutionServiceResList []SolutionServiceResDto `json:"solution_service_res_list,omitempty" xml:"solution_service_res_list>solution_service_res_dto,omitempty"`
}

SolutionServiceResQueryResponse

type UserInfoDto

type UserInfoDto struct {
	// 每个商家在ISV系统的唯一标识,一般为商家ISV账号的id
	TopUserKey string `json:"top_user_key,omitempty" xml:"top_user_key,omitempty"`
}

UserInfoDto

Source Files

Jump to

Keyboard shortcuts

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