NewGaoKaoApi/PaymentSDK/AliPay/Domain/DiscountDetail.cs

57 lines
1.5 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>
/// DiscountDetail Data Structure.
/// </summary>
[Serializable]
public class DiscountDetail : AopObject
{
/// <summary>
/// 优惠金额
/// </summary>
[XmlElement("discount_amount")]
public string DiscountAmount { get; set; }
/// <summary>
/// 优惠描述比如至多优惠XX元满XX减XX
/// </summary>
[XmlArray("discount_desc")]
[XmlArrayItem("string")]
public List<string> DiscountDesc { get; set; }
/// <summary>
/// 优惠类型,商家优惠M_DISCOUNT平台优惠RT_DISCOUNT
/// </summary>
[XmlElement("discount_type")]
public string DiscountType { get; set; }
/// <summary>
/// 优惠ID或活动ID
/// </summary>
[XmlElement("id")]
public string Id { get; set; }
/// <summary>
/// 优惠是否命中, true代表命中了优惠false代表未命中优惠
/// </summary>
[XmlElement("is_hit")]
public string IsHit { get; set; }
/// <summary>
/// 是否是购买券, true代表是购买的券false调表不是购买的券
/// </summary>
[XmlElement("is_purchased")]
public string IsPurchased { get; set; }
/// <summary>
/// 优惠名称
/// </summary>
[XmlElement("name")]
public string Name { get; set; }
}
}