using System; using System.Xml.Serialization; using System.Collections.Generic; namespace Top.Api.Response { /// /// OpenmallItemGetResponse. /// public class OpenmallItemGetResponse : TopResponse { /// /// 返回结果 /// [XmlElement("result")] public ResultDoDomain Result { get; set; } /// /// TopItemImageVoDomain Data Structure. /// [Serializable] public class TopItemImageVoDomain : TopObject { /// /// 图片ID,itemImages中不返回 /// [XmlElement("image_id")] public long ImageId { get; set; } /// /// 图片放在第几张(多图时设置),propertyImages中不返回 /// [XmlElement("position")] public long Position { get; set; } /// /// 商品属性,itemImages中不返回 /// [XmlElement("properties")] public string Properties { get; set; } /// /// 商品图片链接 /// [XmlElement("url")] public string Url { get; set; } } /// /// TopPostageVoDomain Data Structure. /// [Serializable] public class TopPostageVoDomain : TopObject { /// /// 增费:支持0.00-999.99(最多包含两位小数) /// [XmlElement("add_fee")] public string AddFee { get; set; } /// /// 增费标准。 当valuation为0时,支持1-9999范围内的整数; 当valuation为1时,支持0.1-9999.9范围内的小数,只能包含一位小数(单位为千克); 当valuation为3时,支持0.1-999.9范围内的数值,数值只能包含一位小数(单位为 立方米)。 /// [XmlElement("add_standard")] public string AddStandard { get; set; } /// /// 涉及的地区,多个地区用逗号分隔。地区码可以用taobao.areas.get接口获取,或者参考:http://www.mca.gov.cn/article/sj/xzqh/2020/2020/202003301019.html 当值为1时,表示全国所有地区。 /// [XmlElement("post_area")] public string PostArea { get; set; } /// /// 运费方式,可选值:平邮 (post)、快递公司(express)、EMS (ems)、货到付款(cod)、物流宝保障速递(wlb)、家装物流(furniture)。 /// [XmlElement("post_type")] public string PostType { get; set; } /// /// 首费,范围0.00-999.99(最多包含两位小数)。 /// [XmlElement("start_fee")] public string StartFee { get; set; } /// /// 首费标准。 当valuation(记价方式)为1时,支持0.1-9999.9范围内的小数只能包含一位小数(单位为千克); 当valuation(记价方式)为3时,支持0.1-999.9范围内的数值,数值只能包含一位小数(单位为 立方米)。 /// [XmlElement("start_standard")] public string StartStandard { get; set; } /// /// 运费计算方式,可选值:0(件数)、1(重量)、3(体积)。 /// [XmlElement("valuation")] public long Valuation { get; set; } } /// /// TopItemSkuVoDomain Data Structure. /// [Serializable] public class TopItemSkuVoDomain : TopObject { /// /// sku描述,以分号分隔描述项,### 分隔翻译内容;注意,当为别名时,翻译项中将没有冒号分隔 /// [XmlElement("description")] public string Description { get; set; } /// /// 属于这个sku的商品的价格 取值范围:0-100000000;精确到2位小数;单位:元。如:200.07,表示:200元7分。 /// [XmlElement("price")] public string Price { get; set; } /// /// sku所对应的销售属性串,由 属性名ID(pid)、属性值ID(vid)组成。 格式为:pid1:vid1;pid2:vid2 ;pid3:vid3… pid和vid对应的中文名称,可以从item_properties字段中获取。 /// [XmlElement("properties")] public string Properties { get; set; } /// /// 属于这个sku的商品的数量 /// [XmlElement("quantity")] public long Quantity { get; set; } /// /// sku的id /// [XmlElement("sku_id")] public long SkuId { get; set; } } /// /// TopItemVoDomain Data Structure. /// [Serializable] public class TopItemVoDomain : TopObject { /// /// 是否区域限购。值为true时,通过taobao.openmall.item.salearea.get获取商品可销售区域;值为false时,该商品所有区域都可销售。 /// [XmlElement("area_limit")] public bool AreaLimit { get; set; } /// /// 商品类目 /// [XmlElement("category_id")] public long CategoryId { get; set; } /// /// 商品所在城市 /// [XmlElement("city")] public string City { get; set; } /// /// 商品成本价,精确到2位小数,单位:元。如:200.07,表示200元7分。 /// [XmlElement("cost_price")] public string CostPrice { get; set; } /// /// 商品描述, 字数要大于5个字符,小于25000个字符 /// [XmlElement("description")] public string Description { get; set; } /// /// 是否虚拟商品 /// [XmlElement("is_virtual")] public bool IsVirtual { get; set; } /// /// 商品ID /// [XmlElement("item_id")] public long ItemId { get; set; } /// /// 商品图片 /// [XmlArray("item_images")] [XmlArrayItem("top_item_image_vo")] public List ItemImages { get; set; } /// /// 商品的属性列表,由属性名ID(pid)、属性值ID(vid)、属性名(pid_name)、属性值(vid_name)组成。格式如:pid1:vid1:pid_name1:vid_name1;pid2:vid2:pid_name2:vid_name2…… /// [XmlElement("item_properties")] public string ItemProperties { get; set; } /// /// 商品状态:上架(1)、下架(0) /// [XmlElement("item_status")] public long ItemStatus { get; set; } /// /// 商品视频列表,多个视频用逗号分隔。 /// [XmlElement("item_videos")] public string ItemVideos { get; set; } /// /// 商品主图 /// [XmlElement("pic_url")] public string PicUrl { get; set; } /// /// 商品人气 /// [XmlElement("popularity")] public long Popularity { get; set; } /// /// 运费列表 /// [XmlArray("postages")] [XmlArrayItem("top_postage_vo")] public List Postages { get; set; } /// /// 属性值别名,比如颜色的自定义名称 /// [XmlElement("property_alias")] public string PropertyAlias { get; set; } /// /// 商品属性图片 /// [XmlArray("property_images")] [XmlArrayItem("top_item_image_vo")] public List PropertyImages { get; set; } /// /// 商品所在省份 /// [XmlElement("prov")] public string Prov { get; set; } /// /// 库存 /// [XmlElement("quantity")] public long Quantity { get; set; } /// /// 商品店铺名称 /// [XmlElement("shop_name")] public string ShopName { get; set; } /// /// 表示商品的体积,用于按体积计费的运费模板。该值的单位为立方米(m3)。该值支持两种格式的设置: 格式1:bulk:3,单位为立方米(m3),表示直接设置为商品的体积; 格式2:width:10;breadth:10;height:10,单位为米(m)。 /// [XmlElement("size")] public string Size { get; set; } /// /// sku列表 /// [XmlArray("skus")] [XmlArrayItem("top_item_sku_vo")] public List Skus { get; set; } /// /// 当前商品是否支持hold单,当为false时,下单接口中的need_erp_hold不生效 /// [XmlElement("support_erp_hold")] public string SupportErpHold { get; set; } /// /// 商品标题 /// [XmlElement("title")] public string Title { get; set; } /// /// 商品的重量,用于按重量计费的运费模板。注意:单位为kg /// [XmlElement("weight")] public string Weight { get; set; } } /// /// ResultDoDomain Data Structure. /// [Serializable] public class ResultDoDomain : TopObject { /// /// 错误码 /// [XmlElement("error_code")] public string ErrorCode { get; set; } /// /// 错误信息 /// [XmlElement("error_msg")] public string ErrorMsg { get; set; } /// /// 商品 /// [XmlElement("item")] public TopItemVoDomain Item { get; set; } /// /// 调用是否成功 /// [XmlElement("success")] public bool Success { get; set; } } } }