- OrderDetailInfo -> RefundOrderDetailInfo

This commit is contained in:
gazebo
2019-06-11 18:40:03 +08:00
parent eb009df26d
commit bd6e0d482e

View File

@@ -101,14 +101,7 @@ type RefundSku struct {
Number string `json:"number"`
}
type OrderDetailInfo struct {
CustomSkuID string `json:"custom_sku_id"`
Name string `json:"name"`
Number int `json:"number"`
ProductFeatures []interface{} `json:"product_features"`
ProductFee int `json:"product_fee"`
ProductPrice int `json:"product_price"`
ProductSubsidy struct {
type ProductSubsidyInfo struct {
AgentRate int `json:"agent_rate"`
BaiduRate int `json:"baidu_rate"`
Discount int `json:"discount"`
@@ -121,7 +114,16 @@ type OrderDetailInfo struct {
LogisticsRate int `json:"logistics_rate"`
ShopRate int `json:"shop_rate"`
UserRate int `json:"user_rate"`
} `json:"product_subsidy"`
}
type RefundOrderDetailInfo struct {
CustomSkuID string `json:"custom_sku_id"`
Name string `json:"name"`
Number int `json:"number"`
ProductFeatures []interface{} `json:"product_features"`
ProductFee int `json:"product_fee"`
ProductPrice int `json:"product_price"`
ProductSubsidy *ProductSubsidyInfo `json:"product_subsidy"`
SkuID string `json:"sku_id"`
TotalWeight int `json:"total_weight"`
Upc string `json:"upc"`
@@ -145,7 +147,7 @@ type RefundDetailInfo struct {
type PartRefundInfo struct {
Commission int `json:"commission"`
Fee int `json:"fee"`
OrderDetail []*OrderDetailInfo `json:"order_detail"`
OrderDetail []*RefundOrderDetailInfo `json:"order_detail"`
OrderID string `json:"order_id"`
PackageFee int `json:"package_fee"`
RefundDetail []*RefundDetailInfo `json:"refund_detail"`
@@ -360,7 +362,7 @@ func (a *API) OrderPartRefundGet(orderID string) (orderMap map[string]interface{
func (a *API) OrderPartRefundGet2(orderID string) (partRefundInfo *CBPartRefundInfo, err error) {
result, err := a.OrderPartRefundGet(orderID)
if err == nil {
err = utils.Map2StructByJson(result, &partRefundInfo, false)
err = utils.Map2StructByJson(result, &partRefundInfo, true)
}
return partRefundInfo, err
}