using Jd.Api.Response; using Newtonsoft.Json; using System; using System.Collections.Generic; namespace Jd.Api.Request { public class SkuWriteUpdateSkusRequest : JdRequestBase { public override string ApiName => "jingdong.sku.write.updateSkus"; public Nullable wareId { get; set; } public IList skus { get; set; } //public string skus { get; set; } protected override void PrepareParam(IDictionary 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 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 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 attrValues { get; set; } public List attrValueAlias { get; set; } public int index { get; set; } public List attrValuesSeqNo { get; set; } public List expands { get; set; } public List units { get; set; } } }