From 9002f2c4cc25cc671d6690a9989f7ed2f69357d3 Mon Sep 17 00:00:00 2001 From: Matthias Beerens <3512339+Matthiee@users.noreply.github.com> Date: Tue, 11 Feb 2025 21:10:00 +0100 Subject: [PATCH] Mark properties as nullable --- .../CompanyValuation/BalanceSheetResponse.cs | 18 +++++++++--------- .../Model/CompanyValuation/CashFlowResponse.cs | 16 ++++++++-------- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/FinancialModelingPrepApi/Model/CompanyValuation/BalanceSheetResponse.cs b/FinancialModelingPrepApi/Model/CompanyValuation/BalanceSheetResponse.cs index f04bb3f..0ff51f3 100644 --- a/FinancialModelingPrepApi/Model/CompanyValuation/BalanceSheetResponse.cs +++ b/FinancialModelingPrepApi/Model/CompanyValuation/BalanceSheetResponse.cs @@ -32,7 +32,7 @@ public class BalanceSheetResponse public double CashAndCashEquivalents { get; set; } [JsonPropertyName("shortTermInvestments")] - public double ShortTermInvestments { get; set; } + public double? ShortTermInvestments { get; set; } [JsonPropertyName("cashAndShortTermInvestments")] public double CashAndShortTermInvestments { get; set; } @@ -56,13 +56,13 @@ public class BalanceSheetResponse public double Goodwill { get; set; } [JsonPropertyName("intangibleAssets")] - public double IntangibleAssets { get; set; } + public double? IntangibleAssets { get; set; } [JsonPropertyName("goodwillAndIntangibleAssets")] public double GoodwillAndIntangibleAssets { get; set; } [JsonPropertyName("longTermInvestments")] - public double LongTermInvestments { get; set; } + public double? LongTermInvestments { get; set; } [JsonPropertyName("taxAssets")] public double TaxAssets { get; set; } @@ -86,7 +86,7 @@ public class BalanceSheetResponse public double ShortTermDebt { get; set; } [JsonPropertyName("taxPayables")] - public double TaxPayables { get; set; } + public double? TaxPayables { get; set; } [JsonPropertyName("deferredRevenue")] public double DeferredRevenue { get; set; } @@ -104,7 +104,7 @@ public class BalanceSheetResponse public double DeferredRevenueNonCurrent { get; set; } [JsonPropertyName("deferredTaxLiabilitiesNonCurrent")] - public double DeferredTaxLiabilitiesNonCurrent { get; set; } + public double? DeferredTaxLiabilitiesNonCurrent { get; set; } [JsonPropertyName("otherNonCurrentLiabilities")] public double OtherNonCurrentLiabilities { get; set; } @@ -125,13 +125,13 @@ public class BalanceSheetResponse public double PreferredStock { get; set; } [JsonPropertyName("commonStock")] - public double CommonStock { get; set; } + public double? CommonStock { get; set; } [JsonPropertyName("retainedEarnings")] - public double RetainedEarnings { get; set; } + public double? RetainedEarnings { get; set; } [JsonPropertyName("accumulatedOtherComprehensiveIncomeLoss")] - public double AccumulatedOtherComprehensiveIncomeLoss { get; set; } + public double? AccumulatedOtherComprehensiveIncomeLoss { get; set; } [JsonPropertyName("othertotalStockholdersEquity")] public double? OthertotalStockholdersEquity { get; set; } @@ -152,7 +152,7 @@ public class BalanceSheetResponse public double TotalLiabilitiesAndTotalEquity { get; set; } [JsonPropertyName("totalInvestments")] - public double TotalInvestments { get; set; } + public double? TotalInvestments { get; set; } [JsonPropertyName("totalDebt")] public double TotalDebt { get; set; } diff --git a/FinancialModelingPrepApi/Model/CompanyValuation/CashFlowResponse.cs b/FinancialModelingPrepApi/Model/CompanyValuation/CashFlowResponse.cs index 85cde0d..396a99e 100644 --- a/FinancialModelingPrepApi/Model/CompanyValuation/CashFlowResponse.cs +++ b/FinancialModelingPrepApi/Model/CompanyValuation/CashFlowResponse.cs @@ -44,16 +44,16 @@ public class CashFlowResponse public double ChangeInWorkingCapital { get; set; } [JsonPropertyName("accountsReceivables")] - public double AccountsReceivables { get; set; } + public double? AccountsReceivables { get; set; } [JsonPropertyName("inventory")] - public double Inventory { get; set; } + public double? Inventory { get; set; } [JsonPropertyName("accountsPayables")] - public double AccountsPayables { get; set; } + public double? AccountsPayables { get; set; } [JsonPropertyName("otherWorkingCapital")] - public double OtherWorkingCapital { get; set; } + public double? OtherWorkingCapital { get; set; } [JsonPropertyName("otherNonCashItems")] public double OtherNonCashItems { get; set; } @@ -65,7 +65,7 @@ public class CashFlowResponse public double InvestmentsInPropertyPlantAndEquipment { get; set; } [JsonPropertyName("acquisitionsNet")] - public double AcquisitionsNet { get; set; } + public double? AcquisitionsNet { get; set; } [JsonPropertyName("purchasesOfInvestments")] public double PurchasesOfInvestments { get; set; } @@ -86,13 +86,13 @@ public class CashFlowResponse public double CommonStockIssued { get; set; } [JsonPropertyName("commonStockRepurchased")] - public double CommonStockRepurchased { get; set; } + public double? CommonStockRepurchased { get; set; } [JsonPropertyName("dividendsPaid")] - public double DividendsPaid { get; set; } + public double? DividendsPaid { get; set; } [JsonPropertyName("otherFinancingActivites")] - public double OtherFinancingActivites { get; set; } + public double? OtherFinancingActivites { get; set; } [JsonPropertyName("netCashUsedProvidedByFinancingActivities")] public double NetCashUsedProvidedByFinancingActivities { get; set; }