- OrderDetailInfo -> RefundOrderDetailInfo
This commit is contained in:
@@ -101,14 +101,7 @@ type RefundSku struct {
|
|||||||
Number string `json:"number"`
|
Number string `json:"number"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type OrderDetailInfo struct {
|
type ProductSubsidyInfo 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 {
|
|
||||||
AgentRate int `json:"agent_rate"`
|
AgentRate int `json:"agent_rate"`
|
||||||
BaiduRate int `json:"baidu_rate"`
|
BaiduRate int `json:"baidu_rate"`
|
||||||
Discount int `json:"discount"`
|
Discount int `json:"discount"`
|
||||||
@@ -121,7 +114,16 @@ type OrderDetailInfo struct {
|
|||||||
LogisticsRate int `json:"logistics_rate"`
|
LogisticsRate int `json:"logistics_rate"`
|
||||||
ShopRate int `json:"shop_rate"`
|
ShopRate int `json:"shop_rate"`
|
||||||
UserRate int `json:"user_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"`
|
SkuID string `json:"sku_id"`
|
||||||
TotalWeight int `json:"total_weight"`
|
TotalWeight int `json:"total_weight"`
|
||||||
Upc string `json:"upc"`
|
Upc string `json:"upc"`
|
||||||
@@ -145,7 +147,7 @@ type RefundDetailInfo struct {
|
|||||||
type PartRefundInfo struct {
|
type PartRefundInfo struct {
|
||||||
Commission int `json:"commission"`
|
Commission int `json:"commission"`
|
||||||
Fee int `json:"fee"`
|
Fee int `json:"fee"`
|
||||||
OrderDetail []*OrderDetailInfo `json:"order_detail"`
|
OrderDetail []*RefundOrderDetailInfo `json:"order_detail"`
|
||||||
OrderID string `json:"order_id"`
|
OrderID string `json:"order_id"`
|
||||||
PackageFee int `json:"package_fee"`
|
PackageFee int `json:"package_fee"`
|
||||||
RefundDetail []*RefundDetailInfo `json:"refund_detail"`
|
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) {
|
func (a *API) OrderPartRefundGet2(orderID string) (partRefundInfo *CBPartRefundInfo, err error) {
|
||||||
result, err := a.OrderPartRefundGet(orderID)
|
result, err := a.OrderPartRefundGet(orderID)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
err = utils.Map2StructByJson(result, &partRefundInfo, false)
|
err = utils.Map2StructByJson(result, &partRefundInfo, true)
|
||||||
}
|
}
|
||||||
return partRefundInfo, err
|
return partRefundInfo, err
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user