Skip to content

Commit

Permalink
updated isNetInvestmentIncome in AdvancedDividend
Browse files Browse the repository at this point in the history
- changed from int to bool
- fixes #111
  • Loading branch information
vslee committed Apr 29, 2021
1 parent 21e22b1 commit 1c7eaaa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class DividendAdvancedResponse : CorporateActionResponse
public string declaredCurrencyCD { get; set; }
public decimal declaredGrossAmount { get; set; }
public int? isCapitalGains { get; set; }
public int? isNetInvestmentIncome { get; set; }
public bool? isNetInvestmentIncome { get; set; }
public int? isDAP { get; set; }
public int? isApproximate { get; set; }
public DateTime? fxDate { get; set; }
Expand Down
3 changes: 1 addition & 2 deletions IEXSharpTest/Cloud/CoreData/CorporateActionsTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ public async Task DividendsAdvancedAsyncTest(TimeSeriesRange range)
[TestCase("AAPL", TimeSeriesRange.LastQuarter, false, null, "")]
[TestCase("AAPL", TimeSeriesRange.OneMonth, false, null, "")]
[TestCase("AAPL", null, false, null, "")]
[TestCase("PFF", null, false, null, "")]
public async Task DividendsAdvancedAsyncTest(string symbol, TimeSeriesRange range, bool calendar, int last, string refId)
{
var response = await sandBoxClient.CorporateActions.DividendsAdvancedAsync(symbol, range, calendar, last, refId);
Expand All @@ -108,8 +109,6 @@ public async Task DividendsAdvancedAsyncTest(string symbol, TimeSeriesRange rang
Assert.Greater(data.grossAmount, 0);

Assert.IsFalse(string.IsNullOrEmpty(data.currency));
Assert.IsFalse(string.IsNullOrEmpty(data.marker));
Assert.IsFalse(string.IsNullOrEmpty(data.flag));
Assert.IsFalse(string.IsNullOrEmpty(data.securityType));
}

Expand Down

0 comments on commit 1c7eaaa

Please sign in to comment.