using System.Collections.Generic;
using System.Text.Json.Serialization;

namespace Essensoft.Paylink.Alipay.Domain
{
    /// <summary>
    /// InsProdCoverage Data Structure.
    /// </summary>
    public class InsProdCoverage : AlipayObject
    {
        /// <summary>
        /// 险种描述
        /// </summary>
        [JsonPropertyName("coverage_desc")]
        public string CoverageDesc { get; set; }

        /// <summary>
        /// 险种名称
        /// </summary>
        [JsonPropertyName("coverage_name")]
        public string CoverageName { get; set; }

        /// <summary>
        /// 险种编号
        /// </summary>
        [JsonPropertyName("coverage_no")]
        public string CoverageNo { get; set; }

        /// <summary>
        /// 是否定期险种
        /// </summary>
        [JsonPropertyName("is_fixed_period")]
        public bool IsFixedPeriod { get; set; }

        /// <summary>
        /// 险种责任列表
        /// </summary>
        [JsonPropertyName("liabilities")]
        public List<InsLiability> Liabilities { get; set; }

        /// <summary>
        /// 可用的保障期限列表;约定“1D”代表一天，“1M”代表一个月,"1Y"代表一年
        /// </summary>
        [JsonPropertyName("periods")]
        public List<string> Periods { get; set; }

        /// <summary>
        /// 保额
        /// </summary>
        [JsonPropertyName("sum_insured")]
        public InsSumInsured SumInsured { get; set; }
    }
}
