You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
71 lines
1.9 KiB
71 lines
1.9 KiB
using Jd.Api.Response;
|
|
using Newtonsoft.Json;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace Jd.Api.Request
|
|
{
|
|
public class SkuWriteUpdateSkusRequest : JdRequestBase<SkuWriteUpdateSkusResponse>
|
|
{
|
|
public override string ApiName => "jingdong.sku.write.updateSkus";
|
|
|
|
public Nullable<long> wareId { get; set; }
|
|
|
|
public IList<SkuWriteUpdateSkusItem> skus { get; set; }
|
|
//public string skus { get; set; }
|
|
|
|
protected override void PrepareParam(IDictionary<string, object> paramters)
|
|
{
|
|
paramters.Add("wareId", wareId);
|
|
paramters.Add("skus", skus);
|
|
}
|
|
}
|
|
|
|
public class SkuWriteUpdateSkusItem
|
|
{
|
|
[JsonProperty("@type")]
|
|
public string type { get; set; } = "com.jd.pop.ware.ic.api.domain.Sku";
|
|
|
|
public long? wareId { get; set; }
|
|
|
|
public long? skuId { get; set; }
|
|
|
|
public int? enable { get; set; }
|
|
|
|
public List<SkuWriteUpdateSkusItemSaleAttrs> saleAttrs { get; set; }
|
|
|
|
public decimal jdPrice { get; set; }
|
|
|
|
public int stockNum { get; set; }
|
|
|
|
public string barCode { get; set; }
|
|
|
|
public string outerId { get; set; }
|
|
|
|
public List<SkuWriteUpdateSkusItemSaleAttrs> multiCateProps { get; set; }
|
|
|
|
public int? promiseId { get; set; }
|
|
|
|
public string saleAttrTemplateId { get; set; }
|
|
}
|
|
|
|
public class SkuWriteUpdateSkusItemSaleAttrs
|
|
{
|
|
[JsonProperty("@type")]
|
|
public string type { get; set; } = "com.jd.pop.ware.ic.api.domain.Prop";
|
|
|
|
public string attrId { get; set; }
|
|
|
|
public List<string> attrValues { get; set; }
|
|
|
|
public List<string> attrValueAlias { get; set; }
|
|
|
|
public int index { get; set; }
|
|
|
|
public List<int?> attrValuesSeqNo { get; set; }
|
|
|
|
public List<string> expands { get; set; }
|
|
|
|
public List<string> units { get; set; }
|
|
}
|
|
}
|
|
|