- jdapi.OrderShoudSettlementService2
- mtwmapi.PoiReceiveDetailInfo
This commit is contained in:
@@ -149,6 +149,34 @@ type VenderAfsSkuDTO struct {
|
||||
PromotionType int `json:"promotionType"`
|
||||
}
|
||||
|
||||
type OrderSettlementInfo struct {
|
||||
AllAfterSaleFreight int64 `json:"allAfterSaleFreight"`
|
||||
AllAfterSalePackageMoney int64 `json:"allAfterSalePackageMoney"`
|
||||
BillTime *utils.JavaDate `json:"billTime"`
|
||||
DistanceFreightMoney int64 `json:"distanceFreightMoney"`
|
||||
FreightCommission int64 `json:"freightCommission"`
|
||||
GoodsCommission int64 `json:"goodsCommission"`
|
||||
GuaranteedCommission int64 `json:"guaranteedCommission"`
|
||||
OrderCashOnDeliveryMoney int64 `json:"orderCashOnDeliveryMoney"`
|
||||
OrderGiftCardMoney int64 `json:"orderGiftCardMoney"`
|
||||
OrderID int64 `json:"orderId"`
|
||||
OrgCode string `json:"orgCode"`
|
||||
PackageCommission int64 `json:"packageCommission"`
|
||||
PackageMoney int64 `json:"packageMoney"`
|
||||
PlatDeliveryFreight int64 `json:"platDeliveryFreight"`
|
||||
PlatFreightDiscountMoney int64 `json:"platFreightDiscountMoney"`
|
||||
PlatOrderGoodsDiscountMoney int64 `json:"platOrderGoodsDiscountMoney"`
|
||||
PlatSkuGoodsDiscountMoney int64 `json:"platSkuGoodsDiscountMoney"`
|
||||
SettlementAmount int64 `json:"settlementAmount"`
|
||||
StationNo string `json:"stationNo"`
|
||||
UserActualPaidGoodsMoney int64 `json:"userActualPaidGoodsMoney"`
|
||||
VenderDeliveryFreight int64 `json:"venderDeliveryFreight"`
|
||||
VenderFreightDiscountMoney int64 `json:"venderFreightDiscountMoney"`
|
||||
VenderOrderGoodsDiscountMoney int64 `json:"venderOrderGoodsDiscountMoney"`
|
||||
VenderPaidTips int64 `json:"venderPaidTips"`
|
||||
VenderSkuGoodsDiscountMoney int64 `json:"venderSkuGoodsDiscountMoney"`
|
||||
}
|
||||
|
||||
var (
|
||||
ErrCanNotFindOrder = errors.New("can not find order")
|
||||
)
|
||||
@@ -298,6 +326,14 @@ func (a *API) OrderShoudSettlementService(orderId string) (map[string]interface{
|
||||
return result.(map[string]interface{}), nil
|
||||
}
|
||||
|
||||
func (a *API) OrderShoudSettlementService2(orderId string) (orderSettlement *OrderSettlementInfo, err error) {
|
||||
result, err := a.OrderShoudSettlementService(orderId)
|
||||
if err == nil {
|
||||
err = utils.Map2StructByJson(result, &orderSettlement, false)
|
||||
}
|
||||
return orderSettlement, err
|
||||
}
|
||||
|
||||
// 查询售后单详情接口
|
||||
// https://openo2o.jddj.com/staticnew/widgets/resources.html?groupid=170&apiid=6805ed690b7b4776b058067312c57d98
|
||||
func (a *API) GetAfsService(orderId string) (map[string]interface{}, error) {
|
||||
|
||||
Reference in New Issue
Block a user