Skip to content

Commit 7663419

Browse files
authored
Make interestExpense nullable. (#131)
Fixes #130
1 parent 455885e commit 7663419

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

FinancialModelingPrepApi/Model/CompanyValuation/IncomeStatementResponse.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public class IncomeStatementResponse
6565
public double? InterestIncome { get; set; }
6666

6767
[JsonPropertyName("interestExpense")]
68-
public double InterestExpense { get; set; }
68+
public double? InterestExpense { get; set; }
6969

7070
[JsonPropertyName("depreciationAndAmortization")]
7171
public double DepreciationAndAmortization { get; set; }

Tests/CompanyValuation/CompanyValuationTests.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ public async Task GetEnterpriseValueQuarter(string symbol)
177177
[InlineData("MTG")]
178178
[InlineData("GSM")]
179179
[InlineData("BZZUY")]
180+
[InlineData("MPW")]
180181
public async Task GetIncomeStatement(string symbol)
181182
{
182183
var result = await api.GetIncomeStatementAsync(symbol, Period.Annual, 10000);
@@ -195,6 +196,7 @@ public async Task GetIncomeStatement(string symbol)
195196
[InlineData("AAP")]
196197
[InlineData("MTG")]
197198
[InlineData("GSM")]
199+
[InlineData("MPW")]
198200
public async Task GetIncomeStatementPerQuarter(string symbol)
199201
{
200202
var result = await api.GetIncomeStatementAsync(symbol, Period.Quarter, limit: 10000);

0 commit comments

Comments
 (0)