using System; using System.Xml.Serialization; using System.Collections.Generic; using Aop.Api.Domain; namespace Aop.Api.Response { /// /// AlipayOfflineMarketProductQuerydetailResponse. /// public class AlipayOfflineMarketProductQuerydetailResponse : AopResponse { /// /// 商品首图,尺寸比例在65:53范围内且图片大小不超过10k皆可 /// [XmlElement("cover")] public string Cover { get; set; } /// /// 商品描述,只有单品代金券有商品描述 /// [XmlArray("descriptions")] [XmlArrayItem("alipay_data_item_description")] public List Descriptions { get; set; } /// /// 商品下架时间,不得早于商品生效时间,商品下架 /// [XmlElement("gmt_end")] public string GmtEnd { get; set; } /// /// 商品生效时间,到达生效时间后才可在客户端展示出来 /// [XmlElement("gmt_start")] public string GmtStart { get; set; } /// /// 商品库存数量 /// [XmlElement("inventory")] public long Inventory { get; set; } /// /// 是否自动延期,默认false /// [XmlElement("is_auto_expanded")] public bool IsAutoExpanded { get; set; } /// /// 该商品当前的状态,共有四个状态: INIT(初始化状态) EFFECTIVE(上架/售卖中) PAUSE(暂停售卖) INVALID(下架/失效状态) 说明: 处于暂停售卖状态的商品还可以变成上架/售卖中状态,但一旦INVALID就相当于删除了该商品,无法再做其他操作 /// [XmlElement("item_status")] public string ItemStatus { get; set; } /// /// 商品类型,券类型为固定值VOUCHER /// [XmlElement("item_type")] public string ItemType { get; set; } /// /// 图片集,是map转化成的json串,key是图片id,value是图片url /// [XmlElement("pic_coll")] public string PicColl { get; set; } /// /// 商品购买类型: OBTAIN为领取 AUTO_OBTAIN为自动领取 /// [XmlElement("purchase_mode")] public string PurchaseMode { get; set; } /// /// 销售规则,如用户一天只能领取一次等 /// [XmlElement("sales_rule")] public AlipayDataItemSalesRule SalesRule { get; set; } /// /// 上架门店id列表,即传入一个或多个shop_id,必须是创建商品partnerId下的店铺,目前支持的店铺最大100个,如果超过100个店铺需要报备 /// [XmlArray("shop_list")] [XmlArrayItem("string")] public List ShopList { get; set; } /// /// 商品名称,请勿超过15个汉字,30个字符 /// [XmlElement("subject")] public string Subject { get; set; } /// /// 券模板信息 /// [XmlElement("voucher_templete")] public AlipayDataItemVoucherTemplete VoucherTemplete { get; set; } /// /// 商品顺序权重,必须是整数,不传默认为0,权重数值越大排序越靠前 /// [XmlElement("weight")] public long Weight { get; set; } } }