You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

106 lines
3.7 KiB
C#

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