feat: add Stato field to CertificateInfo model and map from SP

This commit is contained in:
2026-03-21 10:30:13 +01:00
parent 26ebd320e5
commit 7ad14c129c
2 changed files with 5 additions and 0 deletions

View File

@@ -75,6 +75,10 @@ public class CertificateInfo
public string TriggerOneStar { get; set; } = string.Empty;
public string Note { get; set; } = string.Empty;
// Stato quotazione (da SP rpt_Master_CFT_ISIN)
// Valori: "Quotazione" | "Revocato" | "Scaduto" | "Rimborsato"
public string Stato { get; set; } = string.Empty;
// Sottostanti (da SP separata: rpt_Details_UL_ISIN)
public List<Sottostante> Sottostanti { get; set; } = new();
}

View File

@@ -98,6 +98,7 @@ public class CertificateDataService : ICertificateDataService
info.CpnDaPagare = r.GetNullableDecimal("CpnDaPagare");
info.CpnPagati = r.GetNullableDecimal("CpnPagati");
info.RendimentoAttuale = r.GetStringSafe("RendimentoAttuale");
info.Stato = r.GetStringSafe("Stato");
}
}