- OrderDetailInfo -> RefundOrderDetailInfo
This commit is contained in:
@@ -101,30 +101,32 @@ 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 {
|
||||
AgentRate int `json:"agent_rate"`
|
||||
BaiduRate int `json:"baidu_rate"`
|
||||
Discount int `json:"discount"`
|
||||
DiscountDetail []*struct {
|
||||
ActivityID string `json:"activity_id"`
|
||||
BaiduRate int `json:"baidu_rate"`
|
||||
ShopRate int `json:"shop_rate"`
|
||||
Type string `json:"type"`
|
||||
} `json:"discount_detail"`
|
||||
LogisticsRate int `json:"logistics_rate"`
|
||||
ShopRate int `json:"shop_rate"`
|
||||
UserRate int `json:"user_rate"`
|
||||
} `json:"product_subsidy"`
|
||||
SkuID string `json:"sku_id"`
|
||||
TotalWeight int `json:"total_weight"`
|
||||
Upc string `json:"upc"`
|
||||
type ProductSubsidyInfo struct {
|
||||
AgentRate int `json:"agent_rate"`
|
||||
BaiduRate int `json:"baidu_rate"`
|
||||
Discount int `json:"discount"`
|
||||
DiscountDetail []*struct {
|
||||
ActivityID string `json:"activity_id"`
|
||||
BaiduRate int `json:"baidu_rate"`
|
||||
ShopRate int `json:"shop_rate"`
|
||||
Type string `json:"type"`
|
||||
} `json:"discount_detail"`
|
||||
LogisticsRate int `json:"logistics_rate"`
|
||||
ShopRate int `json:"shop_rate"`
|
||||
UserRate int `json:"user_rate"`
|
||||
}
|
||||
|
||||
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"`
|
||||
}
|
||||
|
||||
type RefundDetailInfo struct {
|
||||
@@ -143,18 +145,18 @@ type RefundDetailInfo struct {
|
||||
}
|
||||
|
||||
type PartRefundInfo struct {
|
||||
Commission int `json:"commission"`
|
||||
Fee int `json:"fee"`
|
||||
OrderDetail []*OrderDetailInfo `json:"order_detail"`
|
||||
OrderID string `json:"order_id"`
|
||||
PackageFee int `json:"package_fee"`
|
||||
RefundDetail []*RefundDetailInfo `json:"refund_detail"`
|
||||
RefundPrice int `json:"refund_price"`
|
||||
SendFee int `json:"send_fee"`
|
||||
ShopFee int `json:"shop_fee"`
|
||||
TotalPrice int `json:"total_price"`
|
||||
Type int `json:"type"`
|
||||
UserFee int `json:"user_fee"`
|
||||
Commission int `json:"commission"`
|
||||
Fee int `json:"fee"`
|
||||
OrderDetail []*RefundOrderDetailInfo `json:"order_detail"`
|
||||
OrderID string `json:"order_id"`
|
||||
PackageFee int `json:"package_fee"`
|
||||
RefundDetail []*RefundDetailInfo `json:"refund_detail"`
|
||||
RefundPrice int `json:"refund_price"`
|
||||
SendFee int `json:"send_fee"`
|
||||
ShopFee int `json:"shop_fee"`
|
||||
TotalPrice int `json:"total_price"`
|
||||
Type int `json:"type"`
|
||||
UserFee int `json:"user_fee"`
|
||||
}
|
||||
|
||||
type ListOrderItemInfo struct {
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user