NewGaoKaoApi/PaymentSDK/AliPay/Domain/PromotionDetail.cs

43 lines
1.3 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;
namespace Aop.Api.Domain
{
/// <summary>
/// PromotionDetail Data Structure.
/// </summary>
[Serializable]
public class PromotionDetail : AopObject
{
/// <summary>
/// 营销ID。若营销为平台红包时由于平台红包聚合返回则营销可能id为空
/// </summary>
[XmlElement("id")]
public string Id { get; set; }
/// <summary>
/// 营销名称。若营销为平台红包时该值返回其他场景本接口不返回以alipay.business.order.consult接口返回的营销名称为准
/// </summary>
[XmlElement("name")]
public string Name { get; set; }
/// <summary>
/// 状态 VALID可用 INVALID不可用
/// </summary>
[XmlElement("status")]
public string Status { get; set; }
/// <summary>
/// 不可用原因 status=INVALID时不为空
/// </summary>
[XmlElement("unavailable_reason")]
public string UnavailableReason { get; set; }
/// <summary>
/// 面值根据券类型而定比如满减10折扣0.9(九折) 只有当status为INVALID时才有可能券值为空
/// </summary>
[XmlElement("value")]
public string Value { get; set; }
}
}