NewGaoKaoApi/PaymentSDK/AliPay/Domain/AlipayDataItemSalesRule.cs

33 lines
1.1 KiB
C#
Raw Permalink 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>
/// AlipayDataItemSalesRule Data Structure.
/// </summary>
[Serializable]
public class AlipayDataItemSalesRule : AopObject
{
/// <summary>
/// 购买人群限制集合,开放平台暂时不支持此字段,如果需要使用,需要评估
/// </summary>
[XmlElement("buyer_crowd_limit")]
public string BuyerCrowdLimit { get; set; }
/// <summary>
/// 商品单日销售上限
/// </summary>
[XmlElement("daily_sales_limit")]
public long DailySalesLimit { get; set; }
/// <summary>
/// 用户购买策略如不填,则默认值为一个用户一天可以领取三次。 可限制DAY、WEEK、MONTH中n天领取m次格式为DAY|n|m 同时也可限制券的1次生命周期中可被领取x次如ALL|1|x两个规则可组合使用
/// </summary>
[XmlArray("user_sales_limit")]
[XmlArrayItem("string")]
public List<string> UserSalesLimit { get; set; }
}
}