private static List<OssUniPaymentDto> ConvertPayments(List<OssUniPaymentDeserializationDto> payments)
        {
            if (payments == null)
            {
                return null;
            }

            return payments.Select(x =>
                new OssUniPaymentDto
                {
                    Account = ConvertAccount(x.Account),
                    Amount = x.Amount,
                    PaymentDate = x.PaymentDate,
                    PaymentType = x.PaymentType,
                    PeriodNum = x.PeriodNum
                })
                .ToList();
        }

using System.Xml.Serialization;

namespace iRIS.InsuranceCore.OSS.Code.Dto.Uni
{
    public class OssUniPaymentDto
    {
        /// <summary>
        /// Свойство account.
        /// </summary>
        [XmlElement("account")]
        public OssUniAccountDto Account { get; set; }

        /// <summary>
        /// Свойство amount.
        /// </summary>
        [XmlAttribute("amount")]
        public string Amount { get; set; }

        /// <summary>
        /// Свойство payment_date.
        /// </summary>
        [XmlAttribute("payment-date")]
        public string PaymentDate { get; set; }

        /// <summary>
        /// Свойство payment_type.
        /// </summary>
        [XmlAttribute("payment-type")]
        public string PaymentType { get; set; }

        /// <summary>
        /// Свойство period_num.
        /// </summary>
        [XmlAttribute("period-num")]
        public string PeriodNum { get; set; }

        /// <summary>
        /// Свойство payment-method.
        /// </summary>
        [XmlAttribute("payment-method")]
        public string PaymentMethod { get; set; }

        /// <summary>
        /// Свойство actual-payment-amount-online.
        /// </summary>
        [XmlAttribute("actual-payment-amount-online")]
        public string ActualPaymentAmountOnline { get; set; }

        /// <summary>
        /// Свойство payment-date-online.
        /// </summary>
        [XmlAttribute("payment-date-online")]
        public string PaymentDateOnline { get; set; }

        /// <summary>
        /// Свойство bik-bank-online.
        /// </summary>
        [XmlAttribute("bik-bank-online")]
        public string BikBankOnline { get; set; }
    }
}

using System.Xml.Serialization;

namespace iRIS.InsuranceCore.OSS.Code.Dto.Deserialization
{
    public class OssUniPaymentDeserializationDto
    {
        /// <summary>
        /// Свойство account.
        /// </summary>
        [XmlElement("account")]
        public OssUniAccountDeserializationDto Account { get; set; }

        /// <summary>
        /// Свойство amount.
        /// </summary>
        [XmlAttribute("amount")]
        public string Amount { get; set; }

        /// <summary>
        /// Свойство payment_date.
        /// </summary>
        [XmlAttribute("payment-date")]
        public string PaymentDate { get; set; }

        /// <summary>
        /// Свойство payment_type.
        /// </summary>
        [XmlAttribute("payment-type")]
        public string PaymentType { get; set; }

        /// <summary>
        /// Свойство period_num.
        /// </summary>
        [XmlAttribute("period-num")]
        public string PeriodNum { get; set; }
    }
}


Мне надо расширить десериализацию, чтобы были все поля из xml:
-<payments type="10" premium-plan="В четыре платежа">

<payment trans_status="Не отправлялось" status="Выставлен счет" period-num="1" period-end="2024-09-28" payment-date="2024-06-29" insur_year_end="2025-06-28" insur_year="1" amount="240582.00"/>

<payment trans_status="Не отправлялось" status="Выставлен счет" period-num="2" period-end="2024-12-28" payment-date="2024-07-29" insur_year_end="2025-06-28" insur_year="1" amount="120289.00"/>

<payment trans_status="Не отправлялось" status="Выставлен счет" period-num="3" period-end="2025-03-28" payment-date="2024-10-29" insur_year_end="2025-06-28" insur_year="1" amount="120289.00"/>

<payment trans_status="Не отправлялось" status="Выставлен счет" period-num="4" period-end="2025-06-28" payment-date="2025-01-29" insur_year_end="2025-06-28" insur_year="1" amount="120289.00"/>

</payments>