Documentation
¶
Index ¶
- type CargoDetailsItem
- type ContactInfoListItem
- type LogisticsCreateSFOrderParam
- type LogisticsCreateSFOrderRequest
- func (c *LogisticsCreateSFOrderRequest) Execute(accessToken *doudian_sdk.AccessToken) (*logistics_createSFOrder_response.LogisticsCreateSFOrderResponse, error)
- func (c *LogisticsCreateSFOrderRequest) GetParamObject() interface{}
- func (c *LogisticsCreateSFOrderRequest) GetParams() *LogisticsCreateSFOrderParam
- func (c *LogisticsCreateSFOrderRequest) GetUrlPath() string
- type ServiceListItem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CargoDetailsItem ¶
type CargoDetailsItem struct { // 货物名称,如果需要生成电子运单,则为必填 Name string `json:"name"` // 货物单价的币别:参照附录币别代码附件 Currency string `json:"currency"` // 货物数量, 跨境件报关需要填写 Count int64 `json:"count"` // 货物单位,如:个、台、本,跨境件报关需要填写。 Unit string `json:"unit"` // 货物单价,精确到小数点后10位,跨境件报关需要填写 Amount string `json:"amount"` // 订单货物单位重量,包含子母件,单位千克,精确到小数点后6位跨境件报关需要填写 Weight string `json:"weight"` // 原产地国别,跨境件报关需要填写 SourceArea string `json:"source_area"` }
type ContactInfoListItem ¶
type ContactInfoListItem struct { // 地址类型: 1,寄件方信息 2,到件方信息 ContactType int16 `json:"contact_type"` // 公司名称 BizCompany string `json:"biz_company"` // 联系人 Contact string `json:"contact"` // 联系电话(二选一) Tel string `json:"tel"` // 手机 Mobile string `json:"mobile"` // 国家或地区 2位代码(默认是CN) Country string `json:"country"` // 所在省级行政区名称,必须是 标准的省级行政区名称如:北 京、广东省、广西壮族自治区 等;此字段影响原寄地代码识 别 Province string `json:"province"` // 所在地级行政区名称,必须是 标准的城市称谓 如:北京市、 深圳市、大理白族自治州等; 此字段影响原寄地代码识别 City string `json:"city"` // 所在县/区级行政区名称,必须 是标准的县/区称谓,如:福田 区,南涧彝族自治县、准格尔旗等 County string `json:"county"` // 剩余详细地址 Address string `json:"address"` }
type LogisticsCreateSFOrderParam ¶
type LogisticsCreateSFOrderParam struct { // 订单号;非抖音订单长度仅支持32个字符,格式:数字、大小写字母及“-”、“/”2种分隔符的组合字符串,例如:Doudian-123456 OrderId string `json:"order_id"` // 用于拆包场景:包裹id(只能传入数字、字母和下划线;大小写敏感,即123A,123a 不可当做相同ID,否则存在一定可能取号失败)一单一包裹是不需要传,有2个以上时,从第二个开始都需要传不同id 和parcelQty(子母件)最多二选一填,两者可以都不填 PackId string `json:"pack_id"` // 托寄物信息 CargoDetails []CargoDetailsItem `json:"cargo_details"` // 增值服务信息 ServiceList []ServiceListItem `json:"service_list"` // 收寄双方信息(数组长度必须为2) ContactInfoList []ContactInfoListItem `json:"contact_info_list"` // 付款方式,支持以下值: 1:寄方付 2:收方付 PayMethod int16 `json:"pay_method"` // 快件产品类别,仅 可使用与顺丰销售约定的快件产品 ExpressTypeId int16 `json:"express_type_id"` // 子母件场景使用,包裹数,一个包裹对应一个运单号;若包裹数大于1,则返回一个母运单号和N-1个子运单号 和packid(拆包场景)二选一填 ParcelQty int16 `json:"parcel_qty"` // 订单货物总重量, 若为子母件必填, 单位千克, 精确到小数点后3 位,如果提供此值, 必须>0 (子母件需>6) TotalWeight string `json:"total_weight"` // 是否返回签回单 (签单返还)的运单号, 支持以下值: 1:要求 0:不要求 IsSignBack int16 `json:"is_sign_back"` // 备注 Remark string `json:"remark"` // 客户订单货物总长,单位厘米, 精确到小数点后3位, 包含子母件 TotalLength string `json:"total_length"` // 客户订单货物总宽,单位厘米, 精确到小数点后3位, 包含子母件 TotalWidth string `json:"total_width"` // 客户订单货物总高,单位厘米, 精确到小数点后3位, 包含子母件 TotalHeight string `json:"total_height"` // 订单货物总体积,单位立方厘米, 精确到小数点后3位,会用于计抛 Volume string `json:"volume"` // 共享账号场景下需传,代表实际使用取号服务的shop_id(需与order_id匹配);若无法获取到该shop_id,value传值 -1 UserId int64 `json:"user_id"` // 订单渠道来源编码,具体请参考[下单渠道来源编码表](https://bytedance.feishu.cn/sheets/shtcngIVwcJlgXLzWhEtKrmv7Af),当order_id订单号为非抖音订单时必传 OrderChannel string `json:"order_channel"` }
type LogisticsCreateSFOrderRequest ¶
type LogisticsCreateSFOrderRequest struct { doudian_sdk.BaseDoudianOpApiRequest Param *LogisticsCreateSFOrderParam }
func New ¶
func New() *LogisticsCreateSFOrderRequest
func (*LogisticsCreateSFOrderRequest) Execute ¶
func (c *LogisticsCreateSFOrderRequest) Execute(accessToken *doudian_sdk.AccessToken) (*logistics_createSFOrder_response.LogisticsCreateSFOrderResponse, error)
func (*LogisticsCreateSFOrderRequest) GetParamObject ¶
func (c *LogisticsCreateSFOrderRequest) GetParamObject() interface{}
func (*LogisticsCreateSFOrderRequest) GetParams ¶
func (c *LogisticsCreateSFOrderRequest) GetParams() *LogisticsCreateSFOrderParam
func (*LogisticsCreateSFOrderRequest) GetUrlPath ¶
func (c *LogisticsCreateSFOrderRequest) GetUrlPath() string
type ServiceListItem ¶
Click to show internal directories.
Click to hide internal directories.