接口文件
This commit is contained in:
@@ -0,0 +1,123 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Alipay.AopSdk.Core.Domain
|
||||
{
|
||||
/// <summary>
|
||||
/// ItemQueryResponse Data Structure.
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
public class ItemQueryResponse : AopObject
|
||||
{
|
||||
/// <summary>
|
||||
/// 口碑商品所属的后台类目id,后台类目数据来源:开放接口koubei.item.category.children.batchquery(查询后台类目树接口)
|
||||
/// </summary>
|
||||
[JsonProperty("category_id")]
|
||||
public string CategoryId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 首图
|
||||
/// </summary>
|
||||
[JsonProperty("cover")]
|
||||
public string Cover { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 商品描述,列表类型,每一项的key,value的描述见下面两行
|
||||
/// </summary>
|
||||
[JsonProperty("descriptions")]
|
||||
|
||||
public List<KoubeiItemDescription> Descriptions { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 商品生效时间,商品状态有效并且到达生效时间后才可在客户端(消费者端)展示出来,如果商品生效时间小于当前时间,则立即生效。 说明: 商品的生效时间不能早于创建当天的0点
|
||||
/// </summary>
|
||||
[JsonProperty("gmt_start")]
|
||||
public string GmtStart { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 当前库存
|
||||
/// </summary>
|
||||
[JsonProperty("inventory")]
|
||||
public long Inventory { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 商品ID
|
||||
/// </summary>
|
||||
[JsonProperty("item_id")]
|
||||
public string ItemId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 该商品当前的状态,共有5个状态:INIT(初始状态)EFFECTIVE(生效)PAUSE(暂停)FREEZE(冻结)INVALID(失效);详见状态变更图
|
||||
/// </summary>
|
||||
[JsonProperty("item_status")]
|
||||
public string ItemStatus { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 商品类型,交易凭证类:TRADE_VOUCHER
|
||||
/// </summary>
|
||||
[JsonProperty("item_type")]
|
||||
public string ItemType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 备注
|
||||
/// </summary>
|
||||
[JsonProperty("memo")]
|
||||
public string Memo { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 标准商品为原价,必填。非标准商品请勿填写,填写无效。价格单位为元
|
||||
/// </summary>
|
||||
[JsonProperty("original_price")]
|
||||
public string OriginalPrice { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 图片集,本商品所有图片id和URL的对应关系数组
|
||||
/// </summary>
|
||||
[JsonProperty("pic_coll")]
|
||||
|
||||
public List<string> PicColl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 商品详情图,多张图片以英文逗号分隔
|
||||
/// </summary>
|
||||
[JsonProperty("picture_details")]
|
||||
public string PictureDetails { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 标准商品为现价,选填。非标准商品为最小价格(非标商品为xx元起)必填。价格单位为元。如果标准商品现价不填写,则以原价进行售卖;如果现价与原价相等时,则会以原价售卖,并且客户端只展示一个价格(原价)
|
||||
/// </summary>
|
||||
[JsonProperty("price")]
|
||||
public string Price { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 标准商品:FIX;非标准商品:FLOAT ,根据该字段判断商品是标准商品或非标商品。
|
||||
/// </summary>
|
||||
[JsonProperty("price_mode")]
|
||||
public string PriceMode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 适用门店列表
|
||||
/// </summary>
|
||||
[JsonProperty("shop_ids")]
|
||||
public string ShopIds { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 商品名称,不超过20汉字,40个字符
|
||||
/// </summary>
|
||||
[JsonProperty("subject")]
|
||||
public string Subject { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 交易凭证类商品模板信息
|
||||
/// </summary>
|
||||
[JsonProperty("trade_voucher_item_template")]
|
||||
public KoubeiTradeVoucherItemTemplete TradeVoucherItemTemplate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 商品顺序权重
|
||||
/// </summary>
|
||||
[JsonProperty("weight")]
|
||||
public long Weight { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user