Documentation
¶
Index ¶
- type AddOrderRequest
- type AddOrderResponse
- type BalanceInfo
- type BalanceQueryRequest
- type BalanceQueryResponse
- type CancelOrderRequest
- type CancelOrderResponse
- type CargoInfo
- type CreateStoreRequest
- type CreateStoreResponse
- type Express
- func (express *Express) FollowWaybill(ctx context.Context, in *FollowWaybillRequest) (res FollowWaybillResponse, err error)
- func (express *Express) GetDeliveryList(ctx context.Context) (res GetDeliveryListResponse, err error)
- func (express *Express) IntracityAddOrder(ctx context.Context, req *AddOrderRequest) (res AddOrderResponse, err error)
- func (express *Express) IntracityApply(ctx context.Context) error
- func (express *Express) IntracityBalanceQuery(ctx context.Context, req *BalanceQueryRequest) (res BalanceQueryResponse, err error)
- func (express *Express) IntracityCancelOrder(ctx context.Context, req *CancelOrderRequest) (res CancelOrderResponse, err error)
- func (express *Express) IntracityCreateStore(ctx context.Context, req *CreateStoreRequest) (res CreateStoreResponse, err error)
- func (express *Express) IntracityMockNotify(ctx context.Context, req *MockNotifyRequest) error
- func (express *Express) IntracityPreAddOrder(ctx context.Context, req *PreAddOrderRequest) (res PreAddOrderResponse, err error)
- func (express *Express) IntracityQueryFlow(ctx context.Context, req *QueryFlowRequest) (res QueryFlowResponse, err error)
- func (express *Express) IntracityQueryOrder(ctx context.Context, req *QueryOrderRequest) (res QueryOrderResponse, err error)
- func (express *Express) IntracityQueryStore(ctx context.Context, req *QueryStoreRequest) (res QueryStoreResponse, err error)
- func (express *Express) IntracityStoreCharge(ctx context.Context, req *StoreChargeRequest) (res StoreChargeResponse, err error)
- func (express *Express) IntracityStoreRefund(ctx context.Context, req *StoreRefundRequest) (res StoreRefundResponse, err error)
- func (express *Express) IntracityUpdateStore(ctx context.Context, req *UpdateStoreRequest) error
- func (express *Express) QueryFollowTrace(ctx context.Context, in *QueryFollowTraceRequest) (res QueryFollowTraceResponse, err error)
- func (express *Express) QueryTrace(ctx context.Context, in *QueryTraceRequest) (res QueryTraceResponse, err error)
- func (express *Express) TraceWaybill(ctx context.Context, in *TraceWaybillRequest) (res TraceWaybillResponse, err error)
- func (express *Express) UpdateFollowWaybillGoods(ctx context.Context, in *UpdateFollowWaybillGoodsRequest) (err error)
- func (express *Express) UpdateWaybillGoods(ctx context.Context, in *UpdateWaybillGoodsRequest) (err error)
- type FlowRecordInfo
- type FlowType
- type FlowWaybillDeliveryInfo
- type FlowWaybillInfo
- type FollowWaybillGoodsInfo
- type FollowWaybillGoodsInfoItem
- type FollowWaybillRequest
- type FollowWaybillResponse
- type FollowWaybillShopInfo
- type GetDeliveryListResponse
- type IntracityAddressInfo
- type IntracityDeliveryStatus
- type IntracityStoreInfo
- type MockNotifyRequest
- type OrderPattern
- type PayMode
- type PreAddOrderRequest
- type PreAddOrderResponse
- type QueryFlowRequest
- type QueryFlowResponse
- type QueryFollowTraceRequest
- type QueryFollowTraceResponse
- type QueryOrderRequest
- type QueryOrderResponse
- type QueryStoreRequest
- type QueryStoreResponse
- type QueryTraceRequest
- type QueryTraceResponse
- type RiderInfo
- type StoreChargeRequest
- type StoreChargeResponse
- type StoreRefundRequest
- type StoreRefundResponse
- type TraceWaybillRequest
- type TraceWaybillResponse
- type TransInfo
- type UpdateFollowWaybillGoodsRequest
- type UpdateStoreContent
- type UpdateStoreKeyInfo
- type UpdateStoreRequest
- type UpdateWaybillGoodsRequest
- type WaybillStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddOrderRequest ¶ added in v2.1.12
type AddOrderRequest struct {
WxStoreID string `json:"wx_store_id,omitempty"` // 微信门店编号,二选一
OutStoreID string `json:"out_store_id,omitempty"` // 自定义门店编号,二选一
OutOrderID string `json:"out_order_id"` // 自定义订单号,需唯一
ServiceTransID string `json:"service_trans_id,omitempty"` // 运力ID
UserOpenID string `json:"user_openid"` // 用户openid
UserPhone string `json:"user_phone"` // 用户联系电话
UserName string `json:"user_name"` // 用户姓名
UserLat float64 `json:"user_lat"` // 用户地址纬度
UserLng float64 `json:"user_lng"` // 用户地址经度
UserAddress string `json:"user_address"` // 用户详细地址
PayMode PayMode `json:"pay_mode,omitempty"` // 充值/扣费主体
CargoInfo *CargoInfo `json:"cargo_info,omitempty"` // 货物信息
OrderDetailPath string `json:"order_detail_path,omitempty"` // 订单详情页路径
CallbackURL string `json:"callback_url,omitempty"` // 配送状态回调URL
UseInsurance uint32 `json:"use_insurance,omitempty"` // 是否使用保价:0-不使用,1-使用
InsuranceValue uint32 `json:"insurance_value,omitempty"` // 保价金额,单位:分
ExpectTime uint32 `json:"expect_time,omitempty"` // 期望送达时间戳
Remark string `json:"remark,omitempty"` // 备注
}
AddOrderRequest 创建配送单请求参数
type AddOrderResponse ¶ added in v2.1.12
type AddOrderResponse struct {
util.CommonError
WxOrderID string `json:"wx_order_id"` // 微信订单号
AppID string `json:"appid"` // 小程序appid
WxStoreID string `json:"wx_store_id"` // 微信门店编号
OutOrderID string `json:"out_order_id"` // 自定义订单号
ServiceTransID string `json:"service_trans_id"` // 运力ID
BillID string `json:"bill_id"` // 运力订单号
Price uint32 `json:"price"` // 配送费用,单位:分
Distance uint32 `json:"distance"` // 配送距离,单位:米
}
AddOrderResponse 创建配送单返回参数
type BalanceInfo ¶ added in v2.1.12
type BalanceInfo struct {
ServiceTransID string `json:"service_trans_id"` // 运力ID
Balance int32 `json:"balance"` // 余额,单位:分
}
BalanceInfo 余额信息
type BalanceQueryRequest ¶ added in v2.1.12
type BalanceQueryRequest struct {
WxStoreID string `json:"wx_store_id,omitempty"` // 微信门店编号
ServiceTransID string `json:"service_trans_id,omitempty"` // 运力ID
PayMode PayMode `json:"pay_mode,omitempty"` // 充值/扣费主体
}
BalanceQueryRequest 门店余额查询请求参数
type BalanceQueryResponse ¶ added in v2.1.12
type BalanceQueryResponse struct {
util.CommonError
AppID string `json:"appid"` // 小程序appid
WxStoreID string `json:"wx_store_id"` // 微信门店编号
BalanceList []BalanceInfo `json:"balance_list"` // 余额列表
}
BalanceQueryResponse 门店余额查询返回参数
type CancelOrderRequest ¶ added in v2.1.12
type CancelOrderRequest struct {
WxOrderID string `json:"wx_order_id,omitempty"` // 微信订单号,二选一
OutOrderID string `json:"out_order_id,omitempty"` // 自定义订单号,二选一
WxStoreID string `json:"wx_store_id,omitempty"` // 微信门店编号
OutStoreID string `json:"out_store_id,omitempty"` // 自定义门店编号
CancelReason string `json:"cancel_reason,omitempty"` // 取消原因
}
CancelOrderRequest 取消配送单请求参数
type CancelOrderResponse ¶ added in v2.1.12
type CancelOrderResponse struct {
util.CommonError
WxOrderID string `json:"wx_order_id"` // 微信订单号
RefundAmount int32 `json:"refund_amount"` // 退款金额,单位:分
DeductAmount int32 `json:"deduct_amount"` // 扣除违约金,单位:分
}
CancelOrderResponse 取消配送单返回参数
type CargoInfo ¶ added in v2.1.12
type CargoInfo struct {
Name string `json:"name"` // 货物名称
Num uint32 `json:"num,omitempty"` // 货物数量
Price uint32 `json:"price,omitempty"` // 货物价格,单位:分
Weight uint32 `json:"weight,omitempty"` // 货物重量,单位:克
}
CargoInfo 货物信息
type CreateStoreRequest ¶ added in v2.1.12
type CreateStoreRequest struct {
OutStoreID string `json:"out_store_id"` // 自定义门店编号
StoreName string `json:"store_name"` // 门店名称
OrderPattern OrderPattern `json:"order_pattern,omitempty"` // 运力偏好:1-价格优先,2-运力优先
ServiceTransPrefer string `json:"service_trans_prefer,omitempty"` // 优先使用的运力ID,order_pattern=2时必填
AddressInfo IntracityAddressInfo `json:"address_info"` // 门店地址信息
}
CreateStoreRequest 创建门店请求参数
type CreateStoreResponse ¶ added in v2.1.12
type CreateStoreResponse struct {
util.CommonError
WxStoreID string `json:"wx_store_id"` // 微信门店编号
AppID string `json:"appid"` // 小程序appid
OutStoreID string `json:"out_store_id"` // 自定义门店ID
}
CreateStoreResponse 创建门店返回参数
type Express ¶
Express 微信物流服务 https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/express/business/introduction.html
func (*Express) FollowWaybill ¶
func (express *Express) FollowWaybill(ctx context.Context, in *FollowWaybillRequest) (res FollowWaybillResponse, err error)
func (*Express) GetDeliveryList ¶
func (express *Express) GetDeliveryList(ctx context.Context) (res GetDeliveryListResponse, err error)
GetDeliveryList 获取运力id列表 https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/express/business/express_open_msg.html#_4-4%E8%8E%B7%E5%8F%96%E8%BF%90%E5%8A%9Bid%E5%88%97%E8%A1%A8get-delivery-list
func (*Express) IntracityAddOrder ¶ added in v2.1.12
func (express *Express) IntracityAddOrder(ctx context.Context, req *AddOrderRequest) (res AddOrderResponse, err error)
IntracityAddOrder 创建配送单
func (*Express) IntracityApply ¶ added in v2.1.12
IntracityApply 开通门店权限 https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/express/business/intracity_service.html
func (*Express) IntracityBalanceQuery ¶ added in v2.1.12
func (express *Express) IntracityBalanceQuery(ctx context.Context, req *BalanceQueryRequest) (res BalanceQueryResponse, err error)
IntracityBalanceQuery 门店余额查询
func (*Express) IntracityCancelOrder ¶ added in v2.1.12
func (express *Express) IntracityCancelOrder(ctx context.Context, req *CancelOrderRequest) (res CancelOrderResponse, err error)
IntracityCancelOrder 取消配送单
func (*Express) IntracityCreateStore ¶ added in v2.1.12
func (express *Express) IntracityCreateStore(ctx context.Context, req *CreateStoreRequest) (res CreateStoreResponse, err error)
IntracityCreateStore 创建门店
func (*Express) IntracityMockNotify ¶ added in v2.1.12
func (express *Express) IntracityMockNotify(ctx context.Context, req *MockNotifyRequest) error
IntracityMockNotify 模拟配送回调(仅用于测试)
func (*Express) IntracityPreAddOrder ¶ added in v2.1.12
func (express *Express) IntracityPreAddOrder(ctx context.Context, req *PreAddOrderRequest) (res PreAddOrderResponse, err error)
IntracityPreAddOrder 预下配送单(查询运费)
func (*Express) IntracityQueryFlow ¶ added in v2.1.12
func (express *Express) IntracityQueryFlow(ctx context.Context, req *QueryFlowRequest) (res QueryFlowResponse, err error)
IntracityQueryFlow 门店运费流水查询
func (*Express) IntracityQueryOrder ¶ added in v2.1.12
func (express *Express) IntracityQueryOrder(ctx context.Context, req *QueryOrderRequest) (res QueryOrderResponse, err error)
IntracityQueryOrder 查询配送单
func (*Express) IntracityQueryStore ¶ added in v2.1.12
func (express *Express) IntracityQueryStore(ctx context.Context, req *QueryStoreRequest) (res QueryStoreResponse, err error)
IntracityQueryStore 查询门店
func (*Express) IntracityStoreCharge ¶ added in v2.1.12
func (express *Express) IntracityStoreCharge(ctx context.Context, req *StoreChargeRequest) (res StoreChargeResponse, err error)
IntracityStoreCharge 门店运费充值
func (*Express) IntracityStoreRefund ¶ added in v2.1.12
func (express *Express) IntracityStoreRefund(ctx context.Context, req *StoreRefundRequest) (res StoreRefundResponse, err error)
IntracityStoreRefund 门店运费退款
func (*Express) IntracityUpdateStore ¶ added in v2.1.12
func (express *Express) IntracityUpdateStore(ctx context.Context, req *UpdateStoreRequest) error
IntracityUpdateStore 更新门店
func (*Express) QueryFollowTrace ¶
func (express *Express) QueryFollowTrace(ctx context.Context, in *QueryFollowTraceRequest) (res QueryFollowTraceResponse, err error)
QueryFollowTrace 查询运单详情信息 https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/express/business/express_open_msg.html#_4-2%E3%80%81%E6%9F%A5%E8%BF%90%E5%8D%95%E6%8E%A5%E5%8F%A3-query-follow-trace
func (*Express) QueryTrace ¶
func (express *Express) QueryTrace(ctx context.Context, in *QueryTraceRequest) (res QueryTraceResponse, err error)
QueryTrace 查询运单详情信息 https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/express/business/express_search.html#_2-%E6%8E%A5%E5%8F%A3%E5%88%97%E8%A1%A8
func (*Express) TraceWaybill ¶
func (express *Express) TraceWaybill(ctx context.Context, in *TraceWaybillRequest) (res TraceWaybillResponse, err error)
func (*Express) UpdateFollowWaybillGoods ¶
func (express *Express) UpdateFollowWaybillGoods(ctx context.Context, in *UpdateFollowWaybillGoodsRequest) (err error)
UpdateFollowWaybillGoods 更新物品信息 https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/express/business/express_open_msg.html#_4-3%E3%80%81%E6%9B%B4%E6%96%B0%E7%89%A9%E5%93%81%E4%BF%A1%E6%81%AF%E6%8E%A5%E5%8F%A3-update-follow-waybill-goods
func (*Express) UpdateWaybillGoods ¶
func (express *Express) UpdateWaybillGoods(ctx context.Context, in *UpdateWaybillGoodsRequest) (err error)
UpdateWaybillGoods 更新物品信息 https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/express/business/express_search.html#_2-%E6%8E%A5%E5%8F%A3%E5%88%97%E8%A1%A8
type FlowRecordInfo ¶ added in v2.1.12
type FlowRecordInfo struct {
FlowType FlowType `json:"flow_type"` // 流水类型
AppID string `json:"appid"` // appid
WxStoreID string `json:"wx_store_id"` // 微信门店ID
PayOrderID uint64 `json:"pay_order_id,omitempty"` // 充值订单号
WxOrderID string `json:"wx_order_id,omitempty"` // 订单ID(消费流水)
ServiceTransID string `json:"service_trans_id"` // 运力ID
OpenID string `json:"openid,omitempty"` // 用户openid(消费流水)
DeliveryStatus int32 `json:"delivery_status,omitempty"` // 运单状态(消费流水)
PayAmount int32 `json:"pay_amount"` // 支付金额,单位:分
PayTime uint32 `json:"pay_time,omitempty"` // 支付时间
PayStatus string `json:"pay_status,omitempty"` // 支付状态
RefundStatus string `json:"refund_status,omitempty"` // 退款状态
RefundAmount int32 `json:"refund_amount,omitempty"` // 退款金额
RefundTime uint32 `json:"refund_time,omitempty"` // 退款时间
DeductAmount int32 `json:"deduct_amount,omitempty"` // 扣除违约金
CreateTime uint32 `json:"create_time"` // 创建时间
ConsumeDeadline uint32 `json:"consume_deadline,omitempty"` // 有效截止日期
BillID string `json:"bill_id,omitempty"` // 运单ID
DeliveryFinishedTime uint32 `json:"delivery_finished_time,omitempty"` // 运单完成配送的时间
}
FlowRecordInfo 流水记录信息
type FlowWaybillDeliveryInfo ¶
type FlowWaybillDeliveryInfo struct {
DeliveryID string `json:"delivery_id"` // 运力公司id
DeliveryName string `json:"delivery_name"` // 运力公司名称
}
FlowWaybillDeliveryInfo 运力公司信息
type FlowWaybillInfo ¶
type FlowWaybillInfo struct {
WaybillID string `json:"waybill_id"` // 运单号
Status WaybillStatus `json:"status"` // 运单状态
}
FlowWaybillInfo 运单信息
type FollowWaybillGoodsInfo ¶
type FollowWaybillGoodsInfo struct {
DetailList []FollowWaybillGoodsInfoItem `json:"detail_list"`
}
FollowWaybillGoodsInfo 商品信息
type FollowWaybillGoodsInfoItem ¶
type FollowWaybillGoodsInfoItem struct {
GoodsName string `json:"goods_name"` // 必选,商品名称(最大长度为utf-8编码下的60个字符)
GoodsImgURL string `json:"goods_img_url"` // 必选,商品图片url
GoodsDesc string `json:"goods_desc,omitempty"` // 商品详情描述,不传默认取“商品名称”值,最多40汉字
}
FollowWaybillGoodsInfoItem 商品信息详情
type FollowWaybillRequest ¶
type FollowWaybillRequest struct {
GoodsInfo FollowWaybillGoodsInfo `json:"goods_info"` // 必选,商品信息
Openid string `json:"openid"` // 必选,用户openid
SenderPhone string `json:"sender_phone"` // 寄件人手机号
ReceiverPhone string `json:"receiver_phone"` // 必选,收件人手机号,部分运力需要用户手机号作为查单依据
DeliveryID string `json:"delivery_id"` // 运力id(运单号所属运力公司id)
WaybillID string `json:"waybill_id"` // 必选,运单号
TransID string `json:"trans_id"` // 必选,交易单号(微信支付生成的交易单号,一般以420开头)
OrderDetailPath string `json:"order_detail_path"` // 订单详情页地址
}
FollowWaybillRequest 传运单接口请求参数
type FollowWaybillResponse ¶
type FollowWaybillResponse struct {
util.CommonError
WaybillToken string `json:"waybill_token"` // 查询id
}
FollowWaybillResponse 传运单接口返回参数
type FollowWaybillShopInfo ¶
type FollowWaybillShopInfo struct {
GoodsInfo FollowWaybillGoodsInfo `json:"goods_info"` // 商品信息
}
FollowWaybillShopInfo 商品信息
type GetDeliveryListResponse ¶
type GetDeliveryListResponse struct {
util.CommonError
DeliveryList []FlowWaybillDeliveryInfo `json:"delivery_list"` // 运力公司列表
Count int `json:"count"` // 运力公司个数
}
GetDeliveryListResponse 获取运力id列表返回参数
type IntracityAddressInfo ¶ added in v2.1.12
type IntracityAddressInfo struct {
Province string `json:"province"` // 省/自治区/直辖市
City string `json:"city"` // 地级市
Area string `json:"area"` // 县/县级市/区
Street string `json:"street"` // 街道
House string `json:"house"` // 具体门牌号或详细地址
Lat float64 `json:"lat"` // 门店所在地纬度
Lng float64 `json:"lng"` // 门店所在地经度
Phone string `json:"phone"` // 门店联系电话
Name string `json:"name,omitempty"` // 联系人姓名(收货地址时使用)
}
IntracityAddressInfo 门店地址信息
type IntracityDeliveryStatus ¶ added in v2.1.12
type IntracityDeliveryStatus int32
IntracityDeliveryStatus 配送单状态
const ( // IntracityDeliveryStatusReady 配送单待接单 IntracityDeliveryStatusReady IntracityDeliveryStatus = 100 // IntracityDeliveryStatusPickedUp 配送单待取货 IntracityDeliveryStatusPickedUp IntracityDeliveryStatus = 101 // IntracityDeliveryStatusOngoing 配送单配送中 IntracityDeliveryStatusOngoing IntracityDeliveryStatus = 102 // IntracityDeliveryStatusFinished 配送单已送达 IntracityDeliveryStatusFinished IntracityDeliveryStatus = 200 // IntracityDeliveryStatusCancelled 配送单已取消 IntracityDeliveryStatusCancelled IntracityDeliveryStatus = 300 // IntracityDeliveryStatusAbnormal 配送单异常 IntracityDeliveryStatusAbnormal IntracityDeliveryStatus = 400 )
type IntracityStoreInfo ¶ added in v2.1.12
type IntracityStoreInfo struct {
WxStoreID string `json:"wx_store_id"` // 微信门店编号
OutStoreID string `json:"out_store_id"` // 自定义门店编号
CityID string `json:"city_id"` // 门店所在城市ID
StoreName string `json:"store_name"` // 门店名称
OrderPattern OrderPattern `json:"order_pattern"` // 运力偏好
ServiceTransPrefer string `json:"service_trans_prefer"` // 优先使用的运力ID
AddressInfo IntracityAddressInfo `json:"address_info"` // 门店地址信息
}
IntracityStoreInfo 门店信息
type MockNotifyRequest ¶ added in v2.1.12
type MockNotifyRequest struct {
WxOrderID string `json:"wx_order_id"` // 微信订单号
DeliveryStatus IntracityDeliveryStatus `json:"delivery_status"` // 配送状态
}
MockNotifyRequest 模拟配送回调请求参数(仅用于测试)
type OrderPattern ¶ added in v2.1.12
type OrderPattern uint32
OrderPattern 运力偏好
const ( // OrderPatternPriceFirst 价格优先 OrderPatternPriceFirst OrderPattern = 1 // OrderPatternTransFirst 运力优先 OrderPatternTransFirst OrderPattern = 2 )
type PreAddOrderRequest ¶ added in v2.1.12
type PreAddOrderRequest struct {
WxStoreID string `json:"wx_store_id,omitempty"` // 微信门店编号,二选一
OutStoreID string `json:"out_store_id,omitempty"` // 自定义门店编号,二选一
UserOpenID string `json:"user_openid"` // 用户openid
UserPhone string `json:"user_phone,omitempty"` // 用户联系电话
UserName string `json:"user_name,omitempty"` // 用户姓名
UserLat float64 `json:"user_lat"` // 用户地址纬度
UserLng float64 `json:"user_lng"` // 用户地址经度
UserAddress string `json:"user_address"` // 用户详细地址
ServiceTransID string `json:"service_trans_id,omitempty"` // 运力ID,不传则查询所有运力
PayMode PayMode `json:"pay_mode,omitempty"` // 充值/扣费主体
CargoInfo *CargoInfo `json:"cargo_info,omitempty"` // 货物信息
}
PreAddOrderRequest 预下配送单请求参数
type PreAddOrderResponse ¶ added in v2.1.12
type PreAddOrderResponse struct {
util.CommonError
WxStoreID string `json:"wx_store_id"` // 微信门店编号
AppID string `json:"appid"` // 小程序appid
TransList []TransInfo `json:"trans_list"` // 运力列表
}
PreAddOrderResponse 预下配送单返回参数
type QueryFlowRequest ¶ added in v2.1.12
type QueryFlowRequest struct {
WxStoreID string `json:"wx_store_id"` // 微信门店编号
FlowType FlowType `json:"flow_type"` // 流水类型:1-充值,2-消费,3-退款
ServiceTransID string `json:"service_trans_id,omitempty"` // 运力ID
BeginTime uint32 `json:"begin_time,omitempty"` // 开始时间戳
EndTime uint32 `json:"end_time,omitempty"` // 结束时间戳
PayMode PayMode `json:"pay_mode"` // 扣费主体
}
QueryFlowRequest 门店运费流水查询请求参数
type QueryFlowResponse ¶ added in v2.1.12
type QueryFlowResponse struct {
util.CommonError
Total uint32 `json:"total"` // 总数
FlowList []FlowRecordInfo `json:"flow_list"` // 流水数组
TotalPayAmt int `json:"total_pay_amt"` // 总支付金额
TotalRefundAmt int `json:"total_refund_amt"` // 总退款金额
TotalDeductAmt int `json:"total_deduct_amt"` // 总违约金(消费流水返回)
}
QueryFlowResponse 门店运费流水查询返回参数
type QueryFollowTraceRequest ¶
type QueryFollowTraceRequest struct {
WaybillToken string `json:"waybill_token"` // 必选,查询id
}
QueryFollowTraceRequest 查询运单详情信息请求参数
type QueryFollowTraceResponse ¶
type QueryFollowTraceResponse struct {
util.CommonError
WaybillInfo FlowWaybillInfo `json:"waybill_info"` // 运单信息
ShopInfo FollowWaybillShopInfo `json:"shop_info"` // 商品信息
DeliveryInfo FlowWaybillDeliveryInfo `json:"delivery_info"` // 运力信息
}
QueryFollowTraceResponse 查询运单详情信息返回参数
type QueryOrderRequest ¶ added in v2.1.12
type QueryOrderRequest struct {
WxOrderID string `json:"wx_order_id,omitempty"` // 微信订单号,二选一
OutOrderID string `json:"out_order_id,omitempty"` // 自定义订单号,二选一
WxStoreID string `json:"wx_store_id,omitempty"` // 微信门店编号
OutStoreID string `json:"out_store_id,omitempty"` // 自定义门店编号
}
QueryOrderRequest 查询配送单请求参数
type QueryOrderResponse ¶ added in v2.1.12
type QueryOrderResponse struct {
util.CommonError
WxOrderID string `json:"wx_order_id"` // 微信订单号
AppID string `json:"appid"` // 小程序appid
WxStoreID string `json:"wx_store_id"` // 微信门店编号
OutOrderID string `json:"out_order_id"` // 自定义订单号
ServiceTransID string `json:"service_trans_id"` // 运力ID
BillID string `json:"bill_id"` // 运力订单号
DeliveryStatus IntracityDeliveryStatus `json:"delivery_status"` // 配送状态
Price uint32 `json:"price"` // 配送费用,单位:分
Distance uint32 `json:"distance"` // 配送距离,单位:米
CreateTime uint32 `json:"create_time"` // 订单创建时间
RiderInfo *RiderInfo `json:"rider_info"` // 骑手信息
FinishTime uint32 `json:"finish_time"` // 订单完成时间
}
QueryOrderResponse 查询配送单返回参数
type QueryStoreRequest ¶ added in v2.1.12
type QueryStoreRequest struct {
WxStoreID string `json:"wx_store_id,omitempty"` // 微信门店编号
OutStoreID string `json:"out_store_id,omitempty"` // 自定义门店编号
}
QueryStoreRequest 查询门店请求参数
type QueryStoreResponse ¶ added in v2.1.12
type QueryStoreResponse struct {
util.CommonError
Total uint32 `json:"total"` // 符合条件的门店总数
AppID string `json:"appid"` // 小程序appid
StoreList []IntracityStoreInfo `json:"store_list"` // 门店信息列表
}
QueryStoreResponse 查询门店返回参数
type QueryTraceRequest ¶
type QueryTraceRequest struct {
WaybillToken string `json:"waybill_token"` // 必选,查询id
}
QueryTraceRequest 查询运单详情接口请求参数
type QueryTraceResponse ¶
type QueryTraceResponse struct {
util.CommonError
WaybillInfo FlowWaybillInfo `json:"waybill_info"` // 运单信息
ShopInfo FollowWaybillShopInfo `json:"shop_info"` // 商品信息
DeliveryInfo FlowWaybillDeliveryInfo `json:"delivery_info"` // 运力信息
}
QueryTraceResponse 查询运单详情接口返回参数
type RiderInfo ¶ added in v2.1.12
type RiderInfo struct {
Name string `json:"name"` // 骑手姓名
Phone string `json:"phone"` // 骑手电话
RiderCode string `json:"rider_code"` // 骑手编号
RiderImgURL string `json:"rider_img_url"` // 骑手头像URL
}
RiderInfo 骑手信息
type StoreChargeRequest ¶ added in v2.1.12
type StoreChargeRequest struct {
WxStoreID string `json:"wx_store_id,omitempty"` // 微信门店编号,pay_mode=PAY_MODE_STORE时必传
ServiceTransID string `json:"service_trans_id"` // 运力ID
Amount uint32 `json:"amount"` // 充值金额,单位:分,50元起充
PayMode PayMode `json:"pay_mode,omitempty"` // 充值主体
}
StoreChargeRequest 门店运费充值请求参数
type StoreChargeResponse ¶ added in v2.1.12
type StoreChargeResponse struct {
util.CommonError
PayURL string `json:"payurl"` // 充值页面地址
AppID string `json:"appid"` // 小程序appid
WxStoreID string `json:"wx_store_id"` // 微信门店编号
}
StoreChargeResponse 门店运费充值返回参数
type StoreRefundRequest ¶ added in v2.1.12
type StoreRefundRequest struct {
WxStoreID string `json:"wx_store_id,omitempty"` // 微信门店编号
PayMode PayMode `json:"pay_mode,omitempty"` // 充值/扣费主体
ServiceTransID string `json:"service_trans_id"` // 运力ID
}
StoreRefundRequest 门店运费退款请求参数
type StoreRefundResponse ¶ added in v2.1.12
type StoreRefundResponse struct {
util.CommonError
AppID string `json:"appid"` // 小程序appid
WxStoreID string `json:"wx_store_id"` // 微信门店编号
RefundAmount uint32 `json:"refund_amount"` // 退款金额,单位:分
}
StoreRefundResponse 门店运费退款返回参数
type TraceWaybillRequest ¶
type TraceWaybillRequest struct {
GoodsInfo FollowWaybillGoodsInfo `json:"goods_info"` // 必选,商品信息
Openid string `json:"openid"` // 必选,用户openid
SenderPhone string `json:"sender_phone"` // 寄件人手机号
ReceiverPhone string `json:"receiver_phone"` // 必选,收件人手机号,部分运力需要用户手机号作为查单依据
DeliveryID string `json:"delivery_id"` // 运力id(运单号所属运力公司id)
WaybillID string `json:"waybill_id"` // 必选,运单号
TransID string `json:"trans_id"` // 必选,交易单号(微信支付生成的交易单号,一般以420开头)
OrderDetailPath string `json:"order_detail_path"` // 订单详情页地址
}
TraceWaybillRequest 传运单接口请求参数
type TraceWaybillResponse ¶
type TraceWaybillResponse struct {
util.CommonError
WaybillToken string `json:"waybill_token"` // 查询id
}
TraceWaybillResponse 传运单接口返回参数
type TransInfo ¶ added in v2.1.12
type TransInfo struct {
ServiceTransID string `json:"service_trans_id"` // 运力ID
ServiceName string `json:"service_name"` // 运力名称
Price uint32 `json:"price"` // 配送费用,单位:分
Distance uint32 `json:"distance"` // 配送距离,单位:米
Errcode int `json:"errcode"` // 错误码,0表示成功
Errmsg string `json:"errmsg"` // 错误信息
}
TransInfo 运力信息
type UpdateFollowWaybillGoodsRequest ¶
type UpdateFollowWaybillGoodsRequest struct {
WaybillToken string `json:"waybill_token"` // 必选,查询id
GoodsInfo FollowWaybillGoodsInfo `json:"goods_info"` // 必选,商品信息
}
UpdateFollowWaybillGoodsRequest 修改运单商品信息请求参数
type UpdateStoreContent ¶ added in v2.1.12
type UpdateStoreContent struct {
StoreName string `json:"store_name,omitempty"` // 门店名称
OrderPattern OrderPattern `json:"order_pattern,omitempty"` // 运力偏好
ServiceTransPrefer string `json:"service_trans_prefer,omitempty"` // 优先使用的运力ID
AddressInfo *IntracityAddressInfo `json:"address_info,omitempty"` // 门店地址信息
}
UpdateStoreContent 更新门店的内容
type UpdateStoreKeyInfo ¶ added in v2.1.12
type UpdateStoreKeyInfo struct {
WxStoreID string `json:"wx_store_id,omitempty"` // 微信门店编号
OutStoreID string `json:"out_store_id,omitempty"` // 自定义门店编号,二选一
}
UpdateStoreKeyInfo 更新门店的key信息
type UpdateStoreRequest ¶ added in v2.1.12
type UpdateStoreRequest struct {
Keys UpdateStoreKeyInfo `json:"keys"` // 门店编号
Content UpdateStoreContent `json:"content"` // 更新内容
}
UpdateStoreRequest 更新门店请求参数
type UpdateWaybillGoodsRequest ¶
type UpdateWaybillGoodsRequest struct {
WaybillToken string `json:"waybill_token"` // 必选,查询id
GoodsInfo FollowWaybillGoodsInfo `json:"goods_info"` // 必选,商品信息
}
UpdateWaybillGoodsRequest 更新物品信息接口请求参数
type WaybillStatus ¶
type WaybillStatus int
WaybillStatus 运单状态
const ( // WaybillStatusNotExist 运单不存在或者未揽收 WaybillStatusNotExist WaybillStatus = iota // WaybillStatusPicked 已揽件 WaybillStatusPicked // WaybillStatusTransporting 运输中 WaybillStatusTransporting // WaybillStatusDispatching 派件中 WaybillStatusDispatching // WaybillStatusSigned 已签收 WaybillStatusSigned // WaybillStatusException 异常 WaybillStatusException // WaybillStatusSignedByOthers 代签收 WaybillStatusSignedByOthers )