1'
This commit is contained in:
@@ -52,7 +52,7 @@ type AfterSaleApplyMarketAfterSaleParam struct {
|
||||
// 退款金额,单位分。 只缺重有效,缺货/拒签场景由系统计费算出。 最多不会超过订单金额
|
||||
RefundAmount int64 `json:"refund_amount"`
|
||||
// 退款金额如果传了,就按传的金额退;不传由平台根据件数来分摊计算(特别注只有整单退才会退运费,否则运费不退;缺货暂时不支持按件数退,只能整单退;)
|
||||
//ItemCount int64 `json:"item_count"`
|
||||
ItemCount int64 `json:"item_count"`
|
||||
// 售后原因枚举 MissGram = 1缺重,必传克数、金额; MissItem = 2缺货,只支持整单退; RefuseSign = 3 拒收,支持按件数退,必传件数,金额由抖音计算
|
||||
AfterSaleReason int32 `json:"after_sale_reason"`
|
||||
// 门店ID,传了就做检验,不传默认通过,由isv自行保证权限
|
||||
|
||||
@@ -64,7 +64,7 @@ func (a *API) ApplyMarketAfterSale(skuOrderId int64, afterSaleReason int32) (aft
|
||||
request := afterSale_applyMarketAfterSale_request.New()
|
||||
param := request.GetParams()
|
||||
param.SkuOrderId = skuOrderId
|
||||
param.AfterSaleReason = 2 // 目前固定值为2缺货
|
||||
param.AfterSaleReason = afterSaleReason // 目前固定值为2缺货
|
||||
|
||||
result, err := request.Execute(a.accessTokenObj)
|
||||
if err != nil {
|
||||
|
||||
@@ -235,13 +235,17 @@ func TestGetSkuDetailLocalId(t *testing.T) {
|
||||
|
||||
func TestUpdateSkuStore(t *testing.T) {
|
||||
err := a.UpdateSkuStock(&sku_syncStock_request.SkuSyncStockParam{
|
||||
SkuId: 1747647316908071,
|
||||
ProductId: 3579181713974249764,
|
||||
//OutProductId: 8076827,
|
||||
SkuId: 1747851611030548,
|
||||
ProductId: 3579693016937530042,
|
||||
OutProductId: 0,
|
||||
Incremental: false,
|
||||
IdempotentId: "",
|
||||
StockNum: 100,
|
||||
StockNum: 1,
|
||||
OutWarehouseId: "65402632",
|
||||
Code: "",
|
||||
OutSkuId: 0,
|
||||
SupplierId: "",
|
||||
StepStockNum: 0,
|
||||
})
|
||||
fmt.Println(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user