NewGaoKaoApi/PaymentSDK/AliPay/Domain/KbdishRuleInfo.cs

63 lines
2.0 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

using System;
using System.Xml.Serialization;
using System.Collections.Generic;
namespace Aop.Api.Domain
{
/// <summary>
/// KbdishRuleInfo Data Structure.
/// </summary>
[Serializable]
public class KbdishRuleInfo : AopObject
{
/// <summary>
/// 规则的类型,枚举值如下: DEFAULT_IN_CARTS // "开台默认菜"; NON_WHOLE_ORDER_DISCOUNT", //"不参与整单优惠的菜"; MUST_IN_ORDER // "下单必点菜";
/// </summary>
[XmlElement("biz_type")]
public string BizType { get; set; }
/// <summary>
/// 开台菜规则模型在biz_type为开台菜的时候此项必填。
/// </summary>
[XmlElement("default_in_cart_info")]
public DefaultInCartInfo DefaultInCartInfo { get; set; }
/// <summary>
/// 菜品id必填
/// </summary>
[XmlElement("dish_id")]
public string DishId { get; set; }
/// <summary>
/// 扩展信息存放JSON
/// </summary>
[XmlElement("ext_info")]
public string ExtInfo { get; set; }
/// <summary>
/// 表示规则适用的范围,枚举值如下: PARTNER_ID// 商户; SHOP //门店; CATEGORY //菜谱。
/// </summary>
[XmlElement("rule_type")]
public string RuleType { get; set; }
/// <summary>
/// 根据rule_type的不同此处填入规则适用的merchant_id,或者shop_id,或者cook_id的集合
/// </summary>
[XmlArray("rule_value")]
[XmlArrayItem("string")]
public List<string> RuleValue { get; set; }
/// <summary>
/// 当biz_type为DEFAULT_IN_CARTS即开台默认菜的时候本项必填。
/// </summary>
[XmlElement("sku_id")]
public string SkuId { get; set; }
/// <summary>
/// open:启用;stop:停用。
/// </summary>
[XmlElement("status")]
public string Status { get; set; }
}
}