NewGaoKaoApi/PaymentSDK/AliPay/Domain/MEquityWorthInfo.cs

75 lines
3.0 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>
/// MEquityWorthInfo Data Structure.
/// </summary>
[Serializable]
public class MEquityWorthInfo : AopObject
{
/// <summary>
/// 权益价值信息计算方式取值枚举固定计算FIXED、动态计算DYNAMIC
/// </summary>
[XmlElement("calculate_type")]
public string CalculateType { get; set; }
/// <summary>
/// 代金的面额(单位分),取值范围1~499999的整数仅当type=CASH该字段必填
/// </summary>
[XmlElement("cash_amount")]
public long CashAmount { get; set; }
/// <summary>
/// 权益面额动态规则类型枚举值阶梯满减MULTI_STEP_CASH仅当calculate_type=DYNAMIC时该值必填
/// </summary>
[XmlElement("dynamic_rule_type")]
public string DynamicRuleType { get; set; }
/// <summary>
/// 最高优惠金额(单位:分)最高优惠金额设置范围必须在1~499999的整数只有type=RATE时生效其他类型无需设置
/// </summary>
[XmlElement("max_discount_amount")]
public string MaxDiscountAmount { get; set; }
/// <summary>
/// 最高优惠件数最高优惠件数设置范围值必须在1~99的整数只有使用限制存在item_info_list单品信息时生效其他情况无需设置
/// </summary>
[XmlElement("max_discount_count")]
public long MaxDiscountCount { get; set; }
/// <summary>
/// 阶梯满减阶梯信息仅当dynamic_rule_type=MULTI_STEP_CASH时该值必填
/// </summary>
[XmlArray("multi_step_cash_rules")]
[XmlArrayItem("m_step_cash_rule")]
public List<MStepCashRule> MultiStepCashRules { get; set; }
/// <summary>
/// 折扣率取值范围0.11~0.99至多2位小数且仅当type=RATE时该值必填
/// </summary>
[XmlElement("rate")]
public string Rate { get; set; }
/// <summary>
/// 减至的金额(单位分)仅当type=REDUCE_TO时该值必填
/// </summary>
[XmlElement("reduce_to_amount")]
public long ReduceToAmount { get; set; }
/// <summary>
/// 抹零规则枚举值不自动抹零NOT_AUTO_ROUNDING、自动抹零到元AUTO_ROUNDING_YUAN、自动抹零到角AUTO_ROUNDING_JIAO、四舍五入到元ROUNDING_UP_YUAN、四舍五入到角ROUNDING_UP_JIAO且当type=RATE时该值必填
/// </summary>
[XmlElement("rounding_type")]
public string RoundingType { get; set; }
/// <summary>
/// 权益价值类型枚举值代金CASH、折扣RATE、减至REDUCE_TO且仅当calculate_type=FIXED该字段必填
/// </summary>
[XmlElement("type")]
public string Type { get; set; }
}
}