Documentation
¶
Index ¶
- Variables
- func BytesToJson(bytes []byte) (res *simplejson.Json, err error)
- func PolyApiOrderParse(resJson *simplejson.Json) ([]*common.OrderInfo, error)
- type AccessToken
- type Address
- type BatchPrintOrder
- type BatchPrintOrder_Order
- type BatchPrintOrder_Return_BATCH_PRINT_DATA
- type BusinessBatchTBDecryptBizcontent
- type BusinessBatchTBDecryptItem
- type BusinessBatchTBDecryptOrders
- type BusinessBatchTBDecryptReturn
- type BusinessBatchTBDecryptReturnItem
- type BusinessBatchTBDecryptReturnOrder
- type Client
- func (client *Client) BatchCheckRefundStatus(platOrderNoList []string, extData ...string) ([]*common.BatchCheckRefundStatusRes, []byte, error)
- func (client *Client) BatchPrintOrder(request *BatchPrintOrder) (*LogisticBatchPrintOrderResponseResultItemInfo, error)
- func (client *Client) CancelWaybill(request []common.WaybillCancel, extData ...string) (*common.WaybillCancelReturn, error)
- func (client *Client) CheckRefundV2(request common.BatchCheckRefundStatusBizcontent, extData ...string) (common.CheckRefundReturn, error)
- func (client *Client) DownloadOrderList(pageIndex, pageSize int, ...) (res []*common.OrderInfo, hasNextPage bool, nextToken string, body []byte, ...)
- func (client *Client) DownloadOrderListByQimen(pageIndex, pageSize int, startTime, endTime, timeType, orderStatus string, ...) (hasNextPage bool, body []byte, err error)
- func (client *Client) DownloadOrderListV2(request common.DownLoadOrderListPostBizcontent, extData ...string) (common.DownloadOrderListReturn, error)
- func (client *Client) DownloadProductList(pageIndex, pageSize int, status, productToken string, extData ...string) (res []*common.Product, hasNextPage bool, nextToken string, body []byte, ...)
- func (client *Client) DownloadRefundList(pageIndex, pageSize int, ...) (res []*common.OrderInfo, hasNextPage bool, nextToken string, body []byte, ...)
- func (client *Client) Execute(method string, param common.Parameter) (res *simplejson.Json, body []byte, err error)
- func (client *Client) ExecuteCache(method string, param common.Parameter) (res *simplejson.Json, err error)
- func (client *Client) GetAccessToken(code, redirectUri, state string, extData ...string) (res *common.AccessToken, body []byte, err error)
- func (client *Client) GetAuthorizeUrl(redirectUri, state string, extData ...string) (string, error)
- func (client *Client) GetDyPlatApiReuestInfo(postData string) (*common.WmsPlatApiReturnInfo, error)
- func (client *Client) GetTemplates(postData *common.GetTemplates) (*common.TemplatesReturn, error)
- func (client *Client) GetWayBillCondition(postData *WayBillConditionPost) (*WayBillConditionReturn, error)
- func (client *Client) GetWaybill(request *common.WaybillApplyNewRequest, extData ...string) (*common.WaybillApplyNewCols, []byte, error)
- func (client *Client) GetWaybillTemplates(request *common.WaybillTemplateRequest, extData ...string) (*common.WaybillTemplateDto, []byte, error)
- func (client *Client) GetWaybillV2(request []*common.WmsLogisticsPostOrder) (*common.WmsLogisticsReturn, error)
- func (client *Client) GoodsSkuSync(request *common.WmsGoodsSkuSync, extData ...string) (common.WmsGoodsSkuSyncReturn, error)
- func (client *Client) LogisticsPostOrder(request common.WmsLogisticsPostOrder, extData ...string) (common.WmsLogisticsReturn, error)
- func (client *Client) LogisticsPrintOrderList(request []*common.WmsLogisticsPrintOrderBizcontent, extData ...string) (common.WmsLogisticsPrintOrderReturn, error)
- func (client *Client) LogisticsSend(dto *common.LogisticsSendReqDto, extData ...string) ([]byte, error)
- func (client *Client) OrderSendV2(request *common.WmsBusinessSendBizcontent) (*common.WmsBusinessSendReturn, error)
- func (client *Client) OrderSendV3(request *common.WmsOrderBatchSend, extData ...string) (common.WmsOrderBatchSendReturn, error)
- func (client *Client) PrintOrder(request *BatchPrintOrder_Order, extData ...string) (*PrintOrderReturn, error)
- func (client *Client) TBDecrypt(request *BusinessBatchTBDecryptBizcontent, extData ...string) (*BusinessBatchTBDecryptReturn, error)
- type CouponDetail
- type ErrorResDto
- type GoodInfo
- type Goods
- type GoodsDownloadResponseDto
- type LogisticBatchPrintOrderResponseResultItemInfo
- type LogisticsAddress
- type LogisticsGoods
- type LogisticsOrder
- type LogisticsOrderReqDto
- type PrintOrderReturn
- type ServiceOrder
- type ShopOrderInfo
- type Sku
- type SubGoods
- type SuccessResDto
- type WayBillConditionPost
- type WayBillConditionResults
- type WayBillConditionReturn
- type WaybillApplySubscriptionInfo
- type WaybillApplySubscriptionInfoServiceInfo
- type WaybillApplySubscriptionInfoServiceInfoServiceAttr
- type WaybillApplySubscriptionInfoShipperInfo
Constants ¶
This section is empty.
Variables ¶
View Source
var ( //淘宝解密接口 TBDecryptRouter = "http://api.polyapi.com/openapi/do" // 测试地址 // router = "http://aliyuntest.polyapi.com/OpenAPI/do" // Timeout ... Timeout time.Duration // CacheExpiration 缓存过期时间 CacheExpiration = time.Hour // GetCache 获取缓存 GetCache cache.GetCacheFunc // SetCache 设置缓存 SetCache cache.SetCacheFunc )
Functions ¶
func BytesToJson ¶
func BytesToJson(bytes []byte) (res *simplejson.Json, err error)
func PolyApiOrderParse ¶
func PolyApiOrderParse(resJson *simplejson.Json) ([]*common.OrderInfo, error)
菠萝派订单解析
Types ¶
type AccessToken ¶
type AccessToken struct { // 授权SessionKey SessionKey string `json:"sessionkey"` // 刷新SessionKey(当过期时)所需RefreshToken RefreshToken string `json:"refreshtoken"` //SessionKey过期时间 SessionKeyExpireTime string `json:"sessionkeyexpiretime"` //RefreshToken过期时间 RefreshTokenExpireTime string `json:"refreshtokenexpiretime"` // SessionKey过期时间间隔(单位:秒) ExpireTimeInterval int `json:"expiretimeinterval"` // 店铺ID VenderId string `json:"venderid"` //用户昵称 Nickname string `json:"nickname"` //店铺类别(B代表天猫店铺,C代表 集市卖家 Subplat string `json:"subplat"` Scope []string `json:"scope"` }
Token
type BatchPrintOrder ¶
type BatchPrintOrder struct {
Orders []*BatchPrintOrder_Order `json:"orders"`
}
type BatchPrintOrder_Order ¶
type BatchPrintOrder_Order struct { OrderNo string `json:"orderNo"` //1 客户订单号 T20160922120 LogisticNo string `json:"logisticNo"` //1 运单号 Y20160927770 OutputFormat string `json:"outputFormat"` //1 打印输出格式:PDF格式=JH_PDF,PNG格式=JH_PNG,PDF格式的网址=JH_PDFUrl JH_PDF LabelFormat string `json:"labelFormat"` //1 打印尺寸格式:PDF格式=JH_A4,PDF格式的网址=JH_Label,PDF格式=JH_LABEL10_10,PDF格式=JH_LABEL10_15 JH_A4 PrintObjectType string `json:"printObjectType"` //1 打印类别:标签=JH_Label,标签+配货=JH_LabelPH,标签+报关=JH_LabelBG,标签+配货+报关=JH_LabelPHBG,收据联=JH_Receiving,发货联=JH_Shipping,收据联和发货联=JH_ReceivingAndShipping JH_LABEL NumPackage string `json:"numPackage"` //1 包裹数量 1 CountryCode string `json:"countryCode"` //1 国家二字简码(去发货专用) US 去发货 LogisticsId string `json:"logisticsId"` //1 渠道编码,去发货系统的渠道编号(去发货专用) WELPMDWY396 去发货 OrderItemNo string `json:"orderItemNo"` //1 商品编码 Y20160927770 LaZaDa SenderName string `json:"senderName"` //1 寄件人姓名 张三 申通快递 SenderCompany string `json:"senderCompany"` //1 寄件人公司名称 笛佛网店管家 申通快递 SenderProvince string `json:"senderProvince"` //1 寄件人省份 浙江省 申通快递 SenderCity string `json:"senderCity"` //1 寄件人城市 杭州 申通快递 SenderArea string `json:"senderArea"` //1 寄件人区/县 西湖区 申通快递 SenderAddress string `json:"senderAddress"` //1 寄件人地址 紫金花路120号 申通快递 SenderTel string `json:"senderTel"` //1 寄件人电话 15044444444 申通快递 ReceiverName string `json:"receiverName"` //1 收件人姓名 李四 申通快递 ReceiverCompany string `json:"receiverCompany"` //1 收件人公司名称 上海东商有限公司 申通快递 ReceiverProvince string `json:"receiverProvince"` //1 收件人省份 上海 申通快递 ReceiverCity string `json:"receiverCity"` //1 收件人城市 上海 申通快递 ReceiverArea string `json:"receiverArea"` //1 收件人区/县 浦东新区 申通快递 ReceiverAddress string `json:"receiverAddress"` //1 收件人地址 浦东156号 申通快递 ReceiverTel string `json:"receiverTel"` //1 收件人电话 13587944872 申通快递 CargoName string `json:"cargoName"` //1 货物内件品名 茶杯 申通快递 SendData string `json:"sendData"` //1 发货日期 2016-7-01 12:34:01 申通快递 Weight string `json:"weight"` //1 重量 620 申通快递 Remark string `json:"remark"` //1 备注 轻拿轻放 通快递 Carrier string `json:"carrier"` //1 运输公司 联邦 Ebay物流 SellerUserId string `json:"sellerUserId"` //1 卖家eBay账户 u12451547 Ebay物流 PrintNo string `json:"printNo"` //1 打印单号 154643265 万邑通ISP IsCloudPrint bool `json:"isCloudPrint"` //1 是否使用云打印 true 速卖通物流 NeedPrintDetail bool `json:"needPrintDetail"` //1 是否需要打印详情 true 速卖通物流、飞裕达 ExtendData string `json:"extendData"` //1 自定义分拣单信息 154643265 速卖通物流 ProviderCode string `json:"providerCode"` //1 承运商编码 20160927770 唯品会JIT物流 PackageNo string `json:"packageNo"` //1 包裹序号 20160927770 唯品会JIT物流 FontSize string `json:"fontSize"` //1 面单字体大小 (澳邮物流专用) 0 澳邮物流 PlatOrderNo string `json:"PlatOrderNo"` //1 平台订单号(京东印尼专用) 0 京东印尼 LogisticChildNO string `json:"logisticChildNO"` //1 子运单号 SF2234567890100 BackSignBillNo string `json:"backSignBillNo"` //0 签回单号 SF2234567890100 NeedPrintLogo bool `json:"needPrintLogo"` //0 是否打印LOGO true CustomTemplateCode string `json:"customTemplateCode"` //0 自定义模板编码 123 顺丰丰桥 CustomTemplateData string `json:"customTemplateData"` //0 自定义模板 123 顺丰丰桥 SubOrderNo string `json:"subOrderNo"` //0 子订单号/物流单号 12345 华为电子面单 SIPShopId string `json:"SIPShopId"` //0 跨境一店通业务下的子店铺ID 12345 TikTok物流 ShopType string `json:"shopType"` //0 店铺类型 JH_MIRAVIA 速卖通物流 BusinessType string `json:"businessType"` //1 业务类型 IUOP 顺丰国际IBS PrintPicking bool `json:"printPicking"` //1 是否打印拣货单 false 顺丰国际IBS IsPrintSubParent string `json:"isPrintSubParent"` //1 是否打印全部的子母单 false 顺丰国际IBS TemplateId string `json:"templateId"` //1 模板id 12312313 PrintNum int `json:"printNum"` //1 打印数量 2 }
type BatchPrintOrder_Return_BATCH_PRINT_DATA ¶
type BatchPrintOrder_Return_BATCH_PRINT_DATA struct { UrlData string `json:"urlData"` //1 打印内容网址 http://www.aaa.com/stream.pdf OrderNo string `json:"orderNo"` //1 订单号 FO58965555996 HtmlData string `json:"htmlData"` //0 打印内容 tokopedia LogisticNo string `json:"logisticNo"` //1 物流单号 SFO58965555996 ExtraInfo string `json:"extraInfo"` //1 拓展字段 123456789 顺丰丰桥 }
type BusinessBatchTBDecryptBizcontent ¶
type BusinessBatchTBDecryptBizcontent struct { Randomnumber string `json:"randomnumber"` //!必填 通用 64 淘宝随机字符串 tbxLGzL2r67me4zhYLHtDNvxxqPfjlgkAdU88pSPT55= Orders []*BusinessBatchTBDecryptOrders `json:"orders"` //!必填 通用 - 订单集合 - Ismask json.Number `json:"ismask"` //!必填 拼多多 64 是否需要调用脱敏解密接口(不需要=0,需要=... 1 }
菠萝派解密接口
type BusinessBatchTBDecryptOrders ¶
type BusinessBatchTBDecryptOrders struct { Platorderno string `json:"platorderno"` //!必填 通用 32 平台订单号 TS04594434433 Oaid string `json:"oaid"` //可选 通用 256 解密标识 2w2RYE45iahnF4aiaJ7pHKCJ3Hwnbgnq2PH3AfpQVyWZNHKS9wNgAAOUfCVt9XZMetogNHwc Items []*BusinessBatchTBDecryptItem `json:"items"` //!必填 通用 - 待加密密钥集合 - Scene string `json:"scene"` }
type BusinessBatchTBDecryptReturn ¶
type BusinessBatchTBDecryptReturn struct { Code string `json:"code"` //!必填 通用 64 返回码 10000 Msg string `json:"msg"` //!必填 通用 64 返回消息 Success Subcode string `json:"subcode"` //!必填 通用 200 子集编码 LXO.JD.REQUEST_FAIL Submessage string `json:"submessage"` //!必填 通用 200 子级消息 订单已出库 Polyapitotalms json.Number `json:"polyapitotalms"` //!必填 通用 64 菠萝派总耗时 102 Polyapirequestid string `json:"polyapirequestid"` //!必填 通用 64 请求菠萝派编号 20161222154212742 Orders []*BusinessBatchTBDecryptReturnOrder `json:"orders"` }
type BusinessBatchTBDecryptReturnItem ¶
type BusinessBatchTBDecryptReturnItem struct { Issuccess json.Number `json:"issuccess"` //!必填 通用 1 是否成功(0表示失败;1表示成功) 0 Message string `json:"message"` //可选 通用 256 是否成功 订单已出库 Secret string `json:"secret"` //!必填 通用 256 待解密字符串 $136$rplMdffh4+x9GhkdlddxHg==$1$ Type string `json:"type"` //!必填 通用 256 密钥类别(收货人=RECEIVER_NAME,买家nick=... Secretstr string `json:"secretstr"` //!必填 通用 256 解密后字符串 15044558868 }
type BusinessBatchTBDecryptReturnOrder ¶
type BusinessBatchTBDecryptReturnOrder struct { Issuccess json.Number `json:"issuccess"` //!必填 通用 1 是否成功(0表示失败;1表示成功) 0 Message string `json:"message"` //可选 通用 256 是否成功 订单已出库 Platorderno string `json:"platorderno"` //!必填 通用 32 平台订单号 TS04594434433 Items []*BusinessBatchTBDecryptReturnItem `json:"items"` //必填 通用 - 待解密结果集合 - Addressdetail string `json:"addressdetail"` Area string `json:"area"` City string `json:"city"` Country string `json:"country"` Messagefrom string `json:"messagefrom"` Mobile string `json:"mobile"` Name string `json:"name"` Oaid string `json:"oaid"` Phone string `json:"phone"` Province string `json:"province"` Subcode string `json:"subcode"` Submessage string `json:"submessage"` Town string `json:"town"` Zip string `json:"zip"` }
type Client ¶
type Client struct {
Params *common.ClientParams
}
func InitClient ¶
func (*Client) BatchCheckRefundStatus ¶
func (client *Client) BatchCheckRefundStatus(platOrderNoList []string, extData ...string) ([]*common.BatchCheckRefundStatusRes, []byte, error)
批量检测退货
func (*Client) BatchPrintOrder ¶
func (client *Client) BatchPrintOrder(request *BatchPrintOrder) (*LogisticBatchPrintOrderResponseResultItemInfo, error)
func (*Client) CancelWaybill ¶
func (client *Client) CancelWaybill(request []common.WaybillCancel, extData ...string) (*common.WaybillCancelReturn, error)
func (*Client) CheckRefundV2 ¶
func (client *Client) CheckRefundV2(request common.BatchCheckRefundStatusBizcontent, extData ...string) (common.CheckRefundReturn, error)
func (*Client) DownloadOrderList ¶
func (client *Client) DownloadOrderList(pageIndex, pageSize int, startTime, endTime, timeType, orderStatus, orderToken string, extData ...string) (res []*common.OrderInfo, hasNextPage bool, nextToken string, body []byte, err error)
订单下载
func (*Client) DownloadOrderListByQimen ¶
func (client *Client) DownloadOrderListByQimen(pageIndex, pageSize int, startTime, endTime, timeType, orderStatus string, extData ...string) (hasNextPage bool, body []byte, err error)
订单下载
func (*Client) DownloadOrderListV2 ¶
func (client *Client) DownloadOrderListV2(request common.DownLoadOrderListPostBizcontent, extData ...string) (common.DownloadOrderListReturn, error)
func (*Client) DownloadProductList ¶
func (client *Client) DownloadProductList(pageIndex, pageSize int, status, productToken string, extData ...string) (res []*common.Product, hasNextPage bool, nextToken string, body []byte, err error)
产品下载
func (*Client) DownloadRefundList ¶
func (client *Client) DownloadRefundList(pageIndex, pageSize int, startTime, endTime, timeType, status, orderToken string, extData ...string) (res []*common.OrderInfo, hasNextPage bool, nextToken string, body []byte, err error)
退货订单下载
func (*Client) Execute ¶
func (client *Client) Execute(method string, param common.Parameter) (res *simplejson.Json, body []byte, err error)
Execute 执行API接口
func (*Client) ExecuteCache ¶
func (client *Client) ExecuteCache(method string, param common.Parameter) (res *simplejson.Json, err error)
ExecuteCache 执行API接口,缓存
func (*Client) GetAccessToken ¶
func (*Client) GetAuthorizeUrl ¶
func (*Client) GetDyPlatApiReuestInfo ¶
func (client *Client) GetDyPlatApiReuestInfo(postData string) (*common.WmsPlatApiReturnInfo, error)
换取抖音打印参数
func (*Client) GetTemplates ¶
func (client *Client) GetTemplates(postData *common.GetTemplates) (*common.TemplatesReturn, error)
func (*Client) GetWayBillCondition ¶
func (client *Client) GetWayBillCondition(postData *WayBillConditionPost) (*WayBillConditionReturn, error)
func (*Client) GetWaybill ¶
func (client *Client) GetWaybill(request *common.WaybillApplyNewRequest, extData ...string) (*common.WaybillApplyNewCols, []byte, error)
func (*Client) GetWaybillTemplates ¶
func (client *Client) GetWaybillTemplates(request *common.WaybillTemplateRequest, extData ...string) (*common.WaybillTemplateDto, []byte, error)
查询电子面单信息
func (*Client) GetWaybillV2 ¶
func (client *Client) GetWaybillV2(request []*common.WmsLogisticsPostOrder) (*common.WmsLogisticsReturn, error)
预约单号接口V2
func (*Client) GoodsSkuSync ¶
func (client *Client) GoodsSkuSync(request *common.WmsGoodsSkuSync, extData ...string) (common.WmsGoodsSkuSyncReturn, error)
func (*Client) LogisticsPostOrder ¶
func (client *Client) LogisticsPostOrder(request common.WmsLogisticsPostOrder, extData ...string) (common.WmsLogisticsReturn, error)
func (*Client) LogisticsPrintOrderList ¶
func (client *Client) LogisticsPrintOrderList(request []*common.WmsLogisticsPrintOrderBizcontent, extData ...string) (common.WmsLogisticsPrintOrderReturn, error)
func (*Client) LogisticsSend ¶
func (client *Client) LogisticsSend(dto *common.LogisticsSendReqDto, extData ...string) ([]byte, error)
订单发货
func (*Client) OrderSendV2 ¶
func (client *Client) OrderSendV2(request *common.WmsBusinessSendBizcontent) (*common.WmsBusinessSendReturn, error)
同步发货接口V2
func (*Client) OrderSendV3 ¶
func (client *Client) OrderSendV3(request *common.WmsOrderBatchSend, extData ...string) (common.WmsOrderBatchSendReturn, error)
func (*Client) PrintOrder ¶
func (client *Client) PrintOrder(request *BatchPrintOrder_Order, extData ...string) (*PrintOrderReturn, error)
func (*Client) TBDecrypt ¶
func (client *Client) TBDecrypt(request *BusinessBatchTBDecryptBizcontent, extData ...string) (*BusinessBatchTBDecryptReturn, error)
type CouponDetail ¶
type ErrorResDto ¶
type ErrorResDto struct {
Response *errorRes `json:"error_response"`
}
奇门接口错误响应
func NewErrorResDto ¶
func NewErrorResDto(code int, message string, subCode int, subMsg string) *ErrorResDto
type GoodInfo ¶
type GoodInfo struct { ProductId string `json:"productid"` SubOrderNo string `json:"suborderno"` TaxSubOrderNo string `json:"taxsuborderno"` TradeGoodsNo string `json:"tradegoodsno"` TradeGoodsName string `json:"tradegoodsname"` TradeGoodsSpec string `json:"tradegoodsspec"` GoodsCount string `json:"goodscount"` Price string `json:"price"` RefundCount string `json:"refundcount"` DiscountMoney string `json:"discountmoney"` TaxAmount string `json:"taxamount"` TariffAmount string `json:"tariffamount"` AddedValueAmount string `json:"addedvalueamount"` ConsumptionDutyAmount string `json:"consumptiondutyamount"` RefundStatus string `json:"refundstatus"` Status string `json:"status"` Remark string `json:"remark"` OutSkuId string `json:"outskuid"` PlatGoodsId string `json:"platgoodsid"` PlatSkuId string `json:"platskuid"` OutItemId string `json:"outitemid"` SubGoodsList []*SubGoods `json:"subgoods"` IsGift string `json:"isgift"` IsHwgFlag string `json:"ishwgflag"` DeliveryType string `json:"deliverytype"` PayorderId string `json:"payorderid"` PackageOrderId string `json:"packageorderid"` ActivityAmount string `json:"activityamount"` SpecialAmount string `json:"specialamount"` CouponAmount string `json:"couponamount"` ProductItemId string `json:"productitemid"` GoodsCount2 string `json:"goodscount2"` IsPlatStorageOrder string `json:"isplatstorageorder"` PictureUrl string `json:"pictureurl"` GoodType string `json:"goodtype"` EstimateConTime string `json:"estimatecontime"` Fenxiaoprice string `json:"fenxiaoprice"` SubOrderItemNo string `json:"suborderitemno"` GoodsOrderAttr string `json:"goodsorderattr"` }
type Goods ¶
type Goods struct { PlatProductId string `json:"platproductid"` Name string `json:"name"` Outerid string `json:"outerid"` Price string `json:"price"` Num string `json:"num"` Pictureurl string `json:"pictureurl"` Whsecode string `json:"whsecode"` Attrbutes interface{} `json:"attrbutes"` Categoryid string `json:"categoryid"` Status string `json:"status"` Statusdesc string `json:"statusdesc"` SkuList []Sku `json:"skus"` SendType string `json:"sendtype"` Skutype string `json:"skutype"` Propertyalias string `json:"propertyalias"` Isplatstorageorder string `json:"isplatstorageorder"` Cooperationno string `json:"cooperationno"` }
type GoodsDownloadResponseDto ¶
type GoodsDownloadResponseDto struct { Ishasnextpage string `json:"ishasnextpage"` Totalcount string `json:"totalcount"` Goodslist []Goods `json:"goodslist"` Requestid string `json:"requestid"` Code string `json:"code"` Msg string `json:"msg"` Subcode string `json:"subcode"` Submessage string `json:"submessage"` Polyapitotalms string `json:"polyapitotalms"` Polyapirequestid string `json:"polyapirequestid"` }
Polyapi接口商品下载响应
type LogisticBatchPrintOrderResponseResultItemInfo ¶
type LogisticBatchPrintOrderResponseResultItemInfo struct { IsSuccess bool `json:"isSuccess"` //1 是否成功(0表示失败;1表示成功) 0 Code string `json:"code"` //1 错误编码 成功-10000 40000 Message string `json:"message"` //0 失败说明 订单已出库 SubCode string `json:"subCode"` //1 返回子码 SubMessage string `json:"subMessage"` //1 返回子级消息 MessageFrom string `json:"messageFrom"` //1 指示此次返回是菠萝派的返回还是平台的返回 默认 POLY :POLY=POLY,PLAT=PLAT POLY BufferDataType string `json:"bufferDataType"` //1 二进制内容类别:PDF=0,GIF=0,JPG=0,PNG=00 BufferData string `json:"bufferData"` //1 打印内容(二进制) - OrderNo string `json:"orderNo"` //1 客户订单号 12313123123 LogisticNo string `json:"logisticNo"` //1 运单号(多个用英文逗号隔开) 12313123123 UrlData string `json:"urlData"` //1 打印内容网址 http://www.aaa.com/stream.pdf PrintData string `json:"printData"` //0 打印内容 万邑通ISP BaseStringBufferData string `json:"base64StringBufferData"` //0 打印内容(二进制)转Base64编码 HtmlData string `json:"htmlData"` //0 打印内容 唯品会JIT物流、tokopedia BatchPrintData []*BatchPrintOrder_Return_BATCH_PRINT_DATA `json:"batchPrintData"` //1 打印多个面单 batchPrintData[] TrackingId string `json:"trackingId"` //0 跟踪id 亚马逊物流 Token string `json:"token"` //0 token(顺丰丰桥专用) 顺丰丰桥 EncryptVersion string `json:"encryptVersion"` //1 加密算法版本号 华为电子面单 }
type LogisticsAddress ¶
type LogisticsAddress struct { Name string `json:"name,omitempty"` Company string `json:"company,omitempty"` Phone string `json:"phone,omitempty"` Mobile string `json:"mobile,omitempty"` Country string `json:"country,omitempty"` Province string `json:"province,omitempty"` City string `json:"city,omitempty"` Area string `json:"area,omitempty"` Town string `json:"town,omitempty"` Address string `json:"address,omitempty"` Zip string `json:"zip,omitempty"` Email string `json:"email,omitempty"` UserId string `json:"userid,omitempty"` CertificateType string `json:"certificatetype,omitempty"` Certificate string `json:"certificate,omitempty"` CertificateName string `json:"certificatename,omitempty"` AddressCode string `json:"addresscode,omitempty"` Linker string `json:"linker,omitempty"` TaxPayerIdent string `json:"taxpayerident,omitempty"` }
type LogisticsGoods ¶
type LogisticsGoods struct { CnName string `json:"cnname,omitempty"` EnName string `json:"enname,omitempty"` Count string `json:"count,omitempty"` CurrencyType string `json:"currencytype,omitempty"` Price string `json:"price,omitempty"` Weight string `json:"weight,omitempty"` Unit string `json:"unit,omitempty"` TaxationId string `json:"taxationid,omitempty"` ProductId string `json:"productid,omitempty"` InnerCount string `json:"innercount,omitempty"` Length string `json:"length,omitempty"` Width string `json:"width,omitempty"` Height string `json:"height,omitempty"` DutyMoney string `json:"dutymoney,omitempty"` IsBlinsure string `json:"isblinsure,omitempty"` Remark string `json:"remark,omitempty"` IsAnerOidMarkUp string `json:"isaneroidmarkup,omitempty"` IsOnlyBattery string `json:"isonlybattery,omitempty"` ProductBrand string `json:"productbrand,omitempty"` ProductAttrs string `json:"productattrs,omitempty"` ProductMaterial string `json:"productmaterial,omitempty"` HsCode string `json:"hscode,omitempty"` GoodUrl string `json:"goodurl,omitempty"` CategoryId string `json:"categoryid,omitempty"` CategoryId2 string `json:"categoryid2,omitempty"` PlatTradeNo string `json:"plattradeno,omitempty"` OriginCountry string `json:"origincountry,omitempty"` OuterId string `json:"outerid,omitempty"` Position string `json:"position,omitempty"` SupportBattery string `json:"supportbattery,omitempty"` Description string `json:"description,omitempty"` ElecQuaId string `json:"elecquaid,omitempty"` }
type LogisticsOrder ¶
type LogisticsOrder struct { //淘宝解密 Oaid string `json:"oaid,omitempty"` //订单号 必填 OrderNo string `json:"orderno,omitempty"` //必填 平台原始单号(多个原始单号以英文“,”分隔 PlatTradeNo string `json:"plattradeno,omitempty"` // 可选,是否为子母件(子母件=1,非子母件=0;默认0) IsMultiplePieces string `json:"ismultiplepieces,omitempty"` // 必填 包裹数量(默认填写值为1,有子母件时“IsMultiplePieces=1”包裹数量要和运单号数量一致) NumPackage string `json:"numpackage,omitempty"` //运单号(仅限于先预约单号的平台,如果是子母单,以半角逗号分隔,主单号在第一个位置,如755123456789,001123456789,002123456789) LogisticNo string `json:"logisticno,omitempty"` BusinessType string `json:"businesstype,omitempty"` BusinessPlat string `json:"businessplat,omitempty"` // 必填:快递支付方式(立即付款=0,货到付款=1,发件人月结付款=2,收件人月结付款=3,预付款=4,银行转账=5,欠款=6,现金付款=7,第三方付费=8,寄方付=9,收方付=10) PayMode string `json:"paymode,omitempty"` // 必填:订单类型(普通订单=JH_Normal,退货单=JH_Refund,保价单=JH_Support,货到付款单=JH_COD,海外订单=JH_OverSea,便携式订单=JH_Portable,快递制单=JH_Express,仓储订单=JH_Storage) OrderType string `json:"ordertype,omitempty"` // 货到付款金额(OrderType=JH_COD时必传) CodPayMoney float64 `json:"codpaymoney,omitempty"` // 订单包裹物品金额 PackageMoney string `json:"packagemoney,omitempty"` Weight string `json:"weight,omitempty"` //保价金额 SupporPayMoney float64 `json:"supporpaymoney,omitempty"` Length string `json:"length,omitempty"` Width string `json:"width,omitempty"` Height string `json:"height,omitempty"` Volume string `json:"volume,omitempty"` IsPickUp string `json:"ispickup,omitempty"` ProductType string `json:"producttype,omitempty"` LogisticType string `json:"logistictype,omitempty"` // 承运公司编码 CpCode string `json:"cpcode,omitempty"` DmsSorting string `json:"dmssorting,omitempty"` NeedEncrypt uint8 `json:"needencrypt,omitempty"` Sender *LogisticsAddress `json:"sender,omitempty"` Receiver *LogisticsAddress `json:"receiver,omitempty"` Goods []*LogisticsGoods `json:"goods"` // 月结账号 ShipperNo string `json:"shipperno,omitempty"` WareCode string `json:"warecode,omitempty"` BatchNo string `json:"batchno,omitempty"` IsLiquid string `json:"isliquid,omitempty"` IsHasBattery string `json:"ishasbattery,omitempty"` // 是否保险,默认0 IsInsurance uint8 `json:"isinsurance,omitempty"` DeliveryType string `json:"deliverytype,omitempty"` BackSignBill string `json:"backsignbill,omitempty"` IsLessTruck string `json:"islesstruck,omitempty"` CustomerCode string `json:"customercode,omitempty"` CustomerName string `json:"customername,omitempty"` ImageStyle string `json:"imagestyle,omitempty"` InputSite string `json:"inputsite,omitempty"` SiteCode string `json:"sitecode,omitempty"` IsCheckRange string `json:"ischeckrange,omitempty"` TempRangeType string `json:"temprangetype,omitempty"` MainSubPayMode string `json:"mainsubpaymode,omitempty"` TransType string `json:"transtype,omitempty"` IsBbc string `json:"isbbc,omitempty"` TransTypeCode string `json:"transtypecode,omitempty"` ProdCode string `json:"prodcode,omitempty"` IsNanJi string `json:"isnanji,omitempty"` CurrencyType string `json:"currencytype,omitempty"` PlatWebSite string `json:"platwebsite,omitempty"` CrossCodeId string `json:"crosscodeid,omitempty"` DefinedOrderInfo string `json:"definedorderinfo,omitempty"` DefinedGoodsInfo string `json:"definedgoodsinfo,omitempty"` PayOrderNo string `json:"payorderno,omitempty"` PayAmount string `json:"payamount,omitempty"` SenderAccount string `json:"senderaccount,omitempty"` Is5KgPacking string `json:"is5kgpacking,omitempty"` Is3Pl string `json:"is3pl,omitempty"` IsuseStock string `json:"isusestock,omitempty"` IsEconomic string `json:"iseconomic,omitempty"` SpecialHandling string `json:"specialhandling,omitempty"` CodType string `json:"codtype,omitempty"` PackageService string `json:"packageservice,omitempty"` IsOut string `json:"isout,omitempty"` ReceiverAccount string `json:"receiveraccount,omitempty"` ReceiverAccountname string `json:"receiveraccountname,omitempty"` IsFresh string `json:"isfresh,omitempty"` Remark string `json:"remark,omitempty"` CustomerRemark string `json:"customerremark,omitempty"` OrderSource string `json:"ordersource,omitempty"` ProviderId string `json:"providerid,omitempty"` ProviderCode string `json:"providercode,omitempty"` ExpressPayMethod string `json:"expresspaymethod,omitempty"` UndeliverableDecision string `json:"undeliverabledecision,omitempty"` ServiceName string `json:"servicename,omitempty"` CumstomsCode string `json:"cumstomscode,omitempty"` TotalLogisticsNo string `json:"totallogisticsno,omitempty"` StockFlag string `json:"stockflag,omitempty"` EbpCode string `json:"ebpcode,omitempty"` EcpName string `json:"ecpname,omitempty"` EcpCodeG string `json:"ecpcodeg,omitempty"` EcpNameG string `json:"ecpnameg,omitempty"` AgentCode string `json:"agentcode,omitempty"` AgentName string `json:"agentname,omitempty"` TotalShippingFee string `json:"totalshippingfee,omitempty"` FeeUnit string `json:"feeunit,omitempty"` ClearCode string `json:"clearcode,omitempty"` SellerId string `json:"sellerid,omitempty"` UserId string `json:"user_id,omitempty"` LogisticsServices string `json:"logistics_services,omitempty"` ObjectId string `json:"object_id,omitempty"` TemplateUrl string `json:"template_url,omitempty"` OrderChannelsType string `json:"order_channels_type,omitempty"` TradeOrderList string `json:"trade_order_list,omitempty"` LogisticsProductName string `json:"logisticsproductname,omitempty"` DeptNo string `json:"deptno,omitempty"` SenderTc string `json:"sendertc,omitempty"` PickUpDate string `json:"pickupdate,omitempty"` InstallFlag string `json:"installflag,omitempty"` ThirdCategoryNo string `json:"thirdcategoryno,omitempty"` BrandNo string `json:"brandno,omitempty"` ProductSku string `json:"productsku,omitempty"` PlatCode string `json:"platcode,omitempty"` SequenceNo string `json:"sequenceno,omitempty"` ChinaShipName string `json:"chinashipname,omitempty"` TaxPayType string `json:"taxpaytype,omitempty"` TaxSetAccounts string `json:"taxsetaccounts,omitempty"` PracelType string `json:"praceltype,omitempty"` AddressId string `json:"addressid,omitempty"` ConsignPreferenceId string `json:"consignpreferenceid,omitempty"` IsKuaiYun string `json:"iskuaiyun,omitempty"` }
type LogisticsOrderReqDto ¶
type LogisticsOrderReqDto struct {
Orders []*LogisticsOrder `json:"orders"`
}
type PrintOrderReturn ¶
type PrintOrderReturn struct { Code string `json:"code"` //1 返回码 10000 Msg string `json:"msg"` //1 返回消息 Success SubCode string `json:"subCode"` //1 返回子码 SubMessage string `json:"subMessage"` //1 返回子级消息 PolyAPITotalMS int `json:"polyAPITotalMS"` //1 请求接口总耗时(毫秒) 287 PolyAPIRequestID string `json:"polyAPIRequestID"` //1 请求菠萝派上下文编号 2016122913161617168574 MessageFrom string `json:"messageFrom"` //1指示此次返回是菠萝派的返回还是平台的返回 默认 POLY :POLY=POLY,PLAT=PLAT POLY Env string `json:"env"` //1 指示此次返回结果来源于菠萝派哪个环境 1 BufferDataType string `json:"bufferDataType"` //1 二进制内容类别:PDF=0,GIF=0,JPG=0,PNG=0 0 BufferData string `json:"bufferData"` //1 打印内容(二进制) - UrlData string `json:"urlData"` //1 打印内容网址 http://www.aaa.com/stream.pdf PrintData string `json:"printData"` //0 打印内容 万邑通ISP HtmlData string `json:"htmlData"` //0 打印内容 唯品会JIT物流、tokopedia LogisticNO string `json:"logisticNO"` //0 运单号 天猫海外仓直购物流 BatchPrintData []*BatchPrintOrder_Return_BATCH_PRINT_DATA `json:"batchPrintData"` //1 打印多个面单 batchPrintData[] TrackingId string `json:"trackingId"` //0 跟踪id 亚马逊物流 EncryptVersion string `json:"encryptVersion"` //1 加密算法版本号 华为电子面单 }
type ServiceOrder ¶
type ShopOrderInfo ¶
type ShopOrderInfo struct { ShopType string `json:"shoptype"` PlatOrderNo string `json:"platorderno"` TradeStatus string `json:"tradestatus"` TradeStatusDescription string `json:"tradestatusdescription"` TradeTime string `json:"tradetime"` ModifyTime string `json:"modifytime"` CollageTime string `json:"collagetime"` Username string `json:"username"` Nick string `json:"nick"` BuyerMobile string `json:"buyermobile"` ReceiverName string `json:"receivername"` Country string `json:"country"` Province string `json:"province"` City string `json:"city"` Area string `json:"area"` Town string `json:"town"` Address string `json:"address"` PayOrderNo string `json:"payorderno"` PayType string `json:"paytype"` ShouldPayType string `json:"shouldpaytype"` Zip string `json:"zip"` Phone string `json:"phone"` Mobile string `json:"mobile"` Email string `json:"email"` CustomeRremark string `json:"customerremark"` SellerRemark string `json:"sellerremark"` PostFee string `json:"postfee"` PostInsuranceFee string `json:"postinsurancefee"` GoodsFee string `json:"goodsfee"` TotalAmount string `json:"totalamount"` RealPayMoney string `json:"realpaymoney"` FavourableMoney string `json:"favourablemoney"` PlatDiscountMoney string `json:"platdiscountmoney"` TaxAmount string `json:"taxamount"` TariffAmount string `json:"tariffamount"` AddedValueAmount string `json:"addedvalueamount"` ConsumptionDutyAmount string `json:"consumptiondutyamount"` CommissionValue string `json:"commissionvalue"` PayTime string `json:"paytime"` SendType string `json:"sendtype"` SendStyle string `json:"sendstyle"` CodServiceFee string `json:"codservicefee"` SellerFlag string `json:"sellerflag"` CardType string `json:"cardtype"` IdCard string `json:"idcard"` IdCardTrueName string `json:"idcardtruename"` IdCardImgs string `json:"idcardimgs"` WhseCode string `json:"whsecode"` IsHwgFlag string `json:"ishwgflag"` DeliveryType string `json:"deliverytype"` ShopId string `json:"shopid"` MdbId string `json:"mdbid"` SaleSpin string `json:"salespin"` IsNeedInvoice string `json:"isneedinvoice"` InvoiceType string `json:"invoicetype"` InvoiceBusinessType string `json:"invoicebusinesstype"` InvoiceTitle string `json:"invoicetitle"` InvoiceContent string `json:"invoicecontent"` TaxPayerIdent string `json:"taxpayerident"` RegisteredAddress string `json:"registeredaddress"` RegisteredPhone string `json:"registeredphone"` DepositBank string `json:"depositbank"` BankAccount string `json:"bankaccount"` FetchTime string `json:"fetchtime"` FetchTimeDesc string `json:"fetchtimedesc"` OrderSource string `json:"ordersource"` CustomAttr string `json:"customattr"` TransportDay string `json:"transportday"` GoodInfoList []*GoodInfo `json:"goodinfos"` CouponDetails []*CouponDetail `json:"coupondetails"` CustomsCode string `json:"customscode"` UserLevel string `json:"userlevel"` ReminderCount string `json:"remindercount"` VerifyCode string `json:"verifycode"` SellerOrderId string `json:"sellerorderid"` Qq string `json:"qq"` OrderFlag string `json:"orderflag"` TradeAttr string `json:"tradeattr"` OrdertType string `json:"ordertype"` IsStoreOrder string `json:"isstoreorder"` IsYunStoreOrder string `json:"isyunstoreorder"` SendDate string `json:"senddate"` LeftSendDate string `json:"leftsenddate"` SortingCode string `json:"sortingcode"` PartNer string `json:"partner"` BfDeligoodglag string `json:"bfdeligoodglag"` CkyName string `json:"ckyname"` CreateDate string `json:"createdate"` ShouldPayMoney string `json:"shouldpaymoney"` ResellerId string `json:"resellerid"` ResellerShopName string `json:"resellershopname"` ResellerMobile string `json:"resellermobile"` ActivityAmount string `json:"activityamount"` BalanceUsed string `json:"balanceused"` SpecialAmount string `json:"specialamount"` CouponAmount string `json:"couponamount"` CurrencyCode string `json:"currencycode"` IsPresaleOrder string `json:"ispresaleorder"` ShipTypeName string `json:"shiptypename"` BondedId string `json:"bondedid"` BondedName string `json:"bondedname"` LogisticNo string `json:"logisticno"` LogisticName string `json:"logisticname"` PayMethod string `json:"paymethod"` FxtId string `json:"fxtid"` ClerkName string `json:"clerkname"` ClerkPhone string `json:"clerkphone"` TransactionId string `json:"transactionid"` IsDaiXiao string `json:"isdaixiao"` IsBrandSale string `json:"isbrandsale"` IsForcewLb string `json:"isforcewlb"` IsWlBorder string `json:"iswlborder"` IsShip string `json:"isship"` IsEncrypt string `json:"isencrypt"` FulfillmentChannel string `json:"fulfillmentchannel"` ShipmentServiceLevelCategory string `json:"shipmentservicelevelcategory"` IsshippedByAmazonTfm string `json:"isshippedbyamazontfm"` IsJzOrder string `json:"isjzorder"` TradeAttrJson string `json:"tradeattrjson"` EndTime string `json:"endtime"` ProductNum string `json:"productnum"` CancelTime string `json:"canceltime"` CancelReason string `json:"cancelreason"` AuditResult string `json:"auditresult"` AuditReason string `json:"auditreason"` OrderNumber string `json:"ordernumber"` InnertranSactionId string `json:"innertransactionid"` OriginalMobile string `json:"originalmobile"` ServiceOrderList []*ServiceOrder `json:"serviceorders"` }
type Sku ¶
type Sku struct { Skuid string `json:"skuid"` Skuouterid string `json:"skuouterid"` Skuprice string `json:"skuprice"` Skuquantity string `json:"skuquantity"` Skuname string `json:"skuname"` Skuproperty string `json:"skuproperty"` Skutype string `json:"skutype"` Skupictureurl string `json:"skupictureurl"` Skuname2 string `json:"skuname2"` }
type SubGoods ¶
type SubGoods struct { ProductId string `json:"productid"` TradeGoodsNo string `json:"tradegoodsno"` TradeGoodsName string `json:"tradegoodsname"` GoodsCount string `json:"goodscount"` Price string `json:"price"` OutSkuId string `json:"outskuid"` OutTtemId string `json:"outitemid"` PlatGoodsId string `json:"platgoodsid"` PlatSkuId string `json:"platskuid"` }
type SuccessResDto ¶
type SuccessResDto struct {
Response *successRes `json:"response"`
}
奇门接口成功响应
func NewSuccessResDto ¶
func NewSuccessResDto(isSuccess bool, code int, message, itemId string) *SuccessResDto
type WayBillConditionPost ¶
type WayBillConditionPost struct {
Cpcode string `json:"cpcode"` //必填 通用 32 承运公司编码 POSTB
}
type WayBillConditionResults ¶
type WayBillConditionResults struct { Cpcode string `json:"cpcode"` //必填 通用 32 承运公司编码 POSTB Cptype string `json:"cptype"` //必填 通用 32 物流服务商业务类型(直营=0,客户拥有的模... POSTB Results []*WaybillApplySubscriptionInfo `json:"results"` //必填 通用 - 承运网点信息集合 ShopId string `json:"shopid"` Logisticsaccount string `json:"logisticsaccount"` }
type WayBillConditionReturn ¶
type WayBillConditionReturn struct { Code string //必填 通用 64 返回码 10000 Msg string //必填 通用 64 返回消息 Success Subcode string //必填 通用 200 子集编码 LXO.JD.REQUEST_FAIL Submessage string //必填 通用 200 子级消息 订单已出库 Polyapitotalms json.Number //必填 通用 64 菠萝派总耗时 102 Polyapirequestid string //必填 通用 64 请求菠萝派编号 20161222154212742 Results []*WayBillConditionResults `json:"results"` }
type WaybillApplySubscriptionInfo ¶
type WaybillApplySubscriptionInfo struct { Usingquantity interface{} `json:"usingquantity"` //必填 通用 32 已用面单数量 40 Sitecode string `json:"sitecode"` //必填 通用 32 网点编码 1232 Sitename string `json:"sitename"` //必填 通用 32 网点名称 1232 Sitestatus string `json:"sitestatus"` //必填 通用 32 网点状态 1232 Cancelquantity interface{} `json:"cancelquantity"` //必填 通用 32 取消的面单数量 40 Printquantity interface{} `json:"printquantity"` //必填 通用 32 已经打印的面单总数 30 Quantity interface{} `json:"quantity"` //必填 通用 32 面单数量(可用数量) 30 Shippers []*WaybillApplySubscriptionInfoShipperInfo `json:"shippers"` //必填 通用 - 网点下发货信息集合 - Services []*WaybillApplySubscriptionInfoServiceInfo `json:"services"` //必填 通用 - 服务信息列表 - }
type WaybillApplySubscriptionInfoServiceInfo ¶
type WaybillApplySubscriptionInfoServiceInfo struct { Name string `json:"name"` //必填 通用 32 服务名称 代收货款 Code string `json:"code"` //必填 通用 32 服务编码 SVC-COD Desc string `json:"desc"` //必填 通用 32 服务描述 SVC-COD Isrequired string `json:"isrequired"` //必填 通用 32 是否必选服务(不必须=0,必须=1) 1 Serviceattr []*WaybillApplySubscriptionInfoServiceInfoServiceAttr `json:"serviceattr"` //可选 通用 - 服务属性 - }
type WaybillApplySubscriptionInfoShipperInfo ¶
type WaybillApplySubscriptionInfoShipperInfo struct { Province string `json:"province"` //必填 通用 32 州省 浙江 City string `json:"city"` //必填 通用 32 城市 杭州 Area string `json:"area"` //必填 通用 50 区县 江干区 Town string `json:"town"` //必填 通用 50 镇(街道) 三里亭 Address string `json:"address"` //必填 通用 200 地址 浙江杭州市江干区秋涛路255号10楼302 }
Click to show internal directories.
Click to hide internal directories.